shlink-web-client/feature/update-deps/static/js/main.46e17564.js

3 lines
No EOL
1.4 MiB

/*! For license information please see main.46e17564.js.LICENSE.txt */
!function(){var e={7757:function(e,t,n){e.exports=n(4596)},6176:function(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof r(e).Element||e instanceof Element}function o(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!==typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.d(t,{fi:function(){return he}});var s=Math.max,l=Math.min,u=Math.round;function c(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(o(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(r=u(n.width)/s||1),a>0&&(i=u(n.height)/a||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function f(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function d(e){return e?(e.nodeName||"").toLowerCase():null}function h(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function p(e){return c(h(e)).left+f(e).scrollLeft}function v(e){return r(e).getComputedStyle(e)}function m(e){var t=v(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function g(e,t,n){void 0===n&&(n=!1);var i=o(t),a=o(t)&&function(e){var t=e.getBoundingClientRect(),n=u(t.width)/e.offsetWidth||1,r=u(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=h(t),l=c(e,a),v={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(i||!i&&!n)&&(("body"!==d(t)||m(s))&&(v=function(e){return e!==r(e)&&o(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:f(e);var t}(t)),o(t)?((g=c(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):s&&(g.x=p(s))),{x:l.left+v.scrollLeft-g.x,y:l.top+v.scrollTop-g.y,width:l.width,height:l.height}}function y(e){var t=c(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 b(e){return"html"===d(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||h(e)}function _(e){return["html","body","#document"].indexOf(d(e))>=0?e.ownerDocument.body:o(e)&&m(e)?e:_(b(e))}function x(e,t){var n;void 0===t&&(t=[]);var i=_(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=r(i),s=o?[a].concat(a.visualViewport||[],m(i)?i:[]):i,l=t.concat(s);return o?l:l.concat(x(b(s)))}function w(e){return["table","td","th"].indexOf(d(e))>=0}function k(e){return o(e)&&"fixed"!==v(e).position?e.offsetParent:null}function S(e){for(var t=r(e),n=k(e);n&&w(n)&&"static"===v(n).position;)n=k(n);return n&&("html"===d(n)||"body"===d(n)&&"static"===v(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&o(e)&&"fixed"===v(e).position)return null;for(var n=b(e);o(n)&&["html","body"].indexOf(d(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var C="top",E="bottom",T="right",M="left",O="auto",P=[C,E,T,M],j="start",N="end",D="viewport",R="popper",L=P.reduce((function(e,t){return e.concat([t+"-"+j,t+"-"+N])}),[]),A=[].concat(P,[O]).reduce((function(e,t){return e.concat([t,t+"-"+j,t+"-"+N])}),[]),I=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function F(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function z(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var B={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function V(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?B:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},B,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,u={state:o,setOptions:function(n){var l="function"===typeof n?n(o.options):n;c(),o.options=Object.assign({},a,o.options,l),o.scrollParents={reference:i(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var f=function(e){var t=F(e);return I.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=f.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var a=i({state:o,name:t,instance:u,options:r}),l=function(){};s.push(a||l)}})),u.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(U(t,n)){o.rects={reference:g(t,S(n),"fixed"===o.options.strategy),popper:y(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,s=i.options,c=void 0===s?{}:s,f=i.name;"function"===typeof a&&(o=a({state:o,options:c,name:f,instance:u})||o)}else o.reset=!1,r=-1}}},update:z((function(){return new Promise((function(e){u.forceUpdate(),e(o)}))})),destroy:function(){c(),l=!0}};if(!U(e,t))return u;function c(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var H={passive:!0};function W(e){return e.split("-")[0]}function Z(e){return e.split("-")[1]}function Y(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function q(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?W(i):null,a=i?Z(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case C:t={x:s,y:n.y-r.height};break;case E:t={x:s,y:n.y+n.height};break;case T:t={x:n.x+n.width,y:l};break;case M:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?Y(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case j:t[u]=t[u]-(n[c]/2-r[c]/2);break;case N:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n=e.popper,i=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,p=e.isFixed,m=s.x,g=void 0===m?0:m,y=s.y,b=void 0===y?0:y,_="function"===typeof d?d({x:g,y:b}):{x:g,y:b};g=_.x,b=_.y;var x=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),k=M,O=C,P=window;if(f){var j=S(n),D="clientHeight",R="clientWidth";if(j===r(n)&&"static"!==v(j=h(n)).position&&"absolute"===l&&(D="scrollHeight",R="scrollWidth"),o===C||(o===M||o===T)&&a===N)O=E,b-=(p&&P.visualViewport?P.visualViewport.height:j[D])-i.height,b*=c?1:-1;if(o===M||(o===C||o===E)&&a===N)k=T,g-=(p&&P.visualViewport?P.visualViewport.width:j[R])-i.width,g*=c?1:-1}var L,A=Object.assign({position:l},f&&G),I=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:u(t*r)/r||0,y:u(n*r)/r||0}}({x:g,y:b}):{x:g,y:b};return g=I.x,b=I.y,c?Object.assign({},A,((L={})[O]=w?"0":"",L[k]=x?"0":"",L.transform=(P.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",L)):Object.assign({},A,((t={})[O]=w?b+"px":"",t[k]=x?g+"px":"",t.transform="",t))}var Q={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=A.reduce((function(e,n){return e[n]=function(e,t,n){var r=W(e),i=[M,C].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[M,T].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},$={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e){return e.replace(/left|right|bottom|top/g,(function(e){return $[e]}))}var J={start:"end",end:"start"};function ee(e){return e.replace(/start|end/g,(function(e){return J[e]}))}function te(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ne(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function re(e,t){return t===D?ne(function(e){var t=r(e),n=h(e),i=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;return i&&(o=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,l=i.offsetTop)),{width:o,height:a,x:s+p(e),y:l}}(e)):i(t)?function(e){var t=c(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ne(function(e){var t,n=h(e),r=f(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=s(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+p(e),u=-r.scrollTop;return"rtl"===v(i||n).direction&&(l+=s(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:u}}(h(e)))}function ie(e,t,n){var r="clippingParents"===t?function(e){var t=x(b(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&o(e)?S(e):e;return i(n)?t.filter((function(e){return i(e)&&te(e,n)&&"body"!==d(e)})):[]}(e):[].concat(t),a=[].concat(r,[n]),u=a[0],c=a.reduce((function(t,n){var r=re(e,n);return t.top=s(r.top,t.top),t.right=l(r.right,t.right),t.bottom=l(r.bottom,t.bottom),t.left=s(r.left,t.left),t}),re(e,u));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function oe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ae(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function se(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.boundary,s=void 0===a?"clippingParents":a,l=n.rootBoundary,u=void 0===l?D:l,f=n.elementContext,d=void 0===f?R:f,p=n.altBoundary,v=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,y=oe("number"!==typeof g?g:ae(g,P)),b=d===R?"reference":R,_=e.rects.popper,x=e.elements[v?b:d],w=ie(i(x)?x:x.contextElement||h(e.elements.popper),s,u),k=c(e.elements.reference),S=q({reference:k,element:_,strategy:"absolute",placement:o}),M=ne(Object.assign({},_,S)),O=d===R?M:k,j={top:w.top-O.top+y.top,bottom:O.bottom-w.bottom+y.bottom,left:w.left-O.left+y.left,right:O.right-w.right+y.right},N=e.modifiersData.offset;if(d===R&&N){var L=N[o];Object.keys(j).forEach((function(e){var t=[T,E].indexOf(e)>=0?1:-1,n=[C,E].indexOf(e)>=0?"y":"x";j[e]+=L[n]*t}))}return j}function le(e,t,n){return s(e,l(t,n))}var ue={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,u=void 0!==a&&a,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.padding,p=n.tether,v=void 0===p||p,m=n.tetherOffset,g=void 0===m?0:m,b=se(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:d}),_=W(t.placement),x=Z(t.placement),w=!x,k=Y(_),O="x"===k?"y":"x",P=t.modifiersData.popperOffsets,N=t.rects.reference,D=t.rects.popper,R="function"===typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,L="number"===typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(P){if(o){var F,z="y"===k?C:M,B="y"===k?E:T,U="y"===k?"height":"width",V=P[k],H=V+b[z],q=V-b[B],G=v?-D[U]/2:0,K=x===j?N[U]:D[U],Q=x===j?-D[U]:-N[U],$=t.elements.arrow,X=v&&$?y($):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[z],te=J[B],ne=le(0,N[U],X[U]),re=w?N[U]/2-G-ne-ee-L.mainAxis:K-ne-ee-L.mainAxis,ie=w?-N[U]/2+G+ne+te+L.mainAxis:Q+ne+te+L.mainAxis,oe=t.elements.arrow&&S(t.elements.arrow),ae=oe?"y"===k?oe.clientTop||0:oe.clientLeft||0:0,ue=null!=(F=null==A?void 0:A[k])?F:0,ce=V+ie-ue,fe=le(v?l(H,V+re-ue-ae):H,V,v?s(q,ce):q);P[k]=fe,I[k]=fe-V}if(u){var de,he="x"===k?C:M,pe="x"===k?E:T,ve=P[O],me="y"===O?"height":"width",ge=ve+b[he],ye=ve-b[pe],be=-1!==[C,M].indexOf(_),_e=null!=(de=null==A?void 0:A[O])?de:0,xe=be?ge:ve-N[me]-D[me]-_e+L.altAxis,we=be?ve+N[me]+D[me]-_e-L.altAxis:ye,ke=v&&be?function(e,t,n){var r=le(e,t,n);return r>n?n:r}(xe,ve,we):le(v?xe:ge,ve,v?we:ye);P[O]=ke,I[O]=ke-ve}t.modifiersData[r]=I}},requiresIfExists:["offset"]};var ce={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=W(n.placement),l=Y(s),u=[M,T].indexOf(s)>=0?"height":"width";if(o&&a){var c=function(e,t){return oe("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ae(e,P))}(i.padding,n),f=y(o),d="y"===l?C:M,h="y"===l?E:T,p=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],v=a[l]-n.rects.reference[l],m=S(o),g=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=p/2-v/2,_=c[d],x=g-f[u]-c[h],w=g/2-f[u]/2+b,k=le(_,w,x),O=l;n.modifiersData[r]=((t={})[O]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&te(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fe(e,t,n){return void 0===n&&(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 de(e){return[C,T,E,M].some((function(t){return e[t]>=0}))}var he=V({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,a=void 0===o||o,s=i.resize,l=void 0===s||s,u=r(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,H)})),l&&u.addEventListener("resize",n.update,H),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,H)})),l&&u.removeEventListener("resize",n.update,H)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=q({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,u={placement:W(t.placement),variation:Z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,K(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];o(i)&&d(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(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(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(r)&&d(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},Q,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,v=n.allowedAutoPlacements,m=t.options.placement,g=W(m),y=l||(g===m||!p?[X(m)]:function(e){if(W(e)===O)return[];var t=X(e);return[ee(e),t,ee(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(W(n)===O?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?A:l,c=Z(r),f=c?s?L:L.filter((function(e){return Z(e)===c})):P,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var h=d.reduce((function(t,n){return t[n]=se(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[W(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):n)}),[]),_=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,S=b[0],N=0;N<b.length;N++){var D=b[N],R=W(D),I=Z(D)===j,F=[C,E].indexOf(R)>=0,z=F?"width":"height",B=se(t,{placement:D,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),U=F?I?T:M:I?E:C;_[z]>x[z]&&(U=X(U));var V=X(U),H=[];if(o&&H.push(B[R]<=0),s&&H.push(B[U]<=0,B[V]<=0),H.every((function(e){return e}))){S=D,k=!1;break}w.set(D,H)}if(k)for(var Y=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},q=p?3:1;q>0;q--){if("break"===Y(q))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ue,ce,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=se(t,{elementContext:"reference"}),s=se(t,{altBoundary:!0}),l=fe(a,r),u=fe(s,i,o),c=de(l),f=de(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]})},8025:function(e,t,n){e.exports=n(9244)},9505:function(e,t,n){"use strict";var r=n(4271),i=n(1126),o=n(6223),a=n(2070),s=n(102),l=n(5074),u=n(7134),c=n(3213),f=n(9277),d=n(1049),h=n(5546);e.exports=function(e){return new Promise((function(t,n){var p,v=e.data,m=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(v)&&r.isStandardBrowserEnv()&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(_+":"+x)}var w=s(e.baseURL,e.url);function k(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,o={data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};i((function(e){t(e),y()}),(function(e){n(e),y()}),o),b=null}}if(b.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(k)},b.onabort=function(){b&&(n(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||u(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in b&&r.forEach(m,(function(e,t){"undefined"===typeof v&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),v||(v=null);var C=h(w);C&&-1===["http","https","file"].indexOf(C)?n(new f("Unsupported protocol "+C+":",f.ERR_BAD_REQUEST,e)):b.send(v)}))}},9244:function(e,t,n){"use strict";var r=n(4271),i=n(3981),o=n(1985),a=n(5322);var s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(8847));s.Axios=o,s.CanceledError=n(1049),s.CancelToken=n(2025),s.isCancel=n(6544),s.VERSION=n(846).version,s.toFormData=n(7807),s.AxiosError=n(9277),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(587),s.isAxiosError=n(5),e.exports=s,e.exports.default=s},2025:function(e,t,n){"use strict";var r=n(1049);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},1049:function(e,t,n){"use strict";var r=n(9277);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(4271).inherits(i,r,{__CANCEL__:!0}),e.exports=i},6544:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},1985:function(e,t,n){"use strict";var r=n(4271),i=n(2070),o=n(8723),a=n(878),s=n(5322),l=n(102),u=n(6535),c=u.validators;function f(e){this.defaults=e,this.interceptors={request:new o,response:new o}}f.prototype.request=function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!i){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(l),o=Promise.resolve(t);f.length;)o=o.then(f.shift(),f.shift());return o}for(var d=t;r.length;){var h=r.shift(),p=r.shift();try{d=h(d)}catch(v){p(v);break}}try{o=a(d)}catch(v){return Promise.reject(v)}for(;l.length;)o=o.then(l.shift(),l.shift());return o},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},9277:function(e,t,n){"use strict";var r=n(4271);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,n,a,s,l){var u=Object.create(o);return r.toFlatObject(e,u,(function(e){return e!==Error.prototype})),i.call(u,e.message,t,n,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=i},8723:function(e,t,n){"use strict";var r=n(4271);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},102:function(e,t,n){"use strict";var r=n(7230),i=n(5930);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},878:function(e,t,n){"use strict";var r=n(4271),i=n(6996),o=n(6544),a=n(8847),s=n(1049);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5322:function(e,t,n){"use strict";var r=n(4271);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function l(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,i=t(e);r.isUndefined(i)&&t!==l||(n[e]=i)})),n}},1126:function(e,t,n){"use strict";var r=n(9277);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},6996:function(e,t,n){"use strict";var r=n(4271),i=n(8847);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},8847:function(e,t,n){"use strict";var r=n(4271),i=n(8147),o=n(9277),a=n(3213),s=n(7807),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c={transitional:a,adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(9505)),e}(),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=r.isObject(e),a=t&&t["Content-Type"];if((n=r.isFileList(e))||o&&"multipart/form-data"===a){var l=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,l&&new l)}return o||"application/json"===a?(u(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o.from(s,o.ERR_BAD_RESPONSE,this,null,this.response);throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(6541)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(l)})),e.exports=c},3213:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},846:function(e){e.exports={version:"0.27.2"}},3981:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},2070:function(e,t,n){"use strict";var r=n(4271);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},5930:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},6223:function(e,t,n){"use strict";var r=n(4271);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},7230:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5:function(e,t,n){"use strict";var r=n(4271);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},7134:function(e,t,n){"use strict";var r=n(4271);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},8147:function(e,t,n){"use strict";var r=n(4271);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},6541:function(e){e.exports=null},5074:function(e,t,n){"use strict";var r=n(4271),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},5546:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},587:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7807:function(e,t,n){"use strict";var r=n(4271);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,a){if(r.isPlainObject(o)||r.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+a);n.push(o),r.forEach(o,(function(n,o){if(!r.isUndefined(n)){var s,l=a?a+"."+o:o;if(n&&!a&&"object"===typeof n)if(r.endsWith(o,"{}"))n=JSON.stringify(n);else if(r.endsWith(o,"[]")&&(s=r.toArray(n)))return void s.forEach((function(e){!r.isUndefined(e)&&t.append(l,i(e))}));e(n,l)}})),n.pop()}else t.append(a,i(o))}(e),t}},6535:function(e,t,n){"use strict";var r=n(846).version,i=n(9277),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},4271:function(e,t,n){"use strict";var r,i=n(3981),o=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function l(e){return Array.isArray(e)}function u(e){return"undefined"===typeof e}var c=s("ArrayBuffer");function f(e){return null!==e&&"object"===typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),p=s("File"),v=s("Blob"),m=s("FileList");function g(e){return"[object Function]"===o.call(e)}var y=s("URLSearchParams");function b(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var _,x=(_="undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return _&&e instanceof _});e.exports={isArray:l,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||o.call(e)===t||g(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:f,isPlainObject:d,isUndefined:u,isDate:h,isFile:p,isBlob:v,isFunction:g,isStream:function(e){return f(e)&&g(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:b,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)b(arguments[r],n);return t},extend:function(e,t,n){return b(t,(function(t,r){e[r]=n&&"function"===typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,o,a={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:x,isFileList:m}},449:function(e){e.exports=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(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";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}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[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}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),a=Math.max(i,o),s=0,l=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}},e.assign=function(e){for(var t,n,r=e,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var s=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=o.length;t<n;t+=1)s();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"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"},t.BROWSER_MAP={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"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={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"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(91))&&r.__esModule?r:{default:r},o=n(18);function a(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)}}var s=function(){function e(){}var t,n,r;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,r=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(n=null)&&a(t.prototype,n),r&&a(t,r),e}();t.default=s,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=l(n(92)),i=l(n(93)),o=l(n(94)),a=l(n(95)),s=l(n(17));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,i={},o=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(n[t]=a,r+=1)})),r>0){var a=Object.keys(n),l=s.default.find(a,(function(e){return t.isOS(e)}));if(l){var u=this.satisfies(n[l]);if(void 0!==u)return u}var c=s.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var f=this.satisfies(n[c]);if(void 0!==f)return f}}if(o>0){var d=Object.keys(i),h=s.default.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})},4758:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},5240:function(e,t,n){"use strict";var r=n(3147),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!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),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},9995:function(e){e.exports=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(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},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(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(6),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var o=n(5);o.inherits=n(2);var a=n(23),s=n(14);o.inherits(f,a);for(var l=i(s.prototype),u=0;u<l.length;u++){var c=l[u];f.prototype[c]||(f.prototype[c]=s.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";(function(e){var r=n(38),i=n(39),o=n(40);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?s(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=s(e,t<0?0:0|h(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var f=!0,d=0;d<l;d++)if(u(e,o+d)!==u(t,d)){f=!1;break}if(f)return o}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return V(B(t,e.length-n),e,n,r)}function _(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return _(e,t,n,r)}function w(e,t,n,r){return V(U(t),e,n,r)}function k(e,t,n,r){return V(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,u=e[i],c=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=E));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(u[f]!==c[f]){o=u[f],a=c[f];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function O(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=z(e[o]);return i}function P(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function j(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function A(e,t,n,r,o){return o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,o){return o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return A(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return A(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:B(new l(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,f=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&h())}function h(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++f<t;)l&&l[f].run();f=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||s(h)},p.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(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(3).Buffer)},function(e,t,n){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(31);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(96);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(35),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.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(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(o(n=this._events[e]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(u=n.slice()).length,l=0;l<a;l++)u[l].apply(this,s);return!0},n.prototype.addListener=function(e,t){var a;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},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){"use strict";(function(t,r,i){var o=n(6);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(void 0),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o.nextTick;y.WritableState=g;var u=n(5);u.inherits=n(2);var c,f={deprecate:n(44)},d=n(24),h=n(7).Buffer,p=i.Uint8Array||function(){},v=n(25);function m(){}function g(e,t){s=s||n(1),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(u||0===u)?u:c,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 f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),S(e,t))}(e,n,r,t,i);else{var a=w(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),r?l(_,e,n,a,i):_(e,n,a,i)}}(t,e)},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 y(e){if(s=s||n(1),!(c.call(y,this)||this instanceof s))return new y(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function b(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),S(e,t)}function x(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:u.length,u,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var n=w(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}u.inherits(y,d),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===y&&e&&e._writableState instanceof g}})):c=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&function(e){return h.isBuffer(e)||e instanceof p}(e);return a&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=m),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,r,e,n))&&(r.pendingcb++,i=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n)),t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,o);return l}(this,r,a,e,t,n)),i},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||x(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,S(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=v.destroy,y.prototype._undestroy=v.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(t,n,r){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof _dereq_&&_dereq_;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof _dereq_&&_dereq_,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";t.exports=function(e){var t=e._SomePromiseArray;function n(e){var n=new t(e),r=n.promise();return n.setHowMany(1),n.setUnwrap(),n.init(),r}e.any=function(e){return n(e)},e.prototype.any=function(){return n(this)}}},{}],2:[function(e,n,r){"use strict";var i;try{throw new Error}catch(e){i=e}var o=e("./schedule"),a=e("./queue"),s=e("./util");function l(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new a(16),this._normalQueue=new a(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=o}function u(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()}function c(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()}function f(e){this._normalQueue._pushOne(e),this._queueTick()}l.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},l.prototype.hasCustomScheduler=function(){return this._customScheduler},l.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},l.prototype.disableTrampolineIfNecessary=function(){s.hasDevTools&&(this._trampolineEnabled=!1)},l.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},l.prototype.fatalError=function(e,n){n?(t.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),t.exit(2)):this.throwLater(e)},l.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout((function(){e(t)}),0);else try{this._schedule((function(){e(t)}))}catch(e){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},s.hasDevTools?(l.prototype.invokeLater=function(e,t,n){this._trampolineEnabled?u.call(this,e,t,n):this._schedule((function(){setTimeout((function(){e.call(t,n)}),100)}))},l.prototype.invoke=function(e,t,n){this._trampolineEnabled?c.call(this,e,t,n):this._schedule((function(){e.call(t,n)}))},l.prototype.settlePromises=function(e){this._trampolineEnabled?f.call(this,e):this._schedule((function(){e._settlePromises()}))}):(l.prototype.invokeLater=u,l.prototype.invoke=c,l.prototype.settlePromises=f),l.prototype._drainQueue=function(e){for(;e.length()>0;){var t=e.shift();if("function"==typeof t){var n=e.shift(),r=e.shift();t.call(n,r)}else t._settlePromises()}},l.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},l.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},l.prototype._reset=function(){this._isTickUsed=!1},n.exports=l,n.exports.firstLineError=i},{"./queue":26,"./schedule":29,"./util":36}],3:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var i=!1,o=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},s=function(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},l=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){i||(i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var u=n(o),c=new e(t);c._propagateFrom(this,1);var f=this._target();if(c._setBoundTo(u),u instanceof e){var d={promiseRejectionQueued:!1,promise:c,target:f,bindingPromise:u};f._then(t,a,void 0,c,d),u._then(s,l,void 0,c,d),c._setOnCancel(u)}else c._resolveCallback(f);return c},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){"use strict";var r;"undefined"!=typeof Promise&&(r=Promise);var i=e("./promise")();i.noConflict=function(){try{Promise===i&&(Promise=r)}catch(e){}return i},t.exports=i},{"./promise":22}],5:[function(e,t,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}t.exports=function(t){var n=e("./util"),r=n.canEvaluate;function i(e){return function(e,r){var i;if(null!=e&&(i=e[r]),"function"!=typeof i){var o="Object "+n.classString(e)+" has no method '"+n.toString(r)+"'";throw new t.TypeError(o)}return i}(e,this.pop()).apply(e,this)}function o(e){return e[this]}function a(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}n.isIdentifier,t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(i,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t;if("number"==typeof e)t=a;else if(r){var n=(void 0)(e);t=null!==n?n:o}else t=o;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o=e("./util"),a=o.tryCatch,s=o.errorObj,l=t._async;t.prototype.break=t.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),l.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(void 0!==e)if("function"==typeof e){if(!t){var r=a(e).call(this._boundValue());r===s&&(this._attachExtraTrace(r.e),l.throwLater(r.e))}}else e._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),l.invoke(this._doInvokeOnCancel,this,e)},t.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(e,t,n){"use strict";t.exports=function(t){var n=e("./util"),r=e("./es5").keys,i=n.tryCatch,o=n.errorObj;return function(e,a,s){return function(l){var u=s._boundValue();e:for(var c=0;c<e.length;++c){var f=e[c];if(f===Error||null!=f&&f.prototype instanceof Error){if(l instanceof f)return i(a).call(u,l)}else if("function"==typeof f){var d=i(f).call(u,l);if(d===o)return d;if(d)return i(a).call(u,l)}else if(n.isObject(l)){for(var h=r(f),p=0;p<h.length;++p){var v=h[p];if(f[v]!=l[v])continue e}return i(a).call(u,l)}}return t}}}},{"./es5":13,"./util":36}],8:[function(e,t,n){"use strict";t.exports=function(e){var t=!1,n=[];function r(){this._trace=new r.CapturedTrace(i())}function i(){var e=n.length-1;if(e>=0)return n[e]}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},r.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(void 0!==this._trace){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},r.CapturedTrace=null,r.create=function(){if(t)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=e.prototype._pushContext,o=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,l=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=o,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=l,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=i,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},r}},{}],9:[function(e,n,r){"use strict";n.exports=function(n,r){var i,o,a,s=n._getDomain,l=n._async,u=e("./errors").Warning,c=e("./util"),f=c.canAttachTrace,d=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,h=/\((?:timers\.js):\d+:\d+\)/,p=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,v=null,m=null,g=!1,y=!(0==c.env("BLUEBIRD_DEBUG")),b=!(0==c.env("BLUEBIRD_WARNINGS")||!y&&!c.env("BLUEBIRD_WARNINGS")),_=!(0==c.env("BLUEBIRD_LONG_STACK_TRACES")||!y&&!c.env("BLUEBIRD_LONG_STACK_TRACES")),x=0!=c.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(b||!!c.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},n.prototype._ensurePossibleRejectionHandled=function(){if(0==(524288&this._bitField)){this._setRejectionIsUnhandled();var e=this;setTimeout((function(){e._notifyUnhandledRejection()}),1)}},n.prototype._notifyUnhandledRejectionIsHandled=function(){H("rejectionHandled",i,void 0,this)},n.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},n.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},n.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),H("unhandledRejection",o,e,this)}},n.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},n.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},n.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},n.prototype._warn=function(e,t,n){return z(e,t,n||this)},n.onPossiblyUnhandledRejection=function(e){var t=s();o="function"==typeof e?null===t?e:c.domainBind(t,e):void 0},n.onUnhandledRejectionHandled=function(e){var t=s();i="function"==typeof e?null===t?e:c.domainBind(t,e):void 0};var w=function(){};n.longStackTraces=function(){if(l.haveItemsQueued()&&!$.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!$.longStackTraces&&Z()){var e=n.prototype._captureStackTrace,t=n.prototype._attachExtraTrace;$.longStackTraces=!0,w=function(){if(l.haveItemsQueued()&&!$.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype._captureStackTrace=e,n.prototype._attachExtraTrace=t,r.deactivateLongStackTraces(),l.enableTrampoline(),$.longStackTraces=!1},n.prototype._captureStackTrace=I,n.prototype._attachExtraTrace=F,r.activateLongStackTraces(),l.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return $.longStackTraces&&Z()};var k=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return c.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!c.global.dispatchEvent(n)}}return"function"==typeof Event?(e=new Event("CustomEvent"),c.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!c.global.dispatchEvent(n)}):((e=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),c.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!c.global.dispatchEvent(n)})}catch(e){}return function(){return!1}}(),S=c.isNode?function(){return t.emit.apply(t,arguments)}:c.global?function(e){var t="on"+e.toLowerCase(),n=c.global[t];return!!n&&(n.apply(c.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function C(e,t){return{promise:t}}var E={promiseCreated:C,promiseFulfilled:C,promiseRejected:C,promiseResolved:C,promiseCancelled:C,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:C},T=function(e){var t=!1;try{t=S.apply(null,arguments)}catch(e){l.throwLater(e),t=!0}var n=!1;try{n=k(e,E[e].apply(null,arguments))}catch(e){l.throwLater(e),n=!0}return n||t};function M(){return!1}function O(e,t,n){var r=this;try{e(t,n,(function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+c.toString(e));r._attachCancellationCallback(e)}))}catch(e){return e}}function P(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?c.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function j(){return this._onCancelField}function N(e){this._onCancelField=e}function D(){this._cancellationParent=void 0,this._onCancelField=void 0}function R(e,t){if(0!=(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}n.config=function(e){if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?n.longStackTraces():!e.longStackTraces&&n.hasLongStackTraces()&&w()),"warnings"in e){var t=e.warnings;$.warnings=!!t,x=$.warnings,c.isObject(t)&&"wForgottenReturn"in t&&(x=!!t.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!$.cancellation){if(l.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=D,n.prototype._propagateFrom=R,n.prototype._onCancel=j,n.prototype._setOnCancel=N,n.prototype._attachCancellationCallback=P,n.prototype._execute=O,L=R,$.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!$.monitoring?($.monitoring=!0,n.prototype._fireEvent=T):!e.monitoring&&$.monitoring&&($.monitoring=!1,n.prototype._fireEvent=M)),n},n.prototype._fireEvent=M,n.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(e){},n.prototype._attachCancellationCallback=function(e){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(e,t){};var L=function(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)};function A(){var e=this._boundTo;return void 0!==e&&e instanceof n?e.isFulfilled()?e.value():void 0:e}function I(){this._trace=new K(this._peekContext())}function F(e,t){if(f(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=U(e);c.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),c.notEnumerableProp(e,"__stackCleaned__",!0)}}}function z(e,t,r){if($.warnings){var i,o=new u(e);if(t)r._attachExtraTrace(o);else if($.longStackTraces&&(i=n._peekContext()))i.attachExtraTrace(o);else{var a=U(o);o.stack=a.message+"\n"+a.stack.join("\n")}T("warning",o)||V(o,"",!0)}}function B(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=" (No stack trace)"===r||v.test(r),o=i&&Y(r);i&&!o&&(g&&" "!==r.charAt(0)&&(r=" "+r),t.push(r))}return t}function U(e){var t=e.stack,n=e.toString();return t="string"==typeof t&&t.length>0?function(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n<t.length;++n){var r=t[n];if(" (No stack trace)"===r||v.test(r))break}return n>0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:B(t)}}function V(e,t,n){if("undefined"!=typeof console){var r;if(c.isObject(e)){var i=e.stack;r=t+m(i,e)}else r=t+String(e);"function"==typeof a?a(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function H(e,t,n,r){var i=!1;try{"function"==typeof t&&(i=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(e){l.throwLater(e)}"unhandledRejection"===e?T(e,n,r)||i||V(n,"Unhandled rejection "):T(e,r)}function W(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{if(t=e&&"function"==typeof e.toString?e.toString():c.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+function(e){return e.length<41?e:e.substr(0,38)+"..."}(t)+">, no stack trace)"}function Z(){return"function"==typeof Q}var Y=function(){return!1},q=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function G(e){var t=e.match(q);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function K(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);Q(this,K),t>32&&this.uncycle()}c.inherits(K,Error),r.CapturedTrace=K,K.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,i=this;void 0!==i;++r)t.push(i),i=i._parent;for(r=(e=this._length=r)-1;r>=0;--r){var o=t[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r<e;++r){var a=n[t[r].stack];if(void 0!==a&&a!==r){a>0&&(t[a-1]._parent=void 0,t[a-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var s=r>0?t[r-1]:this;a<e-1?(s._parent=t[a+1],s._parent.uncycle(),s._length=s._parent._length+1):(s._parent=void 0,s._length=1);for(var l=s._length+1,u=r-2;u>=0;--u)t[u]._length=l,l++;return}}}},K.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=U(e),n=t.message,r=[t.stack],i=this;void 0!==i;)r.push(B(i.stack.split("\n"))),i=i._parent;!function(e){for(var t=e[0],n=1;n<e.length;++n){for(var r=e[n],i=t.length-1,o=t[i],a=-1,s=r.length-1;s>=0;--s)if(r[s]===o){a=s;break}for(s=a;s>=0;--s){var l=r[s];if(t[i]!==l)break;t.pop(),i--}t=r}}(r),function(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}(r),c.notEnumerableProp(e,"stack",function(e,t){for(var n=0;n<t.length-1;++n)t[n].push("From previous event:"),t[n]=t[n].join("\n");return n<t.length&&(t[n]=t[n].join("\n")),e+"\n"+t.join("\n")}(n,r)),c.notEnumerableProp(e,"__stackCleaned__",!0)}};var Q=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():W(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,v=e,m=t;var n=Error.captureStackTrace;return Y=function(e){return d.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var r,i=new Error;if("string"==typeof i.stack&&i.stack.split("\n")[0].indexOf("stackDetection@")>=0)return v=/@/,m=t,g=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(e){r="stack"in e}return"stack"in i||!r||"number"!=typeof Error.stackTraceLimit?(m=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?W(t):t.toString()},null):(v=e,m=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(a=function(e){console.warn(e)},c.isNode&&t.stderr.isTTY?a=function(e,t){var n=t?"\x1b[33m":"\x1b[31m";console.warn(n+e+"\x1b[0m\n")}:c.isNode||"string"!=typeof(new Error).stack||(a=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var $={warnings:b,longStackTraces:!1,cancellation:!1,monitoring:!1};return _&&n.longStackTraces(),{longStackTraces:function(){return $.longStackTraces},warnings:function(){return $.warnings},cancellation:function(){return $.cancellation},monitoring:function(){return $.monitoring},propagateFromFunction:function(){return L},boundValueFunction:function(){return A},checkForgottenReturns:function(e,t,n,r,i){if(void 0===e&&null!==t&&x){if(void 0!==i&&i._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var o="",a="";if(t._trace){for(var s=t._trace.stack.split("\n"),l=B(s),u=l.length-1;u>=0;--u){var c=l[u];if(!h.test(c)){var f=c.match(p);f&&(o="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(l.length>0){var d=l[0];for(u=0;u<s.length;++u)if(s[u]===d){u>0&&(a="\n"+s[u-1]);break}}}var v="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(v,!0,t)}},setBounds:function(e,t){if(Z()){for(var n,r,i=e.stack.split("\n"),o=t.stack.split("\n"),a=-1,s=-1,l=0;l<i.length;++l)if(u=G(i[l])){n=u.fileName,a=u.line;break}for(l=0;l<o.length;++l){var u;if(u=G(o[l])){r=u.fileName,s=u.line;break}}a<0||s<0||!n||!r||n!==r||a>=s||(Y=function(e){if(d.test(e))return!0;var t=G(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}},warn:z,deprecated:function(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),z(n)},CapturedTrace:K,fireDomEvent:k,fireGlobalEvent:S}}},{"./errors":12,"./util":36}],10:[function(e,t,n){"use strict";t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1];return this.caught(e,(function(){throw t}))},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];return r instanceof e&&r.suppressUnhandledRejections(),this.caught(n,(function(){return r}))}}},{}],11:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.reduce,r=e.all;function i(){return r(this)}e.prototype.each=function(e){return n(this,e,t,0)._then(i,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return n(this,e,t,t)},e.each=function(e,r){return n(e,r,t,0)._then(i,void 0,void 0,e,void 0)},e.mapSeries=function(e,r){return n(e,r,t,t)}}},{}],12:[function(e,t,n){"use strict";var r,i,o=e("./es5"),a=o.freeze,s=e("./util"),l=s.inherits,u=s.notEnumerableProp;function c(e,t){function n(r){if(!(this instanceof n))return new n(r);u(this,"message","string"==typeof r?r:t),u(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return l(n,Error),n}var f=c("Warning","warning"),d=c("CancellationError","cancellation error"),h=c("TimeoutError","timeout error"),p=c("AggregateError","aggregate error");try{r=TypeError,i=RangeError}catch(e){r=c("TypeError","type error"),i=c("RangeError","range error")}for(var v="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),m=0;m<v.length;++m)"function"==typeof Array.prototype[v[m]]&&(p.prototype[v[m]]=Array.prototype[v[m]]);o.defineProperty(p.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),p.prototype.isOperational=!0;var g=0;function y(e){if(!(this instanceof y))return new y(e);u(this,"name","OperationalError"),u(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(u(this,"message",e.message),u(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}p.prototype.toString=function(){var e=Array(4*g+1).join(" "),t="\n"+e+"AggregateError of:\n";g++,e=Array(4*g+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",i=r.split("\n"),o=0;o<i.length;++o)i[o]=e+i[o];t+=(r=i.join("\n"))+"\n"}return g--,t},l(y,Error);var b=Error.__BluebirdErrorTypes__;b||(b=a({CancellationError:d,TimeoutError:h,OperationalError:y,RejectionError:y,AggregateError:p}),o.defineProperty(Error,"__BluebirdErrorTypes__",{value:b,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error:Error,TypeError:r,RangeError:i,CancellationError:b.CancellationError,OperationalError:b.OperationalError,TimeoutError:b.TimeoutError,AggregateError:b.AggregateError,Warning:f}},{"./es5":13,"./util":36}],13:[function(e,t,n){var r=function(){"use strict";return void 0===this}();if(r)t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(n&&!n.writable&&!n.set)}};else{var i={}.hasOwnProperty,o={}.toString,a={}.constructor.prototype,s=function(e){var t=[];for(var n in e)i.call(e,n)&&t.push(n);return t};t.exports={isArray:function(e){try{return"[object Array]"===o.call(e)}catch(e){return!1}},keys:s,names:s,defineProperty:function(e,t,n){return e[t]=n.value,e},getDescriptor:function(e,t){return{value:e[t]}},freeze:function(e){return e},getPrototypeOf:function(e){try{return Object(e).constructor.prototype}catch(e){return a}},isES5:r,propertyIsWritable:function(){return!0}}}},{}],14:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.map;e.prototype.filter=function(e,r){return n(this,e,r,t)},e.filter=function(e,r,i){return n(e,r,i,t)}}},{}],15:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=t.CancellationError,a=i.errorObj,s=e("./catch_filter")(r);function l(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}function u(e){this.finallyHandler=e}function c(e,t){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function f(){return h.call(this,this.promise._target()._settledValue())}function d(e){if(!c(this,e))return a.e=e,a}function h(e){var i=this.promise,s=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?s.call(i._boundValue()):s.call(i._boundValue(),e);if(l===r)return l;if(void 0!==l){i._setReturnedNonUndefined();var h=n(l,i);if(h instanceof t){if(null!=this.cancelPromise){if(h._isCancelled()){var p=new o("late cancellation observer");return i._attachExtraTrace(p),a.e=p,a}h.isPending()&&h._attachCancellationCallback(new u(this))}return h._then(f,d,void 0,this,void 0)}}}return i.isRejected()?(c(this),a.e=e,a):(c(this),e)}return l.prototype.isFinallyHandler=function(){return 0===this.type},u.prototype._resultCancelled=function(){c(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!=typeof e?this.then():this._then(n,r,void 0,new l(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,h,h)},t.prototype.tap=function(e){return this._passThrough(e,1,h)},t.prototype.tapCatch=function(e){var n=arguments.length;if(1===n)return this._passThrough(e,1,void 0,h);var r,o=new Array(n-1),a=0;for(r=0;r<n-1;++r){var l=arguments[r];if(!i.isObject(l))return t.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+i.classString(l)));o[a++]=l}o.length=a;var u=arguments[r];return this._passThrough(s(o,u,this),1,void 0,h)},l}},{"./catch_filter":7,"./util":36}],16:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./errors").TypeError,l=e("./util"),u=l.errorObj,c=l.tryCatch,f=[];function d(e,n,i,o){if(a.cancellation()){var s=new t(r),l=this._finallyPromise=new t(r);this._promise=s.lastly((function(){return l})),s._captureStackTrace(),s._setOnCancel(this)}else(this._promise=new t(r))._captureStackTrace();this._stack=o,this._generatorFunction=e,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof i?[i].concat(f):f,this._yieldedPromise=null,this._cancellationPhase=!1}l.inherits(d,o),d.prototype._isResolved=function(){return null===this._promise},d.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},d.prototype._promiseCancelled=function(){if(!this._isResolved()){var e;if(void 0!==this._generator.return)this._promise._pushContext(),e=c(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var n=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=n,this._promise._attachExtraTrace(n),this._promise._pushContext(),e=c(this._generator.throw).call(this._generator,n),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(e)}},d.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=c(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)},d.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();var t=c(this._generator.throw).call(this._generator,e);this._promise._popContext(),this._continue(t)},d.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var e=this._yieldedPromise;this._yieldedPromise=null,e.cancel()}},d.prototype.promise=function(){return this._promise},d.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},d.prototype._continue=function(e){var n=this._promise;if(e===u)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(e.e,!1);var r=e.value;if(!0===e.done)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(r);var o=i(r,this._promise);if(o instanceof t||null!==(o=function(e,n,r){for(var o=0;o<n.length;++o){r._pushContext();var a=c(n[o])(e);if(r._popContext(),a===u){r._pushContext();var s=t.reject(u.e);return r._popContext(),s}var l=i(a,r);if(l instanceof t)return l}return null}(o,this._yieldHandlers,this._promise))){var a=(o=o._target())._bitField;0==(50397184&a)?(this._yieldedPromise=o,o._proxy(this,null)):0!=(33554432&a)?t._async.invoke(this._promiseFulfilled,this,o._value()):0!=(16777216&a)?t._async.invoke(this._promiseRejected,this,o._reason()):this._promiseCancelled()}else this._promiseRejected(new s("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")))},t.coroutine=function(e,t){if("function"!=typeof e)throw new s("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(t).yieldHandler,r=d,i=(new Error).stack;return function(){var t=e.apply(this,arguments),o=new r(void 0,void 0,n,i),a=o.promise();return o._generator=t,o._promiseFulfilled(void 0),a}},t.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new s("expecting a function but got "+l.classString(e));f.push(e)},t.spawn=function(e){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof e)return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=new d(e,this),i=r.promise();return r._run(t.spawn),i}}},{"./errors":12,"./util":36}],17:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./util");s.canEvaluate,s.tryCatch,s.errorObj,t.join=function(){var e,t=arguments.length-1;t>0&&"function"==typeof arguments[t]&&(e=arguments[t]);var r=[].slice.call(arguments);e&&r.pop();var i=new n(r).promise();return void 0!==e?i.spread(e):i}}},{"./util":36}],18:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=t._getDomain,l=e("./util"),u=l.tryCatch,c=l.errorObj,f=t._async;function d(e,t,n,r){this.constructor$(e),this._promise._captureStackTrace();var i=s();this._callback=null===i?t:l.domainBind(i,t),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],f.invoke(this._asyncInit,this,void 0)}function h(e,n,i,o){if("function"!=typeof n)return r("expecting a function but got "+l.classString(n));var a=0;if(void 0!==i){if("object"!=typeof i||null===i)return t.reject(new TypeError("options argument must be an object but it is "+l.classString(i)));if("number"!=typeof i.concurrency)return t.reject(new TypeError("'concurrency' must be a number but it is "+l.classString(i.concurrency)));a=i.concurrency}return new d(e,n,a="number"==typeof a&&isFinite(a)&&a>=1?a:0,o).promise()}l.inherits(d,n),d.prototype._asyncInit=function(){this._init$(void 0,-2)},d.prototype._init=function(){},d.prototype._promiseFulfilled=function(e,n){var r=this._values,o=this.length(),s=this._preservedValues,l=this._limit;if(n<0){if(r[n=-1*n-1]=e,l>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(l>=1&&this._inFlight>=l)return r[n]=e,this._queue.push(n),!1;null!==s&&(s[n]=e);var f=this._promise,d=this._callback,h=f._boundValue();f._pushContext();var p=u(d).call(h,e,n,o),v=f._popContext();if(a.checkForgottenReturns(p,v,null!==s?"Promise.filter":"Promise.map",f),p===c)return this._reject(p.e),!0;var m=i(p,this._promise);if(m instanceof t){var g=(m=m._target())._bitField;if(0==(50397184&g))return l>=1&&this._inFlight++,r[n]=m,m._proxy(this,-1*(n+1)),!1;if(0==(33554432&g))return 0!=(16777216&g)?(this._reject(m._reason()),!0):(this._cancel(),!0);p=m._value()}r[n]=p}return++this._totalResolved>=o&&(null!==s?this._filter(r,s):this._resolve(r),!0)},d.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight<t;){if(this._isResolved())return;var r=e.pop();this._promiseFulfilled(n[r],r)}},d.prototype._filter=function(e,t){for(var n=t.length,r=new Array(n),i=0,o=0;o<n;++o)e[o]&&(r[i++]=t[o]);r.length=i,this._resolve(r)},d.prototype.preservedValues=function(){return this._preservedValues},t.prototype.map=function(e,t){return h(this,e,t,null)},t.map=function(e,t,n,r){return h(e,t,n,r)}}},{"./util":36}],19:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o){var a=e("./util"),s=a.tryCatch;t.method=function(e){if("function"!=typeof e)throw new t.TypeError("expecting a function but got "+a.classString(e));return function(){var r=new t(n);r._captureStackTrace(),r._pushContext();var i=s(e).apply(this,arguments),a=r._popContext();return o.checkForgottenReturns(i,a,"Promise.method",r),r._resolveFromSyncValue(i),r}},t.attempt=t.try=function(e){if("function"!=typeof e)return i("expecting a function but got "+a.classString(e));var r,l=new t(n);if(l._captureStackTrace(),l._pushContext(),arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],c=arguments[2];r=a.isArray(u)?s(e).apply(c,u):s(e).call(c,u)}else r=s(e)();var f=l._popContext();return o.checkForgottenReturns(r,f,"Promise.try",l),l._resolveFromSyncValue(r),l},t.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){"use strict";var r=e("./util"),i=r.maybeWrapAsError,o=e("./errors").OperationalError,a=e("./es5"),s=/^(?:name|message|stack|cause)$/;function l(e){var t;if(function(e){return e instanceof Error&&a.getPrototypeOf(e)===Error.prototype}(e)){(t=new o(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var n=a.keys(e),i=0;i<n.length;++i){var l=n[i];s.test(l)||(t[l]=e[l])}return t}return r.markAsOriginatingFromRejection(e),e}t.exports=function(e,t){return function(n,r){if(null!==e){if(n){var o=l(i(n));e._attachExtraTrace(o),e._reject(o)}else if(t){var a=[].slice.call(arguments,1);e._fulfill(a)}else e._fulfill(r);e=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(e,t,n){"use strict";t.exports=function(t){var n=e("./util"),r=t._async,i=n.tryCatch,o=n.errorObj;function a(e,t){if(!n.isArray(e))return s.call(this,e,t);var a=i(t).apply(this._boundValue(),[null].concat(e));a===o&&r.throwLater(a.e)}function s(e,t){var n=this._boundValue(),a=void 0===e?i(t).call(n,null):i(t).call(n,null,e);a===o&&r.throwLater(a.e)}function l(e,t){if(!e){var n=new Error(e+"");n.cause=e,e=n}var a=i(t).call(this._boundValue(),e);a===o&&r.throwLater(a.e)}t.prototype.asCallback=t.prototype.nodeify=function(e,t){if("function"==typeof e){var n=s;void 0!==t&&Object(t).spread&&(n=a),this._then(n,l,void 0,this,e)}return this}}},{"./util":36}],22:[function(e,n,r){"use strict";n.exports=function(){var r=function(){return new p("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},i=function(){return new O.PromiseInspection(this._target())},o=function(e){return O.reject(new p(e))};function a(){}var s,l={},u=e("./util");s=u.isNode?function(){var e=t.domain;return void 0===e&&(e=null),e}:function(){return null},u.notEnumerableProp(O,"_getDomain",s);var c=e("./es5"),f=e("./async"),d=new f;c.defineProperty(O,"_async",{value:d});var h=e("./errors"),p=O.TypeError=h.TypeError;O.RangeError=h.RangeError;var v=O.CancellationError=h.CancellationError;O.TimeoutError=h.TimeoutError,O.OperationalError=h.OperationalError,O.RejectionError=h.OperationalError,O.AggregateError=h.AggregateError;var m=function(){},g={},y={},b=e("./thenables")(O,m),_=e("./promise_array")(O,m,b,o,a),x=e("./context")(O),w=x.create,k=e("./debuggability")(O,x),S=(k.CapturedTrace,e("./finally")(O,b,y)),C=e("./catch_filter")(y),E=e("./nodeback"),T=u.errorObj,M=u.tryCatch;function O(e){e!==m&&function(e,t){if(null==e||e.constructor!==O)throw new p("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof t)throw new p("expecting a function but got "+u.classString(t))}(this,e),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(e),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function P(e){this.promise._resolveCallback(e)}function j(e){this.promise._rejectCallback(e,!1)}function N(e){var t=new O(m);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}return O.prototype.toString=function(){return"[object Promise]"},O.prototype.caught=O.prototype.catch=function(e){var t=arguments.length;if(t>1){var n,r=new Array(t-1),i=0;for(n=0;n<t-1;++n){var a=arguments[n];if(!u.isObject(a))return o("Catch statement predicate: expecting an object but got "+u.classString(a));r[i++]=a}return r.length=i,e=arguments[n],this.then(void 0,C(r,e,this))}return this.then(void 0,e)},O.prototype.reflect=function(){return this._then(i,i,void 0,this,void 0)},O.prototype.then=function(e,t){if(k.warnings()&&arguments.length>0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+u.classString(e);arguments.length>1&&(n+=", "+u.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},O.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},O.prototype.spread=function(e){return"function"!=typeof e?o("expecting a function but got "+u.classString(e)):this.all()._then(e,void 0,void 0,g,void 0)},O.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},O.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new _(this).promise()},O.prototype.error=function(e){return this.caught(u.originatesFromRejection,e)},O.getNewLibraryCopy=n.exports,O.is=function(e){return e instanceof O},O.fromNode=O.fromCallback=function(e){var t=new O(m);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=M(e)(E(t,n));return r===T&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},O.all=function(e){return new _(e).promise()},O.cast=function(e){var t=b(e);return t instanceof O||((t=new O(m))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},O.resolve=O.fulfilled=O.cast,O.reject=O.rejected=function(e){var t=new O(m);return t._captureStackTrace(),t._rejectCallback(e,!0),t},O.setScheduler=function(e){if("function"!=typeof e)throw new p("expecting a function but got "+u.classString(e));return d.setScheduler(e)},O.prototype._then=function(e,t,n,r,i){var o=void 0!==i,a=o?i:new O(m),l=this._target(),c=l._bitField;o||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&c)?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var f=s();if(0!=(50397184&c)){var h,p,g=l._settlePromiseCtx;0!=(33554432&c)?(p=l._rejectionHandler0,h=e):0!=(16777216&c)?(p=l._fulfillmentHandler0,h=t,l._unsetRejectionIsUnhandled()):(g=l._settlePromiseLateCancellationObserver,p=new v("late cancellation observer"),l._attachExtraTrace(p),h=t),d.invoke(g,l,{handler:null===f?h:"function"==typeof h&&u.domainBind(f,h),promise:a,receiver:r,value:p})}else l._addCallbacks(e,t,a,r,f);return a},O.prototype._length=function(){return 65535&this._bitField},O.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},O.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},O.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},O.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},O.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},O.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},O.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},O.prototype._isFinal=function(){return(4194304&this._bitField)>0},O.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},O.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},O.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},O.prototype._setAsyncGuaranteed=function(){d.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},O.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==l)return void 0===t&&this._isBound()?this._boundValue():t},O.prototype._promiseAt=function(e){return this[4*e-4+2]},O.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},O.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},O.prototype._boundValue=function(){},O.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,r=e._promise0,i=e._receiverAt(0);void 0===i&&(i=l),this._addCallbacks(t,n,r,i,null)},O.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),i=e._promiseAt(t),o=e._receiverAt(t);void 0===o&&(o=l),this._addCallbacks(n,r,i,o,null)},O.prototype._addCallbacks=function(e,t,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof e&&(this._fulfillmentHandler0=null===i?e:u.domainBind(i,e)),"function"==typeof t&&(this._rejectionHandler0=null===i?t:u.domainBind(i,t));else{var a=4*o-4;this[a+2]=n,this[a+3]=r,"function"==typeof e&&(this[a+0]=null===i?e:u.domainBind(i,e)),"function"==typeof t&&(this[a+1]=null===i?t:u.domainBind(i,t))}return this._setLength(o+1),o},O.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},O.prototype._resolveCallback=function(e,t){if(0==(117506048&this._bitField)){if(e===this)return this._rejectCallback(r(),!1);var n=b(e,this);if(!(n instanceof O))return this._fulfill(e);t&&this._propagateFrom(n,2);var i=n._target();if(i!==this){var o=i._bitField;if(0==(50397184&o)){var a=this._length();a>0&&i._migrateCallback0(this);for(var s=1;s<a;++s)i._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(i)}else if(0!=(33554432&o))this._fulfill(i._value());else if(0!=(16777216&o))this._reject(i._reason());else{var l=new v("late cancellation observer");i._attachExtraTrace(l),this._reject(l)}}else this._reject(r())}},O.prototype._rejectCallback=function(e,t,n){var r=u.ensureErrorObject(e),i=r===e;if(!i&&!n&&k.warnings()){var o="a promise was rejected with a non-error: "+u.classString(e);this._warn(o,!0)}this._attachExtraTrace(r,!!t&&i),this._reject(e)},O.prototype._resolveFromExecutor=function(e){if(e!==m){var t=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(e,(function(e){t._resolveCallback(e)}),(function(e){t._rejectCallback(e,n)}));n=!1,this._popContext(),void 0!==r&&t._rejectCallback(r,!0)}},O.prototype._settlePromiseFromHandler=function(e,t,n,r){var i=r._bitField;if(0==(65536&i)){var o;r._pushContext(),t===g?n&&"number"==typeof n.length?o=M(e).apply(this._boundValue(),n):(o=T).e=new p("cannot .spread() a non-array: "+u.classString(n)):o=M(e).call(t,n);var a=r._popContext();0==(65536&(i=r._bitField))&&(o===y?r._reject(n):o===T?r._rejectCallback(o.e,!1):(k.checkForgottenReturns(o,a,"",r,this),r._resolveCallback(o)))}},O.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},O.prototype._followee=function(){return this._rejectionHandler0},O.prototype._setFollowee=function(e){this._rejectionHandler0=e},O.prototype._settlePromise=function(e,t,n,r){var o=e instanceof O,s=this._bitField,l=0!=(134217728&s);0!=(65536&s)?(o&&e._invokeInternalOnCancel(),n instanceof S&&n.isFinallyHandler()?(n.cancelPromise=e,M(t).call(n,r)===T&&e._reject(T.e)):t===i?e._fulfill(i.call(n)):n instanceof a?n._promiseCancelled(e):o||e instanceof _?e._cancel():n.cancel()):"function"==typeof t?o?(l&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,n,r,e)):t.call(n,r,e):n instanceof a?n._isResolved()||(0!=(33554432&s)?n._promiseFulfilled(r,e):n._promiseRejected(r,e)):o&&(l&&e._setAsyncGuaranteed(),0!=(33554432&s)?e._fulfill(r):e._reject(r))},O.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,n=e.promise,r=e.receiver,i=e.value;"function"==typeof t?n instanceof O?this._settlePromiseFromHandler(t,r,i,n):t.call(r,i,n):n instanceof O&&n._reject(i)},O.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},O.prototype._settlePromise0=function(e,t,n){var r=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,e,i,t)},O.prototype._clearCallbackDataAtIndex=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},O.prototype._fulfill=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(e===this){var n=r();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!=(134217728&t)?this._settlePromises():d.settlePromises(this))}},O.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return d.fatalError(e,u.isNode);(65535&t)>0?d.settlePromises(this):this._ensurePossibleRejectionHandled()}},O.prototype._fulfillPromises=function(e,t){for(var n=1;n<e;n++){var r=this._fulfillmentHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,t)}},O.prototype._rejectPromises=function(e,t){for(var n=1;n<e;n++){var r=this._rejectionHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,t)}},O.prototype._settlePromises=function(){var e=this._bitField,t=65535&e;if(t>0){if(0!=(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},O.prototype._settledValue=function(){var e=this._bitField;return 0!=(33554432&e)?this._rejectionHandler0:0!=(16777216&e)?this._fulfillmentHandler0:void 0},O.defer=O.pending=function(){return k.deprecated("Promise.defer","new Promise"),{promise:new O(m),resolve:P,reject:j}},u.notEnumerableProp(O,"_makeSelfResolutionError",r),e("./method")(O,m,b,o,k),e("./bind")(O,m,b,k),e("./cancel")(O,_,o,k),e("./direct_resolve")(O),e("./synchronous_inspection")(O),e("./join")(O,_,b,m,d,s),O.Promise=O,O.version="3.5.1",e("./map.js")(O,_,o,b,m,k),e("./call_get.js")(O),e("./using.js")(O,o,b,w,m,k),e("./timers.js")(O,m,k),e("./generators.js")(O,o,m,b,a,k),e("./nodeify.js")(O),e("./promisify.js")(O,m),e("./props.js")(O,_,b,o),e("./race.js")(O,m,b,o),e("./reduce.js")(O,_,o,b,m,k),e("./settle.js")(O,_,k),e("./some.js")(O,_,o),e("./filter.js")(O,m),e("./each.js")(O,m),e("./any.js")(O),u.toFastProperties(O),u.toFastProperties(O.prototype),N({a:1}),N({b:2}),N({c:3}),N(1),N((function(){})),N(void 0),N(!1),N(new O(m)),k.setBounds(f.firstLineError,u.lastLineError),O}},{"./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(e,t,n){"use strict";t.exports=function(t,n,r,i,o){var a=e("./util");function s(e){var r=this._promise=new t(n);e instanceof t&&r._propagateFrom(e,3),r._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.isArray,a.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function e(n,o){var s=r(this._values,this._promise);if(s instanceof t){var l=(s=s._target())._bitField;if(this._values=s,0==(50397184&l))return this._promise._setAsyncGuaranteed(),s._then(e,this._reject,void 0,this,o);if(0==(33554432&l))return 0!=(16777216&l)?this._reject(s._reason()):this._cancel();s=s._value()}if(null!==(s=a.asArray(s)))0!==s.length?this._iterate(s):-5===o?this._resolveEmptyArray():this._resolve(function(e){switch(o){case-2:return[];case-3:return{};case-6:return new Map}}());else{var u=i("expecting an array or an iterable object but got "+a.classString(s)).reason();this._promise._rejectCallback(u,!1)}},s.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,a=null,s=0;s<n;++s){var l=r(e[s],i);a=l instanceof t?(l=l._target())._bitField:null,o?null!==a&&l.suppressUnhandledRejections():null!==a?0==(50397184&a)?(l._proxy(this,s),this._values[s]=l):o=0!=(33554432&a)?this._promiseFulfilled(l._value(),s):0!=(16777216&a)?this._promiseRejected(l._reason(),s):this._promiseCancelled(s):o=this._promiseFulfilled(l,s)}o||i._setAsyncGuaranteed()},s.prototype._isResolved=function(){return null===this._values},s.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},s.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},s.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},s.prototype._promiseFulfilled=function(e,t){return this._values[t]=e,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n<e.length;++n)e[n]instanceof t&&e[n].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(e){return e},s}},{"./util":36}],24:[function(e,t,n){"use strict";t.exports=function(t,n){var r={},i=e("./util"),o=e("./nodeback"),a=i.withAppended,s=i.maybeWrapAsError,l=i.canEvaluate,u=e("./errors").TypeError,c={__isPromisified__:!0},f=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),d=function(e){return i.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e};function h(e){return!f.test(e)}function p(e){try{return!0===e.__isPromisified__}catch(e){return!1}}function v(e,t,n){var r=i.getDataPropertyOrDefault(e,t+n,c);return!!r&&p(r)}function m(e,t,n,r){for(var o=i.inheritedDataKeys(e),a=[],s=0;s<o.length;++s){var l=o[s],c=e[l],f=r===d||d(l);"function"!=typeof c||p(c)||v(e,l,t)||!r(l,c,e,f)||a.push(l,c)}return function(e,t,n){for(var r=0;r<e.length;r+=2){var i=e[r];if(n.test(i))for(var o=i.replace(n,""),a=0;a<e.length;a+=2)if(e[a]===o)throw new u("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",t))}}(a,t,n),a}var g=l?void 0:function(e,l,u,c,f,d){var h=function(){return this}(),p=e;function v(){var i=l;l===r&&(i=this);var u=new t(n);u._captureStackTrace();var c="string"==typeof p&&this!==h?this[p]:e,f=o(u,d);try{c.apply(i,a(arguments,f))}catch(e){u._rejectCallback(s(e),!0,!0)}return u._isFateSealed()||u._setAsyncGuaranteed(),u}return"string"==typeof p&&(e=c),i.notEnumerableProp(v,"__isPromisified__",!0),v};function y(e,t,n,o,a){for(var s=new RegExp(function(e){return e.replace(/([$])/,"\\$")}(t)+"$"),l=m(e,t,s,n),u=0,c=l.length;u<c;u+=2){var f=l[u],d=l[u+1],h=f+t;if(o===g)e[h]=g(f,r,f,d,t,a);else{var p=o(d,(function(){return g(f,r,f,d,t,a)}));i.notEnumerableProp(p,"__isPromisified__",!0),e[h]=p}}return i.toFastProperties(e),e}t.promisify=function(e,t){if("function"!=typeof e)throw new u("expecting a function but got "+i.classString(e));if(p(e))return e;var n=void 0===(t=Object(t)).context?r:t.context,o=!!t.multiArgs,a=function(e,t,n){return g(e,t,void 0,e,null,o)}(e,n);return i.copyDescriptors(e,a,h),a},t.promisifyAll=function(e,t){if("function"!=typeof e&&"object"!=typeof e)throw new u("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var n=!!(t=Object(t)).multiArgs,r=t.suffix;"string"!=typeof r&&(r="Async");var o=t.filter;"function"!=typeof o&&(o=d);var a=t.promisifier;if("function"!=typeof a&&(a=g),!i.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var s=i.inheritedDataKeys(e),l=0;l<s.length;++l){var c=e[s[l]];"constructor"!==s[l]&&i.isClass(c)&&(y(c.prototype,r,o,a,n),y(c,r,o,a,n))}return y(e,r,o,a,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o,a=e("./util"),s=a.isObject,l=e("./es5");"function"==typeof Map&&(o=Map);var u=function(){var e=0,t=0;function n(n,r){this[e]=n,this[e+t]=r,e++}return function(r){t=r.size,e=0;var i=new Array(2*r.size);return r.forEach(n,i),i}}();function c(e){var t,n=!1;if(void 0!==o&&e instanceof o)t=u(e),n=!0;else{var r=l.keys(e),i=r.length;t=new Array(2*i);for(var a=0;a<i;++a){var s=r[a];t[a]=e[s],t[a+i]=s}}this.constructor$(t),this._isMap=n,this._init$(void 0,n?-6:-3)}function f(e){var n,o=r(e);return s(o)?(n=o instanceof t?o._then(t.props,void 0,void 0,void 0,void 0):new c(o).promise(),o instanceof t&&n._propagateFrom(o,2),n):i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}a.inherits(c,n),c.prototype._init=function(){},c.prototype._promiseFulfilled=function(e,t){if(this._values[t]=e,++this._totalResolved>=this._length){var n;if(this._isMap)n=function(e){for(var t=new o,n=e.length/2|0,r=0;r<n;++r){var i=e[n+r],a=e[r];t.set(i,a)}return t}(this._values);else{n={};for(var r=this.length(),i=0,a=this.length();i<a;++i)n[this._values[i+r]]=this._values[i]}return this._resolve(n),!0}return!1},c.prototype.shouldCopyValues=function(){return!1},c.prototype.getActualLength=function(e){return e>>1},t.prototype.props=function(){return f(this)},t.props=function(e){return f(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,n){"use strict";function r(e){this._capacity=e,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(e){return this._capacity<e},r.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1),this[this._front+t&this._capacity-1]=e,this._length=t+1},r.prototype.push=function(e,t,n){var r=this.length()+3;if(this._willBeOverCapacity(r))return this._pushOne(e),this._pushOne(t),void this._pushOne(n);var i=this._front+r-3;this._checkCapacity(r);var o=this._capacity-1;this[i+0&o]=e,this[i+1&o]=t,this[i+2&o]=n,this._length=r},r.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t},r.prototype.length=function(){return this._length},r.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},r.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e,function(e,t,n,r,i){for(var o=0;o<i;++o)n[o+r]=e[o+0],e[o+0]=void 0}(this,0,this,t,this._front+this._length&t-1)},t.exports=r},{}],27:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o=e("./util"),a=function(e){return e.then((function(t){return s(t,e)}))};function s(e,s){var l=r(e);if(l instanceof t)return a(l);if(null===(e=o.asArray(e)))return i("expecting an array or an iterable object but got "+o.classString(e));var u=new t(n);void 0!==s&&u._propagateFrom(s,3);for(var c=u._fulfill,f=u._reject,d=0,h=e.length;d<h;++d){var p=e[d];(void 0!==p||d in e)&&t.cast(p)._then(c,f,void 0,u,null)}return u}t.race=function(e){return s(e,void 0)},t.prototype.race=function(){return s(this,void 0)}}},{"./util":36}],28:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=t._getDomain,l=e("./util"),u=l.tryCatch;function c(e,n,r,i){this.constructor$(e);var a=s();this._fn=null===a?n:l.domainBind(a,n),void 0!==r&&(r=t.resolve(r))._attachCancellationCallback(this),this._initialValue=r,this._currentCancellable=null,this._eachValues=i===o?Array(this._length):0===i?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function f(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function d(e,t,n,i){return"function"!=typeof t?r("expecting a function but got "+l.classString(t)):new c(e,t,n,i).promise()}function h(e){this.accum=e,this.array._gotAccum(e);var n=i(this.value,this.array._promise);return n instanceof t?(this.array._currentCancellable=n,n._then(p,void 0,void 0,this,void 0)):p.call(this,n)}function p(e){var n,r=this.array,i=r._promise,o=u(r._fn);i._pushContext(),(n=void 0!==r._eachValues?o.call(i._boundValue(),e,this.index,this.length):o.call(i._boundValue(),this.accum,e,this.index,this.length))instanceof t&&(r._currentCancellable=n);var s=i._popContext();return a.checkForgottenReturns(n,s,void 0!==r._eachValues?"Promise.each":"Promise.reduce",i),n}l.inherits(c,n),c.prototype._gotAccum=function(e){void 0!==this._eachValues&&null!==this._eachValues&&e!==o&&this._eachValues.push(e)},c.prototype._eachComplete=function(e){return null!==this._eachValues&&this._eachValues.push(e),this._eachValues},c.prototype._init=function(){},c.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},c.prototype.shouldCopyValues=function(){return!1},c.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},c.prototype._resultCancelled=function(e){if(e===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof t&&this._currentCancellable.cancel(),this._initialValue instanceof t&&this._initialValue.cancel())},c.prototype._iterate=function(e){var n,r;this._values=e;var i=e.length;if(void 0!==this._initialValue?(n=this._initialValue,r=0):(n=t.resolve(e[0]),r=1),this._currentCancellable=n,!n.isRejected())for(;r<i;++r){var o={accum:null,value:e[r],index:r,length:i,array:this};n=n._then(h,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(f,f,void 0,n,this)},t.prototype.reduce=function(e,t){return d(this,e,t,null)},t.reduce=function(e,t,n,r){return d(e,t,n,r)}}},{"./util":36}],29:[function(e,i,o){"use strict";var a,s=e("./util"),l=s.getNativePromise();if(s.isNode&&"undefined"==typeof MutationObserver){var u=n.setImmediate,c=t.nextTick;a=s.isRecentNode?function(e){u.call(n,e)}:function(e){c.call(t,e)}}else if("function"==typeof l&&"function"==typeof l.resolve){var f=l.resolve();a=function(e){f.then(e)}}else a="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)?void 0!==r?function(e){r(e)}:"undefined"!=typeof setTimeout?function(e){setTimeout(e,0)}:function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}:function(){var e=document.createElement("div"),t={attributes:!0},n=!1,r=document.createElement("div");return new MutationObserver((function(){e.classList.toggle("foo"),n=!1})).observe(r,t),function(i){var o=new MutationObserver((function(){o.disconnect(),i()}));o.observe(e,t),n||(n=!0,r.classList.toggle("foo"))}}();i.exports=a},{"./util":36}],30:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=t.PromiseInspection;function o(e){this.constructor$(e)}e("./util").inherits(o,n),o.prototype._promiseResolved=function(e,t){return this._values[e]=t,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},o.prototype._promiseFulfilled=function(e,t){var n=new i;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},o.prototype._promiseRejected=function(e,t){var n=new i;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return r.deprecated(".settle()",".reflect()"),new o(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=e("./errors").RangeError,a=e("./errors").AggregateError,s=i.isArray,l={};function u(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function c(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new u(e),i=n.promise();return n.setHowMany(t),n.init(),i}i.inherits(u,n),u.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=s(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(e){this._howMany=e},u.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},u.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new a,t=this.length();t<this._values.length;++t)this._values[t]!==l&&e.push(this._values[t]);return e.length>0?this._reject(e):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(e){this._values.push(e)},u.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new o(t)},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return c(e,t)},t.prototype.some=function(e){return c(this,e)},t._SomePromiseArray=u}},{"./errors":12,"./util":36}],32:[function(e,t,n){"use strict";t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),r.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){"use strict";t.exports=function(t,n){var r=e("./util"),i=r.errorObj,o=r.isObject,a={}.hasOwnProperty;return function(e,s){if(o(e)){if(e instanceof t)return e;var l=function(e){try{return function(e){return e.then}(e)}catch(e){return i.e=e,i}}(e);if(l===i){s&&s._pushContext();var u=t.reject(l.e);return s&&s._popContext(),u}if("function"==typeof l)return function(e){try{return a.call(e,"_promise0")}catch(e){return!1}}(e)?(u=new t(n),e._then(u._fulfill,u._reject,void 0,u,null),u):function(e,o,a){var s=new t(n),l=s;a&&a._pushContext(),s._captureStackTrace(),a&&a._popContext();var u=!0,c=r.tryCatch(o).call(e,(function(e){s&&(s._resolveCallback(e),s=null)}),(function(e){s&&(s._rejectCallback(e,u,!0),s=null)}));return u=!1,s&&c===i&&(s._rejectCallback(c.e,!0,!0),s=null),l}(e,l,s)}return e}}},{"./util":36}],34:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=t.TimeoutError;function a(e){this.handle=e}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(e){return l(+this).thenReturn(e)},l=t.delay=function(e,i){var o,l;return void 0!==i?(o=t.resolve(i)._then(s,null,null,e,void 0),r.cancellation()&&i instanceof t&&o._setOnCancel(i)):(o=new t(n),l=setTimeout((function(){o._fulfill()}),+e),r.cancellation()&&o._setOnCancel(new a(l)),o._captureStackTrace()),o._setAsyncGuaranteed(),o};function u(e){return clearTimeout(this.handle),e}function c(e){throw clearTimeout(this.handle),e}t.prototype.delay=function(e){return l(e,this)},t.prototype.timeout=function(e,t){var n,s;e=+e;var l=new a(setTimeout((function(){n.isPending()&&function(e,t,n){var r;r="string"!=typeof t?t instanceof Error?t:new o("operation timed out"):new o(t),i.markAsOriginatingFromRejection(r),e._attachExtraTrace(r),e._reject(r),null!=n&&n.cancel()}(n,t,s)}),e));return r.cancellation()?(s=this.then(),(n=s._then(u,c,void 0,l,void 0))._setOnCancel(l)):n=this._then(u,c,void 0,l,void 0),n}}},{"./util":36}],35:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./util"),l=e("./errors").TypeError,u=e("./util").inherits,c=s.errorObj,f=s.tryCatch,d={};function h(e){setTimeout((function(){throw e}),0)}function p(e,n){var i=0,a=e.length,s=new t(o);return function o(){if(i>=a)return s._fulfill();var l=function(e){var t=r(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}(e[i++]);if(l instanceof t&&l._isDisposable()){try{l=r(l._getDisposer().tryDispose(n),e.promise)}catch(e){return h(e)}if(l instanceof t)return l._then(o,h,null,null,null)}o()}(),s}function v(e,t,n){this._data=e,this._promise=t,this._context=n}function m(e,t,n){this.constructor$(e,t,n)}function g(e){return v.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function y(e){this.length=e,this.promise=null,this[e-1]=null}v.prototype.data=function(){return this._data},v.prototype.promise=function(){return this._promise},v.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():d},v.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=t!==d?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},v.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},u(m,v),m.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},y.prototype._resultCancelled=function(){for(var e=this.length,n=0;n<e;++n){var r=this[n];r instanceof t&&r.cancel()}},t.using=function(){var e=arguments.length;if(e<2)return n("you must pass at least 2 arguments to Promise.using");var i,o=arguments[e-1];if("function"!=typeof o)return n("expecting a function but got "+s.classString(o));var l=!0;2===e&&Array.isArray(arguments[0])?(e=(i=arguments[0]).length,l=!1):(i=arguments,e--);for(var u=new y(e),d=0;d<e;++d){var h=i[d];if(v.isDisposer(h)){var m=h;(h=h.promise())._setDisposable(m)}else{var b=r(h);b instanceof t&&(h=b._then(g,null,null,{resources:u,index:d},void 0))}u[d]=h}var _=new Array(u.length);for(d=0;d<_.length;++d)_[d]=t.resolve(u[d]).reflect();var x=t.all(_).then((function(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.isRejected())return c.e=n.error(),c;if(!n.isFulfilled())return void x.cancel();e[t]=n.value()}w._pushContext(),o=f(o);var r=l?o.apply(void 0,e):o(e),i=w._popContext();return a.checkForgottenReturns(r,i,"Promise.using",w),r})),w=x.lastly((function(){var e=new t.PromiseInspection(x);return p(u,e)}));return u.promise=w,w._setOnCancel(u),w},t.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},t.prototype._isDisposable=function(){return(131072&this._bitField)>0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"==typeof e)return new m(e,this,i());throw new l}}},{"./errors":12,"./util":36}],36:[function(e,r,i){"use strict";var o,a=e("./es5"),s="undefined"==typeof navigator,l={e:{}},u="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:void 0!==this?this:null;function c(){try{var e=o;return o=null,e.apply(this,arguments)}catch(e){return l.e=e,l}}function f(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function d(e,t,n){if(f(e))return e;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return a.defineProperty(e,t,r),e}var h=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1};if(a.isES5){var n=Object.getOwnPropertyNames;return function(e){for(var r=[],i=Object.create(null);null!=e&&!t(e);){var o;try{o=n(e)}catch(e){return r}for(var s=0;s<o.length;++s){var l=o[s];if(!i[l]){i[l]=!0;var u=Object.getOwnPropertyDescriptor(e,l);null!=u&&null==u.get&&null==u.set&&r.push(l)}}e=a.getPrototypeOf(e)}return r}}var r={}.hasOwnProperty;return function(n){if(t(n))return[];var i=[];e:for(var o in n)if(r.call(n,o))i.push(o);else{for(var a=0;a<e.length;++a)if(r.call(e[a],o))continue e;i.push(o)}return i}}(),p=/this\s*\.\s*\S+\s*=/,v=/^[a-z$_][a-z$_0-9]*$/i;function m(e){try{return e+""}catch(e){return"[no string representation]"}}function g(e){return e instanceof Error||null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name}function y(e){return g(e)&&a.propertyIsWritable(e,"stack")}var b="stack"in new Error?function(e){return y(e)?e:new Error(m(e))}:function(e){if(y(e))return e;try{throw new Error(m(e))}catch(e){return e}};function _(e){return{}.toString.call(e)}var x=function(e){return a.isArray(e)?e:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var w="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){for(var t,n=[],r=e[Symbol.iterator]();!(t=r.next()).done;)n.push(t.value);return n};x=function(e){return a.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?w(e):null}}var k=void 0!==t&&"[object process]"===_(t).toLowerCase(),S=void 0!==t&&void 0!==t.env,C={isClass:function(e){try{if("function"==typeof e){var t=a.names(e.prototype),n=a.isES5&&t.length>1,r=t.length>0&&!(1===t.length&&"constructor"===t[0]),i=p.test(e+"")&&a.names(e).length>0;if(n||r||i)return!0}return!1}catch(e){return!1}},isIdentifier:function(e){return v.test(e)},inheritedDataKeys:h,getDataPropertyOrDefault:function(e,t,n){if(!a.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;var r=Object.getOwnPropertyDescriptor(e,t);return null!=r?null==r.get&&null==r.set?r.value:n:void 0},thrower:function(e){throw e},isArray:a.isArray,asArray:x,notEnumerableProp:d,isPrimitive:f,isObject:function(e){return"function"==typeof e||"object"==typeof e&&null!==e},isError:g,canEvaluate:s,errorObj:l,tryCatch:function(e){return o=e,c},inherits:function(e,t){var n={}.hasOwnProperty;function r(){for(var r in this.constructor=e,this.constructor$=t,t.prototype)n.call(t.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=t.prototype[r])}return r.prototype=t.prototype,e.prototype=new r,e.prototype},withAppended:function(e,t){var n,r=e.length,i=new Array(r+1);for(n=0;n<r;++n)i[n]=e[n];return i[n]=t,i},maybeWrapAsError:function(e){return f(e)?new Error(m(e)):e},toFastProperties:function(e){function t(){}t.prototype=e;for(var n=8;n--;)new t;return e},filledRange:function(e,t,n){for(var r=new Array(e),i=0;i<e;++i)r[i]=t+i+n;return r},toString:m,canAttachTrace:y,ensureErrorObject:b,originatesFromRejection:function(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===e.isOperational)},markAsOriginatingFromRejection:function(e){try{d(e,"isOperational",!0)}catch(e){}},classString:_,copyDescriptors:function(e,t,n){for(var r=a.names(e),i=0;i<r.length;++i){var o=r[i];if(n(o))try{a.defineProperty(t,o,a.getDescriptor(e,o))}catch(e){}}},hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:k,hasEnvVariables:S,env:function(e){return S?t.env[e]:void 0},global:u,getNativePromise:function(){if("function"==typeof Promise)try{var e=new Promise((function(){}));if("[object Promise]"==={}.toString.call(e))return Promise}catch(e){}},domainBind:function(e,t){return e.bind(t)}};C.isRecentNode=C.isNode&&function(){var e=t.versions.node.split(".").map(Number);return 0===e[0]&&e[1]>10||e[0]>0}(),C.isNode&&C.toFastProperties(t);try{throw new Error}catch(e){C.lastLineError=e}r.exports=C},{"./es5":13}]},{},[4])(4),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!t.eol&&e)for(var n=0,r=e.length;n<r;n++)if("\r"===e[n]){if("\n"===e[n+1]){t.eol="\r\n";break}if(e[n+1]){t.eol="\r";break}}else if("\n"===e[n]){t.eol="\n";break}return t.eol||"\n"}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(19).Symbol;e.exports=r},function(e,t,n){var r=n(67),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(30),i=n(76);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){"use strict";(function(t,r){var i=n(6);e.exports=b;var o,a=n(37);b.ReadableState=y,n(12).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(24),u=n(7).Buffer,c=t.Uint8Array||function(){},f=n(5);f.inherits=n(2);var d=n(41),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,v=n(42),m=n(25);f.inherits(b,l);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(o=o||n(1));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,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=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(26).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||n(1),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function _(e,t,n,r,i){var o,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,S(e)}}(e,a)):(i||(o=function(e,t){var n;return function(e){return u.isBuffer(e)||e instanceof c}(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):x(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?x(e,a,t,!1):E(e,a)):x(e,a,t,!1))):r||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function x(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&S(e)),E(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},b.prototype.unshift=function(e){return _(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return p||(p=n(26).StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};var w=8388608;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=w?e=w:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(C,e):C(e))}function C(e){h("emit readable"),e.emit("readable"),P(e)}function E(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(T,e,t))}function T(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function M(e){h("readable nexttick read 0"),e.read(0)}function O(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function j(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0==(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function N(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(D,t,e))}function D(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):S(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&N(this),null;var r,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?j(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&N(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var l=t&&!1===t.end||e===r.stdout||e===r.stderr?y:u;function u(){h("onend"),e.end()}o.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",(function t(r,i){h("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,h("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",c),e.removeListener("error",v),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",p),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,P(e))}}(n);e.on("drain",c);var f=!1,d=!1;function p(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==R(o.pipes,e))&&!f&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,d=!0),n.pause())}function v(t){h("onerror",t),y(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",g),y()}function g(){h("onfinish"),e.removeListener("close",m),y()}function y(){h("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",v),e.once("close",m),e.once("finish",g),e.emit("pipe",n),o.flowing||(h("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=R(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},b.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&S(this):i.nextTick(M,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(O,e,t))}(this,e)),this},b.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<g.length;o++)e.on(g[o],this.emit.bind(this,g[o]));return this._read=function(t){h("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=j}).call(this,n(0),n(4))},function(e,t,n){e.exports=n(12).EventEmitter},function(e,t,n){"use strict";var r=n(6);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),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){"use strict";var r=n(7).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.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(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=o;var r=n(1),i=n(5);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:function(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){s(e,t,n)})):s(this,null,null)}function s(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(t){var n=e.byteLength(t),r=e.allocUnsafe?e.allocUnsafe(n):new e(n);return r.write(t),r},t.emptyBuffer=function(){return e.allocUnsafe?e.allocUnsafe(0):new e(0)},t.filterArray=function(e,t){for(var n=[],r=0;r<e.length;r++)t.indexOf(r)>-1&&n.push(e[r]);return n},t.trimLeft=String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(e){return e.trimRight()}:function(e){return e.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var i=e.call(this,"Error: "+t+". JSON Line number: "+n+(r?" near: "+r:""))||this;return i.err=t,i.line=n,i.extra=r,i.name="CSV Parse Error",i}return r(t,e),t.column_mismatched=function(e,n){return new t("column_mismatched",e,n)},t.unclosed_quote=function(e,n){return new t("unclosed_quote",e,n)},t.fromJSON=function(e){return new t(e.err,e.line,e.extra)},t.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},t}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){e.exports=n(33)},function(e,t,n){"use strict";var r=n(34),i=function(e,t){return new r.Converter(e,t)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){"use strict";(function(e){var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(36),a=n(50),s=n(51),l=i(n(15)),u=n(52),c=n(105),f=function(t){function i(n,r){void 0===r&&(r={});var i=t.call(this,r)||this;return i.options=r,i.params=a.mergeParams(n),i.runtime=s.initParseRuntime(i),i.result=new c.Result(i),i.processor=new u.ProcessorLocal(i),i.once("error",(function(t){e((function(){i.result.processError(t),i.emit("done",t)}))})),i.once("done",(function(){i.processor.destroy()})),i}return r(i,t),i.prototype.preRawData=function(e){return this.runtime.preRawDataHook=e,this},i.prototype.preFileLine=function(e){return this.runtime.preFileLineHook=e,this},i.prototype.subscribe=function(e,t,n){return this.parseRuntime.subscribe={onNext:e,onError:t,onCompleted:n},this},i.prototype.fromFile=function(e,t){var r=this,i=n(!function(){var e=new Error("Cannot find module 'fs'");throw e.code="MODULE_NOT_FOUND",e}());return i.exists(e,(function(n){n?i.createReadStream(e,t).pipe(r):r.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))})),this},i.prototype.fromStream=function(e){return e.pipe(this),this},i.prototype.fromString=function(e){e.toString();var t=new o.Readable,n=0;return t._read=function(t){if(n>=e.length)this.push(null);else{var r=e.substr(n,t);this.push(r),n+=t}},this.fromStream(t)},i.prototype.then=function(e,t){var n=this;return new l.default((function(r,i){n.parseRuntime.then={onfulfilled:function(t){r(e?e(t):t)},onrejected:function(e){t?r(t(e)):i(e)}}}))},Object.defineProperty(i.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),i.prototype._transform=function(e,t,n){var r=this;this.processor.process(e).then((function(e){if(e.length>0)return r.runtime.started=!0,r.result.processResult(e)})).then((function(){r.emit("drained"),n()}),(function(e){r.runtime.hasError=!0,r.runtime.error=e,r.emit("error",e),n()}))},i.prototype._flush=function(e){var t=this;this.processor.flush().then((function(e){if(e.length>0)return t.result.processResult(e)})).then((function(){t.processEnd(e)}),(function(n){t.emit("error",n),e()}))},i.prototype.processEnd=function(e){this.result.endProcess(),this.emit("done"),e()},Object.defineProperty(i.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),i}(o.Transform);t.Converter=f}).call(this,n(11).setImmediate)},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i=1,o={},a=!1,s=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){c(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&c(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),r=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){c(e.data)},r=function(t){e.port2.postMessage(t)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var e=s.documentElement;r=function(t){var n=s.createElement("script");n.onreadystatechange=function(){c(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():r=function(e){setTimeout(c,0,e)},l.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return o[i]=a,r(i),i++},l.clearImmediate=u}function u(e){delete o[e]}function c(e){if(a)setTimeout(c,0,e);else{var t=o[e];if(t){a=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(undefined,n)}}(t)}finally{u(e),a=!1}}}}}("undefined"==typeof self?void 0===e?this:e: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(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=u(e),r=n[0],a=n[1],s=new o(3*(r+a)/4-a),l=0,c=a>0?r-4:r,f=0;f<c;f+=4)t=i[e.charCodeAt(f)]<<18|i[e.charCodeAt(f+1)]<<12|i[e.charCodeAt(f+2)]<<6|i[e.charCodeAt(f+3)],s[l++]=t>>16&255,s[l++]=t>>8&255,s[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(f)]<<2|i[e.charCodeAt(f+1)]>>4,s[l++]=255&t),1===a&&(t=i[e.charCodeAt(f)]<<10|i[e.charCodeAt(f+1)]<<4|i[e.charCodeAt(f+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t),s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(f(e,a,a+16383>s?s:a+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function f(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(c(r));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*v}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){},function(e,t,n){"use strict";var r=n(7).Buffer,i=n(43);function o(e,t,n){e.copy(t,n)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t=r.allocUnsafe(e>>>0),n=this.head,i=0;n;)o(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){"use strict";e.exports=o;var r=n(27),i=n(5);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},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){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(e){var t={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 n in e||(e={}),e)e.hasOwnProperty(n)&&(Array.isArray(e[n])?t[n]=[].concat(e[n]):t[n]=e[n]);return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(e){var t=e.parseParam,n={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:e.parseParam.delimiter,eol:e.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return t.ignoreColumns&&(n.needProcessIgnoreColumn=!0),t.includeColumns&&(n.needProcessIncludeColumn=!0),n}},function(e,t,n){"use strict";(function(e){var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(53),a=i(n(15)),s=n(54),l=i(n(16)),u=n(57),c=n(28),f=n(58),d=i(n(59)),h=i(n(29)),p=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.rowSplit=new f.RowSplit(e.converter),e.eolEmitted=!1,e._needEmitEol=void 0,e.headEmitted=!1,e._needEmitHead=void 0,e}return r(n,t),n.prototype.flush=function(){var e=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var t=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(t,!0).then((function(t){return e.runtime.csvLineBuffer&&e.runtime.csvLineBuffer.length>0?a.default.reject(h.default.unclosed_quote(e.runtime.parsedLineNumber,e.runtime.csvLineBuffer.toString())):a.default.resolve(t)}))}return a.default.resolve([])},n.prototype.destroy=function(){return a.default.resolve()},Object.defineProperty(n.prototype,"needEmitEol",{get:function(){return void 0===this._needEmitEol&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"needEmitHead",{get:function(){return void 0===this._needEmitHead&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),n.prototype.process=function(e,t){var n,r=this;return void 0===t&&(t=!1),n=t?e.toString():s.prepareData(e,this.converter.parseRuntime),a.default.resolve().then((function(){return r.runtime.preRawDataHook?r.runtime.preRawDataHook(n):n})).then((function(e){return e&&e.length>0?r.processCSV(e,t):a.default.resolve([])}))},n.prototype.processCSV=function(e,t){var n=this,r=this.params,i=this.runtime;i.eol||l.default(e,i),this.needEmitEol&&!this.eolEmitted&&i.eol&&(this.converter.emit("eol",i.eol),this.eolEmitted=!0),r.ignoreEmpty&&!i.started&&(e=c.trimLeft(e));var o=u.stringToLines(e,i);return t?(o.lines.push(o.partial),o.partial=""):this.prependLeftBuf(c.bufFromString(o.partial)),o.lines.length>0?(i.preFileLineHook?this.runPreLineHook(o.lines):a.default.resolve(o.lines)).then((function(e){return i.started||n.runtime.headers?n.processCSVBody(e):n.processDataWithHead(e)})):a.default.resolve([])},n.prototype.processDataWithHead=function(e){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var t="",n=[];e.length;){var r=t+e.shift(),i=this.rowSplit.parse(r);if(i.closed){n=i.cells,t="";break}t=r+l.default(r,this.runtime)}if(this.prependLeftBuf(c.bufFromString(t)),0===n.length)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=n}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(e)},n.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var e=this.runtime.headers,t=0;t<e.length;t++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(e[t])){if(!this.params.includeColumns||!this.params.includeColumns.test(e[t]))continue;this.runtime.selectedColumns.push(t)}else this.runtime.selectedColumns.push(t);else this.params.includeColumns?this.params.includeColumns.test(e[t])&&this.runtime.selectedColumns.push(t):this.runtime.selectedColumns.push(t);this.runtime.headers=c.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},n.prototype.processCSVBody=function(e){if("line"===this.params.output)return e;var t=this.rowSplit.parseMultiLines(e);return this.prependLeftBuf(c.bufFromString(t.partial)),"csv"===this.params.output?t.rowsCells:d.default(t.rowsCells,this.converter)},n.prototype.prependLeftBuf=function(t){t&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=e.concat([t,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=t)},n.prototype.runPreLineHook=function(e){var t=this;return new a.default((function(n,r){!function e(t,n,r,i){if(r>=t.length)i();else if(n.preFileLineHook){var o=t[r],a=n.preFileLineHook(o,n.parsedLineNumber+r);if(r++,a&&a.then)a.then((function(o){t[r-1]=o,e(t,n,r,i)}));else{for(t[r-1]=a;r<t.length;)t[r]=n.preFileLineHook(t[r],n.parsedLineNumber+r),r++;i()}}else i()}(e,t.runtime,0,(function(t){t?r(t):n(e)}))}))},n}(o.Processor);t.ProcessorLocal=p}).call(this,n(3).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Processor=function(e){this.converter=e,this.params=e.parseParam,this.runtime=e.parseRuntime}},function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(55));t.prepareData=function(t,n){var r=function(t,n){return n.csvLineBuffer&&n.csvLineBuffer.length>0?e.concat([n.csvLineBuffer,t]):t}(t,n);n.csvLineBuffer=void 0;var o=function(e,t){var n=e.length-1;if(0!=(128&e[n])){for(;128==(192&e[n]);)n--;n--}return n!=e.length-1?(t.csvLineBuffer=e.slice(n+1),e.slice(0,n+1)):e}(r,n).toString("utf8");return!1===n.started?i.default(o):o}}).call(this,n(3).Buffer)},function(e,t,n){"use strict";(function(t){var r=n(56);e.exports=function(e){return"string"==typeof e&&65279===e.charCodeAt(0)?e.slice(1):t.isBuffer(e)&&r(e)&&239===e[0]&&187===e[1]&&191===e[2]?e.slice(3):e}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(e){for(var t=0;t<e.length;)if(9==e[t]||10==e[t]||13==e[t]||32<=e[t]&&e[t]<=126)t+=1;else if(194<=e[t]&&e[t]<=223&&128<=e[t+1]&&e[t+1]<=191)t+=2;else if(224==e[t]&&160<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191||(225<=e[t]&&e[t]<=236||238==e[t]||239==e[t])&&128<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191||237==e[t]&&128<=e[t+1]&&e[t+1]<=159&&128<=e[t+2]&&e[t+2]<=191)t+=3;else{if(!(240==e[t]&&144<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191&&128<=e[t+3]&&e[t+3]<=191||241<=e[t]&&e[t]<=243&&128<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191&&128<=e[t+3]&&e[t+3]<=191||244==e[t]&&128<=e[t+1]&&e[t+1]<=143&&128<=e[t+2]&&e[t+2]<=191&&128<=e[t+3]&&e[t+3]<=191))return!1;t+=4}return!0}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(e,t){var n=i.default(e,t),r=e.split(n);return{lines:r,partial:r.pop()||""}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),o=n(28),a=[",","|","\t",";",":"],s=function(){function e(e){this.conv=e,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=e.parseParam.quote,this.trim=e.parseParam.trim,this.escape=e.parseParam.escape}return Object.defineProperty(e.prototype,"needEmitDelimiter",{get:function(){return void 0===this._needEmitDelimiter&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),e.prototype.parse=function(e){if(0===e.length||this.conv.parseParam.ignoreEmpty&&0===e.trim().length)return{cells:[],closed:!0};var t=this.quote,n=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||"auto"===this.conv.parseRuntime.delimiter.toLowerCase())&&(this.conv.parseRuntime.delimiter=this.getDelimiter(e)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var r=this.conv.parseRuntime.delimiter,i=e.split(r);if("off"===t){if(n)for(var o=0;o<i.length;o++)i[o]=i[o].trim();return{cells:i,closed:!0}}return this.toCSVRow(i,n,t,r)},e.prototype.toCSVRow=function(e,t,n,r){for(var i=[],a=!1,s="",l=0,u=e.length;l<u;l++){var c=e[l];!a&&t&&(c=o.trimLeft(c));var f=c.length;if(a)this.isQuoteClose(c)?(a=!1,s+=r+(c=c.substr(0,f-1)),s=this.escapeQuote(s),t&&(s=o.trimRight(s)),i.push(s),s=""):s+=r+c;else{if(2===f&&c===this.quote+this.quote){i.push("");continue}if(this.isQuoteOpen(c)){if(c=c.substr(1),this.isQuoteClose(c)){c=c.substring(0,c.lastIndexOf(n)),c=this.escapeQuote(c),i.push(c);continue}if(-1!==c.indexOf(n)){for(var d=0,h="",p=0,v=c;p<v.length;p++){var m=v[p];m===n&&h!==this.escape?(d++,h=""):h=m}if(d%2==1){t&&(c=o.trimRight(c)),i.push(n+c);continue}a=!0,s+=c;continue}a=!0,s+=c;continue}t&&(c=o.trimRight(c)),i.push(c)}}return{cells:i,closed:!a}},e.prototype.getDelimiter=function(e){var t;if("auto"===this.conv.parseParam.delimiter)t=a;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;t=this.conv.parseParam.delimiter}var n=0,r=",";return t.forEach((function(t){var i=e.split(t).length;i>n&&(r=t,n=i)})),r},e.prototype.isQuoteOpen=function(e){var t=this.quote,n=this.escape;return e[0]===t&&(e[1]!==t||e[1]===n&&(e[2]===t||2===e.length))},e.prototype.isQuoteClose=function(e){var t=this.quote,n=this.escape;this.conv.parseParam.trim&&(e=o.trimRight(e));for(var r=0,i=e.length-1;e[i]===t||e[i]===n;)i--,r++;return r%2!=0},e.prototype.escapeQuote=function(e){var t="es|"+this.quote+"|"+this.escape;void 0===this.cachedRegExp[t]&&(this.cachedRegExp[t]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var n=this.cachedRegExp[t];return e.replace(n,this.quote)},e.prototype.parseMultiLines=function(e){for(var t=[],n="";e.length;){var r=n+e.shift(),a=this.parse(r);0===a.cells.length&&this.conv.parseParam.ignoreEmpty||(a.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?t.push(o.filterArray(a.cells,this.conv.parseRuntime.selectedColumns)):t.push(a.cells),n=""):n=r+(i.default(r,this.conv.parseRuntime)||"\n"))}return{rowsCells:t,partial:n}},e}();t.RowSplit=s},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),a=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function s(e,t,n){if(t.parseParam.checkColumn&&t.parseRuntime.headers&&e.length!==t.parseRuntime.headers.length)throw i.default.column_mismatched(t.parseRuntime.parsedLineNumber+n);return function(e,t,n){for(var r=!1,i={},o=0,a=e.length;o<a;o++){var s=e[o];if(!n.parseParam.ignoreEmpty||""!==s){r=!0;var l=t[o];l&&""!==l||(l=t[o]="field"+(o+1));var f=u(l,o,n);if(f){var d=f(s,l,i,e,o);void 0!==d&&c(i,l,d,n,o)}else n.parseParam.checkType&&(s=h(s,l,o,n)(s)),void 0!==s&&c(i,l,s,n,o)}}return r?i:null}(e,t.parseRuntime.headers||[],t)||null}t.default=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=s(e[r],t,r);o&&n.push(o)}return n};var l={string:v,number:p,omit:function(){}};function u(e,t,n){if(void 0!==n.parseRuntime.columnConv[t])return n.parseRuntime.columnConv[t];var r=n.parseParam.colParser[e];if(void 0===r)return n.parseRuntime.columnConv[t]=null;if("object"==typeof r&&(r=r.cellParser||"string"),"string"==typeof r){r=r.trim().toLowerCase();var i=l[r];return n.parseRuntime.columnConv[t]=i||null}return n.parseRuntime.columnConv[t]="function"==typeof r?r:null}function c(e,t,n,r,i){if(!r.parseRuntime.columnValueSetter[i])if(r.parseParam.flatKeys)r.parseRuntime.columnValueSetter[i]=f;else if(t.indexOf(".")>-1){for(var o=t.split("."),a=!0;o.length>0;)if(0===o.shift().length){a=!1;break}!a||r.parseParam.colParser[t]&&r.parseParam.colParser[t].flat?r.parseRuntime.columnValueSetter[i]=f:r.parseRuntime.columnValueSetter[i]=d}else r.parseRuntime.columnValueSetter[i]=f;!0===r.parseParam.nullObject&&"null"===n&&(n=null),r.parseRuntime.columnValueSetter[i](e,t,n)}function f(e,t,n){e[t]=n}function d(e,t,n){o.default(e,t,n)}function h(e,t,n,r){return r.parseRuntime.headerType[n]?r.parseRuntime.headerType[n]:t.indexOf("number#!")>-1?r.parseRuntime.headerType[n]=p:t.indexOf("string#!")>-1?r.parseRuntime.headerType[n]=v:r.parseParam.checkType?r.parseRuntime.headerType[n]=m:r.parseRuntime.headerType[n]=v}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e){return e.toString()}function m(e){var t=e.trim();return""===t?v(e):a.test(t)?p(e):5===t.length&&"false"===t.toLowerCase()||4===t.length&&"true"===t.toLowerCase()?function(e){var t=e.trim();return 5!==t.length||"false"!==t.toLowerCase()}(e):"{"===t[0]&&"}"===t[t.length-1]||"["===t[0]&&"]"===t[t.length-1]?function(e){try{return JSON.parse(e)}catch(t){return e}}(e):v(e)}},function(e,t,n){var r=n(61);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),a=n(20),s=n(104);e.exports=function(e,t,n,l){if(!a(e))return e;for(var u=-1,c=(t=i(t,e)).length,f=c-1,d=e;null!=d&&++u<c;){var h=s(t[u]),p=n;if(u!=f){var v=d[h];void 0===(p=l?l(v,h,d):void 0)&&(p=a(v)?v:o(t[u+1])?[]:{})}r(d,h,p),d=d[h]}return e}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(64);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(17),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),o=n(20),a=n(72),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(e))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(0))},function(e,t,n){var r=n(18),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(71),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},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(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(21),i=n(75),o=n(77),a=n(100);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(78)((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=o},function(e,t,n){var r=n(79);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(80);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(81),i=n(95),o=n(97),a=n(98),s=n(99);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(82),i=n(88),o=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),o=n(85),a=n(86),s=n(87);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(8);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(89),i=n(90),o=n(91),a=n(92),s=n(93);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(9),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(9);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(9);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,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(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(10);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(10);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),a=n(22),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(22);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=n(106),a=function(){function e(e){this.converter=e,this.finalResult=[]}return Object.defineProperty(e.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needPushDownstream",{get:function(){return void 0===this._needPushDownstream&&(this._needPushDownstream=this.converter.listeners("data").length>0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),e.prototype.processResult=function(e){var t=this,n=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&"array"===this.converter.parseParam.downstreamFormat&&0===n&&s(this.converter,"["+o.EOL),new i.default((function(n,r){t.needEmitLine?function e(t,n,r,i,o){if(r>=t.length)o();else if(n.parseRuntime.subscribe&&n.parseRuntime.subscribe.onNext){var a=n.parseRuntime.subscribe.onNext,l=t[r],u=a(l,n.parseRuntime.parsedLineNumber+r);if(r++,u&&u.then)u.then((function(){!function(t,n,r,i,o,a,l){o&&s(r,l),e(t,r,i,o,a)}(t,0,n,r,i,o,l)}),o);else{for(i&&s(n,l);r<t.length;){var c=t[r];a(c,n.parseRuntime.parsedLineNumber+r),r++,i&&s(n,c)}o()}}else{if(i)for(;r<t.length;)c=t[r++],s(n,c);o()}}(e,t.converter,0,t.needPushDownstream,(function(i){i?r(i):(t.appendFinalResult(e),n())})):(t.appendFinalResult(e),n())}))},e.prototype.appendFinalResult=function(e){this.needEmitAll&&(this.finalResult=this.finalResult.concat(e)),this.converter.parseRuntime.parsedLineNumber+=e.length},e.prototype.processError=function(e){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(e),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(e)},e.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&&"array"===this.converter.parseParam.downstreamFormat&&s(this.converter,"]"+o.EOL)},e}();function s(e,t){if("object"!=typeof t||e.options.objectMode)e.push(t);else{var n=JSON.stringify(t);e.push(n+("array"===e.parseParam.downstreamFormat?","+o.EOL:o.EOL),"utf8")}}t.Result=a},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?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"undefined"!=typeof navigator?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="\n",t.homedir=function(){return"/"}}])},949:function(e,t,n){"use strict";function r(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}n.d(t,{Z:function(){return r}})},4557:function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}n.d(t,{Z:function(){return r}})},2099:function(e,t){"use strict";function n(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function r(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var i={p:r,P:function(e,t){var i,o=e.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return n(e,t);switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",n(a,t)).replace("{{time}}",r(s,t))}};t.Z=i},3878:function(e,t,n){"use strict";function r(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()}n.d(t,{Z:function(){return r}})},611:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2952),i=n(1545),o=n(366),a=n(825);function s(e){(0,a.Z)(1,arguments);var t=(0,o.Z)(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=(0,i.Z)(n);return r}var l=6048e5;function u(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=(0,i.Z)(t).getTime()-s(t).getTime();return Math.round(n/l)+1}},366:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2952),i=n(825),o=n(1545);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,o.Z)(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var u=(0,o.Z)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}},1809:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2952),i=n(3932),o=n(2076),a=n(825),s=n(6634);function l(e,t){(0,a.Z)(1,arguments);var n=t||{},r=n.locale,l=r&&r.options&&r.options.firstWeekContainsDate,u=null==l?1:(0,s.Z)(l),c=null==n.firstWeekContainsDate?u:(0,s.Z)(n.firstWeekContainsDate),f=(0,o.Z)(e,t),d=new Date(0);d.setUTCFullYear(f,0,c),d.setUTCHours(0,0,0,0);var h=(0,i.Z)(d,t);return h}var u=6048e5;function c(e,t){(0,a.Z)(1,arguments);var n=(0,r.default)(e),o=(0,i.Z)(n,t).getTime()-l(n,t).getTime();return Math.round(o/u)+1}},2076:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2952),i=n(825),o=n(3932),a=n(6634);function s(e,t){(0,i.Z)(1,arguments);var n=(0,r.default)(e),s=n.getUTCFullYear(),l=t||{},u=l.locale,c=u&&u.options&&u.options.firstWeekContainsDate,f=null==c?1:(0,a.Z)(c),d=null==l.firstWeekContainsDate?f:(0,a.Z)(l.firstWeekContainsDate);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(s+1,0,d),h.setUTCHours(0,0,0,0);var p=(0,o.Z)(h,t),v=new Date(0);v.setUTCFullYear(s,0,d),v.setUTCHours(0,0,0,0);var m=(0,o.Z)(v,t);return n.getTime()>=p.getTime()?s+1:n.getTime()>=m.getTime()?s:s-1}},7019:function(e,t,n){"use strict";n.d(t,{Do:function(){return a},Iu:function(){return o},qp:function(){return s}});var r=["D","DD"],i=["YY","YYYY"];function o(e){return-1!==r.indexOf(e)}function a(e){return-1!==i.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}},825:function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},1545:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=1,n=(0,r.default)(e),o=n.getUTCDay(),a=(o<t?7:0)+o-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}},3932:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2952),i=n(825),o=n(6634);function a(e,t){(0,i.Z)(1,arguments);var n=t||{},a=n.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:(0,o.Z)(s),u=null==n.weekStartsOn?l:(0,o.Z)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,r.default)(e),f=c.getUTCDay(),d=(f<u?7:0)+f-u;return c.setUTCDate(c.getUTCDate()-d),c.setUTCHours(0,0,0,0),c}},6634:function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:function(){return r}})},9996:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(2952),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return isNaN(a)?new Date(NaN):a?(n.setDate(n.getDate()+a),n):n}},6869:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(6634),i=n(483),o=n(825),a=36e5;function s(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,n*a)}},483:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(6634),i=n(2952),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e).getTime(),a=(0,r.Z)(t);return new Date(n+a)}},1489:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(483),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,6e4*n)}},1437:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(2952),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var s=n.getDate(),l=new Date(n.getTime());l.setMonth(n.getMonth()+a+1,0);var u=l.getDate();return s>=u?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}},3923:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(9996),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t),a=7*n;return(0,i.default)(e,a)}},3159:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(1437),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,12*n)}},1089:function(e,t,n){"use strict";n.d(t,{vh:function(){return i},yJ:function(){return r}});Math.pow(10,8);var r=6e4,i=36e5},3514:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(3878),i=n(121),o=n(825),a=864e5;function s(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),s=(0,i.default)(t),l=n.getTime()-(0,r.Z)(n),u=s.getTime()-(0,r.Z)(s);return Math.round((l-u)/a)}},2228:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t),a=n.getFullYear()-o.getFullYear(),s=n.getMonth()-o.getMonth();return 12*a+s}},6312:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(9279),i=n(3878),o=n(825),a=6048e5;function s(e,t,n){(0,o.Z)(2,arguments);var s=(0,r.default)(e,n),l=(0,r.default)(t,n),u=s.getTime()-(0,i.Z)(s),c=l.getTime()-(0,i.Z)(l);return Math.round((u-c)/a)}},7308:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()-o.getFullYear()}},3358:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(23,59,59,999),t}},4829:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},3712:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(6634),o=n(825);function a(e,t){(0,o.Z)(1,arguments);var n=t||{},a=n.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:(0,i.Z)(s),u=null==n.weekStartsOn?l:(0,i.Z)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,r.default)(e),f=c.getDay(),d=6+(f<u?-7:0)-(f-u);return c.setDate(c.getDate()+d),c.setHours(23,59,59,999),c}},2612:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return L}});var r=n(6663),i=n(5235),o=n(6047),a=n(2952),s=n(825),l=864e5;var u=n(611),c=n(366),f=n(1809),d=n(2076),h=n(949),p={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return(0,h.Z)("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,h.Z)(n+1,2)},d:function(e,t){return(0,h.Z)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,h.Z)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,h.Z)(e.getUTCHours(),t.length)},m:function(e,t){return(0,h.Z)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,h.Z)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return(0,h.Z)(i,t.length)}},v="midnight",m="noon",g="morning",y="afternoon",b="evening",_="night",x={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return p.y(e,t)},Y:function(e,t,n,r){var i=(0,d.Z)(e,r),o=i>0?i:1-i;if("YY"===t){var a=o%100;return(0,h.Z)(a,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):(0,h.Z)(o,t.length)},R:function(e,t){var n=(0,c.Z)(e);return(0,h.Z)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,h.Z)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,h.Z)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,h.Z)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,h.Z)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,f.Z)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):(0,h.Z)(i,t.length)},I:function(e,t,n){var r=(0,u.Z)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,h.Z)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,n){var r=function(e){(0,s.Z)(1,arguments);var t=(0,a.default)(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/l)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,h.Z)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,h.Z)(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,h.Z)(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return(0,h.Z)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?m:0===i?v:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?b:i>=12?y:i>=4?g:_,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return p.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,h.Z)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,h.Z)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return k(i);case"XXXX":case"XX":return S(i);default:return S(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return k(i);case"xxxx":case"xx":return S(i);default:return S(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w(i,":");default:return"GMT"+S(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w(i,":");default:return"GMT"+S(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e,o=Math.floor(i.getTime()/1e3);return(0,h.Z)(o,t.length)},T:function(e,t,n,r){var i=(r._originalDate||e).getTime();return(0,h.Z)(i,t.length)}};function w(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+(0,h.Z)(o,2)}function k(e,t){return e%60===0?(e>0?"-":"+")+(0,h.Z)(Math.abs(e)/60,2):S(e,t)}function S(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+(0,h.Z)(Math.floor(i/60),2)+n+(0,h.Z)(i%60,2)}var C=x,E=n(2099),T=n(3878),M=n(7019),O=n(6634),P=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,j=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N=/^'([^]*?)'?$/,D=/''/g,R=/[a-zA-Z]/;function L(e,t,n){(0,s.Z)(2,arguments);var l=String(t),u=n||{},c=u.locale||i.Z,f=c.options&&c.options.firstWeekContainsDate,d=null==f?1:(0,O.Z)(f),h=null==u.firstWeekContainsDate?d:(0,O.Z)(u.firstWeekContainsDate);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=c.options&&c.options.weekStartsOn,v=null==p?0:(0,O.Z)(p),m=null==u.weekStartsOn?v:(0,O.Z)(u.weekStartsOn);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!c.localize)throw new RangeError("locale must contain localize property");if(!c.formatLong)throw new RangeError("locale must contain formatLong property");var g=(0,a.default)(e);if(!(0,r.default)(g))throw new RangeError("Invalid time value");var y=(0,T.Z)(g),b=(0,o.Z)(g,y),_={firstWeekContainsDate:h,weekStartsOn:m,locale:c,_originalDate:g},x=l.match(j).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,E.Z[t])(e,c.formatLong,_):e})).join("").match(P).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return A(n);var i=C[r];if(i)return!u.useAdditionalWeekYearTokens&&(0,M.Do)(n)&&(0,M.qp)(n,t,e),!u.useAdditionalDayOfYearTokens&&(0,M.Iu)(n)&&(0,M.qp)(n,t,e),i(b,n,c.localize,_);if(r.match(R))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return x}function A(e){return e.match(N)[1].replace(D,"'")}},1477:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getDate();return n}},5955:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getDay();return n}},7518:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getHours();return n}},4073:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(2952),i=n(4552),o=n(825);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),a=new Date(0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);var s=(0,i.Z)(a),l=new Date(0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);var u=(0,i.Z)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function s(e){(0,o.Z)(1,arguments);var t=a(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=(0,i.Z)(n);return r}var l=6048e5;function u(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=(0,i.Z)(t).getTime()-s(t).getTime();return Math.round(n/l)+1}},6038:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMinutes();return n}},1523:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return n}},2620:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=Math.floor(t.getMonth()/3)+1;return n}},1002:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getSeconds();return n}},3558:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getTime();return n}},8603:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){return(0,i.Z)(1,arguments),(0,r.default)(e).getFullYear()}},8601:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()>o.getTime()}},1328:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()<o.getTime()}},6238:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(825);function i(e){return(0,r.Z)(1,arguments),e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}},5560:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},6776:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(121),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},2201:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}},171:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(356),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},3138:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()===o.getFullYear()}},6663:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6238),i=n(2952),o=n(825);function a(e){if((0,o.Z)(1,arguments),!(0,r.default)(e)&&"number"!==typeof e)return!1;var t=(0,i.default)(e);return!isNaN(Number(t))}},4773:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e).getTime(),o=(0,r.default)(t.start).getTime(),a=(0,r.default)(t.end).getTime();if(!(o<=a))throw new RangeError("Invalid interval");return n>=o&&n<=a}},5235:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r={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"}},i=function(e,t,n){var i,o=r[e];return i="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l=function(e,t,n,r){return s[e]};function u(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var c={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:u({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:u({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:u({values:{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"]},defaultWidth:"wide"}),day:u({values:{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"]},defaultWidth:"wide"}),dayPeriod:u({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})};function f(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?h(l,(function(e){return e.test(s)})):d(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(u):u,a=n.valueCallback?n.valueCallback(a):a;var c=t.slice(s.length);return{value:a,rest:c}}}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function h(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var p,v={ordinalNumber:(p={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(p.matchPattern);if(!n)return null;var r=n[0],i=e.match(p.parsePattern);if(!i)return null;var o=p.valueCallback?p.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var a=e.slice(r.length);return{value:o,rest:a}}),era:f({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:f({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:f({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:f({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},m={code:"en-US",formatDistance:i,formatLong:a,formatRelative:l,localize:c,match:v,options:{weekStartsOn:0,firstWeekContainsDate:1}}},3:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){var t,n;if((0,i.Z)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,r.default)(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}},471:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){var t,n;if((0,i.Z)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,r.default)(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}},1648:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ae}});var r=n(5235),i=n(6047),o=n(2952),a=n(4557),s=n(2099),l=n(3878),u=n(7019),c=n(6634),f=n(2076),d=n(825);function h(e,t,n){(0,d.Z)(2,arguments);var r=n||{},i=r.locale,a=i&&i.options&&i.options.weekStartsOn,s=null==a?0:(0,c.Z)(a),l=null==r.weekStartsOn?s:(0,c.Z)(r.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=(0,o.default)(e),f=(0,c.Z)(t),h=u.getUTCDay(),p=f%7,v=(p+7)%7,m=(v<l?7:0)+f-h;return u.setUTCDate(u.getUTCDate()+m),u}var p=n(611);var v=n(1809);var m=n(1545),g=n(3932),y=/^(1[0-2]|0?\d)/,b=/^(3[0-1]|[0-2]?\d)/,_=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,x=/^(5[0-3]|[0-4]?\d)/,w=/^(2[0-3]|[0-1]?\d)/,k=/^(2[0-4]|[0-1]?\d)/,S=/^(1[0-1]|0?\d)/,C=/^(1[0-2]|0?\d)/,E=/^[0-5]?\d/,T=/^[0-5]?\d/,M=/^\d/,O=/^\d{1,2}/,P=/^\d{1,3}/,j=/^\d{1,4}/,N=/^-?\d+/,D=/^-?\d/,R=/^-?\d{1,2}/,L=/^-?\d{1,3}/,A=/^-?\d{1,4}/,I=/^([+-])(\d{2})(\d{2})?|Z/,F=/^([+-])(\d{2})(\d{2})|Z/,z=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,B=/^([+-])(\d{2}):(\d{2})|Z/,U=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function V(e,t,n){var r=t.match(e);if(!r)return null;var i=parseInt(r[0],10);return{value:n?n(i):i,rest:t.slice(r[0].length)}}function H(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function W(e,t){return V(N,e,t)}function Z(e,t,n){switch(e){case 1:return V(M,t,n);case 2:return V(O,t,n);case 3:return V(P,t,n);case 4:return V(j,t,n);default:return V(new RegExp("^\\d{1,"+e+"}"),t,n)}}function Y(e,t,n){switch(e){case 1:return V(D,t,n);case 2:return V(R,t,n);case 3:return V(L,t,n);case 4:return V(A,t,n);default:return V(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function q(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function G(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}var K=[31,28,31,30,31,30,31,31,30,31,30,31],Q=[31,29,31,30,31,30,31,31,30,31,30,31];function $(e){return e%400===0||e%4===0&&e%100!==0}var X={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return Z(4,e,i);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return Z(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=e.getUTCFullYear();if(n.isTwoDigitYear){var o=G(n.year,i);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return Z(4,e,i);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return Z(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=(0,f.Z)(e,r);if(n.isTwoDigitYear){var o=G(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,g.Z)(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,g.Z)(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return Y("R"===t?4:t.length,e)},set:function(e,t,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),(0,m.Z)(i)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return Y("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return Z(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return Z(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"M":return V(y,e,i);case"MM":return Z(2,e,i);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"L":return V(y,e,i);case"LL":return Z(2,e,i);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return V(x,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return(0,g.Z)(function(e,t,n){(0,d.Z)(2,arguments);var r=(0,o.default)(e),i=(0,c.Z)(t),a=(0,v.Z)(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return V(x,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return(0,m.Z)(function(e,t){(0,d.Z)(2,arguments);var n=(0,o.default)(e),r=(0,c.Z)(t),i=(0,p.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"d":return V(b,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Z(t.length,e)}},validate:function(e,t,n){var r=$(e.getUTCFullYear()),i=e.getUTCMonth();return r?t>=1&&t<=Q[i]:t>=1&&t<=K[i]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"D":case"DD":return V(_,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Z(t.length,e)}},validate:function(e,t,n){return $(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=h(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Z(t.length,e,i);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=h(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Z(t.length,e,i);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=h(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var i=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Z(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});default:return n.day(e,{width:"wide",context:"formatting",valueCallback:i})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return e=function(e,t){(0,d.Z)(2,arguments);var n=(0,c.Z)(t);n%7===0&&(n-=7);var r=1,i=(0,o.default)(e),a=i.getUTCDay(),s=((n%7+7)%7<r?7:0)+n-a;return i.setUTCDate(i.getUTCDate()+s),i}(e,n,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(q(n),0,0,0),e},incompatibleTokens:["b","B","H","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(q(n),0,0,0),e},incompatibleTokens:["a","B","H","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(q(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return V(C,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):i||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return V(w,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return V(S,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return V(k,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var i=n<=24?n%24:n;return e.setUTCHours(i,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return V(E,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return V(T,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return Z(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return H(I,e);case"XX":return H(F,e);case"XXXX":return H(z,e);case"XXXXX":return H(U,e);default:return H(B,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return H(I,e);case"xx":return H(F,e);case"xxxx":return H(z,e);case"xxxxx":return H(U,e);default:return H(B,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return W(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return W(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},J=X,ee=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,te=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ne=/^'([^]*?)'?$/,re=/''/g,ie=/\S/,oe=/[a-zA-Z]/;function ae(e,t,n,f){(0,d.Z)(3,arguments);var h=String(e),p=String(t),v=f||{},m=v.locale||r.Z;if(!m.match)throw new RangeError("locale must contain match property");var g=m.options&&m.options.firstWeekContainsDate,y=null==g?1:(0,c.Z)(g),b=null==v.firstWeekContainsDate?y:(0,c.Z)(v.firstWeekContainsDate);if(!(b>=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=m.options&&m.options.weekStartsOn,x=null==_?0:(0,c.Z)(_),w=null==v.weekStartsOn?x:(0,c.Z)(v.weekStartsOn);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===p)return""===h?(0,o.default)(n):new Date(NaN);var k,S={firstWeekContainsDate:b,weekStartsOn:w,locale:m},C=[{priority:10,subPriority:-1,set:se,index:0}],E=p.match(te).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,s.Z[t])(e,m.formatLong,S):e})).join("").match(ee),T=[];for(k=0;k<E.length;k++){var M=E[k];!v.useAdditionalWeekYearTokens&&(0,u.Do)(M)&&(0,u.qp)(M,p,e),!v.useAdditionalDayOfYearTokens&&(0,u.Iu)(M)&&(0,u.qp)(M,p,e);var O=M[0],P=J[O];if(P){var j=P.incompatibleTokens;if(Array.isArray(j)){for(var N=void 0,D=0;D<T.length;D++){var R=T[D].token;if(-1!==j.indexOf(R)||R===O){N=T[D];break}}if(N)throw new RangeError("The format string mustn't contain `".concat(N.fullToken,"` and `").concat(M,"` at the same time"))}else if("*"===P.incompatibleTokens&&T.length)throw new RangeError("The format string mustn't contain `".concat(M,"` and any other token at the same time"));T.push({token:O,fullToken:M});var L=P.parse(h,M,m.match,S);if(!L)return new Date(NaN);C.push({priority:P.priority,subPriority:P.subPriority||0,set:P.set,validate:P.validate,value:L.value,index:C.length}),h=L.rest}else{if(O.match(oe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");if("''"===M?M="'":"'"===O&&(M=le(M)),0!==h.indexOf(M))return new Date(NaN);h=h.slice(M.length)}}if(h.length>0&&ie.test(h))return new Date(NaN);var A=C.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return C.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),I=(0,o.default)(n);if(isNaN(I))return new Date(NaN);var F=(0,i.Z)(I,(0,l.Z)(I)),z={};for(k=0;k<A.length;k++){var B=A[k];if(B.validate&&!B.validate(F,B.value,S))return new Date(NaN);var U=B.set(F,z,B.value,S);U[0]?(F=U[0],(0,a.Z)(z,U[1])):F=U}return F}function se(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function le(e){return e.match(ne)[1].replace(re,"'")}},4892:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(1089),i=n(825),o=n(6634);function a(e,t){(0,i.Z)(1,arguments);var n=t||{},r=null==n.additionalDigits?2:(0,o.Z)(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var a,s=f(e);if(s.date){var l=d(s.date,r);a=h(l.restDateString,l.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var u,c=a.getTime(),p=0;if(s.time&&(p=v(s.time),isNaN(p)))return new Date(NaN);if(!s.timezone){var m=new Date(c+p),y=new Date(0);return y.setFullYear(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()),y.setHours(m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds()),y}return u=g(s.timezone),isNaN(u)?new Date(NaN):new Date(c+p+u)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function f(e){var t,n={},r=e.split(s.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var i=s.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}function d(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:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}function h(e,t){if(null===t)return new Date(NaN);var n=e.match(l);if(!n)return new Date(NaN);var r=!!n[4],i=p(n[1]),o=p(n[2])-1,a=p(n[3]),s=p(n[4]),u=p(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,u)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=7*(t-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,u):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(y[t]||(b(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(b(e)?366:365)}(t,i)?(c.setUTCFullYear(t,o,Math.max(i,a)),c):new Date(NaN)}function p(e){return e?parseInt(e):1}function v(e){var t=e.match(u);if(!t)return NaN;var n=m(t[1]),i=m(t[2]),o=m(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,o)?n*r.vh+i*r.yJ+1e3*o:NaN}function m(e){return e&&parseFloat(e.replace(",","."))||0}function g(e){if("Z"===e)return 0;var t=e.match(c);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(i*r.vh+o*r.yJ):NaN}var y=[31,null,31,30,31,30,31,31,30,31,30,31];function b(e){return e%400===0||e%4===0&&e%100!==0}},9462:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(2952),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return n.setHours(a),n}},7436:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(2952),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return n.setMinutes(a),n}},9374:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(6634),i=n(2952),o=n(825);function a(e){(0,o.Z)(1,arguments);var t=(0,i.default)(e),n=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}function s(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),s=(0,r.Z)(t),l=n.getFullYear(),u=n.getDate(),c=new Date(0);c.setFullYear(l,s,15),c.setHours(0,0,0,0);var f=a(c);return n.setMonth(s,Math.min(u,f)),n}},3197:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(6634),i=n(2952),o=n(9374),a=n(825);function s(e,t){(0,a.Z)(2,arguments);var n=(0,i.default)(e),s=(0,r.Z)(t),l=Math.floor(n.getMonth()/3)+1,u=s-l;return(0,o.default)(n,n.getMonth()+3*u)}},9964:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(2952),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return n.setSeconds(a),n}},4548:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(2952),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(a),n)}},121:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(0,0,0,0),t}},4552:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9279),i=n(825);function o(e){return(0,i.Z)(1,arguments),(0,r.default)(e,{weekStartsOn:1})}},93:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},356:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth(),o=n-n%3;return t.setMonth(o,1),t.setHours(0,0,0,0),t}},9279:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(6634),o=n(825);function a(e,t){(0,o.Z)(1,arguments);var n=t||{},a=n.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:(0,i.Z)(s),u=null==n.weekStartsOn?l:(0,i.Z)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,r.default)(e),f=c.getDay(),d=(f<u?7:0)+f-u;return c.setDate(c.getDate()-d),c.setHours(0,0,0,0),c}},410:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},1776:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(9996),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},9316:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(6869),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},6047:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(6634),i=n(483),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,-n)}},6515:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(1489),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},1454:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(1437),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},3824:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(3923),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},1461:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(3159),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},2952:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(825);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(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://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},1919:function(e,t){var n,r,i;!function(o){"use strict";var a=o.setTimeout,s=o.clearTimeout,l=o.XMLHttpRequest,u=o.XDomainRequest,c=o.ActiveXObject,f=o.EventSource,d=o.document,h=o.Promise,p=o.fetch,v=o.Response,m=o.TextDecoder,g=o.TextEncoder,y=o.AbortController;if("undefined"===typeof window||"undefined"===typeof d||"readyState"in d||null!=d.body||(d.readyState="loading",window.addEventListener("load",(function(e){d.readyState="complete"}),!1)),null==l&&null!=c&&(l=function(){return new c("Microsoft.XMLHTTP")}),void 0==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),void 0==y){var b=p;p=function(e,t){var n=t.signal;return b(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},y=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(e){function t(e,t,n){if(1===n)return e>=128>>t&&e<<t<=2047;if(2===n)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===n)return e>=65536>>t&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var r=65533,i="",o=this.bitsNeeded,a=this.codePoint,s=0;s<e.length;s+=1){var l=e[s];0!==o&&(l<128||l>191||!t(a<<6|63&l,o-6,n(o,a)))&&(o=0,a=r,i+=String.fromCharCode(a)),0===o?(l>=0&&l<=127?(o=0,a=l):l>=192&&l<=223?(o=6,a=31&l):l>=224&&l<=239?(o=12,a=15&l):l>=240&&l<=247?(o=18,a=7&l):(o=0,a=r),0===o||t(a,o,n(o,a))||(o=0,a=r)):(o-=6,a=a<<6|63&l),0===o&&(a<=65535?i+=String.fromCharCode(a):(i+=String.fromCharCode(55296+(a-65535-1>>10)),i+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,i};void 0!=m&&void 0!=g&&function(){try{return"test"===(new m).decode((new g).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(m=_);var x=function(){};function w(e){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=e,this._sendTimeout=0,this._abort=x}function k(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function S(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var i=n[r].split(": "),o=i.shift(),a=i.join(": ");t[k(o)]=a}this._map=t}function C(){}function E(e){this._headers=e}function T(){}function M(){this._listeners=Object.create(null)}function O(e){a((function(){throw e}),0)}function P(e){this.type=e,this.target=void 0}function j(e,t){P.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function N(e,t){P.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){P.call(this,e),this.error=t.error}w.prototype.open=function(e,t){this._abort(!0);var n=this,r=this._xhr,i=1,o=0;this._abort=function(e){0!==n._sendTimeout&&(s(n._sendTimeout),n._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,r.onload=x,r.onerror=x,r.onabort=x,r.onprogress=x,r.onreadystatechange=x,r.abort(),0!==o&&(s(o),o=0),e||(n.readyState=4,n.onabort(null),n.onreadystatechange())),i=0};var u=function(){if(1===i){var e=0,t="",o=void 0;if("contentType"in r)e=200,t="OK",o=r.contentType;else try{e=r.status,t=r.statusText,o=r.getResponseHeader("Content-Type")}catch(a){e=0,t="",o=void 0}0!==e&&(i=2,n.readyState=2,n.status=e,n.statusText=t,n._contentType=o,n.onreadystatechange())}},c=function(){if(u(),2===i||3===i){i=3;var e="";try{e=r.responseText}catch(t){}n.readyState=3,n.responseText=e,n.onprogress()}},f=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:x}),c(),1===i||2===i||3===i){if(i=4,0!==o&&(s(o),o=0),n.readyState=4,"load"===e)n.onload(t);else if("error"===e)n.onerror(t);else{if("abort"!==e)throw new TypeError;n.onabort(t)}n.onreadystatechange()}},d=function e(){o=a((function(){e()}),500),3===r.readyState&&c()};"onload"in r&&(r.onload=function(e){f("load",e)}),"onerror"in r&&(r.onerror=function(e){f("error",e)}),"onabort"in r&&(r.onabort=function(e){f("abort",e)}),"onprogress"in r&&(r.onprogress=c),"onreadystatechange"in r&&(r.onreadystatechange=function(e){!function(e){void 0!=r&&(4===r.readyState?"onload"in r&&"onerror"in r&&"onabort"in r||f(""===r.responseText?"error":"load",e):3===r.readyState?"onprogress"in r||c():2===r.readyState&&u())}(e)}),!("contentType"in r)&&"ontimeout"in l.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),r.open(e,t,!0),"readyState"in r&&(o=a((function(){d()}),0))},w.prototype.abort=function(){this._abort(!1)},w.prototype.getResponseHeader=function(e){return this._contentType},w.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},w.prototype.getAllResponseHeaders=function(){return void 0!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},w.prototype.send=function(){if("ontimeout"in l.prototype&&("sendAsBinary"in l.prototype||"mozAnon"in l.prototype)||void 0==d||void 0==d.readyState||"complete"===d.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(n){throw n}}else{var t=this;t._sendTimeout=a((function(){t._sendTimeout=0,t.send()}),4)}},S.prototype.get=function(e){return this._map[k(e)]},null!=l&&null==l.HEADERS_RECEIVED&&(l.HEADERS_RECEIVED=2),C.prototype.open=function(e,t,n,r,i,o,a){e.open("GET",i);var s=0;for(var u in e.onprogress=function(){var t=e.responseText.slice(s);s+=t.length,n(t)},e.onerror=function(e){e.preventDefault(),r(new Error("NetworkError"))},e.onload=function(){r(null)},e.onabort=function(){r(null)},e.onreadystatechange=function(){if(e.readyState===l.HEADERS_RECEIVED){var n=e.status,r=e.statusText,i=e.getResponseHeader("Content-Type"),o=e.getAllResponseHeaders();t(n,r,i,new S(o))}},e.withCredentials=o,a)Object.prototype.hasOwnProperty.call(a,u)&&e.setRequestHeader(u,a[u]);return e.send(),e},E.prototype.get=function(e){return this._headers.get(e)},T.prototype.open=function(e,t,n,r,i,o,a){var s=null,l=new y,u=l.signal,c=new m;return p(i,{headers:a,credentials:o?"include":"same-origin",signal:u,cache:"no-store"}).then((function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new E(e.headers)),new h((function(e,t){!function r(){s.read().then((function(t){if(t.done)e(void 0);else{var i=c.decode(t.value,{stream:!0});n(i),r()}})).catch((function(e){t(e)}))}()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){r(e)})),{abort:function(){null!=s&&s.cancel(),l.abort()}}},M.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(void 0!=t)for(var n=t.length,r=0;r<n;r+=1){var i=t[r];try{"function"===typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(o){O(o)}}},M.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];void 0==r&&(r=[],n[e]=r);for(var i=!1,o=0;o<r.length;o+=1)r[o]===t&&(i=!0);i||r.push(t)},M.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(void 0!=r){for(var i=[],o=0;o<r.length;o+=1)r[o]!==t&&i.push(r[o]);0===i.length?delete n[e]:n[e]=i}},j.prototype=Object.create(P.prototype),N.prototype=Object.create(P.prototype),D.prototype=Object.create(P.prototype);var R=-1,L=-1,A=/^text\/event\-stream(;.*)?$/i,I=function(e,t){var n=null==e?t:parseInt(e,10);return n!==n&&(n=t),F(n)},F=function(e){return Math.min(Math.max(e,1e3),18e6)},z=function(e,t,n){try{"function"===typeof t&&t.call(e,n)}catch(r){O(r)}};function B(e,t){M.call(this),t=t||{},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,function(e,t,n){t=String(t);var r=Boolean(n.withCredentials),i=n.lastEventIdQueryParameterName||"lastEventId",o=F(1e3),c=I(n.heartbeatTimeout,45e3),f="",d=o,h=!1,p=0,v=n.headers||{},m=n.Transport,g=U&&void 0==m?void 0:new w(void 0!=m?new m:void 0!=l&&"withCredentials"in l.prototype||void 0==u?new l:new u),y=null!=m&&"string"!==typeof m?new m:void 0==g?new T:new C,b=void 0,_=0,x=R,k="",S="",E="",M="",O=0,P=0,B=0,V=function(t,n,r,i){if(0===x)if(200===t&&void 0!=r&&A.test(r)){x=1,h=Date.now(),d=o,e.readyState=1;var a=new N("open",{status:t,statusText:n,headers:i});e.dispatchEvent(a),z(e,e.onopen,a)}else{var s="";200!==t?(n&&(n=n.replace(/\s+/g," ")),s="EventSource's response has a status "+t+" "+n+" that is not 200. Aborting the connection."):s="EventSource's response has a Content-Type specifying an unsupported type: "+(void 0==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",Z();a=new N("error",{status:t,statusText:n,headers:i});e.dispatchEvent(a),z(e,e.onerror,a),console.error(s)}},H=function(t){if(1===x){for(var n=-1,r=0;r<t.length;r+=1){(u=t.charCodeAt(r))!=="\n".charCodeAt(0)&&u!=="\r".charCodeAt(0)||(n=r)}var i=(-1!==n?M:"")+t.slice(0,n+1);M=(-1===n?M:"")+t.slice(n+1),""!==t&&(h=Date.now(),p+=t.length);for(var l=0;l<i.length;l+=1){var u=i.charCodeAt(l);if(O===L&&u==="\n".charCodeAt(0))O=0;else if(O===L&&(O=0),u==="\r".charCodeAt(0)||u==="\n".charCodeAt(0)){if(0!==O){1===O&&(B=l+1);var v=i.slice(P,B-1),m=i.slice(B+(B<l&&i.charCodeAt(B)===" ".charCodeAt(0)?1:0),l);"data"===v?(k+="\n",k+=m):"id"===v?S=m:"event"===v?E=m:"retry"===v?(o=I(m,o),d=o):"heartbeatTimeout"===v&&(c=I(m,c),0!==_&&(s(_),_=a((function(){Y()}),c)))}if(0===O){if(""!==k){f=S,""===E&&(E="message");var g=new j(E,{data:k.slice(1),lastEventId:S});if(e.dispatchEvent(g),"open"===E?z(e,e.onopen,g):"message"===E?z(e,e.onmessage,g):"error"===E&&z(e,e.onerror,g),2===x)return}k="",E=""}O=u==="\r".charCodeAt(0)?L:0}else 0===O&&(P=l,O=1),1===O?u===":".charCodeAt(0)&&(B=l+1,O=2):2===O&&(O=3)}}},W=function(t){if(1===x||0===x){x=R,0!==_&&(s(_),_=0),_=a((function(){Y()}),d),d=F(Math.min(16*o,2*d)),e.readyState=0;var n=new D("error",{error:t});e.dispatchEvent(n),z(e,e.onerror,n),void 0!=t&&console.error(t)}},Z=function(){x=2,void 0!=b&&(b.abort(),b=void 0),0!==_&&(s(_),_=0),e.readyState=2},Y=function n(){if(_=0,x===R){h=!1,p=0,_=a((function(){n()}),c),x=0,k="",E="",S=f,M="",P=0,B=0,O=0;var r=t;if("data:"!==t.slice(0,5)&&"blob:"!==t.slice(0,5)&&""!==f){var o=t.indexOf("?");r=-1===o?t:t.slice(0,o+1)+t.slice(o+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===i?"":e})),r+=(-1===t.indexOf("?")?"?":"&")+i+"="+encodeURIComponent(f)}var s=e.withCredentials,l={Accept:"text/event-stream"},u=e.headers;if(void 0!=u)for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d]);try{b=y.open(g,V,H,W,r,s,l)}catch(m){throw Z(),m}}else if(h||void 0==b){var v=Math.max((h||Date.now())+c-Date.now(),1);h=!1,_=a((function(){n()}),v)}else W(new Error("No activity within "+c+" milliseconds. "+(0===x?"No response received.":p+" chars received.")+" Reconnecting.")),void 0!=b&&(b.abort(),b=void 0)};e.url=t,e.readyState=0,e.withCredentials=r,e.headers=v,e._close=Z,Y()}(this,e,t)}var U=void 0!=p&&void 0!=v&&"body"in v.prototype;B.prototype=Object.create(M.prototype),B.prototype.CONNECTING=0,B.prototype.OPEN=1,B.prototype.CLOSED=2,B.prototype.close=function(){this._close()},B.CONNECTING=0,B.OPEN=1,B.CLOSED=2,B.prototype.withCredentials=void 0;var V=f;void 0==l||void 0!=f&&"withCredentials"in f.prototype||(V=B),function(o){if("object"===typeof e.exports){var a=o(t);void 0!==a&&(e.exports=a)}else r=[t],void 0===(i="function"===typeof(n=o)?n.apply(t,r):n)||(e.exports=i)}((function(e){e.EventSourcePolyfill=B,e.NativeEventSource=f,e.EventSource=V}))}("undefined"===typeof globalThis?"undefined"!==typeof window?window:"undefined"!==typeof self?self:this:globalThis)},9053:function(e,t,n){"use strict";var r=n(91),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=l(t),v=l(n),m=0;m<a.length;++m){var g=a[m];if(!o[g]&&(!r||!r[g])&&(!v||!v[g])&&(!s||!s[g])){var y=d(n,g);try{u(t,g,y)}catch(b){}}}}return t}},1565:function(e,t,n){!function(e){"use strict";var t;function r(){}function i(){i.init.call(this)}function o(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function a(e,t,n){if(t)e.call(n);else for(var r=e.length,i=m(e,r),o=0;o<r;++o)i[o].call(n)}function s(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,o=m(e,i),a=0;a<i;++a)o[a].call(n,r)}function l(e,t,n,r,i){if(t)e.call(n,r,i);else for(var o=e.length,a=m(e,o),s=0;s<o;++s)a[s].call(n,r,i)}function u(e,t,n,r,i,o){if(t)e.call(n,r,i,o);else for(var a=e.length,s=m(e,a),l=0;l<a;++l)s[l].call(n,r,i,o)}function c(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,o=m(e,i),a=0;a<i;++a)o[a].apply(n,r)}function f(e,t,n,i){var a,s,l;if("function"!==typeof n)throw new TypeError('"listener" argument must be a function');if((s=e._events)?(s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),l=s[t]):(s=e._events=new r,e._eventsCount=0),l){if("function"===typeof l?l=s[t]=i?[n,l]:[l,n]:i?l.unshift(n):l.push(n),!l.warned&&(a=o(e))&&a>0&&l.length>a){l.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=l.length,d(u)}}else l=s[t]=n,++e._eventsCount;return e}function d(e){"function"===typeof console.warn?console.warn(e):console.log(e)}function h(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function p(e){var t=this._events;if(t){var n=t[e];if("function"===typeof n)return 1;if(n)return n.length}return 0}function v(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}function m(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}function g(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}r.prototype=Object.create(null),i.EventEmitter=i,i.usingDomains=!1,i.prototype.domain=void 0,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.init=function(){this.domain=null,i.usingDomains&&t.active&&t.Domain,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new r,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return o(this)},i.prototype.emit=function(e){var t,n,r,i,o,f,d,h="error"===e;if(f=this._events)h=h&&null==f.error;else if(!h)return!1;if(d=this.domain,h){if(t=arguments[1],!d){if(t instanceof Error)throw t;var p=new Error('Uncaught, unspecified "error" event. ('+t+")");throw p.context=t,p}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=d,t.domainThrown=!1,d.emit("error",t),!1}if(!(n=f[e]))return!1;var v="function"===typeof n;switch(r=arguments.length){case 1:a(n,v,this);break;case 2:s(n,v,this,arguments[1]);break;case 3:l(n,v,this,arguments[1],arguments[2]);break;case 4:u(n,v,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];c(n,v,this,i)}return!0},i.prototype.addListener=function(e,t){return f(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return f(this,e,t,!0)},i.prototype.once=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,h(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,h(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,i,o,a,s;if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(n=i[e]))return this;if(n===t||n.listener&&n.listener===t)0===--this._eventsCount?this._events=new r:(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(o=-1,a=n.length;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){s=n[a].listener,o=a;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0===--this._eventsCount)return this._events=new r,this;delete i[e]}else v(n,o);i.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new r,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new r:delete n[e]),this;if(0===arguments.length){for(var i,o=Object.keys(n),a=0;a<o.length;++a)"removeListener"!==(i=o[a])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=new r,this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},i.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"===typeof t?[t.listener||t]:g(t):[]},i.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var y="undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},b=[],_=[],x="undefined"!==typeof Uint8Array?Uint8Array:Array,w=!1;function k(){w=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)b[t]=e[t],_[e.charCodeAt(t)]=t;_["-".charCodeAt(0)]=62,_["_".charCodeAt(0)]=63}function S(e){var t,n,r,i,o,a;w||k();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new x(3*s/4-o),r=o>0?s-4:s;var l=0;for(t=0,n=0;t<r;t+=4,n+=3)i=_[e.charCodeAt(t)]<<18|_[e.charCodeAt(t+1)]<<12|_[e.charCodeAt(t+2)]<<6|_[e.charCodeAt(t+3)],a[l++]=i>>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=_[e.charCodeAt(t)]<<2|_[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=_[e.charCodeAt(t)]<<10|_[e.charCodeAt(t+1)]<<4|_[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}function C(e){return b[e>>18&63]+b[e>>12&63]+b[e>>6&63]+b[63&e]}function E(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],i.push(C(r));return i.join("")}function T(e){var t;w||k();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,l=n-r;s<l;s+=a)o.push(E(e,s,s+a>l?l:s+a));return 1===r?(t=e[n-1],i+=b[t>>2],i+=b[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=b[t>>10],i+=b[t>>4&63],i+=b[t<<2&63],i+="="),o.push(i),o.join("")}function M(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)}function O(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*v}var P={}.toString,j=Array.isArray||function(e){return"[object Array]"==P.call(e)},N=50;function D(){return L.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function R(e,t){if(D()<t)throw new RangeError("Invalid typed array length");return L.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=L.prototype:(null===e&&(e=new L(t)),e.length=t),e}function L(e,t,n){if(!L.TYPED_ARRAY_SUPPORT&&!(this instanceof L))return new L(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return z(this,e)}return A(this,e,t,n)}function A(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?V(e,t,n,r):"string"===typeof t?B(e,t,n):H(e,t)}function I(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function F(e,t,n,r){return I(t),t<=0?R(e,t):void 0!==n?"string"===typeof r?R(e,t).fill(n,r):R(e,t).fill(n):R(e,t)}function z(e,t){if(I(t),e=R(e,t<0?0:0|W(t)),!L.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function B(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!L.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Y(t,n),i=(e=R(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}function U(e,t){var n=t.length<0?0:0|W(t.length);e=R(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function V(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),L.TYPED_ARRAY_SUPPORT?(e=t).__proto__=L.prototype:e=U(e,t),e}function H(e,t){if(Z(t)){var n=0|W(t.length);return 0===(e=R(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||Te(t.length)?R(e,0):U(e,t);if("Buffer"===t.type&&j(t.data))return U(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function W(e){if(e>=D())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+D().toString(16)+" bytes");return 0|e}function Z(e){return!(null==e||!e._isBuffer)}function Y(e,t){if(Z(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return we(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Ce(e).length;default:if(r)return we(e).length;t=(""+t).toLowerCase(),r=!0}}function q(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return ue(this,t,n);case"utf8":case"utf-8":return ie(this,t,n);case"ascii":return se(this,t,n);case"latin1":case"binary":return le(this,t,n);case"base64":return re(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function G(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function K(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=L.from(t,r)),Z(t))return 0===t.length?-1:Q(e,t,n,r,i);if("number"===typeof t)return t&=255,L.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Q(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Q(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var f=!0,d=0;d<l;d++)if(u(e,o+d)!==u(t,d)){f=!1;break}if(f)return o}return-1}function $(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function X(e,t,n,r){return Ee(we(t,e.length-n),e,n,r)}function J(e,t,n,r){return Ee(ke(t),e,n,r)}function ee(e,t,n,r){return J(e,t,n,r)}function te(e,t,n,r){return Ee(Ce(t),e,n,r)}function ne(e,t,n,r){return Ee(Se(t,e.length-n),e,n,r)}function re(e,t,n){return 0===t&&n===e.length?T(e):T(e.slice(t,n))}function ie(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,u=e[i],c=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128===(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return ae(r)}L.TYPED_ARRAY_SUPPORT=void 0===y.TYPED_ARRAY_SUPPORT||y.TYPED_ARRAY_SUPPORT,L.poolSize=8192,L._augment=function(e){return e.__proto__=L.prototype,e},L.from=function(e,t,n){return A(null,e,t,n)},L.TYPED_ARRAY_SUPPORT&&(L.prototype.__proto__=Uint8Array.prototype,L.__proto__=Uint8Array),L.alloc=function(e,t,n){return F(null,e,t,n)},L.allocUnsafe=function(e){return z(null,e)},L.allocUnsafeSlow=function(e){return z(null,e)},L.isBuffer=Me,L.compare=function(e,t){if(!Z(e)||!Z(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},L.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},L.concat=function(e,t){if(!j(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return L.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=L.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!Z(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},L.byteLength=Y,L.prototype._isBuffer=!0,L.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)G(this,t,t+1);return this},L.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)G(this,t,t+3),G(this,t+1,t+2);return this},L.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)G(this,t,t+7),G(this,t+1,t+6),G(this,t+2,t+5),G(this,t+3,t+4);return this},L.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?ie(this,0,e):q.apply(this,arguments)},L.prototype.equals=function(e){if(!Z(e))throw new TypeError("Argument must be a Buffer");return this===e||0===L.compare(this,e)},L.prototype.inspect=function(){var e="",t=N;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},L.prototype.compare=function(e,t,n,r,i){if(!Z(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),c=0;c<s;++c)if(l[c]!==u[c]){o=l[c],a=u[c];break}return o<a?-1:a<o?1:0},L.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},L.prototype.indexOf=function(e,t,n){return K(this,e,t,n,!0)},L.prototype.lastIndexOf=function(e,t,n){return K(this,e,t,n,!1)},L.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return $(this,e,t,n);case"utf8":case"utf-8":return X(this,e,t,n);case"ascii":return J(this,e,t,n);case"latin1":case"binary":return ee(this,e,t,n);case"base64":return te(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},L.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var oe=4096;function ae(e){var t=e.length;if(t<=oe)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=oe));return n}function se(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function le(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function ue(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=xe(e[o]);return i}function ce(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function fe(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function de(e,t,n,r,i,o){if(!Z(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function he(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function pe(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function ve(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function me(e,t,n,r,i){return i||ve(e,t,n,4),O(e,t,n,r,23,4),n+4}function ge(e,t,n,r,i){return i||ve(e,t,n,8),O(e,t,n,r,52,8),n+8}L.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),L.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=L.prototype;else{var i=t-e;n=new L(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},L.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||fe(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},L.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||fe(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},L.prototype.readUInt8=function(e,t){return t||fe(e,1,this.length),this[e]},L.prototype.readUInt16LE=function(e,t){return t||fe(e,2,this.length),this[e]|this[e+1]<<8},L.prototype.readUInt16BE=function(e,t){return t||fe(e,2,this.length),this[e]<<8|this[e+1]},L.prototype.readUInt32LE=function(e,t){return t||fe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},L.prototype.readUInt32BE=function(e,t){return t||fe(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},L.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||fe(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},L.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||fe(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},L.prototype.readInt8=function(e,t){return t||fe(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},L.prototype.readInt16LE=function(e,t){t||fe(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},L.prototype.readInt16BE=function(e,t){t||fe(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},L.prototype.readInt32LE=function(e,t){return t||fe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},L.prototype.readInt32BE=function(e,t){return t||fe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},L.prototype.readFloatLE=function(e,t){return t||fe(e,4,this.length),M(this,e,!0,23,4)},L.prototype.readFloatBE=function(e,t){return t||fe(e,4,this.length),M(this,e,!1,23,4)},L.prototype.readDoubleLE=function(e,t){return t||fe(e,8,this.length),M(this,e,!0,52,8)},L.prototype.readDoubleBE=function(e,t){return t||fe(e,8,this.length),M(this,e,!1,52,8)},L.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||de(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},L.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||de(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},L.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,1,255,0),L.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},L.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,2,65535,0),L.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):he(this,e,t,!0),t+2},L.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,2,65535,0),L.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):he(this,e,t,!1),t+2},L.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,4,4294967295,0),L.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):pe(this,e,t,!0),t+4},L.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,4,4294967295,0),L.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):pe(this,e,t,!1),t+4},L.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);de(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},L.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);de(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},L.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,1,127,-128),L.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},L.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,2,32767,-32768),L.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):he(this,e,t,!0),t+2},L.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,2,32767,-32768),L.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):he(this,e,t,!1),t+2},L.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,4,2147483647,-2147483648),L.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):pe(this,e,t,!0),t+4},L.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),L.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):pe(this,e,t,!1),t+4},L.prototype.writeFloatLE=function(e,t,n){return me(this,e,t,!0,n)},L.prototype.writeFloatBE=function(e,t,n){return me(this,e,t,!1,n)},L.prototype.writeDoubleLE=function(e,t,n){return ge(this,e,t,!0,n)},L.prototype.writeDoubleBE=function(e,t,n){return ge(this,e,t,!1,n)},L.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!L.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},L.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!L.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=Z(e)?e:we(new L(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var ye=/[^+\/0-9A-Za-z-_]/g;function be(e){if((e=_e(e).replace(ye,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}function _e(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function xe(e){return e<16?"0"+e.toString(16):e.toString(16)}function we(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function ke(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Se(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}function Ce(e){return S(be(e))}function Ee(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Te(e){return e!==e}function Me(e){return null!=e&&(!!e._isBuffer||Oe(e)||Pe(e))}function Oe(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Pe(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&Oe(e.slice(0,0))}function je(){throw new Error("setTimeout has not been defined")}function Ne(){throw new Error("clearTimeout has not been defined")}var De=je,Re=Ne;function Le(e){if(De===setTimeout)return setTimeout(e,0);if((De===je||!De)&&setTimeout)return De=setTimeout,setTimeout(e,0);try{return De(e,0)}catch(t){try{return De.call(null,e,0)}catch(t){return De.call(this,e,0)}}}function Ae(e){if(Re===clearTimeout)return clearTimeout(e);if((Re===Ne||!Re)&&clearTimeout)return Re=clearTimeout,clearTimeout(e);try{return Re(e)}catch(t){try{return Re.call(null,e)}catch(t){return Re.call(this,e)}}}"function"===typeof y.setTimeout&&(De=setTimeout),"function"===typeof y.clearTimeout&&(Re=clearTimeout);var Ie,Fe=[],ze=!1,Be=-1;function Ue(){ze&&Ie&&(ze=!1,Ie.length?Fe=Ie.concat(Fe):Be=-1,Fe.length&&Ve())}function Ve(){if(!ze){var e=Le(Ue);ze=!0;for(var t=Fe.length;t;){for(Ie=Fe,Fe=[];++Be<t;)Ie&&Ie[Be].run();Be=-1,t=Fe.length}Ie=null,ze=!1,Ae(e)}}function He(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Fe.push(new We(e,t)),1!==Fe.length||ze||Le(Ve)}function We(e,t){this.fun=e,this.array=t}We.prototype.run=function(){this.fun.apply(null,this.array)};var Ze=y.performance||{};Ze.now||Ze.mozNow||Ze.msNow||Ze.oNow||Ze.webkitNow;var Ye="function"===typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},qe=/%[sdj%]/g;function Ge(e){if(!ht(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Je(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(e).replace(qe,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),a=r[n];n<i;a=r[++n])ft(a)||!mt(a)?o+=" "+a:o+=" "+Je(a);return o}function Ke(e,t){if(pt(y.process))return function(){return Ke(e,t).apply(this,arguments)};var n=!1;function r(){return n||(console.error(t),n=!0),e.apply(this,arguments)}return r}var Qe,$e={};function Xe(e){if(pt(Qe)&&(Qe=""),e=e.toUpperCase(),!$e[e])if(new RegExp("\\b"+e+"\\b","i").test(Qe)){var t=0;$e[e]=function(){var n=Ge.apply(null,arguments);console.error("%s %d: %s",e,t,n)}}else $e[e]=function(){};return $e[e]}function Je(e,t){var n={seen:[],stylize:tt};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),ct(t)?n.showHidden=t:t&&xt(n,t),pt(n.showHidden)&&(n.showHidden=!1),pt(n.depth)&&(n.depth=2),pt(n.colors)&&(n.colors=!1),pt(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=et),rt(n,e,n.depth)}function et(e,t){var n=Je.styles[t];return n?"\x1b["+Je.colors[n][0]+"m"+e+"\x1b["+Je.colors[n][1]+"m":e}function tt(e,t){return e}function nt(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function rt(e,t,n){if(e.customInspect&&t&&bt(t.inspect)&&t.inspect!==Je&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return ht(r)||(r=rt(e,r,n)),r}var i=it(e,t);if(i)return i;var o=Object.keys(t),a=nt(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),yt(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return ot(t);if(0===o.length){if(bt(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(vt(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(gt(t))return e.stylize(Date.prototype.toString.call(t),"date");if(yt(t))return ot(t)}var l,u="",c=!1,f=["{","}"];return ut(t)&&(c=!0,f=["[","]"]),bt(t)&&(u=" [Function"+(t.name?": "+t.name:"")+"]"),vt(t)&&(u=" "+RegExp.prototype.toString.call(t)),gt(t)&&(u=" "+Date.prototype.toUTCString.call(t)),yt(t)&&(u=" "+ot(t)),0!==o.length||c&&0!=t.length?n<0?vt(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=c?at(e,t,n,a,o):o.map((function(r){return st(e,t,n,a,r,c)})),e.seen.pop(),lt(l,u,f)):f[0]+u+f[1]}function it(e,t){if(pt(t))return e.stylize("undefined","undefined");if(ht(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return dt(t)?e.stylize(""+t,"number"):ct(t)?e.stylize(""+t,"boolean"):ft(t)?e.stylize("null","null"):void 0}function ot(e){return"["+Error.prototype.toString.call(e)+"]"}function at(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)wt(t,String(a))?o.push(st(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(st(e,t,n,r,i,!0))})),o}function st(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),wt(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=ft(n)?rt(e,l.value,null):rt(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),pt(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function lt(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function ut(e){return Array.isArray(e)}function ct(e){return"boolean"===typeof e}function ft(e){return null===e}function dt(e){return"number"===typeof e}function ht(e){return"string"===typeof e}function pt(e){return void 0===e}function vt(e){return mt(e)&&"[object RegExp]"===_t(e)}function mt(e){return"object"===typeof e&&null!==e}function gt(e){return mt(e)&&"[object Date]"===_t(e)}function yt(e){return mt(e)&&("[object Error]"===_t(e)||e instanceof Error)}function bt(e){return"function"===typeof e}function _t(e){return Object.prototype.toString.call(e)}function xt(e,t){if(!t||!mt(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function wt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function kt(){this.head=null,this.tail=null,this.length=0}Je.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Je.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},kt.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},kt.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},kt.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},kt.prototype.clear=function(){this.head=this.tail=null,this.length=0},kt.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},kt.prototype.concat=function(e){if(0===this.length)return L.alloc(0);if(1===this.length)return this.head.data;for(var t=L.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var St=L.isEncoding||function(e){switch(e&&e.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 Ct(e){if(e&&!St(e))throw new Error("Unknown encoding: "+e)}function Et(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),Ct(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Mt;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Ot;break;default:return void(this.write=Tt)}this.charBuffer=new L(6),this.charReceived=0,this.charLength=0}function Tt(e){return e.toString(this.encoding)}function Mt(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function Ot(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}Et.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},Et.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},Et.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t},Rt.ReadableState=Dt;var Pt=Xe("stream");function jt(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function Nt(e,t){return e.listeners(t).length}function Dt(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Pn&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new kt,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.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new Et(e.encoding),this.encoding=e.encoding)}function Rt(e){if(!(this instanceof Rt))return new Rt(e);this._readableState=new Dt(e,this),this.readable=!0,e&&"function"===typeof e.read&&(this._read=e.read),i.call(this)}function Lt(e,t,n,r,i){var o=Bt(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,Ut(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var l;!t.decoder||i||r||(n=t.decoder.write(n),l=!t.objectMode&&0===n.length),i||(t.reading=!1),l||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&Vt(e))),Wt(e,t)}else i||(t.reading=!1);return At(t)}function At(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}Ye(Rt,i),Rt.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!==typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=L.from(e,t),t=""),Lt(this,n,e,t,!1)},Rt.prototype.unshift=function(e){return Lt(this,this._readableState,e,"",!0)},Rt.prototype.isPaused=function(){return!1===this._readableState.flowing},Rt.prototype.setEncoding=function(e){return this._readableState.decoder=new Et(e),this._readableState.encoding=e,this};var It=8388608;function Ft(e){return e>=It?e=It:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function zt(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=Ft(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function Bt(e,t){var n=null;return Me(t)||"string"===typeof t||null===t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function Ut(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,Vt(e)}}function Vt(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Pt("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?He(Ht,e):Ht(e))}function Ht(e){Pt("emit readable"),e.emit("readable"),Qt(e)}function Wt(e,t){t.readingMore||(t.readingMore=!0,He(Zt,e,t))}function Zt(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Pt("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function Yt(e){return function(){var t=e._readableState;Pt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,Qt(e))}}function qt(e){Pt("readable nexttick read 0"),e.read(0)}function Gt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,He(Kt,e,t))}function Kt(e,t){t.reading||(Pt("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Qt(e),t.flowing&&!t.reading&&e.read(0)}function Qt(e){var t=e._readableState;for(Pt("flow",t.flowing);t.flowing&&null!==e.read(););}function $t(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=Xt(e,t.buffer,t.decoder),n);var n}function Xt(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?Jt(e,t):en(e,t),r}function Jt(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}function en(e,t){var n=L.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}function tn(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,He(nn,t,e))}function nn(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function rn(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}function on(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function an(){}function sn(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function ln(e,t){Object.defineProperty(this,"buffer",{get:Ke((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof Pn&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){gn(t,e)},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 Cn(this)}function un(e){if(!(this instanceof un)&&!(this instanceof Pn))return new un(e);this._writableState=new ln(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev)),i.call(this)}function cn(e,t){var n=new Error("write after end");e.emit("error",n),He(t,n)}function fn(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):L.isBuffer(n)||"string"===typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),He(r,o),i=!1),i}function dn(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=L.from(t,n)),t}function hn(e,t,n,r,i){n=dn(t,n,r),L.isBuffer(n)&&(r="buffer");var o=t.objectMode?1:n.length;t.length+=o;var a=t.length<t.highWaterMark;if(a||(t.needDrain=!0),t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest=new sn(n,r,i),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else pn(e,t,!1,o,n,r,i);return a}function pn(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function vn(e,t,n,r,i){--t.pendingcb,n?He(i,r):i(r),e._writableState.errorEmitted=!0,e.emit("error",r)}function mn(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function gn(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(mn(n),t)vn(e,n,r,t,i);else{var o=xn(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||_n(e,n),r?He(yn,e,n,o,i):yn(e,n,o,i)}}function yn(e,t,n,r){n||bn(e,t),t.pendingcb--,r(),kn(e,t)}function bn(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function _n(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var a=0;n;)i[a]=n,n=n.next,a+=1;pn(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new Cn(t)}else{for(;n;){var s=n.chunk,l=n.encoding,u=n.callback;if(pn(e,t,!1,t.objectMode?1:s.length,s,l,u),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function xn(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function wn(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function kn(e,t){var n=xn(t);return n&&(0===t.pendingcb?(wn(e,t),t.finished=!0,e.emit("finish")):wn(e,t)),n}function Sn(e,t,n){t.ending=!0,kn(e,t),n&&(t.finished?He(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function Cn(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}Rt.prototype.read=function(e){Pt("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Pt("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?tn(this):Vt(this),null;if(0===(e=zt(e,t))&&t.ended)return 0===t.length&&tn(this),null;var r,i=t.needReadable;return Pt("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&Pt("length less than watermark",i=!0),t.ended||t.reading?Pt("reading or ended",i=!1):i&&(Pt("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=zt(n,t))),null===(r=e>0?$t(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&tn(this)),null!==r&&this.emit("data",r),r},Rt.prototype._read=function(e){this.emit("error",new Error("not implemented"))},Rt.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,Pt("pipe count=%d opts=%j",r.pipesCount,t);var i=t&&!1===t.end?u:a;function o(e){Pt("onunpipe"),e===n&&u()}function a(){Pt("onend"),e.end()}r.endEmitted?He(i):n.once("end",i),e.on("unpipe",o);var s=Yt(n);e.on("drain",s);var l=!1;function u(){Pt("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",d),e.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",u),n.removeListener("data",f),l=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var c=!1;function f(t){Pt("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==on(r.pipes,e))&&!l&&(Pt("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function d(t){Pt("onerror",t),v(),e.removeListener("error",d),0===Nt(e,"error")&&e.emit("error",t)}function h(){e.removeListener("finish",p),v()}function p(){Pt("onfinish"),e.removeListener("close",h),v()}function v(){Pt("unpipe"),n.unpipe(e)}return n.on("data",f),jt(e,"error",d),e.once("close",h),e.once("finish",p),e.emit("pipe",n),r.flowing||(Pt("pipe resume"),n.resume()),e},Rt.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}var o=on(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},Rt.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Vt(this):He(qt,this))}return n},Rt.prototype.addListener=Rt.prototype.on,Rt.prototype.resume=function(){var e=this._readableState;return e.flowing||(Pt("resume"),e.flowing=!0,Gt(this,e)),this},Rt.prototype.pause=function(){return Pt("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Pt("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Rt.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",(function(){if(Pt("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)})),e.on("data",(function(i){Pt("wrapped data"),t.decoder&&(i=t.decoder.write(i)),(!t.objectMode||null!==i&&void 0!==i)&&(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return rn(["error","close","destroy","pause","resume"],(function(t){e.on(t,r.emit.bind(r,t))})),r._read=function(t){Pt("wrapped _read",t),n&&(n=!1,e.resume())},r},Rt._fromList=$t,un.WritableState=ln,Ye(un,i),ln.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},un.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},un.prototype.write=function(e,t,n){var r=this._writableState,i=!1;return"function"===typeof t&&(n=t,t=null),L.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!==typeof n&&(n=an),r.ended?cn(this,n):fn(this,r,e,n)&&(r.pendingcb++,i=hn(this,r,e,t,n)),i},un.prototype.cork=function(){this._writableState.corked++},un.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_n(this,e))},un.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},un.prototype._write=function(e,t,n){n(new Error("not implemented"))},un.prototype._writev=null,un.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||Sn(this,r,n)},Ye(Pn,Rt);for(var En,Tn=Object.keys(un.prototype),Mn=0;Mn<Tn.length;Mn++){var On=Tn[Mn];Pn.prototype[On]||(Pn.prototype[On]=un.prototype[On])}function Pn(e){if(!(this instanceof Pn))return new Pn(e);Rt.call(this,e),un.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",jn)}function jn(){this.allowHalfOpen||this._writableState.ended||He(Nn,this)}function Nn(e){e.end()}function Dn(e){this.afterTransform=function(t,n){return Rn(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Rn(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&e.push(n),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}function Ln(e){if(!(this instanceof Ln))return new Ln(e);Pn.call(this,e),this._transformState=new Dn(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",(function(){"function"===typeof this._flush?this._flush((function(e){An(t,e)})):An(t)}))}function An(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function In(e){if(!(this instanceof In))return new In(e);Ln.call(this,e)}function Fn(){i.call(this)}function zn(e){return zn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zn(e)}function Bn(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 Vn(e,t,n){return t&&Un(e.prototype,t),n&&Un(e,n),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}function Wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Hn(e,t,n[t])}))}return e}function Zn(e,t){if("function"!==typeof t&&null!==t)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&&qn(e,t)}function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yn(e)}function qn(e,t){return qn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qn(e,t)}function Gn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kn(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?Gn(e):t}function Qn(e){return Jn(e)||er(e)||nr()}function $n(e){return Xn(e)||er(e)||tr()}function Xn(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function Jn(e){if(Array.isArray(e))return e}function er(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function tr(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function nr(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function rr(){if("undefined"===typeof En){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])En="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");En="LE"}}return En}function ir(){return"undefined"!==typeof y.location?y.location.hostname:""}function or(){return[]}function ar(){return 0}function sr(){return Number.MAX_VALUE}function lr(){return Number.MAX_VALUE}function ur(){return[]}function cr(){return"Browser"}function fr(){return"undefined"!==typeof y.navigator?y.navigator.appVersion:""}function dr(){}function hr(){}function pr(){return"/tmp"}Ye(Ln,Pn),Ln.prototype.push=function(e,t){return this._transformState.needTransform=!1,Pn.prototype.push.call(this,e,t)},Ln.prototype._transform=function(e,t,n){throw new Error("Not implemented")},Ln.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},Ln.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Ye(In,Ln),In.prototype._transform=function(e,t,n){n(null,e)},Ye(Fn,i),Fn.Readable=Rt,Fn.Writable=un,Fn.Duplex=Pn,Fn.Transform=Ln,Fn.PassThrough=In,Fn.Stream=Fn,Fn.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",r),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e};var vr={EOL:"\n",tmpdir:pr,tmpDir:pr,networkInterfaces:dr,getNetworkInterfaces:hr,release:fr,type:cr,cpus:ur,totalmem:lr,freemem:sr,uptime:ar,loadavg:or,hostname:ir,endianness:rr},mr="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},gr="Expected a function",yr="__lodash_hash_undefined__",br=1/0,_r="[object Function]",xr="[object GeneratorFunction]",wr="[object Symbol]",kr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sr=/^\w*$/,Cr=/^\./,Er=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tr=/[\\^$.*+?()[\]{}|]/g,Mr=/\\(\\)?/g,Or=/^\[object .+?Constructor\]$/,Pr="object"==typeof mr&&mr&&mr.Object===Object&&mr,jr="object"==typeof self&&self&&self.Object===Object&&self,Nr=Pr||jr||Function("return this")();function Dr(e,t){return null==e?void 0:e[t]}function Rr(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}var Lr=Array.prototype,Ar=Function.prototype,Ir=Object.prototype,Fr=Nr["__core-js_shared__"],zr=function(){var e=/[^.]+$/.exec(Fr&&Fr.keys&&Fr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Br=Ar.toString,Ur=Ir.hasOwnProperty,Vr=Ir.toString,Hr=RegExp("^"+Br.call(Ur).replace(Tr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wr=Nr.Symbol,Zr=Lr.splice,Yr=_i(Nr,"Map"),qr=_i(Object,"create"),Gr=Wr?Wr.prototype:void 0,Kr=Gr?Gr.toString:void 0;function Qr(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(){this.__data__=qr?qr(null):{}}function Xr(e){return this.has(e)&&delete this.__data__[e]}function Jr(e){var t=this.__data__;if(qr){var n=t[e];return n===yr?void 0:n}return Ur.call(t,e)?t[e]:void 0}function ei(e){var t=this.__data__;return qr?void 0!==t[e]:Ur.call(t,e)}function ti(e,t){return this.__data__[e]=qr&&void 0===t?yr:t,this}function ni(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 ri(){this.__data__=[]}function ii(e){var t=this.__data__,n=pi(t,e);return!(n<0)&&(n==t.length-1?t.pop():Zr.call(t,n,1),!0)}function oi(e){var t=this.__data__,n=pi(t,e);return n<0?void 0:t[n][1]}function ai(e){return pi(this.__data__,e)>-1}function si(e,t){var n=this.__data__,r=pi(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function li(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 ui(){this.__data__={hash:new Qr,map:new(Yr||ni),string:new Qr}}function ci(e){return bi(this,e).delete(e)}function fi(e){return bi(this,e).get(e)}function di(e){return bi(this,e).has(e)}function hi(e,t){return bi(this,e).set(e,t),this}function pi(e,t){for(var n=e.length;n--;)if(Mi(e[n][0],t))return n;return-1}function vi(e,t){for(var n=0,r=(t=xi(t,e)?[t]:yi(t)).length;null!=e&&n<r;)e=e[Ci(t[n++])];return n&&n==r?e:void 0}function mi(e){return!(!ji(e)||ki(e))&&(Pi(e)||Rr(e)?Hr:Or).test(Ei(e))}function gi(e){if("string"==typeof e)return e;if(Di(e))return Kr?Kr.call(e):"";var t=e+"";return"0"==t&&1/e==-br?"-0":t}function yi(e){return Oi(e)?e:Si(e)}function bi(e,t){var n=e.__data__;return wi(t)?n["string"==typeof t?"string":"hash"]:n.map}function _i(e,t){var n=Dr(e,t);return mi(n)?n:void 0}function xi(e,t){if(Oi(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Di(e))||Sr.test(e)||!kr.test(e)||null!=t&&e in Object(t)}function wi(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ki(e){return!!zr&&zr in e}Qr.prototype.clear=$r,Qr.prototype.delete=Xr,Qr.prototype.get=Jr,Qr.prototype.has=ei,Qr.prototype.set=ti,ni.prototype.clear=ri,ni.prototype.delete=ii,ni.prototype.get=oi,ni.prototype.has=ai,ni.prototype.set=si,li.prototype.clear=ui,li.prototype.delete=ci,li.prototype.get=fi,li.prototype.has=di,li.prototype.set=hi;var Si=Ti((function(e){e=Ri(e);var t=[];return Cr.test(e)&&t.push(""),e.replace(Er,(function(e,n,r,i){t.push(r?i.replace(Mr,"$1"):n||e)})),t}));function Ci(e){if("string"==typeof e||Di(e))return e;var t=e+"";return"0"==t&&1/e==-br?"-0":t}function Ei(e){if(null!=e){try{return Br.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ti(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(gr);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(Ti.Cache||li),n}function Mi(e,t){return e===t||e!==e&&t!==t}Ti.Cache=li;var Oi=Array.isArray;function Pi(e){var t=ji(e)?Vr.call(e):"";return t==_r||t==xr}function ji(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ni(e){return!!e&&"object"==typeof e}function Di(e){return"symbol"==typeof e||Ni(e)&&Vr.call(e)==wr}function Ri(e){return null==e?"":gi(e)}function Li(e,t,n){var r=null==e?void 0:vi(e,t);return void 0===r?n:r}var Ai=Li;function Ii(e,t,n){return void 0===e[t]?n:e[t]}function Fi(e,t,n){var r=Array.isArray(t)?t:t.split("."),i=Qn(r),o=i[0],a=i.slice(1);return Wn({},e,Hn({},o,r.length>1?Fi(e[o]||{},a,n):n))}function zi(e,t){var n=Array.isArray(t)?t:t.split("."),r=Qn(n),i=r[0],o=r.slice(1);return"object"!==zn(e[i])?e:1===n.length?Object.keys(e).filter((function(e){return e!==i})).reduce((function(t,n){return Object.assign(t,Hn({},n,e[n]))}),{}):Object.keys(e).reduce((function(t,n){return Wn({},t,Hn({},n,n!==i?e[n]:zi(e[i],o)))}),{})}function Bi(e,t){try{return e.push.apply(e,$n(t)),e}catch(n){return e.concat(t)}}function Ui(e,t){var n=!0;return e.reduce((function(e,r){return null!==r&&void 0!==r||(r=""),n?(n=!1,"".concat(r)):"".concat(e).concat(t).concat(r)}),"")}var Vi={getProp:Ii,setProp:Fi,unsetProp:zi,fastJoin:Ui,flattenReducer:Bi},Hi=Vi.getProp,Wi=Vi.fastJoin,Zi=Vi.flattenReducer,Yi=function(){function e(t){Bn(this,e),this.opts=this.preprocessOpts(t)}return Vn(e,[{key:"preprocessOpts",value:function(e){var t=Object.assign({},e);return t.transforms=Array.isArray(t.transforms)?t.transforms:t.transforms?[t.transforms]:[],t.delimiter=t.delimiter||",",t.eol=t.eol||vr.EOL,t.quote="string"===typeof t.quote?t.quote:'"',t.escapedQuote="string"===typeof t.escapedQuote?t.escapedQuote:"".concat(t.quote).concat(t.quote),t.header=!1!==t.header,t.includeEmptyRows=t.includeEmptyRows||!1,t.withBOM=t.withBOM||!1,t}},{key:"preprocessFieldsInfo",value:function(e){var t=this;return e.map((function(e){if("string"===typeof e)return{label:e,value:e.includes(".")||e.includes("[")?function(n){return Ai(n,e,t.opts.defaultValue)}:function(n){return Hi(n,e,t.opts.defaultValue)}};if("object"===zn(e)){var n="default"in e?e.default:t.opts.defaultValue;if("string"===typeof e.value)return{label:e.label||e.value,value:e.value.includes(".")||e.value.includes("[")?function(t){return Ai(t,e.value,n)}:function(t){return Hi(t,e.value,n)}};if("function"===typeof e.value){var r=e.label||e.value.name||"",i={label:r,default:n};return{label:r,value:function(t){var r=e.value(t,i);return null===r||void 0===r?n:r}}}}throw new Error("Invalid field info option. "+JSON.stringify(e))}))}},{key:"getHeader",value:function(){var e=this;return Wi(this.opts.fields.map((function(t){return e.processValue(t.label)})),this.opts.delimiter)}},{key:"preprocessRow",value:function(e){return this.opts.transforms.reduce((function(e,t){return e.map((function(e){return t(e)})).reduce(Zi,[])}),[e])}},{key:"processRow",value:function(e){var t=this;if(e){var n=this.opts.fields.map((function(n){return t.processCell(e,n)}));if(this.opts.includeEmptyRows||!n.every((function(e){return void 0===e})))return Wi(n,this.opts.delimiter)}}},{key:"processCell",value:function(e,t){return this.processValue(t.value(e))}},{key:"processValue",value:function(e){if(null!==e&&void 0!==e){var t=zn(e);if("boolean"!==t&&"number"!==t&&"string"!==t){if(void 0===(e=JSON.stringify(e)))return;'"'===e[0]&&(e=e.replace(/^"(.+)"$/,"$1"))}return"string"===typeof e&&(this.opts.excelStrings?(e.includes(this.opts.quote)&&(e=e.replace(new RegExp(this.opts.quote,"g"),"".concat(this.opts.escapedQuote).concat(this.opts.escapedQuote))),e='"=""'.concat(e,'"""')):(e.includes(this.opts.quote)&&(e=e.replace(new RegExp(this.opts.quote,"g"),this.opts.escapedQuote)),e="".concat(this.opts.quote).concat(e).concat(this.opts.quote))),e}}}]),e}(),qi=Vi.fastJoin,Gi=Vi.flattenReducer,Ki=function(e){function t(e){var n;return Bn(this,t),(n=Kn(this,Yn(t).call(this,e))).opts.fields&&(n.opts.fields=n.preprocessFieldsInfo(n.opts.fields)),n}return Zn(t,e),Vn(t,[{key:"parse",value:function(e){var t=this.preprocessData(e);this.opts.fields||(this.opts.fields=t.reduce((function(e,t){return Object.keys(t).forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),this.opts.fields=this.preprocessFieldsInfo(this.opts.fields));var n=this.opts.header?this.getHeader():"",r=this.processData(t);return(this.opts.withBOM?"\ufeff":"")+n+(n&&r?this.opts.eol:"")+r}},{key:"preprocessData",value:function(e){var t=this,n=Array.isArray(e)?e:[e];if(!this.opts.fields&&(0===n.length||"object"!==zn(n[0])))throw new Error('Data should not be empty or the "fields" option should be included');return 0===this.opts.transforms.length?n:n.map((function(e){return t.preprocessRow(e)})).reduce(Gi,[])}},{key:"processData",value:function(e){var t=this;return qi(e.map((function(e){return t.processRow(e)})).filter((function(e){return e})),this.opts.eol)}}]),t}(Yi),Qi={},$i=Qi.LEFT_BRACE=1,Xi=Qi.RIGHT_BRACE=2,Ji=Qi.LEFT_BRACKET=3,eo=Qi.RIGHT_BRACKET=4,to=Qi.COLON=5,no=Qi.COMMA=6,ro=Qi.TRUE=7,io=Qi.FALSE=8,oo=Qi.NULL=9,ao=Qi.STRING=10,so=Qi.NUMBER=11,lo=Qi.START=17,uo=Qi.STOP=18,co=Qi.TRUE1=33,fo=Qi.TRUE2=34,ho=Qi.TRUE3=35,po=Qi.FALSE1=49,vo=Qi.FALSE2=50,mo=Qi.FALSE3=51,go=Qi.FALSE4=52,yo=Qi.NULL1=65,bo=Qi.NULL2=66,_o=Qi.NULL3=67,xo=Qi.NUMBER1=81,wo=Qi.NUMBER3=83,ko=Qi.STRING1=97,So=Qi.STRING2=98,Co=Qi.STRING3=99,Eo=Qi.STRING4=100,To=Qi.STRING5=101,Mo=Qi.STRING6=102,Oo=Qi.VALUE=113,Po=Qi.KEY=114,jo=Qi.OBJECT=129,No=Qi.ARRAY=130,Do="\\".charCodeAt(0),Ro="/".charCodeAt(0),Lo="\b".charCodeAt(0),Ao="\f".charCodeAt(0),Io="\n".charCodeAt(0),Fo="\r".charCodeAt(0),zo="\t".charCodeAt(0),Bo=65536;function Uo(){this.tState=lo,this.value=void 0,this.string=void 0,this.stringBuffer=L.alloc?L.alloc(Bo):new L(Bo),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=Oo,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new L(2),3:new L(3),4:new L(4)},this.offset=-1}Uo.toknam=function(e){for(var t=Object.keys(Qi),n=0,r=t.length;n<r;n++){var i=t[n];if(Qi[i]===e)return i}return e&&"0x"+e.toString(16)};var Vo=Uo.prototype;Vo.onError=function(e){throw e},Vo.charError=function(e,t){this.tState=uo,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(e[t]))+" at position "+t+" in state "+Uo.toknam(this.tState)))},Vo.appendStringChar=function(e){this.stringBufferOffset>=Bo&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=e},Vo.appendStringBuf=function(e,t,n){var r=e.length;"number"===typeof t&&(r="number"===typeof n?n<0?e.length-t+n:n-t:e.length-t),r<0&&(r=0),this.stringBufferOffset+r>Bo&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),e.copy(this.stringBuffer,this.stringBufferOffset,t,n),this.stringBufferOffset+=r},Vo.write=function(e){var t;"string"===typeof e&&(e=new L(e));for(var n=0,r=e.length;n<r;n++)if(this.tState===lo){if(t=e[n],this.offset++,123===t)this.onToken($i,"{");else if(125===t)this.onToken(Xi,"}");else if(91===t)this.onToken(Ji,"[");else if(93===t)this.onToken(eo,"]");else if(58===t)this.onToken(to,":");else if(44===t)this.onToken(no,",");else if(116===t)this.tState=co;else if(102===t)this.tState=po;else if(110===t)this.tState=yo;else if(34===t)this.string="",this.stringBufferOffset=0,this.tState=ko;else if(45===t)this.string="-",this.tState=xo;else if(t>=48&&t<64)this.string=String.fromCharCode(t),this.tState=wo;else if(32!==t&&9!==t&&10!==t&&13!==t)return this.charError(e,n)}else if(this.tState===ko)if(t=e[n],this.bytes_remaining>0){for(var i=0;i<this.bytes_remaining;i++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+i]=e[i];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,n=n+i-1}else if(0===this.bytes_remaining&&t>=128){if(t<=193||t>244)return this.onError(new Error("Invalid UTF-8 character at position "+n+" in state "+Uo.toknam(this.tState)));if(t>=194&&t<=223&&(this.bytes_in_sequence=2),t>=224&&t<=239&&(this.bytes_in_sequence=3),t>=240&&t<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+n>e.length){for(var o=0;o<=e.length-1-n;o++)this.temp_buffs[this.bytes_in_sequence][o]=e[n+o];this.bytes_remaining=n+this.bytes_in_sequence-e.length,n=e.length-1}else this.appendStringBuf(e,n,n+this.bytes_in_sequence),n=n+this.bytes_in_sequence-1}else if(34===t)this.tState=lo,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(ao,this.string),this.offset+=L.byteLength(this.string,"utf8")+1,this.string=void 0;else if(92===t)this.tState=So;else{if(!(t>=32))return this.charError(e,n);this.appendStringChar(t)}else if(this.tState===So)if(34===(t=e[n]))this.appendStringChar(t),this.tState=ko;else if(92===t)this.appendStringChar(Do),this.tState=ko;else if(47===t)this.appendStringChar(Ro),this.tState=ko;else if(98===t)this.appendStringChar(Lo),this.tState=ko;else if(102===t)this.appendStringChar(Ao),this.tState=ko;else if(110===t)this.appendStringChar(Io),this.tState=ko;else if(114===t)this.appendStringChar(Fo),this.tState=ko;else if(116===t)this.appendStringChar(zo),this.tState=ko;else{if(117!==t)return this.charError(e,n);this.unicode="",this.tState=Co}else if(this.tState===Co||this.tState===Eo||this.tState===To||this.tState===Mo){if(!((t=e[n])>=48&&t<64||t>64&&t<=70||t>96&&t<=102))return this.charError(e,n);if(this.unicode+=String.fromCharCode(t),this.tState++===Mo){var a=parseInt(this.unicode,16);this.unicode=void 0,void 0!==this.highSurrogate&&a>=56320&&a<57344?(this.appendStringBuf(new L(String.fromCharCode(this.highSurrogate,a))),this.highSurrogate=void 0):void 0===this.highSurrogate&&a>=55296&&a<56320?this.highSurrogate=a:(void 0!==this.highSurrogate&&(this.appendStringBuf(new L(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new L(String.fromCharCode(a)))),this.tState=ko}}else if(this.tState===xo||this.tState===wo)switch(t=e[n]){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(t),this.tState=wo;break;default:this.tState=lo;var s=Number(this.string);if(isNaN(s))return this.charError(e,n);this.string.match(/[0-9]+/)==this.string&&s.toString()!=this.string?this.onToken(ao,this.string):this.onToken(so,s),this.offset+=this.string.length-1,this.string=void 0,n--}else if(this.tState===co){if(114!==e[n])return this.charError(e,n);this.tState=fo}else if(this.tState===fo){if(117!==e[n])return this.charError(e,n);this.tState=ho}else if(this.tState===ho){if(101!==e[n])return this.charError(e,n);this.tState=lo,this.onToken(ro,!0),this.offset+=3}else if(this.tState===po){if(97!==e[n])return this.charError(e,n);this.tState=vo}else if(this.tState===vo){if(108!==e[n])return this.charError(e,n);this.tState=mo}else if(this.tState===mo){if(115!==e[n])return this.charError(e,n);this.tState=go}else if(this.tState===go){if(101!==e[n])return this.charError(e,n);this.tState=lo,this.onToken(io,!1),this.offset+=4}else if(this.tState===yo){if(117!==e[n])return this.charError(e,n);this.tState=bo}else if(this.tState===bo){if(108!==e[n])return this.charError(e,n);this.tState=_o}else if(this.tState===_o){if(108!==e[n])return this.charError(e,n);this.tState=lo,this.onToken(oo,null),this.offset+=3}},Vo.onToken=function(e,t){},Vo.parseError=function(e,t){this.tState=uo,this.onError(new Error("Unexpected "+Uo.toknam(e)+(t?"("+JSON.stringify(t)+")":"")+" in state "+Uo.toknam(this.state)))},Vo.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},Vo.pop=function(){var e=this.value,t=this.stack.pop();this.value=t.value,this.key=t.key,this.mode=t.mode,this.emit(e),this.mode||(this.state=Oo)},Vo.emit=function(e){this.mode&&(this.state=no),this.onValue(e)},Vo.onValue=function(e){},Vo.onToken=function(e,t){if(this.state===Oo)if(e===ao||e===so||e===ro||e===io||e===oo)this.value&&(this.value[this.key]=t),this.emit(t);else if(e===$i)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=Po,this.mode=jo;else if(e===Ji)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=No,this.state=Oo;else if(e===Xi){if(this.mode!==jo)return this.parseError(e,t);this.pop()}else{if(e!==eo)return this.parseError(e,t);if(this.mode!==No)return this.parseError(e,t);this.pop()}else if(this.state===Po)if(e===ao)this.key=t,this.state=to;else{if(e!==Xi)return this.parseError(e,t);this.pop()}else if(this.state===to){if(e!==to)return this.parseError(e,t);this.state=Oo}else{if(this.state!==no)return this.parseError(e,t);if(e===no)this.mode===No?(this.key++,this.state=Oo):this.mode===jo&&(this.state=Po);else{if(!(e===eo&&this.mode===No||e===Xi&&this.mode===jo))return this.parseError(e,t);this.pop()}}},Uo.C=Qi;var Ho=Uo,Wo=function(e){function t(e,n){var r;return Bn(this,t),r=Kn(this,Yn(t).call(this,n)),Object.getOwnPropertyNames(Yi.prototype).forEach((function(e){return r[e]=Yi.prototype[e]})),r.opts=r.preprocessOpts(e),r._data="",r._hasWritten=!1,r._readableState.objectMode?r.initObjectModeParse():r.opts.ndjson?r.initNDJSONParse():r.initJSONParser(),r.opts.withBOM&&r.push("\ufeff"),r.opts.fields&&(r.opts.fields=r.preprocessFieldsInfo(r.opts.fields),r.pushHeader()),r}return Zn(t,e),Vn(t,[{key:"initObjectModeParse",value:function(){var e=this;this.parser={write:function(t){e.pushLine(t)},getPendingData:function(){}}}},{key:"initNDJSONParse",value:function(){var e=this;this.parser={_data:"",write:function(t){this._data+=t.toString();var n=this._data.split("\n").map((function(e){return e.trim()})).filter((function(e){return""!==e})),r=!1;n.forEach((function(t,i){try{e.pushLine(JSON.parse(t))}catch(o){i===n.length-1?r=!0:(o.message="Invalid JSON (".concat(t,")"),e.emit("error",o))}})),this._data=r?this._data.slice(this._data.lastIndexOf("\n")):""},getPendingData:function(){return this._data}}}},{key:"initJSONParser",value:function(){var e=this;this.parser=new Ho,this.parser.onValue=function(t){this.stack.length===this.depthToEmit&&e.pushLine(t)},this.parser._onToken=this.parser.onToken,this.parser.onToken=function(t,n){e.parser._onToken(t,n),0!==this.stack.length||e.opts.fields||this.mode===Ho.C.ARRAY||this.mode===Ho.C.OBJECT||this.onError(new Error('Data should not be empty or the "fields" option should be included')),1===this.stack.length&&(void 0===this.depthToEmit&&(this.depthToEmit=this.mode===Ho.C.ARRAY?1:0),0!==this.depthToEmit&&1===this.stack.length&&(this.value=void 0))},this.parser.getPendingData=function(){return this.value},this.parser.onError=function(t){t.message.includes("Unexpected")&&(t.message="Invalid JSON (".concat(t.message,")")),e.emit("error",t)}}},{key:"_transform",value:function(e,t,n){this.parser.write(e),n()}},{key:"_flush",value:function(e){this.parser.getPendingData()&&e(new Error("Invalid data received from stdin",this.parser.getPendingData())),e()}},{key:"pushHeader",value:function(){if(this.opts.header){var e=this.getHeader();this.emit("header",e),this.push(e),this._hasWritten=!0}}},{key:"pushLine",value:function(e){var t=this,n=this.preprocessRow(e);this._hasWritten||(this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(Object.keys(n[0])),this.pushHeader()),n.forEach((function(e){var n=t.processRow(e,t.opts);void 0!==n&&(t.emit("line",n),t.push(t._hasWritten?t.opts.eol+n:n),t._hasWritten=!0)}))}}]),t}(Fn.Transform),Zo=Wo,Yo=Fn.Transform,qo=Vi.fastJoin,Go=function(){function e(t,n){Bn(this,e),this.input=new Yo(n),this.input._read=function(){},this.transform=new Zo(t,n),this.processor=this.input.pipe(this.transform)}return Vn(e,[{key:"fromInput",value:function(e){if(this._input)throw new Error("Async parser already has an input.");return this._input=e,this.input=this._input.pipe(this.processor),this}},{key:"throughTransform",value:function(e){if(this._output)throw new Error("Can't add transforms once an output has been added.");return this.processor=this.processor.pipe(e),this}},{key:"toOutput",value:function(e){if(this._output)throw new Error("Async parser already has an output.");return this._output=e,this.processor=this.processor.pipe(e),this}},{key:"promise",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new Promise((function(n,r){if(t){var i=[];e.processor.on("data",(function(e){return i.push(e.toString())})).on("finish",(function(){return n(qo(i,""))})).on("error",(function(e){return r(e)}))}else e.processor.on("finish",(function(){return n()})).on("error",(function(e){return r(e)}))}))}}]),e}(),Ko=Go;function Qo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.objects,n=void 0===t||t,r=e.arrays,i=void 0!==r&&r,o=e.separator,a=void 0===o?".":o;function s(e,t,r){return Object.keys(e).forEach((function(o){var l=r?"".concat(r).concat(a).concat(o):o,u=e[o];n&&"object"===zn(u)&&null!==u&&!Array.isArray(u)&&"[object Function]"!==Object.prototype.toString.call(u.toJSON)&&Object.keys(u).length||i&&Array.isArray(u)?s(u,t,l):t[l]=u})),t}return function(e){return s(e,{})}}var $o=Qo,Xo=Vi.setProp,Jo=Vi.unsetProp,ea=Vi.flattenReducer;function ta(e,t){return Object.keys(e).reduce((function(n,r){var i=t?"".concat(t,".").concat(r):r,o=e[r];return"object"===zn(o)&&null!==o&&!Array.isArray(o)&&"[object Function]"!==Object.prototype.toString.call(o.toJSON)&&Object.keys(o).length?n=n.concat(ta(o,i)):Array.isArray(o)&&(n.push(i),n=n.concat(o.map((function(e){return ta(e,i)})).reduce(ea,[]).filter((function(e,t,n){return n.indexOf(e)!==t})))),n}),[])}function na(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.paths,n=void 0===t?void 0:t,r=e.blankOut,i=void 0!==r&&r;function o(e,t){return e.map((function(e){var n=Ai(e,t);return Array.isArray(n)?n.length?n.map((function(n,r){return Xo(i&&r>0?{}:e,t,n)})):Jo(e,t):e})).reduce(ea,[])}return n=Array.isArray(n)?n:n?[n]:void 0,function(e){return(n||ta(e)).reduce(o,[e])}}var ra=na,ia=Fn.Readable,oa=Ki,aa=Ko,sa=Zo,la=function(e,t){return new Ki(t).parse(e)},ua=function(e,t,n){try{e instanceof ia||(n=Object.assign({},n,{objectMode:!0}));var r=new Ko(t,n),i=r.promise();return Array.isArray(e)?(e.forEach((function(e){return r.input.push(e)})),r.input.push(null)):e instanceof ia?r.fromInput(e):(r.input.push(e),r.input.push(null)),i}catch(o){return Promise.reject(o)}},ca={flatten:$o,unwind:ra},fa={Parser:oa,AsyncParser:aa,Transform:sa,parse:la,parseAsync:ua,transforms:ca};e.AsyncParser=aa,e.Parser=oa,e.Transform=sa,e.default=fa,e.parse=la,e.parseAsync=ua,e.transforms=ca,Object.defineProperty(e,"__esModule",{value:!0})}(t)},470:function(e,t){!function(e){"use strict";var t="1.8.0";function n(e){var t,n,r,i;for(n=1,r=arguments.length;n<r;n++)for(t in i=arguments[n])e[t]=i[t];return e}var r=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function i(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var r=n.call(arguments,2);return function(){return e.apply(t,r.length?r.concat(n.call(arguments)):arguments)}}var o=0;function a(e){return"_leaflet_id"in e||(e._leaflet_id=++o),e._leaflet_id}function s(e,t,n){var r,i,o,a;return a=function(){r=!1,i&&(o.apply(n,i),i=!1)},o=function(){r?i=arguments:(e.apply(n,arguments),setTimeout(a,t),r=!0)},o}function l(e,t,n){var r=t[1],i=t[0],o=r-i;return e===r&&n?e:((e-i)%o+o)%o+i}function u(){return!1}function c(e,t){if(!1===t)return e;var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}function f(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function d(e){return f(e).split(/\s+/)}function h(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?r(e.options):{}),t)e.options[n]=t[n];return e.options}function p(e,t,n){var r=[];for(var i in e)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(e[i]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")}var v=/\{ *([\w_ -]+) *\}/g;function m(e,t){return e.replace(v,(function(e,n){var r=t[n];if(void 0===r)throw new Error("No value provided for variable "+e);return"function"===typeof r&&(r=r(t)),r}))}var g=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function y(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function _(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var x=0;function w(e){var t=+new Date,n=Math.max(0,16-(t-x));return x=t+n,window.setTimeout(e,n)}var k=window.requestAnimationFrame||_("RequestAnimationFrame")||w,S=window.cancelAnimationFrame||_("CancelAnimationFrame")||_("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function C(e,t,n){if(!n||k!==w)return k.call(window,i(e,t));e.call(t)}function E(e){e&&S.call(window,e)}var T={__proto__:null,extend:n,create:r,bind:i,get lastId(){return o},stamp:a,throttle:s,wrapNum:l,falseFn:u,formatNum:c,trim:f,splitWords:d,setOptions:h,getParamString:p,template:m,isArray:g,indexOf:y,emptyImageUrl:b,requestFn:k,cancelFn:S,requestAnimFrame:C,cancelAnimFrame:E};function M(){}function O(e){if("undefined"!==typeof L&&L&&L.Mixin){e=g(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===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)}}M.extend=function(e){var t=function(){h(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=t.__super__=this.prototype,o=r(i);for(var a in o.constructor=t,t.prototype=o,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(t[a]=this[a]);return e.statics&&n(t,e.statics),e.includes&&(O(e.includes),n.apply(null,[o].concat(e.includes))),n(o,e),delete o.statics,delete o.includes,o.options&&(o.options=i.options?r(i.options):{},n(o.options,e.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=o._initHooks.length;e<t;e++)o._initHooks[e].call(this)}},t},M.include=function(e){var t=this.prototype.options;return n(this.prototype,e),e.options&&(this.prototype.options=t,this.mergeOptions(e.options)),this},M.mergeOptions=function(e){return n(this.prototype.options,e),this},M.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"===typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var P={on:function(e,t,n){if("object"===typeof e)for(var r in e)this._on(r,e[r],t);else for(var i=0,o=(e=d(e)).length;i<o;i++)this._on(e[i],t,n);return this},off:function(e,t,n){if(arguments.length)if("object"===typeof e)for(var r in e)this._off(r,e[r],t);else{e=d(e);for(var i=1===arguments.length,o=0,a=e.length;o<a;o++)i?this._off(e[o]):this._off(e[o],t,n)}else delete this._events;return this},_on:function(e,t,n){if("function"===typeof t){this._events=this._events||{};var r=this._events[e];r||(r=[],this._events[e]=r),n===this&&(n=void 0);for(var i={fn:t,ctx:n},o=r,a=0,s=o.length;a<s;a++)if(o[a].fn===t&&o[a].ctx===n)return;o.push(i)}else console.warn("wrong listener type: "+typeof t)},_off:function(e,t,n){var r,i,o;if(this._events&&(r=this._events[e]))if(1!==arguments.length)if(n===this&&(n=void 0),"function"===typeof t){for(i=0,o=r.length;i<o;i++){var a=r[i];if(a.ctx===n&&a.fn===t)return this._firingCount&&(a.fn=u,this._events[e]=r=r.slice()),void r.splice(i,1)}console.warn("listener not found")}else console.warn("wrong listener type: "+typeof t);else{if(this._firingCount)for(i=0,o=r.length;i<o;i++)r[i].fn=u;delete this._events[e]}},fire:function(e,t,r){if(!this.listens(e,r))return this;var i=n({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var o=this._events[e];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,s=o.length;a<s;a++){var l=o[a];l.fn.call(l.ctx||this,i)}this._firingCount--}}return r&&this._propagateEvent(i),this},listens:function(e,t){"string"!==typeof e&&console.warn('"string" type argument expected');var n=this._events&&this._events[e];if(n&&n.length)return!0;if(t)for(var r in this._eventParents)if(this._eventParents[r].listens(e,t))return!0;return!1},once:function(e,t,n){if("object"===typeof e){for(var r in e)this.once(r,e[r],t);return this}var o=i((function(){this.off(e,t,n).off(e,o,n)}),this);return this.on(e,t,n).on(e,o,n)},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[a(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[a(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,n({layer:e.target,propagatedFrom:e.target},e),!0)}};P.addEventListener=P.on,P.removeEventListener=P.clearAllEventListeners=P.off,P.addOneTimeEventListener=P.once,P.fireEvent=P.fire,P.hasEventListeners=P.listens;var j=M.extend(P);function N(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var D=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};function R(e,t,n){return e instanceof N?e:g(e)?new N(e[0],e[1]):void 0===e||null===e?e:"object"===typeof e&&"x"in e&&"y"in e?new N(e.x,e.y):new N(e,t,n)}function A(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function I(e,t){return!e||e instanceof A?e:new A(e,t)}function F(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function z(e,t){return e instanceof F?e:new F(e,t)}function B(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function U(e,t,n){return e instanceof B?e:g(e)&&"object"!==typeof e[0]?3===e.length?new B(e[0],e[1],e[2]):2===e.length?new B(e[0],e[1]):null:void 0===e||null===e?e:"object"===typeof e&&"lat"in e?new B(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new B(e,t,n)}N.prototype={clone:function(){return new N(this.x,this.y)},add:function(e){return this.clone()._add(R(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(R(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new N(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new N(this.x/e.x,this.y/e.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=D(this.x),this.y=D(this.y),this},distanceTo:function(e){var t=(e=R(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return(e=R(e)).x===this.x&&e.y===this.y},contains:function(e){return e=R(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},A.prototype={extend:function(e){return e=R(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new N((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new N(this.min.x,this.max.y)},getTopRight:function(){return new N(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(e){var t,n;return(e="number"===typeof e[0]||e instanceof N?R(e):I(e))instanceof A?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=I(e);var t=this.min,n=this.max,r=e.min,i=e.max,o=i.x>=t.x&&r.x<=n.x,a=i.y>=t.y&&r.y<=n.y;return o&&a},overlaps:function(e){e=I(e);var t=this.min,n=this.max,r=e.min,i=e.max,o=i.x>t.x&&r.x<n.x,a=i.y>t.y&&r.y<n.y;return o&&a},isValid:function(){return!(!this.min||!this.max)}},F.prototype={extend:function(e){var t,n,r=this._southWest,i=this._northEast;if(e instanceof B)t=e,n=e;else{if(!(e instanceof F))return e?this.extend(U(e)||z(e)):this;if(t=e._southWest,n=e._northEast,!t||!n)return this}return r||i?(r.lat=Math.min(t.lat,r.lat),r.lng=Math.min(t.lng,r.lng),i.lat=Math.max(n.lat,i.lat),i.lng=Math.max(n.lng,i.lng)):(this._southWest=new B(t.lat,t.lng),this._northEast=new B(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,i=Math.abs(t.lng-n.lng)*e;return new F(new B(t.lat-r,t.lng-i),new B(n.lat+r,n.lng+i))},getCenter:function(){return new B((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 B(this.getNorth(),this.getWest())},getSouthEast:function(){return new B(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(e){e="number"===typeof e[0]||e instanceof B||"lat"in e?U(e):z(e);var t,n,r=this._southWest,i=this._northEast;return e instanceof F?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=i.lat&&t.lng>=r.lng&&n.lng<=i.lng},intersects:function(e){e=z(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),o=i.lat>=t.lat&&r.lat<=n.lat,a=i.lng>=t.lng&&r.lng<=n.lng;return o&&a},overlaps:function(e){e=z(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),o=i.lat>t.lat&&r.lat<n.lat,a=i.lng>t.lng&&r.lng<n.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=z(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}},B.prototype={equals:function(e,t){return!!e&&(e=U(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+c(this.lat,e)+", "+c(this.lng,e)+")"},distanceTo:function(e){return H.distance(this,U(e))},wrap:function(){return H.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return z([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new B(this.lat,this.lng,this.alt)}};var V={latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new A(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?l(e.lng,this.wrapLng,!0):e.lng;return new B(this.wrapLat?l(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),r=t.lat-n.lat,i=t.lng-n.lng;if(0===r&&0===i)return e;var o=e.getSouthWest(),a=e.getNorthEast();return new F(new B(o.lat-r,o.lng-i),new B(a.lat-r,a.lng-i))}},H=n({},V,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,r=e.lat*n,i=t.lat*n,o=Math.sin((t.lat-e.lat)*n/2),a=Math.sin((t.lng-e.lng)*n/2),s=o*o+Math.cos(r)*Math.cos(i)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),W=6378137,Z={R:W,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),i=Math.sin(r*t);return new N(this.R*e.lng*t,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(e){var t=180/Math.PI;return new B((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:function(){var e=W*Math.PI;return new A([-e,-e],[e,e])}()};function Y(e,t,n,r){if(g(e))return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=n,this._d=r}function q(e,t,n,r){return new Y(e,t,n,r)}Y.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new N((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var G=n({},H,{code:"EPSG:3857",projection:Z,transformation:function(){var e=.5/(Math.PI*Z.R);return q(e,.5,-e,.5)}()}),K=n({},G,{code:"EPSG:900913"});function Q(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function $(e,t){var n,r,i,o,a,s,l="";for(n=0,i=e.length;n<i;n++){for(r=0,o=(a=e[n]).length;r<o;r++)l+=(r?"L":"M")+(s=a[r]).x+" "+s.y;l+=t?Re.svg?"z":"x":""}return l||"M0 0"}var X=document.documentElement.style,J="ActiveXObject"in window,ee=J&&!document.addEventListener,te="msLaunchUri"in navigator&&!("documentMode"in document),ne=De("webkit"),re=De("android"),ie=De("android 2")||De("android 3"),oe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ae=re&&De("Google")&&oe<537&&!("AudioNode"in window),se=!!window.opera,le=!te&&De("chrome"),ue=De("gecko")&&!ne&&!se&&!J,ce=!le&&De("safari"),fe=De("phantom"),de="OTransition"in X,he=0===navigator.platform.indexOf("Win"),pe=J&&"transition"in X,ve="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ie,me="MozPerspective"in X,ge=!window.L_DISABLE_3D&&(pe||ve||me)&&!de&&!fe,ye="undefined"!==typeof orientation||De("mobile"),be=ye&&ne,_e=ye&&ve,xe=!window.PointerEvent&&window.MSPointerEvent,we=!(!window.PointerEvent&&!xe),ke="ontouchstart"in window||!!window.TouchEvent,Se=!window.L_NO_TOUCH&&(ke||we),Ce=ye&&se,Ee=ye&&ue,Te=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Me=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",u,t),window.removeEventListener("testPassiveEventSupport",u,t)}catch(n){}return e}(),Oe=!!document.createElement("canvas").getContext,Pe=!(!document.createElementNS||!Q("svg").createSVGRect),je=!!Pe&&function(){var e=document.createElement("div");return e.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(e.firstChild&&e.firstChild.namespaceURI)}(),Ne=!Pe&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"===typeof t.adj}catch(n){return!1}}();function De(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var Re={ie:J,ielt9:ee,edge:te,webkit:ne,android:re,android23:ie,androidStock:ae,opera:se,chrome:le,gecko:ue,safari:ce,phantom:fe,opera12:de,win:he,ie3d:pe,webkit3d:ve,gecko3d:me,any3d:ge,mobile:ye,mobileWebkit:be,mobileWebkit3d:_e,msPointer:xe,pointer:we,touch:Se,touchNative:ke,mobileOpera:Ce,mobileGecko:Ee,retina:Te,passiveEvents:Me,canvas:Oe,svg:Pe,vml:Ne,inlineSvg:je},Le=Re.msPointer?"MSPointerDown":"pointerdown",Ae=Re.msPointer?"MSPointerMove":"pointermove",Ie=Re.msPointer?"MSPointerUp":"pointerup",Fe=Re.msPointer?"MSPointerCancel":"pointercancel",ze={touchstart:Le,touchmove:Ae,touchend:Ie,touchcancel:Fe},Be={touchstart:Qe,touchmove:Ke,touchend:Ke,touchcancel:Ke},Ue={},Ve=!1;function He(e,t,n){return"touchstart"===t&&Ge(),Be[t]?(n=Be[t].bind(this,n),e.addEventListener(ze[t],n,!1),n):(console.warn("wrong event specified:",t),L.Util.falseFn)}function We(e,t,n){ze[t]?e.removeEventListener(ze[t],n,!1):console.warn("wrong event specified:",t)}function Ze(e){Ue[e.pointerId]=e}function Ye(e){Ue[e.pointerId]&&(Ue[e.pointerId]=e)}function qe(e){delete Ue[e.pointerId]}function Ge(){Ve||(document.addEventListener(Le,Ze,!0),document.addEventListener(Ae,Ye,!0),document.addEventListener(Ie,qe,!0),document.addEventListener(Fe,qe,!0),Ve=!0)}function Ke(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],Ue)t.touches.push(Ue[n]);t.changedTouches=[t],e(t)}}function Qe(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Zt(t),Ke(e,t)}function $e(e){var t,n,r={};for(n in e)t=e[n],r[n]=t&&t.bind?t.bind(e):t;return e=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}var Xe=200;function Je(e,t){e.addEventListener("dblclick",t);var n,r=0;function i(e){if(1===e.detail){if("mouse"!==e.pointerType&&(!e.sourceCapabilities||e.sourceCapabilities.firesTouchEvents)){var i=Date.now();i-r<=Xe?2===++n&&t($e(e)):n=1,r=i}}else n=e.detail}return e.addEventListener("click",i),{dblclick:t,simDblclick:i}}function et(e,t){e.removeEventListener("dblclick",t.dblclick),e.removeEventListener("click",t.simDblclick)}var tt,nt,rt,it,ot,at=kt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),st=kt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),lt="webkitTransition"===st||"OTransition"===st?st+"End":"transitionend";function ut(e){return"string"===typeof e?document.getElementById(e):e}function ct(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}function ft(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}function dt(e){var t=e.parentNode;t&&t.removeChild(e)}function ht(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function pt(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function vt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function mt(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=_t(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function gt(e,t){if(void 0!==e.classList)for(var n=d(t),r=0,i=n.length;r<i;r++)e.classList.add(n[r]);else if(!mt(e,t)){var o=_t(e);bt(e,(o?o+" ":"")+t)}}function yt(e,t){void 0!==e.classList?e.classList.remove(t):bt(e,f((" "+_t(e)+" ").replace(" "+t+" "," ")))}function bt(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function _t(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function xt(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&wt(e,t)}function wt(e,t){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(r)}catch(i){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}function kt(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function St(e,t,n){var r=t||new N(0,0);e.style[at]=(Re.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function Ct(e,t){e._leaflet_pos=t,Re.any3d?St(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function Et(e){return e._leaflet_pos||new N(0,0)}if("onselectstart"in document)tt=function(){Lt(window,"selectstart",Zt)},nt=function(){It(window,"selectstart",Zt)};else{var Tt=kt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);tt=function(){if(Tt){var e=document.documentElement.style;rt=e[Tt],e[Tt]="none"}},nt=function(){Tt&&(document.documentElement.style[Tt]=rt,rt=void 0)}}function Mt(){Lt(window,"dragstart",Zt)}function Ot(){It(window,"dragstart",Zt)}function Pt(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(jt(),it=e,ot=e.style.outline,e.style.outline="none",Lt(window,"keydown",jt))}function jt(){it&&(it.style.outline=ot,it=void 0,ot=void 0,It(window,"keydown",jt))}function Nt(e){do{e=e.parentNode}while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function Dt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var Rt={__proto__:null,TRANSFORM:at,TRANSITION:st,TRANSITION_END:lt,get:ut,getStyle:ct,create:ft,remove:dt,empty:ht,toFront:pt,toBack:vt,hasClass:mt,addClass:gt,removeClass:yt,setClass:bt,getClass:_t,setOpacity:xt,testProp:kt,setTransform:St,setPosition:Ct,getPosition:Et,get disableTextSelection(){return tt},get enableTextSelection(){return nt},disableImageDrag:Mt,enableImageDrag:Ot,preventOutline:Pt,restoreOutline:jt,getSizedParentNode:Nt,getScale:Dt};function Lt(e,t,n,r){if(t&&"object"===typeof t)for(var i in t)Bt(e,i,t[i],n);else for(var o=0,a=(t=d(t)).length;o<a;o++)Bt(e,t[o],n,r);return this}var At="_leaflet_events";function It(e,t,n,r){if(1===arguments.length)Ft(e),delete e[At];else if(t&&"object"===typeof t)for(var i in t)Ut(e,i,t[i],n);else if(t=d(t),2===arguments.length)Ft(e,(function(e){return-1!==y(t,e)}));else for(var o=0,a=t.length;o<a;o++)Ut(e,t[o],n,r);return this}function Ft(e,t){for(var n in e[At]){var r=n.split(/\d/)[0];t&&!t(r)||Ut(e,r,null,null,n)}}var zt={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Bt(e,t,n,r){var i=t+a(n)+(r?"_"+a(r):"");if(e[At]&&e[At][i])return this;var o=function(t){return n.call(r||e,t||window.event)},s=o;!Re.touchNative&&Re.pointer&&0===t.indexOf("touch")?o=He(e,t,o):Re.touch&&"dblclick"===t?o=Je(e,o):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(zt[t]||t,o,!!Re.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(o=function(t){t=t||window.event,Qt(e,t)&&s(t)},e.addEventListener(zt[t],o,!1)):e.addEventListener(t,s,!1):e.attachEvent("on"+t,o),e[At]=e[At]||{},e[At][i]=o}function Ut(e,t,n,r,i){i=i||t+a(n)+(r?"_"+a(r):"");var o=e[At]&&e[At][i];if(!o)return this;!Re.touchNative&&Re.pointer&&0===t.indexOf("touch")?We(e,t,o):Re.touch&&"dblclick"===t?et(e,o):"removeEventListener"in e?e.removeEventListener(zt[t]||t,o,!1):e.detachEvent("on"+t,o),e[At][i]=null}function Vt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function Ht(e){return Bt(e,"wheel",Vt),this}function Wt(e){return Lt(e,"mousedown touchstart dblclick contextmenu",Vt),e._leaflet_disable_click=!0,this}function Zt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Yt(e){return Zt(e),Vt(e),this}function qt(e,t){if(!t)return new N(e.clientX,e.clientY);var n=Dt(t),r=n.boundingClientRect;return new N((e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}var Gt=Re.win&&Re.chrome?2*window.devicePixelRatio:Re.gecko?window.devicePixelRatio:1;function Kt(e){return Re.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/Gt:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}function Qt(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(r){return!1}return n!==e}var $t={__proto__:null,on:Lt,off:It,stopPropagation:Vt,disableScrollPropagation:Ht,disableClickPropagation:Wt,preventDefault:Zt,stop:Yt,getMousePosition:qt,getWheelDelta:Kt,isExternalTarget:Qt,addListener:Lt,removeListener:It},Xt=j.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=Et(e),this._offset=t.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=C(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),Ct(this._el,n),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),Jt=j.extend({options:{crs:G,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(e,t){t=h(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(U(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=st&&Re.any3d&&!Re.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Lt(this._proxy,lt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,t,r){return t=void 0===t?this._zoom:this._limitZoom(t),e=this._limitCenter(U(e),t,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=n({animate:r.animate},r.zoom),r.pan=n({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,r.zoom):this._tryAnimatedPan(e,r.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,t),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(Re.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(Re.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),i=this.getSize().divideBy(2),o=(e instanceof N?e:this.latLngToContainerPoint(e)).subtract(i).multiplyBy(1-1/r),a=this.containerPointToLatLng(i.add(o));return this.setView(a,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():z(e);var n=R(t.paddingTopLeft||t.padding||[0,0]),r=R(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(e,!1,n.add(r));if((i="number"===typeof t.maxZoom?Math.min(t.maxZoom,i):i)===1/0)return{center:e.getCenter(),zoom:i};var o=r.subtract(n).divideBy(2),a=this.project(e.getSouthWest(),i),s=this.project(e.getNorthEast(),i);return{center:this.unproject(a.add(s).divideBy(2).add(o),i),zoom:i}},fitBounds:function(e,t){if(!(e=z(e)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(t=t||{},!(e=R(e).round()).x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Xt,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){gt(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!Re.any3d)return this.setView(e,t,n);this._stop();var r=this.project(this.getCenter()),i=this.project(e),o=this.getSize(),a=this._zoom;e=U(e),t=void 0===t?a:t;var s=Math.max(o.x,o.y),l=s*this.getZoomScale(a,t),u=i.distanceTo(r)||1,c=1.42,f=c*c;function d(e){var t=(l*l-s*s+(e?-1:1)*f*f*u*u)/(2*(e?l:s)*f*u),n=Math.sqrt(t*t+1)-t;return n<1e-9?-18:Math.log(n)}function h(e){return(Math.exp(e)-Math.exp(-e))/2}function p(e){return(Math.exp(e)+Math.exp(-e))/2}function v(e){return h(e)/p(e)}var m=d(0);function g(e){return s*(p(m)/p(m+c*e))}function y(e){return s*(p(m)*v(m+c*e)-h(m))/f}function b(e){return 1-Math.pow(1-e,1.5)}var _=Date.now(),x=(d(1)-m)/c,w=n.duration?1e3*n.duration:1e3*x*.8;function k(){var n=(Date.now()-_)/w,o=b(n)*x;n<=1?(this._flyToFrame=C(k,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(y(o)/u)),a),this.getScaleZoom(s/g(o),a),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),k.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return(e=z(e)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,z(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=R((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=R(t.paddingBottomRight||t.padding||[0,0]),i=this.project(this.getCenter()),o=this.project(e),a=this.getPixelBounds(),s=I([a.min.add(n),a.max.subtract(r)]),l=s.getSize();if(!s.contains(o)){this._enforcingBounds=!0;var u=o.subtract(s.getCenter()),c=s.extend(o).getSize().subtract(l);i.x+=u.x<0?-c.x:c.x,i.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(i),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},!0===e?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),o=t.divideBy(2).round(),a=r.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,r,e):navigator.geolocation.getCurrentPosition(t,r,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new B(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),r=this._locateOptions;if(r.setView){var i=this.getBoundsZoom(n);this.setView(t,r.maxZoom?Math.min(i,r.maxZoom):i)}var o={latlng:t,bounds:n,timestamp:e.timestamp};for(var a in e.coords)"number"===typeof e.coords[a]&&(o[a]=e.coords[a]);this.fire("locationfound",o)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.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(t){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),dt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)dt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=ft("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new F(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=z(e),n=R(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),o=this.getMaxZoom(),a=e.getNorthWest(),s=e.getSouthEast(),l=this.getSize().subtract(n),u=I(this.project(s,r),this.project(a,r)).getSize(),c=Re.any3d?this.options.zoomSnap:1,f=l.x/u.x,d=l.y/u.y,h=t?Math.max(f,d):Math.min(f,d);return r=this.getScaleZoom(h,r),c&&(r=Math.round(r/(c/100))*(c/100),r=t?Math.ceil(r/c)*c:Math.floor(r/c)*c),Math.max(i,Math.min(o,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new A(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"===typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(U(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(R(e),t)},layerPointToLatLng:function(e){var t=R(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(U(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(U(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(z(e))},distance:function(e,t){return this.options.crs.distance(U(e),U(t))},containerPointToLayerPoint:function(e){return R(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return R(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(R(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(U(e)))},mouseEventToContainerPoint:function(e){return qt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=ut(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");Lt(t,"scroll",this._onScroll,this),this._containerId=a(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&Re.any3d,gt(e,"leaflet-container"+(Re.touch?" leaflet-touch":"")+(Re.retina?" leaflet-retina":"")+(Re.ielt9?" leaflet-oldie":"")+(Re.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=ct(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ct(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(gt(e.markerPane,"leaflet-zoom-hide"),gt(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){Ct(this._mapPane,new N(0,0));var n=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var r=this._zoom!==t;this._moveStart(r,!1)._move(e,t)._moveEnd(r),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,r){void 0===t&&(t=this._zoom);var i=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&this.fire("zoom",n):((i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){Ct(this._mapPane,this._getMapPanePos().subtract(e))},_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(e){this._targets={},this._targets[a(this._container)]=this;var t=e?It:Lt;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),Re.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=C((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],i="mouseout"===t||"mouseover"===t,o=e.target||e.srcElement,s=!1;o;){if((n=this._targets[a(o)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(t,!0)){if(i&&!Qt(o,e))break;if(r.push(n),i)break}if(o===this._container)break;o=o.parentNode}return r.length||s||i||!this.listens(t,!0)||(r=[this]),r},_isClickDisabled:function(e){for(;e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&Pt(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,r){if("click"===e.type){var i=n({},e);i.type="preclick",this._fireDOMEvent(i,i.type,r)}var o=this._findEventTargets(e,t);if(r){for(var a=[],s=0;s<r.length;s++)r[s].listens(t,!0)&&a.push(r[s]);o=a.concat(o)}if(o.length){"contextmenu"===t&&Zt(e);var l=o[0],u={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var c=l.getLatLng&&(!l._radius||l._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(e),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?l.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(s=0;s<o.length;s++)if(o[s].fire(t,u,!0),u.originalEvent._stopped||!1===o[s].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,t))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return Et(this._mapPane)||new N(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(r)},_latLngBoundsToNewLayerBounds:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return I([this.project(e.getSouthWest(),t)._subtract(r),this.project(e.getNorthWest(),t)._subtract(r),this.project(e.getSouthEast(),t)._subtract(r),this.project(e.getNorthEast(),t)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),i=this.getSize().divideBy(2),o=new A(r.subtract(i),r.add(i)),a=this._getBoundsOffset(o,n,t);return a.round().equals([0,0])?e:this.unproject(r.add(a),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new A(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,n){var r=I(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),i=r.min.subtract(e.min),o=r.max.subtract(e.max);return new N(this._rebound(i.x,-o.x),this._rebound(i.y,-o.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=Re.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){yt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n))&&(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=ft("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=at,n=this._proxy.style[t];St(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){dt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();St(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(i))&&(C((function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)}),this),!0)},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,gt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&yt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function en(e,t){return new Jt(e,t)}var tn=M.extend({options:{position:"topright"},initialize:function(e){h(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return gt(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(dt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),nn=function(e){return new tn(e)};Jt.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=ft("div",t+"control-container",this._container);function r(r,i){var o=t+r+" "+t+i;e[r+i]=ft("div",o,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)dt(this._controlCorners[e]);dt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var rn=tn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n<r?-1:r<n?1:0}},initialize:function(e,t,n){for(var r in h(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return tn.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(a(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){gt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(gt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):yt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return yt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=ft("div",e),n=this.options.collapsed;t.setAttribute("aria-haspopup",!0),Wt(t),Ht(t);var r=this._section=ft("section",e+"-list");n&&(this._map.on("click",this.collapse,this),Lt(t,{mouseenter:function(){Lt(r,"click",Zt),this.expand(),setTimeout((function(){It(r,"click",Zt)}))},mouseleave:this.collapse},this));var i=this._layersLink=ft("a",e+"-toggle",t);i.href="#",i.title="Layers",i.setAttribute("role","button"),Lt(i,"click",Zt),Lt(i,"focus",this.expand,this),n||this.expand(),this._baseLayersList=ft("div",e+"-base",r),this._separator=ft("div",e+"-separator",r),this._overlaysList=ft("div",e+"-overlays",r),t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&a(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(i((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ht(this._baseLayersList),ht(this._overlaysList),this._layerControlInputs=[];var e,t,n,r,i=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),t=t||r.overlay,e=e||!r.overlay,i+=r.overlay?0:1;return this.options.hideSingleBase&&(e=e&&i>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(a(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+a(this),r),this._layerControlInputs.push(t),t.layerId=a(e.layer),Lt(t,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+e.name;var o=document.createElement("span");return n.appendChild(o),o.appendChild(t),o.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var e,t,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)e=n[o],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.checked||i.push(t);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])&&this._map.removeLayer(i[o]);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])||this._map.addLayer(r[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,r=this._map.getZoom(),i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&r<t.options.minZoom||void 0!==t.options.maxZoom&&r>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}}),on=function(e,t,n){return new rn(e,t,n)},an=tn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=ft("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.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(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var o=ft("a",n,r);return o.innerHTML=e,o.href="#",o.title=t,o.setAttribute("role","button"),o.setAttribute("aria-label",t),Wt(o),Lt(o,"click",Yt),Lt(o,"click",i,this),Lt(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";yt(this._zoomInButton,t),yt(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(gt(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(gt(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});Jt.mergeOptions({zoomControl:!0}),Jt.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new an,this.addControl(this.zoomControl))}));var sn=function(e){return new an(e)},ln=tn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=ft("div",t),r=this.options;return this._addScales(r,t+"-line",n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=ft("div",t,n)),e.imperial&&(this._iScale=ft("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,r,i=3.2808399*e;i>5280?(t=i/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),un=function(e){return new ln(e)},cn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',fn=tn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Re.inlineSvg?cn+" ":"")+"Leaflet</a>"},initialize:function(e){h(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=ft("div","leaflet-control-attribution"),Wt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});Jt.mergeOptions({attributionControl:!0}),Jt.addInitHook((function(){this.options.attributionControl&&(new fn).addTo(this)}));var dn=function(e){return new fn(e)};tn.Layers=rn,tn.Zoom=an,tn.Scale=ln,tn.Attribution=fn,nn.layers=on,nn.zoom=sn,nn.scale=un,nn.attribution=dn;var hn=M.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});hn.addTo=function(e,t){return e.addHandler(t,this),this};var pn,vn={Events:P},mn=Re.touch?"touchstart mousedown":"mousedown",gn=j.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){h(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(Lt(this._dragStartTarget,mn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(gn._dragging===this&&this.finishDrag(!0),It(this._dragStartTarget,mn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!mt(this._element,"leaflet-zoom-anim")))if(e.touches&&1!==e.touches.length)gn._dragging===this&&this.finishDrag();else if(!(gn._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches)&&(gn._dragging=this,this._preventOutline&&Pt(this._element),Mt(),tt(),!this._moving)){this.fire("down");var t=e.touches?e.touches[0]:e,n=Nt(this._element);this._startPoint=new N(t.clientX,t.clientY),this._startPos=Et(this._element),this._parentScale=Dt(n);var r="mousedown"===e.type;Lt(document,r?"mousemove":"touchmove",this._onMove,this),Lt(document,r?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(e){if(this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new N(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Zt(e),this._moved||(this.fire("dragstart"),this._moved=!0,gt(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),gt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),Ct(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){yt(document.body,"leaflet-dragging"),this._lastTarget&&(yt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),It(document,"mousemove touchmove",this._onMove,this),It(document,"mouseup touchend touchcancel",this._onUp,this),Ot(),nt(),this._moved&&this._moving&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,gn._dragging=!1}});function yn(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=xn(e=kn(e,n),n)}function bn(e,t,n){return Math.sqrt(Mn(e,t,n,!0))}function _n(e,t,n){return Mn(e,t,n)}function xn(e,t){var n=e.length,r=new(typeof Uint8Array!==void 0+""?Uint8Array:Array)(n);r[0]=r[n-1]=1,wn(e,r,t,0,n-1);var i,o=[];for(i=0;i<n;i++)r[i]&&o.push(e[i]);return o}function wn(e,t,n,r,i){var o,a,s,l=0;for(a=r+1;a<=i-1;a++)(s=Mn(e[a],e[r],e[i],!0))>l&&(o=a,l=s);l>n&&(t[o]=1,wn(e,t,n,r,o),wn(e,t,n,o,i))}function kn(e,t){for(var n=[e[0]],r=1,i=0,o=e.length;r<o;r++)Tn(e[r],e[i])>t&&(n.push(e[r]),i=r);return i<o-1&&n.push(e[o-1]),n}function Sn(e,t,n,r,i){var o,a,s,l=r?pn:En(e,n),u=En(t,n);for(pn=u;;){if(!(l|u))return[e,t];if(l&u)return!1;s=En(a=Cn(e,t,o=l||u,n,i),n),o===l?(e=a,l=s):(t=a,u=s)}}function Cn(e,t,n,r,i){var o,a,s=t.x-e.x,l=t.y-e.y,u=r.min,c=r.max;return 8&n?(o=e.x+s*(c.y-e.y)/l,a=c.y):4&n?(o=e.x+s*(u.y-e.y)/l,a=u.y):2&n?(o=c.x,a=e.y+l*(c.x-e.x)/s):1&n&&(o=u.x,a=e.y+l*(u.x-e.x)/s),new N(o,a,i)}function En(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function Tn(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function Mn(e,t,n,r){var i,o=t.x,a=t.y,s=n.x-o,l=n.y-a,u=s*s+l*l;return u>0&&((i=((e.x-o)*s+(e.y-a)*l)/u)>1?(o=n.x,a=n.y):i>0&&(o+=s*i,a+=l*i)),s=e.x-o,l=e.y-a,r?s*s+l*l:new N(o,a)}function On(e){return!g(e[0])||"object"!==typeof e[0][0]&&"undefined"!==typeof e[0][0]}function Pn(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),On(e)}var jn={__proto__:null,simplify:yn,pointToSegmentDistance:bn,closestPointOnSegment:_n,clipSegment:Sn,_getEdgeIntersection:Cn,_getBitCode:En,_sqClosestPointOnSegment:Mn,isFlat:On,_flat:Pn};function Nn(e,t,n){var r,i,o,a,s,l,u,c,f,d=[1,4,2,8];for(i=0,u=e.length;i<u;i++)e[i]._code=En(e[i],t);for(a=0;a<4;a++){for(c=d[a],r=[],i=0,o=(u=e.length)-1;i<u;o=i++)s=e[i],l=e[o],s._code&c?l._code&c||((f=Cn(l,s,c,t,n))._code=En(f,t),r.push(f)):(l._code&c&&((f=Cn(l,s,c,t,n))._code=En(f,t),r.push(f)),r.push(s));e=r}return e}var Dn={__proto__:null,clipPolygon:Nn},Rn={project:function(e){return new N(e.lng,e.lat)},unproject:function(e){return new B(e.y,e.x)},bounds:new A([-180,-90],[180,90])},Ln={R:6378137,R_MINOR:6356752.314245179,bounds:new A([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,o=Math.sqrt(1-i*i),a=o*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-a)/(1+a),o/2);return r=-n*Math.log(Math.max(s,1e-10)),new N(e.lng*t*n,r)},unproject:function(e){for(var t,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,o=Math.sqrt(1-i*i),a=Math.exp(-e.y/r),s=Math.PI/2-2*Math.atan(a),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)t=o*Math.sin(s),t=Math.pow((1-t)/(1+t),o/2),s+=u=Math.PI/2-2*Math.atan(a*t)-s;return new B(s*n,e.x*n/r)}},An={__proto__:null,LonLat:Rn,Mercator:Ln,SphericalMercator:Z},In=n({},H,{code:"EPSG:3395",projection:Ln,transformation:function(){var e=.5/(Math.PI*Ln.R);return q(e,.5,-e,.5)}()}),Fn=n({},H,{code:"EPSG:4326",projection:Rn,transformation:q(1/180,1,-1/180,.5)}),zn=n({},V,{projection:Rn,transformation:q(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});V.Earth=H,V.EPSG3395=In,V.EPSG3857=G,V.EPSG900913=K,V.EPSG4326=Fn,V.Simple=zn;var Bn=j.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[a(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[a(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});Jt.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=a(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=a(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return a(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?g(e)?e:[e]:[]).length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[a(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=a(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;e=void 0===i.minZoom?e:Math.min(e,i.minZoom),t=void 0===i.maxZoom?t:Math.max(t,i.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Un=Bn.extend({initialize:function(e,t){var n,r;if(h(this,t),this._layers={},e)for(n=0,r=e.length;n<r;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return("number"===typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,r);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return a(e)}}),Vn=function(e,t){return new Un(e,t)},Hn=Un.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Un.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Un.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new F;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),Wn=function(e,t){return new Hn(e,t)},Zn=M.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){h(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(r,e),(this.options.crossOrigin||""===this.options.crossOrigin)&&(r.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),r},_setIconStyles:function(e,t){var n=this.options,r=n[t+"Size"];"number"===typeof r&&(r=[r,r]);var i=R(r),o=R("shadow"===t&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),o&&(e.style.marginLeft=-o.x+"px",e.style.marginTop=-o.y+"px"),i&&(e.style.width=i.x+"px",e.style.height=i.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Re.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function Yn(e){return new Zn(e)}var qn=Zn.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(e){return"string"!==typeof qn.imagePath&&(qn.imagePath=this._detectIconPath()),(this.options.imagePath||qn.imagePath)+Zn.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,n){var r=t.exec(e);return r&&r[n]};return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=ft("div","leaflet-default-icon-path",document.body),t=ct(e,"background-image")||ct(e,"backgroundImage");if(document.body.removeChild(e),t=this._stripUrl(t))return t;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-"leaflet.css".length-1):""}}),Gn=hn.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new gn(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),gt(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&yt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,o=Et(t._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),l=I(a.min._subtract(s).add(i),a.max._subtract(s).subtract(i));if(!l.contains(o)){var u=R((Math.max(l.max.x,o.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(r);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),Ct(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=C(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,r=Et(t._icon),i=t._map.layerPointToLatLng(r);n&&Ct(n,r),t._latlng=i,e.latlng=i,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),Kn=Bn.extend({options:{icon:new qn,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(e,t){h(this,t),this._latlng=U(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.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(e){var t=this._latlng;return this._latlng=U(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,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 e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),gt(n,t),e.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Lt(n,"focus",this._panOnFocus,this);var i=e.icon.createShadow(this._shadow),o=!1;i!==this._shadow&&(this._removeShadow(),o=!0),i&&(gt(i,t),i.alt=""),this._shadow=i,e.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&o&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&It(this._icon,"focus",this._panOnFocus,this),dt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&dt(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&Ct(this._icon,e),this._shadow&&Ct(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(gt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Gn)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Gn(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&xt(this._icon,e),this._shadow&&xt(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?R(t.iconSize):R(0,0),r=t.iconAnchor?R(t.iconAnchor):R(0,0);e.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Qn(e,t){return new Kn(e,t)}var $n=Bn.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(e){this._renderer=e.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(e){return h(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"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)}}),Xn=$n.extend({options:{fill:!0,radius:10},initialize:function(e,t){h(this,t),this._latlng=U(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=U(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return $n.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),r=[e+n,t+n];this._pxBounds=new A(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Jn(e,t){return new Xn(e,t)}var er=Xn.extend({initialize:function(e,t,r){if("number"===typeof t&&(t=n({},r,{radius:t})),h(this,t),this._latlng=U(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new F(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:$n.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===H.distance){var i=Math.PI/180,o=this._mRadius/H.R/i,a=n.project([t+o,e]),s=n.project([t-o,e]),l=a.add(s).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(o*i)-Math.sin(t*i)*Math.sin(u*i))/(Math.cos(t*i)*Math.cos(u*i)))/i;(isNaN(c)||0===c)&&(c=o/Math.cos(Math.PI/180*t)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,e-c]).x,this._radiusY=l.y-a.y}else{var f=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(f).x}this._updateBounds()}});function tr(e,t,n){return new er(e,t,n)}var nr=$n.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){h(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,n,r=1/0,i=null,o=Mn,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],u=1,c=l.length;u<c;u++){var f=o(e,t=l[u-1],n=l[u],!0);f<r&&(r=f,i=o(e,t,n))}return i&&(i.distance=Math.sqrt(r)),i},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,r,i,o,a,s=this._rings[0],l=s.length;if(!l)return null;for(e=0,t=0;e<l-1;e++)t+=s[e].distanceTo(s[e+1])/2;if(0===t)return this._map.layerPointToLatLng(s[0]);for(e=0,r=0;e<l-1;e++)if(i=s[e],o=s[e+1],(r+=n=i.distanceTo(o))>t)return a=(r-t)/n,this._map.layerPointToLatLng([o.x-a*(o.x-i.x),o.y-a*(o.y-i.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=U(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new F,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return On(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=On(e),r=0,i=e.length;r<i;r++)n?(t[r]=U(e[r]),this._bounds.extend(t[r])):t[r]=this._convertLatLngs(e[r]);return t},_project:function(){var e=new A;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new N(e,e);this._rawPxBounds&&(this._pxBounds=new A([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(e,t,n){var r,i,o=e[0]instanceof B,a=e.length;if(o){for(i=[],r=0;r<a;r++)i[r]=this._map.latLngToLayerPoint(e[r]),n.extend(i[r]);t.push(i)}else for(r=0;r<a;r++)this._projectLatlngs(e[r],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else{var t,n,r,i,o,a,s,l=this._parts;for(t=0,r=0,i=this._rings.length;t<i;t++)for(n=0,o=(s=this._rings[t]).length;n<o-1;n++)(a=Sn(s[n],s[n+1],e,n,!0))&&(l[r]=l[r]||[],l[r].push(a[0]),a[1]===s[n+1]&&n!==o-2||(l[r].push(a[1]),r++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,r=e.length;n<r;n++)e[n]=yn(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,r,i,o,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,o=this._parts.length;n<o;n++)for(r=0,i=(a=(s=this._parts[n]).length)-1;r<a;i=r++)if((t||0!==r)&&bn(e,s[i],s[r])<=l)return!0;return!1}});function rr(e,t){return new nr(e,t)}nr._flat=Pn;var ir=nr.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()");var e,t,n,r,i,o,a,s,l,u=this._rings[0],c=u.length;if(!c)return null;for(o=a=s=0,e=0,t=c-1;e<c;t=e++)n=u[e],r=u[t],i=n.y*r.x-r.y*n.x,a+=(n.x+r.x)*i,s+=(n.y+r.y)*i,o+=3*i;return l=0===o?u[0]:[a/o,s/o],this._map.layerPointToLatLng(l)},_convertLatLngs:function(e){var t=nr.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof B&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){nr.prototype._setLatLngs.call(this,e),On(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return On(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new N(t,t);if(e=new A(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var r,i=0,o=this._rings.length;i<o;i++)(r=Nn(this._rings[i],e,!0)).length&&this._parts.push(r)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,r,i,o,a,s,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(i=0,s=this._parts.length;i<s;i++)for(o=0,a=(l=(t=this._parts[i]).length)-1;o<l;a=o++)n=t[o],r=t[a],n.y>e.y!==r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(u=!u);return u||nr.prototype._containsPoint.call(this,e,!0)}});function or(e,t){return new ir(e,t)}var ar=Hn.extend({initialize:function(e,t){h(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,i=g(e)?e:e.features;if(i){for(t=0,n=i.length;t<n;t++)((r=i[t]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var o=this.options;if(o.filter&&!o.filter(e))return this;var a=sr(e,o);return a?(a.feature=pr(e),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(e,a),this.addLayer(a)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=n({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"===typeof t&&(t=t(e.feature)),e.setStyle(t))}});function sr(e,t){var n,r,i,o,a="Feature"===e.type?e.geometry:e,s=a?a.coordinates:null,l=[],u=t&&t.pointToLayer,c=t&&t.coordsToLatLng||ur;if(!s&&!a)return null;switch(a.type){case"Point":return lr(u,e,n=c(s),t);case"MultiPoint":for(i=0,o=s.length;i<o;i++)n=c(s[i]),l.push(lr(u,e,n,t));return new Hn(l);case"LineString":case"MultiLineString":return r=cr(s,"LineString"===a.type?0:1,c),new nr(r,t);case"Polygon":case"MultiPolygon":return r=cr(s,"Polygon"===a.type?1:2,c),new ir(r,t);case"GeometryCollection":for(i=0,o=a.geometries.length;i<o;i++){var f=sr({geometry:a.geometries[i],type:"Feature",properties:e.properties},t);f&&l.push(f)}return new Hn(l);default:throw new Error("Invalid GeoJSON object.")}}function lr(e,t,n,r){return e?e(t,n):new Kn(n,r&&r.markersInheritOptions&&r)}function ur(e){return new B(e[1],e[0],e[2])}function cr(e,t,n){for(var r,i=[],o=0,a=e.length;o<a;o++)r=t?cr(e[o],t-1,n):(n||ur)(e[o]),i.push(r);return i}function fr(e,t){return void 0!==(e=U(e)).alt?[c(e.lng,t),c(e.lat,t),c(e.alt,t)]:[c(e.lng,t),c(e.lat,t)]}function dr(e,t,n,r){for(var i=[],o=0,a=e.length;o<a;o++)i.push(t?dr(e[o],t-1,n,r):fr(e[o],r));return!t&&n&&i.push(i[0]),i}function hr(e,t){return e.feature?n({},e.feature,{geometry:t}):pr(t)}function pr(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var vr={toGeoJSON:function(e){return hr(this,{type:"Point",coordinates:fr(this.getLatLng(),e)})}};function mr(e,t){return new ar(e,t)}Kn.include(vr),er.include(vr),Xn.include(vr),nr.include({toGeoJSON:function(e){var t=!On(this._latlngs);return hr(this,{type:(t?"Multi":"")+"LineString",coordinates:dr(this._latlngs,t?1:0,!1,e)})}}),ir.include({toGeoJSON:function(e){var t=!On(this._latlngs),n=t&&!On(this._latlngs[0]),r=dr(this._latlngs,n?2:t?1:0,!0,e);return t||(r=[r]),hr(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),Un.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),hr(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,r=[];return this.eachLayer((function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var o=pr(i);"FeatureCollection"===o.type?r.push.apply(r,o.features):r.push(o)}}})),n?hr(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var gr=mr,yr=Bn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=z(t),h(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(gt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){dt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&pt(this._image),this},bringToBack:function(){return this._map&&vt(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=z(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:ft("img");gt(t,"leaflet-image-layer"),this._zoomAnimated&&gt(t,"leaflet-zoom-animated"),this.options.className&&gt(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onload=i(this.fire,this,"load"),t.onerror=i(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;St(this._image,n,t)},_reset:function(){var e=this._image,t=new A(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();Ct(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){xt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),br=function(e,t,n){return new yr(e,t,n)},_r=yr.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:ft("video");if(gt(t,"leaflet-image-layer"),this._zoomAnimated&&gt(t,"leaflet-zoom-animated"),this.options.className&&gt(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onloadeddata=i(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),r=[],o=0;o<n.length;o++)r.push(n[o].src);this._url=n.length>0?r:[t.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var s=ft("source");s.src=this._url[a],t.appendChild(s)}}}});function xr(e,t,n){return new _r(e,t,n)}var wr=yr.extend({_initImage:function(){var e=this._image=this._url;gt(e,"leaflet-image-layer"),this._zoomAnimated&&gt(e,"leaflet-zoom-animated"),this.options.className&&gt(e,this.options.className),e.onselectstart=u,e.onmousemove=u}});function kr(e,t,n){return new wr(e,t,n)}var Sr=Bn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0},initialize:function(e,t){h(this,e),this._source=t},openOn:function(e){return(e=arguments.length?e:this._source._map).hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&xt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&xt(this._container,1),this.bringToFront(),this.options.interactive&&(gt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(xt(this._container,0),this._removeTimeout=setTimeout(i(dt,void 0,this._container),200)):dt(this._container),this.options.interactive&&(yt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=U(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,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 e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&pt(this._container),this},bringToBack:function(){return this._map&&vt(this._container),this},_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof Hn){t=null;var n=this._source._layers;for(var r in n)if(n[r]._map){t=n[r];break}if(!t)return!1;this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else{if(!t.getBounds)throw new Error("Unable to get source layer LatLng.");e=t.getBounds().getCenter()}return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"===typeof this._content?this._content(this._source||this):this._content;if("string"===typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=R(this.options.offset),n=this._getAnchor();this._zoomAnimated?Ct(this._container,e.add(n)):t=t.add(e).add(n);var r=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=r+"px",this._container.style.left=i+"px"}},_getAnchor:function(){return[0,0]}});Jt.include({_initOverlay:function(e,t,n,r){var i=t;return i instanceof e||(i=new e(r).setContent(t)),n&&i.setLatLng(n),i}}),Bn.include({_initOverlay:function(e,t,n,r){var i=n;return i instanceof e?(h(i,r),i._source=this):(i=t&&!r?t:new e(r,this)).setContent(n),i}});var Cr=Sr.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(e){return!(e=arguments.length?e:this._source._map).hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Sr.prototype.openOn.call(this,e)},onAdd:function(e){Sr.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof $n||this._source.on("preclick",Vt))},onRemove:function(e){Sr.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof $n||this._source.off("preclick",Vt))},getEvents:function(){var e=Sr.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=ft("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=ft("div",e+"-content-wrapper",t);if(this._contentNode=ft("div",e+"-content",n),Wt(t),Ht(this._contentNode),Lt(t,"contextmenu",Vt),this._tipContainer=ft("div",e+"-tip-container",t),this._tip=ft("div",e+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=ft("a",e+"-close-button",t);r.setAttribute("role","button"),r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">&#215;</span>',Lt(r,"click",this.close,this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var r=e.offsetHeight,i=this.options.maxHeight,o="leaflet-popup-scrolled";i&&r>i?(t.height=i+"px",gt(e,o)):yt(e,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();Ct(this._container,t.add(n))},_adjustPan:function(e){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,n=parseInt(ct(this._container,"marginBottom"),10)||0,r=this._container.offsetHeight+n,i=this._containerWidth,o=new N(this._containerLeft,-r-this._containerBottom);o._add(Et(this._container));var a=t.layerPointToContainerPoint(o),s=R(this.options.autoPanPadding),l=R(this.options.autoPanPaddingTopLeft||s),u=R(this.options.autoPanPaddingBottomRight||s),c=t.getSize(),f=0,d=0;a.x+i+u.x>c.x&&(f=a.x+i-c.x+u.x),a.x-f-l.x<0&&(f=a.x-l.x),a.y+r+u.y>c.y&&(d=a.y+r-c.y+u.y),a.y-d-l.y<0&&(d=a.y-l.y),(f||d)&&t.fire("autopanstart").panBy([f,d],{animate:e&&"moveend"===e.type})}},_getAnchor:function(){return R(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Er=function(e,t){return new Cr(e,t)};Jt.mergeOptions({closePopupOnClick:!0}),Jt.include({openPopup:function(e,t,n){return this._initOverlay(Cr,e,t,n).openOn(this),this},closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),Bn.include({bindPopup:function(e,t){return this._popup=this._initOverlay(Cr,this._popup,e,t),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(e){return this._popup&&this._popup._prepareOpen(e)&&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()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){Yt(e);var t=e.layer||e.target;this._popup._source!==t||t instanceof $n?(this._popup._source=t,this.openPopup(e.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var Tr=Sr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Sr.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Sr.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Sr.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ft("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,i=this._container,o=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(e),s=this.options.direction,l=i.offsetWidth,u=i.offsetHeight,c=R(this.options.offset),f=this._getAnchor();"top"===s?(t=l/2,n=u):"bottom"===s?(t=l/2,n=0):"center"===s?(t=l/2,n=u/2):"right"===s?(t=0,n=u/2):"left"===s?(t=l,n=u/2):a.x<o.x?(s="right",t=0,n=u/2):(s="left",t=l+2*(c.x+f.x),n=u/2),e=e.subtract(R(t,n,!0)).add(c).add(f),yt(i,"leaflet-tooltip-right"),yt(i,"leaflet-tooltip-left"),yt(i,"leaflet-tooltip-top"),yt(i,"leaflet-tooltip-bottom"),gt(i,"leaflet-tooltip-"+s),Ct(i,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&xt(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return R(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Mr=function(e,t){return new Tr(e,t)};Jt.include({openTooltip:function(e,t,n){return this._initOverlay(Tr,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),Bn.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Tr,this._tooltip,e,t),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(e){if(e||!this._tooltipHandlersAdded){var t=e?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[t](n),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&this._tooltip._prepareOpen(e)&&this._tooltip.openOn(this._map),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(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_openTooltip:function(e){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0))},_moveTooltip:function(e){var t,n,r=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var Or=Zn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ht(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=R(n.bgPos);t.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});function Pr(e){return new Or(e)}Zn.Default=qn;var jr=Bn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Re.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(e){h(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),dt(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(pt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(vt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof N?e:new N(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,r=-e(-1/0,1/0),i=0,o=n.length;i<o;i++)t=n[i].style.zIndex,n[i]!==this._container&&t&&(r=e(r,+t));isFinite(r)&&(this.options.zIndex=r+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Re.ielt9){xt(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var r in this._tiles){var i=this._tiles[r];if(i.current&&i.loaded){var o=Math.min(1,(e-i.loaded)/200);xt(i.el,o),o<1?t=!0:(i.active?n=!0:this._onOpaqueTile(i),i.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=ft("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(dt(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[e],i=this._map;return r||((r=this._levels[e]={}).el=ft("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=t,r.origin=i.project(i.unproject(i.getPixelOrigin()),e).round(),r.zoom=e,this._setZoomTransform(r,i.getCenter(),i.getZoom()),u(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var r=t.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)dt(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,r){var i=Math.floor(e/2),o=Math.floor(t/2),a=n-1,s=new N(+i,+o);s.z=+a;var l=this._tileCoordsToKey(s),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),a>r&&this._retainParent(i,o,a,r))},_retainChildren:function(e,t,n,r){for(var i=2*e;i<2*e+2;i++)for(var o=2*t;o<2*t+2;o++){var a=new N(i,o);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<r&&this._retainChildren(i,o,n+1,r))}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,r){var i=Math.round(t);i=void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom?void 0:this._clampZoom(i);var o=this.options.updateWhenZooming&&i!==this._tileZoom;r&&!o||(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var r=this._map.getZoomScale(n,e.zoom),i=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,n)).round();Re.any3d?St(e.el,i,r):Ct(e.el,i)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),r=t.getZoomScale(n,this._tileZoom),i=t.project(e,this._tileZoom).floor(),o=t.getSize().divideBy(2*r);return new A(i.subtract(o),i.add(o))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(e),i=this._pxBoundsToTileRange(r),o=i.getCenter(),a=[],s=this.options.keepBuffer,l=new A(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new N(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(e,n);else{for(var f=i.min.y;f<=i.max.y;f++)for(var d=i.min.x;d<=i.max.x;d++){var h=new N(d,f);if(h.z=this._tileZoom,this._isValidTile(h)){var p=this._tiles[this._tileCoordsToKey(h)];p?p.current=!0:a.push(h)}}if(a.sort((function(e,t){return e.distanceTo(o)-t.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var v=document.createDocumentFragment();for(d=0;d<a.length;d++)this._addTile(a[d],v);this._level.el.appendChild(v)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return z(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),i=r.add(n);return[t.unproject(r,e.z),t.unproject(i,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new F(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new N(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(dt(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){gt(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=u,e.onmousemove=u,Re.ielt9&&this.options.opacity<1&&xt(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),r=this._tileCoordsToKey(e),o=this.createTile(this._wrapCoords(e),i(this._tileReady,this,e));this._initTile(o),this.createTile.length<2&&C(i(this._tileReady,this,e,null,o)),Ct(o,n),this._tiles[r]={el:o,coords:e,current:!0},t.appendChild(o),this.fire("tileloadstart",{tile:o,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var r=this._tileCoordsToKey(e);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(xt(n.el,0),E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(gt(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Re.ielt9||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new N(this._wrapX?l(e.x,this._wrapX):e.x,this._wrapY?l(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new A(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Nr(e){return new jr(e)}var Dr=jr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=h(this,t)).detectRetina&&Re.retina&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"===typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return Lt(n,"load",i(this._tileOnLoad,this,t,n)),Lt(n,"error",i(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"===typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(e),n},getTileUrl:function(e){var t={r:Re.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(t.y=r),t["-y"]=r}return m(this._url,n(t,this.options))},_tileOnLoad:function(e,t){Re.ielt9?setTimeout(i(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=u,t.onerror=u,!t.complete)){t.src=b;var n=this._tiles[e].coords;dt(t),delete this._tiles[e],this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",b),jr.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==b))return jr.prototype._tileReady.call(this,e,t,n)}});function Rr(e,t){return new Dr(e,t)}var Lr=Dr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,t){this._url=e;var r=n({},this.defaultWmsParams);for(var i in t)i in this.options||(r[i]=t[i]);var o=(t=h(this,t)).detectRetina&&Re.retina?2:1,a=this.getTileSize();r.width=a.x*o,r.height=a.y*o,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,Dr.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=I(n.project(t[0]),n.project(t[1])),i=r.min,o=r.max,a=(this._wmsVersion>=1.3&&this._crs===Fn?[i.y,i.x,o.y,o.x]:[i.x,i.y,o.x,o.y]).join(","),s=Dr.prototype.getTileUrl.call(this,e);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(e,t){return n(this.wmsParams,e),t||this.redraw(),this}});function Ar(e,t){return new Lr(e,t)}Dr.WMS=Lr,Rr.wms=Ar;var Ir=Bn.extend({options:{padding:.1},initialize:function(e){h(this,e),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&gt(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 e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,t),o=r.multiplyBy(-n).add(i).subtract(this._map._getNewPixelOrigin(e,t));Re.any3d?St(this._container,o,n):Ct(this._container,o)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new A(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Fr=Ir.extend({options:{tolerance:0},getEvents:function(){var e=Ir.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ir.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Lt(e,"mousemove",this._onMouseMove,this),Lt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Lt(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,dt(this._container),It(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Ir.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=Re.retina?2:1;Ct(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",Re.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Ir.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[a(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[a(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"===typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),i=[];for(n=0;n<r.length;n++){if(t=Number(r[n]),isNaN(t))return;i.push(t)}e.options._dashArray=i}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new A,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_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 e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.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 e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)e=r.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,r,i,o,a=e._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(r=0,i=a[n].length;r<i;r++)o=a[n][r],l[r?"lineTo":"moveTo"](o.x,o.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,n=this._ctx,r=Math.max(Math.round(e._radius),1),i=(Math.max(Math.round(e._radiusY),1)||r)/r;1!==i&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(t.x,t.y/i,r,0,2*Math.PI,!1),1!==i&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,r=this._map.mouseEventToLayerPoint(e),i=this._drawFirst;i;i=i.next)(t=i.layer).options.interactive&&t._containsPoint(r)&&("click"!==e.type&&"preclick"!==e.type||!this._map._draggableMoved(t))&&(n=t);this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(yt(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,r,o=this._drawFirst;o;o=o.next)(n=o.layer).options.interactive&&n._containsPoint(t)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(e),r&&(gt(this._container,"leaflet-interactive"),this._fireEvent([r],e,"mouseover"),this._hoveredLayer=r)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(i((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;n&&(n.prev=r,r?r.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e))}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;r&&(r.next=n,n?n.prev=r:r&&(this._drawLast=r),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e))}}});function zr(e){return Re.canvas?new Fr(e):null}var Br=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ur={_initContainer:function(){this._container=ft("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ir.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=Br("shape");gt(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=Br("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;dt(t),e.removeInteractiveTarget(t),delete this._layers[a(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,i=e._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(t||(t=e._stroke=Br("stroke")),i.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=g(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(i.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=Br("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){pt(e._container)},_bringToBack:function(e){vt(e._container)}},Vr=Re.vml?Br:Q,Hr=Ir.extend({_initContainer:function(){this._container=Vr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Vr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){dt(this._container),It(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Ir.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),Ct(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=Vr("path");e.options.className&&gt(t,e.options.className),e.options.interactive&&gt(t,"leaflet-interactive"),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){dt(e._path),e.removeInteractiveTarget(e._path),delete this._layers[a(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,$(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",i=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(e,i)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){pt(e._path)},_bringToBack:function(e){vt(e._path)}});function Wr(e){return Re.svg||Re.vml?new Hr(e):null}Re.vml&&Hr.include(Ur),Jt.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&zr(e)||Wr(e)}});var Zr=ir.extend({initialize:function(e,t){ir.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=z(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function Yr(e,t){return new Zr(e,t)}Hr.create=Vr,Hr.pointsToPath=$,ar.geometryToLayer=sr,ar.coordsToLatLng=ur,ar.coordsToLatLngs=cr,ar.latLngToCoords=fr,ar.latLngsToCoords=dr,ar.getFeature=hr,ar.asFeature=pr,Jt.mergeOptions({boxZoom:!0});var qr=hn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){Lt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){It(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){dt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),tt(),Mt(),this._startPoint=this._map.mouseEventToContainerPoint(e),Lt(document,{contextmenu:Yt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=ft("div","leaflet-zoom-box",this._container),gt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new A(this._point,this._startPoint),n=t.getSize();Ct(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(dt(this._box),yt(this._container,"leaflet-crosshair")),nt(),Ot(),It(document,{contextmenu:Yt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var t=new F(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Jt.addInitHook("addHandler","boxZoom",qr),Jt.mergeOptions({doubleClickZoom:!0});var Gr=hn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,i=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(i):t.setZoomAround(e.containerPoint,i)}});Jt.addInitHook("addHandler","doubleClickZoom",Gr),Jt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Kr=hn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new gn(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}gt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){yt(this._map._container,"leaflet-grab"),yt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=z(this._map.options.maxBounds);this._offsetLimit=I(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-t+n)%e+t-n,o=(r+t+n)%e-t-n,a=Math.abs(i+n)<Math.abs(o+n)?i:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(e){var t=this._map,n=t.options,r=!n.inertia||e.noInertia||this._times.length<2;if(t.fire("dragend",e),r)t.fire("moveend");else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=i.multiplyBy(a/o),l=s.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=s.multiplyBy(u/l),f=u/(n.inertiaDeceleration*a),d=c.multiplyBy(-f/2).round();d.x||d.y?(d=t._limitOffset(d,t.options.maxBounds),C((function(){t.panBy(d,{duration:f,easeLinearity:a,noMoveStart:!0,animate:!0})}))):t.fire("moveend")}}});Jt.addInitHook("addHandler","dragging",Kr),Jt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Qr=hn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),Lt(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),It(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 e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,r=this._panKeys={},i=this.keyCodes;for(t=0,n=i.left.length;t<n;t++)r[i.left[t]]=[-1*e,0];for(t=0,n=i.right.length;t<n;t++)r[i.right[t]]=[e,0];for(t=0,n=i.down.length;t<n;t++)r[i.down[t]]=[0,e];for(t=0,n=i.up.length;t<n;t++)r[i.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,r=this._zoomKeys={},i=this.keyCodes;for(t=0,n=i.zoomIn.length;t<n;t++)r[i.zoomIn[t]]=e;for(t=0,n=i.zoomOut.length;t<n;t++)r[i.zoomOut[t]]=-e},_addHooks:function(){Lt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){It(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,n=e.keyCode,r=this._map;if(n in this._panKeys)r._panAnim&&r._panAnim._inProgress||(t=this._panKeys[n],e.shiftKey&&(t=R(t).multiplyBy(3)),r.panBy(t),r.options.maxBounds&&r.panInsideBounds(r.options.maxBounds));else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}Yt(e)}}});Jt.addInitHook("addHandler","keyboard",Qr),Jt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var $r=hn.extend({addHooks:function(){Lt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){It(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=Kt(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),r),Yt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var r=this._delta/(4*this._map.options.wheelPxPerZoomLevel),i=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,o=n?Math.ceil(i/n)*n:i,a=e._limitZoom(t+(this._delta>0?o:-o))-t;this._delta=0,this._startTime=null,a&&("center"===e.options.scrollWheelZoom?e.setZoom(t+a):e.setZoomAround(this._lastMousePos,t+a))}});Jt.addInitHook("addHandler","scrollWheelZoom",$r);var Xr=600;Jt.mergeOptions({tapHold:Re.touchNative&&Re.safari&&Re.mobile,tapTolerance:15});var Jr=hn.extend({addHooks:function(){Lt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){It(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new N(t.clientX,t.clientY),this._holdTimeout=setTimeout(i((function(){this._cancel(),this._isTapValid()&&(Lt(document,"touchend",Zt),Lt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),this),Xr),Lt(document,"touchend touchcancel contextmenu",this._cancel,this),Lt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){It(document,"touchend",Zt),It(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),It(document,"touchend touchcancel contextmenu",this._cancel,this),It(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new N(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});Jt.addInitHook("addHandler","tapHold",Jr),Jt.mergeOptions({touchZoom:Re.touch,bounceAtZoomLimits:!0});var ei=hn.extend({addHooks:function(){gt(this._map._container,"leaflet-touch-zoom"),Lt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){yt(this._map._container,"leaflet-touch-zoom"),It(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),Lt(document,"touchmove",this._onTouchMove,this),Lt(document,"touchend touchcancel",this._onTouchEnd,this),Zt(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),o=n.distanceTo(r)/this._startDist;if(this._zoom=t.getScaleZoom(o,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&o<1||this._zoom>t.getMaxZoom()&&o>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var s=i(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=C(s,this,!0),Zt(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),It(document,"touchmove",this._onTouchMove,this),It(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))):this._zooming=!1}});Jt.addInitHook("addHandler","touchZoom",ei),Jt.BoxZoom=qr,Jt.DoubleClickZoom=Gr,Jt.Drag=Kr,Jt.Keyboard=Qr,Jt.ScrollWheelZoom=$r,Jt.TapHold=Jr,Jt.TouchZoom=ei,e.Bounds=A,e.Browser=Re,e.CRS=V,e.Canvas=Fr,e.Circle=er,e.CircleMarker=Xn,e.Class=M,e.Control=tn,e.DivIcon=Or,e.DivOverlay=Sr,e.DomEvent=$t,e.DomUtil=Rt,e.Draggable=gn,e.Evented=j,e.FeatureGroup=Hn,e.GeoJSON=ar,e.GridLayer=jr,e.Handler=hn,e.Icon=Zn,e.ImageOverlay=yr,e.LatLng=B,e.LatLngBounds=F,e.Layer=Bn,e.LayerGroup=Un,e.LineUtil=jn,e.Map=Jt,e.Marker=Kn,e.Mixin=vn,e.Path=$n,e.Point=N,e.PolyUtil=Dn,e.Polygon=ir,e.Polyline=nr,e.Popup=Cr,e.PosAnimation=Xt,e.Projection=An,e.Rectangle=Zr,e.Renderer=Ir,e.SVG=Hr,e.SVGOverlay=wr,e.TileLayer=Dr,e.Tooltip=Tr,e.Transformation=Y,e.Util=T,e.VideoOverlay=_r,e.bind=i,e.bounds=I,e.canvas=zr,e.circle=tr,e.circleMarker=Jn,e.control=nn,e.divIcon=Pr,e.extend=n,e.featureGroup=Wn,e.geoJSON=mr,e.geoJson=gr,e.gridLayer=Nr,e.icon=Yn,e.imageOverlay=br,e.latLng=U,e.latLngBounds=z,e.layerGroup=Vn,e.map=en,e.marker=Qn,e.point=R,e.polygon=or,e.polyline=rr,e.popup=Er,e.rectangle=Yr,e.setOptions=h,e.stamp=a,e.svg=Wr,e.svgOverlay=kr,e.tileLayer=Rr,e.tooltip=Mr,e.transformation=q,e.version=t,e.videoOverlay=xr;var ti=window.L;e.noConflict=function(){return window.L=ti,this},window.L=e}(t)},2393:function(e,t){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.apply(void 0,e)}function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l(!0===e[0],!1,e)}function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l(!0===e[0],!0,e)}function o(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;++n)t.push(o(e[n]));return t}if(a(e)){t={};for(var n in e)t[n]=o(e[n]);return t}return e}function a(e){return e&&"object"===typeof e&&!Array.isArray(e)}function s(e,t){if(!a(e))return t;for(var n in t)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=a(e[n])&&a(t[n])?s(e[n],t[n]):t[n]);return e}function l(e,t,n){var r;!e&&a(r=n.shift())||(r={});for(var i=0;i<n.length;++i){var l=n[i];if(a(l))for(var u in l)if("__proto__"!==u&&"constructor"!==u&&"prototype"!==u){var c=e?o(l[u]):l[u];r[u]=t?s(r[u],c):c}}return r}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,t.main=n,n.clone=o,n.isPlainObject=a,n.recursive=i,t.merge=r,t.recursive=i,t.clone=o,t.isPlainObject=a},3422:function(e,t,n){"use strict";var r=n(9452);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=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:o,resetWarningCache:i};return n.PropTypes=n,n}},8731:function(e,t,n){e.exports=n(3422)()},9452:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7418:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},8663:function(e,t,n){"use strict";var r=n(5398),i=n(54),o=n(7418);e.exports={formats:o,parse:i,stringify:r}},54:function(e,t,n){"use strict";var r=n(9116),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),u=s?o.slice(0,s.index):o,c=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var f=0;n.depth>0&&null!==(s=a.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+o.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:a[u]=i:a={0:i}}i=a}return i}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var c="string"===typeof e?function(e,t){var n,u={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),h=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?p="utf-8":"utf8=%26%2310003%3B"===d[n]&&(p="iso-8859-1"),h=n,n=d.length);for(n=0;n<d.length;++n)if(n!==h){var v,m,g=d[n],y=g.indexOf("]="),b=-1===y?g.indexOf("="):y+1;-1===b?(v=t.decoder(g,a.decoder,p,"key"),m=t.strictNullHandling?null:""):(v=t.decoder(g.slice(0,b),a.decoder,p,"key"),m=r.maybeMap(l(g.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===p&&(m=s(m)),g.indexOf("[]=")>-1&&(m=o(m)?[m]:m),i.call(u,v)?u[v]=r.combine(u[v],m):u[v]=m}return u}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(c),h=0;h<d.length;++h){var p=d[h],v=u(p,c[p],n,"string"===typeof e);f=r.merge(f,v,n)}return r.compact(f)}},5398:function(e,t,n){"use strict";var r=n(9116),i=n(7418),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,s(t)?t:[t])},c=Date.prototype.toISOString,f=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},h=function e(t,n,i,o,a,l,c,f,h,p,v,m,g,y){var b,_=t;if("function"===typeof c?_=c(n,_):_ instanceof Date?_=p(_):"comma"===i&&s(_)&&(_=r.maybeMap(_,(function(e){return e instanceof Date?p(e):e}))),null===_){if(o)return l&&!g?l(n,d.encoder,y,"key",v):n;_=""}if("string"===typeof(b=_)||"number"===typeof b||"boolean"===typeof b||"symbol"===typeof b||"bigint"===typeof b||r.isBuffer(_))return l?[m(g?n:l(n,d.encoder,y,"key",v))+"="+m(l(_,d.encoder,y,"value",v))]:[m(n)+"="+m(String(_))];var x,w=[];if("undefined"===typeof _)return w;if("comma"===i&&s(_))x=[{value:_.length>0?_.join(",")||null:void 0}];else if(s(c))x=c;else{var k=Object.keys(_);x=f?k.sort(f):k}for(var S=0;S<x.length;++S){var C=x[S],E="object"===typeof C&&void 0!==C.value?C.value:_[C];if(!a||null!==E){var T=s(_)?"function"===typeof i?i(n,C):n:n+(h?"."+C:"["+C+"]");u(w,e(E,T,i,o,a,l,c,f,h,p,v,m,g,y))}}return w};e.exports=function(e,t){var n,r=e,l=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if("undefined"!==typeof e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],a=d.filter;return("function"===typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?d.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:d.encode,encoder:"function"===typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"===typeof l.filter?r=(0,l.filter)("",r):s(l.filter)&&(n=l.filter);var c,f=[];if("object"!==typeof r||null===r)return"";c=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=a[c];n||(n=Object.keys(r)),l.sort&&n.sort(l.sort);for(var v=0;v<n.length;++v){var m=n[v];l.skipNulls&&null===r[m]||u(f,h(r[m],m,p,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset))}var g=f.join(l.delimiter),y=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),g.length>0?y+g:""}},9116:function(e,t,n){"use strict";var r=n(7418),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],c=a[u];"object"===typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;++u){var c=s.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?l+=s.charAt(u):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(u)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},6328:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=s(n(9867)),o=s(n(5240)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){!function(e,t){if("function"!==typeof t&&null!==t)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&&h(e,t)}(l,e);var t,n,r,s=p(l);function l(){var e;f(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(m(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,l=n.options,u=i.default.Children.only(s),c=(0,o.default)(r,l);a&&a(r,c),u&&u.props&&"function"===typeof u.props.onClick&&u.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=c(e,a),r=i.default.Children.only(t);return i.default.cloneElement(r,u(u({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.default.PureComponent);t.CopyToClipboard=b,y(b,"defaultProps",{onCopy:void 0,options:void 0})},5176:function(e,t,n){"use strict";var r=n(6328).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},577:function(e,t,n){!function(e,t,n,r,i,o,a,s,l,u,c,f,d,h,p,v,m,g,y,b,_,x,w,k,S,C,E,T,M,O,P,j,N,D,R,L,A,I,F,z,B,U,V,H,W,Z,Y,q,G,K,Q,$,X,J,ee,te,ne,re,ie,oe,ae,se,le){"use strict";function ue(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var ce=ue(t),fe=ue(r),de=ue(i),he=ue(o),pe=ue(a),ve=ue(s),me=ue(l),ge=ue(u),ye=ue(c),be=ue(f),_e=ue(d),xe=ue(v),we=ue(m),ke=ue(g),Se=ue(y),Ce=ue(b),Ee=ue(_),Te=ue(x),Me=ue(w),Oe=ue(k),Pe=ue(S),je=ue(C),Ne=ue(E),De=ue(T),Re=ue(M),Le=ue(O),Ae=ue(P),Ie=ue(j),Fe=ue(N),ze=ue(D),Be=ue(R),Ue=ue(L),Ve=ue(A),He=ue(I),We=ue(F),Ze=ue(B),Ye=ue(U),qe=ue(V),Ge=ue(H),Ke=ue(W),Qe=ue(Z),$e=ue(Y),Xe=ue(K),Je=ue(Q),et=ue($),tt=ue(X),nt=ue(J),rt=ue(ee),it=ue(te),ot=ue(ne),at=ue(re),st=ue(ie),lt=ue(oe),ut=ue(ae),ct=ue(se);function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ht(e){return(ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vt(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 mt(e,t,n){return t&&vt(e.prototype,t),n&&vt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(){return(yt=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 bt(e,t){if("function"!=typeof t&&null!==t)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&&xt(e,t)}function _t(e){return(_t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xt(e,t){return(xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wt(e)}function St(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_t(e);if(t){var i=_t(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kt(this,n)}}function Ct(e){return function(e){if(Array.isArray(e))return Et(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Et(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tt(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function Mt(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var Ot={p:Mt,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Tt(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Tt(i,t)).replace("{{time}}",Mt(o,t))}},Pt=12,jt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Nt(e){var t=e?"string"==typeof e||e instanceof String?lt.default(e):at.default(e):new Date;return Rt(t)?t:null}function Dt(e,t,n,r,i){var o=null,a=Xt(n)||Xt($t()),s=!0;return Array.isArray(t)?(t.forEach((function(t){var l=st.default(e,t,new Date,{locale:a});r&&(s=Rt(l,i)&&e===Lt(l,t,n)),Rt(l,i)&&s&&(o=l)})),o):(o=st.default(e,t,new Date,{locale:a}),r?s=Rt(o)&&e===Lt(o,t,n):Rt(o)||(t=t.match(jt).map((function(e){var t=e[0];return"p"===t||"P"===t?a?(0,Ot[t])(e,a.formatLong):t:e})).join(""),e.length>0&&(o=st.default(e,t.slice(0,e.length),new Date)),Rt(o)||(o=new Date(e))),Rt(o)&&s?o:null)}function Rt(e,t){return t=t||new Date("1/1/1000"),he.default(e)&&!it.default(e,t)}function Lt(e,t,n){if("en"===n)return pe.default(e,t,{awareOfUnicodeTokens:!0});var r=Xt(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&$t()&&Xt($t())&&(r=Xt($t())),pe.default(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function At(e,t){var n=t.dateFormat,r=t.locale;return e&&Lt(e,Array.isArray(n)?n[0]:n,r)||""}function It(e,t){var n=t.hour,r=void 0===n?0:n,i=t.minute,o=void 0===i?0:i,a=t.second,s=void 0===a?0:a;return Ie.default(Ae.default(Le.default(e,s),o),r)}function Ft(e,t){var n=t&&Xt(t)||$t()&&Xt($t());return Pe.default(e,n?{locale:n}:null)}function zt(e,t){return Lt(e,"ddd",t)}function Bt(e){return Ye.default(e)}function Ut(e,t,n){var r=Xt(t||$t());return qe.default(e,{locale:r,weekStartsOn:n})}function Vt(e){return Ge.default(e)}function Ht(e){return Qe.default(e)}function Wt(e){return Ke.default(e)}function Zt(e,t){return e&&t?tt.default(e,t):!e&&!t}function Yt(e,t){return e&&t?et.default(e,t):!e&&!t}function qt(e,t){return e&&t?nt.default(e,t):!e&&!t}function Gt(e,t){return e&&t?Je.default(e,t):!e&&!t}function Kt(e,t){return e&&t?Xe.default(e,t):!e&&!t}function Qt(e,t,n){var r,i=Ye.default(t),o=$e.default(n);try{r=ot.default(e,{start:i,end:o})}catch(e){r=!1}return r}function $t(){return("undefined"!=typeof window?window:globalThis).__localeId__}function Xt(e){if("string"==typeof e){var t="undefined"!=typeof window?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function Jt(e,t){return Lt(Fe.default(Nt(),e),"LLLL",t)}function en(e,t){return Lt(Fe.default(Nt(),e),"LLL",t)}function tn(e,t){return Lt(ze.default(Nt(),e),"QQQ",t)}function nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return cn(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return Gt(e,t)}))||o&&o.some((function(t){var n=t.start,r=t.end;return ot.default(e,{start:n,end:r})}))||a&&!a.some((function(t){return Gt(e,t)}))||s&&!s.some((function(t){var n=t.start,r=t.end;return ot.default(e,{start:n,end:r})}))||l&&!l(Nt(e))||!1}function rn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some((function(t){var n=t.start,r=t.end;return ot.default(e,{start:n,end:r})})):n&&n.some((function(t){return Gt(e,t)}))||!1}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return cn(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return Yt(e,t)}))||o&&!o.some((function(t){return Yt(e,t)}))||a&&!a(Nt(e))||!1}function an(e,t,n,r){var i=De.default(e),o=je.default(e),a=De.default(t),s=je.default(t),l=De.default(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return cn(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return qt(e,t)}))||o&&!o.some((function(t){return qt(e,t)}))||a&&!a(Nt(e))||!1}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return cn(new Date(e,0,1),{minDate:n,maxDate:r})||!1}function un(e,t,n,r){var i=De.default(e),o=Ne.default(e),a=De.default(t),s=Ne.default(t),l=De.default(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&He.default(e,n)<0||r&&He.default(e,r)>0}function fn(e,t){return t.some((function(t){return Te.default(t)===Te.default(e)&&Ee.default(t)===Ee.default(e)}))}function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&fn(e,n)||r&&!fn(e,r)||i&&!i(e)||!1}function hn(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=Nt(),a=Ie.default(Ae.default(o,Ee.default(e)),Te.default(e)),s=Ie.default(Ae.default(o,Ee.default(n)),Te.default(n)),l=Ie.default(Ae.default(o,Ee.default(r)),Te.default(r));try{i=!ot.default(a,{start:s,end:l})}catch(e){i=!1}return i}function pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,i=ke.default(e,1);return n&&We.default(n,i)>0||r&&r.every((function(e){return We.default(e,i)>0}))||!1}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=be.default(e,1);return n&&We.default(i,n)>0||r&&r.every((function(e){return We.default(i,e)>0}))||!1}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Se.default(e,1);return n&&Ze.default(n,i)>0||r&&r.every((function(e){return Ze.default(e,i)>0}))||!1}function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=_e.default(e,1);return n&&Ze.default(i,n)>0||r&&r.every((function(e){return Ze.default(i,e)>0}))||!1}function yn(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return He.default(e,t)>=0}));return Ue.default(r)}return n?Ue.default(n):t}function bn(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return He.default(e,t)<=0}));return Ve.default(r)}return n?Ve.default(n):t}function _n(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r<i;r++){var o=e[r];if(de.default(o)){var a=Lt(o,"MM.dd.yyyy"),s=n.get(a)||[];s.includes(t)||(s.push(t),n.set(a,s))}else if("object"===ht(o)){var l=Object.keys(o),u=l[0],c=o[l[0]];if("string"==typeof u&&c.constructor===Array)for(var f=0,d=c.length;f<d;f++){var h=Lt(c[f],"MM.dd.yyyy"),p=n.get(h)||[];p.includes(u)||(p.push(u),n.set(h,p))}}}return n}function xn(e,t,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=ve.default(me.default(e,Te.default(i[s])),Ee.default(i[s])),u=ve.default(e,(n+1)*r);rt.default(l,t)&&it.default(l,u)&&a.push(i[s])}return a}function wn(e){return e<10?"0".concat(e):"".concat(e)}function kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pt,n=Math.ceil(De.default(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function Sn(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=De.default(n)<=a),r&&s&&(s=De.default(r)>=a),s&&i.push(a)}return i}var Cn=function(e){bt(r,e);var n=St(r);function r(e){var i;pt(this,r),gt(wt(i=n.call(this,e)),"renderOptions",(function(){var e=i.props.year,t=i.state.yearsList.map((function(t){return ce.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:i.onChange.bind(wt(i),t),"aria-selected":e===t?"true":void 0},e===t?ce.default.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",t)})),n=i.props.minDate?De.default(i.props.minDate):null,r=i.props.maxDate?De.default(i.props.maxDate):null;return r&&i.state.yearsList.find((function(e){return e===r}))||t.unshift(ce.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},ce.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&i.state.yearsList.find((function(e){return e===n}))||t.push(ce.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},ce.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),gt(wt(i),"onChange",(function(e){i.props.onChange(e)})),gt(wt(i),"handleClickOutside",(function(){i.props.onCancel()})),gt(wt(i),"shiftYears",(function(e){var t=i.state.yearsList.map((function(t){return t+e}));i.setState({yearsList:t})})),gt(wt(i),"incrementYears",(function(){return i.shiftYears(1)})),gt(wt(i),"decrementYears",(function(){return i.shiftYears(-1)}));var o=e.yearDropdownItemNumber,a=e.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:Sn(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=t.createRef(),i}return mt(r,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;e&&(e.scrollTop=e.scrollHeight/2-e.clientHeight/2)}},{key:"render",value:function(){var e=fe.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ce.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),r}(ce.default.Component),En=ut.default(Cn),Tn=function(e){bt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),gt(wt(e),"renderSelectOptions",(function(){for(var t=e.props.minDate?De.default(e.props.minDate):1900,n=e.props.maxDate?De.default(e.props.maxDate):2100,r=[],i=t;i<=n;i++)r.push(ce.default.createElement("option",{key:i,value:i},i));return r})),gt(wt(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),gt(wt(e),"renderSelectMode",(function(){return ce.default.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),gt(wt(e),"renderReadView",(function(t){return ce.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(t){return e.toggleDropdown(t)}},ce.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),ce.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))})),gt(wt(e),"renderDropdown",(function(){return ce.default.createElement(En,{key:"dropdown",year:e.props.year,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})})),gt(wt(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),gt(wt(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)})),gt(wt(e),"toggleDropdown",(function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},(function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)}))})),gt(wt(e),"handleYearChange",(function(t,n){e.onSelect(t,n),e.setOpen()})),gt(wt(e),"onSelect",(function(t,n){e.props.onSelect&&e.props.onSelect(t,n)})),gt(wt(e),"setOpen",(function(){e.props.setOpen&&e.props.setOpen(!0)})),e}return mt(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return ce.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(ce.default.Component),Mn=function(e){bt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"isSelectedMonth",(function(t){return e.props.month===t})),gt(wt(e),"renderOptions",(function(){return e.props.monthNames.map((function(t,n){return ce.default.createElement("div",{className:e.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(wt(e),n),"aria-selected":e.isSelectedMonth(n)?"true":void 0},e.isSelectedMonth(n)?ce.default.createElement("span",{className:"react-datepicker__month-option--selected"},"\u2713"):"",t)}))})),gt(wt(e),"onChange",(function(t){return e.props.onChange(t)})),gt(wt(e),"handleClickOutside",(function(){return e.props.onCancel()})),e}return mt(n,[{key:"render",value:function(){return ce.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}(ce.default.Component),On=ut.default(Mn),Pn=function(e){bt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),gt(wt(e),"renderSelectOptions",(function(e){return e.map((function(e,t){return ce.default.createElement("option",{key:t,value:t},e)}))})),gt(wt(e),"renderSelectMode",(function(t){return ce.default.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(t){return e.onChange(t.target.value)}},e.renderSelectOptions(t))})),gt(wt(e),"renderReadView",(function(t,n){return ce.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},ce.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),ce.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[e.props.month]))})),gt(wt(e),"renderDropdown",(function(t){return ce.default.createElement(On,{key:"dropdown",month:e.props.month,monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown})})),gt(wt(e),"renderScrollMode",(function(t){var n=e.state.dropdownVisible,r=[e.renderReadView(!n,t)];return n&&r.unshift(e.renderDropdown(t)),r})),gt(wt(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)})),gt(wt(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return mt(n,[{key:"render",value:function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return en(e,t.props.locale)}:function(e){return Jt(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return ce.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(ce.default.Component);function jn(e,t){for(var n=[],r=Vt(e),i=Vt(t);!rt.default(r,i);)n.push(Nt(r)),r=be.default(r,1);return n}var Nn=function(e){bt(n,e);var t=St(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"renderOptions",(function(){return r.state.monthYearsList.map((function(e){var t=Re.default(e),n=Zt(r.props.date,e)&&Yt(r.props.date,e);return ce.default.createElement("div",{className:n?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:r.onChange.bind(wt(r),t),"aria-selected":n?"true":void 0},n?ce.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"\u2713"):"",Lt(e,r.props.dateFormat,r.props.locale))}))})),gt(wt(r),"onChange",(function(e){return r.props.onChange(e)})),gt(wt(r),"handleClickOutside",(function(){r.props.onCancel()})),r.state={monthYearsList:jn(r.props.minDate,r.props.maxDate)},r}return mt(n,[{key:"render",value:function(){var e=fe.default({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return ce.default.createElement("div",{className:e},this.renderOptions())}}]),n}(ce.default.Component),Dn=ut.default(Nn),Rn=function(e){bt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),gt(wt(e),"renderSelectOptions",(function(){for(var t=Vt(e.props.minDate),n=Vt(e.props.maxDate),r=[];!rt.default(t,n);){var i=Re.default(t);r.push(ce.default.createElement("option",{key:i,value:i},Lt(t,e.props.dateFormat,e.props.locale))),t=be.default(t,1)}return r})),gt(wt(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),gt(wt(e),"renderSelectMode",(function(){return ce.default.createElement("select",{value:Re.default(Vt(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),gt(wt(e),"renderReadView",(function(t){var n=Lt(e.props.date,e.props.dateFormat,e.props.locale);return ce.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(t){return e.toggleDropdown(t)}},ce.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),ce.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))})),gt(wt(e),"renderDropdown",(function(){return ce.default.createElement(Dn,{key:"dropdown",date:e.props.date,dateFormat:e.props.dateFormat,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,locale:e.props.locale})})),gt(wt(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),gt(wt(e),"onChange",(function(t){e.toggleDropdown();var n=Nt(parseInt(t));Zt(e.props.date,n)&&Yt(e.props.date,n)||e.props.onChange(n)})),gt(wt(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return mt(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return ce.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(ce.default.Component),Ln=function(e){bt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"dayEl",ce.default.createRef()),gt(wt(e),"handleClick",(function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)})),gt(wt(e),"handleMouseEnter",(function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)})),gt(wt(e),"handleOnKeyDown",(function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)})),gt(wt(e),"isSameDay",(function(t){return Gt(e.props.day,t)})),gt(wt(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!e.isSameDay(e.props.selected)&&e.isSameDay(e.props.preSelection)})),gt(wt(e),"isDisabled",(function(){return nn(e.props.day,e.props)})),gt(wt(e),"isExcluded",(function(){return rn(e.props.day,e.props)})),gt(wt(e),"getHighLightedClass",(function(t){var n=e.props,r=n.day,i=n.highlightDates;if(!i)return!1;var o=Lt(r,"MM.dd.yyyy");return i.get(o)})),gt(wt(e),"isInRange",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Qt(n,r,i)})),gt(wt(e),"isInSelectingRange",(function(){var t,n=e.props,r=n.day,i=n.selectsStart,o=n.selectsEnd,a=n.selectsRange,s=n.selectsDisabledDaysInRange,l=n.startDate,u=n.endDate,c=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return!(!(i||o||a)||!c||!s&&e.isDisabled())&&(i&&u&&(it.default(c,u)||Kt(c,u))?Qt(r,c,u):(o&&l&&(rt.default(c,l)||Kt(c,l))||!(!a||!l||u||!rt.default(c,l)&&!Kt(c,l)))&&Qt(r,l,c))})),gt(wt(e),"isSelectingRangeStart",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,i=n.startDate,o=n.selectsStart,a=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return Gt(r,o?a:i)})),gt(wt(e),"isSelectingRangeEnd",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,i=n.endDate,o=n.selectsEnd,a=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return Gt(r,o?a:i)})),gt(wt(e),"isRangeStart",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Gt(r,n)})),gt(wt(e),"isRangeEnd",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Gt(i,n)})),gt(wt(e),"isWeekend",(function(){var t=Me.default(e.props.day);return 0===t||6===t})),gt(wt(e),"isAfterMonth",(function(){return void 0!==e.props.month&&(e.props.month+1)%12===je.default(e.props.day)})),gt(wt(e),"isBeforeMonth",(function(){return void 0!==e.props.month&&(je.default(e.props.day)+1)%12===e.props.month})),gt(wt(e),"isCurrentDay",(function(){return e.isSameDay(Nt())})),gt(wt(e),"isSelected",(function(){return e.isSameDay(e.props.selected)})),gt(wt(e),"getClassNames",(function(t){var n=e.props.dayClassName?e.props.dayClassName(t):void 0;return fe.default("react-datepicker__day",n,"react-datepicker__day--"+zt(e.props.day),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"))})),gt(wt(e),"getAriaLabel",(function(){var t=e.props,n=t.day,r=t.ariaLabelPrefixWhenEnabled,i=void 0===r?"Choose":r,o=t.ariaLabelPrefixWhenDisabled,a=void 0===o?"Not available":o,s=e.isDisabled()||e.isExcluded()?a:i;return"".concat(s," ").concat(Lt(n,"PPPP",e.props.locale))})),gt(wt(e),"getTabIndex",(function(t,n){var r=t||e.props.selected,i=n||e.props.preSelection;return e.isKeyboardSelected()||e.isSameDay(r)&&Gt(i,r)?0:-1})),gt(wt(e),"handleFocusDay",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(n=!0)),n&&e.dayEl.current.focus({preventScroll:!0})})),gt(wt(e),"renderDayContents",(function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(Oe.default(e.props.day),e.props.day):Oe.default(e.props.day)})),gt(wt(e),"render",(function(){return ce.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option","aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()},e.renderDayContents())})),e}return mt(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(ce.default.Component),An=function(e){bt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"handleClick",(function(t){e.props.onClick&&e.props.onClick(t)})),e}return mt(n,[{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,r=void 0===n?"week ":n,i={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick};return ce.default.createElement("div",{className:fe.default(i),"aria-label":"".concat(r," ").concat(this.props.weekNumber),onClick:this.handleClick},t)}}]),n}(ce.default.Component),In=function(e){bt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n)})),gt(wt(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),gt(wt(e),"handleWeekClick",(function(t,n,r){"function"==typeof e.props.onWeekSelect&&e.props.onWeekSelect(t,n,r),e.props.shouldCloseOnSelect&&e.props.setOpen(!1)})),gt(wt(e),"formatWeekNumber",(function(t){return e.props.formatWeekNumber?e.props.formatWeekNumber(t):Ft(t)})),gt(wt(e),"renderDays",(function(){var t=Ut(e.props.day,e.props.locale,e.props.calendarStartDay),n=[],r=e.formatWeekNumber(t);if(e.props.showWeekNumber){var i=e.props.onWeekSelect?e.handleWeekClick.bind(wt(e),t,r):void 0;n.push(ce.default.createElement(An,{key:"W",weekNumber:r,onClick:i,ariaLabelPrefix:e.props.ariaLabelPrefix}))}return n.concat([0,1,2,3,4,5,6].map((function(n){var r=ge.default(t,n);return ce.default.createElement(Ln,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:r.valueOf(),day:r,month:e.props.month,onClick:e.handleDayClick.bind(wt(e),r),onMouseEnter:e.handleDayMouseEnter.bind(wt(e),r),minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,renderDayContents:e.props.renderDayContents,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart,locale:e.props.locale})})))})),e}return mt(n,[{key:"render",value:function(){return ce.default.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(ce.default.Component),Fn=function(e){bt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"MONTH_REFS",Ct(Array(12)).map((function(){return ce.default.createRef()}))),gt(wt(e),"isDisabled",(function(t){return nn(t,e.props)})),gt(wt(e),"isExcluded",(function(t){return rn(t,e.props)})),gt(wt(e),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n,e.props.orderInDisplay)})),gt(wt(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),gt(wt(e),"handleMouseLeave",(function(){e.props.onMouseLeave&&e.props.onMouseLeave()})),gt(wt(e),"isRangeStartMonth",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&Yt(Fe.default(r,t),i)})),gt(wt(e),"isRangeStartQuarter",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&qt(ze.default(r,t),i)})),gt(wt(e),"isRangeEndMonth",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&Yt(Fe.default(r,t),o)})),gt(wt(e),"isRangeEndQuarter",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&qt(ze.default(r,t),o)})),gt(wt(e),"isWeekInMonth",(function(t){var n=e.props.day,r=ge.default(t,6);return Yt(t,n)||Yt(r,n)})),gt(wt(e),"isCurrentMonth",(function(e,t){return De.default(e)===De.default(Nt())&&t===je.default(Nt())})),gt(wt(e),"isSelectedMonth",(function(e,t,n){return je.default(e)===t&&De.default(e)===De.default(n)})),gt(wt(e),"isSelectedQuarter",(function(e,t,n){return Ne.default(e)===t&&De.default(e)===De.default(n)})),gt(wt(e),"renderWeeks",(function(){for(var t=[],n=e.props.fixedHeight,r=0,i=!1,o=Ut(Vt(e.props.day),e.props.locale,e.props.calendarStartDay);t.push(ce.default.createElement(In,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,key:r,day:o,month:je.default(e.props.day),onDayClick:e.handleDayClick,onDayMouseEnter:e.handleDayMouseEnter,onWeekSelect:e.props.onWeekSelect,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,showWeekNumber:e.props.showWeekNumbers,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderDayContents:e.props.renderDayContents,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,calendarStartDay:e.props.calendarStartDay,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart})),!i;){r++,o=ye.default(o,1);var a=n&&r>=6,s=!n&&!e.isWeekInMonth(o);if(a||s){if(!e.props.peekNextMonth)break;i=!0}}return t})),gt(wt(e),"onMonthClick",(function(t,n){e.handleDayClick(Vt(Fe.default(e.props.day,n)),t)})),gt(wt(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),gt(wt(e),"onMonthKeyDown",(function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onMonthClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,be.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,ke.default(e.props.preSelection,1))}})),gt(wt(e),"onQuarterClick",(function(t,n){e.handleDayClick(Wt(ze.default(e.props.day,n)),t)})),gt(wt(e),"getMonthClassNames",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate,a=n.selected,s=n.minDate,l=n.maxDate,u=n.preSelection,c=n.monthClassName,f=c?c(r):void 0;return fe.default("react-datepicker__month-text","react-datepicker__month-".concat(t),f,{"react-datepicker__month--disabled":(s||l)&&on(Fe.default(r,t),e.props),"react-datepicker__month--selected":e.isSelectedMonth(r,t,a),"react-datepicker__month-text--keyboard-selected":je.default(u)===t,"react-datepicker__month--in-range":an(i,o,t,r),"react-datepicker__month--range-start":e.isRangeStartMonth(t),"react-datepicker__month--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--today":e.isCurrentMonth(r,t)})})),gt(wt(e),"getTabIndex",(function(t){var n=je.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),gt(wt(e),"getAriaLabel",(function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,i=void 0===r?"Choose":r,o=n.disabledDayAriaLabelPrefix,a=void 0===o?"Not available":o,s=n.day,l=Fe.default(s,t),u=e.isDisabled(l)||e.isExcluded(l)?a:i;return"".concat(u," ").concat(Lt(l,"MMMM yyyy"))})),gt(wt(e),"getQuarterClassNames",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate,a=n.selected,s=n.minDate,l=n.maxDate;return fe.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter--disabled":(s||l)&&sn(ze.default(r,t),e.props),"react-datepicker__quarter--selected":e.isSelectedQuarter(r,t,a),"react-datepicker__quarter--in-range":un(i,o,t,r),"react-datepicker__quarter--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter--range-end":e.isRangeEndQuarter(t)})})),gt(wt(e),"renderMonths",(function(){var t=e.props,n=t.showFullMonthYearPicker,r=t.showTwoColumnMonthYearPicker,i=t.showFourColumnMonthYearPicker,o=t.locale,a=t.day,s=t.selected;return(i?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:r?[[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(t,r){return ce.default.createElement("div",{className:"react-datepicker__month-wrapper",key:r},t.map((function(t,r){return ce.default.createElement("div",{ref:e.MONTH_REFS[t],key:r,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(a,t)?"date":void 0,"aria-selected":e.isSelectedMonth(a,t,s)},n?Jt(t,o):en(t,o))})))}))})),gt(wt(e),"renderQuarters",(function(){var t=e.props,n=t.day,r=t.selected;return ce.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,i){return ce.default.createElement("div",{key:i,role:"option",onClick:function(n){e.onQuarterClick(n,t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r)},tn(t,e.props.locale))})))})),gt(wt(e),"getClassNames",(function(){var t=e.props;t.day;var n=t.selectingDate,r=t.selectsStart,i=t.selectsEnd,o=t.showMonthYearPicker,a=t.showQuarterYearPicker;return fe.default("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||i)},{"react-datepicker__monthPicker":o},{"react-datepicker__quarterPicker":a})})),e}return mt(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,i=e.ariaLabelPrefix,o=void 0===i?"month ":i;return ce.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(o," ").concat(Lt(r,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(ce.default.Component),zn=function(e){bt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"state",{height:null}),gt(wt(e),"handleClick",(function(t){(e.props.minTime||e.props.maxTime)&&hn(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&dn(t,e.props)||e.props.onChange(t)})),gt(wt(e),"isSelectedTime",(function(t,n,r){return e.props.selected&&n===Te.default(t)&&r===Ee.default(t)})),gt(wt(e),"liClasses",(function(t,n,r){var i=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t,n,r):void 0];return e.isSelectedTime(t,n,r)&&i.push("react-datepicker__time-list-item--selected"),((e.props.minTime||e.props.maxTime)&&hn(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&dn(t,e.props))&&i.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(60*Te.default(t)+Ee.default(t))%e.props.intervals!=0&&i.push("react-datepicker__time-list-item--injected"),i.join(" ")})),gt(wt(e),"handleOnKeyDown",(function(t,n){" "===t.key&&(t.preventDefault(),t.key="Enter"),"Enter"===t.key&&e.handleClick(n),e.props.handleOnKeyDown(t)})),gt(wt(e),"renderTimes",(function(){for(var t=[],n=e.props.format?e.props.format:"p",r=e.props.intervals,i=Bt(Nt(e.props.selected)),o=1440/r,a=e.props.injectTimes&&e.props.injectTimes.sort((function(e,t){return e-t})),s=e.props.selected||e.props.openToDate||Nt(),l=Te.default(s),u=Ee.default(s),c=Ie.default(Ae.default(i,u),l),f=0;f<o;f++){var d=ve.default(i,f*r);if(t.push(d),a){var h=xn(i,d,f,r,a);t=t.concat(h)}}return t.map((function(t,r){return ce.default.createElement("li",{key:r,onClick:e.handleClick.bind(wt(e),t),className:e.liClasses(t,l,u),ref:function(n){(it.default(t,c)||Kt(t,c))&&(e.centerLi=n)},onKeyDown:function(n){e.handleOnKeyDown(n,t)},tabIndex:"0","aria-selected":e.isSelectedTime(t,l,u)?"true":void 0},Lt(t,n,e.props.locale))}))})),e}return mt(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 e=this,t=this.state.height;return ce.default.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},ce.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(t){e.header=t}},ce.default.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),ce.default.createElement("div",{className:"react-datepicker__time"},ce.default.createElement("div",{className:"react-datepicker__time-box"},ce.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{},tabIndex:"0"},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}(ce.default.Component);gt(zn,"calcCenterPosition",(function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)}));var Bn=function(e){bt(n,e);var t=St(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"YEAR_REFS",Ct(Array(r.props.yearItemNumber)).map((function(){return ce.default.createRef()}))),gt(wt(r),"isDisabled",(function(e){return nn(e,r.props)})),gt(wt(r),"isExcluded",(function(e){return rn(e,r.props)})),gt(wt(r),"updateFocusOnPaginate",(function(e){var t=function(){this.YEAR_REFS[e].current.focus()}.bind(wt(r));window.requestAnimationFrame(t)})),gt(wt(r),"handleYearClick",(function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)})),gt(wt(r),"handleYearNavigation",(function(e,t){var n=r.props,i=n.date,o=n.yearItemNumber,a=kn(i,o).startPeriod;r.isDisabled(t)||r.isExcluded(t)||(r.props.setPreSelection(t),e-a==-1?r.updateFocusOnPaginate(o-1):e-a===o?r.updateFocusOnPaginate(0):r.YEAR_REFS[e-a].current.focus())})),gt(wt(r),"isSameDay",(function(e,t){return Gt(e,t)})),gt(wt(r),"isCurrentYear",(function(e){return e===De.default(Nt())})),gt(wt(r),"isKeyboardSelected",(function(e){var t=Ht(Be.default(r.props.date,e));return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!Gt(t,Ht(r.props.selected))&&Gt(t,Ht(r.props.preSelection))})),gt(wt(r),"onYearClick",(function(e,t){var n=r.props.date;r.handleYearClick(Ht(Be.default(n,t)),e)})),gt(wt(r),"onYearKeyDown",(function(e,t){var n=e.key;if(!r.props.disabledKeyboardNavigation)switch(n){case"Enter":r.onYearClick(e,t),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleYearNavigation(t+1,_e.default(r.props.preSelection,1));break;case"ArrowLeft":r.handleYearNavigation(t-1,Se.default(r.props.preSelection,1))}})),gt(wt(r),"getYearClassNames",(function(e){var t=r.props,n=t.minDate,i=t.maxDate,o=t.selected;return fe.default("react-datepicker__year-text",{"react-datepicker__year-text--selected":e===De.default(o),"react-datepicker__year-text--disabled":(n||i)&&ln(e,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(e),"react-datepicker__year-text--today":r.isCurrentYear(e)})})),gt(wt(r),"getYearTabIndex",(function(e){return r.props.disabledKeyboardNavigation?"-1":e===De.default(r.props.preSelection)?"0":"-1"})),r}return mt(n,[{key:"render",value:function(){for(var e=this,t=[],n=this.props,r=kn(n.date,n.yearItemNumber),i=r.startPeriod,o=r.endPeriod,a=function(n){t.push(ce.default.createElement("div",{ref:e.YEAR_REFS[n-i],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){e.onYearKeyDown(t,n)},tabIndex:e.getYearTabIndex(n),className:e.getYearClassNames(n),key:n,"aria-current":e.isCurrentYear(n)?"date":void 0},n))},s=i;s<=o;s++)a(s);return ce.default.createElement("div",{className:"react-datepicker__year"},ce.default.createElement("div",{className:"react-datepicker__year-wrapper"},t))}}]),n}(ce.default.Component),Un=function(e){bt(n,e);var t=St(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"onTimeChange",(function(e){r.setState({time:e});var t=new Date;t.setHours(e.split(":")[0]),t.setMinutes(e.split(":")[1]),r.props.onChange(t)})),gt(wt(r),"renderTimeInput",(function(){var e=r.state.time,t=r.props,n=t.date,i=t.timeString,o=t.customTimeInput;return o?ce.default.cloneElement(o,{date:n,value:e,onChange:r.onTimeChange}):ce.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||i)}})})),r.state={time:r.props.timeString},r}return mt(n,[{key:"render",value:function(){return ce.default.createElement("div",{className:"react-datepicker__input-time-container"},ce.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),ce.default.createElement("div",{className:"react-datepicker-time__input-container"},ce.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.timeString!==t.time?{time:e.timeString}:null}}]),n}(ce.default.Component);function Vn(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps,o=void 0===i?{}:i;return ce.default.createElement("div",{className:t},r&&ce.default.createElement("div",yt({className:"react-datepicker__triangle"},o)),n)}var Hn=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Wn=function(e){bt(n,e);var t=St(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"handleClickOutside",(function(e){r.props.onClickOutside(e)})),gt(wt(r),"setClickOutsideRef",(function(){return r.containerRef.current})),gt(wt(r),"handleDropdownFocus",(function(e){(function(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return Hn.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&r.props.onDropdownFocus()})),gt(wt(r),"getDateInView",(function(){var e=r.props,t=e.preSelection,n=e.selected,i=e.openToDate,o=yn(r.props),a=bn(r.props),s=Nt();return i||n||t||(o&&it.default(s,o)?o:a&&rt.default(s,a)?a:s)})),gt(wt(r),"increaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:be.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),gt(wt(r),"decreaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:ke.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),gt(wt(r),"handleDayClick",(function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)})),gt(wt(r),"handleDayMouseEnter",(function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)})),gt(wt(r),"handleMonthMouseLeave",(function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()})),gt(wt(r),"handleYearChange",(function(e){r.props.onYearChange&&r.props.onYearChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),gt(wt(r),"handleMonthChange",(function(e){r.props.onMonthChange&&r.props.onMonthChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),gt(wt(r),"handleMonthYearChange",(function(e){r.handleYearChange(e),r.handleMonthChange(e)})),gt(wt(r),"changeYear",(function(e){r.setState((function(t){var n=t.date;return{date:Be.default(n,e)}}),(function(){return r.handleYearChange(r.state.date)}))})),gt(wt(r),"changeMonth",(function(e){r.setState((function(t){var n=t.date;return{date:Fe.default(n,e)}}),(function(){return r.handleMonthChange(r.state.date)}))})),gt(wt(r),"changeMonthYear",(function(e){r.setState((function(t){var n=t.date;return{date:Be.default(Fe.default(n,je.default(e)),De.default(e))}}),(function(){return r.handleMonthYearChange(r.state.date)}))})),gt(wt(r),"header",(function(){var e=Ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,r.props.locale,r.props.calendarStartDay),t=[];return r.props.showWeekNumbers&&t.push(ce.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map((function(t){var n=ge.default(e,t),i=r.formatWeekday(n,r.props.locale),o=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return ce.default.createElement("div",{key:t,className:fe.default("react-datepicker__day-name",o)},i)})))})),gt(wt(r),"formatWeekday",(function(e,t){return r.props.formatWeekDay?function(e,t,n){return t(Lt(e,"EEEE",n))}(e,r.props.formatWeekDay,t):r.props.useWeekdaysShort?function(e,t){return Lt(e,"EEE",t)}(e,t):function(e,t){return Lt(e,"EEEEEE",t)}(e,t)})),gt(wt(r),"decreaseYear",(function(){r.setState((function(e){var t=e.date;return{date:Se.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),gt(wt(r),"renderPreviousButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=mn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,i=void 0===r?Pt:r,o=kn(Ht(Se.default(e,i)),i).endPeriod,a=n&&De.default(n);return a&&a>o||!1}(r.state.date,r.props);break;default:e=pn(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var i=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,o=r.props,a=o.previousMonthButtonLabel,s=o.previousYearButtonLabel,l=r.props,u=l.previousMonthAriaLabel,c=void 0===u?"string"==typeof a?a:"Previous Month":u,f=l.previousYearAriaLabel,d=void 0===f?"string"==typeof s?s:"Previous Year":f;return ce.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":i?d:c},ce.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},i?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel))}}})),gt(wt(r),"increaseYear",(function(){r.setState((function(e){var t=e.date;return{date:_e.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),gt(wt(r),"renderNextButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=gn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,i=void 0===r?Pt:r,o=kn(_e.default(e,i),i).startPeriod,a=n&&De.default(n);return a&&a<o||!1}(r.state.date,r.props);break;default:e=vn(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.increaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null);var i=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,o=r.props,a=o.nextMonthButtonLabel,s=o.nextYearButtonLabel,l=r.props,u=l.nextMonthAriaLabel,c=void 0===u?"string"==typeof a?a:"Next Month":u,f=l.nextYearAriaLabel,d=void 0===f?"string"==typeof s?s:"Next Year":f;return ce.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":i?d:c},ce.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},i?r.props.nextYearButtonLabel:r.props.nextMonthButtonLabel))}}})),gt(wt(r),"renderCurrentMonth",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),ce.default.createElement("div",{className:t.join(" ")},Lt(e,r.props.dateFormat,r.props.locale))})),gt(wt(r),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return ce.default.createElement(Tn,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:De.default(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})})),gt(wt(r),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return ce.default.createElement(Pn,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:je.default(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})})),gt(wt(r),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return ce.default.createElement(Rn,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})})),gt(wt(r),"renderTodayButton",(function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return ce.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.props.onSelect(Ye.default(Nt()),e)}},r.props.todayButton)})),gt(wt(r),"renderDefaultHeader",(function(e){var t=e.monthDate,n=e.i;return ce.default.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),ce.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),ce.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),gt(wt(r),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var i=pn(r.state.date,r.props),o=vn(r.state.date,r.props),a=mn(r.state.date,r.props),s=gn(r.state.date,r.props),l=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return ce.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(dt(dt({},r.state),{},{customHeaderCount:n,monthDate:t,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:i,nextMonthButtonDisabled:o,prevYearButtonDisabled:a,nextYearButtonDisabled:s})),l&&ce.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),gt(wt(r),"renderYearHeader",(function(){var e=r.state.date,t=r.props,n=t.showYearPicker,i=kn(e,t.yearItemNumber),o=i.startPeriod,a=i.endPeriod;return ce.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(o," - ").concat(a):De.default(e))})),gt(wt(r),"renderHeader",(function(e){switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(e);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(e);default:return r.renderDefaultHeader(e)}})),gt(wt(r),"renderMonths",(function(){if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var e=[],t=r.props.showPreviousMonths?r.props.monthsShown-1:0,n=ke.default(r.state.date,t),i=0;i<r.props.monthsShown;++i){var o=i-r.props.monthSelectedIn,a=be.default(n,o),s="month-".concat(i),l=i<r.props.monthsShown-1,u=i>0;e.push(ce.default.createElement("div",{key:s,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.renderHeader({monthDate:a,i:i}),ce.default.createElement(Fn,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,ariaLabelPrefix:r.props.monthAriaLabelPrefix,onChange:r.changeMonthYear,day:a,dayClassName:r.props.dayClassName,calendarStartDay:r.props.calendarStartDay,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:i,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,highlightDates:r.props.highlightDates,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:l,monthShowsDuplicateDaysStart:u})))}return e}})),gt(wt(r),"renderYears",(function(){if(!r.props.showTimeSelectOnly)return r.props.showYearPicker?ce.default.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader(),ce.default.createElement(Bn,yt({onDayClick:r.handleDayClick,date:r.state.date},r.props))):void 0})),gt(wt(r),"renderTimeSection",(function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return ce.default.createElement(zn,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,handleOnKeyDown:r.props.handleOnKeyDown,showTimeSelectOnly:r.props.showTimeSelectOnly})})),gt(wt(r),"renderInputTimeSection",(function(){var e=new Date(r.props.selected),t=Rt(e)&&Boolean(r.props.selected)?"".concat(wn(e.getHours()),":").concat(wn(e.getMinutes())):"";if(r.props.showTimeInput)return ce.default.createElement(Un,{date:e,timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})})),r.containerRef=ce.default.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null},r}return mt(n,[{key:"componentDidMount",value:function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))}},{key:"componentDidUpdate",value:function(e){this.props.preSelection&&!Gt(this.props.preSelection,e.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!Gt(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var e=this.props.container||Vn;return ce.default.createElement("div",{ref:this.containerRef},ce.default.createElement(e,{className:fe.default("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:Pt}}}]),n}(ce.default.Component),Zn=function(e){bt(n,e);var t=St(n);function n(e){var r;return pt(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return mt(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 ct.default.createPortal(this.props.children,this.el)}}]),n}(ce.default.Component),Yn=function(e){return!e.disabled&&-1!==e.tabIndex},qn=function(e){bt(n,e);var t=St(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(Yn)})),gt(wt(r),"handleFocusStart",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[t.length-1].focus()})),gt(wt(r),"handleFocusEnd",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[0].focus()})),r.tabLoopRef=ce.default.createRef(),r}return mt(n,[{key:"render",value:function(){return this.props.enableTabLoop?ce.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},ce.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,ce.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(ce.default.Component),Gn=function(e){bt(n,e);var t=St(n);function n(){return pt(this,n),t.apply(this,arguments)}return mt(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,i=t.hidePopper,o=t.popperComponent,a=t.popperModifiers,s=t.popperPlacement,l=t.popperProps,u=t.targetComponent,c=t.enableTabLoop,f=t.popperOnKeyDown,d=t.portalId,h=t.portalHost;if(!i){var p=fe.default("react-datepicker-popper",n);e=ce.default.createElement(le.Popper,yt({modifiers:a,placement:s},l),(function(e){var t=e.ref,n=e.style,r=e.placement,i=e.arrowProps;return ce.default.createElement(qn,{enableTabLoop:c},ce.default.createElement("div",{ref:t,style:n,className:p,"data-placement":r,onKeyDown:f},ce.default.cloneElement(o,{arrowProps:i})))}))}this.props.popperContainer&&(e=ce.default.createElement(this.props.popperContainer,{},e)),d&&!i&&(e=ce.default.createElement(Zn,{portalId:d,portalHost:h},e));var v=fe.default("react-datepicker-wrapper",r);return ce.default.createElement(le.Manager,{className:"react-datepicker-manager"},ce.default.createElement(le.Reference,null,(function(e){var t=e.ref;return ce.default.createElement("div",{ref:t,className:v},u)})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(ce.default.Component),Kn="react-datepicker-ignore-onclickoutside",Qn=ut.default(Wn),$n="Date input not valid.",Xn=function(e){bt(n,e);var t=St(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"getPreSelection",(function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:Nt()})),gt(wt(r),"calcInitialState",(function(){var e,t=r.getPreSelection(),n=yn(r.props),i=bn(r.props),o=n&&it.default(t,Ye.default(n))?n:i&&rt.default(t,$e.default(i))?i:t;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:o,highlightDates:_n(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1}})),gt(wt(r),"clearPreventFocusTimeout",(function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)})),gt(wt(r),"setFocus",(function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})})),gt(wt(r),"setBlur",(function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()})),gt(wt(r),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:er},(function(){e||r.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&r.setBlur(),r.setState({inputValue:null})}))}))})),gt(wt(r),"inputOk",(function(){return de.default(r.state.preSelection)})),gt(wt(r),"isCalendarOpen",(function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open})),gt(wt(r),"handleFocus",(function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})})),gt(wt(r),"cancelFocusInput",(function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null})),gt(wt(r),"deferFocusInput",(function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout((function(){return r.setFocus()}),1)})),gt(wt(r),"handleDropdownFocus",(function(){r.cancelFocusInput()})),gt(wt(r),"handleBlur",(function(e){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(e),r.setState({focused:!1})})),gt(wt(r),"handleCalendarClickOutside",(function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()})),gt(wt(r),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0];if(!r.props.onChangeRaw||(r.props.onChangeRaw.apply(wt(r),t),"function"==typeof i.isDefaultPrevented&&!i.isDefaultPrevented())){r.setState({inputValue:i.target.value,lastPreSelectChange:Jn});var o=Dt(i.target.value,r.props.dateFormat,r.props.locale,r.props.strictParsing,r.props.minDate);!o&&i.target.value||r.setSelected(o,i,!0)}})),gt(wt(r),"handleSelect",(function(e,t,n){if(r.setState({preventFocus:!0},(function(){return r.preventFocusTimeout=setTimeout((function(){return r.setState({preventFocus:!1})}),50),r.preventFocusTimeout})),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.setSelected(e,t,!1,n),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(e);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var i=r.props,o=i.startDate,a=i.endDate;!o||a||it.default(e,o)||r.setOpen(!1)}})),gt(wt(r),"setSelected",(function(e,t,n,i){var o=e;if(null===o||!nn(o,r.props)){var a=r.props,s=a.onChange,l=a.selectsRange,u=a.startDate,c=a.endDate;if(!Kt(r.props.selected,o)||r.props.allowSameDay||l)if(null!==o&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(o=It(o,{hour:Te.default(r.props.selected),minute:Ee.default(r.props.selected),second:Ce.default(r.props.selected)})),r.props.inline||r.setState({preSelection:o}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:i})),l){var f=u&&c;u||c?u&&!c&&(it.default(o,u)?s([o,null],t):s([u,o],t)):s([o,null],t),f&&s([o,null],t)}else s(o,t);n||(r.props.onSelect(o,t),r.setState({inputValue:null}))}})),gt(wt(r),"setPreSelection",(function(e){var t=void 0!==r.props.minDate,n=void 0!==r.props.maxDate,i=!0;if(e){var o=Ye.default(e);if(t&&n)i=Qt(e,r.props.minDate,r.props.maxDate);else if(t){var a=Ye.default(r.props.minDate);i=rt.default(e,a)||Kt(o,a)}else if(n){var s=$e.default(r.props.maxDate);i=it.default(e,s)||Kt(o,s)}}i&&r.setState({preSelection:e})})),gt(wt(r),"handleTimeChange",(function(e){var t=It(r.props.selected?r.props.selected:r.getPreSelection(),{hour:Te.default(e),minute:Ee.default(e)});r.setState({preSelection:t}),r.props.onChange(t),r.props.shouldCloseOnSelect&&r.setOpen(!1),r.props.showTimeInput&&r.setOpen(!0),r.setState({inputValue:null})})),gt(wt(r),"onInputClick",(function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()})),gt(wt(r),"onInputKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){if(r.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=r.calendar.componentNode&&r.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(n&&n.focus({preventScroll:!0}))}var i=Nt(r.state.preSelection);"Enter"===t?(e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===er?(r.handleSelect(i,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(i)):r.setOpen(!1)):"Escape"===t&&(e.preventDefault(),r.setOpen(!1)),r.inputOk()||r.props.onInputError({code:1,msg:$n})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||r.onInputClick()})),gt(wt(r),"onDayKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key,n=Nt(r.state.preSelection);if("Enter"===t)e.preventDefault(),r.handleSelect(n,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(n);else if("Escape"===t)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:$n});else if(!r.props.disabledKeyboardNavigation){var i;switch(t){case"ArrowLeft":i=xe.default(n,1);break;case"ArrowRight":i=ge.default(n,1);break;case"ArrowUp":i=we.default(n,1);break;case"ArrowDown":i=ye.default(n,1);break;case"PageUp":i=ke.default(n,1);break;case"PageDown":i=be.default(n,1);break;case"Home":i=Se.default(n,1);break;case"End":i=_e.default(n,1)}if(!i)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:$n}));if(e.preventDefault(),r.setState({lastPreSelectChange:er}),r.props.adjustDateOnChange&&r.setSelected(i),r.setPreSelection(i),r.props.inline){var o=je.default(n),a=je.default(i),s=De.default(n),l=De.default(i);o!==a||s!==l?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}})),gt(wt(r),"onPopperKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},(function(){r.setOpen(!1),setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))})))})),gt(wt(r),"onClearClick",(function(e){e&&e.preventDefault&&e.preventDefault(),r.props.selectsRange?r.props.onChange([null,null],e):r.props.onChange(null,e),r.setState({inputValue:null})})),gt(wt(r),"clear",(function(){r.onClearClick()})),gt(wt(r),"onScroll",(function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)})),gt(wt(r),"renderCalendar",(function(){return r.props.inline||r.isCalendarOpen()?ce.default.createElement(Qn,{ref:function(e){r.calendar=e},locale:r.props.locale,calendarStartDay:r.props.calendarStartDay,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,monthAriaLabelPrefix:r.props.monthAriaLabelPrefix,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,shouldFocusDayInline:r.state.shouldFocusDayInline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,showPreviousMonths:r.props.showPreviousMonths,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:Kn,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,weekDayClassName:r.props.weekDayClassName,monthClassName:r.props.monthClassName,timeClassName:r.props.timeClassName,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearItemNumber:r.props.yearItemNumber,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthAriaLabel:r.props.previousMonthAriaLabel,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthAriaLabel:r.props.nextMonthAriaLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,previousYearAriaLabel:r.props.previousYearAriaLabel,previousYearButtonLabel:r.props.previousYearButtonLabel,nextYearAriaLabel:r.props.nextYearAriaLabel,nextYearButtonLabel:r.props.nextYearButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showPopperArrow:r.props.showPopperArrow,excludeScrollbar:r.props.excludeScrollbar,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,isInputFocused:r.state.focused,customTimeInput:r.props.customTimeInput,setPreSelection:r.setPreSelection},r.props.children):null})),gt(wt(r),"renderDateInput",(function(){var e,t=fe.default(r.props.className,gt({},Kn,r.state.open)),n=r.props.customInput||ce.default.createElement("input",{type:"text"}),i=r.props.customInputRef||"ref",o="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:r.props.selectsRange?function(e,t,n){if(!e)return"";var r=At(e,n),i=t?At(t,n):"";return"".concat(r," - ").concat(i)}(r.props.startDate,r.props.endDate,r.props):At(r.props.selected,r.props);return ce.default.cloneElement(n,(gt(e={},i,(function(e){r.input=e})),gt(e,"value",o),gt(e,"onBlur",r.handleBlur),gt(e,"onChange",r.handleChange),gt(e,"onClick",r.onInputClick),gt(e,"onFocus",r.handleFocus),gt(e,"onKeyDown",r.onInputKeyDown),gt(e,"id",r.props.id),gt(e,"name",r.props.name),gt(e,"autoFocus",r.props.autoFocus),gt(e,"placeholder",r.props.placeholderText),gt(e,"disabled",r.props.disabled),gt(e,"autoComplete",r.props.autoComplete),gt(e,"className",fe.default(n.props.className,t)),gt(e,"title",r.props.title),gt(e,"readOnly",r.props.readOnly),gt(e,"required",r.props.required),gt(e,"tabIndex",r.props.tabIndex),gt(e,"aria-describedby",r.props.ariaDescribedBy),gt(e,"aria-invalid",r.props.ariaInvalid),gt(e,"aria-labelledby",r.props.ariaLabelledBy),gt(e,"aria-required",r.props.ariaRequired),e))})),gt(wt(r),"renderClearButton",(function(){var e=r.props,t=e.isClearable,n=e.selected,i=e.startDate,o=e.endDate,a=e.clearButtonTitle,s=e.clearButtonClassName,l=void 0===s?"":s,u=e.ariaLabelClose,c=void 0===u?"Close":u;return!t||null==n&&null==i&&null==o?null:ce.default.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(l).trim(),"aria-label":c,onClick:r.onClearClick,title:a,tabIndex:-1})})),r.state=r.calcInitialState(),r}return mt(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?je.default(n)!==je.default(r)||De.default(n)!==De.default(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:_n(this.props.highlightDates)}),t.focused||Kt(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){return ce.default.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?ce.default.createElement("div",{className:"react-datepicker__portal"},e):null;return this.state.open&&this.props.portalId&&(t=ce.default.createElement(Zn,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),ce.default.createElement("div",null,this.renderInputContainer(),t)}return ce.default.createElement(Gn,{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:e,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:Pt,renderDayContents:function(e){return e},focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(ce.default.Component),Jn="input",er="navigate";e.CalendarContainer=Vn,e.default=Xn,e.getDefaultLocale=$t,e.registerLocale=function(e,t){var n="undefined"!=typeof window?window:globalThis;n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:globalThis).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(9867),n(8731),n(4758),n(6238),n(6663),n(2612),n(1489),n(6869),n(9996),n(3923),n(1437),n(3159),n(6515),n(9316),n(1776),n(3824),n(1454),n(1461),n(1002),n(6038),n(7518),n(5955),n(1477),n(4073),n(1523),n(2620),n(8603),n(3558),n(9964),n(7436),n(9462),n(9374),n(3197),n(4548),n(471),n(3),n(3514),n(2228),n(6312),n(7308),n(121),n(9279),n(93),n(356),n(410),n(3358),n(3712),n(4829),n(5560),n(6776),n(2201),n(3138),n(171),n(8601),n(1328),n(4773),n(2952),n(1648),n(4892),n(2735),n(8544),n(9171))},2735:function(e,t,n){"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:function(){return p}});var r=n(9867),i=n(8544);function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var l,u,c=(void 0===l&&(l=0),function(){return++l}),f={},d={},h=["touchstart","touchmove"],p="ignore-react-onclickoutside";function v(e,t){var n=null;return-1!==h.indexOf(t)&&u&&(n={passive:!e.props.preventDefault}),n}t.default=function(e,t){var n,l,h=e.displayName||e.name||"Component";return l=n=function(n){var l,p;function m(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!==typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!==typeof t.props.handleClickOutside){if("function"!==typeof t.handleClickOutside)throw new Error("WrappedComponent: "+h+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"===typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"===typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,i.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!==typeof document&&!d[r._uid]){"undefined"===typeof u&&(u=function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),d[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),f[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&s(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,f[r._uid],v(a(r),e))}))}},r.disableOnClickOutside=function(){delete d[r._uid];var e=f[r._uid];if(e&&"undefined"!==typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,v(a(r),t))})),delete f[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=c(),r}p=n,(l=m).prototype=Object.create(p.prototype),l.prototype.constructor=l,o(l,p);var g=m.prototype;return g.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},g.componentDidMount=function(){if("undefined"!==typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"===typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!==typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+h+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},g.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},g.componentWillUnmount=function(){this.disableOnClickOutside()},g.render=function(){var t=this.props;t.excludeScrollbar;var n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,r.createElement)(e,n)},m}(r.Component),n.displayName="OnClickOutside("+h+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:p,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},l}},9171:function(e,t,n){"use strict";n.r(t),n.d(t,{Manager:function(){return a},Popper:function(){return _},Reference:function(){return k},usePopper:function(){return m}});var r=n(9867),i=r.createContext(),o=r.createContext();function a(e){var t=e.children,n=r.useState(null),a=n[0],s=n[1],l=r.useRef(!1);r.useEffect((function(){return function(){l.current=!0}}),[]);var u=r.useCallback((function(e){l.current||s(e)}),[]);return r.createElement(i.Provider,{value:a},r.createElement(o.Provider,{value:u},t))}var s=function(e){return Array.isArray(e)?e[0]:e},l=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},u=function(e,t){if("function"===typeof e)return l(e,t);null!=e&&(e.current=t)},c=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},f="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,d=n(6176),h=n(6847),p=n.n(h),v=[],m=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||v},a=r.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);l({styles:c(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:c(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),h=r.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return p()(i.current,e)?i.current||e:(i.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),m=r.useRef();return f((function(){m.current&&m.current.setOptions(h)}),[h]),f((function(){if(null!=e&&null!=t){var r=(n.createPopper||d.fi)(e,t,h);return m.current=r,function(){r.destroy(),m.current=null}}}),[e,t,n.createPopper]),{state:m.current?m.current.state:null,styles:s.styles,attributes:s.attributes,update:m.current?m.current.update:null,forceUpdate:m.current?m.current.forceUpdate:null}},g=function(){},y=function(){return Promise.resolve(null)},b=[];function _(e){var t=e.placement,n=void 0===t?"bottom":t,o=e.strategy,a=void 0===o?"absolute":o,l=e.modifiers,c=void 0===l?b:l,f=e.referenceElement,d=e.onFirstUpdate,h=e.innerRef,p=e.children,v=r.useContext(i),_=r.useState(null),x=_[0],w=_[1],k=r.useState(null),S=k[0],C=k[1];r.useEffect((function(){u(h,x)}),[h,x]);var E=r.useMemo((function(){return{placement:n,strategy:a,onFirstUpdate:d,modifiers:[].concat(c,[{name:"arrow",enabled:null!=S,options:{element:S}}])}}),[n,a,d,c,S]),T=m(f||v,x,E),M=T.state,O=T.styles,P=T.forceUpdate,j=T.update,N=r.useMemo((function(){return{ref:w,style:O.popper,placement:M?M.placement:n,hasPopperEscaped:M&&M.modifiersData.hide?M.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:M&&M.modifiersData.hide?M.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:O.arrow,ref:C},forceUpdate:P||g,update:j||y}}),[w,C,n,M,O,j,P]);return s(p)(N)}var x=n(944),w=n.n(x);function k(e){var t=e.children,n=e.innerRef,i=r.useContext(o),a=r.useCallback((function(e){u(n,e),l(i,e)}),[n,i]);return r.useEffect((function(){return function(){return u(n,null)}})),r.useEffect((function(){w()(Boolean(i),"`Reference` should not be used outside of a `Manager` component.")}),[i]),s(t)({ref:a})}},9772:function(e,t,n){"use strict";var r=n(9867),i=n(9419);function o(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 a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,h={},p={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new v(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){m[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!f.call(p,e)||!f.call(h,e)&&(d.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(g,y);m[t]=new v(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(g,y);m[t]=new v(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(g,y);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),w=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),T=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function L(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=R&&e[R]||e["@@iterator"])?e:null}var A,I=Object.assign;function F(e){if(void 0===A)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);A=t&&t[1]||""}return"\n"+A+e}var z=!1;function B(e,t){if(!e||z)return"";z=!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()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function U(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case w:return"Portal";case C:return"Profiler";case S:return"StrictMode";case O:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case M:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function H(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=(e=t.render).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 V(t);case 8:return t===S?"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("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Z(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=Z(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Z(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function $(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){$(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(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=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function oe(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={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},he=["Webkit","ms","Moz","O"];function pe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=pe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(de).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var me=I({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 ge(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;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 be=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,we=null,ke=null;function Se(e){if(e=vi(e)){if("function"!==typeof xe)throw Error(o(280));var t=e.stateNode;t&&(t=gi(t),xe(e.stateNode,e.type,t))}}function Ce(e){we?ke?ke.push(e):ke=[e]:we=e}function Ee(){if(we){var e=we,t=ke;if(ke=we=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Te(e,t){return e(t)}function Me(){}var Oe=!1;function Pe(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return Te(e,t,n)}finally{Oe=!1,(null!==we||null!==ke)&&(Me(),Ee())}}function je(e,t){var n=e.stateNode;if(null===n)return null;var r=gi(n);if(null===r)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)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Ne=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ec){Ne=!1}function Re(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Le=!1,Ae=null,Ie=!1,Fe=null,ze={onError:function(e){Le=!0,Ae=e}};function Be(e,t,n,r,i,o,a,s,l){Le=!1,Ae=null,Re.apply(ze,arguments)}function Ue(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(Ue(e)!==e)throw Error(o(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return He(i),e;if(a===r)return He(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var Ye=i.unstable_scheduleCallback,qe=i.unstable_cancelCallback,Ge=i.unstable_shouldYield,Ke=i.unstable_requestPaint,Qe=i.unstable_now,$e=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,Je=i.unstable_UserBlockingPriority,et=i.unstable_NormalPriority,tt=i.unstable_LowPriority,nt=i.unstable_IdlePriority,rt=null,it=null;var ot=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/st|0)|0},at=Math.log,st=Math.LN2;var lt=64,ut=4194304;function ct(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=ct(s):0!==(o&=a)&&(r=ct(o))}else 0!==(a=n&~i)?r=ct(a):0!==o&&(r=ct(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-ot(t)),r|=e[n],t&=~i;return r}function dt(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;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function pt(){var e=lt;return 0===(4194240&(lt<<=1))&&(lt=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var yt=0;function bt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var _t,xt,wt,kt,St,Ct=!1,Et=[],Tt=null,Mt=null,Ot=null,Pt=new Map,jt=new Map,Nt=[],Dt="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 Rt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Mt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jt.delete(t.pointerId)}}function Lt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=vi(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function At(e){var t=pi(e.target);if(null!==t){var n=Ue(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void St(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=vi(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function Ft(e,t,n){It(e)&&n.delete(t)}function zt(){Ct=!1,null!==Tt&&It(Tt)&&(Tt=null),null!==Mt&&It(Mt)&&(Mt=null),null!==Ot&&It(Ot)&&(Ot=null),Pt.forEach(Ft),jt.forEach(Ft)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zt)))}function Ut(e){function t(t){return Bt(t,e)}if(0<Et.length){Bt(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Bt(Tt,e),null!==Mt&&Bt(Mt,e),null!==Ot&&Bt(Ot,e),Pt.forEach(t),jt.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)At(n),null===n.blockedOn&&Nt.shift()}var Vt=_.ReactCurrentBatchConfig,Ht=!0;function Wt(e,t,n,r){var i=yt,o=Vt.transition;Vt.transition=null;try{yt=1,Yt(e,t,n,r)}finally{yt=i,Vt.transition=o}}function Zt(e,t,n,r){var i=yt,o=Vt.transition;Vt.transition=null;try{yt=4,Yt(e,t,n,r)}finally{yt=i,Vt.transition=o}}function Yt(e,t,n,r){if(Ht){var i=Gt(e,t,n,r);if(null===i)Br(e,t,r,qt,n),Rt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Tt=Lt(Tt,e,t,n,r,i),!0;case"dragenter":return Mt=Lt(Mt,e,t,n,r,i),!0;case"mouseover":return Ot=Lt(Ot,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Pt.set(o,Lt(Pt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,jt.set(o,Lt(jt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Rt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==i;){var o=vi(i);if(null!==o&&_t(o),null===(o=Gt(e,t,n,r))&&Br(e,t,r,qt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Br(e,t,r,null,n)}}var qt=null;function Gt(e,t,n,r){if(qt=null,null!==(e=pi(e=_e(r))))if(null===(t=Ue(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function Kt(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($e()){case Xe:return 1;case Je:return 4;case et:case tt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Qt=null,$t=null,Xt=null;function Jt(){if(Xt)return Xt;var e,t,n=$t,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function en(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function tn(){return!0}function nn(){return!1}function rn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?tn:nn,this.isPropagationStopped=nn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=tn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=tn)},persist:function(){},isPersistent:tn}),t}var on,an,sn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=rn(ln),cn=I({},ln,{view:0,detail:0}),fn=rn(cn),dn=I({},cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(on=e.screenX-sn.screenX,an=e.screenY-sn.screenY):an=on=0,sn=e),on)},movementY:function(e){return"movementY"in e?e.movementY:an}}),hn=rn(dn),pn=rn(I({},dn,{dataTransfer:0})),vn=rn(I({},cn,{relatedTarget:0})),mn=rn(I({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=rn(I({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),yn=rn(I({},ln,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={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"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function kn(){return wn}var Sn=rn(I({},cn,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=en(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?en(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?en(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Cn=rn(I({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),En=rn(I({},cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Tn=rn(I({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=rn(I({},dn,{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})),On=[9,13,27,32],Pn=c&&"CompositionEvent"in window,jn=null;c&&"documentMode"in document&&(jn=document.documentMode);var Nn=c&&"TextEvent"in window&&!jn,Dn=c&&(!Pn||jn&&8<jn&&11>=jn),Rn=String.fromCharCode(32),Ln=!1;function An(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function In(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Fn=!1;var zn={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 Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function Un(e,t,n,r){Ce(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Hn=null;function Wn(e){Rr(e,0)}function Zn(e){if(q(mi(e)))return e}function Yn(e,t){if("change"===e)return t}var qn=!1;if(c){var Gn;if(c){var Kn="oninput"in document;if(!Kn){var Qn=document.createElement("div");Qn.setAttribute("oninput","return;"),Kn="function"===typeof Qn.oninput}Gn=Kn}else Gn=!1;qn=Gn&&(!document.documentMode||9<document.documentMode)}function $n(){Vn&&(Vn.detachEvent("onpropertychange",Xn),Hn=Vn=null)}function Xn(e){if("value"===e.propertyName&&Zn(Hn)){var t=[];Un(t,Hn,e,_e(e)),Pe(Wn,t)}}function Jn(e,t,n){"focusin"===e?($n(),Hn=n,(Vn=t).attachEvent("onpropertychange",Xn)):"focusout"===e&&$n()}function er(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Hn)}function tr(e,t){if("click"===e)return Zn(t)}function nr(e,t){if("input"===e||"change"===e)return Zn(t)}var rr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ir(e,t){if(rr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)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(!f.call(t,i)||!rr(e[i],t[i]))return!1}return!0}function or(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ar(e,t){var n,r=or(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=or(r)}}function sr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?sr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function lr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function cr(e){var t=lr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sr(n.ownerDocument.documentElement,n)){if(null!==r&&ur(n))if(t=r.start,void 0===(e=r.end)&&(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).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ar(n,o);var a=ar(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fr=c&&"documentMode"in document&&11>=document.documentMode,dr=null,hr=null,pr=null,vr=!1;function mr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==dr||dr!==G(r)||("selectionStart"in(r=dr)&&ur(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},pr&&ir(pr,r)||(pr=r,0<(r=Vr(hr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=dr)))}function gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var yr={animationend:gr("Animation","AnimationEnd"),animationiteration:gr("Animation","AnimationIteration"),animationstart:gr("Animation","AnimationStart"),transitionend:gr("Transition","TransitionEnd")},br={},_r={};function xr(e){if(br[e])return br[e];if(!yr[e])return e;var t,n=yr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return br[e]=n[t];return e}c&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete yr.animationend.animation,delete yr.animationiteration.animation,delete yr.animationstart.animation),"TransitionEvent"in window||delete yr.transitionend.transition);var wr=xr("animationend"),kr=xr("animationiteration"),Sr=xr("animationstart"),Cr=xr("transitionend"),Er=new Map,Tr="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 Mr(e,t){Er.set(e,t),l(t,[e])}for(var Or=0;Or<Tr.length;Or++){var Pr=Tr[Or];Mr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Mr(wr,"onAnimationEnd"),Mr(kr,"onAnimationIteration"),Mr(Sr,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Cr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="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(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(Be.apply(this,arguments),Le){if(!Le)throw Error(o(198));var c=Ae;Le=!1,Ae=null,Ie||(Ie=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function Rr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Dr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Dr(i,s,u),o=l}}}if(Ie)throw e=Fe,Ie=!1,Fe=null,e}function Lr(e,t){var n=t[fi];void 0===n&&(n=t[fi]=new Set);var r=e+"__bubble";n.has(r)||(zr(t,e,2,!1),n.add(r))}function Ar(e,t,n){var r=0;t&&(r|=4),zr(n,e,r,t)}var Ir="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[Ir]){e[Ir]=!0,a.forEach((function(t){"selectionchange"!==t&&(Nr.has(t)||Ar(t,!1,e),Ar(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ir]||(t[Ir]=!0,Ar("selectionchange",!1,t))}}function zr(e,t,n,r){switch(Kt(t)){case 1:var i=Wt;break;case 4:i=Zt;break;default:i=Yt}n=i.bind(null,t,n,e),i=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Br(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=pi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Pe((function(){var r=o,i=_e(n),a=[];e:{var s=Er.get(e);if(void 0!==s){var l=un,u=e;switch(e){case"keypress":if(0===en(n))break e;case"keydown":case"keyup":l=Sn;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=En;break;case wr:case kr:case Sr:l=mn;break;case Cr:l=Tn;break;case"scroll":l=fn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=gn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Cn}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==d&&(null!=(v=je(p,d))&&c.push(Ur(p,v,h)))),f)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(u=n.relatedTarget||n.fromElement)||!pi(u)&&!u[ci])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?pi(u):null)&&(u!==(f=Ue(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,v="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Cn,v="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==l?s:mi(l),h=null==u?s:mi(u),(s=new c(v,p+"leave",l,n,i)).target=f,s.relatedTarget=h,v=null,pi(i)===r&&((c=new c(d,p+"enter",u,n,i)).target=h,c.relatedTarget=f,v=c),f=v,l&&u)e:{for(d=u,p=0,h=c=l;h;h=Hr(h))p++;for(h=0,v=d;v;v=Hr(v))h++;for(;0<p-h;)c=Hr(c),p--;for(;0<h-p;)d=Hr(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=Hr(c),d=Hr(d)}c=null}else c=null;null!==l&&Wr(a,s,l,c,!1),null!==u&&null!==f&&Wr(a,f,u,c,!0)}if("select"===(l=(s=r?mi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Yn;else if(Bn(s))if(qn)m=nr;else{m=er;var g=Jn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=tr);switch(m&&(m=m(e,r))?Un(a,m,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?mi(r):window,e){case"focusin":(Bn(g)||"true"===g.contentEditable)&&(dr=g,hr=r,pr=null);break;case"focusout":pr=hr=dr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,mr(a,n,i);break;case"selectionchange":if(fr)break;case"keydown":case"keyup":mr(a,n,i)}var y;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Fn?An(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Fn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Fn&&(y=Jt()):($t="value"in(Qt=i)?Qt.value:Qt.textContent,Fn=!0)),0<(g=Vr(r,b)).length&&(b=new yn(b,e,null,n,i),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=In(n))&&(b.data=y))),(y=Nn?function(e,t){switch(e){case"compositionend":return In(t);case"keypress":return 32!==t.which?null:(Ln=!0,Rn);case"textInput":return(e=t.data)===Rn&&Ln?null:e;default:return null}}(e,n):function(e,t){if(Fn)return"compositionend"===e||!Pn&&An(e,t)?(e=Jt(),Xt=$t=Qt=null,Fn=!1,e):null;switch(e){case"paste":default: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 Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(i=new yn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Rr(a,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=je(e,n))&&r.unshift(Ur(e,o,i)),null!=(o=je(e,t))&&r.push(Ur(e,o,i))),e=e.return}return r}function Hr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=je(n,o))&&a.unshift(Ur(n,l,s)):i||null!=(l=je(n,o))&&a.push(Ur(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Zr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function qr(e){return("string"===typeof e?e:""+e).replace(Zr,"\n").replace(Yr,"")}function Gr(e,t,n){if(t=qr(t),qr(e)!==t&&n)throw Error(o(425))}function Kr(){}var Qr=null,$r=null;function Xr(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Jr="function"===typeof setTimeout?setTimeout:void 0,ei="function"===typeof clearTimeout?clearTimeout:void 0,ti="function"===typeof Promise?Promise:void 0,ni="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ti?function(e){return ti.resolve(null).then(e).catch(ri)}:Jr;function ri(e){setTimeout((function(){throw e}))}function ii(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ut(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ut(t)}function oi(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ai(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var si=Math.random().toString(36).slice(2),li="__reactFiber$"+si,ui="__reactProps$"+si,ci="__reactContainer$"+si,fi="__reactEvents$"+si,di="__reactListeners$"+si,hi="__reactHandles$"+si;function pi(e){var t=e[li];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ci]||n[li]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ai(e);null!==e;){if(n=e[li])return n;e=ai(e)}return t}n=(e=n).parentNode}return null}function vi(e){return!(e=e[li]||e[ci])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function mi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function gi(e){return e[ui]||null}var yi=[],bi=-1;function _i(e){return{current:e}}function xi(e){0>bi||(e.current=yi[bi],yi[bi]=null,bi--)}function wi(e,t){bi++,yi[bi]=e.current,e.current=t}var ki={},Si=_i(ki),Ci=_i(!1),Ei=ki;function Ti(e,t){var n=e.type.contextTypes;if(!n)return ki;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Oi(){xi(Ci),xi(Si)}function Pi(e,t,n){if(Si.current!==ki)throw Error(o(168));wi(Si,t),wi(Ci,n)}function ji(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return I({},n,r)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ki,Ei=Si.current,wi(Si,e),wi(Ci,Ci.current),!0}function Di(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ji(e,t,Ei),r.__reactInternalMemoizedMergedChildContext=e,xi(Ci),xi(Si),wi(Si,e)):xi(Ci),wi(Ci,n)}var Ri=null,Li=!1,Ai=!1;function Ii(e){null===Ri?Ri=[e]:Ri.push(e)}function Fi(){if(!Ai&&null!==Ri){Ai=!0;var e=0,t=yt;try{var n=Ri;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ri=null,Li=!1}catch(i){throw null!==Ri&&(Ri=Ri.slice(e+1)),Ye(Xe,Fi),i}finally{yt=t,Ai=!1}}return null}var zi=_.ReactCurrentBatchConfig;function Bi(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ui=_i(null),Vi=null,Hi=null,Wi=null;function Zi(){Wi=Hi=Vi=null}function Yi(e){var t=Ui.current;xi(Ui),e._currentValue=t}function qi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Gi(e,t){Vi=e,Wi=Hi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(gs=!0),e.firstContext=null)}function Ki(e){var t=e._currentValue;if(Wi!==e)if(e={context:e,memoizedValue:t,next:null},null===Hi){if(null===Vi)throw Error(o(308));Hi=e,Vi.dependencies={lanes:0,firstContext:e}}else Hi=Hi.next=e;return t}var Qi=null,$i=!1;function Xi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ji(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 eo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function to(e,t){var n=e.updateQueue;null!==n&&(n=n.shared,$l(e)?(null===(e=n.interleaved)?(t.next=t,null===Qi?Qi=[n]:Qi.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(null===(e=n.pending)?t.next=t:(t.next=e.next,e.next=t),n.pending=t))}function no(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function ro(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function io(e,t,n,r){var i=e.updateQueue;$i=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var f=i.baseState;for(a=0,c=u=l=null,s=o;;){var d=s.lane,h=s.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(d=t,h=n,v.tag){case 1:if("function"===typeof(p=v.payload)){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(d="function"===typeof(p=v.payload)?p.call(h,f,d):p)||void 0===d)break e;f=I({},f,d);break e;case 2:$i=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=f):c=c.next=h,a|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===c&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ol|=a,e.lanes=a,e.memoizedState=f}}function oo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var ao=(new r.Component).refs;function so(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var lo={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ql(),i=Gl(e),o=eo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),to(e,o),null!==(t=Kl(e,i,r))&&no(t,e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ql(),i=Gl(e),o=eo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),to(e,o),null!==(t=Kl(e,i,r))&&no(t,e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ql(),r=Gl(e),i=eo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),to(e,i),null!==(t=Kl(e,r,n))&&no(t,e,r)}};function uo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ir(n,r)||!ir(i,o))}function co(e,t,n){var r=!1,i=ki,o=t.contextType;return"object"===typeof o&&null!==o?o=Ki(o):(i=Mi(t)?Ei:Si.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ti(e,i):ki),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=lo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function fo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&lo.enqueueReplaceState(t,t.state,null)}function ho(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ao,Xi(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Ki(o):(o=Mi(t)?Ei:Si.current,i.context=Ti(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(so(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&lo.enqueueReplaceState(i,i.state,null),io(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}var po=[],vo=0,mo=null,go=0,yo=[],bo=0,_o=null,xo=1,wo="";function ko(e,t){po[vo++]=go,po[vo++]=mo,mo=e,go=t}function So(e,t,n){yo[bo++]=xo,yo[bo++]=wo,yo[bo++]=_o,_o=e;var r=xo;e=wo;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var o=32-ot(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,xo=1<<32-ot(t)+i|n<<i|r,wo=o+e}else xo=1<<o|n<<i|r,wo=e}function Co(e){null!==e.return&&(ko(e,1),So(e,1,0))}function Eo(e){for(;e===mo;)mo=po[--vo],po[vo]=null,go=po[--vo],po[vo]=null;for(;e===_o;)_o=yo[--bo],yo[bo]=null,wo=yo[--bo],yo[bo]=null,xo=yo[--bo],yo[bo]=null}var To=null,Mo=null,Oo=!1,Po=null;function jo(e,t){var n=Eu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function No(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,To=e,Mo=oi(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,To=e,Mo=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==_o?{id:xo,overflow:wo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Eu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,To=e,Mo=null,!0);default:return!1}}function Do(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function Ro(e){if(Oo){var t=Mo;if(t){var n=t;if(!No(e,t)){if(Do(e))throw Error(o(418));t=oi(n.nextSibling);var r=To;t&&No(e,t)?jo(r,n):(e.flags=-4097&e.flags|2,Oo=!1,To=e)}}else{if(Do(e))throw Error(o(418));e.flags=-4097&e.flags|2,Oo=!1,To=e}}}function Lo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;To=e}function Ao(e){if(e!==To)return!1;if(!Oo)return Lo(e),Oo=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Xr(e.type,e.memoizedProps)),t&&(t=Mo)){if(Do(e)){for(e=Mo;e;)e=oi(e.nextSibling);throw Error(o(418))}for(;t;)jo(e,t),t=oi(t.nextSibling)}if(Lo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Mo=oi(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Mo=null}}else Mo=To?oi(e.stateNode.nextSibling):null;return!0}function Io(){Mo=To=null,Oo=!1}function Fo(e){null===Po?Po=[e]:Po.push(e)}function zo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===ao&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Bo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Uo(e){return(0,e._init)(e._payload)}function Vo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Mu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Nu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===k?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===N&&Uo(o)===t.type)?((r=i(t,n.props)).ref=zo(e,t,n),r.return=e,r):((r=Ou(n.type,n.key,n.props,null,e.mode,r)).ref=zo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Du(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Pu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Nu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Ou(t.type,t.key,t.props,null,e.mode,n)).ref=zo(e,null,t),n.return=e,n;case w:return(t=Du(t,e.mode,n)).return=e,t;case N:return d(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Pu(t,e.mode,n,null)).return=e,t;Bo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?u(e,t,n,r):null;case w:return n.key===i?c(e,t,n,r):null;case N:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||L(n))return null!==i?null:f(e,t,n,r,null);Bo(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case N:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||L(r))return f(t,e=e.get(n)||null,r,i,null);Bo(t,r)}return null}function v(i,o,s,l){for(var u=null,c=null,f=o,v=o=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var g=h(i,f,s[v],l);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(i,f),o=a(g,o,v),null===c?u=g:c.sibling=g,c=g,f=m}if(v===s.length)return n(i,f),Oo&&ko(i,v),u;if(null===f){for(;v<s.length;v++)null!==(f=d(i,s[v],l))&&(o=a(f,o,v),null===c?u=f:c.sibling=f,c=f);return Oo&&ko(i,v),u}for(f=r(i,f);v<s.length;v++)null!==(m=p(f,i,v,s[v],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),o=a(m,o,v),null===c?u=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(i,e)})),Oo&&ko(i,v),u}function m(i,s,l,u){var c=L(l);if("function"!==typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var f=c=null,v=s,m=s=0,g=null,y=l.next();null!==v&&!y.done;m++,y=l.next()){v.index>m?(g=v,v=null):g=v.sibling;var b=h(i,v,y.value,u);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(i,v),s=a(b,s,m),null===f?c=b:f.sibling=b,f=b,v=g}if(y.done)return n(i,v),Oo&&ko(i,m),c;if(null===v){for(;!y.done;m++,y=l.next())null!==(y=d(i,y.value,u))&&(s=a(y,s,m),null===f?c=y:f.sibling=y,f=y);return Oo&&ko(i,m),c}for(v=r(i,v);!y.done;m++,y=l.next())null!==(y=p(v,i,m,y.value,u))&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=a(y,s,m),null===f?c=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(i,e)})),Oo&&ko(i,m),c}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===k){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===N&&Uo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=zo(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===k?((o=Pu(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Ou(a.type,a.key,a.props,null,r.mode,l)).ref=zo(r,o,a),l.return=r,r=l)}return s(r);case w:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Du(a,r.mode,l)).return=r,r=o}return s(r);case N:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return v(r,o,a,l);if(L(a))return m(r,o,a,l);Bo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Nu(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Ho=Vo(!0),Wo=Vo(!1),Zo={},Yo=_i(Zo),qo=_i(Zo),Go=_i(Zo);function Ko(e){if(e===Zo)throw Error(o(174));return e}function Qo(e,t){switch(wi(Go,t),wi(qo,e),wi(Yo,Zo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xi(Yo),wi(Yo,t)}function $o(){xi(Yo),xi(qo),xi(Go)}function Xo(e){Ko(Go.current);var t=Ko(Yo.current),n=le(t,e.type);t!==n&&(wi(qo,e),wi(Yo,n))}function Jo(e){qo.current===e&&(xi(Yo),xi(qo))}var ea=_i(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=_.ReactCurrentDispatcher,oa=_.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,fa=!1,da=0,ha=0;function pa(){throw Error(o(321))}function va(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!rr(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Ja:es,e=n(r,i),fa){a=0;do{if(fa=!1,da=0,25<=a)throw Error(o(301));a+=1,ua=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(fa)}if(ia.current=Xa,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(o(300));return e}function ga(){var e=0!==da;return da=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function _a(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,u=null,c=a;do{var f=c.lane;if((aa&f)===f)null!==u&&(u=u.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 d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,s=r):u=u.next=d,sa.lanes|=f,Ol|=f}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,rr(r,t.memoizedState)||(gs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Ol|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function wa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);rr(a,t.memoizedState)||(gs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ka(){}function Sa(e,t){var n=sa,r=ba(),i=t(),a=!rr(r.memoizedState,i);if(a&&(r.memoizedState=i,gs=!0),r=r.queue,La(Ta.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,Pa(9,Ea.bind(null,n,r,i,t),void 0,null),null===wl)throw Error(o(349));0!==(30&aa)||Ca(n,t,i)}return i}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&Kl(e,1,-1)}function Ta(e,t,n){return n((function(){Ma(t)&&Kl(e,1,-1)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rr(e,n)}catch(r){return!0}}function Oa(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t.queue=e,e=e.dispatch=qa.bind(null,sa,e),[t.memoizedState,e]}function Pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ja(){return ba().memoizedState}function Na(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=Pa(1|t,n,void 0,void 0===r?null:r)}function Da(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&va(r,a.deps))return void(i.memoizedState=Pa(t,n,o,r))}sa.flags|=e,i.memoizedState=Pa(1|t,n,o,r)}function Ra(e,t){return Na(8390656,8,e,t)}function La(e,t){return Da(2048,8,e,t)}function Aa(e,t){return Da(4,2,e,t)}function Ia(e,t){return Da(4,4,e,t)}function Fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Da(4,4,Fa.bind(null,t,e),n)}function Ba(){}function Ua(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Va(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,gs=!0),e.memoizedState=n):(rr(n,t)||(n=pt(),sa.lanes|=n,Ol|=n,e.baseState=!0),t)}function Wa(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{yt=n,oa.transition=r}}function Za(){return ba().memoizedState}function Ya(e,t,n){var r=Gl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e)?Ka(t,n):(Qa(e,t,n),null!==(e=Kl(e,r,n=ql()))&&$a(e,t,r))}function qa(e,t,n){var r=Gl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Ka(t,i);else{Qa(e,t,i);var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,rr(s,a))return}catch(l){}null!==(e=Kl(e,r,n=ql()))&&$a(e,t,r)}}function Ga(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ka(e,t){fa=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){$l(e)?(null===(e=t.interleaved)?(n.next=n,null===Qi?Qi=[t]:Qi.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(null===(e=t.pending)?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function $a(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Xa={readContext:Ki,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Ja={readContext:Ki,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ki,useEffect:Ra,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Na(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?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=Ya.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Oa,useDebugValue:Ba,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=Wa.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(Oo){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===wl)throw Error(o(349));0!==(30&aa)||Ca(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ra(Ta.bind(null,r,a,e),[e]),r.flags|=2048,Pa(9,Ea.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=wl.identifierPrefix;if(Oo){var n=wo;t=":"+t+"R"+(n=(xo&~(1<<32-ot(xo)-1)).toString(32)+n),0<(n=da++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ki,useCallback:Ua,useContext:Ki,useEffect:La,useImperativeHandle:za,useInsertionEffect:Aa,useLayoutEffect:Ia,useMemo:Va,useReducer:xa,useRef:ja,useState:function(){return xa(_a)},useDebugValue:Ba,useDeferredValue:function(e){return Ha(ba(),la.memoizedState,e)},useTransition:function(){return[xa(_a)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Za,unstable_isNewReconciler:!1},ts={readContext:Ki,useCallback:Ua,useContext:Ki,useEffect:La,useImperativeHandle:za,useInsertionEffect:Aa,useLayoutEffect:Ia,useMemo:Va,useReducer:wa,useRef:ja,useState:function(){return wa(_a)},useDebugValue:Ba,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[wa(_a)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Za,unstable_isNewReconciler:!1};function ns(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function rs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var is,os,as,ss="function"===typeof WeakMap?WeakMap:Map;function ls(e,t,n){(n=eo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Il||(Il=!0,Fl=r),rs(0,t)},n}function us(e,t,n){(n=eo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){rs(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){rs(0,t),"function"!==typeof r&&(null===zl?zl=new Set([this]):zl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function cs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ss;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=_u.bind(null,e,t,n),t.then(e,e))}function fs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ds(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=eo(-1,1)).tag=2,to(n,t))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}function hs(e,t){if(!Oo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ps(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)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 vs(e,t,n){var r=t.pendingProps;switch(Eo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ps(t),null;case 1:case 17:return Mi(t.type)&&Oi(),ps(t),null;case 3:return r=t.stateNode,$o(),xi(Ci),xi(Si),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ao(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==Po&&(tu(Po),Po=null))),ps(t),null;case 5:Jo(t);var i=Ko(Go.current);if(n=t.type,null!==e&&null!=t.stateNode)os(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return ps(t),null}if(e=Ko(Yo.current),Ao(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[li]=t,r[ui]=a,e=0!==(1&t.mode),n){case"dialog":Lr("cancel",r),Lr("close",r);break;case"iframe":case"object":case"embed":Lr("load",r);break;case"video":case"audio":for(i=0;i<jr.length;i++)Lr(jr[i],r);break;case"source":Lr("error",r);break;case"img":case"image":case"link":Lr("error",r),Lr("load",r);break;case"details":Lr("toggle",r);break;case"input":Q(r,a),Lr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Lr("invalid",r);break;case"textarea":ie(r,a),Lr("invalid",r)}for(var l in ge(n,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"===typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Gr(r.textContent,u,e),i=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Gr(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Lr("scroll",r)}switch(n){case"input":Y(r),J(r,a,!0);break;case"textarea":Y(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Kr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[li]=t,e[ui]=r,is(e,t),t.stateNode=e;e:{switch(l=ye(n,r),n){case"dialog":Lr("cancel",e),Lr("close",e),i=r;break;case"iframe":case"object":case"embed":Lr("load",e),i=r;break;case"video":case"audio":for(i=0;i<jr.length;i++)Lr(jr[i],e);i=r;break;case"source":Lr("error",e),i=r;break;case"img":case"image":case"link":Lr("error",e),Lr("load",e),i=r;break;case"details":Lr("toggle",e),i=r;break;case"input":Q(e,r),i=K(e,r),Lr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=I({},r,{value:void 0}),Lr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Lr("invalid",e)}for(a in ge(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ve(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&ce(e,c):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"===typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Lr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":Y(e),J(e,r,!1);break;case"textarea":Y(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Kr)}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)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ps(t),null;case 6:if(e&&null!=t.stateNode)as(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Ko(Go.current),Ko(Yo.current),Ao(t)){if(r=t.stateNode,n=t.memoizedProps,r[li]=t,(a=r.nodeValue!==n)&&null!==(e=To))switch(e.tag){case 3:Gr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Gr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[li]=t,t.stateNode=r}return ps(t),null;case 13:if(xi(ea),r=t.memoizedState,Oo&&null!==Mo&&0!==(1&t.mode)&&0===(128&t.flags)){for(r=Mo;r;)r=oi(r.nextSibling);return Io(),t.flags|=98560,t}if(null!==r&&null!==r.dehydrated){if(r=Ao(t),null===e){if(!r)throw Error(o(318));if(!(r=null!==(r=t.memoizedState)?r.dehydrated:null))throw Error(o(317));r[li]=t}else Io(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;return ps(t),null}return null!==Po&&(tu(Po),Po=null),0!==(128&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?Ao(t):n=null!==e.memoizedState,r!==n&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Tl&&(Tl=3):cu())),null!==t.updateQueue&&(t.flags|=4),ps(t),null);case 4:return $o(),null===e&&Fr(t.stateNode.containerInfo),ps(t),null;case 10:return Yi(t.type._context),ps(t),null;case 19:if(xi(ea),null===(a=t.memoizedState))return ps(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)hs(a,!1);else{if(0!==Tl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,hs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return wi(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Ll&&(t.flags|=128,r=!0,hs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),hs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!Oo)return ps(t),null}else 2*Qe()-a.renderingStartTime>Ll&&1073741824!==n&&(t.flags|=128,r=!0,hs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,wi(ea,r?1&n|2:1&n),t):(ps(t),null);case 22:case 23:return au(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Cl)&&(ps(t),6&t.subtreeFlags&&(t.flags|=8192)):ps(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ko(Yo.current);var o,a=null;switch(n){case"input":i=K(e,i),r=K(e,r),a=[];break;case"select":i=I({},i,{value:void 0}),r=I({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Kr)}for(c in ge(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Lr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},as=function(e,t,n,r){n!==r&&(t.flags|=4)};var ms=_.ReactCurrentOwner,gs=!1;function ys(e,t,n,r){t.child=null===e?Wo(t,null,n,r):Ho(t,e.child,n,r)}function bs(e,t,n,r,i){n=n.render;var o=t.ref;return Gi(t,i),r=ma(e,t,n,r,o,i),n=ga(),null===e||gs?(Oo&&n&&Co(t),t.flags|=1,ys(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bs(e,t,i))}function _s(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Tu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ou(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,xs(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ir)(a,r)&&e.ref===t.ref)return Bs(e,t,i)}return t.flags|=1,(e=Mu(o,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ir(o,r)&&e.ref===t.ref){if(gs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Bs(e,t,i);0!==(131072&e.flags)&&(gs=!0)}}return Ss(e,t,n,r,i)}function ws(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},wi(El,Cl),Cl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,wi(El,Cl),Cl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,wi(El,Cl),Cl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,wi(El,Cl),Cl|=r;return ys(e,t,i,n),t.child}function ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ss(e,t,n,r,i){var o=Mi(n)?Ei:Si.current;return o=Ti(t,o),Gi(t,i),n=ma(e,t,n,r,o,i),r=ga(),null===e||gs?(Oo&&r&&Co(t),t.flags|=1,ys(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bs(e,t,i))}function Cs(e,t,n,r,i){if(Mi(n)){var o=!0;Ni(t)}else o=!1;if(Gi(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),co(t,n,r),ho(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=Ki(u):u=Ti(t,u=Mi(n)?Ei:Si.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&fo(t,a,r,u),$i=!1;var d=t.memoizedState;a.state=d,io(t,r,a,i),l=t.memoizedState,s!==r||d!==l||Ci.current||$i?("function"===typeof c&&(so(t,n,c,r),l=t.memoizedState),(s=$i||uo(t,n,s,r,d,l,u))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ji(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Bi(t.type,s),a.props=u,f=t.pendingProps,d=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Ki(l):l=Ti(t,l=Mi(n)?Ei:Si.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==f||d!==l)&&fo(t,a,r,l),$i=!1,d=t.memoizedState,a.state=d,io(t,r,a,i);var p=t.memoizedState;s!==f||d!==p||Ci.current||$i?("function"===typeof h&&(so(t,n,h,r),p=t.memoizedState),(u=$i||uo(t,n,u,r,d,p,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Es(e,t,n,r,o,i)}function Es(e,t,n,r,i,o){ks(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Di(t,n,!1),Bs(e,t,o);r=t.stateNode,ms.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ho(t,e.child,null,o),t.child=Ho(t,null,s,o)):ys(e,t,s,o),t.memoizedState=r.state,i&&Di(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Pi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pi(0,t.context,!1),Qo(e,t.containerInfo)}function Ms(e,t,n,r,i){return Io(),Fo(i),t.flags|=256,ys(e,t,n,r),t.child}var Os={dehydrated:null,treeContext:null,retryLane:0};function Ps(e){return{baseLanes:e,cachePool:null,transitions:null}}function js(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function Ns(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),wi(ea,1&a),null===e)return Ro(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(a=i.children,e=i.fallback,s?(i=t.mode,s=t.child,a={mode:"hidden",children:a},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=a):s=ju(a,i,0,null),e=Pu(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ps(n),t.memoizedState=Os,e):Ds(t,a));if(null!==(a=e.memoizedState)){if(null!==(r=a.dehydrated)){if(l)return 256&t.flags?(t.flags&=-257,As(e,t,n,Error(o(422)))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=i.fallback,a=t.mode,i=ju({mode:"visible",children:i.children},a,0,null),(s=Pu(s,a,n,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,0!==(1&t.mode)&&Ho(t,e.child,null,n),t.child.memoizedState=Ps(n),t.memoizedState=Os,s);if(0===(1&t.mode))t=As(e,t,n,null);else if("$!"===r.data)t=As(e,t,n,Error(o(419)));else if(i=0!==(n&e.childLanes),gs||i){if(null!==(i=wl)){switch(n&-n){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}0!==(i=0!==(s&(i.suspendedLanes|n))?0:s)&&i!==a.retryLane&&(a.retryLane=i,Kl(e,i,-1))}cu(),t=As(e,t,n,Error(o(421)))}else"$?"===r.data?(t.flags|=128,t.child=e.child,t=wu.bind(null,e),r._reactRetry=t,t=null):(n=a.treeContext,Mo=oi(r.nextSibling),To=t,Oo=!0,Po=null,null!==n&&(yo[bo++]=xo,yo[bo++]=wo,yo[bo++]=_o,xo=n.id,wo=n.overflow,_o=t),(t=Ds(t,t.pendingProps.children)).flags|=4096);return t}return s?(i=Ls(e,t,i.children,i.fallback,n),s=t.child,a=e.child.memoizedState,s.memoizedState=null===a?Ps(n):js(a,n),s.childLanes=e.childLanes&~n,t.memoizedState=Os,i):(n=Rs(e,t,i.children,n),t.memoizedState=null,n)}return s?(i=Ls(e,t,i.children,i.fallback,n),s=t.child,a=e.child.memoizedState,s.memoizedState=null===a?Ps(n):js(a,n),s.childLanes=e.childLanes&~n,t.memoizedState=Os,i):(n=Rs(e,t,i.children,n),t.memoizedState=null,n)}function Ds(e,t){return(t=ju({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Rs(e,t,n,r){var i=e.child;return e=i.sibling,n=Mu(i,{mode:"visible",children:n}),0===(1&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function Ls(e,t,n,r,i){var o=t.mode,a=(e=e.child).sibling,s={mode:"hidden",children:n};return 0===(1&o)&&t.child!==e?((n=t.child).childLanes=0,n.pendingProps=s,t.deletions=null):(n=Mu(e,s)).subtreeFlags=14680064&e.subtreeFlags,null!==a?r=Mu(a,r):(r=Pu(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function As(e,t,n,r){return null!==r&&Fo(r),Ho(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Is(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),qi(e.return,t,n)}function Fs(e,t,n,r,i){var o=e.memoizedState;null===o?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 zs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ys(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Is(e,n,t);else if(19===e.tag)Is(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(wi(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Fs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Fs(t,!0,n,null,o);break;case"together":Fs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ol|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Mu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Us(e,t){switch(Eo(t),t.tag){case 1:return Mi(t.type)&&Oi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return $o(),xi(Ci),xi(Si),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Jo(t),null;case 13:if(xi(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));Io()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xi(ea),null;case 4:return $o(),null;case 10:return Yi(t.type._context),null;case 22:case 23:return au(),null;default:return null}}var Vs=!1,Hs=!1,Ws="function"===typeof WeakSet?WeakSet:Set,Zs=null;function Ys(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){bu(e,t,r)}else n.current=null}function qs(e,t,n){try{n()}catch(r){bu(e,t,r)}}var Gs=!1;function Ks(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&qs(t,n,o)}i=i.next}while(i!==r)}}function Qs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 $s(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function Xs(e){var t=e.alternate;null!==t&&(e.alternate=null,Xs(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[li],delete t[ui],delete t[fi],delete t[di],delete t[hi])),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 Js(e){return 5===e.tag||3===e.tag||4===e.tag}function el(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Js(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function tl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Kr));else if(4!==r&&null!==(e=e.child))for(tl(e,t,n),e=e.sibling;null!==e;)tl(e,t,n),e=e.sibling}function nl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(nl(e,t,n),e=e.sibling;null!==e;)nl(e,t,n),e=e.sibling}var rl=null,il=!1;function ol(e,t,n){for(n=n.child;null!==n;)al(e,t,n),n=n.sibling}function al(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(rt,n)}catch(s){}switch(n.tag){case 5:Hs||Ys(n,t);case 6:var r=rl,i=il;rl=null,ol(e,t,n),il=i,null!==(rl=r)&&(il?(e=rl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):rl.removeChild(n.stateNode));break;case 18:null!==rl&&(il?(e=rl,n=n.stateNode,8===e.nodeType?ii(e.parentNode,n):1===e.nodeType&&ii(e,n),Ut(e)):ii(rl,n.stateNode));break;case 4:r=rl,i=il,rl=n.stateNode.containerInfo,il=!0,ol(e,t,n),rl=r,il=i;break;case 0:case 11:case 14:case 15:if(!Hs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&qs(n,t,a),i=i.next}while(i!==r)}ol(e,t,n);break;case 1:if(!Hs&&(Ys(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){bu(n,t,s)}ol(e,t,n);break;case 21:ol(e,t,n);break;case 22:1&n.mode?(Hs=(r=Hs)||null!==n.memoizedState,ol(e,t,n),Hs=r):ol(e,t,n);break;default:ol(e,t,n)}}function sl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ws),t.forEach((function(t){var r=ku.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ll(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:rl=l.stateNode,il=!1;break e;case 3:case 4:rl=l.stateNode.containerInfo,il=!0;break e}l=l.return}if(null===rl)throw Error(o(160));al(a,s,i),rl=null,il=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(c){bu(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ul(t,e),t=t.sibling}function ul(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ll(t,e),cl(e),4&r){try{Ks(3,e,e.return),Qs(3,e)}catch(v){bu(e,e.return,v)}try{Ks(5,e,e.return)}catch(v){bu(e,e.return,v)}}break;case 1:ll(t,e),cl(e),512&r&&null!==n&&Ys(n,n.return);break;case 5:if(ll(t,e),cl(e),512&r&&null!==n&&Ys(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(v){bu(e,e.return,v)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&$(i,a),ye(l,s);var c=ye(l,a);for(s=0;s<u.length;s+=2){var f=u[s],d=u[s+1];"style"===f?ve(i,d):"dangerouslySetInnerHTML"===f?ce(i,d):"children"===f?fe(i,d):b(i,f,d,c)}switch(l){case"input":X(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[ui]=a}catch(v){bu(e,e.return,v)}}break;case 6:if(ll(t,e),cl(e),4&r){if(null===e.stateNode)throw Error(o(162));c=e.stateNode,f=e.memoizedProps;try{c.nodeValue=f}catch(v){bu(e,e.return,v)}}break;case 3:if(ll(t,e),cl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(v){bu(e,e.return,v)}break;case 4:default:ll(t,e),cl(e);break;case 13:ll(t,e),cl(e),8192&(c=e.child).flags&&null!==c.memoizedState&&(null===c.alternate||null===c.alternate.memoizedState)&&(Rl=Qe()),4&r&&sl(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(Hs=(f=Hs)||c,ll(t,e),Hs=f):ll(t,e),cl(e),8192&r){f=null!==e.memoizedState;e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,f?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=void 0!==(u=h.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=pe("display",s))}catch(v){bu(e,e.return,v)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=f?"":h.memoizedProps}catch(v){bu(e,e.return,v)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}if(f&&!c&&0!==(1&e.mode))for(Zs=e,e=e.child;null!==e;){for(c=Zs=e;null!==Zs;){switch(d=(f=Zs).child,f.tag){case 0:case 11:case 14:case 15:Ks(4,f,f.return);break;case 1:if(Ys(f,f.return),"function"===typeof(a=f.stateNode).componentWillUnmount){h=f,p=f.return;try{i=h,a.props=i.memoizedProps,a.state=i.memoizedState,a.componentWillUnmount()}catch(v){bu(h,p,v)}}break;case 5:Ys(f,f.return);break;case 22:if(null!==f.memoizedState){pl(c);continue}}null!==d?(d.return=f,Zs=d):pl(c)}e=e.sibling}}break;case 19:ll(t,e),cl(e),4&r&&sl(e);case 21:}}function cl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Js(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),nl(e,el(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;tl(e,el(e),a);break;default:throw Error(o(161))}}catch(s){bu(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function fl(e,t,n){Zs=e,dl(e,t,n)}function dl(e,t,n){for(var r=0!==(1&e.mode);null!==Zs;){var i=Zs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Vs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Hs;s=Vs;var u=Hs;if(Vs=a,(Hs=l)&&!u)for(Zs=i;null!==Zs;)l=(a=Zs).child,22===a.tag&&null!==a.memoizedState?vl(i):null!==l?(l.return=a,Zs=l):vl(i);for(;null!==o;)Zs=o,dl(o,t,n),o=o.sibling;Zs=i,Vs=s,Hs=u}hl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Zs=o):hl(e)}}function hl(e){for(;null!==Zs;){var t=Zs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Hs||Qs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Hs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Bi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&oo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}oo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ut(d)}}}break;default:throw Error(o(163))}Hs||512&t.flags&&$s(t)}catch(h){bu(t,t.return,h)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function pl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function vl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Qs(4,t)}catch(l){bu(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){bu(t,i,l)}}var o=t.return;try{$s(t)}catch(l){bu(t,o,l)}break;case 5:var a=t.return;try{$s(t)}catch(l){bu(t,a,l)}}}catch(l){bu(t,t.return,l)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var ml,gl=Math.ceil,yl=_.ReactCurrentDispatcher,bl=_.ReactCurrentOwner,_l=_.ReactCurrentBatchConfig,xl=0,wl=null,kl=null,Sl=0,Cl=0,El=_i(0),Tl=0,Ml=null,Ol=0,Pl=0,jl=0,Nl=null,Dl=null,Rl=0,Ll=1/0,Al=null,Il=!1,Fl=null,zl=null,Bl=!1,Ul=null,Vl=0,Hl=0,Wl=null,Zl=-1,Yl=0;function ql(){return 0!==(6&xl)?Qe():-1!==Zl?Zl:Zl=Qe()}function Gl(e){return 0===(1&e.mode)?1:0!==(2&xl)&&0!==Sl?Sl&-Sl:null!==zi.transition?(0===Yl&&(Yl=pt()),Yl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function Kl(e,t,n){if(50<Hl)throw Hl=0,Wl=null,Error(o(185));var r=Ql(e,t);return null===r?null:(mt(r,t,n),0!==(2&xl)&&r===wl||(r===wl&&(0===(2&xl)&&(Pl|=t),4===Tl&&nu(r,Sl)),Xl(r,n),1===t&&0===xl&&0===(1&e.mode)&&(Ll=Qe()+500,Li&&Fi())),r)}function Ql(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function $l(e){return(null!==wl||null!==Qi)&&0!==(1&e.mode)&&0===(2&xl)}function Xl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-ot(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=dt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===wl?Sl:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){Li=!0,Ii(e)}(ru.bind(null,e)):Ii(ru.bind(null,e)),ni((function(){0===xl&&Fi()})),n=null;else{switch(bt(r)){case 1:n=Xe;break;case 4:n=Je;break;case 16:default:n=et;break;case 536870912:n=nt}n=Su(n,Jl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Jl(e,t){if(Zl=-1,Yl=0,0!==(6&xl))throw Error(o(327));var n=e.callbackNode;if(gu()&&e.callbackNode!==n)return null;var r=ft(e,e===wl?Sl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=fu(e,r);else{t=r;var i=xl;xl|=2;var a=uu();for(wl===e&&Sl===t||(Al=null,Ll=Qe()+500,su(e,t));;)try{hu();break}catch(l){lu(e,l)}Zi(),yl.current=a,xl=i,null!==kl?t=0:(wl=null,Sl=0,t=Tl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(r=i,t=eu(e,i))),1===t)throw n=Ml,su(e,0),nu(e,r),Xl(e,Qe()),n;if(6===t)nu(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!rr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=fu(e,r))&&(0!==(a=ht(e))&&(r=a,t=eu(e,a))),1===t))throw n=Ml,su(e,0),nu(e,r),Xl(e,Qe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:mu(e,Dl,Al);break;case 3:if(nu(e,r),(130023424&r)===r&&10<(t=Rl+500-Qe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){ql(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Jr(mu.bind(null,e,Dl,Al),t);break}mu(e,Dl,Al);break;case 4:if(nu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-ot(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gl(r/1960))-r)){e.timeoutHandle=Jr(mu.bind(null,e,Dl,Al),r);break}mu(e,Dl,Al);break;default:throw Error(o(329))}}}return Xl(e,Qe()),e.callbackNode===n?Jl.bind(null,e):null}function eu(e,t){var n=Nl;return e.current.memoizedState.isDehydrated&&(su(e,t).flags|=256),2!==(e=fu(e,t))&&(t=Dl,Dl=n,null!==t&&tu(t)),e}function tu(e){null===Dl?Dl=e:Dl.push.apply(Dl,e)}function nu(e,t){for(t&=~jl,t&=~Pl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function ru(e){if(0!==(6&xl))throw Error(o(327));gu();var t=ft(e,0);if(0===(1&t))return Xl(e,Qe()),null;var n=fu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=eu(e,r))}if(1===n)throw n=Ml,su(e,0),nu(e,t),Xl(e,Qe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mu(e,Dl,Al),Xl(e,Qe()),null}function iu(e,t){var n=xl;xl|=1;try{return e(t)}finally{0===(xl=n)&&(Ll=Qe()+500,Li&&Fi())}}function ou(e){null!==Ul&&0===Ul.tag&&0===(6&xl)&&gu();var t=xl;xl|=1;var n=_l.transition,r=yt;try{if(_l.transition=null,yt=1,e)return e()}finally{yt=r,_l.transition=n,0===(6&(xl=t))&&Fi()}}function au(){Cl=El.current,xi(El)}function su(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ei(n)),null!==kl)for(n=kl.return;null!==n;){var r=n;switch(Eo(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Oi();break;case 3:$o(),xi(Ci),xi(Si),ra();break;case 5:Jo(r);break;case 4:$o();break;case 13:case 19:xi(ea);break;case 10:Yi(r.type._context);break;case 22:case 23:au()}n=n.return}if(wl=e,kl=e=Mu(e.current,null),Sl=Cl=t,Tl=0,Ml=null,jl=Pl=Ol=0,Dl=Nl=null,null!==Qi){for(t=0;t<Qi.length;t++)if(null!==(r=(n=Qi[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Qi=null}return e}function lu(e,t){for(;;){var n=kl;try{if(Zi(),ia.current=Xa,ca){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ca=!1}if(aa=0,ua=la=sa=null,fa=!1,da=0,bl.current=null,null===n||null===n.return){Tl=1,Ml=t,kl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Sl,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,f=l,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=fs(s);if(null!==p){p.flags&=-257,ds(p,s,l,0,t),1&p.mode&&cs(a,c,t),u=c;var v=(t=p).updateQueue;if(null===v){var m=new Set;m.add(u),t.updateQueue=m}else v.add(u);break e}if(0===(1&t)){cs(a,c,t),cu();break e}u=Error(o(426))}else if(Oo&&1&l.mode){var g=fs(s);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),ds(g,s,l,0,t),Fo(u);break e}}a=u,4!==Tl&&(Tl=2),null===Nl?Nl=[a]:Nl.push(a),u=ns(u,l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t,ro(l,ls(0,u,t));break e;case 1:a=u;var y=l.type,b=l.stateNode;if(0===(128&l.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===zl||!zl.has(b)))){l.flags|=65536,t&=-t,l.lanes|=t,ro(l,us(l,a,t));break e}}l=l.return}while(null!==l)}vu(n)}catch(_){t=_,kl===n&&null!==n&&(kl=n=n.return);continue}break}}function uu(){var e=yl.current;return yl.current=Xa,null===e?Xa:e}function cu(){0!==Tl&&3!==Tl&&2!==Tl||(Tl=4),null===wl||0===(268435455&Ol)&&0===(268435455&Pl)||nu(wl,Sl)}function fu(e,t){var n=xl;xl|=2;var r=uu();for(wl===e&&Sl===t||(Al=null,su(e,t));;)try{du();break}catch(i){lu(e,i)}if(Zi(),xl=n,yl.current=r,null!==kl)throw Error(o(261));return wl=null,Sl=0,Tl}function du(){for(;null!==kl;)pu(kl)}function hu(){for(;null!==kl&&!Ge();)pu(kl)}function pu(e){var t=ml(e.alternate,e,Cl);e.memoizedProps=e.pendingProps,null===t?vu(e):kl=t,bl.current=null}function vu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=vs(n,t,Cl)))return void(kl=n)}else{if(null!==(n=Us(n,t)))return n.flags&=32767,void(kl=n);if(null===e)return Tl=6,void(kl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(kl=t);kl=t=e}while(null!==t);0===Tl&&(Tl=5)}function mu(e,t,n){var r=yt,i=_l.transition;try{_l.transition=null,yt=1,function(e,t,n,r){do{gu()}while(null!==Ul);if(0!==(6&xl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(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-ot(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===wl&&(kl=wl=null,Sl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Bl||(Bl=!0,Su(et,(function(){return gu(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=_l.transition,_l.transition=null;var s=yt;yt=1;var l=xl;xl|=4,bl.current=null,function(e,t){if(Qr=Ht,ur(e=lr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(w){n=null;break e}var s=0,l=-1,u=-1,c=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==n||0!==i&&3!==d.nodeType||(l=s+i),d!==a||0!==r&&3!==d.nodeType||(u=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++c===i&&(l=s),h===a&&++f===r&&(u=s),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for($r={focusedElem:e,selectionRange:n},Ht=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var v=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var m=v.memoizedProps,g=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:Bi(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;if(1===_.nodeType)_.textContent="";else if(9===_.nodeType){var x=_.body;null!=x&&(x.textContent="")}break;default:throw Error(o(163))}}catch(w){bu(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}v=Gs,Gs=!1}(e,n),ul(n,e),cr($r),Ht=!!Qr,$r=Qr=null,e.current=n,fl(n,e,i),Ke(),xl=l,yt=s,_l.transition=a}else e.current=n;if(Bl&&(Bl=!1,Ul=e,Vl=i),0===(a=e.pendingLanes)&&(zl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(rt,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),Xl(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r(t[n]);if(Il)throw Il=!1,e=Fl,Fl=null,e;0!==(1&Vl)&&0!==e.tag&&gu(),0!==(1&(a=e.pendingLanes))?e===Wl?Hl++:(Hl=0,Wl=e):Hl=0,Fi()}(e,t,n,r)}finally{_l.transition=i,yt=r}return null}function gu(){if(null!==Ul){var e=bt(Vl),t=_l.transition,n=yt;try{if(_l.transition=null,yt=16>e?16:e,null===Ul)var r=!1;else{if(e=Ul,Ul=null,Vl=0,0!==(6&xl))throw Error(o(331));var i=xl;for(xl|=4,Zs=e.current;null!==Zs;){var a=Zs,s=a.child;if(0!==(16&Zs.flags)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Zs=c;null!==Zs;){var f=Zs;switch(f.tag){case 0:case 11:case 15:Ks(8,f,a)}var d=f.child;if(null!==d)d.return=f,Zs=d;else for(;null!==Zs;){var h=(f=Zs).sibling,p=f.return;if(Xs(f),f===c){Zs=null;break}if(null!==h){h.return=p,Zs=h;break}Zs=p}}}var v=a.alternate;if(null!==v){var m=v.child;if(null!==m){v.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Zs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Zs=s;else e:for(;null!==Zs;){if(0!==(2048&(a=Zs).flags))switch(a.tag){case 0:case 11:case 15:Ks(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Zs=y;break e}Zs=a.return}}var b=e.current;for(Zs=b;null!==Zs;){var _=(s=Zs).child;if(0!==(2064&s.subtreeFlags)&&null!==_)_.return=s,Zs=_;else e:for(s=b;null!==Zs;){if(0!==(2048&(l=Zs).flags))try{switch(l.tag){case 0:case 11:case 15:Qs(9,l)}}catch(w){bu(l,l.return,w)}if(l===s){Zs=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Zs=x;break e}Zs=l.return}}if(xl=i,Fi(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(rt,e)}catch(w){}r=!0}return r}finally{yt=n,_l.transition=t}}return!1}function yu(e,t,n){to(e,t=ls(0,t=ns(n,t),1)),t=ql(),null!==(e=Ql(e,1))&&(mt(e,1,t),Xl(e,t))}function bu(e,t,n){if(3===e.tag)yu(e,e,n);else for(;null!==t;){if(3===t.tag){yu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===zl||!zl.has(r))){to(t,e=us(t,e=ns(n,e),1)),e=ql(),null!==(t=Ql(t,1))&&(mt(t,1,e),Xl(t,e));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ql(),e.pingedLanes|=e.suspendedLanes&n,wl===e&&(Sl&n)===n&&(4===Tl||3===Tl&&(130023424&Sl)===Sl&&500>Qe()-Rl?su(e,0):jl|=n),Xl(e,t)}function xu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ql();null!==(e=Ql(e,t))&&(mt(e,t,n),Xl(e,n))}function wu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xu(e,n)}function ku(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),xu(e,n)}function Su(e,t){return Ye(e,t)}function Cu(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 Eu(e,t,n,r){return new Cu(e,t,n,r)}function Tu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mu(e,t){var n=e.alternate;return null===n?((n=Eu(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ou(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Tu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case k:return Pu(n.children,i,a,t);case S:s=8,i|=8;break;case C:return(e=Eu(12,n,t,2|i)).elementType=C,e.lanes=a,e;case O:return(e=Eu(13,n,t,i)).elementType=O,e.lanes=a,e;case P:return(e=Eu(19,n,t,i)).elementType=P,e.lanes=a,e;case D:return ju(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case T:s=9;break e;case M:s=11;break e;case j:s=14;break e;case N:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Eu(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Pu(e,t,n,r){return(e=Eu(7,e,r,t)).lanes=n,e}function ju(e,t,n,r){return(e=Eu(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={},e}function Nu(e,t,n){return(e=Eu(6,e,null,t)).lanes=n,e}function Du(e,t,n){return(t=Eu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ru(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=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Lu(e,t,n,r,i,o,a,s,l){return e=new Ru(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Eu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xi(o),e}function Au(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Iu(e){if(!e)return ki;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Mi(n))return ji(e,n,t)}return t}function Fu(e,t,n,r,i,o,a,s,l){return(e=Lu(n,r,!0,e,0,o,0,s,l)).context=Iu(null),n=e.current,(o=eo(r=ql(),i=Gl(n))).callback=void 0!==t&&null!==t?t:null,to(n,o),e.current.lanes=i,mt(e,i,r),Xl(e,r),e}function zu(e,t,n,r){var i=t.current,o=ql(),a=Gl(i);return n=Iu(n),null===t.context?t.context=n:t.pendingContext=n,(t=eo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),to(i,t),null!==(e=Kl(i,a,o))&&no(e,i,a),a}function Bu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vu(e,t){Uu(e,t),(e=e.alternate)&&Uu(e,t)}ml=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ci.current)gs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return gs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),Io();break;case 5:Xo(t);break;case 1:Mi(t.type)&&Ni(t);break;case 4:Qo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;wi(Ui,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(wi(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ns(e,t,n):(wi(ea,1&ea.current),null!==(e=Bs(e,t,n))?e.sibling:null);wi(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return zs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),wi(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,ws(e,t,n)}return Bs(e,t,n)}(e,t,n);gs=0!==(131072&e.flags)}else gs=!1,Oo&&0!==(1048576&t.flags)&&So(t,go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var i=Ti(t,Si.current);Gi(t,n),i=ma(null,t,r,e,i,n);var a=ga();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mi(r)?(a=!0,Ni(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Xi(t),i.updater=lo,t.stateNode=i,i._reactInternals=t,ho(t,r,e,n),t=Es(null,t,r,!0,a,n)):(t.tag=0,Oo&&a&&Co(t),ys(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Tu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===M)return 11;if(e===j)return 14}return 2}(r),e=Bi(r,e),i){case 0:t=Ss(null,t,r,e,n);break e;case 1:t=Cs(null,t,r,e,n);break e;case 11:t=bs(null,t,r,e,n);break e;case 14:t=_s(null,t,r,Bi(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ss(e,t,r,i=t.elementType===r?i:Bi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Cs(e,t,r,i=t.elementType===r?i:Bi(r,i),n);case 3:e:{if(Ts(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Ji(e,t),io(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ms(e,t,r,n,i=Error(o(423)));break e}if(r!==i){t=Ms(e,t,r,n,i=Error(o(424)));break e}for(Mo=oi(t.stateNode.containerInfo.firstChild),To=t,Oo=!0,Po=null,n=Wo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Io(),r===i){t=Bs(e,t,n);break e}ys(e,t,r,n)}t=t.child}return t;case 5:return Xo(t),null===e&&Ro(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,Xr(r,i)?s=null:null!==a&&Xr(r,a)&&(t.flags|=32),ks(e,t),ys(e,t,s,n),t.child;case 6:return null===e&&Ro(t),null;case 13:return Ns(e,t,n);case 4:return Qo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ho(t,null,r,n):ys(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,bs(e,t,r,i=t.elementType===r?i:Bi(r,i),n);case 7:return ys(e,t,t.pendingProps,n),t.child;case 8:case 12:return ys(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,wi(Ui,r._currentValue),r._currentValue=s,null!==a)if(rr(a.value,s)){if(a.children===i.children&&!Ci.current){t=Bs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=eo(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),qi(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),qi(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ys(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Gi(t,n),r=r(i=Ki(i)),t.flags|=1,ys(e,t,r,n),t.child;case 14:return i=Bi(r=t.type,t.pendingProps),_s(e,t,r,i=Bi(r.type,i),n);case 15:return xs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Mi(r)?(e=!0,Ni(t)):e=!1,Gi(t,n),co(t,r,i),ho(t,r,i,n),Es(null,t,r,!0,e,n);case 19:return zs(e,t,n);case 22:return ws(e,t,n)}throw Error(o(156,t.tag))};var Hu="function"===typeof reportError?reportError:function(e){console.error(e)};function Wu(e){this._internalRoot=e}function Zu(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Gu(){}function Ku(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Bu(a);s.call(e)}}zu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Bu(a);o.call(e)}}var a=Fu(t,r,e,0,null,!1,0,"",Gu);return e._reactRootContainer=a,e[ci]=a.current,Fr(8===e.nodeType?e.parentNode:e),ou(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Bu(l);s.call(e)}}var l=Lu(e,0,!1,null,0,!1,0,"",Gu);return e._reactRootContainer=l,e[ci]=l.current,Fr(8===e.nodeType?e.parentNode:e),ou((function(){zu(t,l,n,r)})),l}(n,t,e,i,r);return Bu(a)}Zu.prototype.render=Wu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));zu(e,t,null,null)},Zu.prototype.unmount=Wu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ou((function(){zu(null,e,null,null)})),t[ci]=null}},Zu.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&At(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ct(t.pendingLanes);0!==n&&(gt(t,1|n),Xl(t,Qe()),0===(6&xl)&&(Ll=Qe()+500,Fi()))}break;case 13:var r=ql();ou((function(){return Kl(e,1,r)})),Vu(e,1)}},xt=function(e){13===e.tag&&(Kl(e,134217728,ql()),Vu(e,134217728))},wt=function(e){if(13===e.tag){var t=ql(),n=Gl(e);Kl(e,n,t),Vu(e,n)}},kt=function(){return yt},St=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},xe=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){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=gi(r);if(!i)throw Error(o(90));q(r),X(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=iu,Me=ou;var Qu={usingClientEntryPoint:!1,Events:[vi,mi,gi,Ce,Ee,iu]},$u={findFiberByHostInstance:pi,bundleType:0,version:"18.1.0",rendererPackageName:"react-dom"},Xu={bundleType:$u.bundleType,version:$u.version,rendererPackageName:$u.rendererPackageName,rendererConfig:$u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:$u.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.1.0-next-22edb9f77-20220426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Ju=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ju.isDisabled&&Ju.supportsFiber)try{rt=Ju.inject(Xu),it=Ju}catch(ec){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(o(200));return Au(e,t,null,n)},t.createRoot=function(e,t){if(!Yu(e))throw Error(o(299));var n=!1,r="",i=Hu;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Lu(e,1,!1,null,0,n,0,r,i),e[ci]=t.current,Fr(8===e.nodeType?e.parentNode:e),new Wu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return ou(e)},t.hydrate=function(e,t,n){if(!qu(t))throw Error(o(200));return Ku(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Hu;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Fu(t,null,e,1,null!=n?n:null,i,0,a,s),e[ci]=t.current,Fr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Zu(t)},t.render=function(e,t,n){if(!qu(t))throw Error(o(200));return Ku(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!qu(e))throw Error(o(40));return!!e._reactRootContainer&&(ou((function(){Ku(null,null,e,!1,(function(){e._reactRootContainer=null,e[ci]=null}))})),!0)},t.unstable_batchedUpdates=iu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!qu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Ku(e,t,n,!1,r)},t.version="18.1.0-next-22edb9f77-20220426"},8192:function(e,t,n){"use strict";var r=n(8544);t.s=r.createRoot,r.hydrateRoot},8544:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(9772)},2779:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],f=1,d=null,h=3,p=!1,v=!1,m=!1,g="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function _(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function x(e){if(m=!1,_(e),!v)if(null!==r(u))v=!0,D(w);else{var t=r(c);null!==t&&R(x,t.startTime-e)}}function w(e,n){v=!1,m&&(m=!1,y(E),E=-1),p=!0;var o=h;try{for(_(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!O());){var a=d.callback;if("function"===typeof a){d.callback=null,h=d.priorityLevel;var s=a(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?d.callback=s:d===r(u)&&i(u),_(n)}else i(u);d=r(u)}if(null!==d)var l=!0;else{var f=r(c);null!==f&&R(x,f.startTime-n),l=!1}return l}finally{d=null,h=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,C=null,E=-1,T=5,M=-1;function O(){return!(t.unstable_now()-M<T)}function P(){if(null!==C){var e=t.unstable_now();M=e;var n=!0;try{n=C(!0,e)}finally{n?k():(S=!1,C=null)}}else S=!1}if("function"===typeof b)k=function(){b(P)};else if("undefined"!==typeof MessageChannel){var j=new MessageChannel,N=j.port2;j.port1.onmessage=P,k=function(){N.postMessage(null)}}else k=function(){g(P,0)};function D(e){C=e,S||(S=!0,k())}function R(e,n){E=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,D(w))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(m?(y(E),E=-1):m=!0,R(x,o-a))):(e.sortIndex=s,n(u,e),v||p||(v=!0,D(w))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},9419:function(e,t,n){"use strict";e.exports=n(2779)},6847:function(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!o(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!o(e[u[l]],a[u[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},1424:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case v:case l:return e;default:return t}}case i:return t}}}function w(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||x(e)===c},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===f||e===s||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===g)},t.typeOf=x},91:function(e,t,n){"use strict";e.exports=n(1424)},4631:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m=Symbol.for("react.module.reference");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case f:case d:return e;default:switch(e=e&&e.$$typeof){case u:case l:case c:case p:case h:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return g(e)===l}},1686:function(e,t,n){"use strict";e.exports=n(4631)},4581:function(e,t,n){e.exports=function(e,t){"use strict";function n(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var r=n(e),i=n(t);function o(e){return r.default.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},r.default.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}var a={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},s=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"],l=function(e){function t(t){e.call(this,t),this.state={inputWidth:null},this.input=r.default.createRef(),this.sizer=r.default.createRef()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth())},t.prototype.componentDidUpdate=function(e){var t=e.query,n=e.placeholderText;t===this.props.query&&n===this.props.placeholderText||this.updateInputWidth()},t.prototype.copyInputStyles=function(){var e=this,t=window.getComputedStyle(this.input.current);s.forEach((function(n){e.sizer.current.style[n]=t[n]}))},t.prototype.updateInputWidth=function(){var e;this.props.autoresize&&(e=Math.ceil(this.sizer.current.scrollWidth)+2),e!==this.state.inputWidth&&this.setState({inputWidth:e})},t.prototype.render=function(){var e=this.props,t=e.id,n=e.query,i=e.ariaLabelText,o=e.placeholderText,s=e.expanded,l=e.classNames,u=e.inputAttributes,c=e.inputEventHandlers,f=e.index;return r.default.createElement("div",{className:l.searchWrapper},r.default.createElement("input",Object.assign({},u,c,{ref:this.input,value:n,placeholder:o,className:l.searchInput,role:"combobox","aria-autocomplete":"list","aria-label":i||o,"aria-owns":t,"aria-activedescendant":f>-1?t+"-"+f:null,"aria-expanded":s,style:{width:this.state.inputWidth}})),r.default.createElement("div",{ref:this.sizer,style:a},n||o))},t}(r.default.Component);function u(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function c(e){return new RegExp(u(e),"gi")}function f(e){return new RegExp("(?:^|\\s)"+u(e),"i")}function d(e){return new RegExp("^"+u(e)+"$","i")}function h(e,t){var n=c(t);return e.replace(n,"<mark>$&</mark>")}function p(e){var t=e.item,n=e.query;return r.default.createElement("span",{dangerouslySetInnerHTML:{__html:h(t.name,n)}})}function v(e){var t=e.suggestionComponent||p,n=e.options.map((function(n,i){var o=e.id+"-"+i,a=[];return e.index===i&&a.push(e.classNames.suggestionActive),n.disabled&&a.push(e.classNames.suggestionDisabled),r.default.createElement("li",{id:o,key:o,role:"option",className:a.join(" "),"aria-disabled":Boolean(n.disabled),onMouseDown:function(e){return e.preventDefault()},onClick:function(){return e.addTag(n)}},n.prefix?r.default.createElement("span",{className:e.classNames.suggestionPrefix},n.prefix," "):null,n.disableMarkIt?n.name:r.default.createElement(t,{item:n,query:e.query}))}));return r.default.createElement("div",{className:e.classNames.suggestions},r.default.createElement("ul",{role:"listbox",id:e.id},n))}function m(e,t){var n=e.querySelectorAll("a,button,input"),r=Array.prototype.findIndex.call(n,(function(e){return e===t})),i=n[r-1]||n[r+1];i&&i.focus()}var g={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},y={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 b(e,t){return e.findIndex((function(e){return d(t).test(e.name)}))}function _(){if(this.state.query.length>=this.props.minQueryLength){var e=b(this.state.options,this.state.query),t=-1===this.state.index?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 x(e){e.preventDefault();var t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function w(e){e.preventDefault();var t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function k(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function S(e,t){return f(t).test(e.name)}function C(e,t){var n;return n=(n=e.suggestionsTransform?e.suggestionsTransform(t.query,e.suggestions):e.suggestions.filter((function(n){return e.suggestionsFilter(n,t.query)}))).slice(0,e.maxSuggestionsLength),e.allowNew&&e.newTagText&&-1===b(n,t.query)?n.push({id:0,name:t.query,prefix:e.newTagText,disableMarkIt:!0}):e.noSuggestionsText&&0===n.length&&n.push({id:0,name:e.noSuggestionsText,disabled:!0,disableMarkIt:!0}),n}var E=function(e){function t(t){e.call(this,t),this.state={query:"",focused:!1,index:-1},this.inputEventHandlers={onChange:function(){},onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.container=r.default.createRef(),this.input=r.default.createRef()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.onInput=function(e){var t=e.target.value;this.props.onInput&&this.props.onInput(t),t.length===this.state.query.length+1&&this.props.delimiters.indexOf(t.slice(-1))>-1?_.call(this):t!==this.state.query&&this.setState({query:t})},t.prototype.onKeyDown=function(e){this.props.delimiters.indexOf(e.key)>-1&&((this.state.query||this.state.index>-1)&&e.preventDefault(),_.call(this)),e.key===g.BACKSPACE&&this.props.allowBackspace&&k.call(this,e),e.key!==g.UP_ARROW&&e.key!==g.UP_ARROW_COMPAT||x.call(this,e),e.key!==g.DOWN_ARROW&&e.key!==g.DOWN_ARROW_COMPAT||w.call(this,e)},t.prototype.onClick=function(e){document.activeElement!==e.target&&this.focusInput()},t.prototype.onBlur=function(){this.setState({focused:!1,index:-1}),this.props.onBlur&&this.props.onBlur(),this.props.addOnBlur&&_.call(this)},t.prototype.onFocus=function(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()},t.prototype.onDeleteTag=function(e,t){this.container.current&&m(this.container.current,t.currentTarget),this.deleteTag(e)},t.prototype.addTag=function(e){e.disabled||("function"!==typeof this.props.onValidate||this.props.onValidate(e))&&(this.props.onAddition({id:e.id,name:e.name}),this.clearInput())},t.prototype.deleteTag=function(e){this.props.onDelete(e)},t.prototype.clearInput=function(){this.setState({query:"",index:-1})},t.prototype.clearSelectedIndex=function(){this.setState({index:-1})},t.prototype.focusInput=function(){this.input.current&&this.input.current.input.current&&this.input.current.input.current.focus()},t.prototype.render=function(){var e=this,t=this.props.tagComponent||o,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,i=Object.assign({},y,this.props.classNames),a=[i.root];return this.state.focused&&a.push(i.rootFocused),r.default.createElement("div",{ref:this.container,className:a.join(" "),onClick:this.onClick.bind(this)},r.default.createElement("div",{className:i.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((function(n,o){return r.default.createElement(t,{key:o,tag:n,removeButtonText:e.props.removeButtonText,classNames:i,onDelete:e.onDeleteTag.bind(e,o)})}))),r.default.createElement("div",{className:i.search},r.default.createElement(l,Object.assign({},this.state,{id:this.props.id,ref:this.input,classNames:i,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?r.default.createElement(v,Object.assign({},this.state,{id:this.props.id,classNames:i,expanded:n,addTag:this.addTag.bind(this),suggestionComponent:this.props.suggestionComponent})):null))},t.getDerivedStateFromProps=function(e,t){return t.prevQuery!==t.query||t.prevSuggestions!==e.suggestions?{prevQuery:t.query,prevSuggestions:e.suggestions,options:C(e,t)}:null},t}(r.default.Component);return E.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:S,suggestionsTransform:null,autoresize:!0,classNames:y,delimiters:[g.TAB,g.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}},E.propTypes={id:i.default.string,tags:i.default.arrayOf(i.default.object),placeholderText:i.default.string,ariaLabelText:i.default.string,removeButtonText:i.default.string,noSuggestionsText:i.default.string,newTagText:i.default.string,suggestions:i.default.arrayOf(i.default.object),suggestionsFilter:i.default.func,suggestionsTransform:i.default.func,autoresize:i.default.bool,delimiters:i.default.arrayOf(i.default.string),onDelete:i.default.func.isRequired,onAddition:i.default.func.isRequired,onInput:i.default.func,onFocus:i.default.func,onBlur:i.default.func,onValidate:i.default.func,minQueryLength:i.default.number,maxSuggestionsLength:i.default.number,classNames:i.default.object,allowNew:i.default.bool,allowBackspace:i.default.bool,addOnBlur:i.default.bool,tagComponent:i.default.oneOfType([i.default.func,i.default.element]),suggestionComponent:i.default.oneOfType([i.default.func,i.default.element]),inputAttributes:i.default.object},E}(n(9867),n(8731))},6482:function(e,t,n){"use strict";var r=n(9867),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},3285:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)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")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var _=b.prototype=new y;_.constructor=b,v(_,g.prototype),_.isPureReactComponent=!0;var x=Array.isArray,w=Object.prototype.hasOwnProperty,k={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,i)&&!S.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:k.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function M(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+M(l,0):o,x(a)?(i="",null!=e&&(i=e.replace(T,"$&/")+"/"),O(a,t,i,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",x(e))for(var u=0;u<e.length;u++){var c=o+M(s=e[u],u);l+=O(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=O(s=s.value,t,i,c=o+M(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],i=0;return O(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function j(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},D={transition:null},R={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:D,ReactCurrentOwner:k};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=v({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=k.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)w.call(t,u)&&!S.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.1.0"},9867:function(e,t,n){"use strict";e.exports=n(3285)},2834:function(e,t,n){"use strict";e.exports=n(6482)},7045:function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2393));function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a1=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.states,n=void 0===t?f:t,r=e.ignoreStates,i=void 0===r?d:r,o=e.namespace,a=void 0===o?u:o,s=e.namespaceSeparator,v=void 0===s?c:s,m=e.debounce,b=void 0===m?0:m,S=e.disableWarnings,E=void 0===S?h:S;return function(e){return function(t){return function(r){function o(){0===n.length?S.setItem(a,s):n.forEach((function(e){var t=a+v+e,n=function(e,t){return 1<e.split(".").length?y(e.split("."),t):y([e],t)}(e,s);n?S.setItem(t,n):S.removeItem(t)}))}var s,h=g(E),m=t(r);x(n)||(console.error(l,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),n=f),x(i)||(console.error(l,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),i=d),0<i.length&&(i=i.filter((function(e){return w(e)?e:void console.error(l,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")}))),w(a)||(console.error(l,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),a=u),w(v)||(console.error(l,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),v=c),k(b)||(console.error(l,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),b=0),s=0<i.length?C(i,e.getState()):e.getState();var S=new _(h);return b?(p&&clearTimeout(p),p=setTimeout((function(){o()}),b)):o(),m}}}},t.zD=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.states,n=void 0===t?f:t,i=e.immutablejs,o=void 0!==i&&i,a=e.namespace,s=void 0===a?u:a,d=e.namespaceSeparator,p=void 0===d?c:d,v=e.preloadedState,m=void 0===v?{}:v,y=e.disableWarnings,k=void 0===y?h:y,S=g(k);x(n)||(console.error(l,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),n=f),w(s)||(console.error(l,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),s=u),w(p)||(console.error(l,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),p=c),!0===o&&S("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 C=new _(S),E=m;if(0===n.length){var T=C.getItem(s);T&&(E=T)}else n.forEach((function(e){var t=s+p+e,n=C.getItem(t);n?E=r.default.recursive(E,b(e,n)):S("Invalid load '"+t+"' 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 E};var l="[Redux-LocalStorage-Simple]",u="redux_localstorage_simple",c="_",f=[],d=[],h=!1,p=null;function v(e){console.warn(l,e)}function m(){}var g=function(e){return e?m:v};function y(e,t){return void 0===t?null:1===e.length?t[e[0]]:y(e.slice(1),t[e[0]])}function b(e){function t(e,n){return 0===e.length?n:t(e.slice(1),s({},e[0],n))}var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t(e.split(".").reverse(),n)}function _(e){this.warnFn=e||v}function x(e){return"[object Array]"===Object.prototype.toString.call(e)}function w(e){return"string"==typeof e}function k(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function S(e){return null!==e&&"object"===a(e)}function C(e,t){return Object.entries(t).reduce((function(n,r){var o=i(r,2),a=o[0];o[1];return-1===e.indexOf(a)&&(n[a]=t[a]),n}),{})}Object.defineProperty(_.prototype,"length",{get:function(){try{return localStorage.length}catch(e){this.warnFn(e)}return 0},configurable:!0,enumerable:!0}),_.prototype.key=function(e){try{return localStorage.key(e)}catch(e){this.warnFn(e)}return null},_.prototype.setItem=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(e){this.warnFn(e)}},_.prototype.getItem=function(e){try{return JSON.parse(localStorage.getItem(e))}catch(e){this.warnFn(e)}return null},_.prototype.removeItem=function(e){try{localStorage.removeItem(e)}catch(e){this.warnFn(e)}}},4596:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(j){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new M(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?p:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(j){return{type:"throw",arg:j}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",v={};function m(){}function g(){}function y(){}var b={};l(b,o,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(O([])));x&&x!==n&&r.call(x,o)&&(b=x);var w=y.prototype=m.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,o,a,s){var l=c(e[i],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function C(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:t,done:!0}}return g.prototype=y,l(w,"constructor",y),l(y,"constructor",g),g.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},k(S.prototype),l(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(w),l(w,s,"Generator"),l(w,o,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},3147:function(e){e.exports=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}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},771:function(e,t,n){"use strict";var r=n(9867);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var c="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s((function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,n,t]),a((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},1439:function(e,t,n){"use strict";var r=n(9867),i=n(6853);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var f=s(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=u((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,i]);var h=a(e,f[0],f[1]);return l((function(){d.hasValue=!0,d.value=h}),[h]),c(h),h}},6853:function(e,t,n){"use strict";e.exports=n(771)},6599:function(e,t,n){"use strict";e.exports=n(1439)},944:function(e){"use strict";var t=function(){};e.exports=t},6431:function(e){"use strict";e.exports="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=="},7093:function(e){"use strict";e.exports="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="},8858:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e={};n.r(e),n.d(e,{normalizeVisits:function(){return sN},processStatsFromVisits:function(){return aN}});var t=n(8192),r=n(6853),i=n(6599),o=n(8544);var a=function(e){e()},s=function(){return a},l=n(9867),u=l.createContext(null);var c=function(){throw new Error("uSES not initialized!")};function f(e){if(Array.isArray(e))return e}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(e){if("string"===typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e,t){return f(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||h(e,t)||p()}function m(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function g(e){return function(e){if(Array.isArray(e))return d(e)}(e)||m(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function b(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var _=n(9053),x=n.n(_),w=n(1686),k=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function S(e,t,n,r,i){var o,a,s,l,u,c=i.areStatesEqual,f=i.areOwnPropsEqual,d=i.areStatePropsEqual,h=!1;function p(i,h){var p=!f(h,a),v=!c(i,o);return o=i,a=h,p&&v?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):p?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):v?function(){var t=e(o,a),r=!d(t,s);return s=t,r&&(u=n(s,l,a)),u}():u}return function(i,c){return h?p(i,c):(s=e(o=i,a=c),l=t(r,a),u=n(s,l,a),h=!0,u)}}function C(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=b(t,k);return S(n(e,o),r(e,o),i(e,o),e,o)}function E(e){return function(t){var n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function T(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function M(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=T(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=T(i),i=r(t,n)),i},r}}function O(e,t){return function(n,r){throw new Error("Invalid value of type ".concat(typeof e," for ").concat(t," argument when connecting component ").concat(r.wrappedComponentName,"."))}}function P(e){return e&&"object"===typeof e?E((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"===typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):e?"function"===typeof e?M(e):O(e,"mapDispatchToProps"):E((function(e){return{dispatch:e}}))}function j(e){return e?"function"===typeof e?M(e):O(e,"mapStateToProps"):E((function(){return{}}))}function N(e,t,n){return y({},n,e,t)}function D(e){return e?"function"===typeof e?function(e){return function(t,n){n.displayName;var r,i=n.areMergedPropsEqual,o=!1;return function(t,n,a){var s=e(t,n,a);return o?i(s,r)||(r=s):(o=!0,r=s),r}}}(e):O(e,"mergeProps"):function(){return N}}var R={notify:function(){},get:function(){return[]}};function L(e,t){var n,r=R;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=s(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=R)},getListeners:function(){return r}};return a}var A=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?l.useLayoutEffect:l.useEffect;function I(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function F(e,t){if(I(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!I(e[n[i]],t[n[i]]))return!1;return!0}var z=["reactReduxForwardedRef"],B=c,U=[null,null];function V(e,t,n){A((function(){return e.apply(void 0,g(t))}),n)}function H(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function W(e,t,n,r,i,o,a,s,l,u,c){if(!e)return function(){};var f=!1,d=null,h=function(){if(!f&&s.current){var e,n,h=t.getState();try{e=r(h,i.current)}catch(p){n=p,d=p}n||(d=null),e===o.current?a.current||u():(o.current=e,l.current=e,a.current=!0,c())}};n.onStateChange=h,n.trySubscribe(),h();return function(){if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}function Z(e,t){return e===t}var Y=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=(r.pure,r.areStatesEqual),o=void 0===i?Z:i,a=r.areOwnPropsEqual,s=void 0===a?F:a,c=r.areStatePropsEqual,f=void 0===c?F:c,d=r.areMergedPropsEqual,h=void 0===d?F:d,p=r.forwardRef,m=void 0!==p&&p,g=r.context,_=void 0===g?u:g,k=_,S=j(e),E=P(t),T=D(n),M=Boolean(e),O=function(e){var t=e.displayName||e.name||"Component",n="Connect(".concat(t,")"),r={shouldHandleStateChanges:M,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:S,initMapDispatchToProps:E,initMergeProps:T,areStatesEqual:o,areStatePropsEqual:f,areOwnPropsEqual:s,areMergedPropsEqual:h};function i(t){var n=(0,l.useMemo)((function(){var e=t.reactReduxForwardedRef,n=b(t,z);return[t.context,e,n]}),[t]),i=v(n,3),o=i[0],a=i[1],s=i[2],u=(0,l.useMemo)((function(){return o&&o.Consumer&&(0,w.isContextConsumer)(l.createElement(o.Consumer,null))?o:k}),[o,k]),c=(0,l.useContext)(u),f=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),d=Boolean(c)&&Boolean(c.store);var h=f?t.store:c.store,p=d?c.getServerState:h.getState,m=(0,l.useMemo)((function(){return C(h.dispatch,r)}),[h]),g=(0,l.useMemo)((function(){if(!M)return U;var e=L(h,f?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,f,c]),_=v(g,2),x=_[0],S=_[1],E=(0,l.useMemo)((function(){return f?c:y({},c,{subscription:x})}),[f,c,x]),T=(0,l.useRef)(),O=(0,l.useRef)(s),P=(0,l.useRef)(),j=(0,l.useRef)(!1),N=((0,l.useRef)(!1),(0,l.useRef)(!1)),D=(0,l.useRef)();A((function(){return N.current=!0,function(){N.current=!1}}),[]);var R,I=(0,l.useMemo)((function(){return function(){return P.current&&s===O.current?P.current:m(h.getState(),s)}}),[h,s]),F=(0,l.useMemo)((function(){return function(e){return x?W(M,h,x,m,O,T,j,N,P,S,e):function(){}}}),[x]);V(H,[O,T,j,s,P,S]);try{R=B(F,I,p?function(){return m(p(),s)}:I)}catch(Y){throw D.current&&(Y.message+="\nThe error may be correlated with this previous error:\n".concat(D.current.stack,"\n\n")),Y}A((function(){D.current=void 0,P.current=void 0,T.current=R}));var Z=(0,l.useMemo)((function(){return l.createElement(e,y({},R,{ref:a}))}),[a,e,R]);return(0,l.useMemo)((function(){return M?l.createElement(u.Provider,{value:E},Z):Z}),[u,Z,E])}var a=l.memo(i);if(a.WrappedComponent=e,a.displayName=i.displayName=n,m){var u=l.forwardRef((function(e,t){return l.createElement(a,y({},e,{reactReduxForwardedRef:t}))}));return u.displayName=n,u.WrappedComponent=e,x()(u,e)}return x()(a,e)};return O};var q=function(e){var t=e.store,n=e.context,r=e.children,i=e.serverState,o=(0,l.useMemo)((function(){var e=L(t);return{store:t,subscription:e,getServerState:i?function(){return i}:void 0}}),[t,i]),a=(0,l.useMemo)((function(){return t.getState()}),[t]);A((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=void 0}}),[o,a]);var s=n||u;return l.createElement(s.Provider,{value:o},r)};var G,K,Q;G=i.useSyncExternalStoreWithSelector,function(e){B=e}(r.useSyncExternalStore),K=o.unstable_batchedUpdates,a=K,function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Q||(Q={}));var $=function(e){return e};var X="beforeunload",J="popstate";function ee(e){e.preventDefault(),e.returnValue=""}function te(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function ne(){return Math.random().toString(36).substr(2,8)}function re(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,o=e.hash,a=void 0===o?"":o;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function ie(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var oe=(0,l.createContext)(null);var ae=(0,l.createContext)(null);var se=(0,l.createContext)({outlet:null,matches:[]});function le(e,t){if(!e)throw new Error(t)}function ue(e,t,n){void 0===n&&(n="/");var r=ge(("string"===typeof t?ie(t):t).pathname||"/",n);if(null==r)return null;var i=ce(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var o=null,a=0;null==o&&a<i.length;++a)o=pe(i[a],r);return o}function ce(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=""),e.forEach((function(e,i){var o={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};o.relativePath.startsWith("/")&&(o.relativePath.startsWith(r)||le(!1),o.relativePath=o.relativePath.slice(r.length));var a=ye([r,o.relativePath]),s=n.concat(o);e.children&&e.children.length>0&&(!0===e.index&&le(!1),ce(e.children,t,s,a)),(null!=e.path||e.index)&&t.push({path:a,score:he(a,e.index),routesMeta:s})})),t}var fe=/^:\w+$/,de=function(e){return"*"===e};function he(e,t){var n=e.split("/"),r=n.length;return n.some(de)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!de(e)})).reduce((function(e,t){return e+(fe.test(t)?3:""===t?1:10)}),r)}function pe(e,t){for(var n=e.routesMeta,r={},i="/",o=[],a=0;a<n.length;++a){var s=n[a],l=a===n.length-1,u="/"===i?t:t.slice(i.length)||"/",c=ve({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!c)return null;Object.assign(r,c.params);var f=s.route;o.push({params:r,pathname:ye([i,c.pathname]),pathnameBase:be(ye([i,c.pathnameBase])),route:f}),"/"!==c.pathnameBase&&(i=ye([i,c.pathnameBase]))}return o}function ve(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);var r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(function(e,t){return r.push(t),"([^\\/]+)"}));e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";return[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),r=v(n,2),i=r[0],o=r[1],a=t.match(i);if(!a)return null;var s=a[0],l=s.replace(/(.)\/+$/,"$1"),u=a.slice(1),c=o.reduce((function(e,t,n){if("*"===t){var r=u[n]||"";l=s.slice(0,s.length-r.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return e}}(u[n]||""),e}),{});return{params:c,pathname:s,pathnameBase:l,pattern:e}}function me(e,t,n){var r,i="string"===typeof e?ie(e):e,o=""===e||""===i.pathname?"/":i.pathname;if(null==o)r=n;else{var a=t.length-1;if(o.startsWith("..")){for(var s=o.split("/");".."===s[0];)s.shift(),a-=1;i.pathname=s.join("/")}r=a>=0?t[a]:"/"}var l=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?ie(e):e,r=n.pathname,i=n.search,o=void 0===i?"":i,a=n.hash,s=void 0===a?"":a,l=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:l,search:_e(o),hash:xe(s)}}(i,r);return o&&"/"!==o&&o.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}function ge(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}var ye=function(e){return e.join("/").replace(/\/\/+/g,"/")},be=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},_e=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},xe=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};function we(e){ke()||le(!1);var t=(0,l.useContext)(oe),n=t.basename,r=t.navigator,i=Te(e),o=i.hash,a=i.pathname,s=i.search,u=a;if("/"!==n){var c=function(e){return""===e||""===e.pathname?"/":"string"===typeof e?ie(e).pathname:e.pathname}(e),f=null!=c&&c.endsWith("/");u="/"===a?n+(f?"/":""):ye([n,a])}return r.createHref({pathname:u,search:s,hash:o})}function ke(){return null!=(0,l.useContext)(ae)}function Se(){return ke()||le(!1),(0,l.useContext)(ae).location}function Ce(){ke()||le(!1);var e=(0,l.useContext)(oe),t=e.basename,n=e.navigator,r=(0,l.useContext)(se).matches,i=Se().pathname,o=JSON.stringify(r.map((function(e){return e.pathnameBase}))),a=(0,l.useRef)(!1);(0,l.useEffect)((function(){a.current=!0}));var s=(0,l.useCallback)((function(e,r){if(void 0===r&&(r={}),a.current)if("number"!==typeof e){var s=me(e,JSON.parse(o),i);"/"!==t&&(s.pathname=ye([t,s.pathname])),(r.replace?n.replace:n.push)(s,r.state)}else n.go(e)}),[t,n,o,i]);return s}function Ee(){var e=(0,l.useContext)(se).matches,t=e[e.length-1];return t?t.params:{}}function Te(e){var t=(0,l.useContext)(se).matches,n=Se().pathname,r=JSON.stringify(t.map((function(e){return e.pathnameBase})));return(0,l.useMemo)((function(){return me(e,JSON.parse(r),n)}),[e,r,n])}function Me(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight((function(n,r,i){return(0,l.createElement)(se.Provider,{children:void 0!==r.route.element?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,i+1))}})}),null)}function Oe(e){var t=e.to,n=e.replace,r=e.state;ke()||le(!1);var i=Ce();return(0,l.useEffect)((function(){i(t,{replace:n,state:r})})),null}function Pe(e){le(!1)}function je(e){var t=e.basename,n=void 0===t?"/":t,r=e.children,i=void 0===r?null:r,o=e.location,a=e.navigationType,s=void 0===a?Q.Pop:a,u=e.navigator,c=e.static,f=void 0!==c&&c;ke()&&le(!1);var d=be(n),h=(0,l.useMemo)((function(){return{basename:d,navigator:u,static:f}}),[d,u,f]);"string"===typeof o&&(o=ie(o));var p=o,v=p.pathname,m=void 0===v?"/":v,g=p.search,y=void 0===g?"":g,b=p.hash,_=void 0===b?"":b,x=p.state,w=void 0===x?null:x,k=p.key,S=void 0===k?"default":k,C=(0,l.useMemo)((function(){var e=ge(m,d);return null==e?null:{pathname:e,search:y,hash:_,state:w,key:S}}),[d,m,y,_,w,S]);return null==C?null:(0,l.createElement)(oe.Provider,{value:h},(0,l.createElement)(ae.Provider,{children:i,value:{location:C,navigationType:s}}))}function Ne(e){var t=e.children,n=e.location;return function(e,t){ke()||le(!1);var n,r=(0,l.useContext)(se).matches,i=r[r.length-1],o=i?i.params:{},a=(i&&i.pathname,i?i.pathnameBase:"/"),s=(i&&i.route,Se());if(t){var u,c="string"===typeof t?ie(t):t;"/"===a||(null==(u=c.pathname)?void 0:u.startsWith(a))||le(!1),n=c}else n=s;var f=n.pathname||"/",d=ue(e,{pathname:"/"===a?f:f.slice(a.length)||"/"});return Me(d&&d.map((function(e){return Object.assign({},e,{params:Object.assign({},o,e.params),pathname:ye([a,e.pathname]),pathnameBase:"/"===e.pathnameBase?a:ye([a,e.pathnameBase])})})),r)}(De(t),n)}function De(e){var t=[];return l.Children.forEach(e,(function(e){if((0,l.isValidElement)(e))if(e.type!==l.Fragment){e.type!==Pe&&le(!1);var n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=De(e.props.children)),t.push(n)}else t.push.apply(t,De(e.props.children))})),t}function Re(){return Re=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},Re.apply(this,arguments)}function Le(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Ae=["onClick","reloadDocument","replace","state","target","to"],Ie=["aria-current","caseSensitive","className","end","style","to","children"];function Fe(e){var t=e.basename,n=e.children,r=e.window,i=(0,l.useRef)();null==i.current&&(i.current=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function i(){var e=n.location,t=e.pathname,i=e.search,o=e.hash,a=r.state||{};return[a.idx,$({pathname:t,search:i,hash:o,state:a.usr||null,key:a.key||"default"})]}var o=null;n.addEventListener(J,(function(){if(o)f.call(o),o=null;else{var e=Q.Pop,t=i(),n=t[0],r=t[1];if(f.length){if(null!=n){var a=l-n;a&&(o={action:e,location:r,retry:function(){g(-1*a)}},g(a))}}else m(e)}}));var a=Q.Pop,s=i(),l=s[0],u=s[1],c=te(),f=te();function d(e){return"string"===typeof e?e:re(e)}function h(e,t){return void 0===t&&(t=null),$(y({pathname:u.pathname,hash:"",search:""},"string"===typeof e?ie(e):e,{state:t,key:ne()}))}function p(e,t){return[{usr:e.state,key:e.key,idx:t},d(e)]}function v(e,t,n){return!f.length||(f.call({action:e,location:t,retry:n}),!1)}function m(e){a=e;var t=i();l=t[0],u=t[1],c.call({action:a,location:u})}function g(e){r.go(e)}null==l&&(l=0,r.replaceState(y({},r.state,{idx:l}),""));var b={get action(){return a},get location(){return u},createHref:d,push:function e(t,i){var o=Q.Push,a=h(t,i);if(v(o,a,(function(){e(t,i)}))){var s=p(a,l+1),u=s[0],c=s[1];try{r.pushState(u,"",c)}catch(f){n.location.assign(c)}m(o)}},replace:function e(t,n){var i=Q.Replace,o=h(t,n);if(v(i,o,(function(){e(t,n)}))){var a=p(o,l),s=a[0],u=a[1];r.replaceState(s,"",u),m(i)}},go:g,back:function(){g(-1)},forward:function(){g(1)},listen:function(e){return c.push(e)},block:function(e){var t=f.push(e);return 1===f.length&&n.addEventListener(X,ee),function(){t(),f.length||n.removeEventListener(X,ee)}}};return b}({window:r}));var o=i.current,a=v((0,l.useState)({action:o.action,location:o.location}),2),s=a[0],u=a[1];return(0,l.useLayoutEffect)((function(){return o.listen(u)}),[o]),(0,l.createElement)(je,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}var ze=(0,l.forwardRef)((function(e,t){var n=e.onClick,r=e.reloadDocument,i=e.replace,o=void 0!==i&&i,a=e.state,s=e.target,u=e.to,c=Le(e,Ae),f=we(u),d=function(e,t){var n=void 0===t?{}:t,r=n.target,i=n.replace,o=n.state,a=Ce(),s=Se(),u=Te(e);return(0,l.useCallback)((function(t){if(0===t.button&&(!r||"_self"===r)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t)){t.preventDefault();var n=!!i||re(s)===re(u);a(e,{replace:n,state:o})}}),[s,a,u,i,o,r,e])}(u,{replace:o,state:a,target:s});return(0,l.createElement)("a",Re({},c,{href:f,onClick:function(e){n&&n(e),e.defaultPrevented||r||d(e)},ref:t,target:s}))}));var Be=(0,l.forwardRef)((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.caseSensitive,o=void 0!==i&&i,a=e.className,s=void 0===a?"":a,u=e.end,c=void 0!==u&&u,f=e.style,d=e.to,h=e.children,p=Le(e,Ie),v=Se(),m=Te(d),g=v.pathname,y=m.pathname;o||(g=g.toLowerCase(),y=y.toLowerCase());var b,_=g===y||!c&&g.startsWith(y)&&"/"===g.charAt(y.length),x=_?r:void 0;b="function"===typeof s?s({isActive:_}):[s,_?"active":null].filter(Boolean).join(" ");var w="function"===typeof f?f({isActive:_}):f;return(0,l.createElement)(ze,Re({},p,{"aria-current":x,className:b,ref:t,style:w,to:d}),"function"===typeof h?h({isActive:_}):h)}));var Ue,Ve=JSON.parse('{"Xh":"/shlink-web-client/feature/update-deps"}');function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){He(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ye=".",qe="function",Ge="string",Ke="__global__",Qe="Provider",$e=0,Xe=Array.prototype.slice,Je=function(e,t){var n=e[t];if(void 0===n&&Ue.config.strict)throw new Error("Bottle was unable to resolve a service. `"+t+"` is undefined.");return n},et=function(e){var t;return this.nested[e]||(t=Ue.pop(),this.nested[e]=t,this.factory(e,(function(){return t.container}))),this.nested[e]},tt=function(e){return e.split(Ye).reduce(Je,this)},nt=function(e,t){return t(e)},rt=function(e,t){return(e[t]||[]).concat(e.__global__||[])},it=function(e,t){var n,r,i,o,a;return this.id,i=this.container,o=this.decorators,a=this.middlewares,n=e+Qe,(r=Object.create(null))[n]={configurable:!0,enumerable:!0,get:function(){var e=new t;return delete i[n],i[n]=e,e}},r[e]={configurable:!0,enumerable:!0,get:function(){var t,r=i[n];return r&&(t=rt(o,e).reduce(nt,r.$get(i)),delete i[n],delete i[e]),void 0===t?t:function(e,t,n,r){var i={configurable:!0,enumerable:!0};return e.length?i.get=function(){var t=0,r=function(i){if(i)throw i;e[t]&&e[t++](n,r)};return r(),n}:(i.value=n,i.writable=!0),Object.defineProperty(r,t,i),r[t]}(rt(a,e),e,t,i)}},Object.defineProperties(i,r),this},ot=function(e,t){var n,r;return n=e.split(Ye),this.providerMap[e]&&1===n.length&&!this.container[e+Qe]?console.error(e+" provider already instantiated."):(this.originalProviders[e]=t,this.providerMap[e]=!0,r=n.shift(),n.length?(et.call(this,r).provider(n.join(Ye),t),this):it.call(this,r,t))},at=function(e,t){return ot.call(this,e,(function(){this.$get=t}))},st=function(e,t,n){var r=arguments.length>3?Xe.call(arguments,3):[],i=this;return at.call(this,e,(function(){var e=t,o=r.map(tt,i.container);return n?new(t.bind.apply(t,[null].concat(o))):e.apply(null,o)}))},lt=function(e,t){Object.defineProperty(this,e,{configurable:!0,enumerable:!0,value:t,writable:!0})},ut=function(e,t){var n=e[t];return n||lt.call(e,t,n={}),n},ct=function(e,t){Object.defineProperty(this,e,{configurable:!1,enumerable:!0,value:t,writable:!1})},ft=function(e,t){var n,r;return typeof e===qe&&(t=e,e=Ke),r=(n=e.split(Ye)).shift(),n.length?et.call(this,r).decorator(n.join(Ye),t):(this.decorators[r]||(this.decorators[r]=[]),this.decorators[r].push(t)),this},dt=function(e){return!/^\$(?:decorator|register|list)$|Provider$/.test(e)},ht=function(e){return Object.keys(e||this.container||{}).filter(dt)},pt={},vt=function(e){var t=void 0===e.$value?e:e.$value;return this[e.$type||"service"].apply(this,[e.$name,t].concat(e.$inject||[]))},mt=function(e){delete this.providerMap[e],delete this.container[e],delete this.container[e+Qe]};(Ue=function e(t){if(!(this instanceof e))return e.pop(t);this.id=$e++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:ft.bind(this),$register:vt.bind(this),$list:ht.bind(this)}}).prototype={constant:function(e,t){var n=e.split(Ye);return e=n.pop(),ct.call(n.reduce(ut,this.container),e,t),this},decorator:ft,defer:function(e){return this.deferred.push(e),this},digest:function(e){return(e||[]).map(tt,this.container)},factory:at,instanceFactory:function(e,t){return at.call(this,e,(function(e){return{instance:t.bind(t,e)}}))},list:ht,middleware:function(e,t){var n,r;return typeof e===qe&&(t=e,e=Ke),r=(n=e.split(Ye)).shift(),n.length?et.call(this,r).middleware(n.join(Ye),t):(this.middlewares[r]||(this.middlewares[r]=[]),this.middlewares[r].push(t)),this},provider:ot,resetProviders:function(e){var t=this.originalProviders,n=Array.isArray(e);Object.keys(this.originalProviders).forEach((function(r){if(!n||-1!==e.indexOf(r)){var i=r.split(Ye);i.length>1&&i.forEach(mt,et.call(this,i[0])),mt.call(this,r),this.provider(r,t[r])}}),this)},register:vt,resolve:function(e){return this.deferred.forEach((function(t){t(e)})),this},service:function(e,t){return st.apply(this,[e,t,!0].concat(Xe.call(arguments,2)))},serviceFactory:function(e,t){return st.apply(this,[e,t,!1].concat(Xe.call(arguments,2)))},value:function(e,t){var n;return n=e.split(Ye),e=n.pop(),lt.call(n.reduce(ut,this.container),e,t),this}},Ue.pop=function(e){var t;return typeof e===Ge?((t=pt[e])||(pt[e]=t=new Ue,t.constant("BOTTLE_NAME",e)),t):new Ue},Ue.clear=function(e){typeof e===Ge?delete pt[e]:pt={}},Ue.list=ht,Ue.config={strict:!1};var gt=Ue;function yt(e){return null!=e&&"object"===typeof e&&!0===e["@@functional/placeholder"]}function bt(e){return function t(n){return 0===arguments.length||yt(n)?t:e.apply(this,arguments)}}function _t(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return yt(n)?t:bt((function(t){return e(n,t)}));default:return yt(n)&&yt(r)?t:yt(n)?bt((function(t){return e(t,r)})):yt(r)?bt((function(t){return e(n,t)})):e(n,r)}}}var xt=_t((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})),wt=xt,kt=Number.isInteger||function(e){return e<<0===e};function St(e){return"[object String]"===Object.prototype.toString.call(e)}var Ct=_t((function(e,t){var n=e<0?t.length+e:e;return St(t)?t.charAt(n):t[n]})),Et=Ct,Tt=_t((function(e,t){return e.map((function(e){for(var n,r=t,i=0;i<e.length;){if(null==r)return;n=e[i],r=kt(n)?Et(n,r):r[n],i+=1}return r}))})),Mt=Tt,Ot=_t((function(e,t){return Mt([e],t)[0]})),Pt=_t((function(e,t){return Ot([e],t)})),jt=Pt,Nt=_t((function(e,t){for(var n={},r={},i=0,o=e.length;i<o;)r[e[i]]=1,i+=1;for(var a in t)r.hasOwnProperty(a)||(n[a]=t[a]);return n})),Dt=Nt,Rt=function(e){return!(null===e||void 0===e||!e.url)&&!(null===e||void 0===e||!e.apiKey)},Lt=function(e){return!(null===e||void 0===e||!e.id)},At=function(e){return!(null===e||void 0===e||!e.version)},It=function(e){return Lt(e)?e.id:""},Ft=function(e){return Dt(["id","autoConnect"],e)};function zt(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Bt(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){zt(o,r,i,a,s,"next",e)}function s(e){zt(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Ut(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 Vt(e,t,n){return t&&Ut(e.prototype,t),n&&Ut(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wt(e,t){if(null==e)return{};var n,r,i=b(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Zt=n(7757),Yt=n.n(Zt);var qt=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Gt(e){return null!=e&&"function"===typeof e["@@transducer/step"]}function Kt(e,t,n){return function(){if(0===arguments.length)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!qt(i)){for(var o=0;o<e.length;){if("function"===typeof i[e[o]])return i[e[o]].apply(i,r);o+=1}if(Gt(i)){var a=t.apply(null,r);return a(i)}}return n.apply(this,arguments)}}function Qt(e){return"[object Object]"===Object.prototype.toString.call(e)}var $t=bt((function(e){return!!qt(e)||!!e&&("object"===typeof e&&(!St(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),Xt=$t,Jt=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function en(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,l,u){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,l,u,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var tn=_t((function(e,t){return en(e.length,(function(){return e.apply(t,arguments)}))})),nn=tn;function rn(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function on(e,t,n,r){return e["@@transducer/result"](n[r](nn(e["@@transducer/step"],e),t))}var an="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator";function sn(e,t,n){if("function"===typeof e&&(e=function(e){return new Jt(e)}(e)),Xt(n))return function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"===typeof n["fantasy-land/reduce"])return on(e,t,n,"fantasy-land/reduce");if(null!=n[an])return rn(e,t,n[an]());if("function"===typeof n.next)return rn(e,t,n);if("function"===typeof n.reduce)return on(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var ln=function(){return this.xf["@@transducer/init"]()},un=function(e){return this.xf["@@transducer/result"](e)},cn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=ln,e.prototype["@@transducer/result"]=un,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}(),fn=_t((function(e,t){return new cn(e,t)})),dn=fn;function hn(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var pn=Object.prototype.toString,vn=function(){return"[object Arguments]"===pn.call(arguments)?function(e){return"[object Arguments]"===pn.call(e)}:function(e){return hn("callee",e)}}(),mn=vn,gn=!{toString:null}.propertyIsEnumerable("toString"),yn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],bn=function(){return arguments.propertyIsEnumerable("length")}(),_n=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},xn="function"!==typeof Object.keys||bn?bt((function(e){if(Object(e)!==e)return[];var t,n,r=[],i=bn&&mn(e);for(t in e)!hn(t,e)||i&&"length"===t||(r[r.length]=t);if(gn)for(n=yn.length-1;n>=0;)hn(t=yn[n],e)&&!_n(r,t)&&(r[r.length]=t),n-=1;return r})):bt((function(e){return Object(e)!==e?[]:Object.keys(e)})),wn=xn,kn=_t(Kt(["filter"],dn,(function(e,t){return Qt(t)?sn((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},wn(t)):function(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}(e,t)}))),Sn=kn,Cn=_t((function(e,t){return Sn(function(e){return function(){return!e.apply(this,arguments)}}(e),t)})),En=Cn,Tn=bt((function(e){return null==e})),Mn=Tn,On=bt((function(e){return null!=e&&"function"===typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"===typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"===typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"===typeof e.constructor.empty?e.constructor.empty():qt(e)?[]:St(e)?"":Qt(e)?{}:mn(e)?function(){return arguments}():void 0})),Pn=On;function jn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Nn(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}var Dn="function"===typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t},Rn=bt((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Ln(e,t,n,r){var i=jn(e);function o(e,t){return An(e,t,n.slice(),r.slice())}return!Nn((function(e,t){return!Nn(o,t,e)}),jn(t),i)}function An(e,t,n,r){if(Dn(e,t))return!0;var i=Rn(e);if(i!==Rn(t))return!1;if(null==e||null==t)return!1;if("function"===typeof e["fantasy-land/equals"]||"function"===typeof t["fantasy-land/equals"])return"function"===typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"===typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"===typeof e.equals||"function"===typeof t.equals)return"function"===typeof e.equals&&e.equals(t)&&"function"===typeof t.equals&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if("function"===typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!==typeof t||!Dn(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Dn(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}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&&Ln(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&Ln(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=wn(e);if(a.length!==wn(t).length)return!1;var s=n.concat([e]),l=r.concat([t]);for(o=a.length-1;o>=0;){var u=a[o];if(!hn(u,t)||!An(t[u],e[u],s,l))return!1;o-=1}return!0}var In=_t((function(e,t){return An(e,t,[],[])})),Fn=In,zn=bt((function(e){return null!=e&&Fn(e,Pn(e))})),Bn=zn,Un=n(8663),Vn=n.n(Un),Hn=function(e){return Vn().parse(e,{ignoreQueryPrefix:!0})},Wn=function(e){return Vn().stringify(e,{arrayFormat:"brackets"})},Zn=function(e,t,n){return e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC"},Yn=function(e,t){var n=t.field,r=t.dir;return n&&r?e.sort((function(e,t){var i="ASC"===r?1:-1,o="ASC"===r?-1:1;return e[n]>t[n]?i:o})):e},qn=function(e){return e.dir?"".concat(e.field,"-").concat(e.dir):void 0},Gn=["orderBy"],Kn=function(e){return e?"".concat(e,"/rest/v2"):""},Qn=En(Mn),$n=function(e){var t=e.orderBy,n=void 0===t?{}:t;return Ze(Ze({},Wt(e,Gn)),{},{orderBy:qn(n)})},Xn=Vt((function e(t,n,r){var i=this;Ht(this,e),this.axios=t,this.baseUrl=n,this.apiKey=r,this.listShortUrls=Bt(Yt().mark((function e(){var t,n=arguments;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.abrupt("return",i.performRequest("/short-urls","GET",$n(t)).then((function(e){return e.data.shortUrls})));case 2:case"end":return e.stop()}}),e)}))),this.createShortUrl=function(){var e=Bt(Yt().mark((function e(t){var n;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=En((function(e){return Bn(e)||Mn(e)}),t),e.abrupt("return",i.performRequest("/short-urls","POST",{},n).then((function(e){return e.data})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getShortUrlVisits=function(){var e=Bt(Yt().mark((function e(t,n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/short-urls/".concat(t,"/visits"),"GET",n).then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getTagVisits=function(){var e=Bt(Yt().mark((function e(t,n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/tags/".concat(t,"/visits"),"GET",n).then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getDomainVisits=function(){var e=Bt(Yt().mark((function e(t,n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/domains/".concat(t,"/visits"),"GET",n).then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getOrphanVisits=function(){var e=Bt(Yt().mark((function e(t){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/visits/orphan","GET",t).then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getNonOrphanVisits=function(){var e=Bt(Yt().mark((function e(t){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/visits/non-orphan","GET",t).then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getVisitsOverview=Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/visits","GET").then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)}))),this.getShortUrl=function(){var e=Bt(Yt().mark((function e(t,n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/short-urls/".concat(t),"GET",{domain:n}).then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.deleteShortUrl=function(){var e=Bt(Yt().mark((function e(t,n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/short-urls/".concat(t),"DELETE",{domain:n}).then((function(){})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.updateShortUrl=function(){var e=Bt(Yt().mark((function e(t,n,r){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/short-urls/".concat(t),"PATCH",{domain:n},r).then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),this.listTags=Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/tags","GET",{withStats:"true"}).then((function(e){return e.data.tags})).then((function(e){return{tags:e.data,stats:e.stats}})));case 1:case"end":return e.stop()}}),e)}))),this.deleteTags=function(){var e=Bt(Yt().mark((function e(t){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/tags","DELETE",{tags:t}).then((function(){return{tags:t}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.editTag=function(){var e=Bt(Yt().mark((function e(t,n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/tags","PUT",{},{oldName:t,newName:n}).then((function(){return{oldName:t,newName:n}})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.health=Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/health","GET").then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)}))),this.mercureInfo=Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/mercure-info","GET").then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)}))),this.listDomains=Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/domains","GET").then((function(e){return e.data.domains})));case 1:case"end":return e.stop()}}),e)}))),this.editDomainRedirects=function(){var e=Bt(Yt().mark((function e(t){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/domains/redirects","PATCH",{},t).then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.performRequest=function(){var e=Bt(Yt().mark((function e(t){var n,r,o,a=arguments;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:"GET",r=a.length>2&&void 0!==a[2]?a[2]:{},o=a.length>3&&void 0!==a[3]?a[3]:{},e.abrupt("return",i.axios({method:n,url:"".concat(Kn(i.baseUrl)).concat(t),headers:{"X-Api-Key":i.apiKey},params:Qn(r),data:o,paramsSerializer:Wn}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),Jn={},er=function(e){return function(t){var n=function(e){return"function"===typeof e}(t)?jt("selectedServer",t()):t;if(!Rt(n))throw new Error("There's no selected server or it is not found");var r=n.url,i=n.apiKey,o="".concat(r,"_").concat(i);return Jn[o]||(Jn[o]=new Xn(e,r,i)),Jn[o]}},tr=function(e){e.serviceFactory("buildShlinkApiClient",er,"axios")},nr=n(8025),rr=n.n(nr),ir=n(2834),or=function(e){var t=e.children,n=Se();return(0,l.useEffect)((function(){scrollTo(0,0)}),[n]),(0,ir.jsx)(ir.Fragment,{children:t})},ar={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"]},sr=ar,lr={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"]},ur=lr,cr={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"]},fr={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M421.7 220.3l-11.3 11.3-22.6 22.6-205 205c-6.6 6.6-14.8 11.5-23.8 14.1L30.8 511c-8.4 2.5-17.5 .2-23.7-6.1S-1.5 489.7 1 481.2L38.7 353.1c2.6-9 7.5-17.2 14.1-23.8l205-205 22.6-22.6 11.3-11.3 33.9 33.9 62.1 62.1 33.9 33.9zM96 353.9l-9.3 9.3c-.9 .9-1.6 2.1-2 3.4l-25.3 86 86-25.3c1.3-.4 2.5-1.1 3.4-2l9.3-9.3H112c-8.8 0-16-7.2-16-16V353.9zM453.3 19.3l39.4 39.4c25 25 25 65.5 0 90.5l-14.5 14.5-22.6 22.6-11.3 11.3-33.9-33.9-62.1-62.1L314.3 67.7l11.3-11.3 22.6-22.6 14.5-14.5c25-25 65.5-25 90.5 0z"]},dr=fr,hr={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"]},pr={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"]},vr={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"]},mr={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"]},gr=mr,yr={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"]},br=yr,_r={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"]},xr={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"]},wr={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"]},kr={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"]},Sr={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"]},Cr=Sr,Er={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"]},Tr=Er,Mr={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"]},Or={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"]},Pr={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"]},jr=Pr,Nr={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"]},Dr={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"]},Rr={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM432 256c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM288 192c0 35.3-28.7 64-64 64c-11.5 0-22.3-3-31.6-8.4c-.2 2.8-.4 5.5-.4 8.4c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-2.8 0-5.6 .1-8.4 .4c5.3 9.3 8.4 20.1 8.4 31.6z"]},Lr={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"]},Ar={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"]},Ir={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"]},Fr={prefix:"fas",iconName:"up-right-from-square",icon:[448,512,["external-link-alt"],"f35d","M288 32c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L306.7 128 169.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L352 173.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V64c0-17.7-14.3-32-32-32H288zM80 64C35.8 64 0 99.8 0 144V400c0 44.2 35.8 80 80 80H336c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v80c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V144c0-8.8 7.2-16 16-16h80c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"]},zr=Fr,Br={prefix:"fas",iconName:"table-cells-large",icon:[512,512,["th-large"],"f009","M448 96V224H288V96H448zm0 192V416H288V288H448zM224 224H64V96H224V224zM64 288H224V416H64V288zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"]},Ur=Br,Vr={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"]},Hr={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"]},Wr=Hr,Zr={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"]},Yr=Zr,qr={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"]},Gr={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"]},Kr=Gr,Qr={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"]},$r=Qr,Xr={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"]},Jr=Xr,ei={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"]},ti=ei,ni={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"]},ri={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"]},ii={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"]},oi=ii,ai={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"]},si={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"]},li={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"]},ui=li,ci={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"]},fi={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"]},di=fi,hi={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"]},pi={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"]},vi=pi,mi={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"]},gi={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"]},yi={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 bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(n),!0).forEach((function(t){ki(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xi(e){return xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xi(e)}function wi(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 ki(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Si(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||Ei(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ci(e){return function(e){if(Array.isArray(e))return Ti(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ei(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){if(e){if("string"===typeof e)return Ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ti(e,t):void 0}}function Ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Mi=function(){},Oi={},Pi={},ji=null,Ni={mark:Mi,measure:Mi};try{"undefined"!==typeof window&&(Oi=window),"undefined"!==typeof document&&(Pi=document),"undefined"!==typeof MutationObserver&&(ji=MutationObserver),"undefined"!==typeof performance&&(Ni=performance)}catch(sI){}var Di,Ri,Li,Ai,Ii,Fi=(Oi.navigator||{}).userAgent,zi=void 0===Fi?"":Fi,Bi=Oi,Ui=Pi,Vi=ji,Hi=Ni,Wi=(Bi.document,!!Ui.documentElement&&!!Ui.head&&"function"===typeof Ui.addEventListener&&"function"===typeof Ui.createElement),Zi=~zi.indexOf("MSIE")||~zi.indexOf("Trident/"),Yi="svg-inline--fa",qi="data-fa-i2svg",Gi="data-fa-pseudo-element",Ki="data-prefix",Qi="data-icon",$i="fontawesome-i2svg",Xi=["HTML","HEAD","STYLE","SCRIPT"],Ji=function(){try{return!0}catch(sI){return!1}}(),eo="classic",to="sharp",no=[eo,to];function ro(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e.classic}})}var io=ro((ki(Di={},eo,{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"}),ki(Di,to,{fa:"solid",fass:"solid","fa-solid":"solid"}),Di)),oo=ro((ki(Ri={},eo,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),ki(Ri,to,{solid:"fass"}),Ri)),ao=ro((ki(Li={},eo,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),ki(Li,to,{fass:"fa-solid"}),Li)),so=ro((ki(Ai={},eo,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),ki(Ai,to,{"fa-solid":"fass"}),Ai)),lo=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,uo="fa-layers-text",co=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,fo=ro((ki(Ii={},eo,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),ki(Ii,to,{900:"fass"}),Ii)),ho=[1,2,3,4,5,6,7,8,9,10],po=ho.concat([11,12,13,14,15,16,17,18,19,20]),vo=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],mo="duotone-group",go="swap-opacity",yo="primary",bo="secondary",_o=new Set;Object.keys(oo.classic).map(_o.add.bind(_o)),Object.keys(oo.sharp).map(_o.add.bind(_o));var xo=[].concat(no,Ci(_o),["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",mo,go,yo,bo]).concat(ho.map((function(e){return"".concat(e,"x")}))).concat(po.map((function(e){return"w-".concat(e)}))),wo=Bi.FontAwesomeConfig||{};if(Ui&&"function"===typeof Ui.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=Si(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=Ui.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));void 0!==i&&null!==i&&(wo[r]=i)}))}var ko={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:Yi,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};wo.familyPrefix&&(wo.cssPrefix=wo.familyPrefix);var So=_i(_i({},ko),wo);So.autoReplaceSvg||(So.observeMutations=!1);var Co={};Object.keys(ko).forEach((function(e){Object.defineProperty(Co,e,{enumerable:!0,set:function(t){So[e]=t,Eo.forEach((function(e){return e(Co)}))},get:function(){return So[e]}})})),Object.defineProperty(Co,"familyPrefix",{enumerable:!0,set:function(e){So.cssPrefix=e,Eo.forEach((function(e){return e(Co)}))},get:function(){return So.cssPrefix}}),Bi.FontAwesomeConfig=Co;var Eo=[];var To=16,Mo={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Oo(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Po(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function jo(e){return e.classList?Po(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function No(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Do(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function Ro(e){return e.size!==Mo.size||e.x!==Mo.x||e.y!==Mo.y||e.rotate!==Mo.rotate||e.flipX||e.flipY}function Lo(){var e="fa",t=Yi,n=Co.cssPrefix,r=Co.replacementClass,i=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -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));\n 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));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -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));\n 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));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var Ao=!1;function Io(){Co.autoAddCss&&!Ao&&(!function(e){if(e&&Wi){var t=Ui.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Ui.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}Ui.head.insertBefore(t,r)}}(Lo()),Ao=!0)}var Fo={mixout:function(){return{dom:{css:Lo,insertCss:Io}}},hooks:function(){return{beforeDOMElementCreation:function(){Io()},beforeI2svg:function(){Io()}}}},zo=Bi||{};zo.___FONT_AWESOME___||(zo.___FONT_AWESOME___={}),zo.___FONT_AWESOME___.styles||(zo.___FONT_AWESOME___.styles={}),zo.___FONT_AWESOME___.hooks||(zo.___FONT_AWESOME___.hooks={}),zo.___FONT_AWESOME___.shims||(zo.___FONT_AWESOME___.shims=[]);var Bo=zo.___FONT_AWESOME___,Uo=[],Vo=!1;function Ho(e){Wi&&(Vo?setTimeout(e,0):Uo.push(e))}function Wo(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,o=void 0===i?[]:i;return"string"===typeof e?No(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(No(e[n]),'" ')}),"").trim()}(r),">").concat(o.map(Wo).join(""),"</").concat(t,">")}function Zo(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Wi&&((Vo=(Ui.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ui.readyState))||Ui.addEventListener("DOMContentLoaded",(function e(){Ui.removeEventListener("DOMContentLoaded",e),Vo=1,Uo.map((function(e){return e()}))})));var Yo=function(e,t,n,r){var i,o,a,s=Object.keys(e),l=s.length,u=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i<l;i++)a=u(a,e[o=s[i]],o,e);return a};function qo(e){var t=function(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++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function Go(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function Ko(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,o=Go(t);"function"!==typeof Bo.hooks.addPack||i?Bo.styles[e]=_i(_i({},Bo.styles[e]||{}),o):Bo.hooks.addPack(e,Go(t)),"fas"===e&&Ko("fa",t)}var Qo,$o,Xo,Jo=Bo.styles,ea=Bo.shims,ta=(ki(Qo={},eo,Object.values(ao.classic)),ki(Qo,to,Object.values(ao.sharp)),Qo),na=null,ra={},ia={},oa={},aa={},sa={},la=(ki($o={},eo,Object.keys(io.classic)),ki($o,to,Object.keys(io.sharp)),$o);function ua(e,t){var n,r=t.split("-"),i=r[0],o=r.slice(1).join("-");return i!==e||""===o||(n=o,~xo.indexOf(n))?null:o}var ca,fa=function(){var e=function(e){return Yo(Jo,(function(t,n,r){return t[r]=Yo(n,e,{}),t}),{})};ra=e((function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter((function(e){return"number"===typeof e})).forEach((function(t){e[t.toString(16)]=n}));return e})),ia=e((function(e,t,n){(e[n]=n,t[2])&&t[2].filter((function(e){return"string"===typeof e})).forEach((function(t){e[t]=n}));return e})),sa=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in Jo||Co.autoFetchSvg,n=Yo(ea,(function(e,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),"string"===typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"===typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e}),{names:{},unicodes:{}});oa=n.names,aa=n.unicodes,na=ma(Co.styleDefault,{family:Co.familyDefault})};function da(e,t){return(ra[e]||{})[t]}function ha(e,t){return(sa[e]||{})[t]}function pa(e){return oa[e]||{prefix:null,iconName:null}}function va(){return na}ca=function(e){na=ma(e.styleDefault,{family:Co.familyDefault})},Eo.push(ca),fa();function ma(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.family,r=void 0===n?eo:n,i=io[r][e],o=oo[r][e]||oo[r][i],a=e in Bo.styles?e:null;return o||a||null}var ga=(ki(Xo={},eo,Object.keys(ao.classic)),ki(Xo,to,Object.keys(ao.sharp)),Xo);function ya(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipLookups,i=void 0!==r&&r,o=(ki(t={},eo,"".concat(Co.cssPrefix,"-").concat(eo)),ki(t,to,"".concat(Co.cssPrefix,"-").concat(to)),t),a=null,s=eo;(e.includes(o.classic)||e.some((function(e){return ga.classic.includes(e)})))&&(s=eo),(e.includes(o.sharp)||e.some((function(e){return ga.sharp.includes(e)})))&&(s=to);var l=e.reduce((function(e,t){var n=ua(Co.cssPrefix,t);if(Jo[t]?(t=ta[s].includes(t)?so[s][t]:t,a=t,e.prefix=t):la[s].indexOf(t)>-1?(a=t,e.prefix=ma(t,{family:s})):n?e.iconName=n:t!==Co.replacementClass&&t!==o.classic&&t!==o.sharp&&e.rest.push(t),!i&&e.prefix&&e.iconName){var r="fa"===a?pa(e.iconName):{},l=ha(e.prefix,e.iconName);r.prefix&&(a=null),e.iconName=r.iconName||l||e.iconName,e.prefix=r.prefix||e.prefix,"far"!==e.prefix||Jo.far||!Jo.fas||Co.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),l.prefix||s!==to||!Jo.fass&&!Co.autoFetchSvg||(l.prefix="fass",l.iconName=ha(l.prefix,l.iconName)||l.iconName),"fa"!==l.prefix&&"fa"!==a||(l.prefix=va()||"fas"),l}var ba=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach((function(t){e.definitions[t]=_i(_i({},e.definitions[t]||{}),i[t]),Ko(t,i[t]);var n=ao.classic[t];n&&Ko(n,i[t]),fa()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],i=r.prefix,o=r.iconName,a=r.icon,s=a[2];e[i]||(e[i]={}),s.length>0&&s.forEach((function(t){"string"===typeof t&&(e[i][t]=a)})),e[i][o]=a})),e}}],n&&wi(t.prototype,n),r&&wi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),_a=[],xa={},wa={},ka=Object.keys(wa);function Sa(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=xa[e]||[];return o.forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function Ca(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=xa[e]||[];i.forEach((function(e){e.apply(null,n)}))}function Ea(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return wa[e]?wa[e].apply(null,t):void 0}function Ta(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||va();if(t)return t=ha(n,t)||t,Zo(Ma.definitions,n,t)||Zo(Bo.styles,n,t)}var Ma=new ba,Oa={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Wi?(Ca("beforeI2svg",e),Ea("pseudoElements2svg",e),Ea("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot;!1===Co.autoReplaceSvg&&(Co.autoReplaceSvg=!0),Co.observeMutations=!0,Ho((function(){Na({autoReplaceSvgRoot:t}),Ca("watch",e)}))}},Pa={icon:function(e){if(null===e)return null;if("object"===xi(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:ha(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=ma(e[0]);return{prefix:n,iconName:ha(n,t)||t}}if("string"===typeof e&&(e.indexOf("".concat(Co.cssPrefix,"-"))>-1||e.match(lo))){var r=ya(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||va(),iconName:ha(r.prefix,r.iconName)||r.iconName}}if("string"===typeof e){var i=va();return{prefix:i,iconName:ha(i,e)||e}}}},ja={noAuto:function(){Co.autoReplaceSvg=!1,Co.observeMutations=!1,Ca("noAuto")},config:Co,dom:Oa,parse:Pa,library:Ma,findIconDefinition:Ta,toHtml:Wo},Na=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?Ui:t;(Object.keys(Bo.styles).length>0||Co.autoFetchSvg)&&Wi&&Co.autoReplaceSvg&&ja.dom.i2svg({node:n})};function Da(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return Wo(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(Wi){var t=Ui.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Ra(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,s=e.symbol,l=e.title,u=e.maskId,c=e.titleId,f=e.extra,d=e.watchable,h=void 0!==d&&d,p=r.found?r:n,v=p.width,m=p.height,g="fak"===i,y=[Co.replacementClass,o?"".concat(Co.cssPrefix,"-").concat(o):""].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),b={children:[],attributes:_i(_i({},f.attributes),{},{"data-prefix":i,"data-icon":o,class:y,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(m)})},_=g&&!~f.classes.indexOf("fa-fw")?{width:"".concat(v/m*16*.0625,"em")}:{};h&&(b.attributes[qi]=""),l&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||Oo())},children:[l]}),delete b.attributes.title);var x=_i(_i({},b),{},{prefix:i,iconName:o,main:n,mask:r,maskId:u,transform:a,symbol:s,styles:_i(_i({},_),f.styles)}),w=r.found&&n.found?Ea("generateAbstractMask",x)||{children:[],attributes:{}}:Ea("generateAbstractIcon",x)||{children:[],attributes:{}},k=w.children,S=w.attributes;return x.children=k,x.attributes=S,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,a=!0===o?"".concat(t,"-").concat(Co.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:_i(_i({},i),{},{id:a}),children:r}]}]}(x):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(Ro(a)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=Do(_i(_i({},o),{},{"transform-origin":"".concat(s.x+a.x/16,"em ").concat(s.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(x)}function La(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,a=e.extra,s=e.watchable,l=void 0!==s&&s,u=_i(_i(_i({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});l&&(u[qi]="");var c=_i({},a.styles);Ro(i)&&(c.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,i=e.height,o=void 0===i?16:i,a=e.startCentered,s=void 0!==a&&a,l="";return l+=s&&Zi?"translate(".concat(t.x/To-r/2,"em, ").concat(t.y/To-o/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/To,"em), calc(-50% + ").concat(t.y/To,"em)) "):"translate(".concat(t.x/To,"em, ").concat(t.y/To,"em) "),l+="scale(".concat(t.size/To*(t.flipX?-1:1),", ").concat(t.size/To*(t.flipY?-1:1),") "),l+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var f=Do(c);f.length>0&&(u.style=f);var d=[];return d.push({tag:"span",attributes:u,children:[t]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}function Aa(e){var t=e.content,n=e.title,r=e.extra,i=_i(_i(_i({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=Do(r.styles);o.length>0&&(i.style=o);var a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}var Ia=Bo.styles;function Fa(e){var t=e[0],n=e[1],r=Si(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Co.cssPrefix,"-").concat(mo)},children:[{tag:"path",attributes:{class:"".concat(Co.cssPrefix,"-").concat(bo),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Co.cssPrefix,"-").concat(yo),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var za={found:!1,width:512,height:512};function Ba(e,t){var n=t;return"fa"===t&&null!==Co.styleDefault&&(t=va()),new Promise((function(r,i){Ea("missingIconAbstract");if("fa"===n){var o=pa(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Ia[t]&&Ia[t][e])return r(Fa(Ia[t][e]));!function(e,t){Ji||Co.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(_i(_i({},za),{},{icon:Co.showMissingIcons&&e&&Ea("missingIconAbstract")||{}}))}))}var Ua=function(){},Va=Co.measurePerformance&&Hi&&Hi.mark&&Hi.measure?Hi:{mark:Ua,measure:Ua},Ha='FA "6.2.0"',Wa=function(e){Va.mark("".concat(Ha," ").concat(e," ends")),Va.measure("".concat(Ha," ").concat(e),"".concat(Ha," ").concat(e," begins"),"".concat(Ha," ").concat(e," ends"))},Za=function(e){return Va.mark("".concat(Ha," ").concat(e," begins")),function(){return Wa(e)}},Ya=function(){};function qa(e){return"string"===typeof(e.getAttribute?e.getAttribute(qi):null)}function Ga(e){return Ui.createElementNS("http://www.w3.org/2000/svg",e)}function Ka(e){return Ui.createElement(e)}function Qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ceFn,r=void 0===n?"svg"===e.tag?Ga:Ka:n;if("string"===typeof e)return Ui.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach((function(t){i.setAttribute(t,e.attributes[t])}));var o=e.children||[];return o.forEach((function(e){i.appendChild(Qa(e,{ceFn:r}))})),i}var $a={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(Qa(e),t)})),null===t.getAttribute(qi)&&Co.keepOriginalSource){var n=Ui.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~jo(t).indexOf(Co.replacementClass))return $a.replace(e);var r=new RegExp("".concat(Co.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce((function(e,t){return t===Co.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var o=n.map((function(e){return Wo(e)})).join("\n");t.setAttribute(qi,""),t.innerHTML=o}};function Xa(e){e()}function Ja(e,t){var n="function"===typeof t?t:Ya;if(0===e.length)n();else{var r=Xa;"async"===Co.mutateApproach&&(r=Bi.requestAnimationFrame||Xa),r((function(){var t=!0===Co.autoReplaceSvg?$a.replace:$a[Co.autoReplaceSvg]||$a.replace,r=Za("mutate");e.map(t),r(),n()}))}}var es=!1;function ts(){es=!0}function ns(){es=!1}var rs=null;function is(e){if(Vi&&Co.observeMutations){var t=e.treeCallback,n=void 0===t?Ya:t,r=e.nodeCallback,i=void 0===r?Ya:r,o=e.pseudoElementsCallback,a=void 0===o?Ya:o,s=e.observeMutationsRoot,l=void 0===s?Ui:s;rs=new Vi((function(e){if(!es){var t=va();Po(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!qa(e.addedNodes[0])&&(Co.searchPseudoElements&&a(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&Co.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&qa(e.target)&&~vo.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Ki):null,n=e.getAttribute?e.getAttribute(Qi):null;return t&&n}(e.target)){var r=ya(jo(e.target)),o=r.prefix,s=r.iconName;e.target.setAttribute(Ki,o||t),s&&e.target.setAttribute(Qi,s)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(Co.replacementClass)&&i(e.target);var l}))}})),Wi&&rs.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function os(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}function as(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=ya(jo(e));return i.prefix||(i.prefix=va()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=function(e,t){return(ia[e]||{})[t]}(i.prefix,e.innerText)||da(i.prefix,qo(e.innerText))),!i.iconName&&Co.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function ss(e){var t=Po(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Co.autoA11y&&(n?t["aria-labelledby"]="".concat(Co.replacementClass,"-title-").concat(r||Oo()):(t["aria-hidden"]="true",t.focusable="false")),t}function ls(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=as(e),r=n.iconName,i=n.prefix,o=n.rest,a=ss(e),s=Sa("parseNodeAttributes",{},e),l=t.styleParser?os(e):[];return _i({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Mo,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var us=Bo.styles;function cs(e){var t="nest"===Co.autoReplaceSvg?ls(e,{styleParser:!1}):ls(e);return~t.extra.classes.indexOf(uo)?Ea("generateLayersText",e,t):Ea("generateSvgReplacementMutation",e,t)}var fs=new Set;function ds(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Wi)return Promise.resolve();var n=Ui.documentElement.classList,r=function(e){return n.add("".concat($i,"-").concat(e))},i=function(e){return n.remove("".concat($i,"-").concat(e))},o=Co.autoFetchSvg?fs:no.map((function(e){return"fa-".concat(e)})).concat(Object.keys(us));o.includes("fa")||o.push("fa");var a=[".".concat(uo,":not([").concat(qi,"])")].concat(o.map((function(e){return".".concat(e,":not([").concat(qi,"])")}))).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=Po(e.querySelectorAll(a))}catch(sI){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var l=Za("onTree"),u=s.reduce((function(e,t){try{var n=cs(t);n&&e.push(n)}catch(sI){Ji||"MissingIcon"===sI.name&&console.error(sI)}return e}),[]);return new Promise((function(e,n){Promise.all(u).then((function(n){Ja(n,(function(){r("active"),r("complete"),i("pending"),"function"===typeof t&&t(),l(),e()}))})).catch((function(e){l(),n(e)}))}))}function hs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;cs(e).then((function(e){e&&Ja([e],t)}))}no.map((function(e){fs.add("fa-".concat(e))})),Object.keys(io.classic).map(fs.add.bind(fs)),Object.keys(io.sharp).map(fs.add.bind(fs)),fs=Ci(fs);var ps=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Mo:n,i=t.symbol,o=void 0!==i&&i,a=t.mask,s=void 0===a?null:a,l=t.maskId,u=void 0===l?null:l,c=t.title,f=void 0===c?null:c,d=t.titleId,h=void 0===d?null:d,p=t.classes,v=void 0===p?[]:p,m=t.attributes,g=void 0===m?{}:m,y=t.styles,b=void 0===y?{}:y;if(e){var _=e.prefix,x=e.iconName,w=e.icon;return Da(_i({type:"icon"},e),(function(){return Ca("beforeDOMElementCreation",{iconDefinition:e,params:t}),Co.autoA11y&&(f?g["aria-labelledby"]="".concat(Co.replacementClass,"-title-").concat(h||Oo()):(g["aria-hidden"]="true",g.focusable="false")),Ra({icons:{main:Fa(w),mask:s?Fa(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:x,transform:_i(_i({},Mo),r),symbol:o,title:f,maskId:u,titleId:h,extra:{attributes:g,styles:b,classes:v}})}))}},vs={mixout:function(){return{icon:(e=ps,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:Ta(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Ta(i||{})),e(r,_i(_i({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=ds,e.nodeCallback=hs,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?Ui:t,r=e.callback;return ds(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,o=t.prefix,a=t.transform,s=t.symbol,l=t.mask,u=t.maskId,c=t.extra;return new Promise((function(t,f){Promise.all([Ba(n,o),l.iconName?Ba(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(l){var f=Si(l,2),d=f[0],h=f[1];t([e,Ra({icons:{main:d,mask:h},prefix:o,iconName:n,transform:a,symbol:s,maskId:u,title:r,titleId:i,extra:c,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.transform,a=Do(e.styles);return a.length>0&&(r.style=a),Ro(o)&&(t=Ea("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},ms={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return Da({type:"layer"},(function(){Ca("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Co.cssPrefix,"-layers")].concat(Ci(r)).join(" ")},children:n}]}))}}}},gs={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,i=t.classes,o=void 0===i?[]:i,a=t.attributes,s=void 0===a?{}:a,l=t.styles,u=void 0===l?{}:l;return Da({type:"counter",content:e},(function(){return Ca("beforeDOMElementCreation",{content:e,params:t}),Aa({content:e.toString(),title:r,extra:{attributes:s,styles:u,classes:["".concat(Co.cssPrefix,"-layers-counter")].concat(Ci(o))}})}))}}}},ys={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Mo:n,i=t.title,o=void 0===i?null:i,a=t.classes,s=void 0===a?[]:a,l=t.attributes,u=void 0===l?{}:l,c=t.styles,f=void 0===c?{}:c;return Da({type:"text",content:e},(function(){return Ca("beforeDOMElementCreation",{content:e,params:t}),La({content:e,transform:_i(_i({},Mo),r),title:o,extra:{attributes:u,styles:f,classes:["".concat(Co.cssPrefix,"-layers-text")].concat(Ci(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,o=null,a=null;if(Zi){var s=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();o=l.width/s,a=l.height/s}return Co.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,La({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}},bs=new RegExp('"',"ug"),_s=[1105920,1112319];function xs(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,i){if(null!==e.getAttribute(n))return r();var o=Po(e.children).filter((function(e){return e.getAttribute(Gi)===t}))[0],a=Bi.getComputedStyle(e,t),s=a.getPropertyValue("font-family").match(co),l=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(o&&!s)return e.removeChild(o),r();if(s&&"none"!==u&&""!==u){var c=a.getPropertyValue("content"),f=~["Sharp"].indexOf(s[2])?to:eo,d=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?oo[f][s[2].toLowerCase()]:fo[f][l],h=function(e){var t=e.replace(bs,""),n=function(e,t){var n,r=e.length,i=e.charCodeAt(t);return i>=55296&&i<=56319&&r>t+1&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}(t,0),r=n>=_s[0]&&n<=_s[1],i=2===t.length&&t[0]===t[1];return{value:qo(i?t[0]:t),isSecondary:r||i}}(c),p=h.value,v=h.isSecondary,m=s[0].startsWith("FontAwesome"),g=da(d,p),y=g;if(m){var b=function(e){var t=aa[e],n=da("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(p);b.iconName&&b.prefix&&(g=b.iconName,d=b.prefix)}if(!g||v||o&&o.getAttribute(Ki)===d&&o.getAttribute(Qi)===y)r();else{e.setAttribute(n,y),o&&e.removeChild(o);var _={iconName:null,title:null,titleId:null,prefix:null,transform:Mo,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},x=_.extra;x.attributes[Gi]=t,Ba(g,d).then((function(i){var o=Ra(_i(_i({},_),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:y,extra:x,watchable:!0})),a=Ui.createElement("svg");"::before"===t?e.insertBefore(a,e.firstChild):e.appendChild(a),a.outerHTML=o.map((function(e){return Wo(e)})).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function ws(e){return Promise.all([xs(e,"::before"),xs(e,"::after")])}function ks(e){return e.parentNode!==document.head&&!~Xi.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Gi)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function Ss(e){if(Wi)return new Promise((function(t,n){var r=Po(e.querySelectorAll("*")).filter(ks).map(ws),i=Za("searchPseudoElements");ts(),Promise.all(r).then((function(){i(),ns(),t()})).catch((function(){i(),ns(),n()}))}))}var Cs=!1,Es=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Ts={mixout:function(){return{parse:{transform:function(e){return Es(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=Es(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,o={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),u={outer:o,inner:{transform:"".concat(a," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:_i({},u.outer),children:[{tag:"g",attributes:_i({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:_i(_i({},t.icon.attributes),u.path)}]}]}}}},Ms={x:0,y:0,width:"100%",height:"100%"};function Os(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var Ps={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?ya(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=va()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.mask,a=e.maskId,s=e.transform,l=i.width,u=i.icon,c=o.width,f=o.icon,d=function(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:s,containerWidth:c,iconWidth:l}),h={tag:"rect",attributes:_i(_i({},Ms),{},{fill:"white"})},p=u.children?{children:u.children.map(Os)}:{},v={tag:"g",attributes:_i({},d.inner),children:[Os(_i({tag:u.tag,attributes:_i(_i({},u.attributes),d.path)},p))]},m={tag:"g",attributes:_i({},d.outer),children:[v]},g="mask-".concat(a||Oo()),y="clip-".concat(a||Oo()),b={tag:"mask",attributes:_i(_i({},Ms),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,m]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=f,"g"===t.tag?t.children:[t])},b]};return n.push(_,{tag:"rect",attributes:_i({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},Ms)}),{children:n,attributes:r}}}},js={provides:function(e){var t=!1;Bi.matchMedia&&(t=Bi.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:_i(_i({},n),{},{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 i=_i(_i({},r),{},{attributeName:"opacity"}),o={tag:"circle",attributes:_i(_i({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:_i(_i({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:_i(_i({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:_i(_i({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:_i(_i({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:_i(_i({},n),{},{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:_i(_i({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;_a=e,xa={},Object.keys(wa).forEach((function(e){-1===ka.indexOf(e)&&delete wa[e]})),_a.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"===typeof t[e]&&(n[e]=t[e]),"object"===xi(t[e])&&Object.keys(t[e]).forEach((function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){var r=e.hooks();Object.keys(r).forEach((function(e){xa[e]||(xa[e]=[]),xa[e].push(r[e])}))}e.provides&&e.provides(wa)}))}([Fo,vs,ms,gs,ys,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Ss,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?Ui:t;Co.searchPseudoElements&&Ss(n)}}},{mixout:function(){return{dom:{unwatch:function(){ts(),Cs=!0}}}},hooks:function(){return{bootstrap:function(){is(Sa("mutationObserverCallbacks",{}))},noAuto:function(){rs&&rs.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Cs?ns():is(Sa("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},Ts,Ps,js,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],{mixoutsTo:ja});var Ns=ja.parse,Ds=ja.icon,Rs=n(8731),Ls=n.n(Rs);function As(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?As(Object(n),!0).forEach((function(t){zs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):As(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fs(e){return Fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fs(e)}function zs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bs(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Us(e){return function(e){if(Array.isArray(e))return Vs(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Vs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vs(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hs(e){return t=e,(t-=0)===t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Ws=["style"];function Zs(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=Hs(t.slice(0,r)),o=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=o:e[i]=o,e}),{})}var Ys=!1;try{Ys=!0}catch(sI){}function qs(e){return e&&"object"===Fs(e)&&e.prefix&&e.iconName&&e.icon?e:Ns.icon?Ns.icon(e):null===e?null:e&&"object"===Fs(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"===typeof e?{prefix:"fas",iconName:e}:void 0}function Gs(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?zs({},e,t):{}}var Ks=l.forwardRef((function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,a=e.title,s=e.titleId,l=e.maskId,u=qs(n),c=Gs("classes",[].concat(Us(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,u=e.spinPulse,c=e.spinReverse,f=e.pulse,d=e.fixedWidth,h=e.inverse,p=e.border,v=e.listItem,m=e.flip,g=e.size,y=e.rotation,b=e.pull,_=(zs(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":c,"fa-spin-pulse":u,"fa-pulse":f,"fa-fw":d,"fa-inverse":h,"fa-border":p,"fa-li":v,"fa-flip":!0===m,"fa-flip-horizontal":"horizontal"===m||"both"===m,"fa-flip-vertical":"vertical"===m||"both"===m},"fa-".concat(g),"undefined"!==typeof g&&null!==g),zs(t,"fa-rotate-".concat(y),"undefined"!==typeof y&&null!==y&&0!==y),zs(t,"fa-pull-".concat(b),"undefined"!==typeof b&&null!==b),zs(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(_).map((function(e){return _[e]?e:null})).filter((function(e){return e}))}(e)),Us(o.split(" ")))),f=Gs("transform","string"===typeof e.transform?Ns.transform(e.transform):e.transform),d=Gs("mask",qs(r)),h=Ds(u,Is(Is(Is(Is({},c),f),d),{},{symbol:i,title:a,titleId:s,maskId:l}));if(!h)return function(){var e;!Ys&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var p=h.abstract,v={ref:t};return Object.keys(e).forEach((function(t){Ks.defaultProps.hasOwnProperty(t)||(v[t]=e[t])})),Qs(p[0],v)}));Ks.displayName="FontAwesomeIcon",Ks.propTypes={beat:Ls().bool,border:Ls().bool,beatFade:Ls().bool,bounce:Ls().bool,className:Ls().string,fade:Ls().bool,flash:Ls().bool,mask:Ls().oneOfType([Ls().object,Ls().array,Ls().string]),maskId:Ls().string,fixedWidth:Ls().bool,inverse:Ls().bool,flip:Ls().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ls().oneOfType([Ls().object,Ls().array,Ls().string]),listItem:Ls().bool,pull:Ls().oneOf(["right","left"]),pulse:Ls().bool,rotation:Ls().oneOf([0,90,180,270]),shake:Ls().bool,size:Ls().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ls().bool,spinPulse:Ls().bool,spinReverse:Ls().bool,symbol:Ls().oneOfType([Ls().bool,Ls().string]),title:Ls().string,titleId:Ls().string,transform:Ls().oneOfType([Ls().string,Ls().object]),swapOpacity:Ls().bool},Ks.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 Qs=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),o=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=Zs(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Hs(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=Bs(r,Ws);return o.attrs.style=Is(Is({},o.attrs.style),s),t.apply(void 0,[n.tag,Is(Is({},o.attrs),l)].concat(Us(i)))}.bind(null,l.createElement);function $s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xs(e,t){return Xs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xs(e,t)}function Js(e,t){if("function"!==typeof t&&null!==t)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&&Xs(e,t)}function el(e){return el=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},el(e)}function tl(e){return tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tl(e)}function nl(e,t){if(t&&("object"===tl(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $s(e)}function rl(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(sI){return!1}}();return function(){var n,r=el(e);if(t){var i=el(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nl(this,n)}}var il=n(4758),ol=n.n(il),al=l.createContext(),sl=l.createContext();function ll(e){var t=e.children,n=l.useState(null),r=n[0],i=n[1],o=l.useRef(!1);l.useEffect((function(){return function(){o.current=!0}}),[]);var a=l.useCallback((function(e){o.current||i(e)}),[]);return l.createElement(al.Provider,{value:r},l.createElement(sl.Provider,{value:a},t))}var ul=function(e){return Array.isArray(e)?e[0]:e},cl=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},fl=function(e,t){if("function"===typeof e)return cl(e,t);null!=e&&(e.current=t)},dl=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},hl="undefined"!==typeof window&&window.document&&window.document.createElement?l.useLayoutEffect:l.useEffect,pl=n(6176),vl=n(6847),ml=n.n(vl),gl=[],yl=function(){},bl=function(){return Promise.resolve(null)},_l=[];function xl(e){var t=e.placement,n=void 0===t?"bottom":t,r=e.strategy,i=void 0===r?"absolute":r,o=e.modifiers,a=void 0===o?_l:o,s=e.referenceElement,u=e.onFirstUpdate,c=e.innerRef,f=e.children,d=l.useContext(al),h=l.useState(null),p=h[0],v=h[1],m=l.useState(null),g=m[0],y=m[1];l.useEffect((function(){fl(c,p)}),[c,p]);var b=l.useMemo((function(){return{placement:n,strategy:i,onFirstUpdate:u,modifiers:[].concat(a,[{name:"arrow",enabled:null!=g,options:{element:g}}])}}),[n,i,u,a,g]),_=function(e,t,n){void 0===n&&(n={});var r=l.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||gl},o=l.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=o[0],s=o[1],u=l.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);s({styles:dl(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:dl(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),c=l.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return ml()(r.current,e)?r.current||e:(r.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),f=l.useRef();return hl((function(){f.current&&f.current.setOptions(c)}),[c]),hl((function(){if(null!=e&&null!=t){var r=(n.createPopper||pl.fi)(e,t,c);return f.current=r,function(){r.destroy(),f.current=null}}}),[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:a.styles,attributes:a.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}}(s||d,p,b),x=_.state,w=_.styles,k=_.forceUpdate,S=_.update,C=l.useMemo((function(){return{ref:v,style:w.popper,placement:x?x.placement:n,hasPopperEscaped:x&&x.modifiersData.hide?x.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:x&&x.modifiersData.hide?x.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:w.arrow,ref:y},forceUpdate:k||yl,update:S||bl}}),[v,y,n,x,w,S,k]);return ul(f)(C)}var wl=n(944),kl=n.n(wl);function Sl(e){var t=e.children,n=e.innerRef,r=l.useContext(sl),i=l.useCallback((function(e){fl(n,e),cl(r,e)}),[n,r]);return l.useEffect((function(){return function(){return fl(n,null)}})),l.useEffect((function(){kl()(Boolean(r),"`Reference` should not be used outside of a `Manager` component.")}),[r]),ul(t)({ref:i})}var Cl=!1,El=l.createContext(null),Tl="unmounted",Ml="exited",Ol="entering",Pl="entered",jl="exiting",Nl=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Ml,r.appearStatus=Ol):i=Pl:i=t.unmountOnExit||t.mountOnEnter?Tl:Ml,r.state={status:i},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Xs(t,n),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Tl?{status:Ml}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ol&&n!==Pl&&(t=Ol):n!==Ol&&n!==Pl||(t=jl)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Ol?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Ml&&this.setState({status:Tl})},i.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[o.findDOMNode(this),r],a=i[0],s=i[1],l=this.getTimeouts(),u=r?l.appear:l.enter;!e&&!n||Cl?this.safeSetState({status:Pl},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,s),this.safeSetState({status:Ol},(function(){t.props.onEntering(a,s),t.onTransitionEnd(u,(function(){t.safeSetState({status:Pl},(function(){t.props.onEntered(a,s)}))}))})))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:o.findDOMNode(this);t&&!Cl?(this.props.onExit(r),this.safeSetState({status:jl},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ml},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ml},(function(){e.props.onExited(r)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],s=i[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===Tl)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,b(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l.createElement(El.Provider,{value:null},"function"===typeof n?n(e,r):l.cloneElement(l.Children.only(n),r))},r}(l.Component);function Dl(){}Nl.contextType=El,Nl.propTypes={},Nl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Dl,onEntering:Dl,onEntered:Dl,onExit:Dl,onExiting:Dl,onExited:Dl},Nl.UNMOUNTED=Tl,Nl.EXITED=Ml,Nl.ENTERING=Ol,Nl.ENTERED=Pl,Nl.EXITING=jl;var Rl,Ll,Al=Nl;function Il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Il(Object(n),!0).forEach((function(t){zl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bl(){return Bl=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},Bl.apply(this,arguments)}function Ul(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Vl(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function Hl(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function Wl(){return document.body.clientWidth<window.innerWidth}function Zl(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function Yl(){var e=Vl(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;Wl()&&Hl(n+e)}function ql(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ll;return t?e.split(" ").map((function(e){return t[e]||e})).join(" "):e}function Gl(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function Kl(e,t){for(var n,r=Array.isArray(t)?t:[t],i=r.length,o={};i>0;)o[n=r[i-=1]]=e[n];return o}var Ql={};function $l(e){Ql[e]||("undefined"!==typeof console&&console.error(e),Ql[e]=!0)}function Xl(e,t){return function(n,r,i){null!==n[r]&&"undefined"!==typeof n[r]&&$l('"'.concat(r,'" property of "').concat(i,'" has been deprecated.\n').concat(t));for(var o=arguments.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return e.apply(void 0,[n,r,i].concat(a))}}var Jl="object"===typeof window&&window.Element||function(){};function eu(e,t,n){if(!(e[t]instanceof Jl))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var tu=Rs.oneOfType([Rs.string,Rs.func,eu,Rs.shape({current:Rs.any})]),nu=Rs.oneOfType([Rs.func,Rs.string,Rs.shape({$$typeof:Rs.symbol,render:Rs.func}),Rs.arrayOf(Rs.oneOfType([Rs.func,Rs.string,Rs.shape({$$typeof:Rs.symbol,render:Rs.func})]))]),ru={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},iu=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],ou={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},au={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},su=["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"],lu=!("undefined"===typeof window||!window.document||!window.document.createElement);function uu(e){return!(!e||"object"!==typeof e)&&"current"in e}function cu(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function fu(e){var t=typeof e;if("number"===t)return e;if("symbol"===t||"object"===t&&"[object Symbol]"===cu(e))return NaN;if(du(e)){var n="function"===typeof e.valueOf?e.valueOf():e;e=du(n)?"".concat(n):n}if("string"!==t)return 0===e?e:+e;e=e.replace(/^\s+|\s+$/g,"");var 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)?NaN:+e}function du(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)}function hu(e){if(!du(e))return!1;var t=cu(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object Proxy]"===t}function pu(e){if(uu(e))return e.current;if(hu(e))return e();if("string"===typeof e&&lu){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#".concat(e))),!t.length)throw new Error("The target '".concat(e,"' could not be identified in the dom, tip: check spelling"));return t}return e}function vu(e){return null!==e&&(Array.isArray(e)||lu&&"number"===typeof e.length)}function mu(e,t){var n=pu(e);return t?vu(n)?n:null===n?[]:[n]:vu(n)?n[0]:n}var gu=["touchstart","click"];function yu(e,t,n,r){var i=e;vu(i)||(i=[i]);var o=n;if("string"===typeof o&&(o=o.split(/\s+/)),!vu(i)||"function"!==typeof t||!Array.isArray(o))throw new Error("\n The first argument of this function must be DOM node or an array on DOM nodes or NodeList.\n The second must be a function.\n The third is a string or an array of strings that represents DOM events\n ");return Array.prototype.forEach.call(o,(function(e){Array.prototype.forEach.call(i,(function(n){n.addEventListener(e,t,r)}))})),function(){Array.prototype.forEach.call(o,(function(e){Array.prototype.forEach.call(i,(function(n){n.removeEventListener(e,t,r)}))}))}}var bu=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],_u=["className","cssModule","fluid","tag"],xu={tag:nu,fluid:Rs.oneOfType([Rs.bool,Rs.string]),className:Rs.string,cssModule:Rs.object},wu=function(e){var t=e.className,n=e.cssModule,r=e.fluid,i=e.tag,o=Ul(e,_u),a="container";!0===r?a="container-fluid":r&&(a="container-".concat(r));var s=ql(il(t,a),n);return l.createElement(i,Bl({},o,{className:s}))};wu.propTypes=xu,wu.defaultProps={tag:"div"};var ku=["className","cssModule","noGutters","tag","form","widths"],Su=Rs.oneOfType([Rs.number,Rs.string]),Cu={tag:nu,noGutters:Xl(Rs.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:Rs.string,cssModule:Rs.object,form:Rs.bool,xs:Su,sm:Su,md:Su,lg:Su,xl:Su,xxl:Su},Eu={tag:"div",widths:["xs","sm","md","lg","xl","xxl"]},Tu=function(e){var t=e.className,n=e.cssModule,r=e.noGutters,i=e.tag,o=e.form,a=e.widths,s=Ul(e,ku),u=[];a.forEach((function(t,n){var r=e[t];if(delete s[t],r){var i=!n;u.push(i?"row-cols-".concat(r):"row-cols-".concat(t,"-").concat(r))}}));var c=ql(il(t,r?"gx-0":null,o?"form-row":"row",u),n);return l.createElement(i,Bl({},s,{className:c}))};Tu.propTypes=Cu,Tu.defaultProps=Eu;var Mu=Tu,Ou=["className","cssModule","widths","tag"],Pu=["xs","sm","md","lg","xl","xxl"],ju=Rs.oneOfType([Rs.number,Rs.string]),Nu=Rs.oneOfType([Rs.bool,Rs.number,Rs.string,Rs.shape({size:Rs.oneOfType([Rs.bool,Rs.number,Rs.string]),order:ju,offset:ju})]),Du={tag:nu,xs:Nu,sm:Nu,md:Nu,lg:Nu,xl:Nu,xxl:Nu,className:Rs.string,cssModule:Rs.object,widths:Rs.array},Ru={tag:"div",widths:Pu},Lu=function(e,t,n){return!0===n||""===n?e?"col":"col-".concat(t):"auto"===n?e?"col-auto":"col-".concat(t,"-auto"):e?"col-".concat(n):"col-".concat(t,"-").concat(n)},Au=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pu,r=[];return n.forEach((function(n,i){var o=e[n];if(delete e[n],o||""===o){var a=!i;if(du(o)){var s,l=a?"-":"-".concat(n,"-"),u=Lu(a,n,o.size);r.push(ql(il((He(s={},u,o.size||""===o.size),He(s,"order".concat(l).concat(o.order),o.order||0===o.order),He(s,"offset".concat(l).concat(o.offset),o.offset||0===o.offset),s)),t))}else{var c=Lu(a,n,o);r.push(c)}}})),{colClasses:r,attributes:e}},Iu=function(e){var t=e.className,n=e.cssModule,r=e.widths,i=e.tag,o=Ul(e,Ou),a=Au(o,n,r),s=a.attributes,u=a.colClasses;u.length||u.push("col");var c=ql(il(t,u),n);return l.createElement(i,Bl({},s,{className:c}))};Iu.propTypes=Du,Iu.defaultProps=Ru;var Fu=Iu,zu=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"],Bu={light:Rs.bool,dark:Rs.bool,full:Rs.bool,fixed:Rs.string,sticky:Rs.string,color:Rs.string,role:Rs.string,tag:nu,container:Rs.oneOfType([Rs.bool,Rs.string]),className:Rs.string,cssModule:Rs.object,expand:Rs.oneOfType([Rs.bool,Rs.string]),children:Rs.node},Uu=function(e){var t,n=e.expand,r=e.className,i=e.cssModule,o=e.light,a=e.dark,s=e.fixed,u=e.sticky,c=e.color,f=e.container,d=e.tag,h=e.children,p=Ul(e,zu),v=ql(il(r,"navbar",function(e){return!1!==e&&(!0===e||"xs"===e?"navbar-expand":"navbar-expand-".concat(e))}(n),(He(t={"navbar-light":o,"navbar-dark":a},"bg-".concat(c),c),He(t,"fixed-".concat(s),s),He(t,"sticky-".concat(u),u),t)),i),m=f&&!0===f?"container":"container-".concat(f);return l.createElement(d,Bl({},p,{className:v}),f?l.createElement("div",{className:m},h):h)};Uu.propTypes=Bu,Uu.defaultProps={tag:"nav",expand:!1,container:"fluid"};var Vu=Uu,Hu=["className","cssModule","tag"],Wu={tag:nu,className:Rs.string,cssModule:Rs.object},Zu=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,Hu),o=ql(il(t,"navbar-brand"),n);return l.createElement(r,Bl({},i,{className:o}))};Zu.propTypes=Wu,Zu.defaultProps={tag:"a"};var Yu=Zu,qu=["className","cssModule","active","tag"],Gu={tag:nu,className:Rs.string,cssModule:Rs.object},Ku=function(e){var t=e.className,n=e.cssModule,r=(e.active,e.tag),i=Ul(e,qu),o=ql(il(t,"navbar-text"),n);return l.createElement(r,Bl({},i,{className:o}))};Ku.propTypes=Gu,Ku.defaultProps={tag:"span"};var Qu=["className","cssModule","children","tag"],$u={tag:nu,type:Rs.string,className:Rs.string,cssModule:Rs.object,children:Rs.node},Xu=function(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=Ul(e,Qu),a=ql(il(t,"navbar-toggler"),n);return l.createElement(i,Bl({"aria-label":"Toggle navigation"},o,{className:a}),r||l.createElement("span",{className:ql("navbar-toggler-icon",n)}))};Xu.propTypes=$u,Xu.defaultProps={tag:"button",type:"button"};var Ju=Xu,ec=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"],tc={tabs:Rs.bool,pills:Rs.bool,vertical:Rs.oneOfType([Rs.bool,Rs.string]),horizontal:Rs.string,justified:Rs.bool,fill:Rs.bool,navbar:Rs.bool,card:Rs.bool,tag:nu,className:Rs.string,cssModule:Rs.object},nc=function(e){var t=e.className,n=e.cssModule,r=e.tabs,i=e.pills,o=e.vertical,a=e.horizontal,s=e.justified,u=e.fill,c=e.navbar,f=e.card,d=e.tag,h=Ul(e,ec),p=ql(il(t,c?"navbar-nav":"nav",!!a&&"justify-content-".concat(a),function(e){return!1!==e&&(!0===e||"xs"===e?"flex-column":"flex-".concat(e,"-column"))}(o),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":i,"card-header-pills":f&&i,"nav-justified":s,"nav-fill":u}),n);return l.createElement(d,Bl({},h,{className:p}))};nc.propTypes=tc,nc.defaultProps={tag:"ul",vertical:!1};var rc=nc,ic=["className","cssModule","active","tag"],oc={tag:nu,active:Rs.bool,className:Rs.string,cssModule:Rs.object},ac=function(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=Ul(e,ic),a=ql(il(t,"nav-item",!!r&&"active"),n);return l.createElement(i,Bl({},o,{className:a}))};ac.propTypes=oc,ac.defaultProps={tag:"li"};var sc=ac,lc=["className","cssModule","active","tag","innerRef"],uc={tag:nu,innerRef:Rs.oneOfType([Rs.object,Rs.func,Rs.string]),disabled:Rs.bool,active:Rs.bool,className:Rs.string,cssModule:Rs.object,onClick:Rs.func,href:Rs.any},cc=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).onClick=r.onClick.bind($s(r)),r}return Vt(n,[{key:"onClick",value:function(e){this.props.disabled?e.preventDefault():("#"===this.props.href&&e.preventDefault(),this.props.onClick&&this.props.onClick(e))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=e.innerRef,a=Ul(e,lc),s=ql(il(t,"nav-link",{disabled:a.disabled,active:r}),n);return l.createElement(i,Bl({},a,{ref:o,onClick:this.onClick,className:s}))}}]),n}(l.Component);cc.propTypes=uc,cc.defaultProps={tag:"a"};var fc=cc,dc=["className","listClassName","cssModule","children","tag","listTag","aria-label"],hc={tag:nu,listTag:nu,className:Rs.string,listClassName:Rs.string,cssModule:Rs.object,children:Rs.node,"aria-label":Rs.string},pc=function(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.children,o=e.tag,a=e.listTag,s=e["aria-label"],u=Ul(e,dc),c=ql(il(t),r),f=ql(il("breadcrumb",n),r);return l.createElement(o,Bl({},u,{className:c,"aria-label":s}),l.createElement(a,{className:f},i))};pc.propTypes=hc,pc.defaultProps={tag:"nav",listTag:"ol","aria-label":"breadcrumb"};var vc=["className","cssModule","active","tag"],mc={tag:nu,active:Rs.bool,className:Rs.string,cssModule:Rs.object},gc=function(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=Ul(e,vc),a=ql(il(t,!!r&&"active","breadcrumb-item"),n);return l.createElement(i,Bl({},o,{className:a,"aria-current":r?"page":void 0}))};gc.propTypes=mc,gc.defaultProps={tag:"li"};var yc=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],bc={active:Rs.bool,"aria-label":Rs.string,block:Rs.bool,color:Rs.string,disabled:Rs.bool,outline:Rs.bool,tag:nu,innerRef:Rs.oneOfType([Rs.object,Rs.func,Rs.string]),onClick:Rs.func,size:Rs.string,children:Rs.node,className:Rs.string,cssModule:Rs.object,close:Rs.bool},_c=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).onClick=r.onClick.bind($s(r)),r}return Vt(n,[{key:"onClick",value:function(e){if(!this.props.disabled)return this.props.onClick?this.props.onClick(e):void 0;e.preventDefault()}},{key:"render",value:function(){var e=this.props,t=e.active,n=e["aria-label"],r=e.block,i=e.className,o=e.close,a=e.cssModule,s=e.color,u=e.outline,c=e.size,f=e.tag,d=e.innerRef,h=Ul(e,yc),p="btn".concat(u?"-outline":"","-").concat(s),v=ql(il(i,o&&"btn-close",o||"btn",o||p,!!c&&"btn-".concat(c),!!r&&"d-block w-100",{active:t,disabled:this.props.disabled}),a);h.href&&"button"===f&&(f="a");var m=o?"Close":null;return l.createElement(f,Bl({type:"button"===f&&h.onClick?"button":void 0},h,{className:v,ref:d,onClick:this.onClick,"aria-label":n||m}))}}]),n}(l.Component);_c.propTypes=bc,_c.defaultProps={color:"secondary",tag:"button"};var xc=_c,wc=["className"],kc={onClick:Rs.func,onBlur:Rs.func,onFocus:Rs.func,defaultValue:Rs.bool},Sc=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={toggled:e.defaultValue,focus:!1},r.onBlur=r.onBlur.bind($s(r)),r.onFocus=r.onFocus.bind($s(r)),r.onClick=r.onClick.bind($s(r)),r}return Vt(n,[{key:"onBlur",value:function(e){this.props.onBlur&&this.props.onBlur(e),this.setState({focus:!1})}},{key:"onFocus",value:function(e){this.props.onFocus&&this.props.onFocus(e),this.setState({focus:!0})}},{key:"onClick",value:function(e){this.props.onClick&&this.props.onClick(e),this.setState((function(e){return{toggled:!e.toggled}}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=Ul(e,wc),r=ql(il(t,{focus:this.state.focus}),this.props.cssModule);return l.createElement(xc,Bl({active:this.state.toggled,onBlur:this.onBlur,onFocus:this.onFocus,onClick:this.onClick,className:r},n))}}]),n}(l.Component);Sc.propTypes=kc,Sc.defaultProps={defaultValue:!1};var Cc=l.createContext({}),Ec=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"],Tc={a11y:Rs.bool,disabled:Rs.bool,direction:Rs.oneOf(["up","down","start","end","left","right"]),group:Rs.bool,isOpen:Rs.bool,nav:Rs.bool,active:Rs.bool,size:Rs.string,tag:nu,toggle:Rs.func,children:Rs.node,className:Rs.string,cssModule:Rs.object,inNavbar:Rs.bool,setActiveFromChild:Rs.bool,menuRole:Rs.oneOf(["listbox","menu"])},Mc=[au.space,au.enter,au.up,au.down,au.end,au.home],Oc=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).addEvents=r.addEvents.bind($s(r)),r.handleDocumentClick=r.handleDocumentClick.bind($s(r)),r.handleKeyDown=r.handleKeyDown.bind($s(r)),r.removeEvents=r.removeEvents.bind($s(r)),r.toggle=r.toggle.bind($s(r)),r.handleMenuRef=r.handleMenuRef.bind($s(r)),r.containerRef=l.createRef(),r.menuRef=l.createRef(),r}return Vt(n,[{key:"handleMenuRef",value:function(e){this.menuRef.current=e}},{key:"getContextValue",value:function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:"down"===this.props.direction&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,menuRole:this.props.menuRole}}},{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(e){this.props.isOpen!==e.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"getContainer",value:function(){return this.containerRef.current}},{key:"getMenu",value:function(){return this.menuRef.current}},{key:"getMenuCtrl",value:function(){return this._$menuCtrl||(this._$menuCtrl=this.getContainer().querySelector("[aria-expanded]")),this._$menuCtrl}},{key:"getItemType",value:function(){return"listbox"===this.context.menuRole?"option":"menuitem"}},{key:"getMenuItems",value:function(){var e=this.getMenu()||this.getContainer();return[].slice.call(e.querySelectorAll('[role="'.concat(this.getItemType(),'"]')))}},{key:"addEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach((function(t){return document.addEventListener(t,e.handleDocumentClick,!0)}))}},{key:"removeEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach((function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)}))}},{key:"handleDocumentClick",value:function(e){if(!e||3!==e.which&&("keyup"!==e.type||e.which===au.tab)){var t=this.getContainer(),n=this.getMenu(),r=t.contains(e.target)&&t!==e.target,i=t.classList.contains("input-group")&&t.classList.contains("dropdown")&&"INPUT"===e.target.tagName,o=n&&n.contains(e.target)&&n!==e.target;(!(r&&!i||o)||"keyup"===e.type&&e.which!==au.tab)&&this.toggle(e)}}},{key:"handleKeyDown",value:function(e){var t=this,n="menuitem"===e.target.getAttribute("role")||"option"===e.target.getAttribute("role"),r=this.getMenuCtrl()===e.target,i=au.tab===e.which;if(!(/input|textarea/i.test(e.target.tagName)||i&&!this.props.a11y||i&&!n&&!r)&&((-1!==Mc.indexOf(e.which)||e.which>=48&&e.which<=90)&&e.preventDefault(),!this.props.disabled&&(r&&([au.space,au.enter,au.up,au.down].indexOf(e.which)>-1?(this.props.isOpen||this.toggle(e),setTimeout((function(){return t.getMenuItems()[0].focus()}))):this.props.isOpen&&i?(e.preventDefault(),this.getMenuItems()[0].focus()):this.props.isOpen&&e.which===au.esc&&this.toggle(e)),this.props.isOpen&&n)))if([au.tab,au.esc].indexOf(e.which)>-1)this.toggle(e),this.getMenuCtrl().focus();else if([au.space,au.enter].indexOf(e.which)>-1)e.target.click(),this.getMenuCtrl().focus();else if([au.down,au.up].indexOf(e.which)>-1||[au.n,au.p].indexOf(e.which)>-1&&e.ctrlKey){var o=this.getMenuItems(),a=o.indexOf(e.target);au.up===e.which||au.p===e.which&&e.ctrlKey?a=0!==a?a-1:o.length-1:(au.down===e.which||au.n===e.which&&e.ctrlKey)&&(a=a===o.length-1?0:a+1),o[a].focus()}else if(au.end===e.which){var s=this.getMenuItems();s[s.length-1].focus()}else if(au.home===e.which){this.getMenuItems()[0].focus()}else if(e.which>=48&&e.which<=90)for(var l=this.getMenuItems(),u=String.fromCharCode(e.which).toLowerCase(),c=0;c<l.length;c+=1){if((l[c].textContent&&l[c].textContent[0].toLowerCase())===u){l[c].focus();break}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){var e,t,n=Gl(this.props,["toggle","disabled","inNavbar","a11y"]),r=n.className,i=n.cssModule,o=n.direction,a=n.isOpen,s=n.group,u=n.size,c=n.nav,f=n.setActiveFromChild,d=n.active,h=n.tag,p=(n.menuRole,Ul(n,Ec)),v=h||(c?"li":"div"),m=!1;f&&l.Children.map(this.props.children[1].props.children,(function(e){e&&e.props.active&&(m=!0)}));var g=ql(il(r,!(!c||!d)&&"active",!(!f||!m)&&"active",(He(e={"btn-group":s},"btn-group-".concat(u),!!u),He(e,"dropdown",!s),He(e,"dropup","up"===o),He(e,"dropstart","start"===o||"left"===o),He(e,"dropend","end"===o||"right"===o),He(e,"show",a),He(e,"nav-item",c),e)),i);return l.createElement(Cc.Provider,{value:this.getContextValue()},l.createElement(ll,null,l.createElement(v,Bl({},p,(He(t={},"string"===typeof v?"ref":"innerRef",this.containerRef),He(t,"onKeyDown",this.handleKeyDown),He(t,"className",g),t)))))}}]),n}(l.Component);Oc.propTypes=Tc,Oc.defaultProps={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1};var Pc=Oc,jc={children:Rs.node},Nc=function(e){return l.createElement(Pc,Bl({group:!0},e))};Nc.propTypes=jc;var Dc=Nc,Rc=["className","cssModule","size","vertical","tag"],Lc={tag:nu,"aria-label":Rs.string,className:Rs.string,cssModule:Rs.object,role:Rs.string,size:Rs.string,vertical:Rs.bool},Ac=function(e){var t=e.className,n=e.cssModule,r=e.size,i=e.vertical,o=e.tag,a=Ul(e,Rc),s=ql(il(t,!!r&&"btn-group-"+r,i?"btn-group-vertical":"btn-group"),n);return l.createElement(o,Bl({},a,{className:s}))};Ac.propTypes=Lc,Ac.defaultProps={tag:"div",role:"group"};var Ic=["className","cssModule","tag"],Fc={tag:nu,"aria-label":Rs.string,className:Rs.string,cssModule:Rs.object,role:Rs.string},zc=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,Ic),o=ql(il(t,"btn-toolbar"),n);return l.createElement(r,Bl({},i,{className:o}))};zc.propTypes=Fc,zc.defaultProps={tag:"div",role:"toolbar"};var Bc=["className","cssModule","divider","tag","header","active","text"],Uc={children:Rs.node,active:Rs.bool,disabled:Rs.bool,divider:Rs.bool,tag:nu,header:Rs.bool,onClick:Rs.func,className:Rs.string,cssModule:Rs.object,toggle:Rs.bool,text:Rs.bool},Vc=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).onClick=r.onClick.bind($s(r)),r.getTabIndex=r.getTabIndex.bind($s(r)),r}return Vt(n,[{key:"getRole",value:function(){return"listbox"===this.context.menuRole?"option":"menuitem"}},{key:"onClick",value:function(e){var t=this.props,n=t.disabled,r=t.header,i=t.divider,o=t.text;n||r||i||o?e.preventDefault():(this.props.onClick&&this.props.onClick(e),this.props.toggle&&this.context.toggle(e))}},{key:"getTabIndex",value:function(){var e=this.props,t=e.disabled,n=e.header,r=e.divider,i=e.text;return t||n||r||i?"-1":"0"}},{key:"render",value:function(){var e=this.getTabIndex(),t=e>-1?this.getRole():void 0,n=Gl(this.props,["toggle"]),r=n.className,i=n.cssModule,o=n.divider,a=n.tag,s=n.header,u=n.active,c=n.text,f=Ul(n,Bc),d=ql(il(r,{disabled:f.disabled,"dropdown-item":!o&&!s&&!c,active:u,"dropdown-header":s,"dropdown-divider":o,"dropdown-item-text":c}),i);return"button"===a&&(s?a="h6":o?a="div":f.href?a="a":c&&(a="span")),l.createElement(a,Bl({type:"button"===a&&(f.onClick||this.props.toggle)?"button":void 0},f,{tabIndex:e,role:t,className:d,onClick:this.onClick}))}}]),n}(l.Component);Vc.propTypes=Uc,Vc.defaultProps={tag:"button",toggle:!0},Vc.contextType=Cc;var Hc=Vc,Wc=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container"],Zc={tag:nu,children:Rs.node.isRequired,dark:Rs.bool,end:Rs.bool,flip:Rs.bool,modifiers:Rs.array,className:Rs.string,cssModule:Rs.object,persist:Rs.bool,strategy:Rs.string,container:tu,right:Xl(Rs.bool,'Please use "end" instead.')},Yc={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},qc=function(e){Js(n,e);var t=rl(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"getRole",value:function(){return"listbox"===this.context.menuRole?"listbox":"menu"}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.cssModule,i=t.dark,a=t.end,s=t.right,u=t.tag,c=t.flip,f=t.modifiers,d=t.persist,h=t.strategy,p=t.container,v=Ul(t,Wc),m=ql(il(n,"dropdown-menu",{"dropdown-menu-dark":i,"dropdown-menu-end":a||s,show:this.context.isOpen}),r),y=u;if(d||this.context.isOpen&&!this.context.inNavbar){var b=Yc[this.context.direction]||"bottom",_=a||s?"end":"start",x="".concat(b,"-").concat(_),w=[].concat(g(f),[{name:"flip",enabled:!!c}]),k=l.createElement(xl,{placement:x,modifiers:w,strategy:h},(function(t){var n=t.ref,r=t.style,i=t.placement,o=Fl(Fl({},e.props.style),r);return l.createElement(y,Bl({tabIndex:"-1",role:e.getRole(),ref:function(t){n(t);var r=e.context.onMenuRef;r&&r(t)}},v,{style:o,"aria-hidden":!e.context.isOpen,className:m,"data-popper-placement":i}))}));return p?o.createPortal(k,mu(p)):k}return l.createElement(y,Bl({tabIndex:"-1",role:this.getRole()},v,{"aria-hidden":!this.context.isOpen,className:m,"data-popper-placement":v.placement}))}}]),n}(l.Component);qc.propTypes=Zc,qc.defaultProps={tag:"div",flip:!0,modifiers:[]},qc.contextType=Cc;var Gc=qc,Kc=["className","color","cssModule","caret","split","nav","tag","innerRef"],Qc={caret:Rs.bool,color:Rs.string,children:Rs.node,className:Rs.string,cssModule:Rs.object,disabled:Rs.bool,onClick:Rs.func,"aria-haspopup":Rs.bool,split:Rs.bool,tag:nu,nav:Rs.bool},$c=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).onClick=r.onClick.bind($s(r)),r}return Vt(n,[{key:"onClick",value:function(e){this.props.disabled||this.context.disabled?e.preventDefault():(this.props.nav&&!this.props.tag&&e.preventDefault(),this.props.onClick&&this.props.onClick(e),this.context.toggle(e))}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.className,i=n.color,o=n.cssModule,a=n.caret,s=n.split,u=n.nav,c=n.tag,f=n.innerRef,d=Ul(n,Kc),h=d["aria-label"]||"Toggle Dropdown",p=ql(il(r,{"dropdown-toggle":a||s,"dropdown-toggle-split":s,"nav-link":u}),o),v="undefined"!==typeof d.children?d.children:l.createElement("span",{className:"visually-hidden"},h);return u&&!c?(e="a",d.href="#"):c?e=c:(e=xc,d.color=i,d.cssModule=o),this.context.inNavbar?l.createElement(e,Bl({},d,{className:p,onClick:this.onClick,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:v})):l.createElement(Sl,{innerRef:f},(function(n){var r,i=n.ref;return l.createElement(e,Bl({},d,(He(r={},"string"===typeof e?"ref":"innerRef",i),He(r,"className",p),He(r,"onClick",t.onClick),He(r,"aria-expanded",t.context.isOpen),He(r,"aria-haspopup",t.getRole()),He(r,"children",v),r)))}))}}]),n}(l.Component);$c.propTypes=Qc,$c.defaultProps={color:"secondary","aria-haspopup":!0},$c.contextType=Cc;var Xc=$c,Jc=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"],ef=Fl(Fl({},Al.propTypes),{},{children:Rs.oneOfType([Rs.arrayOf(Rs.node),Rs.node]),tag:nu,baseClass:Rs.string,baseClassActive:Rs.string,className:Rs.string,cssModule:Rs.object,innerRef:Rs.oneOfType([Rs.object,Rs.string,Rs.func])}),tf=Fl(Fl({},Al.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:ru.Fade,appear:!0,enter:!0,exit:!0,in:!0});function nf(e){var t=e.tag,n=e.baseClass,r=e.baseClassActive,i=e.className,o=e.cssModule,a=e.children,s=e.innerRef,u=Ul(e,Jc),c=Kl(u,iu),f=Gl(u,iu);return l.createElement(Al,c,(function(e){var u=ql(il(i,n,"entered"===e&&r),o);return l.createElement(t,Bl({className:u},f,{ref:s}),a)}))}nf.propTypes=ef,nf.defaultProps=tf;var rf=l.createContext({}),of=["flush","open","toggle","className","cssModule","tag","innerRef"],af={tag:nu,className:Rs.string,cssModule:Rs.object,innerRef:Rs.oneOfType([Rs.object,Rs.string,Rs.func]),children:Rs.node,flush:Rs.bool,open:Rs.oneOfType([Rs.array,Rs.string]).isRequired,toggle:Rs.func.isRequired},sf=function(e){var t=e.flush,n=e.open,r=e.toggle,i=e.className,o=e.cssModule,a=e.tag,s=e.innerRef,u=Ul(e,of),c=ql(il(i,"accordion",{"accordion-flush":t}),o),f=(0,l.useMemo)((function(){return{open:n,toggle:r}}));return l.createElement(rf.Provider,{value:f},l.createElement(a,Bl({},u,{className:c,ref:s})))};sf.propTypes=af,sf.defaultProps={tag:"div"};var lf=sf,uf={tag:nu,className:Rs.string,cssModule:Rs.object,innerRef:Rs.oneOfType([Rs.object,Rs.string,Rs.func]),children:Rs.node,defaultOpen:Rs.oneOfType([Rs.array,Rs.string]),stayOpen:Rs.bool};lf.propTypes=uf,lf.defaultProps={tag:"div"};var cf=["className","cssModule","tag","innerRef","children","targetId"],ff={tag:nu,className:Rs.string,cssModule:Rs.object,innerRef:Rs.oneOfType([Rs.object,Rs.string,Rs.func]),children:Rs.node,targetId:Rs.string.isRequired},df=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=e.innerRef,o=e.children,a=e.targetId,s=Ul(e,cf),u=(0,l.useContext)(rf),c=u.open,f=u.toggle,d=ql(il(t,"accordion-header"),n),h=ql(il("accordion-button",{collapsed:!(Array.isArray(c)?c.includes(a):c===a)}),n);return l.createElement(r,Bl({},s,{className:d,ref:i}),l.createElement("button",{type:"button",className:h,onClick:function(){return f(a)}},o))};df.propTypes=ff,df.defaultProps={tag:"h2"};var hf=["className","cssModule","tag","innerRef"],pf={tag:nu,className:Rs.string,cssModule:Rs.object,innerRef:Rs.oneOfType([Rs.object,Rs.string,Rs.func]),children:Rs.node},vf=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=e.innerRef,o=Ul(e,hf),a=ql(il(t,"accordion-item"),n);return l.createElement(r,Bl({},o,{className:a,ref:i}))};vf.propTypes=pf,vf.defaultProps={tag:"div"};var mf=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],gf=Fl(Fl({},Al.propTypes),{},{horizontal:Rs.bool,isOpen:Rs.bool,children:Rs.oneOfType([Rs.arrayOf(Rs.node),Rs.node]),tag:nu,className:Rs.node,navbar:Rs.bool,cssModule:Rs.object,innerRef:Rs.oneOfType([Rs.func,Rs.string,Rs.object])}),yf=Fl(Fl({},Al.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:ru.Collapse}),bf=(He(Rl={},ou.ENTERING,"collapsing"),He(Rl,ou.ENTERED,"collapse show"),He(Rl,ou.EXITING,"collapsing"),He(Rl,ou.EXITED,"collapse"),Rl);var _f=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={dimension:null},["onEntering","onEntered","onExit","onExiting","onExited"].forEach((function(e){r[e]=r[e].bind($s(r))})),r}return Vt(n,[{key:"getDimension",value:function(e){return this.props.horizontal?e.scrollWidth:e.scrollHeight}},{key:"onEntering",value:function(e,t){this.setState({dimension:this.getDimension(e)}),this.props.onEntering(e,t)}},{key:"onEntered",value:function(e,t){this.setState({dimension:null}),this.props.onEntered(e,t)}},{key:"onExit",value:function(e){this.setState({dimension:this.getDimension(e)}),this.props.onExit(e)}},{key:"onExiting",value:function(e){this.getDimension(e),this.setState({dimension:0}),this.props.onExiting(e)}},{key:"onExited",value:function(e){this.setState({dimension:null}),this.props.onExited(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.tag,r=t.horizontal,i=t.isOpen,o=t.className,a=t.navbar,s=t.cssModule,u=t.children,c=(t.innerRef,Ul(t,mf)),f=this.state.dimension,d=Kl(c,iu),h=Gl(c,iu);return l.createElement(Al,Bl({},d,{in:i,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),(function(t){var i=function(e){return bf[e]||"collapse"}(t),c=ql(il(o,r&&"collapse-horizontal",i,a&&"navbar-collapse"),s),d=null===f?null:He({},r?"width":"height",f);return l.createElement(n,Bl({},h,{style:Fl(Fl({},h.style),d),className:c,ref:e.props.innerRef}),u)}))}}]),n}(l.Component);_f.propTypes=gf,_f.defaultProps=yf;var xf=_f,wf=["className","cssModule","tag","innerRef","children","accordionId"],kf={tag:nu,className:Rs.string,cssModule:Rs.object,innerRef:Rs.oneOfType([Rs.object,Rs.string,Rs.func]),children:Rs.node,accordionId:Rs.string.isRequired},Sf=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=e.innerRef,o=e.children,a=e.accordionId,s=Ul(e,wf),u=(0,l.useContext)(rf).open,c=ql(il(t,"accordion-collapse"),n);return l.createElement(xf,Bl({},s,{className:c,ref:i,isOpen:Array.isArray(u)?u.includes(a):u===a}),l.createElement(r,{className:"accordion-body"},o))};Sf.propTypes=kf,Sf.defaultProps={tag:"div"};var Cf=["className","cssModule","color","innerRef","pill","tag"],Ef={color:Rs.string,pill:Rs.bool,tag:nu,innerRef:Rs.oneOfType([Rs.object,Rs.func,Rs.string]),children:Rs.node,className:Rs.string,cssModule:Rs.object},Tf=function(e){var t=e.className,n=e.cssModule,r=e.color,i=e.innerRef,o=e.pill,a=e.tag,s=Ul(e,Cf),u=ql(il(t,"badge","bg-"+r,!!o&&"rounded-pill"),n);return s.href&&"span"===a&&(a="a"),l.createElement(a,Bl({},s,{className:u,ref:i}))};Tf.propTypes=Ef,Tf.defaultProps={color:"secondary",pill:!1,tag:"span"};var Mf=["className","cssModule","color","body","inverse","outline","tag","innerRef"],Of={tag:nu,inverse:Rs.bool,color:Rs.string,body:Rs.bool,outline:Rs.bool,className:Rs.string,cssModule:Rs.object,innerRef:Rs.oneOfType([Rs.object,Rs.string,Rs.func])},Pf=function(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,u=e.innerRef,c=Ul(e,Mf),f=ql(il(t,"card",!!o&&"text-white",!!i&&"card-body",!!r&&"".concat(a?"border":"bg","-").concat(r)),n);return l.createElement(s,Bl({},c,{className:f,ref:u}))};Pf.propTypes=Of,Pf.defaultProps={tag:"div"};var jf=Pf,Nf=["className","cssModule","tag"],Df={tag:nu,className:Rs.string,cssModule:Rs.object},Rf=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,Nf),o=ql(il(t,"card-group"),n);return l.createElement(r,Bl({},i,{className:o}))};Rf.propTypes=Df,Rf.defaultProps={tag:"div"};var Lf=["className","cssModule","tag"],Af={tag:nu,className:Rs.string,cssModule:Rs.object},If=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,Lf),o=ql(il(t,"card-deck"),n);return l.createElement(r,Bl({},i,{className:o}))};If.propTypes=Af,If.defaultProps={tag:"div"};var Ff=["className","cssModule","tag"],zf={tag:nu,className:Rs.string,cssModule:Rs.object},Bf=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,Ff),o=ql(il(t,"card-columns"),n);return l.createElement(r,Bl({},i,{className:o}))};Bf.propTypes=zf,Bf.defaultProps={tag:"div"};var Uf=["className","cssModule","innerRef","tag"],Vf={tag:nu,className:Rs.string,cssModule:Rs.object,innerRef:Rs.oneOfType([Rs.object,Rs.string,Rs.func])},Hf=function(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=Ul(e,Uf),a=ql(il(t,"card-body"),n);return l.createElement(i,Bl({},o,{className:a,ref:r}))};Hf.propTypes=Vf,Hf.defaultProps={tag:"div"};var Wf=Hf,Zf=["className","cssModule","tag","innerRef"],Yf={tag:nu,innerRef:Rs.oneOfType([Rs.object,Rs.func,Rs.string]),className:Rs.string,cssModule:Rs.object},qf=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=e.innerRef,o=Ul(e,Zf),a=ql(il(t,"card-link"),n);return l.createElement(r,Bl({},o,{ref:i,className:a}))};qf.propTypes=Yf,qf.defaultProps={tag:"a"};var Gf=["className","cssModule","tag"],Kf={tag:nu,className:Rs.string,cssModule:Rs.object},Qf=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,Gf),o=ql(il(t,"card-footer"),n);return l.createElement(r,Bl({},i,{className:o}))};Qf.propTypes=Kf,Qf.defaultProps={tag:"div"};var $f=Qf,Xf=["className","cssModule","tag"],Jf={tag:nu,className:Rs.string,cssModule:Rs.object},ed=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,Xf),o=ql(il(t,"card-header"),n);return l.createElement(r,Bl({},i,{className:o}))};ed.propTypes=Jf,ed.defaultProps={tag:"div"};var td=ed,nd=["className","cssModule","top","bottom","tag"],rd={tag:nu,top:Rs.bool,bottom:Rs.bool,className:Rs.string,cssModule:Rs.object},id=function(e){var t=e.className,n=e.cssModule,r=e.top,i=e.bottom,o=e.tag,a=Ul(e,nd),s="card-img";r&&(s="card-img-top"),i&&(s="card-img-bottom");var u=ql(il(t,s),n);return l.createElement(o,Bl({},a,{className:u}))};id.propTypes=rd,id.defaultProps={tag:"img"};var od=["className","cssModule","tag"],ad={tag:nu,className:Rs.string,cssModule:Rs.object},sd=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,od),o=ql(il(t,"card-img-overlay"),n);return l.createElement(r,Bl({},i,{className:o}))};sd.propTypes=ad,sd.defaultProps={tag:"div"};var ld=["in","children","cssModule","slide","tag","className"],ud=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={startAnimation:!1},r.onEnter=r.onEnter.bind($s(r)),r.onEntering=r.onEntering.bind($s(r)),r.onExit=r.onExit.bind($s(r)),r.onExiting=r.onExiting.bind($s(r)),r.onExited=r.onExited.bind($s(r)),r}return Vt(n,[{key:"onEnter",value:function(e,t){this.setState({startAnimation:!1}),this.props.onEnter(e,t)}},{key:"onEntering",value:function(e,t){var n=e.offsetHeight;return this.setState({startAnimation:!0}),this.props.onEntering(e,t),n}},{key:"onExit",value:function(e){this.setState({startAnimation:!1}),this.props.onExit(e)}},{key:"onExiting",value:function(e){this.setState({startAnimation:!0}),e.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(e)}},{key:"onExited",value:function(e){e.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.in,r=t.children,i=t.cssModule,o=t.slide,a=t.tag,s=t.className,u=Ul(t,ld);return l.createElement(Al,Bl({},u,{enter:o,exit:o,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),(function(t){var n=e.context.direction,o=t===ou.ENTERED||t===ou.EXITING,u=(t===ou.ENTERING||t===ou.EXITING)&&e.state.startAnimation&&("end"===n?"carousel-item-start":"carousel-item-end"),c=ql(il(s,"carousel-item",o&&"active",u,t===ou.ENTERING&&("end"===n?"carousel-item-next":"carousel-item-prev")),i);return l.createElement(a,{className:c},r)}))}}]),n}(l.Component);ud.propTypes=Fl(Fl({},Al.propTypes),{},{tag:nu,in:Rs.bool,cssModule:Rs.object,children:Rs.node,slide:Rs.bool,className:Rs.string}),ud.defaultProps=Fl(Fl({},Al.defaultProps),{},{tag:"div",timeout:ru.Carousel,slide:!0}),ud.contextTypes={direction:Rs.string};var cd=ud,fd=l.createContext({}),dd=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).handleKeyPress=r.handleKeyPress.bind($s(r)),r.renderItems=r.renderItems.bind($s(r)),r.hoverStart=r.hoverStart.bind($s(r)),r.hoverEnd=r.hoverEnd.bind($s(r)),r.handleTouchStart=r.handleTouchStart.bind($s(r)),r.handleTouchEnd=r.handleTouchEnd.bind($s(r)),r.touchStartX=0,r.touchStartY=0,r.state={activeIndex:r.props.activeIndex,direction:"end",indicatorClicked:!1},r}return Vt(n,[{key:"getContextValue",value:function(){return{direction:this.state.direction}}},{key:"componentDidMount",value:function(){"carousel"===this.props.ride&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}},{key:"componentDidUpdate",value:function(e,t){t.activeIndex!==this.state.activeIndex&&this.setInterval(this.props)}},{key:"componentWillUnmount",value:function(){this.clearInterval(),document.removeEventListener("keyup",this.handleKeyPress)}},{key:"setInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.clearInterval(),e.interval&&(this.cycleInterval=setInterval((function(){e.next()}),parseInt(e.interval,10)))}))},{key:"clearInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){clearInterval(this.cycleInterval)}))},{key:"hoverStart",value:function(){var e;("hover"===this.props.pause&&this.clearInterval(),this.props.mouseEnter)&&(e=this.props).mouseEnter.apply(e,arguments)}},{key:"hoverEnd",value:function(){var e;("hover"===this.props.pause&&this.setInterval(),this.props.mouseLeave)&&(e=this.props).mouseLeave.apply(e,arguments)}},{key:"handleKeyPress",value:function(e){this.props.keyboard&&(37===e.keyCode?this.props.previous():39===e.keyCode&&this.props.next())}},{key:"handleTouchStart",value:function(e){this.props.enableTouch&&(this.touchStartX=e.changedTouches[0].screenX,this.touchStartY=e.changedTouches[0].screenY)}},{key:"handleTouchEnd",value:function(e){if(this.props.enableTouch){var t=e.changedTouches[0].screenX,n=e.changedTouches[0].screenY,r=Math.abs(this.touchStartX-t);r<Math.abs(this.touchStartY-n)||r<40||(t<this.touchStartX?this.props.next():this.props.previous())}}},{key:"renderItems",value:function(e,t){var n=this,r=this.props.slide;return l.createElement("div",{className:t},e.map((function(e,t){var i=t===n.state.activeIndex;return l.cloneElement(e,{in:i,slide:r})})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.cssModule,r=t.slide,i=t.className,o=t.dark,a=t.fade,s=ql(il(i,"carousel",a,r&&"slide",o&&"carousel-dark"),n),u=ql(il("carousel-inner"),n),c=this.props.children.filter((function(e){return null!==e&&void 0!==e&&"boolean"!==typeof e}));if(c.every((function(e){return e.type===cd})))return l.createElement("div",{className:s,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},l.createElement(fd.Provider,{value:this.getContextValue()},this.renderItems(c,u)));if(c[0]instanceof Array){var f=c[0],d=c[1],h=c[2];return l.createElement("div",{className:s,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},l.createElement(fd.Provider,{value:this.getContextValue()},this.renderItems(f,u),d,h))}var p=c[0],v=l.cloneElement(p,{onClickHandler:function(t){"function"===typeof p.props.onClickHandler&&e.setState({indicatorClicked:!0},(function(){return p.props.onClickHandler(t)}))}}),m=c[1],g=c[2],y=c[3];return l.createElement("div",{className:s,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},l.createElement(fd.Provider,{value:this.getContextValue()},v,this.renderItems(m,u),g,y))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=null,r=t.activeIndex,i=t.direction,o=t.indicatorClicked;return e.activeIndex!==r&&(e.activeIndex===r+1?i="end":e.activeIndex===r-1?i="start":e.activeIndex<r?i=o?"start":"end":e.activeIndex!==r&&(i=o?"end":"start"),n={activeIndex:e.activeIndex,direction:i,indicatorClicked:!1}),n}}]),n}(l.Component);dd.propTypes={activeIndex:Rs.number,next:Rs.func.isRequired,previous:Rs.func.isRequired,keyboard:Rs.bool,pause:Rs.oneOf(["hover",!1]),ride:Rs.oneOf(["carousel"]),interval:Rs.oneOfType([Rs.number,Rs.string,Rs.bool]),children:Rs.array,mouseEnter:Rs.func,mouseLeave:Rs.func,slide:Rs.bool,dark:Rs.bool,cssModule:Rs.object,className:Rs.string,enableTouch:Rs.bool},dd.defaultProps={interval:5e3,pause:"hover",keyboard:!0,slide:!0,enableTouch:!0,fade:!1},dd.childContextTypes={direction:Rs.string};var hd=dd,pd=function(e){var t=e.direction,n=e.onClickHandler,r=e.cssModule,i=e.directionText,o=e.className,a=ql(il(o,"carousel-control-".concat(t)),r),s=ql(il("carousel-control-".concat(t,"-icon")),r),u=ql(il("visually-hidden"),r);return l.createElement("a",{className:a,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:function(e){e.preventDefault(),n()}},l.createElement("span",{className:s,"aria-hidden":"true"}),l.createElement("span",{className:u},i||t))};pd.propTypes={direction:Rs.oneOf(["prev","next"]).isRequired,onClickHandler:Rs.func.isRequired,cssModule:Rs.object,directionText:Rs.string,className:Rs.string};var vd=pd,md=function(e){var t=e.items,n=e.activeIndex,r=e.cssModule,i=e.onClickHandler,o=e.className,a=ql(il(o,"carousel-indicators"),r),s=t.map((function(e,t){var o=ql(il({active:n===t}),r);return l.createElement("button",{"aria-label":e.caption,"data-bs-target":!0,key:"".concat(e.key||Object.values(e).join("")),onClick:function(e){e.preventDefault(),i(t)},className:o},e.caption)}));return l.createElement("div",{className:a},s)};md.propTypes={items:Rs.array.isRequired,activeIndex:Rs.number.isRequired,cssModule:Rs.object,onClickHandler:Rs.func.isRequired,className:Rs.string};var gd=md,yd=function(e){var t=e.captionHeader,n=e.captionText,r=e.cssModule,i=e.className,o=ql(il(i,"carousel-caption","d-none","d-md-block"),r);return l.createElement("div",{className:o},l.createElement("h3",null,t),l.createElement("p",null,n))};yd.propTypes={captionHeader:Rs.node,captionText:Rs.node.isRequired,cssModule:Rs.object,className:Rs.string};var bd=yd,_d=["defaultActiveIndex","autoPlay","indicators","controls","items","goToIndex"],xd={items:Rs.array.isRequired,indicators:Rs.bool,controls:Rs.bool,autoPlay:Rs.bool,defaultActiveIndex:Rs.number,activeIndex:Rs.number,next:Rs.func,previous:Rs.func,goToIndex:Rs.func},wd=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).animating=!1,r.state={activeIndex:e.defaultActiveIndex||0},r.next=r.next.bind($s(r)),r.previous=r.previous.bind($s(r)),r.goToIndex=r.goToIndex.bind($s(r)),r.onExiting=r.onExiting.bind($s(r)),r.onExited=r.onExited.bind($s(r)),r}return Vt(n,[{key:"onExiting",value:function(){this.animating=!0}},{key:"onExited",value:function(){this.animating=!1}},{key:"next",value:function(){if(!this.animating){var e=this.state.activeIndex===this.props.items.length-1?0:this.state.activeIndex+1;this.setState({activeIndex:e})}}},{key:"previous",value:function(){if(!this.animating){var e=0===this.state.activeIndex?this.props.items.length-1:this.state.activeIndex-1;this.setState({activeIndex:e})}}},{key:"goToIndex",value:function(e){this.animating||this.setState({activeIndex:e})}},{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultActiveIndex,t.autoPlay),r=t.indicators,i=t.controls,o=t.items,a=t.goToIndex,s=Ul(t,_d),u=this.state.activeIndex,c=o.map((function(t){var n=t.key||t.src;return l.createElement(cd,{onExiting:e.onExiting,onExited:e.onExited,key:n},l.createElement("img",{className:"d-block w-100",src:t.src,alt:t.altText}),l.createElement(bd,{captionText:t.caption,captionHeader:t.header||t.caption}))}));return l.createElement(hd,Bl({activeIndex:u,next:this.next,previous:this.previous,ride:n?"carousel":void 0},s),r&&l.createElement(gd,{items:o,activeIndex:s.activeIndex||u,onClickHandler:a||this.goToIndex}),c,i&&l.createElement(vd,{direction:"prev",directionText:"Previous",onClickHandler:s.previous||this.previous}),i&&l.createElement(vd,{direction:"next",directionText:"Next",onClickHandler:s.next||this.next}))}}]),n}(l.Component);wd.propTypes=xd,wd.defaultProps={controls:!0,indicators:!0,autoPlay:!0};var kd=["className","cssModule","tag"],Sd={tag:nu,className:Rs.string,cssModule:Rs.object},Cd=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,kd),o=ql(il(t,"card-subtitle"),n);return l.createElement(r,Bl({},i,{className:o}))};Cd.propTypes=Sd,Cd.defaultProps={tag:"div"};var Ed=["className","cssModule","tag"],Td={tag:nu,className:Rs.string,cssModule:Rs.object},Md=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,Ed),o=ql(il(t,"card-text"),n);return l.createElement(r,Bl({},i,{className:o}))};Md.propTypes=Td,Md.defaultProps={tag:"p"};var Od=Md,Pd=["className","cssModule","tag"],jd={tag:nu,className:Rs.string,cssModule:Rs.object},Nd=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,Pd),o=ql(il(t,"card-title"),n);return l.createElement(r,Bl({},i,{className:o}))};Nd.propTypes=jd,Nd.defaultProps={tag:"div"};var Dd=Nd,Rd=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];var Ld={children:Rs.oneOfType([Rs.node,Rs.func]).isRequired,popperClassName:Rs.string,placement:Rs.string,placementPrefix:Rs.string,arrowClassName:Rs.string,hideArrow:Rs.bool,tag:nu,isOpen:Rs.bool.isRequired,cssModule:Rs.object,offset:Rs.arrayOf(Rs.number),fallbackPlacements:Rs.array,flip:Rs.bool,container:tu,target:tu.isRequired,modifiers:Rs.array,strategy:Rs.string,boundariesElement:Rs.oneOfType([Rs.string,eu]),onClosed:Rs.func,fade:Rs.bool,transition:Rs.shape(nf.propTypes)},Ad={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:function(){},fade:!0,transition:Fl({},nf.defaultProps)},Id=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).setTargetNode=r.setTargetNode.bind($s(r)),r.getTargetNode=r.getTargetNode.bind($s(r)),r.getRef=r.getRef.bind($s(r)),r.onClosed=r.onClosed.bind($s(r)),r.state={isOpen:e.isOpen},r}return Vt(n,[{key:"componentDidUpdate",value:function(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"setTargetNode",value:function(e){this.targetNode="string"===typeof e?mu(e):e}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return mu(this.props.container)}},{key:"getRef",value:function(e){this._element=e}},{key:"onClosed",value:function(){this.props.onClosed(),this.setState({isOpen:!1})}},{key:"renderChildren",value:function(){var e=this.props,t=e.cssModule,n=e.children,r=e.isOpen,i=e.flip,o=(e.target,e.offset),a=e.fallbackPlacements,s=e.placementPrefix,u=e.arrowClassName,c=e.hideArrow,f=e.popperClassName,d=e.tag,h=(e.container,e.modifiers),p=e.strategy,v=e.boundariesElement,m=(e.onClosed,e.fade),y=e.transition,b=e.placement,_=Ul(e,Rd),x=ql(il("arrow",u),t),w=ql(il(f,s?"".concat(s,"-auto"):""),this.props.cssModule),k=h.map((function(e){return e.name})),S=[{name:"offset",options:{offset:o}},{name:"flip",enabled:i,options:{fallbackPlacements:a}},{name:"preventOverflow",options:{boundary:v}}].filter((function(e){return!k.includes(e.name)})),C=[].concat(g(S),g(h)),E=Fl(Fl(Fl({},nf.defaultProps),y),{},{baseClass:m?y.baseClass:"",timeout:m?y.timeout:0});return l.createElement(nf,Bl({},E,_,{in:r,onExited:this.onClosed,tag:d}),l.createElement(xl,{referenceElement:this.targetNode,modifiers:C,placement:b,strategy:p},(function(e){var t=e.ref,r=e.style,i=e.placement,o=e.isReferenceHidden,a=e.arrowProps,s=e.update;return l.createElement("div",{ref:t,style:r,className:w,"data-popper-placement":i,"data-popper-reference-hidden":o?"true":void 0},"function"===typeof n?n({update:s}):n,!c&&l.createElement("span",{ref:a.ref,className:x,style:a.style}))})))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?"inline"===this.props.container?this.renderChildren():o.createPortal(l.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isOpen&&!t.isOpen?{isOpen:e.isOpen}:null}}]),n}(l.Component);Id.propTypes=Ld,Id.defaultProps=Ad;var Fd=Id,zd=function(e,t){return t.popperManager.setTargetNode(mu(e.target)),null};zd.contextTypes={popperManager:Rs.object.isRequired},zd.propTypes={target:tu.isRequired};var Bd={children:Rs.oneOfType([Rs.node,Rs.func]),placement:Rs.oneOf(su),target:tu.isRequired,container:tu,isOpen:Rs.bool,disabled:Rs.bool,hideArrow:Rs.bool,boundariesElement:Rs.oneOfType([Rs.string,eu]),className:Rs.string,innerClassName:Rs.string,arrowClassName:Rs.string,popperClassName:Rs.string,cssModule:Rs.object,toggle:Rs.func,autohide:Rs.bool,placementPrefix:Rs.string,delay:Rs.oneOfType([Rs.shape({show:Rs.number,hide:Rs.number}),Rs.number]),modifiers:Rs.array,strategy:Rs.string,offset:Rs.arrayOf(Rs.number),innerRef:Rs.oneOfType([Rs.func,Rs.string,Rs.object]),trigger:Rs.string,fade:Rs.bool,flip:Rs.bool},Ud={show:0,hide:50},Vd={isOpen:!1,hideArrow:!1,autohide:!1,delay:Ud,toggle:function(){},trigger:"click",fade:!0};function Hd(e,t){return t&&(e===t||t.contains(e))}function Wd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&t.length&&t.filter((function(t){return Hd(e,t)}))[0]}var Zd=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e))._targets=[],r.currentTargetElement=null,r.addTargetEvents=r.addTargetEvents.bind($s(r)),r.handleDocumentClick=r.handleDocumentClick.bind($s(r)),r.removeTargetEvents=r.removeTargetEvents.bind($s(r)),r.toggle=r.toggle.bind($s(r)),r.showWithDelay=r.showWithDelay.bind($s(r)),r.hideWithDelay=r.hideWithDelay.bind($s(r)),r.onMouseOverTooltipContent=r.onMouseOverTooltipContent.bind($s(r)),r.onMouseLeaveTooltipContent=r.onMouseLeaveTooltipContent.bind($s(r)),r.show=r.show.bind($s(r)),r.hide=r.hide.bind($s(r)),r.onEscKeyDown=r.onEscKeyDown.bind($s(r)),r.getRef=r.getRef.bind($s(r)),r.state={isOpen:e.isOpen},r._isMounted=!1,r}return Vt(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(e){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),e.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(e){"Escape"===e.key&&this.hide(e)}},{key:"getRef",value:function(e){var t=this.props.innerRef;t&&("function"===typeof t?t(e):"object"===typeof t&&(t.current=e)),this._popover=e}},{key:"getDelay",value:function(e){var t=this.props.delay;return"object"===typeof t?isNaN(t[e])?Ud[e]:t[e]:t}},{key:"getCurrentTarget",value:function(e){if(!e)return null;var t=this._targets.indexOf(e);return t>=0?this._targets[t]:this.getCurrentTarget(e.parentElement)}},{key:"show",value:function(e){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=e?e.currentTarget||this.getCurrentTarget(e.target):null,e&&e.composedPath&&"function"===typeof e.composedPath){var t=e.composedPath();this.currentTargetElement=t&&t[0]||this.currentTargetElement}this.toggle(e)}}},{key:"showWithDelay",value:function(e){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,e),this.getDelay("show"))}},{key:"hide",value:function(e){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(e))}},{key:"hideWithDelay",value:function(e){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"handleDocumentClick",value:function(e){var t=this.props.trigger.split(" ");t.indexOf("legacy")>-1&&(this.props.isOpen||Wd(e.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!Hd(e.target,this._popover)?this.hideWithDelay(e):this.props.isOpen||this.showWithDelay(e)):t.indexOf("click")>-1&&Wd(e.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(e):this.showWithDelay(e))}},{key:"addEventOnTargets",value:function(e,t,n){this._targets.forEach((function(r){r.addEventListener(e,t,n)}))}},{key:"removeEventOnTargets",value:function(e,t,n){this._targets.forEach((function(r){r.removeEventListener(e,t,n)}))}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var e=this.props.trigger.split(" ");-1===e.indexOf("manual")&&((e.indexOf("click")>-1||e.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(e.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),e.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}},{key:"removeTargetEvents",value:function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"updateTarget",value:function(){var e=mu(this.props.target,!0);e!==this._targets&&(this.removeTargetEvents(),this._targets=e?Array.from(e):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(e){return this.props.disabled||!this._isMounted?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){var e=this;this.props.isOpen&&this.updateTarget();var t=this.currentTargetElement||this._targets[0];if(!t)return null;var n=this.props,r=n.className,i=n.cssModule,o=n.innerClassName,a=n.isOpen,s=n.hideArrow,u=n.boundariesElement,c=n.placement,f=n.placementPrefix,d=n.arrowClassName,h=n.popperClassName,p=n.container,v=n.modifiers,m=n.strategy,g=n.offset,y=n.fade,b=n.flip,_=n.children,x=Gl(this.props,Object.keys(Bd)),w=ql(h,i),k=ql(o,i);return l.createElement(Fd,{className:r,target:t,isOpen:a,hideArrow:s,boundariesElement:u,placement:c,placementPrefix:f,arrowClassName:d,popperClassName:w,container:p,modifiers:v,strategy:m,offset:g,cssModule:i,fade:y,flip:b},(function(t){var n=t.update;return l.createElement("div",Bl({},x,{ref:e.getRef,className:k,role:"tooltip",onMouseOver:e.onMouseOverTooltipContent,onMouseLeave:e.onMouseLeaveTooltipContent,onKeyDown:e.onEscKeyDown}),"function"===typeof _?_({update:n}):_)}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isOpen&&!t.isOpen?{isOpen:e.isOpen}:null}}]),n}(l.Component);Zd.propTypes=Bd,Zd.defaultProps=Vd;var Yd=Zd,qd=function(e){var t=il("popover","show",e.popperClassName),n=il("popover-inner",e.innerClassName);return l.createElement(Yd,Bl({},e,{arrowClassName:"popover-arrow",popperClassName:t,innerClassName:n}))};qd.propTypes=Bd,qd.defaultProps={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};var Gd=qd,Kd=["defaultOpen"];(function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={isOpen:e.defaultOpen||!1},r.toggle=r.toggle.bind($s(r)),r}return Vt(n,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return l.createElement(Gd,Bl({isOpen:this.state.isOpen,toggle:this.toggle},Gl(this.props,Kd)))}}]),n}(l.Component)).propTypes=Fl({defaultOpen:Rs.bool},Gd.propTypes);var Qd=["className","cssModule","tag"],$d={tag:nu,className:Rs.string,cssModule:Rs.object},Xd=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,Qd),o=ql(il(t,"popover-header"),n);return l.createElement(r,Bl({},i,{className:o}))};Xd.propTypes=$d,Xd.defaultProps={tag:"h3"};var Jd=["className","cssModule","tag"],eh={tag:nu,className:Rs.string,cssModule:Rs.object},th=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,Jd),o=ql(il(t,"popover-body"),n);return l.createElement(r,Bl({},i,{className:o}))};th.propTypes=eh,th.defaultProps={tag:"div"};var nh=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"],rh={children:Rs.node,bar:Rs.bool,multi:Rs.bool,tag:nu,value:Rs.oneOfType([Rs.string,Rs.number]),min:Rs.oneOfType([Rs.string,Rs.number]),max:Rs.oneOfType([Rs.string,Rs.number]),animated:Rs.bool,striped:Rs.bool,color:Rs.string,className:Rs.string,barClassName:Rs.string,cssModule:Rs.object,style:Rs.object,barStyle:Rs.object,barAriaValueText:Rs.string,barAriaLabelledBy:Rs.string},ih=function(e){var t=e.children,n=e.className,r=e.barClassName,i=e.cssModule,o=e.value,a=e.min,s=e.max,u=e.animated,c=e.striped,f=e.color,d=e.bar,h=e.multi,p=e.tag,v=e.style,m=e.barStyle,g=e.barAriaValueText,y=e.barAriaLabelledBy,b=Ul(e,nh),_=fu(o)/fu(s)*100,x=ql(il(n,"progress"),i),w={className:ql(il("progress-bar",d&&n||r,u?"progress-bar-animated":null,f?"bg-".concat(f):null,c||u?"progress-bar-striped":null),i),style:Fl(Fl(Fl({},d?v:{}),m),{},{width:"".concat(_,"%")}),role:"progressbar","aria-valuenow":o,"aria-valuemin":a,"aria-valuemax":s,"aria-valuetext":g,"aria-labelledby":y,children:t};return d?l.createElement(p,Bl({},b,w)):l.createElement(p,Bl({},b,{style:v,className:x}),h?t:l.createElement("div",w))};ih.propTypes=rh,ih.defaultProps={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};var oh=ih,ah={children:Rs.node.isRequired,node:Rs.any},sh=function(e){Js(n,e);var t=rl(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return lu?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),o.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(l.Component);sh.propTypes=ah;var lh=sh;function uh(){}var ch=Rs.shape(nf.propTypes),fh={isOpen:Rs.bool,autoFocus:Rs.bool,centered:Rs.bool,fullscreen:Rs.oneOfType([Rs.bool,Rs.oneOf(["sm","md","lg","xl"])]),scrollable:Rs.bool,size:Rs.string,toggle:Rs.func,keyboard:Rs.bool,role:Rs.string,labelledBy:Rs.string,backdrop:Rs.oneOfType([Rs.bool,Rs.oneOf(["static"])]),onEnter:Rs.func,onExit:Rs.func,onOpened:Rs.func,onClosed:Rs.func,children:Rs.node,className:Rs.string,wrapClassName:Rs.string,modalClassName:Rs.string,backdropClassName:Rs.string,contentClassName:Rs.string,external:Rs.node,fade:Rs.bool,cssModule:Rs.object,zIndex:Rs.oneOfType([Rs.number,Rs.string]),backdropTransition:ch,modalTransition:ch,innerRef:Rs.oneOfType([Rs.object,Rs.string,Rs.func]),unmountOnClose:Rs.bool,returnFocusAfterClose:Rs.bool,container:tu,trapFocus:Rs.bool},dh=Object.keys(fh),hh={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:uh,onClosed:uh,modalTransition:{timeout:ru.Modal},backdropTransition:{mountOnEnter:!0,timeout:ru.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},ph=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e))._element=null,r._originalBodyPadding=null,r.getFocusableChildren=r.getFocusableChildren.bind($s(r)),r.handleBackdropClick=r.handleBackdropClick.bind($s(r)),r.handleBackdropMouseDown=r.handleBackdropMouseDown.bind($s(r)),r.handleEscape=r.handleEscape.bind($s(r)),r.handleStaticBackdropAnimation=r.handleStaticBackdropAnimation.bind($s(r)),r.handleTab=r.handleTab.bind($s(r)),r.onOpened=r.onOpened.bind($s(r)),r.onClosed=r.onClosed.bind($s(r)),r.manageFocusAfterClose=r.manageFocusAfterClose.bind($s(r)),r.clearBackdropAnimationTimeout=r.clearBackdropAnimationTimeout.bind($s(r)),r.trapFocus=r.trapFocus.bind($s(r)),r.state={isOpen:!1,showStaticBackdropAnimation:!1},r}return Vt(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isOpen,n=e.autoFocus,r=e.onEnter;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){if(this.props.isOpen&&!e.isOpen)return this.init(),void this.setState({isOpen:!0});this.props.autoFocus&&this.state.isOpen&&!t.isOpen&&this.setFocus(),this._element&&e.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"trapFocus",value:function(e){if(this.props.trapFocus&&this._element&&(!this._dialog||this._dialog.parentNode!==e.target)&&!(this.modalIndex<n.openCount-1)){for(var t=this.getFocusableChildren(),r=0;r<t.length;r++)if(t[r]===e.target)return;t.length>0&&(e.preventDefault(),e.stopPropagation(),t[0].focus())}}},{key:"onOpened",value:function(e,t){this.props.onOpened(),(this.props.modalTransition.onEntered||uh)(e,t)}},{key:"onClosed",value:function(e){var t=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||uh)(e),t&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&this._dialog.parentNode&&"function"===typeof this._dialog.parentNode.focus&&this._dialog.parentNode.focus()}},{key:"getFocusableChildren",value:function(){return this._element.querySelectorAll(bu.join(", "))}},{key:"getFocusedChild",value:function(){var e,t=this.getFocusableChildren();try{e=document.activeElement}catch(n){e=t[0]}return e}},{key:"handleBackdropClick",value:function(e){if(e.target===this._mouseDownElement){e.stopPropagation();var t=this._dialog?this._dialog.parentNode:null;if(t&&e.target===t&&"static"===this.props.backdrop&&this.handleStaticBackdropAnimation(),!this.props.isOpen||!0!==this.props.backdrop)return;t&&e.target===t&&this.props.toggle&&this.props.toggle(e)}}},{key:"handleTab",value:function(e){if(9===e.which&&!(this.modalIndex<n.openCount-1)){var t=this.getFocusableChildren(),r=t.length;if(0!==r){for(var i=this.getFocusedChild(),o=0,a=0;a<r;a+=1)if(t[a]===i){o=a;break}e.shiftKey&&0===o?(e.preventDefault(),t[r-1].focus()):e.shiftKey||o!==r-1||(e.preventDefault(),t[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(e){this._mouseDownElement=e.target}},{key:"handleEscape",value:function(e){this.props.isOpen&&e.keyCode===au.esc&&this.props.toggle&&(this.props.keyboard?(e.preventDefault(),e.stopPropagation(),this.props.toggle(e)):"static"===this.props.backdrop&&(e.preventDefault(),e.stopPropagation(),this.handleStaticBackdropAnimation()))}},{key:"handleStaticBackdropAnimation",value:function(){var e=this;this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout((function(){e.setState({showStaticBackdropAnimation:!1})}),100)}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch(e){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=mu(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=Zl(),Yl(),0===n.openCount&&(document.body.className=il(document.body.className,ql("modal-open",this.props.cssModule))),this.modalIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var e=this.props.returnFocusAfterClose;this._triggeringElement.focus&&e&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(n.openCount<=1){var e=ql("modal-open",this.props.cssModule),t=new RegExp("(^| )".concat(e,"( |$)"));document.body.className=document.body.className.replace(t," ").trim()}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),Hl(this._originalBodyPadding)}},{key:"renderModalDialog",value:function(){var e,t=this,n=Gl(this.props,dh),r="modal-dialog";return l.createElement("div",Bl({},n,{className:ql(il(r,this.props.className,(e={},He(e,"modal-".concat(this.props.size),this.props.size),He(e,"".concat(r,"-centered"),this.props.centered),He(e,"".concat(r,"-scrollable"),this.props.scrollable),He(e,"modal-fullscreen",!0===this.props.fullscreen),He(e,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),"string"===typeof this.props.fullscreen),e)),this.props.cssModule),role:"document",ref:function(e){t._dialog=e}}),l.createElement("div",{className:ql(il("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var e=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!e)){var t=!!this._element&&!this.state.isOpen&&!e;this._element.style.display=t?"none":"block";var n=this.props,r=n.wrapClassName,i=n.modalClassName,o=n.backdropClassName,a=n.cssModule,s=n.isOpen,u=n.backdrop,c=n.role,f=n.labelledBy,d=n.external,h=n.innerRef,p={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":f,role:c,tabIndex:"-1"},v=this.props.fade,m=Fl(Fl(Fl({},nf.defaultProps),this.props.modalTransition),{},{baseClass:v?this.props.modalTransition.baseClass:"",timeout:v?this.props.modalTransition.timeout:0}),g=Fl(Fl(Fl({},nf.defaultProps),this.props.backdropTransition),{},{baseClass:v?this.props.backdropTransition.baseClass:"",timeout:v?this.props.backdropTransition.timeout:0}),y=u&&(v?l.createElement(nf,Bl({},g,{in:s&&!!u,cssModule:a,className:ql(il("modal-backdrop",o),a)})):l.createElement("div",{className:ql(il("modal-backdrop","show",o),a)}));return l.createElement(lh,{node:this._element},l.createElement("div",{className:ql(r)},l.createElement(nf,Bl({},p,m,{in:s,onEntered:this.onOpened,onExited:this.onClosed,cssModule:a,className:ql(il("modal",i,this.state.showStaticBackdropAnimation&&"modal-static"),a),innerRef:h}),d,this.renderModalDialog()),y))}return null}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}}]),n}(l.Component);ph.propTypes=fh,ph.defaultProps=hh,ph.openCount=0;var vh=ph,mh=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"],gh={tag:nu,wrapTag:nu,toggle:Rs.func,className:Rs.string,cssModule:Rs.object,children:Rs.node,closeAriaLabel:Rs.string,close:Rs.object},yh=function(e){var t,n=e.className,r=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=e.wrapTag,u=e.closeAriaLabel,c=e.close,f=Ul(e,mh),d=ql(il(n,"modal-header"),r);return!c&&o&&(t=l.createElement("button",{type:"button",onClick:o,className:ql("btn-close",r),"aria-label":u})),l.createElement(s,Bl({},f,{className:d}),l.createElement(a,{className:ql("modal-title",r)},i),c||t)};yh.propTypes=gh,yh.defaultProps={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"};var bh=yh,_h=["className","cssModule","tag"],xh={tag:nu,className:Rs.string,cssModule:Rs.object},wh=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,_h),o=ql(il(t,"modal-body"),n);return l.createElement(r,Bl({},i,{className:o}))};wh.propTypes=xh,wh.defaultProps={tag:"div"};var kh=wh,Sh=["className","cssModule","tag"],Ch={tag:nu,className:Rs.string,cssModule:Rs.object},Eh=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,Sh),o=ql(il(t,"modal-footer"),n);return l.createElement(r,Bl({},i,{className:o}))};Eh.propTypes=Ch,Eh.defaultProps={tag:"div"};var Th=Eh,Mh=function(e){var t=il("tooltip","show",e.popperClassName),n=il("tooltip-inner",e.innerClassName);return l.createElement(Yd,Bl({},e,{arrowClassName:"tooltip-arrow",popperClassName:t,innerClassName:n}))};Mh.propTypes=Bd,Mh.defaultProps={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};var Oh=Mh,Ph=["className","cssModule","size","bordered","borderless","striped","dark","hover","responsive","tag","responsiveTag","innerRef"],jh={className:Rs.string,cssModule:Rs.object,size:Rs.string,bordered:Rs.bool,borderless:Rs.bool,striped:Rs.bool,dark:Rs.bool,hover:Rs.bool,responsive:Rs.oneOfType([Rs.bool,Rs.string]),tag:nu,responsiveTag:nu,innerRef:Rs.oneOfType([Rs.func,Rs.string,Rs.object])},Nh=function(e){var t=e.className,n=e.cssModule,r=e.size,i=e.bordered,o=e.borderless,a=e.striped,s=e.dark,u=e.hover,c=e.responsive,f=e.tag,d=e.responsiveTag,h=e.innerRef,p=Ul(e,Ph),v=ql(il(t,"table",!!r&&"table-"+r,!!i&&"table-bordered",!!o&&"table-borderless",!!a&&"table-striped",!!s&&"table-dark",!!u&&"table-hover"),n),m=l.createElement(f,Bl({},p,{ref:h,className:v}));if(c){var g=ql(!0===c?"table-responsive":"table-responsive-".concat(c),n);return l.createElement(d,{className:g},m)}return m};Nh.propTypes=jh,Nh.defaultProps={tag:"table",responsiveTag:"div"};var Dh=["className","cssModule","tag","flush","horizontal","numbered"],Rh={tag:nu,flush:Rs.bool,className:Rs.string,cssModule:Rs.object,horizontal:Rs.oneOfType([Rs.bool,Rs.string]),numbered:Rs.bool},Lh=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=e.flush,o=e.horizontal,a=e.numbered,s=Ul(e,Dh),u=ql(il(t,"list-group",i?"list-group-flush":function(e){return!1!==e&&(!0===e||"xs"===e?"list-group-horizontal":"list-group-horizontal-".concat(e))}(o),{"list-group-numbered":a}),n);return l.createElement(r,Bl({},s,{className:u}))};Lh.propTypes=Rh,Lh.defaultProps={tag:"ul",horizontal:!1,numbered:!1};var Ah=Lh,Ih=["className","cssModule","inline","tag","innerRef"],Fh={children:Rs.node,inline:Rs.bool,tag:nu,innerRef:Rs.oneOfType([Rs.object,Rs.func,Rs.string]),className:Rs.string,cssModule:Rs.object},zh=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).getRef=r.getRef.bind($s(r)),r.submit=r.submit.bind($s(r)),r}return Vt(n,[{key:"getRef",value:function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e}},{key:"submit",value:function(){this.ref&&this.ref.submit()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.inline,i=e.tag,o=e.innerRef,a=Ul(e,Ih),s=ql(il(t,!!r&&"form-inline"),n);return l.createElement(i,Bl({},a,{ref:o,className:s}))}}]),n}(l.Component);zh.propTypes=Fh,zh.defaultProps={tag:"form"};var Bh=["className","cssModule","valid","tooltip","tag"],Uh={children:Rs.node,tag:nu,className:Rs.string,cssModule:Rs.object,valid:Rs.bool,tooltip:Rs.bool},Vh={tag:"div",valid:void 0},Hh=function(e){var t=e.className,n=e.cssModule,r=e.valid,i=e.tooltip,o=e.tag,a=Ul(e,Bh),s=i?"tooltip":"feedback",u=ql(il(t,r?"valid-".concat(s):"invalid-".concat(s)),n);return l.createElement(o,Bl({},a,{className:u}))};Hh.propTypes=Uh,Hh.defaultProps=Vh;var Wh=["className","cssModule","row","disabled","check","inline","floating","tag"],Zh={children:Rs.node,row:Rs.bool,check:Rs.bool,switch:Rs.bool,inline:Rs.bool,floating:Rs.bool,disabled:Rs.bool,tag:nu,className:Rs.string,cssModule:Rs.object},Yh=function(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,u=e.tag,c=Ul(e,Wh),f=o||e.switch,d=ql(il(t,!!r&&"row",f?"form-check":"mb-3",!!e.switch&&"form-switch",!(!f||!a)&&"form-check-inline",!(!f||!i)&&"disabled",s&&"form-floating"),n);return"fieldset"===u&&(c.disabled=i),l.createElement(u,Bl({},c,{className:d}))};Yh.propTypes=Zh,Yh.defaultProps={tag:"div"};var qh=Yh,Gh=["className","cssModule","inline","color","tag"],Kh={children:Rs.node,inline:Rs.bool,tag:nu,color:Rs.string,className:Rs.string,cssModule:Rs.object},Qh=function(e){var t=e.className,n=e.cssModule,r=e.inline,i=e.color,o=e.tag,a=Ul(e,Gh),s=ql(il(t,!r&&"form-text",!!i&&"text-".concat(i)),n);return l.createElement(o,Bl({},a,{className:s}))};Qh.propTypes=Kh,Qh.defaultProps={tag:"small",color:"muted"};var $h=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],Xh={children:Rs.node,type:Rs.string,size:Rs.oneOfType([Rs.number,Rs.string]),bsSize:Rs.string,valid:Rs.bool,invalid:Rs.bool,tag:nu,innerRef:Rs.oneOfType([Rs.object,Rs.func,Rs.string]),plaintext:Rs.bool,addon:Rs.bool,className:Rs.string,cssModule:Rs.object},Jh=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).getRef=r.getRef.bind($s(r)),r.focus=r.focus.bind($s(r)),r}return Vt(n,[{key:"getRef",value:function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.type,i=e.bsSize,o=e.valid,a=e.invalid,s=e.tag,u=e.addon,c=e.plaintext,f=e.innerRef,d=Ul(e,$h),h=["switch","radio","checkbox"].indexOf(r)>-1,p=new RegExp("\\D","g"),v="select"===r,m="range"===r,g=s||(v||"textarea"===r?r:"input"),y="form-control";c?(y="".concat(y,"-plaintext"),g=s||"input"):m?y="form-range":v?y="form-select":h&&(y=u?null:"form-check-input"),d.size&&p.test(d.size)&&($l('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),i=d.size,delete d.size);var b=ql(il(t,a&&"is-invalid",o&&"is-valid",!!i&&(v?"form-select-".concat(i):"form-control-".concat(i)),y),n);return("input"===g||s&&"function"===typeof s)&&(d.type="switch"===r?"checkbox":r),d.children&&!c&&"select"!==r&&"string"===typeof g&&"select"!==g&&($l('Input with a type of "'.concat(r,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete d.children),l.createElement(g,Bl({},d,{ref:f,className:b,"aria-invalid":a}))}}]),n}(l.Component);Jh.propTypes=Xh,Jh.defaultProps={type:"text"};var ep=Jh,tp=["className","cssModule","tag","type","size"],np={tag:nu,type:Rs.bool,size:Rs.string,className:Rs.string,cssModule:Rs.object},rp=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=(e.type,e.size),o=Ul(e,tp),a=ql(il(t,"input-group",i?"input-group-".concat(i):null),n);return"dropdown"===e.type?l.createElement(Pc,Bl({},o,{className:a})):l.createElement(r,Bl({},o,{className:a}))};rp.propTypes=np,rp.defaultProps={tag:"div"};var ip=rp,op=["className","cssModule","tag"],ap={tag:nu,className:Rs.string,cssModule:Rs.object},sp=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,op),o=ql(il(t,"input-group-text"),n);return l.createElement(r,Bl({},i,{className:o}))};sp.propTypes=ap,sp.defaultProps={tag:"span"};var lp=["className","cssModule","hidden","widths","tag","check","size","for"],up=Rs.oneOfType([Rs.number,Rs.string]),cp=Rs.oneOfType([Rs.bool,Rs.string,Rs.number,Rs.shape({size:up,order:up,offset:up})]),fp={children:Rs.node,hidden:Rs.bool,check:Rs.bool,size:Rs.string,for:Rs.string,tag:nu,className:Rs.string,cssModule:Rs.object,xs:cp,sm:cp,md:cp,lg:cp,xl:cp,xxl:cp,widths:Rs.array},dp={tag:"label",widths:["xs","sm","md","lg","xl","xxl"]},hp=function(e,t,n){return!0===n||""===n?e?"col":"col-".concat(t):"auto"===n?e?"col-auto":"col-".concat(t,"-auto"):e?"col-".concat(n):"col-".concat(t,"-").concat(n)},pp=function(e){var t=e.className,n=e.cssModule,r=e.hidden,i=e.widths,o=e.tag,a=e.check,s=e.size,u=e.for,c=Ul(e,lp),f=[];i.forEach((function(t,r){var i=e[t];if(delete c[t],i||""===i){var o,a=!r;if(du(i)){var s,l=a?"-":"-".concat(t,"-");o=hp(a,t,i.size),f.push(ql(il((He(s={},o,i.size||""===i.size),He(s,"order".concat(l).concat(i.order),i.order||0===i.order),He(s,"offset".concat(l).concat(i.offset),i.offset||0===i.offset),s))),n)}else o=hp(a,t,i),f.push(o)}}));var d=ql(il(t,!!r&&"visually-hidden",!!a&&"form-check-label",!!s&&"col-form-label-".concat(s),f,f.length?"col-form-label":"form-label"),n);return l.createElement(o,Bl({htmlFor:u},c,{className:d}))};pp.propTypes=fp,pp.defaultProps=dp;var vp=["body","bottom","className","cssModule","heading","left","list","middle","object","right","tag","top"],mp={body:Rs.bool,bottom:Rs.bool,children:Rs.node,className:Rs.string,cssModule:Rs.object,heading:Rs.bool,left:Rs.bool,list:Rs.bool,middle:Rs.bool,object:Rs.bool,right:Rs.bool,tag:nu,top:Rs.bool},gp=function(e){var t,n=e.body,r=e.bottom,i=e.className,o=e.cssModule,a=e.heading,s=e.left,u=e.list,c=e.middle,f=e.object,d=e.right,h=e.tag,p=e.top,v=Ul(e,vp);t=a?"h4":v.href?"a":v.src||f?"img":u?"ul":"div";var m=h||t,g=ql(il(i,{"media-body":n,"media-heading":a,"media-left":s,"media-right":d,"media-top":p,"media-bottom":r,"media-middle":c,"media-object":f,"media-list":u,media:!n&&!a&&!s&&!d&&!p&&!r&&!c&&!f&&!u}),o);return l.createElement(m,Bl({},v,{className:g}))};gp.propTypes=mp;function yp(){}var bp=Rs.shape(nf.propTypes),_p={autoFocus:Rs.bool,backdrop:Rs.bool,backdropClassName:Rs.string,backdropTransition:bp,children:Rs.node,className:Rs.string,container:tu,cssModule:Rs.object,direction:Rs.oneOf(["start","end","bottom","top","left","right"]),fade:Rs.bool,innerRef:Rs.oneOfType([Rs.object,Rs.string,Rs.func]),isOpen:Rs.bool,keyboard:Rs.bool,labelledBy:Rs.string,offcanvasTransition:bp,onClosed:Rs.func,onEnter:Rs.func,onExit:Rs.func,onOpened:Rs.func,returnFocusAfterClose:Rs.bool,role:Rs.string,scrollable:Rs.bool,toggle:Rs.func,trapFocus:Rs.bool,unmountOnClose:Rs.bool,zIndex:Rs.oneOfType([Rs.number,Rs.string])},xp=Object.keys(_p),wp={isOpen:!1,autoFocus:!0,direction:"start",scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:yp,onClosed:yp,offcanvasTransition:{timeout:ru.Offcanvas},backdropTransition:{mountOnEnter:!0,timeout:ru.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},kp=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e))._element=null,r._originalBodyPadding=null,r.getFocusableChildren=r.getFocusableChildren.bind($s(r)),r.handleBackdropClick=r.handleBackdropClick.bind($s(r)),r.handleBackdropMouseDown=r.handleBackdropMouseDown.bind($s(r)),r.handleEscape=r.handleEscape.bind($s(r)),r.handleTab=r.handleTab.bind($s(r)),r.onOpened=r.onOpened.bind($s(r)),r.onClosed=r.onClosed.bind($s(r)),r.manageFocusAfterClose=r.manageFocusAfterClose.bind($s(r)),r.clearBackdropAnimationTimeout=r.clearBackdropAnimationTimeout.bind($s(r)),r.trapFocus=r.trapFocus.bind($s(r)),r.state={isOpen:!1},r}return Vt(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isOpen,n=e.autoFocus,r=e.onEnter;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){if(this.props.isOpen&&!e.isOpen)return this.init(),void this.setState({isOpen:!0});this.props.autoFocus&&this.state.isOpen&&!t.isOpen&&this.setFocus(),this._element&&e.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"trapFocus",value:function(e){if(this.props.trapFocus&&this._element&&this._dialog!==e.target&&!(this.offcanvasIndex<n.openCount-1)){for(var t=this.getFocusableChildren(),r=0;r<t.length;r++)if(t[r]===e.target)return;t.length>0&&(e.preventDefault(),e.stopPropagation(),t[0].focus())}}},{key:"onOpened",value:function(e,t){this.props.onOpened(),(this.props.offcanvasTransition.onEntered||yp)(e,t)}},{key:"onClosed",value:function(e){var t=this.props.unmountOnClose;this.props.onClosed(),(this.props.offcanvasTransition.onExited||yp)(e),t&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&"function"===typeof this._dialog.focus&&this._dialog.focus()}},{key:"getFocusableChildren",value:function(){return this._element.querySelectorAll(bu.join(", "))}},{key:"getFocusedChild",value:function(){var e,t=this.getFocusableChildren();try{e=document.activeElement}catch(n){e=t[0]}return e}},{key:"handleBackdropClick",value:function(e){if(e.target===this._mouseDownElement){e.stopPropagation();var t=this._backdrop;if(!this.props.isOpen||!0!==this.props.backdrop)return;t&&e.target===t&&this.props.toggle&&this.props.toggle(e)}}},{key:"handleTab",value:function(e){if(9===e.which&&!(this.offcanvasIndex<n.openCount-1)){var t=this.getFocusableChildren(),r=t.length;if(0!==r){for(var i=this.getFocusedChild(),o=0,a=0;a<r;a+=1)if(t[a]===i){o=a;break}e.shiftKey&&0===o?(e.preventDefault(),t[r-1].focus()):e.shiftKey||o!==r-1||(e.preventDefault(),t[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(e){this._mouseDownElement=e.target}},{key:"handleEscape",value:function(e){this.props.isOpen&&e.keyCode===au.esc&&this.props.toggle&&this.props.keyboard&&(e.preventDefault(),e.stopPropagation(),this.props.toggle(e))}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch(e){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=mu(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=Zl(),Yl(),0===n.openCount&&this.props.backdrop&&!this.props.scrollable&&(document.body.style.overflow="hidden"),this.offcanvasIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var e=this.props.returnFocusAfterClose;this._triggeringElement.focus&&e&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),document.body.style.overflow=null,Hl(this._originalBodyPadding)}},{key:"render",value:function(){var e=this,t=this.props,n=t.direction,r=t.unmountOnClose;if(this._element&&(this.state.isOpen||!r)){var i=!!this._element&&!this.state.isOpen&&!r;this._element.style.display=i?"none":"block";var o=this.props,a=o.className,s=o.backdropClassName,u=o.cssModule,c=o.isOpen,f=o.backdrop,d=o.role,h=o.labelledBy,p=o.style,v={onKeyUp:this.handleEscape,onKeyDown:this.handleTab,"aria-labelledby":h,role:d,tabIndex:"-1"},m=this.props.fade,g=Fl(Fl(Fl({},nf.defaultProps),this.props.offcanvasTransition),{},{baseClass:m?this.props.offcanvasTransition.baseClass:"",timeout:m?this.props.offcanvasTransition.timeout:0}),y=Fl(Fl(Fl({},nf.defaultProps),this.props.backdropTransition),{},{baseClass:m?this.props.backdropTransition.baseClass:"",timeout:m?this.props.backdropTransition.timeout:0}),b=f&&(m?l.createElement(nf,Bl({},y,{in:c&&!!f,innerRef:function(t){e._backdrop=t},cssModule:u,className:ql(il("offcanvas-backdrop",s),u),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})):l.createElement("div",{className:ql(il("offcanvas-backdrop","show",s),u),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})),_=Gl(this.props,xp);return l.createElement(lh,{node:this._element},l.createElement(nf,Bl({},_,v,g,{in:c,onEntered:this.onOpened,onExited:this.onClosed,cssModule:u,className:ql(il("offcanvas",a,"offcanvas-".concat(n)),u),innerRef:function(t){e._dialog=t},style:Fl(Fl({},p),{},{visibility:c?"visible":"hidden"})}),this.props.children),b)}return null}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}}]),n}(l.Component);kp.propTypes=_p,kp.defaultProps=wp,kp.openCount=0;var Sp=["className","cssModule","tag"],Cp={tag:nu,className:Rs.string,cssModule:Rs.object},Ep=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,Sp),o=ql(il(t,"offcanvas-body"),n);return l.createElement(r,Bl({},i,{className:o}))};Ep.propTypes=Cp,Ep.defaultProps={tag:"div"};var Tp=["children","className","close","closeAriaLabel","cssModule","tag","toggle","wrapTag"],Mp={children:Rs.node,className:Rs.string,close:Rs.object,closeAriaLabel:Rs.string,cssModule:Rs.object,tag:nu,toggle:Rs.func,wrapTag:nu},Op=function(e){var t,n=e.children,r=e.className,i=e.close,o=e.closeAriaLabel,a=e.cssModule,s=e.tag,u=e.toggle,c=e.wrapTag,f=Ul(e,Tp),d=ql(il(r,"offcanvas-header"),a);return!i&&u&&(t=l.createElement("button",{type:"button",onClick:u,className:ql("btn-close",a),"aria-label":o})),l.createElement(c,Bl({},f,{className:d}),l.createElement(s,{className:ql("offcanvas-title",a)},n),i||t)};Op.propTypes=Mp,Op.defaultProps={closeAriaLabel:"Close",tag:"h5",wrapTag:"div"};var Pp=["className","listClassName","cssModule","size","tag","listTag","aria-label"],jp={children:Rs.node,className:Rs.string,listClassName:Rs.string,cssModule:Rs.object,size:Rs.string,tag:nu,listTag:nu,"aria-label":Rs.string},Np=function(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.size,o=e.tag,a=e.listTag,s=e["aria-label"],u=Ul(e,Pp),c=ql(il(t),r),f=ql(il(n,"pagination",He({},"pagination-".concat(i),!!i)),r);return l.createElement(o,{className:c,"aria-label":s},l.createElement(a,Bl({},u,{className:f})))};Np.propTypes=jp,Np.defaultProps={tag:"nav",listTag:"ul","aria-label":"pagination"};var Dp=Np,Rp=["active","className","cssModule","disabled","tag"],Lp={active:Rs.bool,children:Rs.node,className:Rs.string,cssModule:Rs.object,disabled:Rs.bool,tag:nu},Ap=function(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=Ul(e,Rp),s=ql(il(n,"page-item",{active:t,disabled:i}),r);return l.createElement(o,Bl({},a,{className:s}))};Ap.propTypes=Lp,Ap.defaultProps={tag:"li"};var Ip=Ap,Fp=["className","cssModule","next","previous","first","last","tag"],zp={"aria-label":Rs.string,children:Rs.node,className:Rs.string,cssModule:Rs.object,next:Rs.bool,previous:Rs.bool,first:Rs.bool,last:Rs.bool,tag:nu},Bp=function(e){var t,n=e.className,r=e.cssModule,i=e.next,o=e.previous,a=e.first,s=e.last,u=e.tag,c=Ul(e,Fp),f=ql(il(n,"page-link"),r);o?t="Previous":i?t="Next":a?t="First":s&&(t="Last");var d,h=e["aria-label"]||t;o?d="\u2039":i?d="\u203a":a?d="\xab":s&&(d="\xbb");var p=e.children;return p&&Array.isArray(p)&&0===p.length&&(p=null),c.href||"a"!==u||(u="button"),(o||i||a||s)&&(p=[l.createElement("span",{"aria-hidden":"true",key:"caret"},p||d),l.createElement("span",{className:"visually-hidden",key:"ariaLabel"},h)]),l.createElement(u,Bl({},c,{className:f,"aria-label":h}),p)};Bp.propTypes=zp,Bp.defaultProps={tag:"a"};var Up=Bp,Vp=l.createContext({}),Hp={tag:nu,activeTab:Rs.any,className:Rs.string,cssModule:Rs.object},Wp=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={activeTab:r.props.activeTab},r}return Vt(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.tag,i=Gl(this.props,Object.keys(Hp)),o=ql(il("tab-content",t),n);return l.createElement(Vp.Provider,{value:{activeTabId:this.state.activeTab}},l.createElement(r,Bl({},i,{className:o})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.activeTab!==e.activeTab?{activeTab:e.activeTab}:null}}]),n}(l.Component);Wp.propTypes=Hp,Wp.defaultProps={tag:"div"};var Zp=["className","cssModule","tabId","tag"],Yp={tag:nu,className:Rs.string,cssModule:Rs.object,tabId:Rs.any};function qp(e){var t=e.className,n=e.cssModule,r=e.tabId,i=e.tag,o=Ul(e,Zp),a=function(e){return ql(il("tab-pane",t,{active:r===e}),n)};return l.createElement(Vp.Consumer,null,(function(e){var t=e.activeTabId;return l.createElement(i,Bl({},o,{className:a(t)}))}))}qp.propTypes=Yp,qp.defaultProps={tag:"div"};var Gp=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"],Kp={children:Rs.node,className:Rs.string,closeClassName:Rs.string,closeAriaLabel:Rs.string,cssModule:Rs.object,color:Rs.string,fade:Rs.bool,isOpen:Rs.bool,toggle:Rs.func,tag:nu,transition:Rs.shape(nf.propTypes),innerRef:Rs.oneOfType([Rs.object,Rs.string,Rs.func])},Qp={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:Fl(Fl({},nf.defaultProps),{},{unmountOnExit:!0})};function $p(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,i=e.cssModule,o=e.tag,a=e.color,s=e.isOpen,u=e.toggle,c=e.children,f=e.transition,d=e.fade,h=e.innerRef,p=Ul(e,Gp),v=ql(il(t,"alert","alert-".concat(a),{"alert-dismissible":u}),i),m=ql(il("btn-close",n),i),g=Fl(Fl(Fl({},nf.defaultProps),f),{},{baseClass:d?f.baseClass:"",timeout:d?f.timeout:0});return l.createElement(nf,Bl({},p,g,{tag:o,className:v,in:s,role:"alert",innerRef:h}),u?l.createElement("button",{type:"button",className:m,"aria-label":r,onClick:u}):null,c)}$p.propTypes=Kp,$p.defaultProps=Qp;var Xp=["className","cssModule","tag","isOpen","children","transition","fade","innerRef"],Jp={children:Rs.node,className:Rs.string,cssModule:Rs.object,fade:Rs.bool,isOpen:Rs.bool,tag:nu,transition:Rs.shape(nf.propTypes),innerRef:Rs.oneOfType([Rs.object,Rs.string,Rs.func])},ev={isOpen:!0,tag:"div",fade:!0,transition:Fl(Fl({},nf.defaultProps),{},{unmountOnExit:!0})};function tv(e){var t=e.className,n=e.cssModule,r=e.tag,i=e.isOpen,o=e.children,a=e.transition,s=e.fade,u=e.innerRef,c=Ul(e,Xp),f=ql(il(t,"toast"),n),d=Fl(Fl(Fl({},nf.defaultProps),a),{},{baseClass:s?a.baseClass:"",timeout:s?a.timeout:0});return l.createElement(nf,Bl({},c,d,{tag:r,className:f,in:i,role:"alert",innerRef:u}),o)}tv.propTypes=Jp,tv.defaultProps=ev;var nv=["className","cssModule","innerRef","tag"],rv={tag:nu,className:Rs.string,cssModule:Rs.object,innerRef:Rs.oneOfType([Rs.object,Rs.string,Rs.func])},iv=function(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=Ul(e,nv),a=ql(il(t,"toast-body"),n);return l.createElement(i,Bl({},o,{className:a,ref:r}))};iv.propTypes=rv,iv.defaultProps={tag:"div"};var ov=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close","tagClassName","icon"],av={tag:nu,icon:Rs.oneOfType([Rs.string,Rs.node]),wrapTag:nu,toggle:Rs.func,className:Rs.string,cssModule:Rs.object,children:Rs.node,closeAriaLabel:Rs.string,charCode:Rs.oneOfType([Rs.string,Rs.number]),close:Rs.object},sv=function(e){var t,n,r=e.className,i=e.cssModule,o=e.children,a=e.toggle,s=e.tag,u=e.wrapTag,c=e.closeAriaLabel,f=e.close,d=e.tagClassName,h=e.icon,p=Ul(e,ov),v=ql(il(r,"toast-header"),i);return!f&&a&&(t=l.createElement("button",{type:"button",onClick:a,className:ql("btn-close",i),"aria-label":c})),"string"===typeof h?n=l.createElement("svg",{className:ql("rounded text-".concat(h)),width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",focusable:"false",role:"img"},l.createElement("rect",{fill:"currentColor",width:"100%",height:"100%"})):h&&(n=h),l.createElement(u,Bl({},p,{className:v}),n,l.createElement(s,{className:ql(il(d,{"ms-2":null!=n}),i)},o),f||t)};sv.propTypes=av,sv.defaultProps={tag:"strong",wrapTag:"div",tagClassName:"me-auto",closeAriaLabel:"Close"};var lv=["className","cssModule","tag","active","disabled","action","color"],uv={tag:nu,active:Rs.bool,disabled:Rs.bool,color:Rs.string,action:Rs.bool,className:Rs.any,cssModule:Rs.object},cv=function(e){e.preventDefault()},fv=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=e.active,o=e.disabled,a=e.action,s=e.color,u=Ul(e,lv),c=ql(il(t,!!i&&"active",!!o&&"disabled",!!a&&"list-group-item-action",!!s&&"list-group-item-".concat(s),"list-group-item"),n);return o&&(u.onClick=cv),l.createElement(r,Bl({},u,{className:c}))};fv.propTypes=uv,fv.defaultProps={tag:"li"};var dv=fv,hv=["className","cssModule","tag"],pv={tag:nu,className:Rs.any,cssModule:Rs.object},vv=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,hv),o=ql(il(t,"list-group-item-heading"),n);return l.createElement(r,Bl({},i,{className:o}))};vv.propTypes=pv,vv.defaultProps={tag:"h5"};var mv=["className","cssModule","tag"],gv={tag:nu,className:Rs.any,cssModule:Rs.object},yv=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=Ul(e,mv),o=ql(il(t,"list-group-item-text"),n);return l.createElement(r,Bl({},i,{className:o}))};yv.propTypes=gv,yv.defaultProps={tag:"p"};var bv=["className","cssModule","tag","type"],_v={tag:nu,className:Rs.string,cssModule:Rs.object,type:Rs.string},xv=(0,l.forwardRef)((function(e,t){var n=e.className,r=e.cssModule,i=e.tag,o=e.type,a=Ul(e,bv),s=ql(il(n,!!o&&"list-".concat(o)),r);return l.createElement(i,Bl({},a,{className:s,ref:t}))}));xv.name="List",xv.propTypes=_v,xv.defaultProps={tag:"ul"};var wv=["className","cssModule","tag"],kv={tag:nu,className:Rs.string,cssModule:Rs.object},Sv=(0,l.forwardRef)((function(e,t){var n=e.className,r=e.cssModule,i=e.tag,o=Ul(e,wv),a=ql(il(n,"list-inline-item"),r);return l.createElement(i,Bl({},o,{className:a,ref:t}))}));Sv.name="ListInlineItem",Sv.propTypes=kv,Sv.defaultProps={tag:"li"};l.Component;var Cv=["defaultOpen"];(function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={isOpen:e.defaultOpen||!1},r.toggle=r.toggle.bind($s(r)),r}return Vt(n,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return l.createElement(Dc,Bl({isOpen:this.state.isOpen,toggle:this.toggle},Gl(this.props,Cv)))}}]),n}(l.Component)).propTypes=Fl({defaultOpen:Rs.bool},Dc.propTypes);var Ev=["toggleEvents","defaultOpen"],Tv={defaultOpen:Rs.bool,toggler:Rs.string.isRequired,toggleEvents:Rs.arrayOf(Rs.string)},Mv={toggleEvents:gu},Ov=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).togglers=null,r.removeEventListeners=null,r.toggle=r.toggle.bind($s(r)),r.state={isOpen:e.defaultOpen||!1},r}return Vt(n,[{key:"componentDidMount",value:function(){this.togglers=pu(this.props.toggler),this.togglers.length&&(this.removeEventListeners=yu(this.togglers,this.toggle,this.props.toggleEvents))}},{key:"componentWillUnmount",value:function(){this.togglers.length&&this.removeEventListeners&&this.removeEventListeners()}},{key:"toggle",value:function(e){this.setState((function(e){return{isOpen:!e.isOpen}})),e.preventDefault()}},{key:"render",value:function(){return l.createElement(xf,Bl({isOpen:this.state.isOpen},Gl(this.props,Ev)))}}]),n}(l.Component);Ov.propTypes=Tv,Ov.defaultProps=Mv;var Pv=["defaultOpen"],jv=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={isOpen:e.defaultOpen||!1},r.toggle=r.toggle.bind($s(r)),r}return Vt(n,[{key:"toggle",value:function(e){var t=this,n=!this.state.isOpen;this.setState({isOpen:n},(function(){t.props.onToggle&&t.props.onToggle(e,n)}))}},{key:"render",value:function(){return l.createElement(Pc,Bl({isOpen:this.state.isOpen,toggle:this.toggle},Gl(this.props,Pv)))}}]),n}(l.Component);jv.propTypes=Fl({defaultOpen:Rs.bool,onToggle:Rs.func},Pc.propTypes);var Nv=["defaultOpen"],Dv=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={isOpen:e.defaultOpen||!1},r.toggle=r.toggle.bind($s(r)),r}return Vt(n,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return l.createElement(Oh,Bl({isOpen:this.state.isOpen,toggle:this.toggle},Gl(this.props,Nv)))}}]),n}(l.Component);Dv.propTypes=Fl({defaultOpen:Rs.bool},Oh.propTypes);var Rv=["className","cssModule","type","size","color","children","tag"],Lv={tag:nu,type:Rs.string,size:Rs.string,color:Rs.string,className:Rs.string,cssModule:Rs.object,children:Rs.string},Av=function(e){var t=e.className,n=e.cssModule,r=e.type,i=e.size,o=e.color,a=e.children,s=e.tag,u=Ul(e,Rv),c=ql(il(t,!!i&&"spinner-".concat(r,"-").concat(i),"spinner-".concat(r),!!o&&"text-".concat(o)),n);return l.createElement(s,Bl({role:"status"},u,{className:c}),a&&l.createElement("span",{className:ql("visually-hidden",n)},a))};Av.propTypes=Lv,Av.defaultProps={tag:"div",type:"border",children:"Loading..."};var Iv=["className","cssModule","color","innerRef","tag","animation","size","widths"],Fv=Fl(Fl({},Fu.propTypes),{},{color:Rs.string,tag:nu,animation:Rs.oneOf(["glow","wave"]),innerRef:Rs.oneOfType([Rs.object,Rs.func,Rs.string]),size:Rs.oneOf(["lg","sm","xs"])}),zv=function(e){var t=e.className,n=e.cssModule,r=e.color,i=e.innerRef,o=e.tag,a=e.animation,s=e.size,u=e.widths,c=Ul(e,Iv),f=Au(c,n,u),d=f.attributes,h=f.colClasses,p=ql(il(t,h,"placeholder"+(a?"-"+a:""),!!s&&"placeholder-"+s,!!r&&"bg-"+r),n);return l.createElement(o,Bl({},d,{className:p,ref:i}))};zv.propTypes=Fv,zv.defaultProps={tag:"span"};var Bv=["cssModule","className","tag"],Uv={size:Rs.string,color:Rs.string,outline:Rs.bool,className:Rs.string,tag:nu},Vv={color:"primary",tag:xc},Hv=function(e){var t=e.cssModule,n=e.className,r=(e.tag,Ul(e,Bv)),i=Au(r,t),o=i.attributes,a=i.colClasses,s=ql(il("placeholder",n,a),t);return l.createElement(xc,Bl({},o,{className:s,disabled:!0}))};Hv.propTypes=Uv,Hv.defaultProps=Vv;!function(){if("object"===typeof window&&"function"!==typeof window.CustomEvent){window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}}(),function(){if("function"!==typeof Object.values){Object.values=function(e){return Object.keys(e).map((function(t){return e[t]}))}}}();var Wv,Zv={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Yv={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},qv="mousemove",Gv="mouseup";function Kv(e,t){if(0===t)return e;var n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function Qv(e){var t,n=e.trackMouse,r=l.useRef(Object.assign({},Yv)),i=l.useRef(Object.assign({},Zv)),o=l.useRef(Object.assign({},i.current));for(t in o.current=Object.assign({},i.current),i.current=Object.assign(Object.assign({},Zv),e),Zv)void 0===i.current[t]&&(i.current[t]=Zv[t]);var a=l.useMemo((function(){return function(e,t){var n=function(t){var n="touches"in t;n&&t.touches.length>1||e((function(e,i){i.trackMouse&&!n&&(document.addEventListener(qv,r),document.addEventListener(Gv,a));var o=n?t.touches[0]:t,s=Kv([o.clientX,o.clientY],i.rotationAngle);return i.onTouchStartOrOnMouseDown&&i.onTouchStartOrOnMouseDown({event:t}),Object.assign(Object.assign(Object.assign({},e),Yv),{initial:s.slice(),xy:s,start:t.timeStamp||0})}))},r=function(t){e((function(e,n){var r="touches"in t;if(r&&t.touches.length>1)return e;if(t.timeStamp-e.start>n.swipeDuration)return e.swiping?Object.assign(Object.assign({},e),{swiping:!1}):e;var i=r?t.touches[0]:t,o=v(Kv([i.clientX,i.clientY],n.rotationAngle),2),a=o[0],s=o[1],l=a-e.xy[0],u=s-e.xy[1],c=Math.abs(l),f=Math.abs(u),d=(t.timeStamp||0)-e.start,h=Math.sqrt(c*c+f*f)/(d||1),p=[l/(d||1),u/(d||1)],m=function(e,t,n,r){return e>t?n>0?"Right":"Left":r>0?"Down":"Up"}(c,f,l,u),g="number"===typeof n.delta?n.delta:n.delta[m.toLowerCase()]||Zv.delta;if(c<g&&f<g&&!e.swiping)return e;var y={absX:c,absY:f,deltaX:l,deltaY:u,dir:m,event:t,first:e.first,initial:e.initial,velocity:h,vxvy:p};y.first&&n.onSwipeStart&&n.onSwipeStart(y),n.onSwiping&&n.onSwiping(y);var b=!1;return(n.onSwiping||n.onSwiped||n["onSwiped".concat(m)])&&(b=!0),b&&n.preventScrollOnSwipe&&n.trackTouch&&t.cancelable&&t.preventDefault(),Object.assign(Object.assign({},e),{first:!1,eventData:y,swiping:!0})}))},i=function(t){e((function(e,n){var r;if(e.swiping&&e.eventData){if(t.timeStamp-e.start<n.swipeDuration){r=Object.assign(Object.assign({},e.eventData),{event:t}),n.onSwiped&&n.onSwiped(r);var i=n["onSwiped".concat(r.dir)];i&&i(r)}}else n.onTap&&n.onTap({event:t});return n.onTouchEndOrOnMouseUp&&n.onTouchEndOrOnMouseUp({event:t}),Object.assign(Object.assign(Object.assign({},e),Yv),{eventData:r})}))},o=function(){document.removeEventListener(qv,r),document.removeEventListener(Gv,a)},a=function(e){o(),i(e)},s=function(e,t){var o=function(){};if(e&&e.addEventListener){var a=Object.assign(Object.assign({},Zv.touchEventOptions),t.touchEventOptions),s=[["touchstart",n,a],["touchmove",r,Object.assign(Object.assign({},a),t.preventScrollOnSwipe?{passive:!1}:{})],["touchend",i,a]];s.forEach((function(t){var n=v(t,3),r=n[0],i=n[1],o=n[2];return e.addEventListener(r,i,o)})),o=function(){return s.forEach((function(t){var n=v(t,2),r=n[0],i=n[1];return e.removeEventListener(r,i)}))}}return o},l={ref:function(t){null!==t&&e((function(e,n){if(e.el===t)return e;var r={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),r.cleanUpTouch=void 0),n.trackTouch&&t&&(r.cleanUpTouch=s(t,n)),Object.assign(Object.assign(Object.assign({},e),{el:t}),r)}))}};return t.trackMouse&&(l.onMouseDown=n),[l,s]}((function(e){return r.current=e(r.current,i.current)}),{trackMouse:n})}),[n]),s=v(a,2),u=s[0],c=s[1];return r.current=function(e,t,n,r){return t.trackTouch&&e.el?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)}):(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0}))}(r.current,i.current,o.current,c),u}var $v=new Uint8Array(16);function Xv(){if(!Wv&&!(Wv="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Wv($v)}var Jv=/^(?:[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;for(var em=function(e){return"string"===typeof e&&Jv.test(e)},tm=[],nm=0;nm<256;++nm)tm.push((nm+256).toString(16).substr(1));var rm=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(tm[e[t+0]]+tm[e[t+1]]+tm[e[t+2]]+tm[e[t+3]]+"-"+tm[e[t+4]]+tm[e[t+5]]+"-"+tm[e[t+6]]+tm[e[t+7]]+"-"+tm[e[t+8]]+tm[e[t+9]]+"-"+tm[e[t+10]]+tm[e[t+11]]+tm[e[t+12]]+tm[e[t+13]]+tm[e[t+14]]+tm[e[t+15]]).toLowerCase();if(!em(n))throw TypeError("Stringified UUID is invalid");return n};var im=function(e,t,n){var r=(e=e||{}).random||(e.rng||Xv)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return rm(r)},om=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,i=(0,l.useState)(n),o=v(i,2),a=o[0],s=o[1],u=(0,l.useRef)(void 0),c=function(){s(!n),u.current&&t(u.current),u.current=e((function(){return s(n)}),r)};return[a,c]}},am=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,l.useState)(e),n=v(t,2),r=n[0],i=n[1];return[r,function(){return i(!r)},function(){return i(!0)},function(){return i(!1)}]},sm=function(){var e=Ce();return function(){return e(-1)}},lm=function(){return(0,l.useRef)("dom-".concat(im())).current},um="#4696e5",cm="#f77f28",fm=function(e){var t,n;return null===(t=document.getElementsByTagName("html"))||void 0===t||null===(n=t[0])||void 0===n?void 0:n.setAttribute("data-theme",e)},dm=function(){var e,t;return"dark"===(null===(e=document.getElementsByTagName("html"))||void 0===e||null===(t=e[0])||void 0===t?void 0:t.getAttribute("data-theme"))},hm=function(e){var t=e.color,n=void 0===t?um:t,r=e.className;return(0,ir.jsx)("svg",{className:r,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,ir.jsxs)("g",{fill:n,children:[(0,ir.jsx)("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),(0,ir.jsx)("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),(0,ir.jsx)("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),(0,ir.jsx)("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})})},pm=function(e){return function(){var t=v(am(),4),n=t[0],r=t[1],i=t[3],o=Se(),a=o.pathname;(0,l.useEffect)(i,[o]);var s="/settings",u=ol()("main-header__toggle-icon",{"main-header__toggle-icon--opened":n});return(0,ir.jsxs)(Vu,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[(0,ir.jsxs)(Yu,{tag:ze,to:"/",children:[(0,ir.jsx)(hm,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),(0,ir.jsx)(Ju,{onClick:r,children:(0,ir.jsx)(Ks,{icon:ai,className:u})}),(0,ir.jsx)(xf,{navbar:!0,isOpen:n,children:(0,ir.jsxs)(rc,{navbar:!0,className:"ms-auto",children:[(0,ir.jsx)(sc,{children:(0,ir.jsxs)(fc,{tag:ze,to:s,active:a.startsWith(s),children:[(0,ir.jsx)(Ks,{icon:vi}),"\xa0 Settings"]})}),(0,ir.jsx)(e,{})]})})]})}},vm=bt((function(e){for(var t=wn(e),n=t.length,r=[],i=0;i<n;)r[i]=e[t[i]],i+=1;return r})),mm=function(){return mm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},mm.apply(this,arguments)};var gm=function(e){var t=e.href,n=e.children,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(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}(e,["href","children"]);return l.createElement("a",mm({target:"_blank",rel:"noopener noreferrer",href:t},r),null!==n&&void 0!==n?n:t)},ym=function(e){var t=e.id,n=e.name;return(0,ir.jsxs)(dv,{tag:ze,to:"/server/".concat(t),className:"servers-list__server-item",children:[n,(0,ir.jsx)(Ks,{icon:ci,className:"servers-list__server-item-icon"})]})},bm=function(e){var t=e.servers,n=e.children,r=e.embedded,i=void 0!==r&&r;return(0,ir.jsxs)(ir.Fragment,{children:[n&&(0,ir.jsx)("h5",{className:"mb-md-3",children:n}),t.length>0&&(0,ir.jsx)(Ah,{className:ol()("servers-list__list-group",{"servers-list__list-group--embedded":i}),children:t.map((function(e){var t=e.id,n=e.name;return(0,ir.jsx)(ym,{id:t,name:n},t)}))})]})},_m=function(e){var t=e.servers,n=Ce(),r=vm(t),i=!Bn(r);return(0,l.useEffect)((function(){var e=r.find((function(e){return e.autoConnect}));e&&n("/server/".concat(e.id))}),[]),(0,ir.jsx)("div",{className:"home",children:(0,ir.jsx)(jf,{className:"home__main-card",children:(0,ir.jsxs)(Mu,{className:"g-0",children:[(0,ir.jsx)("div",{className:"col-md-5 d-none d-md-block",children:(0,ir.jsx)("div",{className:"home__logo-wrapper",children:(0,ir.jsx)("div",{className:"home__logo",children:(0,ir.jsx)(hm,{})})})}),(0,ir.jsxs)("div",{className:"col-md-7 home__servers-container",children:[(0,ir.jsx)("div",{className:"home__title-wrapper",children:(0,ir.jsx)("h1",{className:"home__title",children:"Welcome!"})}),(0,ir.jsx)(bm,{embedded:!0,servers:r,children:!i&&(0,ir.jsxs)("div",{className:"p-4 text-center",children:[(0,ir.jsx)("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),(0,ir.jsx)("p",{children:(0,ir.jsxs)(ze,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[(0,ir.jsx)(Ks,{icon:si})," ",(0,ir.jsx)("span",{className:"ms-1",children:"Add a server"})]})}),(0,ir.jsx)("p",{className:"mb-0 mt-5",children:(0,ir.jsx)(gm,{href:"https://shlink.io/documentation",children:(0,ir.jsxs)("small",{children:[(0,ir.jsx)("span",{className:"me-1",children:"Learn more about Shlink"})," ",(0,ir.jsx)(Ks,{icon:zr})]})})})]})})]})]})})})},xm=function(e){return{error:"border-danger",default:""}[e]},wm=function(e){return{error:"text-danger",default:"text-muted"}[e]},km=function(e){var t=e.className,n=e.children,r=e.loading,i=void 0!==r&&r,o=e.type,a=void 0===o?"default":o,s=e.fullWidth,l=void 0!==s&&s,u=ol()({"col-md-12":l,"col-md-10 offset-md-1":!l});return(0,ir.jsx)(Mu,{className:ol()("g-0",t),children:(0,ir.jsx)("div",{className:u,children:(0,ir.jsx)(jf,{className:xm(a),body:!0,children:(0,ir.jsxs)("h3",{className:ol()("text-center mb-0",wm(a)),children:[i&&(0,ir.jsx)(Ks,{icon:hr,spin:!0}),i&&(0,ir.jsx)("span",{className:"ms-2",children:null!==n&&void 0!==n?n:"Loading..."}),!i&&n]})})})})},Sm=function(e){var t=e.children;return(0,ir.jsx)("div",{className:"no-menu-wrapper container-xl",children:t})};function Cm(e,t){return function(n){var r,i=Ee(),o=n.selectServer,a=n.selectedServer;return(0,l.useEffect)((function(){i.serverId&&o(i.serverId)}),[i.serverId]),a?null!==(r=a)&&void 0!==r&&r.serverNotFound?(0,ir.jsx)(t,{}):(0,ir.jsx)(e,Ze({},n)):(0,ir.jsx)(Sm,{children:(0,ir.jsx)(km,{loading:!0})})}}function Em(e,t){var n=Om(e),r=Om(t),i=n.pop(),o=r.pop(),a=Dm(n,r);return 0!==a?a:i&&o?Dm(i.split("."),o.split(".")):i||o?i?-1:1:0}var Tm=function(e,t,n){Am(n);var r=Em(e,t);return Rm[n].includes(r)};Em.validate=function(e){return"string"===typeof e&&/^[v\d]/.test(e)&&Mm.test(e)},Em.compare=Tm,Em.sastisfies=function(e,t){var n=t.match(/^([<>=~^]+)/),r=n?n[1]:"=";if("^"!==r&&"~"!==r)return Tm(e,t,r);var i=v(Om(e),3),o=i[0],a=i[1],s=i[2],l=v(Om(t),3),u=l[0],c=l[1],f=l[2];return 0===Nm(o,u)&&("^"===r?Dm([a,s],[c,f])>=0:0===Nm(a,c)&&Nm(s,f)>=0)};var Mm=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Om=function(e){if("string"!==typeof e)throw new TypeError("Invalid argument expected string");var t=e.match(Mm);if(!t)throw new Error("Invalid argument not valid semver ('".concat(e,"' received)"));return t.shift(),t},Pm=function(e){return"*"===e||"x"===e||"X"===e},jm=function(e){var t=parseInt(e,10);return isNaN(t)?e:t},Nm=function(e,t){if(Pm(e)||Pm(t))return 0;var n=function(e,t){return typeof e!==typeof t?[String(e),String(t)]:[e,t]}(jm(e),jm(t)),r=v(n,2),i=r[0],o=r[1];return i>o?1:i<o?-1:0},Dm=function(e,t){for(var n=0;n<Math.max(e.length,t.length);n++){var r=Nm(e[n]||0,t[n]||0);if(0!==r)return r}return 0},Rm={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},Lm=Object.keys(Rm),Am=function(e){if("string"!==typeof e)throw new TypeError("Invalid operator type, expected string but got ".concat(typeof e));if(-1===Lm.indexOf(e))throw new Error("Invalid operator, expected one of ".concat(Lm.join("|")))},Im=_t((function(e,t){var n={};return en(t.length,(function(){var r=e.apply(this,arguments);return hn(r,n)||(n[r]=t.apply(this,arguments)),n[r]}))})),Fm=Im;function zm(e){return e}var Bm=bt(zm);function Um(e){return"[object Number]"===Object.prototype.toString.call(e)}var Vm=_t((function(e,t){if(!Um(e)||!Um(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n})),Hm=Vm;function Wm(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Zm(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return yt(n)?t:_t((function(t,r){return e(n,t,r)}));case 2:return yt(n)&&yt(r)?t:yt(n)?_t((function(t,n){return e(t,r,n)})):yt(r)?_t((function(t,r){return e(n,t,r)})):bt((function(t){return e(n,r,t)}));default:return yt(n)&&yt(r)&&yt(i)?t:yt(n)&&yt(r)?_t((function(t,n){return e(t,n,i)})):yt(n)&&yt(i)?_t((function(t,n){return e(t,r,n)})):yt(r)&&yt(i)?_t((function(t,r){return e(n,t,r)})):yt(n)?bt((function(t){return e(t,r,i)})):yt(r)?bt((function(t){return e(n,t,i)})):yt(i)?bt((function(t){return e(n,r,t)})):e(n,r,i)}}}var Ym=Zm(sn);function qm(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return qt(r)||"function"!==typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var Gm=Zm(qm("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)}))),Km=Gm,Qm=bt(qm("tail",Km(1,1/0)));function $m(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return en(arguments[0].length,Ym(Wm,arguments[0],Qm(arguments)))}var Xm=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Hm(n,e+1).map(t)},Jm=function(e){return!Mn(e)&&!Bn(e)},eg=function(e){return $m((function(e){return e.preventDefault()}),e)},tg=function(e){return Bn(e)?null:e},ng=Fm(Bm,(function(e){try{return Tm(e,e,"=")}catch(sI){return!1}})),rg=function(e){return ng(e)?"v".concat(e):e},ig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"latest";return function(t){return ng(t)?t:e}},og=function(e){return function(t){return At(t)&&function(e,t){var n=t.maxVersion,r=t.minVersion;if(!Jm(e))return!1;var i=!r||Tm(e,r,">=");return(!n||Tm(e,n,"<="))&&i}(t.version,{minVersion:e})}},ag=og("2.7.0"),sg=ag,lg=og("2.8.0"),ug=lg,cg=og("2.9.0"),fg=cg,dg=og("2.10.0"),hg=og("3.0.0"),pg=hg,vg=og("3.1.0"),mg=["title","children","bodyClassName"],gg=function(e){var t=e.title,n=e.children,r=e.bodyClassName,i=Wt(e,mg);return(0,ir.jsxs)(jf,Ze(Ze({},i),{},{children:[t&&(0,ir.jsx)(td,{role:"heading",children:t}),(0,ir.jsx)(Wf,{className:r,children:n})]}))},yg=function(e){var t=e.to,n=void 0===t?"/":t,r=e.children,i=void 0===r?"Home":r;return(0,ir.jsx)("div",{className:"home",children:(0,ir.jsxs)(gg,{className:"p-4",children:[(0,ir.jsx)("h2",{children:"Oops! We could not find requested route."}),(0,ir.jsx)("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),(0,ir.jsx)("br",{}),(0,ir.jsx)(ze,{to:n,className:"btn btn-outline-primary btn-lg",children:i})]})})},bg=function(e,t,n,r,i,o,a,s,u,c,f,d,h){return Cm((function(p){var m=p.selectedServer,g=p.sidebarNotPresent,y=p.sidebarPresent,b=Se(),_=v(am(),4),x=_[0],w=_[1],k=_[2],S=_[3],C=At(m);if((0,l.useEffect)((function(){return S()}),[b]),(0,l.useEffect)((function(){return C&&y(),function(){return g()}}),[]),!C)return(0,ir.jsx)(c,{});var E=hg(m),T=ug(m),M=vg(m),O=ol()("menu-layout__burger-icon",{"menu-layout__burger-icon--active":x}),P=function(e,t){var n=function(e){return function(t){var n=t.event.composedPath().some((function(e){var t=e.classList;return null===t||void 0===t?void 0:t.contains("visits-table")}));n||document.querySelector(".modal")||e()}};return Qv({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})}(k,S);return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Ks,{icon:pr,className:O,onClick:w}),(0,ir.jsx)("div",Ze(Ze({},P),{},{className:"menu-layout__swipeable",children:(0,ir.jsxs)("div",{className:"menu-layout__swipeable-inner",children:[(0,ir.jsx)(n,{selectedServer:m,showOnMobile:x}),(0,ir.jsx)("div",{className:"menu-layout__container",onClick:function(){return S()},children:(0,ir.jsx)("div",{className:"container-xl",children:(0,ir.jsxs)(Ne,{children:[(0,ir.jsx)(Pe,{index:!0,element:(0,ir.jsx)(Oe,{replace:!0,to:"overview"})}),(0,ir.jsx)(Pe,{path:"/overview",element:(0,ir.jsx)(f,{})}),(0,ir.jsx)(Pe,{path:"/list-short-urls/:page",element:(0,ir.jsx)(t,{})}),(0,ir.jsx)(Pe,{path:"/create-short-url",element:(0,ir.jsx)(r,{})}),(0,ir.jsx)(Pe,{path:"/short-code/:shortCode/visits/*",element:(0,ir.jsx)(i,{})}),(0,ir.jsx)(Pe,{path:"/short-code/:shortCode/edit",element:(0,ir.jsx)(d,{})}),(0,ir.jsx)(Pe,{path:"/tag/:tag/visits/*",element:(0,ir.jsx)(o,{})}),M&&(0,ir.jsx)(Pe,{path:"/domain/:domain/visits/*",element:(0,ir.jsx)(a,{})}),(0,ir.jsx)(Pe,{path:"/orphan-visits/*",element:(0,ir.jsx)(s,{})}),E&&(0,ir.jsx)(Pe,{path:"/non-orphan-visits/*",element:(0,ir.jsx)(u,{})}),(0,ir.jsx)(Pe,{path:"/manage-tags",element:(0,ir.jsx)(e,{})}),T&&(0,ir.jsx)(Pe,{path:"/manage-domains",element:(0,ir.jsx)(h,{})}),(0,ir.jsx)(Pe,{path:"*",element:(0,ir.jsx)(yg,{to:"/server/".concat(m.id,"/list-short-urls/1"),children:"List short URLs"})})]})})})]})}))]})}),c)},_g=["children","to","className"],xg=function(e){var t=e.children,n=e.to,r=e.className,i=Wt(e,_g);return(0,ir.jsx)(Be,Ze(Ze({className:function(e){var t=e.isActive;return ol()("aside-menu__item",r,{"aside-menu__item--selected":t})},to:n},i),{},{children:t}))},wg=function(e){return function(t){var n=t.selectedServer,r=t.showOnMobile,i=void 0!==r&&r,o=Lt(n),a=o?n.id:"",s=Se().pathname,l=ug(n),u=ol()("aside-menu",{"aside-menu--hidden":!i}),c=function(e){return"/server/".concat(a).concat(e)};return(0,ir.jsx)("aside",{className:u,children:(0,ir.jsxs)("nav",{className:"nav flex-column aside-menu__nav",children:[(0,ir.jsxs)(xg,{to:c("/overview"),children:[(0,ir.jsx)(Ks,{fixedWidth:!0,icon:$r}),(0,ir.jsx)("span",{className:"aside-menu__item-text",children:"Overview"})]}),(0,ir.jsxs)(xg,{to:c("/list-short-urls/1"),className:ol()({"aside-menu__item--selected":null!==s.match("/list-short-urls")}),children:[(0,ir.jsx)(Ks,{fixedWidth:!0,icon:vr}),(0,ir.jsx)("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),(0,ir.jsxs)(xg,{to:c("/create-short-url"),children:[(0,ir.jsx)(Ks,{fixedWidth:!0,icon:ri,flip:"horizontal"}),(0,ir.jsx)("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),(0,ir.jsxs)(xg,{to:c("/manage-tags"),children:[(0,ir.jsx)(Ks,{fixedWidth:!0,icon:Dr}),(0,ir.jsx)("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),l&&(0,ir.jsxs)(xg,{to:c("/manage-domains"),children:[(0,ir.jsx)(Ks,{fixedWidth:!0,icon:xr}),(0,ir.jsx)("span",{className:"aside-menu__item-text",children:"Manage domains"})]}),(0,ir.jsxs)(xg,{to:c("/edit"),className:"aside-menu__item--push",children:[(0,ir.jsx)(Ks,{fixedWidth:!0,icon:Lr}),(0,ir.jsx)("span",{className:"aside-menu__item-text",children:"Edit this server"})]}),o&&(0,ir.jsx)(e,{className:"aside-menu__item aside-menu__item--danger",textClassName:"aside-menu__item-text",server:n})]})})}},kg=function(e,t){var n=e.location,r=t.error;return function(e){Js(i,e);var t=rl(i);function i(e){var n;return Ht(this,i),(n=t.call(this,e)).state={hasError:!1},n}return Vt(i,[{key:"componentDidCatch",value:function(e){r(e)}},{key:"render",value:function(){return this.state.hasError?(0,ir.jsx)("div",{className:"home",children:(0,ir.jsxs)(gg,{className:"p-4",children:[(0,ir.jsx)("h1",{children:"Oops! This is awkward :S"}),(0,ir.jsx)("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),(0,ir.jsx)("br",{}),(0,ir.jsx)(xc,{outline:!0,color:"primary",onClick:function(){return n.reload()},children:"Take me back"})]})}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),i}(l.Component)},Sg=$m(ig(),rg),Cg=function(e){var t=e.project,n=e.version;return(0,ir.jsx)(gm,{href:"https://github.com/shlinkio/".concat(t,"/releases/").concat(n),className:"text-muted",children:(0,ir.jsx)("b",{children:n})})},Eg=function(e){var t=e.selectedServer,n=e.clientVersion,r=Sg(void 0===n?"%_VERSION_%":n);return(0,ir.jsxs)("small",{className:"text-muted",children:[At(t)&&(0,ir.jsxs)(ir.Fragment,{children:["Server: ",(0,ir.jsx)(Cg,{project:"shlink",version:t.printableVersion})," - "]}),"Client: ",(0,ir.jsx)(Cg,{project:"shlink-web-client",version:r})]})},Tg=function(e){var t=e.selectedServer,n=e.sidebar,r=ol()("text-center",{"shlink-versions-container--with-sidebar":n.sidebarPresent});return(0,ir.jsx)("div",{className:r,children:(0,ir.jsx)(Eg,{selectedServer:t})})};function Mg(e){return function(t){var n=t.resetSelectedServer;return(0,l.useEffect)((function(){n()}),[]),(0,ir.jsx)(e,Ze({},t))}}var Og,Pg,jg=function(e,t){return function(n,r){var i=r.type,o=e[i],a=null!==n&&void 0!==n?n:t;return o?o(a,r):a}},Ng=function(e){return function(){return{type:e}}},Dg="shlink/common/SIDEBAR_PRESENT",Rg="shlink/common/SIDEBAR_NOT_PRESENT",Lg=jg((He(Og={},Dg,(function(){return{sidebarPresent:!0}})),He(Og,Rg,(function(){return{sidebarPresent:!1}})),Og),{sidebarPresent:!1}),Ag=Ng(Dg),Ig=Ng(Rg),Fg=function(e,t,n){var r=e.document,i=r.createElement("a");i.setAttribute("href",t),i.setAttribute("download",n),i.style.visibility="hidden",r.body.appendChild(i),i.click(),r.body.removeChild(i)},zg=function(e,t,n){var r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);Fg(e,i,n)},Bg=function(){function e(t,n){Ht(this,e),this.axios=t,this.window=n}return Vt(e,[{key:"saveImage",value:function(){var e=Bt(Yt().mark((function e(t,n){var r,i,o;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.axios.get(t,{responseType:"blob"});case 2:r=e.sent,i=r.data,o=URL.createObjectURL(i),Fg(this.window,o,n);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}(),Ug=Vt((function e(t,n){var r=this;Ht(this,e),this.window=t,this.jsonToCsv=n,this.exportVisits=function(e,t){t.length&&r.exportCsv(e,t)},this.exportShortUrls=function(e){e.length&&r.exportCsv("short_urls.csv",e)},this.exportCsv=function(e,t){var n=r.jsonToCsv(t);zg(r.window,n,e)}})),Vg=function(e,t){e.constant("window",n.g.window),e.constant("console",n.g.console),e.constant("axios",rr()),e.service("ImageDownloader",Bg,"axios","window"),e.service("ReportExporter",Ug,"window","jsonToCsv"),e.serviceFactory("ScrollToTop",(function(){return or})),e.serviceFactory("MainHeader",pm,"ServersDropdown"),e.serviceFactory("Home",(function(){return _m})),e.decorator("Home",Mg),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("MenuLayout",bg,"TagsList","ShortUrlsList","AsideMenu","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","ServerError","Overview","EditShortUrl","ManageDomains"),e.decorator("MenuLayout",t(["selectedServer"],["selectServer","sidebarPresent","sidebarNotPresent"])),e.serviceFactory("AsideMenu",wg,"DeleteServerButton"),e.serviceFactory("ShlinkVersionsContainer",(function(){return Tg})),e.decorator("ShlinkVersionsContainer",t(["selectedServer","sidebar"])),e.serviceFactory("ErrorHandler",kg,"window","console"),e.serviceFactory("sidebarPresent",(function(){return Ag})),e.serviceFactory("sidebarNotPresent",(function(){return Ig}))},Hg=n(4892),Wg=function(e){var t=e.onChange,n=e.className,r=e.large,i=void 0===r||r,o=e.noBorder,a=void 0!==o&&o,s=e.initialValue,u=void 0===s?"":s,c=v((0,l.useState)(u),2),f=c[0],d=c[1],h=function(){Pg&&clearTimeout(Pg),Pg=null},p=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;d(e),h(),Pg=setTimeout((function(){t(e),h()}),n)};return(0,ir.jsxs)("div",{className:ol()("search-field",n),children:[(0,ir.jsx)("input",{type:"text",className:ol()("form-control search-field__input",{"form-control-lg":i,"search-field__input--no-border":a}),placeholder:"Search...",value:f,onChange:function(e){return p(e.target.value)}}),(0,ir.jsx)(Ks,{icon:oi,className:"search-field__icon"}),(0,ir.jsx)("div",{className:"close search-field__close btn-close",hidden:""===f,id:"search-field__close",onClick:function(){return p("",0)}})]})},Zg=function(e){var t=e.text,n=e.disabled,r=void 0!==n&&n,i=e.className,o=void 0===i?"":i,a=e.children,s=e.dropdownClassName,l=e.right,u=void 0!==l&&l,c=e.minWidth,f=v(am(),2),d=f[0],h=f[1],p="dropdown-btn__toggle btn-block ".concat(o),m={minWidth:c&&"".concat(c,"px")};return(0,ir.jsxs)(Pc,{isOpen:d,toggle:h,disabled:r,className:s,children:[(0,ir.jsx)(Xc,{caret:!0,className:p,color:"primary",children:t}),(0,ir.jsx)(Gc,{className:"w-100",end:u,style:m,children:a})]})},Yg=n(121),qg=n(1776),Gg=n(3358);function Kg(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}var Qg=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=ln,e.prototype["@@transducer/result"]=un,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),$g=_t((function(e,t){return new Qg(e,t)})),Xg=$g;function Jg(e,t,n){return function(){for(var r=[],i=0,o=e,a=0;a<t.length||i<arguments.length;){var s;a<t.length&&(!yt(t[a])||i>=arguments.length)?s=t[a]:(s=arguments[i],i+=1),r[a]=s,yt(s)||(o-=1),a+=1}return o<=0?n.apply(this,r):en(o,Jg(e,r,n))}}var ey=_t((function(e,t){return 1===e?bt(t):en(e,Jg(e,[],t))})),ty=ey,ny=_t(Kt(["fantasy-land/map","map"],Xg,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return ty(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return sn((function(n,r){return n[r]=e(t[r]),n}),{},wn(t));default:return Kg(e,t)}}))),ry=ny,iy=_t((function(e,t){return t>e?t:e})),oy=iy,ay=bt((function(e){return en(Ym(oy,0,ry((function(e){return e[0].length}),e)),(function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}}))})),sy=ay,ly=function(){return!0},uy=n(2612),cy=n(2952),fy=n(949),dy=n(825);var hy=n(4773),py=n(5560),vy=n(1328),my=function(e){return"string"!==typeof e},gy=function(e,t){return e&&my(e)?t?(0,uy.default)(e,t):function(e,t){(0,dy.Z)(1,arguments);var n=(0,cy.default)(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");var r=null!==t&&void 0!==t&&t.format?String(t.format):"extended",i=null!==t&&void 0!==t&&t.representation?String(t.representation):"complete";if("extended"!==r&&"basic"!==r)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==i&&"time"!==i&&"complete"!==i)throw new RangeError("representation must be 'date', 'time', or 'complete'");var o="",a="",s="extended"===r?"-":"",l="extended"===r?":":"";if("time"!==i){var u=(0,fy.Z)(n.getDate(),2),c=(0,fy.Z)(n.getMonth()+1,2),f=(0,fy.Z)(n.getFullYear(),4);o="".concat(f).concat(s).concat(c).concat(s).concat(u)}if("date"!==i){var d=n.getTimezoneOffset();if(0!==d){var h=Math.abs(d),p=(0,fy.Z)(Math.floor(h/60),2),v=(0,fy.Z)(h%60,2);a="".concat(d<0?"+":"-").concat(p,":").concat(v)}else a="Z";var m=""===o?"":"T",g=[(0,fy.Z)(n.getHours(),2),(0,fy.Z)(n.getMinutes(),2),(0,fy.Z)(n.getSeconds(),2)].join(l);o="".concat(o).concat(m).concat(g).concat(a)}return o}(e):e},yy=function(e){return gy(e,void 0)},by=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"yyyy-MM-dd";return function(t){return gy(t,e)}}(),_y=function(e){return my(e)?e:(0,Hg.default)(e)},xy=function(e,t,n){try{return(0,hy.default)(_y(e),{start:_y(null!==t&&void 0!==t?t:e),end:_y(null!==n&&void 0!==n?n:e)})}catch(sI){return!1}},wy=function(e,t){return(0,py.default)(e,t)||(0,vy.default)(e,t)},ky=function(e){return void 0===e||Bn(Sn(Boolean,e))},Sy=function(e){return"string"===typeof e},Cy={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",all:void 0},Ey=Object.keys(Cy).filter((function(e){return"all"!==e})),Ty=function(e){if(e&&"all"!==e)return Sy(e)?Cy[e]:function(e){if(e&&!ky(e))return e.startDate&&!e.endDate?"Since ".concat(by(e.startDate)):!e.startDate&&e.endDate?"Until ".concat(by(e.endDate)):"".concat(by(e.startDate)," - ").concat(by(e.endDate))}(e)},My=function(e){return(0,Yg.default)((0,qg.default)(new Date,e))},Oy=function(e){return{startDate:e,endDate:(0,Gg.default)(new Date)}},Py=function(e){if(!e||"all"===e)return{};switch(e){case"today":return Oy((0,Yg.default)(new Date));case"yesterday":return{startDate:My(1),endDate:(0,Gg.default)((0,qg.default)(new Date,1))};case"last7Days":return Oy(My(7));case"last30Days":return Oy(My(30));case"last90Days":return Oy(My(90));case"last180Days":return Oy(My(180));case"last365Days":return Oy(My(365))}return{}},jy=function(e){var t=_y(e);return sy([[function(){return wy((0,Yg.default)(new Date),t)},function(){return"today"}],[function(){return wy(My(1),t)},function(){return"yesterday"}],[function(){return wy(My(7),t)},function(){return"last7Days"}],[function(){return wy(My(30),t)},function(){return"last30Days"}],[function(){return wy(My(90),t)},function(){return"last90Days"}],[function(){return wy(My(180),t)},function(){return"last180Days"}],[function(){return wy(My(365),t)},function(){return"last365Days"}],[ly,function(){return"all"}]])()},Ny=n(577),Dy=n.n(Ny),Ry={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"]},Ly=Ry,Ay={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"]},Iy=Ay,Fy={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"]},zy={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"]},By=function(e){var t=e.className,n=e.isClearable,r=e.selected,i=!n||Mn(r),o=(0,l.useRef)();return(0,ir.jsxs)("div",{className:"date-input-container",children:[(0,ir.jsx)(Dy(),Ze(Ze({},e),{},{dateFormat:"yyyy-MM-dd",className:ol()("date-input-container__input form-control",t),ref:o})),i&&(0,ir.jsx)(Ks,{icon:Ly,className:"date-input-container__icon",onClick:function(){var e;return null===(e=o.current)||void 0===e?void 0:e.input.focus()}})]})},Uy=function(e){var t=e.startDate,n=void 0===t?null:t,r=e.endDate,i=void 0===r?null:r,o=e.disabled,a=void 0!==o&&o,s=e.onStartDateChange,l=e.onEndDateChange;return(0,ir.jsxs)("div",{className:"row",children:[(0,ir.jsx)("div",{className:"col-md-6",children:(0,ir.jsx)(By,{selected:n,placeholderText:"Since...",isClearable:!0,maxDate:null!==i&&void 0!==i?i:void 0,disabled:a,onChange:s})}),(0,ir.jsx)("div",{className:"col-md-6",children:(0,ir.jsx)(By,{className:"mt-2 mt-md-0",selected:i,placeholderText:"Until...",isClearable:!0,minDate:null!==n&&void 0!==n?n:void 0,disabled:a,onChange:function(e){return l(e&&(0,Gg.default)(e))}})})]})},Vy=function(e){var t=e.active,n=e.allText,r=e.onChange;return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Hc,{active:"all"===t,onClick:function(){return r("all")},children:n}),(0,ir.jsx)(Hc,{divider:!0}),Ey.map((function(e){return(0,ir.jsx)(Hc,{active:t===e,onClick:function(){return r(e)},children:Ty(e)},e)}))]})},Hy=function(e){var t,n=e.onDatesChange,r=e.initialDateRange,i=e.defaultText,o=e.disabled,a=e.updatable,s=void 0!==a&&a,u=Sy(r),c=v((0,l.useState)(u?r:void 0),2),f=c[0],d=c[1],h=v((0,l.useState)(u?void 0:r),2),p=h[0],m=h[1],g=function(e){d(ky(e)?"all":void 0),m(e),n(e)},y=function(e){d(e),m(void 0),n(Py(e))};return s&&function(e,t){var n=(0,l.useRef)(!0);(0,l.useEffect)((function(){!n.current&&e(),n.current=!1}),t)}((function(){var e=Sy(r);e&&y(r),r&&!e&&g(r)}),[r]),(0,ir.jsxs)(Zg,{disabled:o,text:null!==(t=Ty(null!==f&&void 0!==f?f:p))&&void 0!==t?t:i,children:[(0,ir.jsx)(Vy,{allText:i,active:f,onChange:y}),(0,ir.jsx)(Hc,{divider:!0}),(0,ir.jsx)(Hc,{header:!0,children:"Custom:"}),(0,ir.jsx)(Hc,{text:!0,children:(0,ir.jsx)(Uy,Ze(Ze({},p),{},{onStartDateChange:function(e){return g(Ze(Ze({},p),{},{startDate:e}))},onEndDateChange:function(e){return g(Ze(Ze({},p),{},{endDate:e}))}}))})]})},Wy=bt((function(e){var t=[];for(var n in e)hn(n,e)&&(t[t.length]=[n,e[n]]);return t})),Zy=Wy;function Yy(e){var t,n=e.items,r=e.order,i=e.onChange,o=e.isButton,a=void 0===o||o,s=e.right,l=void 0!==s&&s,u=e.prefixed,c=void 0===u||u,f=function(e){return function(){var t=Zn(e,r.field,r.dir);i(t?e:void 0,t)}};return(0,ir.jsxs)(jv,{children:[(0,ir.jsxs)(Xc,{caret:!0,color:a?"primary":"link",className:ol()({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":a,"btn-sm p-0":!a}),children:[!a&&(0,ir.jsx)(ir.Fragment,{children:"Order by"}),a&&!r.field&&(0,ir.jsx)("i",{children:"Order by..."}),a&&r.field&&(0,ir.jsxs)(ir.Fragment,{children:[c&&"Order by: ",n[r.field]," - ",(0,ir.jsx)("small",{children:null!==(t=r.dir)&&void 0!==t?t:"DESC"})]})]}),(0,ir.jsxs)(Gc,{end:l,className:ol()("w-100",{"ordering-dropdown__menu--link":!a}),children:[Zy(n).map((function(e){var t=v(e,2),n=t[0],i=t[1];return(0,ir.jsxs)(Hc,{active:r.field===n,onClick:f(n),children:[i,r.field===n&&(0,ir.jsx)(Ks,{icon:"ASC"===r.dir?Jr:jr,className:"ordering-dropdown__sort-icon"})]},n)})),(0,ir.jsx)(Hc,{divider:!0}),(0,ir.jsx)(Hc,{disabled:!r.field,onClick:function(){return i()},children:(0,ir.jsx)("i",{children:"Clear selection"})})]})]})}var qy=["orderBy","tags"],Gy=["orderBy","tags"],Ky=function(){var e=Ce(),t=Se(),n=Ee(),r=(0,l.useMemo)($m((function(){return Hn(t.search)}),(function(e){var t,n=e.orderBy,r=e.tags,i=Wt(e,qy),o=n?function(e){var t=v(e.split("-"),2);return{field:t[0],dir:t[1]}}(n):void 0,a=null!==(t=null===r||void 0===r?void 0:r.split(","))&&void 0!==t?t:[];return Ze(Ze({},i),{},{orderBy:o,tags:a})})),[t.search]);return[r,function(t){var i,o=Ze(Ze({},r),t),a=o.orderBy,s=o.tags,l=Ze(Ze({},Wt(o,Gy)),{},{orderBy:a&&qn(a),tags:s.length>0?s.join(","):void 0}),u=Wn(l),c=Bn(u)?"":"?".concat(u);e("/server/".concat(null!==(i=n.serverId)&&void 0!==i?i:"","/list-short-urls/1").concat(c))}]},Qy={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},$y=function(e){return e?(0,Hg.default)(e):null},Xy=function(e,t){return function(n){var r=n.selectedServer,i=n.className,o=n.shortUrlsAmount,a=n.order,s=n.handleOrderBy,l=v(Ky(),2),u=l[0],c=u.search,f=u.tags,d=u.startDate,h=u.endDate,p=u.tagsMode,m=void 0===p?"any":p,g=l[1],y=$m((function(e){var t,n,r=e.startDate,i=e.endDate;return{startDate:null!==(t=yy(r))&&void 0!==t?t:void 0,endDate:null!==(n=yy(i))&&void 0!==n?n:void 0}}),g),b=$m((function(e){return Bn(e)?void 0:e}),(function(e){return g({search:e})})),_=pg(r),x=$m((function(){return"any"===m?"all":"any"}),(function(e){return g({tagsMode:e})}));return(0,ir.jsxs)("div",{className:ol()("short-urls-filtering-bar-container",i),children:[(0,ir.jsx)(Wg,{initialValue:c,onChange:b}),(0,ir.jsxs)(ip,{className:"mt-3",children:[(0,ir.jsx)(t,{allowNew:!1,placeholder:"With tags...",selectedTags:f,onChange:function(e){return g({tags:e})}}),_&&f.length>1&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(xc,{outline:!0,color:"secondary",onClick:x,id:"tagsModeBtn","aria-label":"Change tags mode",children:(0,ir.jsx)(Ks,{className:"short-urls-filtering-bar__tags-icon",icon:"all"===m?Dr:Vr})}),(0,ir.jsx)(Dv,{target:"tagsModeBtn",placement:"left",children:"all"===m?"With all the tags.":"With any of the tags."})]})]}),(0,ir.jsxs)(Mu,{className:"flex-lg-row-reverse",children:[(0,ir.jsx)("div",{className:"col-lg-8 col-xl-6 mt-3",children:(0,ir.jsx)(Hy,{defaultText:"All short URLs",initialDateRange:{startDate:$y(d),endDate:$y(h)},onDatesChange:y})}),(0,ir.jsx)("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:(0,ir.jsx)(e,{amount:o})}),(0,ir.jsx)("div",{className:"col-6 d-lg-none mt-3",children:(0,ir.jsx)(Yy,{prefixed:!1,items:Qy,order:a,onChange:s})})]})]})}},Jy=n(1919);function eb(e,t){var n=new Set;return function(r){var i=r.createNewVisits,o=r.loadMercureInfo,a=r.mercureInfo,s=a.interval,u=Ee();return(0,l.useEffect)((function(){var e=t(r,u),l=function(e,t,n,r){var i=e.mercureHubUrl,o=e.token,a=e.loading,s=e.error;if(!a&&!s&&i){var l=function(e){var t=e.data;return n(JSON.parse(t))},u=function(e){return 401===e.status&&r()},c=t.map((function(e){var t=new URL(i);t.searchParams.append("topic",e);var n=new Jy.EventSourcePolyfill(t,{headers:{Authorization:"Bearer ".concat(o)}});return n.onmessage=l,n.onerror=u,n}));return function(){return c.forEach((function(e){return e.close()}))}}}(a,e,(function(e){return s?n.add(e):i([e])}),o);if(!s)return l;var c=setInterval((function(){i(g(n)),n.clear()}),1e3*s*60);return $m((function(){return clearInterval(c)}),(function(){return null===l||void 0===l?void 0:l()}))}),[a]),(0,ir.jsx)(e,Ze({},r))}}var tb=Vt((function e(){Ht(this,e)}));function nb(e){var t=e.currentOrder,n=e.field,r=e.className,i=void 0===r?"ms-1":r;return t.dir&&t.field===n?(0,ir.jsx)(Ks,{icon:"ASC"===t.dir?Mr:qr,className:i}):null}tb.visits="https://shlink.io/new-visit",tb.orphanVisits="https://shlink.io/new-orphan-visit",tb.shortUrlVisits=function(e){return"https://shlink.io/new-visit/".concat(e)};var rb=Zm((function(e,t,n){var r,i={};for(r in t)hn(r,t)&&(i[r]=hn(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)hn(r,n)&&!hn(r,i)&&(i[r]=n[r]);return i})),ib=rb,ob=Zm((function e(t,n,r){return ib((function(n,r,i){return Qt(r)&&Qt(i)?e(t,r,i):t(n,r,i)}),n,r)})),ab=ob,sb=_t((function(e,t){return ab((function(e,t,n){return n}),e,t)})),lb=_t((function(e,t){var n={};for(var r in t)n[r]=t[r];return delete n[e],n})),ub=lb,cb="shlink/realTimeUpdates/SET_SETTINGS",fb={field:"dateCreated",dir:"DESC"},db={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:fb}},hb=jg(He({},cb,(function(e,t){return sb(e,ub("type",t))})),db),pb=function(e){return{type:cb,realTimeUpdates:{enabled:e}}},vb=function(e){return{type:cb,realTimeUpdates:{interval:e}}},mb=function(e){return{type:cb,shortUrlCreation:e}},gb=function(e){return{type:cb,shortUrlsList:e}},yb=function(e){return{type:cb,ui:e}},bb=function(e){return{type:cb,visits:e}},_b=function(e){return{type:cb,tags:e}},xb=_t((function(e,t){return t<e?t:e})),wb=xb,kb=Math.ceil,Sb=new Intl.NumberFormat("en-US"),Cb=function(e){return Sb.format(Number(e))},Eb="...",Tb=function(e,t){var n=Hm(oy(2,e-2),wb(t-1,e+2)+1);return e-2>2&&n.unshift(Eb),e+2<t-1&&n.push(Eb),n.unshift(1),n.push(t),n},Mb=function(e){return e===Eb},Ob=function(e){return Mb(e)?e:Cb(e)},Pb=function(e,t){return Mb(e)?"".concat(e,"_").concat(t):"".concat(e)},jb=function(e){var t=e.paginator,n=e.serverId,r=e.currentQueryString,i=void 0===r?"":r,o=null!==t&&void 0!==t?t:{},a=o.currentPage,s=void 0===a?0:a,l=o.pagesCount,u=void 0===l?0:l,c=function(e){return"/server/".concat(n,"/list-short-urls/").concat(e).concat(i)};if(u<=1)return null;return(0,ir.jsxs)(Dp,{className:"sticky-card-paginator",listClassName:"flex-wrap justify-content-center mb-0",children:[(0,ir.jsx)(Ip,{disabled:1===s,children:(0,ir.jsx)(Up,{previous:!0,tag:ze,to:c(s-1)})}),Tb(s,u).map((function(e,t){return(0,ir.jsx)(Ip,{disabled:Mb(e),active:s===e,children:(0,ir.jsx)(Up,{tag:ze,to:c(e),children:Ob(e)})},Pb(e,t))})),(0,ir.jsx)(Ip,{disabled:s>=u,children:(0,ir.jsx)(Up,{next:!0,tag:ze,to:c(s+1)})})]})},Nb=function(e,t){return eb((function(n){var r,i,o,a,s=n.listShortUrls,u=n.shortUrlsList,c=n.selectedServer,f=n.settings,d=It(c),h=Ee().page,p=Se(),m=v(Ky(),2),y=m[0],b=y.tags,_=y.search,x=y.startDate,w=y.endDate,k=y.orderBy,S=y.tagsMode,C=m[1],E=v((0,l.useState)(null!==(r=null!==k&&void 0!==k?k:null===(i=f.shortUrlsList)||void 0===i?void 0:i.defaultOrdering)&&void 0!==r?r:fb),2),T=E[0],M=E[1],O=(null!==(o=null===u||void 0===u?void 0:u.shortUrls)&&void 0!==o?o:{}).pagination,P=function(e,t){C({orderBy:{field:e,dir:t}}),M({field:e,dir:t})},j=$m((function(e){return g(new Set([].concat(g(b),[e])))}),(function(e){return C({tags:e})}));return(0,l.useEffect)((function(){s({page:h,searchTerm:_,tags:b,startDate:x,endDate:w,orderBy:T,tagsMode:S})}),[h,_,b,x,w,T,S]),(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(t,{selectedServer:c,shortUrlsAmount:null===(a=u.shortUrls)||void 0===a?void 0:a.pagination.totalItems,order:T,handleOrderBy:P,className:"mb-3"}),(0,ir.jsxs)(jf,{body:!0,className:"pb-1",children:[(0,ir.jsx)(e,{selectedServer:c,shortUrlsList:u,orderByColumn:function(e){return function(){return P(e,Zn(e,T.field,T.dir))}},renderOrderIcon:function(e){return(0,ir.jsx)(nb,{currentOrder:T,field:e})},onTagClick:j}),(0,ir.jsx)(jb,{paginator:O,serverId:d,currentQueryString:p.search})]})]})}),(function(){return[tb.visits]}))},Db=function(e){var t=e.text,n=e.children,r=e.clearable,i=e.className,o=void 0===i?"":i,a=e.colorGenerator,s=e.onClick,l=e.onClose;return(0,ir.jsxs)("span",{className:ol()("badge tag",o,{"tag--light-bg":a.isColorLightForKey(t)}),style:{backgroundColor:a.getColorForKey(t),cursor:r||!s?"auto":"pointer"},onClick:s,children:[null!==n&&void 0!==n?n:t,r&&(0,ir.jsx)("span",{"aria-label":"Remove ".concat(t),className:"close tag__close-selected-tag",onClick:l,children:"\xd7"})]})},Rb=n(5176),Lb=n.n(Rb),Ab=function(e){var t=e.text,n=e.onCopy;return(0,ir.jsx)(Lb(),{text:t,onCopy:n,children:(0,ir.jsx)(Ks,{icon:zy,className:"ms-2 copy-to-clipboard-icon"})})},Ib=n(3558);function Fb(e){return(0,dy.Z)(1,arguments),Math.floor((0,Ib.default)(e)/1e3)}function zb(e,t){(0,dy.Z)(2,arguments);var n=(0,cy.default)(e),r=(0,cy.default)(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var Bb=n(2228),Ub=n(4829);function Vb(e){(0,dy.Z)(1,arguments);var t=(0,cy.default)(e);return(0,Gg.default)(t).getTime()===(0,Ub.default)(t).getTime()}function Hb(e,t){(0,dy.Z)(2,arguments);var n,r=(0,cy.default)(e),i=(0,cy.default)(t),o=zb(r,i),a=Math.abs((0,Bb.default)(r,i));if(a<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);var s=zb(r,i)===-o;Vb((0,cy.default)(e))&&1===a&&1===zb(e,i)&&(s=!1),n=o*(a-Number(s))}return 0===n?0:n}function Wb(e,t){return(0,dy.Z)(2,arguments),(0,cy.default)(e).getTime()-(0,cy.default)(t).getTime()}var Zb={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function Yb(e){return e?Zb[e]:Zb.trunc}function qb(e,t,n){(0,dy.Z)(2,arguments);var r=Wb(e,t)/1e3;return Yb(null===n||void 0===n?void 0:n.roundingMethod)(r)}var Gb=n(5235),Kb=n(4557);function Qb(e){return(0,Kb.Z)({},e)}var $b=n(3878),Xb=1440,Jb=43200;function e_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,dy.Z)(2,arguments);var r=n.locale||Gb.Z;if(!r.formatDistance)throw new RangeError("locale must contain formatDistance property");var i=zb(e,t);if(isNaN(i))throw new RangeError("Invalid time value");var o,a,s=Qb(n);s.addSuffix=Boolean(n.addSuffix),s.comparison=i,i>0?(o=(0,cy.default)(t),a=(0,cy.default)(e)):(o=(0,cy.default)(e),a=(0,cy.default)(t));var l,u=qb(a,o),c=((0,$b.Z)(a)-(0,$b.Z)(o))/1e3,f=Math.round((u-c)/60);if(f<2)return n.includeSeconds?u<5?r.formatDistance("lessThanXSeconds",5,s):u<10?r.formatDistance("lessThanXSeconds",10,s):u<20?r.formatDistance("lessThanXSeconds",20,s):u<40?r.formatDistance("halfAMinute",null,s):u<60?r.formatDistance("lessThanXMinutes",1,s):r.formatDistance("xMinutes",1,s):0===f?r.formatDistance("lessThanXMinutes",1,s):r.formatDistance("xMinutes",f,s);if(f<45)return r.formatDistance("xMinutes",f,s);if(f<90)return r.formatDistance("aboutXHours",1,s);if(f<Xb){var d=Math.round(f/60);return r.formatDistance("aboutXHours",d,s)}if(f<2520)return r.formatDistance("xDays",1,s);if(f<Jb){var h=Math.round(f/Xb);return r.formatDistance("xDays",h,s)}if(f<86400)return l=Math.round(f/Jb),r.formatDistance("aboutXMonths",l,s);if((l=Hb(a,o))<12){var p=Math.round(f/Jb);return r.formatDistance("xMonths",p,s)}var v=l%12,m=Math.floor(l/12);return v<3?r.formatDistance("aboutXYears",m,s):v<9?r.formatDistance("overXYears",m,s):r.formatDistance("almostXYears",m+1,s)}var t_=function(e){var t=e.date,n=e.format,r=void 0===n?"yyyy-MM-dd HH:mm":n,i=e.relative,o=void 0!==i&&i,a=my(t)?t:(0,Hg.default)(t);return(0,ir.jsx)("time",{dateTime:"".concat(Fb(a),"000"),children:o?"".concat(e_(new Date,a)," ago"):(0,uy.default)(a,r)})};function n_(e){return function t(n){for(var r,i,o,a=[],s=0,l=n.length;s<l;){if(Xt(n[s]))for(o=0,i=(r=e?t(n[s]):n[s]).length;o<i;)a[a.length]=r[o],o+=1;else a[a.length]=n[s];s+=1}return a}}var r_,i_,o_,a_,s_,l_,u_=bt(n_(!0)),c_=_t((function(e,t){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r<t.length;)n.push(Km(r,r+=e,t));return n})),f_=c_,d_=function(e){var t;return null===(t=e.response)||void 0===t?void 0:t.data},h_=function(e){return"INVALID_SHORTCODE_DELETION"===(null===e||void 0===e?void 0:e.type)||"INVALID_SHORT_URL_DELETION"===(null===e||void 0===e?void 0:e.type)},p_=5e3,v_=function(e){return e.currentPage>=e.pagesCount},m_=function(e,t){return 100*t/e},g_=function(){var e=Bt(Yt().mark((function e(t,n,r,i,o,a){var s,l,u,c,f,d,h;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o({type:i.start}),s=function(){var e=Bt(Yt().mark((function e(n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(n.map(function(){var e=Bt(Yt().mark((function e(n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t(n,p_).then(jt("data")));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())).then(u_));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=Bt(Yt().mark((function e(t){var n,r,u=arguments;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=u.length>1&&void 0!==u[1]?u[1]:0,!a()){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,s(t[n]);case 5:if(r=e.sent,o({type:i.progress,progress:m_(t.length,n+2)}),!(n<t.length-1)){e.next=13;break}return e.t0=r,e.next=11,l(t,n+1);case 11:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 13:return e.abrupt("return",r);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=Bt(Yt().mark((function e(){var n,r,a,s,u,c,f=arguments;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=f.length>0&&void 0!==f[0]?f[0]:1,e.next=3,t(n,p_);case 3:if(r=e.sent,a=r.pagination,s=r.data,a&&!v_(a)){e.next=8;break}return e.abrupt("return",s);case 8:return u=Hm(2,a.pagesCount+1),c=f_(4,u),a.pagesCount-1>4&&o({type:i.large}),e.t0=s,e.next=14,l(c);case 14:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.prev=4,e.next=7,Promise.all([u(),n()]);case 7:c=e.sent,f=v(c,2),d=f[0],h=f[1],o(!d.length&&h?{type:i.fallbackToInterval,fallbackInterval:jy(h.date)}:Ze(Ze({},r),{},{visits:d,type:i.finish})),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),o({type:i.error,errorData:d_(e.t0)});case 17:case"end":return e.stop()}}),e,null,[[4,14]])})));return function(t,n,r,i,o,a){return e.apply(this,arguments)}}(),y_=function(e,t){return Bt(e?Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t({page:1,itemsPerPage:1}).then((function(e){return e.data[0]})));case 1:case"end":return e.stop()}}),e)})):Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve(void 0));case 1:case"end":return e.stop()}}),e)})))},b_="shlink/visitCreation/CREATE_VISITS",__=function(e){return{type:b_,createdVisits:e}},x_="shlink/domainVisits/GET_DOMAIN_VISITS_START",w_="shlink/domainVisits/GET_DOMAIN_VISITS_ERROR",k_="shlink/domainVisits/GET_DOMAIN_VISITS",S_="shlink/domainVisits/GET_DOMAIN_VISITS_LARGE",C_="shlink/domainVisits/GET_DOMAIN_VISITS_CANCEL",E_="shlink/domainVisits/GET_DOMAIN_VISITS_PROGRESS_CHANGED",T_="shlink/domainVisits/GET_DOMAIN_VISITS_FALLBACK_TO_INTERVAL",M_="DEFAULT",O_={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},P_=jg((He(r_={},x_,(function(){return Ze(Ze({},O_),{},{loading:!0})})),He(r_,w_,(function(e,t){var n=t.errorData;return Ze(Ze({},O_),{},{error:!0,errorData:n})})),He(r_,k_,(function(e,t){var n=t.visits,r=t.domain,i=t.query;return Ze(Ze({},e),{},{visits:n,domain:r,query:i,loading:!1,loadingLarge:!1,error:!1})})),He(r_,S_,(function(e){return Ze(Ze({},e),{},{loadingLarge:!0})})),He(r_,C_,(function(e){return Ze(Ze({},e),{},{cancelLoad:!0})})),He(r_,E_,(function(e,t){var n=t.progress;return Ze(Ze({},e),{},{progress:n})})),He(r_,T_,(function(e,t){var n=t.fallbackInterval;return Ze(Ze({},e),{},{fallbackInterval:n})})),He(r_,b_,(function(e,t){var n=t.createdVisits,r=e.domain,i=e.visits,o=e.query,a=void 0===o?{}:o,s=a.startDate,l=a.endDate,u=n.filter((function(e){var t=e.shortUrl,n=e.visit;return t&&R_(t,r)&&xy(n.date,s,l)})).map((function(e){return e.visit}));return Ze(Ze({},e),{},{visits:[].concat(g(u),g(i))})})),r_),O_),j_=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var i=Bt(Yt().mark((function i(o,a){var s,l,u,c,f,d,h;return Yt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=e(a),l=s.getDomainVisits,u=function(){var e=Bt(Yt().mark((function e(r,i){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,Ze(Ze({},n),{},{page:r,itemsPerPage:i})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),c=y_(r,function(){var e=Bt(Yt().mark((function e(n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,n));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),f=function(){return a().domainVisits.cancelLoad},d={domain:t,query:n},h={start:x_,large:S_,finish:k_,error:w_,progress:E_,fallbackToInterval:T_},i.abrupt("return",g_(u,c,d,h,o,f));case 7:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}()}},N_=Ng(C_),D_=function(e,t,n){return Mn(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n},R_=function(e,t){return!e.domain&&t===M_||e.domain===t},L_=function(e){return e.replaceAll("__","/")},A_=["selectedServer","shortUrl","suffix","children"],I_=function(e,t,n){var r=e.id,i=t.shortCode,o=t.domain,a=o?"?domain=".concat(o):"";return"/server/".concat(r,"/short-code/").concat(function(e){return e.replaceAll("/","__")}(i),"/").concat(n).concat(a)},F_=function(e){var t=e.selectedServer,n=e.shortUrl,r=e.suffix,i=e.children,o=Wt(e,A_);return t&&Lt(t)&&n?(0,ir.jsx)(ze,Ze(Ze({to:I_(t,n,r)},o),{},{children:i})):(0,ir.jsx)("span",Ze(Ze({},o),{},{children:i}))},z_=function(e){return function(t){e.current=null!==t&&void 0!==t?t:void 0}},B_=function(e){var t,n=e.visitsCount,r=e.shortUrl,i=e.selectedServer,o=e.active,a=void 0!==o&&o,s=null===r||void 0===r||null===(t=r.meta)||void 0===t?void 0:t.maxVisits,u=(0,ir.jsx)(F_,{selectedServer:i,shortUrl:r,suffix:"visits",children:(0,ir.jsx)("strong",{className:ol()("short-url-visits-count__amount",{"short-url-visits-count__amount--big":a}),children:Cb(n)})});if(!s)return u;var c=Cb(s),f=(0,l.useRef)();return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsxs)("span",{className:"indivisible",children:[u,(0,ir.jsxs)("small",{className:"short-urls-visits-count__max-visits-control",ref:z_(f),children:[" ","/ ",c," ",(0,ir.jsx)("sup",{children:(0,ir.jsx)(Ks,{icon:Wr})})]})]}),(0,ir.jsxs)(Dv,{target:function(){return f.current},placement:"bottom",children:["This short URL will not accept more than ",(0,ir.jsx)("b",{children:c})," visits."]})]})},U_=function(e,t,n){return function(r){var i,o,a=r.shortUrl,s=r.selectedServer,u=r.onTagClick,c=v(n(),2),f=c[0],d=c[1],h=v(n(!1,500),2),p=h[0],m=h[1],g=(0,l.useRef)(!0);return(0,l.useEffect)((function(){g.current?g.current=!1:m()}),[a.visitsCount]),(0,ir.jsxs)("tr",{className:"responsive-table__row",children:[(0,ir.jsx)("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:(0,ir.jsx)(t_,{date:a.dateCreated})}),(0,ir.jsx)("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:(0,ir.jsxs)("span",{className:"indivisible short-urls-row__cell--relative",children:[(0,ir.jsx)(gm,{href:a.shortUrl}),(0,ir.jsx)(Ab,{text:a.shortUrl,onCopy:d}),(0,ir.jsx)("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!f,children:"Copied short URL!"})]})}),(0,ir.jsx)("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":"".concat(a.title?"Title":"Long URL"),children:(0,ir.jsx)(gm,{href:a.longUrl,children:null!==(i=a.title)&&void 0!==i?i:a.longUrl})}),a.title&&(0,ir.jsx)("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:(0,ir.jsx)(gm,{href:a.longUrl})}),(0,ir.jsx)("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:(o=a.tags,Bn(o)?(0,ir.jsx)("i",{className:"indivisible",children:(0,ir.jsx)("small",{children:"No tags"})}):o.map((function(e){return(0,ir.jsx)(Db,{colorGenerator:t,text:e,onClick:function(){return null===u||void 0===u?void 0:u(e)}},e)})))}),(0,ir.jsx)("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:(0,ir.jsx)(B_,{visitsCount:a.visitsCount,shortUrl:a,selectedServer:s,active:p})}),(0,ir.jsx)("td",{className:"responsive-table__cell short-urls-row__cell",children:(0,ir.jsx)(e,{selectedServer:s,shortUrl:a})})]})}},V_=function(e){var t=e.isOpen,n=e.toggle,r=e.children,i=e.right,o=void 0===i||i;return(0,ir.jsxs)(Dc,{toggle:n,isOpen:t,children:[(0,ir.jsxs)(Xc,{size:"sm",caret:!0,outline:!0,className:"dropdown-btn-menu__dropdown-toggle",children:["\xa0",(0,ir.jsx)(Ks,{icon:Kr}),"\xa0"]}),(0,ir.jsx)(Gc,{end:o,children:r})]})},H_=function(e,t){return function(n){var r=n.shortUrl,i=n.selectedServer,o=v(am(),2),a=o[0],s=o[1],l=v(am(),2),u=l[0],c=l[1],f=v(am(),2),d=f[0],h=f[1];return(0,ir.jsxs)(V_,{toggle:s,isOpen:a,children:[(0,ir.jsxs)(Hc,{tag:F_,selectedServer:i,shortUrl:r,suffix:"visits",children:[(0,ir.jsx)(Ks,{icon:Nr,fixedWidth:!0})," Visit stats"]}),(0,ir.jsxs)(Hc,{tag:F_,selectedServer:i,shortUrl:r,suffix:"edit",children:[(0,ir.jsx)(Ks,{icon:br,fixedWidth:!0})," Edit short URL"]}),(0,ir.jsxs)(Hc,{onClick:c,children:[(0,ir.jsx)(Ks,{icon:mi,fixedWidth:!0})," QR code"]}),(0,ir.jsx)(t,{shortUrl:r,isOpen:u,toggle:c}),(0,ir.jsx)(Hc,{divider:!0}),(0,ir.jsxs)(Hc,{className:"dropdown-item--danger",onClick:h,children:[(0,ir.jsx)(Ks,{icon:ur,fixedWidth:!0})," Delete short URL"]}),(0,ir.jsx)(e,{shortUrl:r,isOpen:d,toggle:h})]})}},W_=function(e,t){return function(n){var r=n.createShortUrl,i=n.shortUrlCreationResult,o=n.resetCreateShortUrl,a=n.selectedServer,s=n.basicMode,u=void 0!==s&&s,c=n.settings.shortUrlCreation,f=(0,l.useMemo)((function(){return function(e){var t,n;return{longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:null!==(t=null===e||void 0===e?void 0:e.validateUrls)&&void 0!==t&&t,forwardQuery:null===(n=null===e||void 0===e?void 0:e.forwardQuery)||void 0===n||n}}(c)}),[c]);return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(e,{initialState:f,saving:i.saving,selectedServer:a,mode:u?"create-basic":"create",onSave:function(){var e=Bt(Yt().mark((function e(t){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(),e.abrupt("return",r(t));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),(0,ir.jsx)(t,Ze(Ze({},i),{},{resetCreateShortUrl:o,canBeClosed:u}))]})}},Z_=function(e){var t=e.children,n=e.type,r=e.className,i=e.small,o=void 0!==i&&i;return(0,ir.jsx)(Mu,{className:r,children:(0,ir.jsx)("div",{className:ol()({"col-md-10 offset-md-1":!o,"col-12":o}),children:(0,ir.jsx)(gg,{role:"document",className:ol()("text-center",{"bg-main":"success"===n,"bg-danger":"error"===n,"bg-warning":"warning"===n,"text-white":"warning"!==n}),bodyClassName:ol()({"p-2":o}),children:t})})})},Y_=function(e){var t,n,r=e.errorData,i=e.fallbackMessage;return(0,ir.jsxs)(ir.Fragment,{children:[null!==(t=null===r||void 0===r?void 0:r.detail)&&void 0!==t?t:i,(n=r,"INVALID_ARGUMENT"===(null===n||void 0===n?void 0:n.type)&&(0,ir.jsxs)("p",{className:"mb-0",children:["Invalid elements: [",r.invalidElements.join(", "),"]"]}))]})},q_=function(e){var t=e.shortUrl,n=e.toggle,r=e.isOpen,i=e.shortUrlDeletion,o=e.resetDeleteShortUrl,a=e.deleteShortUrl,s=v((0,l.useState)(""),2),u=s[0],c=s[1];(0,l.useEffect)((function(){return o}),[]);var f=i.error,d=i.errorData,h=$m(o,n),p=eg((function(){var e=t.shortCode,r=t.domain;a(e,r).then(n).catch(Bm)}));return(0,ir.jsx)(vh,{isOpen:r,toggle:h,centered:!0,children:(0,ir.jsxs)("form",{onSubmit:p,children:[(0,ir.jsx)(bh,{toggle:h,children:(0,ir.jsx)("span",{className:"text-danger",children:"Delete short URL"})}),(0,ir.jsxs)(kh,{children:[(0,ir.jsxs)("p",{children:[(0,ir.jsx)("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),(0,ir.jsx)("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),(0,ir.jsxs)("p",{children:["Write ",(0,ir.jsx)("b",{children:t.shortCode})," to confirm deletion."]}),(0,ir.jsx)("input",{type:"text",className:"form-control",placeholder:"Insert the short code (".concat(t.shortCode,")"),value:u,onChange:function(e){return c(e.target.value)}}),f&&(0,ir.jsx)(Z_,{type:h_(d)?"warning":"error",small:!0,className:"mt-2",children:(0,ir.jsx)(Y_,{errorData:d,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),(0,ir.jsxs)(Th,{children:[(0,ir.jsx)("button",{type:"button",className:"btn btn-link",onClick:h,children:"Cancel"}),(0,ir.jsx)("button",{type:"submit",className:"btn btn-danger",disabled:u!==t.shortCode||i.loading,children:i.loading?"Deleting...":"Delete"})]})]})})},G_=function(e){return function(t){var n=t.error,r=t.errorData,i=t.result,o=t.resetCreateShortUrl,a=t.canBeClosed,s=void 0!==a&&a,u=v(e(),2),c=u[0],f=u[1];if((0,l.useEffect)((function(){o()}),[]),n)return(0,ir.jsxs)(Z_,{type:"error",className:"mt-3",children:[s&&(0,ir.jsx)(Ks,{icon:ui,className:"float-end pointer",onClick:o}),(0,ir.jsx)(Y_,{errorData:r,fallbackMessage:"An error occurred while creating the URL :("})]});if(Mn(i))return null;var d=i.shortUrl;return(0,ir.jsxs)(Z_,{type:"success",className:"mt-3",children:[s&&(0,ir.jsx)(Ks,{icon:ui,className:"float-end pointer",onClick:o}),(0,ir.jsxs)("span",{children:[(0,ir.jsx)("b",{children:"Great!"})," The short URL is ",(0,ir.jsx)("b",{children:d})]}),(0,ir.jsx)(Lb(),{text:d,onCopy:f,children:(0,ir.jsxs)("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[(0,ir.jsx)(Ks,{icon:zy})," Copy"]})}),(0,ir.jsx)(Oh,{placement:"left",isOpen:c,target:"copyBtn",children:"Copied!"})]})}},K_=Zm((function(e,t,n){var r={};for(var i in n)r[i]=n[i];return r[e]=t,r})),Q_=K_,$_=Zm((function e(t,n,r){if(0===t.length)return n;var i=t[0];if(t.length>1){var o=!Mn(r)&&hn(i,r)?r[i]:kt(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}if(kt(i)&&qt(r)){var a=[].concat(r);return a[i]=n,a}return Q_(i,n,r)})),X_=$_,J_=Et(-1),ex="shlink/deleteShortUrl/DELETE_SHORT_URL_START",tx="shlink/deleteShortUrl/DELETE_SHORT_URL_ERROR",nx="shlink/deleteShortUrl/SHORT_URL_DELETED",rx="shlink/deleteShortUrl/RESET_DELETE_SHORT_URL",ix={shortCode:"",loading:!1,error:!1},ox=jg((He(i_={},ex,(function(e){return Ze(Ze({},e),{},{loading:!0,error:!1})})),He(i_,tx,(function(e,t){var n=t.errorData;return Ze(Ze({},e),{},{errorData:n,loading:!1,error:!0})})),He(i_,nx,(function(e,t){var n=t.shortCode;return Ze(Ze({},e),{},{shortCode:n,loading:!1,error:!1})})),He(i_,rx,(function(){return ix})),i_),ix),ax=function(e){return function(t,n){return function(){var r=Bt(Yt().mark((function r(i,o){var a,s;return Yt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i({type:ex}),a=e(o),s=a.deleteShortUrl,r.prev=2,r.next=5,s(t,n);case 5:i({type:nx,shortCode:t,domain:n}),r.next=12;break;case 8:throw r.prev=8,r.t0=r.catch(2),i({type:tx,errorData:d_(r.t0)}),r.t0;case 12:case"end":return r.stop()}}),r,null,[[2,8]])})));return function(e,t){return r.apply(this,arguments)}}()}},sx=Ng(rx),lx="shlink/createShortUrl/CREATE_SHORT_URL_START",ux="shlink/createShortUrl/CREATE_SHORT_URL_ERROR",cx="shlink/createShortUrl/CREATE_SHORT_URL",fx="shlink/createShortUrl/RESET_CREATE_SHORT_URL",dx={result:null,saving:!1,error:!1},hx=jg((He(o_={},lx,(function(e){return Ze(Ze({},e),{},{saving:!0,error:!1})})),He(o_,ux,(function(e,t){var n=t.errorData;return Ze(Ze({},e),{},{saving:!1,error:!0,errorData:n})})),He(o_,cx,(function(e,t){return{result:t.result,saving:!1,error:!1}})),He(o_,fx,(function(){return dx})),o_),dx),px=function(e){return function(t){return function(){var n=Bt(Yt().mark((function n(r,i){var o,a,s;return Yt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r({type:lx}),o=e(i),a=o.createShortUrl,n.prev=2,n.next=5,a(t);case 5:s=n.sent,r({type:cx,result:s}),n.next=13;break;case 9:throw n.prev=9,n.t0=n.catch(2),r({type:ux,errorData:d_(n.t0)}),n.t0;case 13:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(e,t){return n.apply(this,arguments)}}()}},vx=Ng(fx),mx="shlink/shortUrlEdition/EDIT_SHORT_URL_START",gx="shlink/shortUrlEdition/EDIT_SHORT_URL_ERROR",yx="shlink/shortUrlEdition/SHORT_URL_EDITED",bx=jg((He(a_={},mx,(function(e){return Ze(Ze({},e),{},{saving:!0,error:!1})})),He(a_,gx,(function(e,t){var n=t.errorData;return Ze(Ze({},e),{},{saving:!1,error:!0,errorData:n})})),He(a_,yx,(function(e,t){return{shortUrl:t.shortUrl,saving:!1,error:!1}})),a_),{saving:!1,error:!1}),_x=function(e){return function(t,n,r){return function(){var i=Bt(Yt().mark((function i(o,a){var s,l,u;return Yt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o({type:mx}),s=e(a),l=s.updateShortUrl,i.prev=2,i.next=5,l(t,n,r);case 5:u=i.sent,o({shortUrl:u,type:yx}),i.next=13;break;case 9:throw i.prev=9,i.t0=i.catch(2),o({type:gx,errorData:d_(i.t0)}),i.t0;case 13:case"end":return i.stop()}}),i,null,[[2,9]])})));return function(e,t){return i.apply(this,arguments)}}()}},xx="shlink/shortUrlsList/LIST_SHORT_URLS_START",wx="shlink/shortUrlsList/LIST_SHORT_URLS_ERROR",kx="shlink/shortUrlsList/LIST_SHORT_URLS",Sx=jg((He(s_={},xx,(function(e){return Ze(Ze({},e),{},{loading:!0,error:!1})})),He(s_,wx,(function(){return{loading:!1,error:!0}})),He(s_,kx,(function(e,t){return{loading:!1,error:!1,shortUrls:t.shortUrls}})),He(s_,nx,$m((function(e,t){var n=t.shortCode,r=t.domain;return e.shortUrls?X_(["shortUrls","data"],En((function(e){return D_(e,n,r)}),e.shortUrls.data),e):e}),(function(e){return e.shortUrls?X_(["shortUrls","pagination","totalItems"],e.shortUrls.pagination.totalItems-1,e):e}))),He(s_,b_,(function(e,t){var n,r,i=t.createdVisits;return X_(["shortUrls","data"],null===(n=e.shortUrls)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.map((function(e){var t=J_(i.filter((function(t){var n=t.shortUrl;return n&&D_(e,n.shortCode,n.domain)})));return null!==t&&void 0!==t&&t.shortUrl?Q_("visitsCount",t.shortUrl.visitsCount,e):e})),e)})),He(s_,cx,$m((function(e,t){var n=t.result;return e.shortUrls?X_(["shortUrls","data"],[n].concat(g(e.shortUrls.data.slice(0,4))),e):e}),(function(e){return e.shortUrls?X_(["shortUrls","pagination","totalItems"],e.shortUrls.pagination.totalItems+1,e):e}))),He(s_,yx,(function(e,t){var n=t.shortUrl;return e.shortUrls?X_(["shortUrls","data"],e.shortUrls.data.map((function(e){var t=n.shortCode,r=n.domain;return D_(e,t,r)?n:e})),e):e})),s_),{loading:!0,error:!1}),Cx=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=Bt(Yt().mark((function n(r,i){var o,a,s;return Yt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r({type:xx}),o=e(i),a=o.listShortUrls,n.prev=2,n.next=5,a(t);case 5:s=n.sent,r({type:kx,shortUrls:s}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),r({type:wx});case 12:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(e,t){return n.apply(this,arguments)}}()}},Ex=function(e){return function(t){var n=t.orderByColumn,r=t.renderOrderIcon,i=t.shortUrlsList,o=t.onTagClick,a=t.selectedServer,s=t.className,l=i.error,u=i.loading,c=i.shortUrls,f=ol()({"short-urls-table__header-cell--with-action":!!n}),d=ol()("short-urls-table__header-cell",f),h=ol()("table table-hover responsive-table",s);return(0,ir.jsxs)("table",{className:h,children:[(0,ir.jsx)("thead",{className:"responsive-table__header short-urls-table__header",children:(0,ir.jsxs)("tr",{children:[(0,ir.jsxs)("th",{className:d,onClick:null===n||void 0===n?void 0:n("dateCreated"),children:["Created at ",null===r||void 0===r?void 0:r("dateCreated")]}),(0,ir.jsxs)("th",{className:d,onClick:null===n||void 0===n?void 0:n("shortCode"),children:["Short URL ",null===r||void 0===r?void 0:r("shortCode")]}),(0,ir.jsxs)("th",{className:"short-urls-table__header-cell",children:[(0,ir.jsxs)("span",{className:f,onClick:null===n||void 0===n?void 0:n("title"),children:["Title ",null===r||void 0===r?void 0:r("title")]}),"\xa0\xa0/\xa0\xa0",(0,ir.jsxs)("span",{className:f,onClick:null===n||void 0===n?void 0:n("longUrl"),children:[(0,ir.jsx)("span",{className:"indivisible",children:"Long URL"})," ",null===r||void 0===r?void 0:r("longUrl")]})]}),(0,ir.jsx)("th",{className:"short-urls-table__header-cell",children:"Tags"}),(0,ir.jsx)("th",{className:d,onClick:null===n||void 0===n?void 0:n("visits"),children:(0,ir.jsxs)("span",{className:"indivisible",children:["Visits ",null===r||void 0===r?void 0:r("visits")]})}),(0,ir.jsx)("th",{className:"short-urls-table__header-cell",children:"\xa0"})]})}),(0,ir.jsx)("tbody",{children:l?(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):u?(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!u&&Bn(null===c||void 0===c?void 0:c.data)?(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:6,className:"text-center",children:"No results found"})}):null===c||void 0===c?void 0:c.data.map((function(t){return(0,ir.jsx)(e,{shortUrl:t,selectedServer:a,onTagClick:o},t.shortUrl)}))})]})}},Tx=function(e){var t=e.format,n=e.setFormat;return(0,ir.jsxs)(Zg,{text:"Format (".concat(t,")"),children:[(0,ir.jsx)(Hc,{active:"png"===t,onClick:function(){return n("png")},children:"PNG"}),(0,ir.jsx)(Hc,{active:"svg"===t,onClick:function(){return n("svg")},children:"SVG"})]})},Mx=function(e){var t=e.errorCorrection,n=e.setErrorCorrection;return(0,ir.jsxs)(Zg,{text:"Error correction (".concat(t,")"),children:[(0,ir.jsxs)(Hc,{active:"L"===t,onClick:function(){return n("L")},children:[(0,ir.jsx)("b",{children:"L"}),"ow"]}),(0,ir.jsxs)(Hc,{active:"M"===t,onClick:function(){return n("M")},children:[(0,ir.jsx)("b",{children:"M"}),"edium"]}),(0,ir.jsxs)(Hc,{active:"Q"===t,onClick:function(){return n("Q")},children:[(0,ir.jsx)("b",{children:"Q"}),"uartile"]}),(0,ir.jsxs)(Hc,{active:"H"===t,onClick:function(){return n("H")},children:[(0,ir.jsx)("b",{children:"H"}),"igh"]})]})},Ox=function(e){return function(t){var n=t.shortUrl,r=n.shortUrl,i=n.shortCode,o=t.toggle,a=t.isOpen,s=t.selectedServer,u=v((0,l.useState)(300),2),c=u[0],f=u[1],d=v((0,l.useState)(0),2),h=d[0],p=d[1],m=v((0,l.useState)("png"),2),g=m[0],y=m[1],b=v((0,l.useState)("L"),2),_=b[0],x=b[1],w=(0,l.useMemo)((function(){return{errorCorrectionIsSupported:lg(s)}}),[s]),k=fg(s),S=!w.errorCorrectionIsSupported,C=(0,l.useMemo)((function(){return function(e,t,n){var r=t.size,i=t.format,o=t.margin,a=t.errorCorrection,s=n.errorCorrectionIsSupported,l="".concat(e,"/qr-code"),u=Wn({size:r,format:i,margin:o>0?o:void 0,errorCorrection:s?a:void 0});return"".concat(l).concat(Bn(u)?"":"?".concat(u))}(r,{size:c,format:g,margin:h,errorCorrection:_},w)}),[r,c,g,h,_,w]),E=(0,l.useMemo)((function(){return c+h}),[c,h]),T=(0,l.useMemo)((function(){if(!(E<500))return E<800?"lg":"xl"}),[E]);return(0,ir.jsxs)(vh,{isOpen:a,toggle:o,centered:!0,size:T,children:[(0,ir.jsxs)(bh,{toggle:o,children:["QR code for ",(0,ir.jsx)(gm,{href:r,children:r})]}),(0,ir.jsxs)(kh,{children:[(0,ir.jsxs)(Mu,{children:[(0,ir.jsxs)(qh,{className:"d-grid ".concat(S?"col-md-4":"col-md-6"),children:[(0,ir.jsxs)("label",{children:["Size: ",c,"px"]}),(0,ir.jsx)("input",{type:"range",className:"form-control-range",value:c,step:10,min:50,max:1e3,onChange:function(e){return f(Number(e.target.value))}})]}),(0,ir.jsxs)(qh,{className:"d-grid ".concat(S?"col-md-4":"col-md-6"),children:[(0,ir.jsxs)("label",{htmlFor:"marginControl",children:["Margin: ",h,"px"]}),(0,ir.jsx)("input",{id:"marginControl",type:"range",className:"form-control-range",value:h,step:1,min:0,max:100,onChange:function(e){return p(Number(e.target.value))}})]}),(0,ir.jsx)(qh,{className:S?"col-md-4":"col-md-6",children:(0,ir.jsx)(Tx,{format:g,setFormat:y})}),w.errorCorrectionIsSupported&&(0,ir.jsx)(qh,{className:"col-md-6",children:(0,ir.jsx)(Mx,{errorCorrection:_,setErrorCorrection:x})})]}),(0,ir.jsxs)("div",{className:"text-center",children:[(0,ir.jsxs)("div",{className:"mb-3",children:[(0,ir.jsx)(gm,{href:C}),(0,ir.jsx)(Ab,{text:C})]}),(0,ir.jsx)("img",{src:C,className:"qr-code-modal__img",alt:"QR code"}),k&&(0,ir.jsx)("div",{className:"mt-3",children:(0,ir.jsxs)(xc,{block:!0,color:"primary",onClick:function(){e.saveImage(C,"".concat(i,"-qr-code.").concat(g)).catch((function(){}))},children:["Download ",(0,ir.jsx)(Ks,{icon:ti,className:"ms-1"})]})})]})]})]})}},Px="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff",jx=bt("function"===typeof String.prototype.trim&&!Px.trim()&&"\u200b".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Px+"]["+Px+"]*"),n=new RegExp("["+Px+"]["+Px+"]*$");return e.replace(t,"").replace(n,"")}),Nx=Zm((function(e,t,n){return n.replace(e,t)})),Dx=function(e){var t=e.checked,n=void 0!==t&&t,r=e.onChange,i=void 0===r?Bm:r,o=e.className,a=e.children,s=e.type,l=e.inline,u=void 0!==l&&l,c=lm(),f={"form-switch":"switch"===s,"form-checkbox":"checkbox"===s},d=u?{display:"inline-block"}:{};return(0,ir.jsxs)("span",{className:ol()("form-check",f,o),style:d,children:[(0,ir.jsx)("input",{type:"checkbox",className:"form-check-input",id:c,checked:n,onChange:function(e){return i(e.target.checked,e)}}),(0,ir.jsx)("label",{className:"form-check-label",htmlFor:c,children:a})]})},Rx=function(e){return(0,ir.jsx)(Dx,Ze({type:"checkbox"},e))},Lx=function(e){var t=e.isOpen,n=e.toggle;return(0,ir.jsxs)(vh,{isOpen:t,toggle:n,centered:!0,size:"lg",children:[(0,ir.jsx)(bh,{toggle:n,children:"Info"}),(0,ir.jsxs)(kh,{children:[(0,ir.jsxs)("p",{children:["When the\xa0",(0,ir.jsx)("b",{children:(0,ir.jsx)("i",{children:'"Use existing URL if found"'})}),"\xa0checkbox is checked, the server will return an existing short URL if it matches provided params."]}),(0,ir.jsx)("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),(0,ir.jsxs)("ul",{children:[(0,ir.jsx)("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),(0,ir.jsxs)("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",(0,ir.jsx)("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),(0,ir.jsx)("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]})},Ax=function(){var e=v(am(),2),t=e[0],n=e[1];return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("span",{title:"What does this mean?",children:(0,ir.jsx)(Ks,{icon:Wr,style:{cursor:"pointer"},onClick:n})}),(0,ir.jsx)(Lx,{isOpen:t,toggle:n})]})},Ix=function(e){var t=e.className,n=void 0===t?"":t,r=e.placement,i=e.children,o=(0,l.useRef)();return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("span",{className:n,ref:z_(o),children:(0,ir.jsx)(Ks,{icon:Wr})}),(0,ir.jsx)(Dv,{target:function(){return o.current},placement:r,children:i})]})},Fx=function(e){var t=e.children,n=e.infoTooltip,r=e.checked,i=e.onChange;return(0,ir.jsxs)("p",{children:[(0,ir.jsx)(Rx,{inline:!0,checked:r,className:n?"me-2":"",onChange:i,children:t}),n&&(0,ir.jsx)(Ix,{placement:"right",children:n})]})},zx=$m(jx,Nx(/ /g,"-")),Bx=function(e){return"string"===typeof e?(0,Hg.default)(e):e},Ux=function(e,t){return function(n){var r,i=n.mode,o=n.saving,a=n.onSave,s=n.initialState,u=n.selectedServer,c=v((0,l.useState)(s),2),f=c[0],d=c[1],h="edit"===i,p="create-basic"===i,m=Jm(s.title),g=function(){var e=Jm(f.title);return sy([[function(){return!e&&!m},function(){}],[function(){return!e&&m},function(){return null}],[ly,function(){return f.title}]])()},y=eg(Bt(Yt().mark((function e(){var t,n;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a(Ze(Ze({},f),{},{validSince:null!==(t=yy(f.validSince))&&void 0!==t?t:null,validUntil:null!==(n=yy(f.validUntil))&&void 0!==n?n:null,maxVisits:Jm(f.maxVisits)?Number(f.maxVisits):null,title:g()})).then((function(){return!h&&d(s)})).catch((function(){})));case 1:case"end":return e.stop()}}),e)}))));(0,l.useEffect)((function(){d(s)}),[s]);var b=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return(0,ir.jsx)(qh,Ze(Ze({},o),{},{children:(0,ir.jsx)(ep,Ze({id:e,type:r,placeholder:t,value:null!==(n=f[e])&&void 0!==n?n:"",onChange:function(t){return d(Ze(Ze({},f),{},He({},e,t.target.value)))}},i))}))},_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,ir.jsx)(By,Ze({selected:f[e]?Bx(f[e]):null,placeholderText:t,isClearable:!0,onChange:function(t){return d(Ze(Ze({},f),{},He({},e,t)))}},n))},x=(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(qh,{children:(0,ir.jsx)(ep,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:f.longUrl,onChange:function(e){return d(Ze(Ze({},f),{},{longUrl:e.target.value}))}})}),(0,ir.jsxs)(Mu,{children:[p&&b("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),(0,ir.jsx)("div",{className:p?"col-lg-6 mb-3":"col-12",children:(0,ir.jsx)(e,{selectedTags:null!==(r=f.tags)&&void 0!==r?r:[],onChange:function(e){return d(Ze(Ze({},f),{},{tags:e.map(zx)}))}})})]})]}),w=sg(u),k=cg(u),S=w||k;return(0,ir.jsxs)("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:y,children:[p&&x,!p&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(gg,{title:"Basic options",className:"mb-3",children:x}),(0,ir.jsxs)(Mu,{children:[(0,ir.jsx)("div",{className:"col-sm-6 mb-3",children:(0,ir.jsxs)(gg,{title:"Customize the short URL",children:[b("title","Title"),!h&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsxs)(Mu,{children:[(0,ir.jsx)("div",{className:"col-lg-6",children:b("customSlug","Custom slug","text",{disabled:Jm(f.shortCodeLength)})}),(0,ir.jsx)("div",{className:"col-lg-6",children:b("shortCodeLength","Short code length","number",{min:4,disabled:Jm(f.customSlug)})})]}),(0,ir.jsx)(t,{value:f.domain,onChange:function(e){return d(Ze(Ze({},f),{},{domain:e}))}})]})]})}),(0,ir.jsx)("div",{className:"col-sm-6 mb-3",children:(0,ir.jsxs)(gg,{title:"Limit access to the short URL",children:[b("maxVisits","Maximum number of visits allowed","number",{min:1}),(0,ir.jsx)("div",{className:"mb-3",children:_("validSince","Enabled since...",{maxDate:f.validUntil?Bx(f.validUntil):void 0})}),_("validUntil","Enabled until...",{minDate:f.validSince?Bx(f.validSince):void 0})]})})]}),(0,ir.jsxs)(Mu,{children:[(0,ir.jsx)("div",{className:"col-sm-6 mb-3",children:(0,ir.jsxs)(gg,{title:"Extra checks",children:[(0,ir.jsx)(Fx,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:f.validateUrl,onChange:function(e){return d(Ze(Ze({},f),{},{validateUrl:e}))},children:"Validate URL"}),!h&&(0,ir.jsxs)("p",{children:[(0,ir.jsx)(Rx,{inline:!0,className:"me-2",checked:f.findIfExists,onChange:function(e){return d(Ze(Ze({},f),{},{findIfExists:e}))},children:"Use existing URL if found"}),(0,ir.jsx)(Ax,{})]})]})}),S&&(0,ir.jsx)("div",{className:"col-sm-6 mb-3",children:(0,ir.jsxs)(gg,{title:"Configure behavior",children:[w&&(0,ir.jsx)(Fx,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:f.crawlable,onChange:function(e){return d(Ze(Ze({},f),{},{crawlable:e}))},children:"Make it crawlable"}),k&&(0,ir.jsx)(Fx,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:f.forwardQuery,onChange:function(e){return d(Ze(Ze({},f),{},{forwardQuery:e}))},children:"Forward query params on redirect"})]})})]})]}),(0,ir.jsx)("div",{className:"text-center",children:(0,ir.jsx)(xc,{outline:!0,color:"primary",disabled:o||Bn(f.longUrl),className:"btn-xs-block",children:o?"Saving...":"Save"})})]})}},Vx=function(e){return function(t){var n,r=t.settings.shortUrlCreation,i=t.selectedServer,o=t.shortUrlDetail,a=t.getShortUrlDetail,s=t.shortUrlEdition,u=t.editShortUrl,c=Se().search,f=Ee(),d=sm(),h=o.loading,p=o.error,m=o.errorData,g=o.shortUrl,y=s.saving,b=s.error,_=s.errorData,x=Hn(c).domain,w=(0,l.useMemo)((function(){return function(e,t){var n,r,i,o,a,s,l=null!==(n=null===t||void 0===t?void 0:t.validateUrls)&&void 0!==n&&n;return e?{longUrl:e.longUrl,tags:e.tags,title:null!==(r=e.title)&&void 0!==r?r:void 0,domain:null!==(i=e.domain)&&void 0!==i?i:void 0,validSince:null!==(o=e.meta.validSince)&&void 0!==o?o:void 0,validUntil:null!==(a=e.meta.validUntil)&&void 0!==a?a:void 0,maxVisits:null!==(s=e.meta.maxVisits)&&void 0!==s?s:void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,validateUrl:l}:{longUrl:"",validateUrl:l}}(g,r)}),[g,r]),k=v(am(),4),S=k[0],C=k[2],E=k[3];return(0,l.useEffect)((function(){f.shortCode&&a(L_(f.shortCode),x)}),[]),h?(0,ir.jsx)(km,{loading:!0}):p?(0,ir.jsx)(Z_,{type:"error",children:(0,ir.jsx)(Y_,{errorData:m,fallbackMessage:"An error occurred while loading short URL detail :("})}):(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("header",{className:"mb-3",children:(0,ir.jsx)(jf,{body:!0,children:(0,ir.jsxs)("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[(0,ir.jsx)(xc,{color:"link",size:"lg",className:"p-0 me-3",onClick:d,children:(0,ir.jsx)(Ks,{icon:Ir})}),(0,ir.jsx)("span",{className:"text-center",children:(0,ir.jsxs)("small",{children:["Edit ",(0,ir.jsx)(gm,{href:null!==(n=null===g||void 0===g?void 0:g.shortUrl)&&void 0!==n?n:""})]})}),(0,ir.jsx)("span",{})]})})}),(0,ir.jsx)(e,{initialState:w,saving:y,selectedServer:i,mode:"edit",onSave:function(){var e=Bt(Yt().mark((function e(t){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g){e.next=2;break}return e.abrupt("return");case 2:E(),u(g.shortCode,g.domain,t).then(C).catch(E);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),b&&(0,ir.jsx)(Z_,{type:"error",className:"mt-3",children:(0,ir.jsx)(Y_,{errorData:_,fallbackMessage:"An error occurred while updating short URL :("})}),S&&(0,ir.jsx)(Z_,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})}},Hx="shlink/shortUrlDetail/GET_SHORT_URL_DETAIL_START",Wx="shlink/shortUrlDetail/GET_SHORT_URL_DETAIL_ERROR",Zx="shlink/shortUrlDetail/GET_SHORT_URL_DETAIL",Yx={loading:!1,error:!1},qx=jg((He(l_={},Hx,(function(){return{loading:!0,error:!1}})),He(l_,Wx,(function(e,t){return{loading:!1,error:!0,errorData:t.errorData}})),He(l_,Zx,(function(e,t){return Ze({shortUrl:t.shortUrl},Yx)})),l_),Yx),Gx=function(e){return function(t,n){return function(){var r=Bt(Yt().mark((function r(i,o){var a,s,l,u,c;return Yt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i({type:Hx}),r.prev=1,l=o(),u=l.shortUrlsList,null===(a=null===u||void 0===u||null===(s=u.shortUrls)||void 0===s?void 0:s.data.find((function(e){return D_(e,t,n)})))||void 0===a){r.next=7;break}r.t0=a,r.next=10;break;case 7:return r.next=9,e(o).getShortUrl(t,n);case 9:r.t0=r.sent;case 10:c=r.t0,i({shortUrl:c,type:Zx}),r.next=17;break;case 14:r.prev=14,r.t1=r.catch(1),i({type:Wx,errorData:d_(r.t1)});case 17:case"end":return r.stop()}}),r,null,[[1,14]])})));return function(e,t){return r.apply(this,arguments)}}()}},Kx=["amount","loading"],Qx=function(e){var t=e.amount,n=void 0===t?0:t,r=e.loading,i=void 0!==r&&r,o=Wt(e,Kx);return(0,ir.jsxs)(xc,Ze(Ze({},o),{},{outline:!0,color:"primary",disabled:i,children:[(0,ir.jsx)(Ks,{icon:cr})," ",i?"Exporting...":(0,ir.jsxs)(ir.Fragment,{children:["Export (",Cb(n),")"]})]}))},$x=function(e,t){var n=t.exportShortUrls;return function(t){var r=t.amount,i=void 0===r?0:r,o=t.selectedServer,a=v(Ky(),1)[0],s=a.tags,l=a.search,u=a.startDate,c=a.endDate,f=a.orderBy,d=a.tagsMode,h=v(am(),4),p=h[0],m=h[2],g=h[3],y=function(){var t=Bt(Yt().mark((function t(){var r,a,h,p,v;return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Lt(o)){t.next=2;break}return t.abrupt("return");case 2:return r=i/20,a=e(o),h=a.listShortUrls,p=function(){var e=Bt(Yt().mark((function e(){var t,n,i,o=arguments;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:1,e.next=3,h({page:"".concat(t),tags:s,searchTerm:l,startDate:u,endDate:c,orderBy:f,tagsMode:d,itemsPerPage:20});case 3:if(n=e.sent,i=n.data,!(t>=r)){e.next=7;break}return e.abrupt("return",i);case 7:return e.t0=i,e.next=10,p(t+1);case 10:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m(),t.next=8,p();case 8:v=t.sent,n(v.map((function(e){var t;return{createdAt:e.dateCreated,shortUrl:e.shortUrl,longUrl:e.longUrl,title:null!==(t=e.title)&&void 0!==t?t:"",tags:e.tags.join(","),visits:e.visitsCount}}))),g();case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,ir.jsx)(Qx,{loading:p,className:"btn-md-block",amount:i,onClick:y})}},Xx=function(e,t){e.serviceFactory("ShortUrlsList",Nb,"ShortUrlsTable","ShortUrlsFilteringBar"),e.decorator("ShortUrlsList",t(["selectedServer","mercureInfo","shortUrlsList","settings"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.serviceFactory("ShortUrlsTable",Ex,"ShortUrlsRow"),e.serviceFactory("ShortUrlsRow",U_,"ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"),e.serviceFactory("ShortUrlsRowMenu",H_,"DeleteShortUrlModal","QrCodeModal"),e.serviceFactory("CreateShortUrlResult",G_,"useTimeoutToggle"),e.serviceFactory("ShortUrlForm",Ux,"TagsSelector","DomainSelector"),e.serviceFactory("CreateShortUrl",W_,"ShortUrlForm","CreateShortUrlResult"),e.decorator("CreateShortUrl",t(["shortUrlCreationResult","selectedServer","settings"],["createShortUrl","resetCreateShortUrl"])),e.serviceFactory("EditShortUrl",Vx,"ShortUrlForm"),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition","selectedServer","settings"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",(function(){return q_})),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","resetDeleteShortUrl"])),e.serviceFactory("QrCodeModal",Ox,"ImageDownloader"),e.decorator("QrCodeModal",t(["selectedServer"])),e.serviceFactory("ShortUrlsFilteringBar",Xy,"ExportShortUrlsBtn","TagsSelector"),e.serviceFactory("ExportShortUrlsBtn",$x,"buildShlinkApiClient","ReportExporter"),e.decorator("ExportShortUrlsBtn",t(["selectedServer"])),e.serviceFactory("listShortUrls",Cx,"buildShlinkApiClient"),e.serviceFactory("createShortUrl",px,"buildShlinkApiClient"),e.serviceFactory("resetCreateShortUrl",(function(){return vx})),e.serviceFactory("deleteShortUrl",ax,"buildShlinkApiClient"),e.serviceFactory("resetDeleteShortUrl",(function(){return sx})),e.serviceFactory("getShortUrlDetail",Gx,"buildShlinkApiClient"),e.serviceFactory("editShortUrl",_x,"buildShlinkApiClient")},Jx=function(e){var t=e.children,n=e.label,r=e.className,i=void 0===r?"":r,o=e.labelClassName,a=void 0===o?"":o,s=e.noMargin,l=void 0!==s&&s,u=e.id;return(0,ir.jsxs)("div",{className:"".concat(i," ").concat(l?"":"mb-3"),children:[(0,ir.jsx)("label",{className:"form-label ".concat(a),htmlFor:u,children:n}),t]})},ew=function(e){var t=e.children,n=e.value,r=e.onChange,i=e.type,o=e.required,a=e.placeholder,s=e.className,l=e.labelClassName,u=lm();return(0,ir.jsx)(Jx,{label:(0,ir.jsxs)(ir.Fragment,{children:[t,":"]}),className:null!==s&&void 0!==s?s:"",labelClassName:l,id:u,children:(0,ir.jsx)("input",{id:u,className:"form-control",type:null!==i&&void 0!==i?i:"text",value:n,required:null===o||void 0===o||o,placeholder:a,onChange:function(e){return r(e.target.value)}})})},tw=function(e){var t=e.onSubmit,n=e.initialValues,r=e.children,i=e.title,o=v((0,l.useState)(""),2),a=o[0],s=o[1],u=v((0,l.useState)(""),2),c=u[0],f=u[1],d=v((0,l.useState)(""),2),h=d[0],p=d[1],m=eg((function(){return t({name:a,url:c,apiKey:h})}));return(0,l.useEffect)((function(){n&&s(n.name),n&&f(n.url),n&&p(n.apiKey)}),[n]),(0,ir.jsxs)("form",{className:"server-form",name:"serverForm",onSubmit:m,children:[(0,ir.jsxs)(gg,{className:"mb-3",title:i,children:[(0,ir.jsx)(ew,{value:a,onChange:s,children:"Name"}),(0,ir.jsx)(ew,{type:"url",value:c,onChange:f,children:"URL"}),(0,ir.jsx)(ew,{value:h,onChange:p,children:"API key"})]}),(0,ir.jsx)("div",{className:"text-end",children:r})]})},nw=function(e){var t=e.isOpen,n=e.duplicatedServers,r=e.onDiscard,i=e.onSave,o=n.length>1;return(0,ir.jsxs)(vh,{centered:!0,isOpen:t,children:[(0,ir.jsxs)(bh,{children:["Duplicated server",o&&"s"]}),(0,ir.jsxs)(kh,{children:[(0,ir.jsx)("p",{children:o?"The next servers already exist:":"There is already a server with:"}),(0,ir.jsx)("ul",{children:n.map((function(e,t){var n=e.url,r=e.apiKey;return o?(0,ir.jsxs)("li",{children:[(0,ir.jsx)("b",{children:n})," - ",(0,ir.jsx)("b",{children:r})]},t):(0,ir.jsxs)(l.Fragment,{children:[(0,ir.jsxs)("li",{children:["URL: ",(0,ir.jsx)("b",{children:n})]}),(0,ir.jsxs)("li",{children:["API key: ",(0,ir.jsx)("b",{children:r})]})]},t)}))}),(0,ir.jsxs)("span",{children:[o?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),(0,ir.jsxs)(Th,{children:[(0,ir.jsx)(xc,{color:"link",onClick:r,children:o?"Ignore duplicated":"Discard"}),(0,ir.jsx)(xc,{color:"primary",onClick:i,children:"Save anyway"})]})]})},rw=function(e){var t=e.type;return(0,ir.jsx)("div",{className:"mt-3",children:(0,ir.jsxs)(Z_,{type:t,children:["success"===t&&"Servers properly imported. You can now select one from the list :)","error"===t&&"The servers could not be imported. Make sure the format is correct."]})})},iw=function(e,t){return function(n){var r=n.servers,i=n.createServer,o=Ce(),a=sm(),s=!!Object.keys(r).length,u=v(t(!1,4e3),2),c=u[0],f=u[1],d=v(t(!1,4e3),2),h=d[0],p=d[1],m=v(am(),2),g=m[0],y=m[1],b=v((0,l.useState)(),2),_=b[0],x=b[1],w=function(){if(_){var e=im();i(Ze(Ze({},_),{},{id:e})),o("/server/".concat(e))}};return(0,l.useEffect)((function(){Object.values(r).some((function(e){var t=e.url,n=e.apiKey;return(null===_||void 0===_?void 0:_.url)===t&&(null===_||void 0===_?void 0:_.apiKey)===n}))?y():w()}),[_]),(0,ir.jsxs)(Sm,{children:[(0,ir.jsxs)(tw,{title:(0,ir.jsx)("h5",{className:"mb-0",children:"Add new server"}),onSubmit:x,children:[!s&&(0,ir.jsx)(e,{tooltipPlacement:"top",onImport:f,onImportError:p}),s&&(0,ir.jsx)(xc,{outline:!0,onClick:a,children:"Cancel"}),(0,ir.jsx)(xc,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),c&&(0,ir.jsx)(rw,{type:"success"}),h&&(0,ir.jsx)(rw,{type:"error"}),(0,ir.jsx)(nw,{isOpen:g,duplicatedServers:_?[_]:[],onDiscard:a,onSave:w})]})}},ow=function(e){var t=e.servers,n=e.selectedServer,r=vm(t);return(0,ir.jsxs)(jv,{nav:!0,inNavbar:!0,children:[(0,ir.jsxs)(Xc,{nav:!0,caret:!0,children:[(0,ir.jsx)(Ks,{icon:kr})," ",(0,ir.jsx)("span",{className:"ms-1",children:"Servers"})]}),(0,ir.jsx)(Gc,{end:!0,style:{right:0},children:Bn(r)?(0,ir.jsxs)(Hc,{tag:ze,to:"/server/create",children:[(0,ir.jsx)(Ks,{icon:si})," ",(0,ir.jsx)("span",{className:"ms-1",children:"Add a server"})]}):(0,ir.jsxs)(ir.Fragment,{children:[r.map((function(e){var t=e.name,r=e.id;return(0,ir.jsx)(Hc,{tag:ze,to:"/server/".concat(r),active:It(n)===r,children:t},r)})),(0,ir.jsx)(Hc,{divider:!0}),(0,ir.jsxs)(Hc,{tag:ze,to:"/manage-servers",children:[(0,ir.jsx)(Ks,{icon:kr})," ",(0,ir.jsx)("span",{className:"ms-1",children:"Manage servers"})]})]})})]})},aw=function(e){var t=e.server,n=e.toggle,r=e.isOpen,i=e.deleteServer,o=e.redirectHome,a=void 0===o||o,s=Ce();return(0,ir.jsxs)(vh,{isOpen:r,toggle:n,centered:!0,children:[(0,ir.jsx)(bh,{toggle:n,className:"text-danger",children:"Remove server"}),(0,ir.jsxs)(kh,{children:[(0,ir.jsxs)("p",{children:["Are you sure you want to remove ",(0,ir.jsx)("b",{children:t?t.name:""}),"?"]}),(0,ir.jsx)("p",{children:(0,ir.jsx)("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),(0,ir.jsxs)(Th,{children:[(0,ir.jsx)(xc,{color:"link",onClick:n,children:"Cancel"}),(0,ir.jsx)(xc,{color:"danger",onClick:function(){return i(t),n(),void(a&&s("/"))},children:"Delete"})]})]})},sw=function(e){return function(t){var n=t.server,r=t.className,i=t.children,o=t.textClassName,a=v(am(),4),s=a[0],l=a[2],u=a[3];return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsxs)("span",{className:r,onClick:l,children:[!i&&(0,ir.jsx)(Ks,{fixedWidth:!0,icon:ur}),(0,ir.jsx)("span",{className:o,children:null!==i&&void 0!==i?i:"Remove this server"})]}),(0,ir.jsx)(e,{server:n,isOpen:s,toggle:u})]})}},lw=function(e){return Cm((function(e){var t=e.editServer,n=e.selectedServer,r=sm();if(!Lt(n))return null;return(0,ir.jsx)(Sm,{children:(0,ir.jsxs)(tw,{title:(0,ir.jsxs)("h5",{className:"mb-0",children:['Edit "',n.name,'"']}),initialValues:n,onSubmit:function(e){t(n.id,e),r()},children:[(0,ir.jsx)(xc,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),(0,ir.jsx)(xc,{outline:!0,color:"primary",children:"Save"})]})})}),e)};var uw,cw,fw=_t((function(e,t){return"function"===typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"===typeof e.ap?e.ap(t):"function"===typeof e?function(n){return e(n)(t(n))}:sn((function(e,n){return function(e,t){var n;t=t||[];var r=(e=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}(e,ry(n,t))}),[],e)})),dw=fw,hw=_t((function(e,t){var n=ty(e,t);return ty(e,(function(){return sn(dw,ry(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),pw=hw,vw=bt((function(e){return pw(e.length,e)})),mw=vw(bt((function(e){return!e}))),gw=function(e){return function(t){var n=t.url,r=t.apiKey;return e.some((function(e){return e.url===n&&e.apiKey===r}))}},yw=function(e){var t=e.importServersFromFile;return function(e){var n=e.createServers,r=e.servers,i=e.children,o=e.onImport,a=void 0===o?function(){}:o,s=e.onImportError,u=void 0===s?function(){}:s,c=e.tooltipPlacement,f=void 0===c?"bottom":c,d=e.className,h=void 0===d?"":d,p=(0,l.useRef)(),m=v((0,l.useState)(),2),g=m[0],y=m[1],b=v((0,l.useState)([]),2),_=b[0],x=b[1],w=v(am(),4),k=w[0],S=w[2],C=w[3],E=$m(n,a),T=$m((function(){return E(null!==g&&void 0!==g?g:[])}),C),M=$m((function(){return E((null!==g&&void 0!==g?g:[]).filter(mw(gw(_))))}),C),O=function(){var e=Bt(Yt().mark((function e(n){var r,i;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.target,e.abrupt("return",t(null===(r=i.files)||void 0===r?void 0:r[0]).then(y).then((function(){i.value=null})).catch(u));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,l.useEffect)((function(){if(g){var e=Object.values(r),t=g.filter(gw(e)),n=!!t.length;n?x(t):E(g),n&&S()}}),[g]),(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsxs)(xc,{outline:!0,id:"importBtn",className:h,onClick:function(){var e;return null===(e=p.current)||void 0===e?void 0:e.click()},children:[(0,ir.jsx)(Ks,{icon:Cr,fixedWidth:!0})," ",null!==i&&void 0!==i?i:"Import from file"]}),(0,ir.jsxs)(Dv,{placement:f,target:"importBtn",children:["You can create servers by importing a CSV file with columns ",(0,ir.jsx)("b",{children:"name"}),", ",(0,ir.jsx)("b",{children:"apiKey"})," and ",(0,ir.jsx)("b",{children:"url"}),"."]}),(0,ir.jsx)("input",{type:"file",accept:"text/csv",className:"import-servers-btn__csv-select",ref:z_(p),onChange:O}),(0,ir.jsx)(nw,{isOpen:k,duplicatedServers:_,onDiscard:M,onSave:T})]})}},bw="shlink/selectedServer/SELECT_SERVER",_w="shlink/selectedServer/RESET_SELECTED_SERVER",xw=$m((function(e){return"latest"===e?"999.999.999":e}),ig("1.0.0")),ww=Fm(Bm,function(){var e=Bt(Yt().mark((function e(t,n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n().then((function(e){var t=e.version;return{version:xw(t),printableVersion:rg(t)}})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),kw=jg((He(uw={},_w,(function(){return null})),He(uw,bw,(function(e,t){return t.selectedServer})),uw),null),Sw=Ng(_w),Cw=function(e,t){return function(n){return function(){var r=Bt(Yt().mark((function r(i,o){var a,s,l,u,c,f,d,h;return Yt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i(Sw()),a=o(),s=a.servers,l=s[n]){r.next=6;break}return i({type:bw,selectedServer:{serverNotFound:!0}}),r.abrupt("return");case 6:return r.prev=6,u=e(l),c=u.health,r.next=10,ww(n,c);case 10:f=r.sent,d=f.version,h=f.printableVersion,i({type:bw,selectedServer:Ze(Ze({},l),{},{version:d,printableVersion:h})}),i(t()),r.next=20;break;case 17:r.prev=17,r.t0=r.catch(6),i({type:bw,selectedServer:Ze(Ze({},l),{},{serverNotReachable:!0})});case 20:case"end":return r.stop()}}),r,null,[[6,17]])})));return function(e,t){return r.apply(this,arguments)}}()}},Ew=bt((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t})),Tw="shlink/servers/EDIT_SERVER",Mw="shlink/servers/DELETE_SERVER",Ow="shlink/servers/CREATE_SERVERS",Pw="shlink/servers/SET_AUTO_CONNECT",jw=jg((He(cw={},Ow,(function(e,t){var n=t.newServers;return Ze(Ze({},e),n)})),He(cw,Mw,(function(e,t){var n=t.serverId;return ub(n,e)})),He(cw,Tw,(function(e,t){var n=t.serverId,r=t.serverData;return e[n]?Q_(n,Ze(Ze({},e[n]),r),e):e})),He(cw,Pw,(function(e,t){var n=t.serverId,r=t.autoConnect;return e[n]?r?Ew(Zy(e).map((function(e){var t=v(e,2),r=t[0];return[r,Ze(Ze({},t[1]),{},{autoConnect:r===n})]}))):Q_(n,Ze(Ze({},e[n]),{},{autoConnect:r}),e):e})),cw),{}),Nw=Ym((function(e,t){return Q_(t.id,t,e)}),{}),Dw=$m(ry((function(e){return e.id?e:Q_("id",im(),e)})),Nw,(function(e){return{type:Ow,newServers:e}})),Rw=function(e){return Dw([e])},Lw=function(e,t){return{type:Tw,serverId:e,serverData:t}},Aw=function(e){var t=e.id;return{type:Mw,serverId:t}},Iw=function(e,t){var n=e.id;return{type:Pw,serverId:n,autoConnect:t}},Fw=$m(jt("data"),(function(e){return Array.isArray(e)?e.filter(Rt):[]})),zw=function(e){var t=e.get;return function(){return function(){var e=Bt(Yt().mark((function e(n){var r,i;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("".concat(Ve.Xh,"/servers.json"));case 2:r=e.sent,i=Fw(r),n(Dw(i));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}},Bw=function(e){return function(t){var n=t.servers,r=t.selectedServer;return(0,ir.jsx)(Sm,{children:(0,ir.jsxs)("div",{className:"server-error__container flex-column",children:[(0,ir.jsxs)(km,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Lt(r)&&"Could not find this Shlink server.",Lt(r)&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),(0,ir.jsxs)(bm,{servers:Object.values(n),children:["These are the Shlink servers currently configured. Choose one of them or ",(0,ir.jsx)(ze,{to:"/server/create",children:"add a new one"}),"."]}),Lt(r)&&(0,ir.jsx)("div",{className:"container mt-3 mt-md-5",children:(0,ir.jsxs)("h5",{children:["Alternatively, if you think you may have miss-configured this server, you can ",(0,ir.jsx)(e,{server:r,className:"server-error__delete-btn",children:"remove it"})," or\xa0",(0,ir.jsx)(ze,{to:"/server/".concat(r.id,"/edit"),children:"edit it"}),"."]})})]})})}},Uw=function(e){var t=e.children,n=e.title,r=e.link;return(0,ir.jsxs)(jf,Ze(Ze({className:"highlight-card",body:!0},function(e){return e?{tag:ze,to:e}:{}}(r)),{},{children:[r&&(0,ir.jsx)(Ks,{size:"3x",className:"highlight-card__link-icon",icon:Iy}),(0,ir.jsx)(Dd,{tag:"h5",className:"highlight-card__title",children:n}),(0,ir.jsx)(Od,{tag:"h2",children:t})]}))},Vw=function(e,t){return eb((function(n){var r,i=n.shortUrlsList,o=n.listShortUrls,a=n.listTags,s=n.tagsList,u=n.selectedServer,c=n.loadVisitsOverview,f=n.visitsOverview,d=i.loading,h=i.shortUrls,p=s.loading,v=f.loading,m=f.visitsCount,g=f.orphanVisitsCount,y=It(u),b=hg(u),_=Ce();return(0,l.useEffect)((function(){o({itemsPerPage:5,orderBy:{field:"dateCreated",dir:"DESC"}}),a(),c()}),[]),(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsxs)(Mu,{children:[(0,ir.jsx)("div",{className:"col-lg-6 col-xl-3 mb-3",children:(0,ir.jsx)(Uw,{title:"Visits",link:b&&"/server/".concat(y,"/non-orphan-visits"),children:v?"Loading...":Cb(m)})}),(0,ir.jsx)("div",{className:"col-lg-6 col-xl-3 mb-3",children:(0,ir.jsx)(Uw,{title:"Orphan visits",link:"/server/".concat(y,"/orphan-visits"),children:v?"Loading...":Cb(g)})}),(0,ir.jsx)("div",{className:"col-lg-6 col-xl-3 mb-3",children:(0,ir.jsx)(Uw,{title:"Short URLs",link:"/server/".concat(y,"/list-short-urls/1"),children:d?"Loading...":Cb(null!==(r=null===h||void 0===h?void 0:h.pagination.totalItems)&&void 0!==r?r:0)})}),(0,ir.jsx)("div",{className:"col-lg-6 col-xl-3 mb-3",children:(0,ir.jsx)(Uw,{title:"Tags",link:"/server/".concat(y,"/manage-tags"),children:p?"Loading...":Cb(s.tags.length)})})]}),(0,ir.jsxs)(jf,{className:"mb-3",children:[(0,ir.jsxs)(td,{children:[(0,ir.jsx)("span",{className:"d-sm-none",children:"Create a short URL"}),(0,ir.jsx)("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),(0,ir.jsx)(ze,{className:"float-end",to:"/server/".concat(y,"/create-short-url"),children:"Advanced options \xbb"})]}),(0,ir.jsx)(Wf,{children:(0,ir.jsx)(t,{basicMode:!0})})]}),(0,ir.jsxs)(jf,{children:[(0,ir.jsxs)(td,{children:[(0,ir.jsx)("span",{className:"d-sm-none",children:"Recently created URLs"}),(0,ir.jsx)("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),(0,ir.jsx)(ze,{className:"float-end",to:"/server/".concat(y,"/list-short-urls/1"),children:"See all \xbb"})]}),(0,ir.jsx)(Wf,{children:(0,ir.jsx)(e,{shortUrlsList:i,selectedServer:u,className:"mb-0",onTagClick:function(e){return _("/server/".concat(y,"/list-short-urls/1?tags=").concat(encodeURIComponent(e)))}})})]})]})}),(function(){return[tb.visits,tb.orphanVisits]}))},Hw=function(e,t,n,r){return function(i){var o=i.servers,a=Object.values(o),s=v((0,l.useState)(a),2),u=s[0],c=s[1],f=u.some((function(e){return!!e.autoConnect})),d=v(n(!1,4e3),2),h=d[0],p=d[1];return(0,l.useEffect)((function(){c(Object.values(o))}),[o]),(0,ir.jsxs)(Sm,{children:[(0,ir.jsx)(Wg,{className:"mb-3",onChange:function(e){return c(a.filter((function(t){var n=t.name,r=t.url;return"".concat(n," ").concat(r).toLowerCase().match(e.toLowerCase())})))}}),(0,ir.jsxs)(Mu,{className:"mb-3",children:[(0,ir.jsxs)("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[(0,ir.jsx)(t,{className:"flex-fill",onImportError:p,children:"Import servers"}),a.length>0&&(0,ir.jsxs)(xc,{outline:!0,className:"ms-2 flex-fill",onClick:Bt(Yt().mark((function t(){return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.exportServers());case 1:case"end":return t.stop()}}),t)}))),children:[(0,ir.jsx)(Ks,{icon:ti,fixedWidth:!0})," Export servers"]})]}),(0,ir.jsx)("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:(0,ir.jsxs)(xc,{outline:!0,color:"primary",className:"flex-fill",tag:ze,to:"/server/create",children:[(0,ir.jsx)(Ks,{icon:si,fixedWidth:!0})," Add a server"]})})]}),(0,ir.jsx)(gg,{children:(0,ir.jsxs)("table",{className:"table table-hover responsive-table mb-0",children:[(0,ir.jsx)("thead",{className:"responsive-table__header",children:(0,ir.jsxs)("tr",{children:[f&&(0,ir.jsx)("th",{"aria-label":"Auto-connect",style:{width:"50px"}}),(0,ir.jsx)("th",{children:"Name"}),(0,ir.jsx)("th",{children:"Base URL"}),(0,ir.jsx)("th",{"aria-label":"Options"})]})}),(0,ir.jsxs)("tbody",{children:[!u.length&&(0,ir.jsx)("tr",{className:"text-center",children:(0,ir.jsx)("td",{colSpan:4,children:"No servers found."})}),u.map((function(e){return(0,ir.jsx)(r,{server:e,hasAutoConnect:f},e.id)}))]})]})}),h&&(0,ir.jsx)("div",{className:"mt-3",children:(0,ir.jsx)(Z_,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})}},Ww=function(e){return function(t){var n=t.server,r=t.hasAutoConnect;return(0,ir.jsxs)("tr",{className:"responsive-table__row",children:[r&&(0,ir.jsx)("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:n.autoConnect&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Ks,{icon:yi,className:"text-primary",id:"autoConnectIcon"}),(0,ir.jsx)(Dv,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),(0,ir.jsx)("th",{className:"responsive-table__cell","data-th":"Name",children:(0,ir.jsx)(ze,{to:"/server/".concat(n.id),children:n.name})}),(0,ir.jsx)("td",{className:"responsive-table__cell","data-th":"Base URL",children:n.url}),(0,ir.jsx)("td",{className:"responsive-table__cell text-end",children:(0,ir.jsx)(e,{server:n})})]})}},Zw=function(e){return function(t){var n=t.server,r=t.setAutoConnect,i=v(am(),2),o=i[0],a=i[1],s=v(am(),4),l=s[0],u=s[2],c=s[3],f="/server/".concat(n.id),d=n.autoConnect,h=d?wr:Fy;return(0,ir.jsxs)(V_,{isOpen:o,toggle:a,children:[(0,ir.jsxs)(Hc,{tag:ze,to:f,children:[(0,ir.jsx)(Ks,{icon:_r,fixedWidth:!0})," Connect"]}),(0,ir.jsxs)(Hc,{tag:ze,to:"".concat(f,"/edit"),children:[(0,ir.jsx)(Ks,{icon:br,fixedWidth:!0})," Edit server"]}),(0,ir.jsxs)(Hc,{onClick:function(){return r(n,!d)},children:[(0,ir.jsx)(Ks,{icon:h,fixedWidth:!0})," ",d?"Do not a":"A","uto-connect"]}),(0,ir.jsx)(Hc,{divider:!0}),(0,ir.jsxs)(Hc,{className:"dropdown-item--danger",onClick:u,children:[(0,ir.jsx)(Ks,{icon:ur,fixedWidth:!0})," Remove server"]}),(0,ir.jsx)(e,{redirectHome:!1,server:n,isOpen:l,toggle:c})]})}},Yw=function(e){return"string"===typeof e.url&&"string"===typeof e.apiKey&&"string"===typeof e.name},qw=function(e){return Array.isArray(e)&&e.every(Yw)},Gw=Vt((function e(t,n){var r=this;Ht(this,e),this.csvToJson=t,this.fileReaderFactory=n,this.importServersFromFile=function(){var e=Bt(Yt().mark((function e(t){var n;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new Error("No file provided");case 2:return n=r.fileReaderFactory(),e.abrupt("return",new Promise((function(e,i){n.addEventListener("loadend",function(){var t=Bt(Yt().mark((function t(n){var o,a,s,l,u;return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,l=null!==(o=null===(a=n.target)||void 0===a||null===(s=a.result)||void 0===s?void 0:s.toString())&&void 0!==o?o:"",t.next=4,r.csvToJson(l);case 4:if(u=t.sent,qw(u)){t.next=7;break}throw new Error("Provided file does not have the right format.");case 7:e(u),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),i(t.t0);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(e){return t.apply(this,arguments)}}()),n.readAsText(t)})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),Kw=Vt((function e(t,n,r){var i=this;Ht(this,e),this.storage=t,this.window=n,this.jsonToCsv=r,this.exportServers=Bt(Yt().mark((function e(){var t,n,r;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=vm(null!==(t=i.storage.get("servers"))&&void 0!==t?t:{}).map(Ft);try{r=i.jsonToCsv(n),zg(i.window,r,"shlink-servers.csv")}catch(sI){console.error(sI)}case 2:case"end":return e.stop()}}),e)})))})),Qw=function(e,t){e.serviceFactory("ManageServers",Hw,"ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"),e.decorator("ManageServers",Mg),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.serviceFactory("ManageServersRow",Ww,"ManageServersRowDropdown"),e.serviceFactory("ManageServersRowDropdown",Zw,"DeleteServerModal"),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.serviceFactory("CreateServer",iw,"ImportServersBtn","useTimeoutToggle"),e.decorator("CreateServer",Mg),e.decorator("CreateServer",t(["selectedServer","servers"],["createServer","resetSelectedServer"])),e.serviceFactory("EditServer",lw,"ServerError"),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",(function(){return ow})),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",(function(){return aw})),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.serviceFactory("DeleteServerButton",sw,"DeleteServerModal"),e.serviceFactory("ImportServersBtn",yw,"ServersImporter"),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.serviceFactory("ServerError",Bw,"DeleteServerButton"),e.decorator("ServerError",t(["servers","selectedServer"])),e.serviceFactory("Overview",Vw,"ShortUrlsTable","CreateShortUrl"),e.decorator("Overview",t(["shortUrlsList","tagsList","selectedServer","mercureInfo","visitsOverview"],["listShortUrls","listTags","createNewVisits","loadMercureInfo","loadVisitsOverview"])),e.constant("fileReaderFactory",(function(){return new FileReader})),e.service("ServersImporter",Gw,"csvToJson","fileReaderFactory"),e.service("ServersExporter",Kw,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",Cw,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServer",(function(){return Rw})),e.serviceFactory("createServers",(function(){return Dw})),e.serviceFactory("deleteServer",(function(){return Aw})),e.serviceFactory("editServer",(function(){return Lw})),e.serviceFactory("setAutoConnect",(function(){return Iw})),e.serviceFactory("fetchServers",zw,"axios"),e.serviceFactory("resetSelectedServer",(function(){return Sw}))};var $w=(0,l.createContext)(null),Xw=$w.Provider;function Jw(){var e=(0,l.useContext)($w);if(null==e)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function ek(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function tk(e,t){return null==t?function(t,n){return(0,l.useRef)(e(t,n))}:function(n,r){var i=(0,l.useRef)(e(n,r)),o=(0,l.useRef)(n),a=i.current.instance;return(0,l.useEffect)((function(){o.current!==n&&(t(a,n,o.current),o.current=n)}),[a,n,r]),i}}function nk(e,t){var n=(0,l.useRef)(t);(0,l.useEffect)((function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t}),[e,t])}function rk(e,t){var n=(0,l.useRef)();(0,l.useEffect)((function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}}),[e,t])}function ik(e,t){var n,r=null!==(n=e.pane)&&void 0!==n?n:t.pane;return r?Ze(Ze({},e),{},{pane:r}):e}function ok(e){return function(t){var n=Jw(),r=e(ik(t,n),n);return nk(n.map,t.attribution),rk(r.current,t.eventHandlers),function(e,t){(0,l.useEffect)((function(){var n;return(null!==(n=t.layerContainer)&&void 0!==n?n:t.map).addLayer(e.instance),function(){var n;null===(n=t.layerContainer)||void 0===n||n.removeLayer(e.instance),t.map.removeLayer(e.instance)}}),[t,e])}(r.current,n),r}}var ak=n(470),sk=n.n(ak),lk=["url"],uk=function(e,t){return function(e){function t(t,n){var r=e(t).current.instance;return(0,l.useImperativeHandle)(n,(function(){return r})),null}return(0,l.forwardRef)(t)}(ok(tk(e,t)))}((function(e,t){var n=e.url,r=Wt(e,lk);return ek(new ak.TileLayer(n,ik(r,t)),t)}),(function(e,t,n){var r=t.opacity,i=t.zIndex;null!=r&&r!==n.opacity&&e.setOpacity(r),null!=i&&i!==n.zIndex&&e.setZIndex(i)})),ck=["bounds","boundsOptions","center","children","className","id","placeholder","style","whenReady","zoom"];function fk(){return fk=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},fk.apply(this,arguments)}function dk(e,t){var n=e.bounds,r=e.boundsOptions,i=e.center,o=e.children,a=e.className,s=e.id,u=e.placeholder,c=e.style,f=e.whenReady,d=e.zoom,h=Wt(e,ck),p=v((0,l.useState)({className:a,id:s,style:c}),1)[0],m=v((0,l.useState)(null),2),g=m[0],y=m[1];(0,l.useImperativeHandle)(t,(function(){var e;return null!==(e=null===g||void 0===g?void 0:g.map)&&void 0!==e?e:null}),[g]);var b=(0,l.useCallback)((function(e){if(null!==e&&null===g){var t=new ak.Map(e,h);null!=i&&null!=d?t.setView(i,d):null!=n&&t.fitBounds(n,r),null!=f&&t.whenReady(f),y(function(e){return Object.freeze({__version:1,map:e})}(t))}}),[]);(0,l.useEffect)((function(){return function(){null===g||void 0===g||g.map.remove()}}),[]);var _=g?l.createElement(Xw,{value:g},o):null!==u&&void 0!==u?u:null;return l.createElement("div",fk({},p,{ref:b}),_)}var hk=(0,l.forwardRef)(dk),pk=["position"],vk=function(e,t){return function(e){function t(t,n){var r=e(t).current,i=r.instance,o=r.context;return(0,l.useImperativeHandle)(n,(function(){return i})),null==t.children?null:l.createElement(Xw,{value:o},t.children)}return(0,l.forwardRef)(t)}(ok(tk(e,t)))}((function(e,t){var n,r,i=e.position,o=Wt(e,pk),a=new ak.Marker(i,o);return ek(a,(n=t,r={overlayContainer:a},Object.freeze(Ze(Ze({},n),r))))}),(function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())})),mk=function(e,t){var n=function(e,t){return function(n,r){var i=Jw(),o=e(ik(n,i),i);return nk(i.map,n.attribution),rk(o.current,n.eventHandlers),t(o.current,i,n,r),o}}(tk(e),t);return function(e){function t(t,n){var r=v((0,l.useState)(!1),2),i=r[0],a=r[1],s=e(t,a).current.instance;(0,l.useImperativeHandle)(n,(function(){return s})),(0,l.useEffect)((function(){i&&s.update()}),[s,i,t.children]);var u=s._contentNode;return u?(0,o.createPortal)(t.children,u):null}return(0,l.forwardRef)(t)}(n)}((function(e,t){return ek(new ak.Popup(e,t.overlayContainer),t)}),(function(e,t,n,r){var i=n.position;(0,l.useEffect)((function(){var n=e.instance;function o(e){e.popup===n&&(n.update(),r(!0))}function a(e){e.popup===n&&r(!1)}return t.map.on({popupopen:o,popupclose:a}),null==t.overlayContainer?(null!=i&&n.setLatLng(i),n.openOn(t.map)):t.overlayContainer.bindPopup(n),function(){var e;t.map.off({popupopen:o,popupclose:a}),null===(e=t.overlayContainer)||void 0===e||e.unbindPopup(),t.map.removeLayer(n)}}),[e,t,r,i])})),gk=function(){return(0,ir.jsx)(uk,{attribution:'&copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"})},yk=function(e){return 0===e.length?{}:e.length>1?{bounds:e.map(jt("latLong"))}:{zoom:10,center:v(e,1)[0].latLong}},bk=function(e){var t=e.toggle,n=e.isOpen,r=e.title,i=e.locations,o=void 0===i?[]:i;return(0,ir.jsx)(vh,{toggle:t,isOpen:n,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:(0,ir.jsxs)(kh,{className:"map-modal__modal-body",children:[(0,ir.jsxs)("h3",{className:"map-modal__modal-title",children:[r,(0,ir.jsx)("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:t})]}),(0,ir.jsxs)(hk,Ze(Ze({},yk(o)),{},{children:[(0,ir.jsx)(gk,{}),o.map((function(e,t){var n=e.cityName,r=e.latLong,i=e.count;return(0,ir.jsx)(vk,{position:r,children:(0,ir.jsxs)(mk,{children:[(0,ir.jsx)("b",{children:i})," visit",i>1?"s":""," from ",(0,ir.jsx)("b",{children:n})]})},t)}))]}))]})})},_k=function(e){var t=e.visits,n=e.goBack,r=e.shortUrl,i=e.children,o=e.title;return(0,ir.jsx)("header",{children:(0,ir.jsxs)(jf,{body:!0,children:[(0,ir.jsxs)("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[(0,ir.jsx)(xc,{color:"link",size:"lg",className:"p-0 me-3",onClick:n,children:(0,ir.jsx)(Ks,{icon:Ir})}),(0,ir.jsx)("span",{className:"text-center d-none d-sm-block",children:(0,ir.jsx)("small",{children:o})}),(0,ir.jsxs)("span",{className:"badge badge-main ms-3",children:["Visits:"," ",(0,ir.jsx)(B_,{visitsCount:t.length,shortUrl:r})]})]}),(0,ir.jsx)("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:(0,ir.jsx)("small",{children:o})}),i&&(0,ir.jsx)("div",{className:"mt-md-2",children:i})]})})},xk=function(e){var t,n,r=e.shortUrlDetail,i=e.shortUrlVisits,o=e.goBack,a=r.shortUrl,s=r.loading,l=i.visits,u=null!==(t=null===a||void 0===a?void 0:a.shortUrl)&&void 0!==t?t:"",c=null!==(n=null===a||void 0===a?void 0:a.longUrl)&&void 0!==n?n:"",f=null===a||void 0===a?void 0:a.title,d=(0,ir.jsxs)(ir.Fragment,{children:["Visits for ",(0,ir.jsx)(gm,{href:u})]});return(0,ir.jsxs)(_k,{title:d,goBack:o,visits:l,shortUrl:a,children:[(0,ir.jsx)("hr",{}),(0,ir.jsxs)("div",{children:["Created: ",a?(0,ir.jsxs)("span",{children:[(0,ir.jsx)("b",{id:"created",className:"short-url-visits-header__created-at",children:(0,ir.jsx)(t_,{date:a.dateCreated,relative:!0})}),(0,ir.jsx)(Dv,{placement:"bottom",target:"created",children:(0,ir.jsx)(t_,{date:a.dateCreated})})]}):(0,ir.jsx)("small",{children:"Loading..."})]}),(0,ir.jsxs)("div",{className:"long-url-container",children:["".concat(f?"Title":"Long URL",": "),s&&(0,ir.jsx)("small",{children:"Loading..."}),!s&&(0,ir.jsx)(gm,{href:c,children:null!==f&&void 0!==f?f:c})]})]})},wk=Zm((function(e,t,n){return Fn(t,n[e])})),kk=["children"],Sk=function(e){var t=e.children,n=Wt(e,kk);return(0,ir.jsx)(fc,Ze(Ze({className:"nav-pills__nav-link",tag:Be},n),{},{children:t}))},Ck=function(e){var t=e.children,n=e.fill,r=void 0!==n&&n,i=e.className,o=void 0===i?"":i;return(0,ir.jsx)(jf,{className:"nav-pills__nav p-0 overflow-hidden ".concat(o),body:!0,children:(0,ir.jsx)(rc,{pills:!0,fill:r,children:l.Children.map(t,(function(e){if(!(0,l.isValidElement)(e)||e.type!==Sk)throw new Error("Only NavPillItem children are allowed inside NavPills.");return e}))})})};function Ek(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=el(e)););return e}function Tk(){return Tk="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=Ek(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Tk.apply(this,arguments)}function Mk(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"===typeof e.length){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(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ok(){}var Pk=function(){var e=0;return function(){return e++}}();function jk(e){return null===e||"undefined"===typeof e}function Nk(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function Dk(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}var Rk=function(e){return("number"===typeof e||e instanceof Number)&&isFinite(+e)};function Lk(e,t){return Rk(e)?e:t}function Ak(e,t){return"undefined"===typeof e?t:e}var Ik=function(e,t){return"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e};function Fk(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function zk(e,t,n,r){var i,o,a;if(Nk(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(Dk(e))for(o=(a=Object.keys(e)).length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}function Bk(e,t){var 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 Uk(e){if(Nk(e))return e.map(Uk);if(Dk(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=Uk(e[n[i]]);return t}return e}function Vk(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Hk(e,t,n,r){if(Vk(e)){var i=t[e],o=n[e];Dk(i)&&Dk(o)?Wk(i,o,r):t[e]=Uk(o)}}function Wk(e,t,n){var r=Nk(t)?t:[t],i=r.length;if(!Dk(e))return e;for(var o=(n=n||{}).merger||Hk,a=0;a<i;++a)if(Dk(t=r[a]))for(var s=Object.keys(t),l=0,u=s.length;l<u;++l)o(s[l],e,t,n);return e}function Zk(e,t){return Wk(e,t,{merger:Yk})}function Yk(e,t,n){if(Vk(e)){var r=t[e],i=n[e];Dk(r)&&Dk(i)?Zk(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Uk(i))}}var qk={"":function(e){return e},x:function(e){return e.x},y:function(e){return e.y}};function Gk(e,t){var n=qk[t]||(qk[t]=function(e){var t=function(e){var t,n=e.split("."),r=[],i="",o=Mk(n);try{for(o.s();!(t=o.n()).done;){(i+=t.value).endsWith("\\")?i=i.slice(0,-1)+".":(r.push(i),i="")}}catch(a){o.e(a)}finally{o.f()}return r}(e);return function(e){var n,r=Mk(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(""===i)break;e=e&&e[i]}}catch(o){r.e(o)}finally{r.f()}return e}}(t));return n(e)}function Kk(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Qk=function(e){return"undefined"!==typeof e},$k=function(e){return"function"===typeof e},Xk=function(e,t){if(e.size!==t.size)return!1;var n,r=Mk(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!t.has(i))return!1}}catch(o){r.e(o)}finally{r.f()}return!0};var Jk=Math.PI,eS=2*Jk,tS=eS+Jk,nS=Number.POSITIVE_INFINITY,rS=Jk/180,iS=Jk/2,oS=Jk/4,aS=2*Jk/3,sS=Math.log10,lS=Math.sign;function uS(e){var t=Math.round(e);e=fS(e,t,e/1e3)?t:e;var n=Math.pow(10,Math.floor(sS(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function cS(e){return!isNaN(parseFloat(e))&&isFinite(e)}function fS(e,t,n){return Math.abs(e-t)<n}function dS(e,t,n){var 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 hS(e){return e*(Jk/180)}function pS(e){return e*(180/Jk)}function vS(e){if(Rk(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}}function mS(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Jk&&(o+=eS),{angle:o,distance:i}}function gS(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function yS(e,t){return(e-t+tS)%eS-Jk}function bS(e){return(e%eS+eS)%eS}function _S(e,t,n,r){var i=bS(e),o=bS(t),a=bS(n),s=bS(o-i),l=bS(a-i),u=bS(i-o),c=bS(i-a);return i===o||i===a||r&&o===a||s>l&&u<c}function xS(e,t,n){return Math.max(t,Math.min(n,e))}function wS(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function kS(e,t,n){n=n||function(n){return e[n]<t};for(var r,i=e.length-1,o=0;i-o>1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}var SS=function(e,t,n,r){return kS(e,n,r?function(r){return e[r][t]<=n}:function(r){return e[r][t]<n})},CS=function(e,t,n){return kS(e,n,(function(r){return e[r][t]>=n}))};var ES=["push","pop","shift","splice","unshift"];function TS(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(ES.forEach((function(t){delete e[t]})),delete e._chartjs)}}function MS(e){var t,n,r=new Set;for(t=0,n=e.length;t<n;++t)r.add(e[t]);return r.size===n?e:Array.from(r)}var OS="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function PS(e,t,n){var r=n||function(e){return Array.prototype.slice.call(e)},i=!1,o=[];return function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];o=r(a),i||(i=!0,OS.call(window,(function(){i=!1,e.apply(t,o)})))}}var jS=function(e){return"start"===e?"left":"end"===e?"right":"center"},NS=function(e,t,n){return"start"===e?t:"end"===e?n:(t+n)/2};function DS(e,t,n){var r=t.length,i=0,o=r;if(e._sorted){var a=e.iScale,s=e._parsed,l=a.axis,u=a.getUserBounds(),c=u.min,f=u.max,d=u.minDefined,h=u.maxDefined;d&&(i=xS(Math.min(SS(s,a.axis,c).lo,n?r:SS(t,l,a.getPixelForValue(c)).lo),0,r-1)),o=h?xS(Math.max(SS(s,a.axis,f,!0).hi+1,n?0:SS(t,l,a.getPixelForValue(f),!0).hi+1),i,r)-i:r-i}return{start:i,count:o}}function RS(e){var t=e.xScale,n=e.yScale,r=e._scaleRanges,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;var o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}var LS=function(e){return 0===e||1===e},AS=function(e,t,n){return-Math.pow(2,10*(e-=1))*Math.sin((e-t)*eS/n)},IS=function(e,t,n){return Math.pow(2,-10*e)*Math.sin((e-t)*eS/n)+1},FS={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*iS)},easeOutSine:function(e){return Math.sin(e*iS)},easeInOutSine:function(e){return-.5*(Math.cos(Jk*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return LS(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1)))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){return LS(e)?e:AS(e,.075,.3)},easeOutElastic:function(e){return LS(e)?e:IS(e,.075,.3)},easeInOutElastic:function(e){var t=.1125;return LS(e)?e:e<.5?.5*AS(2*e,t,.45):.5+.5*IS(2*e-1,t,.45)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-FS.easeOutBounce(1-e)},easeOutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*FS.easeInBounce(2*e):.5*FS.easeOutBounce(2*e-1)+.5}};function zS(e){return e+.5|0}var BS=function(e,t,n){return Math.max(Math.min(e,n),t)};function US(e){return BS(zS(2.55*e),0,255)}function VS(e){return BS(zS(255*e),0,255)}function HS(e){return BS(zS(e/2.55)/100,0,1)}function WS(e){return BS(zS(100*e),0,100)}var ZS={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},YS=g("0123456789ABCDEF"),qS=function(e){return YS[15&e]},GS=function(e){return YS[(240&e)>>4]+YS[15&e]},KS=function(e){return(240&e)>>4===(15&e)};function QS(e){var t=function(e){return KS(e.r)&&KS(e.g)&&KS(e.b)&&KS(e.a)}(e)?qS:GS;return e?"#"+t(e.r)+t(e.g)+t(e.b)+function(e,t){return e<255?t(e):""}(e.a,t):void 0}var $S=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function XS(e,t,n){var r=t*Math.min(n,1-n),i=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function JS(e,t,n){var r=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function eC(e,t,n){var r,i=XS(e,1,.5);for(t+n>1&&(t*=r=1/(t+n),n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function tC(e){var t,n,r,i=e.r/255,o=e.g/255,a=e.b/255,s=Math.max(i,o,a),l=Math.min(i,o,a),u=(s+l)/2;return s!==l&&(r=s-l,n=u>.5?r/(2-s-l):r/(s+l),t=function(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}(i,o,a,r,s),t=60*t+.5),[0|t,n||0,u]}function nC(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(VS)}function rC(e,t,n){return nC(XS,e,t,n)}function iC(e){return(e%360+360)%360}function oC(e){var t,n=$S.exec(e),r=255;if(n){n[5]!==t&&(r=n[6]?US(+n[5]):VS(+n[5]));var i=iC(+n[2]),o=+n[3]/100,a=+n[4]/100;return t="hwb"===n[1]?function(e,t,n){return nC(eC,e,t,n)}(i,o,a):"hsv"===n[1]?function(e,t,n){return nC(JS,e,t,n)}(i,o,a):rC(i,o,a),{r:t[0],g:t[1],b:t[2],a:r}}}var aC,sC={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"},lC={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 uC(e){aC||(aC=function(){var e,t,n,r,i,o={},a=Object.keys(lC),s=Object.keys(sC);for(e=0;e<a.length;e++){for(r=i=a[e],t=0;t<s.length;t++)n=s[t],i=i.replace(n,sC[n]);n=parseInt(lC[r],16),o[i]=[n>>16&255,n>>8&255,255&n]}return o}(),aC.transparent=[0,0,0,0]);var t=aC[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}var cC=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var fC=function(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055},dC=function(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)};function hC(e,t,n){if(e){var r=tC(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=rC(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function pC(e,t){return e?Object.assign(t||{},e):e}function vC(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=VS(e[3]))):(t=pC(e,{r:0,g:0,b:0,a:1})).a=VS(t.a),t}function mC(e){return"r"===e.charAt(0)?function(e){var t,n,r,i=cC.exec(e),o=255;if(i){if(i[7]!==t){var a=+i[7];o=i[8]?US(a):BS(255*a,0,255)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?US(t):BS(t,0,255)),g:n=255&(i[4]?US(n):BS(n,0,255)),b:r=255&(i[6]?US(r):BS(r,0,255)),a:o}}}(e):oC(e)}var gC=function(){function e(t){if(Ht(this,e),t instanceof e)return t;var n,r=typeof t;"object"===r?n=vC(t):"string"===r&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*ZS[e[1]],g:255&17*ZS[e[2]],b:255&17*ZS[e[3]],a:5===n?17*ZS[e[4]]:255}:7!==n&&9!==n||(t={r:ZS[e[1]]<<4|ZS[e[2]],g:ZS[e[3]]<<4|ZS[e[4]],b:ZS[e[5]]<<4|ZS[e[6]],a:9===n?ZS[e[7]]<<4|ZS[e[8]]:255})),t}(t)||uC(t)||mC(t)),this._rgb=n,this._valid=!!n}return Vt(e,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var e=pC(this._rgb);return e&&(e.a=HS(e.a)),e},set:function(e){this._rgb=vC(e)}},{key:"rgbString",value:function(){return this._valid?function(e){return e&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(HS(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")"))}(this._rgb):void 0}},{key:"hexString",value:function(){return this._valid?QS(this._rgb):void 0}},{key:"hslString",value:function(){return this._valid?function(e){if(e){var t=tC(e),n=t[0],r=WS(t[1]),i=WS(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(HS(e.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)")}}(this._rgb):void 0}},{key:"mix",value:function(e,t){if(e){var n,r=this.rgb,i=e.rgb,o=t===n?.5:t,a=2*o-1,s=r.a-i.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;n=1-l,r.r=255&l*r.r+n*i.r+.5,r.g=255&l*r.g+n*i.g+.5,r.b=255&l*r.b+n*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}},{key:"interpolate",value:function(e,t){return e&&(this._rgb=function(e,t,n){var r=dC(HS(e.r)),i=dC(HS(e.g)),o=dC(HS(e.b));return{r:VS(fC(r+n*(dC(HS(t.r))-r))),g:VS(fC(i+n*(dC(HS(t.g))-i))),b:VS(fC(o+n*(dC(HS(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}},{key:"clone",value:function(){return new e(this.rgb)}},{key:"alpha",value:function(e){return this._rgb.a=VS(e),this}},{key:"clearer",value:function(e){return this._rgb.a*=1-e,this}},{key:"greyscale",value:function(){var e=this._rgb,t=zS(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}},{key:"opaquer",value:function(e){return this._rgb.a*=1+e,this}},{key:"negate",value:function(){var e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}},{key:"lighten",value:function(e){return hC(this._rgb,2,e),this}},{key:"darken",value:function(e){return hC(this._rgb,2,-e),this}},{key:"saturate",value:function(e){return hC(this._rgb,1,e),this}},{key:"desaturate",value:function(e){return hC(this._rgb,1,-e),this}},{key:"rotate",value:function(e){return function(e,t){var n=tC(e);n[0]=iC(n[0]+t),n=rC(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}]),e}();function yC(e){return new gC(e)}function bC(e){if(e&&"object"===typeof e){var t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function _C(e){return bC(e)?e:yC(e)}function xC(e){return bC(e)?e:yC(e).saturate(.5).darken(.1).hexString()}var wC=Object.create(null),kC=Object.create(null);function SC(e,t){if(!t)return e;for(var n=t.split("."),r=0,i=n.length;r<i;++r){var o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function CC(e,t,n){return"string"===typeof t?Wk(SC(e,t),n):Wk(SC(e,""),t)}var EC=function(){function e(t){Ht(this,e),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=function(e){return e.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=function(e,t){return xC(t.backgroundColor)},this.hoverBorderColor=function(e,t){return xC(t.borderColor)},this.hoverColor=function(e,t){return xC(t.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)}return Vt(e,[{key:"set",value:function(e,t){return CC(this,e,t)}},{key:"get",value:function(e){return SC(this,e)}},{key:"describe",value:function(e,t){return CC(kC,e,t)}},{key:"override",value:function(e,t){return CC(wC,e,t)}},{key:"route",value:function(e,t,n,r){var i,o=SC(this,e),a=SC(this,n),s="_"+t;Object.defineProperties(o,(He(i={},s,{value:o[t],writable:!0}),He(i,t,{enumerable:!0,get:function(){var e=this[s],t=a[r];return Dk(e)?Object.assign({},t,e):Ak(e,t)},set:function(e){this[s]=e}}),i))}}]),e}(),TC=new EC({_scriptable:function(e){return!e.startsWith("on")},_indexable:function(e){return"events"!==e},hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function MC(e,t,n,r,i){var o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function OC(e,t,n,r){var i=(r=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;var a,s,l,u,c,f=0,d=n.length;for(a=0;a<d;a++)if(void 0!==(u=n[a])&&null!==u&&!0!==Nk(u))f=MC(e,i,o,f,u);else if(Nk(u))for(s=0,l=u.length;s<l;s++)void 0===(c=u[s])||null===c||Nk(c)||(f=MC(e,i,o,f,c));e.restore();var h=o.length/2;if(h>n.length){for(a=0;a<h;a++)delete i[o[a]];o.splice(0,h)}return f}function PC(e,t,n){var r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function jC(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function NC(e,t,n,r){DC(e,t,n,r,null)}function DC(e,t,n,r,i){var o,a,s,l,u,c,f=t.pointStyle,d=t.rotation,h=t.radius,p=(d||0)*rS;if(f&&"object"===typeof f&&("[object HTMLImageElement]"===(o=f.toString())||"[object HTMLCanvasElement]"===o))return e.save(),e.translate(n,r),e.rotate(p),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void e.restore();if(!(isNaN(h)||h<=0)){switch(e.beginPath(),f){default:i?e.ellipse(n,r,i/2,h,0,0,eS):e.arc(n,r,h,0,eS),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(p)*h,r-Math.cos(p)*h),p+=aS,e.lineTo(n+Math.sin(p)*h,r-Math.cos(p)*h),p+=aS,e.lineTo(n+Math.sin(p)*h,r-Math.cos(p)*h),e.closePath();break;case"rectRounded":l=h-(u=.516*h),a=Math.cos(p+oS)*l,s=Math.sin(p+oS)*l,e.arc(n-a,r-s,u,p-Jk,p-iS),e.arc(n+s,r-a,u,p-iS,p),e.arc(n+a,r+s,u,p,p+iS),e.arc(n-s,r+a,u,p+iS,p+Jk),e.closePath();break;case"rect":if(!d){l=Math.SQRT1_2*h,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}p+=oS;case"rectRot":a=Math.cos(p)*h,s=Math.sin(p)*h,e.moveTo(n-a,r-s),e.lineTo(n+s,r-a),e.lineTo(n+a,r+s),e.lineTo(n-s,r+a),e.closePath();break;case"crossRot":p+=oS;case"cross":a=Math.cos(p)*h,s=Math.sin(p)*h,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s),e.moveTo(n+s,r-a),e.lineTo(n-s,r+a);break;case"star":a=Math.cos(p)*h,s=Math.sin(p)*h,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s),e.moveTo(n+s,r-a),e.lineTo(n-s,r+a),p+=oS,a=Math.cos(p)*h,s=Math.sin(p)*h,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s),e.moveTo(n+s,r-a),e.lineTo(n-s,r+a);break;case"line":a=i?i/2:Math.cos(p)*h,s=Math.sin(p)*h,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(p)*h,r+Math.sin(p)*h)}e.fill(),t.borderWidth>0&&e.stroke()}}function RC(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 LC(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function AC(e){e.restore()}function IC(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){var o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else"after"===i!==!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function FC(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 zC(e,t,n,r,i){var o,a,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=Nk(t)?t:[t],u=s.strokeWidth>0&&""!==s.strokeColor;for(e.save(),e.font=i.string,BC(e,s),o=0;o<l.length;++o)a=l[o],u&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),jk(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(a,n,r,s.maxWidth)),e.fillText(a,n,r,s.maxWidth),UC(e,n,r,a,s),r+=i.lineHeight;e.restore()}function BC(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),jk(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 UC(e,t,n,r,i){if(i.strikethrough||i.underline){var o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,c),e.lineTo(s,c),e.stroke()}}function VC(e,t){var n=t.x,r=t.y,i=t.w,o=t.h,a=t.radius;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,-iS,Jk,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,Jk,iS,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,iS,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-iS,!0),e.lineTo(n+a.topLeft,r)}var HC=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),WC=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function ZC(e,t){var n=(""+e).match(HC);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}var YC=function(e){return+e||0};function qC(e,t){var n,r={},i=Dk(t),o=i?Object.keys(t):t,a=Dk(e)?i?function(n){return Ak(e[n],e[t[n]])}:function(t){return e[t]}:function(){return e},s=Mk(o);try{for(s.s();!(n=s.n()).done;){var l=n.value;r[l]=YC(a(l))}}catch(u){s.e(u)}finally{s.f()}return r}function GC(e){return qC(e,{top:"y",right:"x",bottom:"y",left:"x"})}function KC(e){return qC(e,["topLeft","topRight","bottomLeft","bottomRight"])}function QC(e){var t=GC(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function $C(e,t){e=e||{},t=t||TC.font;var n=Ak(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));var r=Ak(e.style,t.style);r&&!(""+r).match(WC)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");var i={family:Ak(e.family,t.family),lineHeight:ZC(Ak(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ak(e.weight,t.weight),string:""};return i.string=function(e){return!e||jk(e.size)||jk(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i}function XC(e,t,n,r){var i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(void 0!==(a=e[i])&&(void 0!==t&&"function"===typeof a&&(a=a(t),s=!1),void 0!==n&&Nk(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function JC(e,t){return Object.assign(Object.create(e),t)}function eE(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return e[0]};Qk(i)||(i=dE("_fallback",e));var a=(He(t={},Symbol.toStringTag,"Object"),He(t,"_cacheable",!0),He(t,"_scopes",e),He(t,"_rootScopes",r),He(t,"_fallback",i),He(t,"_getTarget",o),He(t,"override",(function(t){return eE([t].concat(g(e)),n,r,i)})),t);return new Proxy(a,{deleteProperty:function(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get:function(t,r){return oE(t,r,(function(){return fE(r,n,e,t)}))},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e[0])},has:function(e,t){return hE(e).includes(t)},ownKeys:function(e){return hE(e)},set:function(e,t,n){var r=e._storage||(e._storage=o());return e[t]=r[t]=n,delete e._keys,!0}})}function tE(e,t,n,r){var i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:nE(e,r),setContext:function(t){return tE(e,t,n,r)},override:function(i){return tE(e.override(i),t,n,r)}};return new Proxy(i,{deleteProperty:function(t,n){return delete t[n],delete e[n],!0},get:function(e,t,n){return oE(e,t,(function(){return function(e,t,n){var r=e._proxy,i=e._context,o=e._subProxy,a=e._descriptors,s=r[t];$k(s)&&a.isScriptable(t)&&(s=function(e,t,n,r){var i=n._proxy,o=n._context,a=n._subProxy,s=n._stack;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e),t=t(o,a||r),s.delete(e),iE(e,t)&&(t=uE(i._scopes,i,e,t));return t}(t,s,e,n));Nk(s)&&s.length&&(s=function(e,t,n,r){var i=n._proxy,o=n._context,a=n._subProxy,s=n._descriptors;if(Qk(o.index)&&r(e))t=t[o.index%t.length];else if(Dk(t[0])){var l=t,u=i._scopes.filter((function(e){return e!==l}));t=[];var c,f=Mk(l);try{for(f.s();!(c=f.n()).done;){var d=uE(u,i,e,c.value);t.push(tE(d,o,a&&a[e],s))}}catch(h){f.e(h)}finally{f.f()}}return t}(t,s,e,a.isIndexable));iE(t,s)&&(s=tE(s,i,o&&o[t],a));return s}(e,t,n)}))},getOwnPropertyDescriptor:function(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e)},has:function(t,n){return Reflect.has(e,n)},ownKeys:function(){return Reflect.ownKeys(e)},set:function(t,n,r){return e[n]=r,delete t[n],!0}})}function nE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},n=e._scriptable,r=void 0===n?t.scriptable:n,i=e._indexable,o=void 0===i?t.indexable:i,a=e._allKeys,s=void 0===a?t.allKeys:a;return{allKeys:s,scriptable:r,indexable:o,isScriptable:$k(r)?r:function(){return r},isIndexable:$k(o)?o:function(){return o}}}var rE=function(e,t){return e?e+Kk(t):t},iE=function(e,t){return Dk(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object)};function oE(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];var r=n();return e[t]=r,r}function aE(e,t,n){return $k(e)?e(t,n):e}var sE=function(e,t){return!0===e?t:"string"===typeof e?Gk(t,e):void 0};function lE(e,t,n,r,i){var o,a=Mk(t);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=sE(n,s);if(l){e.add(l);var u=aE(l._fallback,n,i);if(Qk(u)&&u!==n&&u!==r)return u}else if(!1===l&&Qk(r)&&n!==r)return null}}catch(c){a.e(c)}finally{a.f()}return!1}function uE(e,t,n,r){var i=t._rootScopes,o=aE(t._fallback,n,r),a=[].concat(g(e),g(i)),s=new Set;s.add(r);var l=cE(s,a,n,o||n,r);return null!==l&&((!Qk(o)||o===n||null!==(l=cE(s,a,o,l,r)))&&eE(Array.from(s),[""],i,o,(function(){return function(e,t,n){var r=e._getTarget();t in r||(r[t]={});var i=r[t];if(Nk(i)&&Dk(n))return n;return i}(t,n,r)})))}function cE(e,t,n,r,i){for(;n;)n=lE(e,t,n,r,i);return n}function fE(e,t,n,r){var i,o,a=Mk(t);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(i=dE(rE(s,e),n),Qk(i))return iE(e,i)?uE(n,r,e,i):i}}catch(l){a.e(l)}finally{a.f()}}function dE(e,t){var n,r=Mk(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i){var o=i[e];if(Qk(o))return o}}}catch(a){r.e(a)}finally{r.f()}}function hE(e){var t=e._keys;return t||(t=e._keys=function(e){var t,n=new Set,r=Mk(e);try{for(r.s();!(t=r.n()).done;){var i,o=t.value,a=Mk(Object.keys(o).filter((function(e){return!e.startsWith("_")})));try{for(a.s();!(i=a.n()).done;){var s=i.value;n.add(s)}}catch(l){a.e(l)}finally{a.f()}}}catch(l){r.e(l)}finally{r.f()}return Array.from(n)}(e._scopes)),t}function pE(e,t,n,r){var i,o,a,s,l=e.iScale,u=this._parsing.key,c=void 0===u?"r":u,f=new Array(r);for(i=0,o=r;i<o;++i)s=t[a=i+n],f[i]={r:l.parse(Gk(s,c),a)};return f}var vE=Number.EPSILON||1e-14,mE=function(e,t){return t<e.length&&!e[t].skip&&e[t]},gE=function(e){return"x"===e?"y":"x"};function yE(e,t,n,r){var i=e.skip?t:e,o=t,a=n.skip?t:n,s=gS(o,i),l=gS(a,o),u=s/(s+l),c=l/(s+l),f=r*(u=isNaN(u)?0:u),d=r*(c=isNaN(c)?0:c);return{previous:{x:o.x-f*(a.x-i.x),y:o.y-f*(a.y-i.y)},next:{x:o.x+d*(a.x-i.x),y:o.y+d*(a.y-i.y)}}}function bE(e,t,n){for(var r,i,o,a,s,l=e.length,u=mE(e,0),c=0;c<l-1;++c)s=u,u=mE(e,c+1),s&&u&&(fS(t[c],0,vE)?n[c]=n[c+1]=0:(r=n[c]/t[c],i=n[c+1]/t[c],(a=Math.pow(r,2)+Math.pow(i,2))<=9||(o=3/Math.sqrt(a),n[c]=r*o*t[c],n[c+1]=i*o*t[c])))}function _E(e,t){for(var n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x",a=gE(o),s=e.length,l=mE(e,0),u=0;u<s;++u)if(r=i,i=l,l=mE(e,u+1),i){var c=i[o],f=i[a];r&&(n=(c-r[o])/3,i["cp1".concat(o)]=c-n,i["cp1".concat(a)]=f-n*t[u]),l&&(n=(l[o]-c)/3,i["cp2".concat(o)]=c+n,i["cp2".concat(a)]=f+n*t[u])}}function xE(e,t,n){return Math.max(Math.min(e,n),t)}function wE(e,t,n,r,i){var o,a,s,l;if(t.spanGaps&&(e=e.filter((function(e){return!e.skip}))),"monotone"===t.cubicInterpolationMode)!function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",o=gE(i),a=e.length,s=Array(a).fill(0),l=Array(a),u=mE(e,0);for(t=0;t<a;++t)if(n=r,r=u,u=mE(e,t+1),r){if(u){var c=u[i]-r[i];s[t]=0!==c?(u[o]-r[o])/c:0}l[t]=n?u?lS(s[t-1])!==lS(s[t])?0:(s[t-1]+s[t])/2:s[t-1]:s[t]}bE(e,s,l),_E(e,l,i)}(e,i);else{var u=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)l=yE(u,s=e[o],e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,u=s}t.capBezierPoints&&function(e,t){var n,r,i,o,a,s=RC(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&RC(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=xE(i.cp1x,t.left,t.right),i.cp1y=xE(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=xE(i.cp2x,t.left,t.right),i.cp2y=xE(i.cp2y,t.top,t.bottom)))}(e,n)}function kE(){return"undefined"!==typeof window&&"undefined"!==typeof document}function SE(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function CE(e,t,n){var r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}var EE=function(e){return window.getComputedStyle(e,null)};var TE=["top","right","bottom","left"];function ME(e,t,n){var r={};n=n?"-"+n:"";for(var i=0;i<4;i++){var o=TE[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function OE(e,t){if("native"in e)return e;var n=t.canvas,r=t.currentDevicePixelRatio,i=EE(n),o="border-box"===i.boxSizing,a=ME(i,"padding"),s=ME(i,"border","width"),l=function(e,t){var n,r,i=e.touches,o=i&&i.length?i[0]:e,a=o.offsetX,s=o.offsetY,l=!1;if(function(e,t,n){return(e>0||t>0)&&(!n||!n.shadowRoot)}(a,s,e.target))n=a,r=s;else{var u=t.getBoundingClientRect();n=o.clientX-u.left,r=o.clientY-u.top,l=!0}return{x:n,y:r,box:l}}(e,n),u=l.x,c=l.y,f=l.box,d=a.left+(f&&s.left),h=a.top+(f&&s.top),p=t.width,v=t.height;return o&&(p-=a.width+s.width,v-=a.height+s.height),{x:Math.round((u-d)/p*n.width/r),y:Math.round((c-h)/v*n.height/r)}}var PE=function(e){return Math.round(10*e)/10};function jE(e,t,n,r){var i=EE(e),o=ME(i,"margin"),a=CE(i.maxWidth,e,"clientWidth")||nS,s=CE(i.maxHeight,e,"clientHeight")||nS,l=function(e,t,n){var r,i;if(void 0===t||void 0===n){var o=SE(e);if(o){var a=o.getBoundingClientRect(),s=EE(o),l=ME(s,"border","width"),u=ME(s,"padding");t=a.width-u.width-l.width,n=a.height-u.height-l.height,r=CE(s.maxWidth,o,"clientWidth"),i=CE(s.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||nS,maxHeight:i||nS}}(e,t,n),u=l.width,c=l.height;if("content-box"===i.boxSizing){var f=ME(i,"border","width"),d=ME(i,"padding");u-=d.width+f.width,c-=d.height+f.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?Math.floor(u/r):c-o.height),u=PE(Math.min(u,a,l.maxWidth)),c=PE(Math.min(c,s,l.maxHeight)),u&&!c&&(c=PE(u/2)),{width:u,height:c}}function NE(e,t,n){var r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=i/r,e.width=o/r;var a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height="".concat(e.height,"px"),a.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}var DE=function(){var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(sI){}return e}();function RE(e,t){var n=function(e,t){return EE(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function LE(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function AE(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function IE(e,t,n,r){var i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=LE(e,i,n),s=LE(i,o,n),l=LE(o,t,n),u=LE(a,s,n),c=LE(s,l,n);return LE(u,c,n)}var FE=new Map;function zE(e,t,n){return function(e,t){t=t||{};var n=e+JSON.stringify(t),r=FE.get(n);return r||(r=new Intl.NumberFormat(e,t),FE.set(n,r)),r}(t,n).format(e)}function BE(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}}function UE(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function VE(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function HE(e){return"angle"===e?{between:_S,compare:yS,normalize:bS}:{between:wS,compare:function(e,t){return e-t},normalize:function(e){return e}}}function WE(e){var t=e.start,n=e.end,r=e.count;return{start:t%r,end:n%r,loop:e.loop&&(n-t+1)%r===0,style:e.style}}function ZE(e,t,n){if(!n)return[e];for(var r,i,o,a=n.property,s=n.start,l=n.end,u=t.length,c=HE(a),f=c.compare,d=c.between,h=c.normalize,p=function(e,t,n){var r,i,o=n.property,a=n.start,s=n.end,l=HE(o),u=l.between,c=l.normalize,f=t.length,d=e.start,h=e.end,p=e.loop;if(p){for(d+=f,h+=f,r=0,i=f;r<i&&u(c(t[d%f][o]),a,s);++r)d--,h--;d%=f,h%=f}return h<d&&(h+=f),{start:d,end:h,loop:p,style:e.style}}(e,t,n),v=p.start,m=p.end,g=p.loop,y=p.style,b=[],_=!1,x=null,w=function(){return _||d(s,o,r)&&0!==f(s,o)},k=function(){return!_||0===f(l,r)||d(l,o,r)},S=v,C=v;S<=m;++S)(i=t[S%u]).skip||(r=h(i[a]))!==o&&(_=d(r,s,l),null===x&&w()&&(x=0===f(r,s)?S:C),null!==x&&k()&&(b.push(WE({start:x,end:S,loop:g,count:u,style:y})),x=null),C=S,o=r);return null!==x&&b.push(WE({start:x,end:m,loop:g,count:u,style:y})),b}function YE(e,t){for(var n=[],r=e.segments,i=0;i<r.length;i++){var o=ZE(r[i],e.points,t);o.length&&n.push.apply(n,g(o))}return n}function qE(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){var i=e._chart.getContext(),o=GE(e.options),a=e._datasetIndex,s=e.options.spanGaps,l=n.length,u=[],c=o,f=t[0].start,d=f;function h(e,t,r,i){var o=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=o;for(;n[t%l].skip;)t+=o;e%l!==t%l&&(u.push({start:e%l,end:t%l,loop:r,style:i}),c=i,f=t%l)}}var p,v=Mk(t);try{for(v.s();!(p=v.n()).done;){var m=p.value;f=s?f:m.start;var g=n[f%l],y=void 0;for(d=f+1;d<=m.end;d++){var b=n[d%l];KE(y=GE(r.setContext(JC(i,{type:"segment",p0:g,p1:b,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:a}))),c)&&h(f,d-1,m.loop,c),g=b,c=y}f<d-1&&h(f,d-1,m.loop,c)}}catch(_){v.e(_)}finally{v.f()}return u}(e,t,n,r):t}function GE(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function KE(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}var QE=function(){function e(){Ht(this,e),this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}return Vt(e,[{key:"_notify",value:function(e,t,n,r){var i=t.listeners[r],o=t.duration;i.forEach((function(r){return r({chart:e,initial:t.initial,numSteps:o,currentStep:Math.min(n-t.start,o)})}))}},{key:"_refresh",value:function(){var e=this;this._request||(this._running=!0,this._request=OS.call(window,(function(){e._update(),e._request=null,e._running&&e._refresh()})))}},{key:"_update",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),n=0;this._charts.forEach((function(r,i){if(r.running&&r.items.length){for(var o,a=r.items,s=a.length-1,l=!1;s>=0;--s)(o=a[s])._active?(o._total>r.duration&&(r.duration=o._total),o.tick(t),l=!0):(a[s]=a[a.length-1],a.pop());l&&(i.draw(),e._notify(i,r,t,"progress")),a.length||(r.running=!1,e._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}})),this._lastDate=t,0===n&&(this._running=!1)}},{key:"_getAnims",value:function(e){var t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}},{key:"listen",value:function(e,t,n){this._getAnims(e).listeners[t].push(n)}},{key:"add",value:function(e,t){var n;t&&t.length&&(n=this._getAnims(e).items).push.apply(n,g(t))}},{key:"has",value:function(e){return this._getAnims(e).items.length>0}},{key:"start",value:function(e){var t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((function(e,t){return Math.max(e,t._duration)}),0),this._refresh())}},{key:"running",value:function(e){if(!this._running)return!1;var t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}},{key:"stop",value:function(e){var t=this._charts.get(e);if(t&&t.items.length){for(var n=t.items,r=n.length-1;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}}},{key:"remove",value:function(e){return this._charts.delete(e)}}]),e}(),$E=new QE,XE="transparent",JE={boolean:function(e,t,n){return n>.5?t:e},color:function(e,t,n){var r=_C(e||XE),i=r.valid&&_C(t||XE);return i&&i.valid?i.mix(r,n).hexString():t},number:function(e,t,n){return e+(t-e)*n}},eT=function(){function e(t,n,r,i){Ht(this,e);var o=n[r];i=XC([t.to,i,o,t.from]);var a=XC([t.from,o,i]);this._active=!0,this._fn=t.fn||JE[t.type||typeof a],this._easing=FS[t.easing]||FS.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}return Vt(e,[{key:"active",value:function(){return this._active}},{key:"update",value:function(e,t,n){if(this._active){this._notify(!1);var r=this._target[this._prop],i=n-this._start,o=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=XC([e.to,t,r,e.from]),this._from=XC([e.from,r,t])}}},{key:"cancel",value:function(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}},{key:"tick",value:function(e){var t,n=e-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;if(this._active=o!==s&&(a||n<r),!this._active)return this._target[i]=s,void this._notify(!0);n<0?this._target[i]=o:(t=n/r%2,t=a&&t>1?2-t:t,t=this._easing(Math.min(1,Math.max(0,t))),this._target[i]=this._fn(o,s,t))}},{key:"wait",value:function(){var e=this._promises||(this._promises=[]);return new Promise((function(t,n){e.push({res:t,rej:n})}))}},{key:"_notify",value:function(e){for(var t=e?"res":"rej",n=this._promises||[],r=0;r<n.length;r++)n[r][t]()}}]),e}();TC.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});var tT=Object.keys(TC.animation);TC.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:function(e){return"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}}),TC.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),TC.describe("animations",{_fallback:"animation"}),TC.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:function(e){return 0|e}}}}});var nT=function(){function e(t,n){Ht(this,e),this._chart=t,this._properties=new Map,this.configure(n)}return Vt(e,[{key:"configure",value:function(e){if(Dk(e)){var t=this._properties;Object.getOwnPropertyNames(e).forEach((function(n){var r=e[n];if(Dk(r)){var i,o={},a=Mk(tT);try{for(a.s();!(i=a.n()).done;){var s=i.value;o[s]=r[s]}}catch(l){a.e(l)}finally{a.f()}(Nk(r.properties)&&r.properties||[n]).forEach((function(e){e!==n&&t.has(e)||t.set(e,o)}))}}))}}},{key:"_animateOptions",value:function(e,t){var n=t.options,r=function(e,t){if(!t)return;var n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];var i=this._createAnimations(r,n);return n.$shared&&function(e,t){for(var n=[],r=Object.keys(t),i=0;i<r.length;i++){var o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(e.options.$animations,n).then((function(){e.options=n}),(function(){})),i}},{key:"_createAnimations",value:function(e,t){var n,r=this._properties,i=[],o=e.$animations||(e.$animations={}),a=Object.keys(t),s=Date.now();for(n=a.length-1;n>=0;--n){var l=a[n];if("$"!==l.charAt(0))if("options"!==l){var u=t[l],c=o[l],f=r.get(l);if(c){if(f&&c.active()){c.update(f,u,s);continue}c.cancel()}f&&f.duration?(o[l]=c=new eT(f,e,l,u),i.push(c)):e[l]=u}else i.push.apply(i,g(this._animateOptions(e,t)))}return i}},{key:"update",value:function(e,t){if(0!==this._properties.size){var n=this._createAnimations(e,t);return n.length?($E.add(this._chart,n),!0):void 0}Object.assign(e,t)}}]),e}();function rT(e,t){var n=e&&e.options||{},r=n.reverse,i=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:r?o:i,end:r?i:o}}function iT(e,t){var n,r,i=[],o=e._getSortedDatasetMetas(t);for(n=0,r=o.length;n<r;++n)i.push(o[n].index);return i}function oT(e,t,n){var r,i,o,a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=e.keys,u="single"===s.mode;if(null!==t){for(r=0,i=l.length;r<i;++r){if((o=+l[r])===n){if(s.all)continue;break}a=e.values[o],Rk(a)&&(u||0===t||lS(t)===lS(a))&&(t+=a)}return t}}function aT(e,t){var n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function sT(e,t,n){var r=e[t]||(e[t]={});return r[n]||(r[n]={})}function lT(e,t,n,r){var i,o=Mk(t.getMatchingVisibleMetas(r).reverse());try{for(o.s();!(i=o.n()).done;){var a=i.value,s=e[a.index];if(n&&s>0||!n&&s<0)return a.index}}catch(l){o.e(l)}finally{o.f()}return null}function uT(e,t){for(var n,r=e.chart,i=e._cachedMeta,o=r._stacks||(r._stacks={}),a=i.iScale,s=i.vScale,l=i.index,u=a.axis,c=s.axis,f=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(a,s,i),d=t.length,h=0;h<d;++h){var p=t[h],v=p[u],m=p[c];(n=(p._stacks||(p._stacks={}))[c]=sT(o,f,v))[l]=m,n._top=lT(n,s,!0,i.type),n._bottom=lT(n,s,!1,i.type)}}function cT(e,t){var n=e.scales;return Object.keys(n).filter((function(e){return n[e].axis===t})).shift()}function fT(e,t){var n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){var i,o=Mk(t=t||e._parsed);try{for(o.s();!(i=o.n()).done;){var a=i.value._stacks;if(!a||void 0===a[r]||void 0===a[r][n])return;delete a[r][n]}}catch(s){o.e(s)}finally{o.f()}}}var dT=function(e){return"reset"===e||"none"===e},hT=function(e,t){return t?e:Object.assign({},e)},pT=function(){function e(t,n){Ht(this,e),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.initialize()}return Vt(e,[{key:"initialize",value:function(){var e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=aT(e.vScale,e),this.addElements()}},{key:"updateIndex",value:function(e){this.index!==e&&fT(this._cachedMeta),this.index=e}},{key:"linkScales",value:function(){var e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=function(e,t,n,r){return"x"===e?t:"r"===e?r:n},i=t.xAxisID=Ak(n.xAxisID,cT(e,"x")),o=t.yAxisID=Ak(n.yAxisID,cT(e,"y")),a=t.rAxisID=Ak(n.rAxisID,cT(e,"r")),s=t.indexAxis,l=t.iAxisID=r(s,i,o,a),u=t.vAxisID=r(s,o,i,a);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(o),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(u)}},{key:"getDataset",value:function(){return this.chart.data.datasets[this.index]}},{key:"getMeta",value:function(){return this.chart.getDatasetMeta(this.index)}},{key:"getScaleForId",value:function(e){return this.chart.scales[e]}},{key:"_getOtherScale",value:function(e){var t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}},{key:"reset",value:function(){this._update("reset")}},{key:"_destroy",value:function(){var e=this._cachedMeta;this._data&&TS(this._data,this),e._stacked&&fT(e)}},{key:"_dataCheck",value:function(){var e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(Dk(t))this._data=function(e){var t,n,r,i=Object.keys(e),o=new Array(i.length);for(t=0,n=i.length;t<n;++t)r=i[t],o[t]={x:r,y:e[r]};return o}(t);else if(n!==t){if(n){TS(n,this);var r=this._cachedMeta;fT(r),r._parsed=[]}t&&Object.isExtensible(t)&&function(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ES.forEach((function(t){var n="_onData"+Kk(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];var a=r.apply(this,i);return e._chartjs.listeners.forEach((function(e){"function"===typeof e[n]&&e[n].apply(e,i)})),a}})})))}(t,this),this._syncList=[],this._data=t}}},{key:"addElements",value:function(){var e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}},{key:"buildOrUpdateElements",value:function(e){var t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();var i=t._stacked;t._stacked=aT(t.vScale,t),t.stack!==n.stack&&(r=!0,fT(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&uT(this,t._parsed)}},{key:"configure",value:function(){var e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}},{key:"parse",value:function(e,t){var n,r,i,o=this._cachedMeta,a=this._data,s=o.iScale,l=o._stacked,u=s.axis,c=0===e&&t===a.length||o._sorted,f=e>0&&o._parsed[e-1];if(!1===this._parsing)o._parsed=a,o._sorted=!0,i=a;else{i=Nk(a[e])?this.parseArrayData(o,a,e,t):Dk(a[e])?this.parseObjectData(o,a,e,t):this.parsePrimitiveData(o,a,e,t);for(n=0;n<t;++n)o._parsed[n+e]=r=i[n],c&&((null===r[u]||f&&r[u]<f[u])&&(c=!1),f=r);o._sorted=c}l&&uT(this,i)}},{key:"parsePrimitiveData",value:function(e,t,n,r){var i,o,a,s=e.iScale,l=e.vScale,u=s.axis,c=l.axis,f=s.getLabels(),d=s===l,h=new Array(r);for(i=0,o=r;i<o;++i){var p;a=i+n,h[i]=(He(p={},u,d||s.parse(f[a],a)),He(p,c,l.parse(t[a],a)),p)}return h}},{key:"parseArrayData",value:function(e,t,n,r){var i,o,a,s,l=e.xScale,u=e.yScale,c=new Array(r);for(i=0,o=r;i<o;++i)s=t[a=i+n],c[i]={x:l.parse(s[0],a),y:u.parse(s[1],a)};return c}},{key:"parseObjectData",value:function(e,t,n,r){var i,o,a,s,l=e.xScale,u=e.yScale,c=this._parsing,f=c.xAxisKey,d=void 0===f?"x":f,h=c.yAxisKey,p=void 0===h?"y":h,v=new Array(r);for(i=0,o=r;i<o;++i)s=t[a=i+n],v[i]={x:l.parse(Gk(s,d),a),y:u.parse(Gk(s,p),a)};return v}},{key:"getParsed",value:function(e){return this._cachedMeta._parsed[e]}},{key:"getDataElement",value:function(e){return this._cachedMeta.data[e]}},{key:"applyStack",value:function(e,t,n){var r=this.chart,i=this._cachedMeta,o=t[e.axis];return oT({keys:iT(r,!0),values:t._stacks[e.axis]},o,i.index,{mode:n})}},{key:"updateRangeFromParsed",value:function(e,t,n,r){var i=n[t.axis],o=null===i?NaN:i,a=r&&n._stacks[t.axis];r&&a&&(r.values=a,o=oT(r,i,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}},{key:"getMinMax",value:function(e,t){var n,r,i=this._cachedMeta,o=i._parsed,a=i._sorted&&e===i.iScale,s=o.length,l=this._getOtherScale(e),u=function(e,t,n){return e&&!t.hidden&&t._stacked&&{keys:iT(n,!0),values:null}}(t,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},f=function(e){var t=e.getUserBounds(),n=t.min,r=t.max,i=t.minDefined,o=t.maxDefined;return{min:i?n:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}(l),d=f.min,h=f.max;function p(){var t=(r=o[n])[l.axis];return!Rk(r[e.axis])||d>t||h<t}for(n=0;n<s&&(p()||(this.updateRangeFromParsed(c,e,r,u),!a));++n);if(a)for(n=s-1;n>=0;--n)if(!p()){this.updateRangeFromParsed(c,e,r,u);break}return c}},{key:"getAllParsedValues",value:function(e){var t,n,r,i=this._cachedMeta._parsed,o=[];for(t=0,n=i.length;t<n;++t)r=i[t][e.axis],Rk(r)&&o.push(r);return o}},{key:"getMaxOverflow",value:function(){return!1}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}},{key:"_update",value:function(e){var t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){var t,n,r,i;return Dk(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:!1===e}}(Ak(this.options.clip,function(e,t,n){if(!1===n)return!1;var r=rT(e,n),i=rT(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}},{key:"update",value:function(e){}},{key:"draw",value:function(){var e,t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,a=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;for(r.dataset&&r.dataset.draw(t,o,s,l),e=s;e<s+l;++e){var c=i[e];c.hidden||(c.active&&u?a.push(c):c.draw(t,o))}for(e=0;e<a.length;++e)a[e].draw(t,o)}},{key:"getStyle",value:function(e,t){var n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}},{key:"getContext",value:function(e,t,n){var r,i=this.getDataset();if(e>=0&&e<this._cachedMeta.data.length){var o=this._cachedMeta.data[e];r=o.$context||(o.$context=function(e,t,n){return JC(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,o)),r.parsed=this.getParsed(e),r.raw=i.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return JC(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}},{key:"resolveDatasetElementOptions",value:function(e){return this._resolveElementOptions(this.datasetElementType.id,e)}},{key:"resolveDataElementOptions",value:function(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}},{key:"_resolveElementOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2?arguments[2]:void 0,i="active"===n,o=this._cachedDataOpts,a=e+"-"+n,s=o[a],l=this.enableOptionSharing&&Qk(r);if(s)return hT(s,l);var u=this.chart.config,c=u.datasetElementScopeKeys(this._type,e),f=i?["".concat(e,"Hover"),"hover",e,""]:[e,""],d=u.getOptionScopes(this.getDataset(),c),h=Object.keys(TC.elements[e]),p=function(){return t.getContext(r,i)},v=u.resolveNamedOptions(d,h,p,f);return v.$shared&&(v.$shared=l,o[a]=Object.freeze(hT(v,l))),v}},{key:"_resolveAnimations",value:function(e,t,n){var r,i=this.chart,o=this._cachedDataOpts,a="animation-".concat(t),s=o[a];if(s)return s;if(!1!==i.options.animation){var l=this.chart.config,u=l.datasetAnimationScopeKeys(this._type,t),c=l.getOptionScopes(this.getDataset(),u);r=l.createResolver(c,this.getContext(e,n,t))}var f=new nT(i,r&&r.animations);return r&&r._cacheable&&(o[a]=Object.freeze(f)),f}},{key:"getSharedOptions",value:function(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}},{key:"includeOptions",value:function(e,t){return!t||dT(e)||this.chart._animationsDisabled}},{key:"_getSharedOptions",value:function(e,t){var n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),o=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:o}}},{key:"updateElement",value:function(e,t,n,r){dT(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}},{key:"updateSharedOptions",value:function(e,t,n){e&&!dT(t)&&this._resolveAnimations(void 0,t).update(e,n)}},{key:"_setStyle",value:function(e,t,n,r){e.active=r;var i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}},{key:"removeHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!1)}},{key:"setHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!0)}},{key:"_removeDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}},{key:"_setDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}},{key:"_resyncElements",value:function(e){var t,n=this._data,r=this._cachedMeta.data,i=Mk(this._syncList);try{for(i.s();!(t=i.n()).done;){var o=v(t.value,3),a=o[0],s=o[1],l=o[2];this[a](s,l)}}catch(d){i.e(d)}finally{i.f()}this._syncList=[];var u=r.length,c=n.length,f=Math.min(c,u);f&&this.parse(0,f),c>u?this._insertElements(u,c-u,e):c<u&&this._removeElements(c,u-c)}},{key:"_insertElements",value:function(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this._cachedMeta,o=i.data,a=e+t,s=function(e){for(e.length+=t,n=e.length-1;n>=a;n--)e[n]=e[n-t]};for(s(o),n=e;n<a;++n)o[n]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(e,t),r&&this.updateElements(o,e,t,"reset")}},{key:"updateElements",value:function(e,t,n,r){}},{key:"_removeElements",value:function(e,t){var n=this._cachedMeta;if(this._parsing){var r=n._parsed.splice(e,t);n._stacked&&fT(n,r)}n.data.splice(e,t)}},{key:"_sync",value:function(e){if(this._parsing)this._syncList.push(e);else{var t=v(e,3),n=t[0],r=t[1],i=t[2];this[n](r,i)}this.chart._dataChanges.push([this.index].concat(g(e)))}},{key:"_onDataPush",value:function(){var e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}},{key:"_onDataPop",value:function(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}},{key:"_onDataShift",value:function(){this._sync(["_removeElements",0,1])}},{key:"_onDataSplice",value:function(e,t){t&&this._sync(["_removeElements",e,t]);var n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}},{key:"_onDataUnshift",value:function(){this._sync(["_insertElements",0,arguments.length])}}]),e}();function vT(e){var t,n,r,i,o=e.iScale,a=function(e,t){if(!e._cache.$bar){for(var n=e.getMatchingVisibleMetas(t),r=[],i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=MS(r.sort((function(e,t){return e-t})))}return e._cache.$bar}(o,e.type),s=o._length,l=function(){32767!==r&&-32768!==r&&(Qk(i)&&(s=Math.min(s,Math.abs(r-i)||s)),i=r)};for(t=0,n=a.length;t<n;++t)r=o.getPixelForValue(a[t]),l();for(i=void 0,t=0,n=o.ticks.length;t<n;++t)r=o.getPixelForTick(t),l();return s}function mT(e,t,n,r){return Nk(e)?function(e,t,n,r){var i=n.parse(e[0],r),o=n.parse(e[1],r),a=Math.min(i,o),s=Math.max(i,o),l=a,u=s;Math.abs(a)>Math.abs(s)&&(l=s,u=a),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:o,min:a,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function gT(e,t,n,r){var i,o,a,s,l=e.iScale,u=e.vScale,c=l.getLabels(),f=l===u,d=[];for(i=n,o=n+r;i<o;++i)s=t[i],(a={})[l.axis]=f||l.parse(c[i],i),d.push(mT(s,a,u,i));return d}function yT(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function bT(e,t,n,r){var i=t.borderSkipped,o={};if(i)if(!0!==i){var a=function(e){var 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}}(e),s=a.start,l=a.end,u=a.reverse,c=a.top,f=a.bottom;"middle"===i&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=f:(o[_T(f,s,l,u)]=!0,i=c)),o[_T(i,s,l,u)]=!0,e.borderSkipped=o}else e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};else e.borderSkipped=o}function _T(e,t,n,r){var i,o,a;return r?(a=n,e=xT(e=(i=e)===(o=t)?a:i===a?o:i,n,t)):e=xT(e,t,n),e}function xT(e,t,n){return"start"===e?t:"end"===e?n:e}function wT(e,t,n){var r=t.inflateAmount;e.inflateAmount="auto"===r?1===n?.33:0:r}pT.defaults={},pT.prototype.datasetElementType=null,pT.prototype.dataElementType=null;var kT=function(e){Js(n,e);var t=rl(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"parsePrimitiveData",value:function(e,t,n,r){return gT(e,t,n,r)}},{key:"parseArrayData",value:function(e,t,n,r){return gT(e,t,n,r)}},{key:"parseObjectData",value:function(e,t,n,r){var i,o,a,s,l=e.iScale,u=e.vScale,c=this._parsing,f=c.xAxisKey,d=void 0===f?"x":f,h=c.yAxisKey,p=void 0===h?"y":h,v="x"===l.axis?d:p,m="x"===u.axis?d:p,g=[];for(i=n,o=n+r;i<o;++i)s=t[i],(a={})[l.axis]=l.parse(Gk(s,v),i),g.push(mT(Gk(s,m),a,u,i));return g}},{key:"updateRangeFromParsed",value:function(e,t,r,i){Tk(el(n.prototype),"updateRangeFromParsed",this).call(this,e,t,r,i);var o=r._custom;o&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}},{key:"getMaxOverflow",value:function(){return 0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e),o=i._custom,a=yT(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n.axis]),value:a}}},{key:"initialize",value:function(){this.enableOptionSharing=!0,Tk(el(n.prototype),"initialize",this).call(this),this._cachedMeta.stack=this.getDataset().stack}},{key:"update",value:function(e){var t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,o=this.index,a=this._cachedMeta.vScale,s=a.getBasePixel(),l=a.isHorizontal(),u=this._getRuler(),c=this._getSharedOptions(t,r),f=c.sharedOptions,d=c.includeOptions,h=t;h<t+n;h++){var p=this.getParsed(h),v=i||jk(p[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(h),m=this._calculateBarIndexPixels(h,u),g=(p._stacks||{})[a.axis],y={horizontal:l,base:v.base,enableBorderRadius:!g||yT(p._custom)||o===g._top||o===g._bottom,x:l?v.head:m.center,y:l?m.center:v.head,height:l?m.size:Math.abs(v.size),width:l?Math.abs(v.size):m.size};d&&(y.options=f||this.resolveDataElementOptions(h,e[h].active?"active":r));var b=y.options||e[h].options;bT(y,b,g,o),wT(y,b,u.ratio),this.updateElement(e[h],h,y,r)}}},{key:"_getStacks",value:function(e,t){var n,r=this._cachedMeta.iScale,i=r.getMatchingVisibleMetas(this._type).filter((function(e){return e.controller.options.grouped})),o=r.options.stacked,a=[],s=function(e){var n=e.controller.getParsed(t),r=n&&n[e.vScale.axis];if(jk(r)||isNaN(r))return!0},l=Mk(i);try{for(l.s();!(n=l.n()).done;){var u=n.value;if((void 0===t||!s(u))&&((!1===o||-1===a.indexOf(u.stack)||void 0===o&&void 0===u.stack)&&a.push(u.stack),u.index===e))break}}catch(c){l.e(c)}finally{l.f()}return a.length||a.push(void 0),a}},{key:"_getStackCount",value:function(e){return this._getStacks(void 0,e).length}},{key:"_getStackIndex",value:function(e,t,n){var r=this._getStacks(e,n),i=void 0!==t?r.indexOf(t):-1;return-1===i?r.length-1:i}},{key:"_getRuler",value:function(){var e,t,n=this.options,r=this._cachedMeta,i=r.iScale,o=[];for(e=0,t=r.data.length;e<t;++e)o.push(i.getPixelForValue(this.getParsed(e)[i.axis],e));var a=n.barThickness;return{min:a||vT(r),pixels:o,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:n.grouped,ratio:a?1:n.categoryPercentage*n.barPercentage}}},{key:"_calculateBarValuePixels",value:function(e){var t,n,r=this._cachedMeta,i=r.vScale,o=r._stacked,a=this.options,s=a.base,l=a.minBarLength,u=s||0,c=this.getParsed(e),f=c._custom,d=yT(f),h=c[i.axis],p=0,v=o?this.applyStack(i,c,o):h;v!==h&&(p=v-h,v=h),d&&(h=f.barStart,v=f.barEnd-f.barStart,0!==h&&lS(h)!==lS(f.barEnd)&&(p=0),p+=h);var m=jk(s)||d?p:s,g=i.getPixelForValue(m);if(n=(t=this.chart.getDataVisibility(e)?i.getPixelForValue(p+v):g)-g,Math.abs(n)<l){n=function(e,t,n){return 0!==e?lS(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(n,i,u)*l,h===u&&(g-=n/2);var y=i.getPixelForDecimal(0),b=i.getPixelForDecimal(1),_=Math.min(y,b),x=Math.max(y,b);t=(g=Math.max(Math.min(g,x),_))+n}if(g===i.getPixelForValue(u)){var w=lS(n)*i.getLineWidthForValue(u)/2;g+=w,n-=w}return{size:n,base:g,head:t,center:t+n/2}}},{key:"_calculateBarIndexPixels",value:function(e,t){var n,r,i=t.scale,o=this.options,a=o.skipNull,s=Ak(o.maxBarThickness,1/0);if(t.grouped){var l=a?this._getStackCount(e):t.stackCount,u="flex"===o.barThickness?function(e,t,n,r){var i=t.pixels,o=i[e],a=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,l=n.categoryPercentage;null===a&&(a=o-(null===s?t.end-t.start:s-o)),null===s&&(s=o+o-a);var u=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:u}}(e,t,o,l):function(e,t,n,r){var i,o,a=n.barThickness;return jk(a)?(i=t.min*n.categoryPercentage,o=n.barPercentage):(i=a*r,o=1),{chunk:i/r,ratio:o,start:t.pixels[e]-i/2}}(e,t,o,l),c=this._getStackIndex(this.index,this._cachedMeta.stack,a?e:void 0);n=u.start+u.chunk*c+u.chunk/2,r=Math.min(s,u.chunk*u.ratio)}else n=i.getPixelForValue(this.getParsed(e)[i.axis],e),r=Math.min(s,t.min*t.ratio);return{base:n-r/2,head:n+r/2,center:n,size:r}}},{key:"draw",value:function(){for(var e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length,i=0;i<r;++i)null!==this.getParsed(i)[t.axis]&&n[i].draw(this._ctx)}}]),n}(pT);kT.id="bar",kT.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},kT.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};var ST=function(e){Js(n,e);var t=rl(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"initialize",value:function(){this.enableOptionSharing=!0,Tk(el(n.prototype),"initialize",this).call(this)}},{key:"parsePrimitiveData",value:function(e,t,r,i){for(var o=Tk(el(n.prototype),"parsePrimitiveData",this).call(this,e,t,r,i),a=0;a<o.length;a++)o[a]._custom=this.resolveDataElementOptions(a+r).radius;return o}},{key:"parseArrayData",value:function(e,t,r,i){for(var o=Tk(el(n.prototype),"parseArrayData",this).call(this,e,t,r,i),a=0;a<o.length;a++){var s=t[r+a];o[a]._custom=Ak(s[2],this.resolveDataElementOptions(a+r).radius)}return o}},{key:"parseObjectData",value:function(e,t,r,i){for(var o=Tk(el(n.prototype),"parseObjectData",this).call(this,e,t,r,i),a=0;a<o.length;a++){var s=t[r+a];o[a]._custom=Ak(s&&s.r&&+s.r,this.resolveDataElementOptions(a+r).radius)}return o}},{key:"getMaxOverflow",value:function(){for(var e=this._cachedMeta.data,t=0,n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.xScale,r=t.yScale,i=this.getParsed(e),o=n.getLabelForValue(i.x),a=r.getLabelForValue(i.y),s=i._custom;return{label:t.label,value:"("+o+", "+a+(s?", "+s:"")+")"}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,o=this._cachedMeta,a=o.iScale,s=o.vScale,l=this._getSharedOptions(t,r),u=l.sharedOptions,c=l.includeOptions,f=a.axis,d=s.axis,h=t;h<t+n;h++){var p=e[h],v=!i&&this.getParsed(h),m={},g=m[f]=i?a.getPixelForDecimal(.5):a.getPixelForValue(v[f]),y=m[d]=i?s.getBasePixel():s.getPixelForValue(v[d]);m.skip=isNaN(g)||isNaN(y),c&&(m.options=u||this.resolveDataElementOptions(h,p.active?"active":r),i&&(m.options.radius=0)),this.updateElement(p,h,m,r)}}},{key:"resolveDataElementOptions",value:function(e,t){var r=this.getParsed(e),i=Tk(el(n.prototype),"resolveDataElementOptions",this).call(this,e,t);i.$shared&&(i=Object.assign({},i,{$shared:!1}));var o=i.radius;return"active"!==t&&(i.radius=0),i.radius+=Ak(r&&r._custom,o),i}}]),n}(pT);ST.id="bubble",ST.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},ST.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:function(){return""}}}}};var CT=function(e){Js(n,e);var t=rl(n);function n(e,r){var i;return Ht(this,n),(i=t.call(this,e,r)).enableOptionSharing=!0,i.innerRadius=void 0,i.outerRadius=void 0,i.offsetX=void 0,i.offsetY=void 0,i}return Vt(n,[{key:"linkScales",value:function(){}},{key:"parse",value:function(e,t){var n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{var i,o,a=function(e){return+n[e]};if(Dk(n[e])){var s=this._parsing.key,l=void 0===s?"value":s;a=function(e){return+Gk(n[e],l)}}for(i=e,o=e+t;i<o;++i)r._parsed[i]=a(i)}}},{key:"_getRotation",value:function(){return hS(this.options.rotation-90)}},{key:"_getCircumference",value:function(){return hS(this.options.circumference)}},{key:"_getRotationExtents",value:function(){for(var e=eS,t=-eS,n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){var r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),o=r._getCircumference();e=Math.min(e,i),t=Math.max(t,i+o)}return{rotation:e,circumference:t-e}}},{key:"update",value:function(e){var t=this.chart.chartArea,n=this._cachedMeta,r=n.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,o=Math.max((Math.min(t.width,t.height)-i)/2,0),a=Math.min(function(e,t){return"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100:e/t}(this.options.cutout,o),1),s=this._getRingWeight(this.index),l=this._getRotationExtents(),u=l.circumference,c=function(e,t,n){var r=1,i=1,o=0,a=0;if(t<eS){var s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),f=Math.cos(l),d=Math.sin(l),h=function(e,t,r){return _S(e,s,l,!0)?1:Math.max(t,t*n,r,r*n)},p=function(e,t,r){return _S(e,s,l,!0)?-1:Math.min(t,t*n,r,r*n)},v=h(0,u,f),m=h(iS,c,d),g=p(Jk,u,f),y=p(Jk+iS,c,d);r=(v-g)/2,i=(m-y)/2,o=-(v+g)/2,a=-(m+y)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:a}}(l.rotation,u,a),f=c.ratioX,d=c.ratioY,h=c.offsetX,p=c.offsetY,v=(t.width-i)/f,m=(t.height-i)/d,g=Math.max(Math.min(v,m)/2,0),y=Ik(this.options.radius,g),b=(y-Math.max(y*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=h*y,this.offsetY=p*y,n.total=this.calculateTotal(),this.outerRadius=y-b*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-b*s,0),this.updateElements(r,0,r.length,e)}},{key:"_circumference",value:function(e,t){var n=this.options,r=this._cachedMeta,i=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===r._parsed[e]||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*i/eS)}},{key:"updateElements",value:function(e,t,n,r){var i,o="reset"===r,a=this.chart,s=a.chartArea,l=a.options.animation,u=(s.left+s.right)/2,c=(s.top+s.bottom)/2,f=o&&l.animateScale,d=f?0:this.innerRadius,h=f?0:this.outerRadius,p=this._getSharedOptions(t,r),v=p.sharedOptions,m=p.includeOptions,g=this._getRotation();for(i=0;i<t;++i)g+=this._circumference(i,o);for(i=t;i<t+n;++i){var y=this._circumference(i,o),b=e[i],_={x:u+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+y,circumference:y,outerRadius:h,innerRadius:d};m&&(_.options=v||this.resolveDataElementOptions(i,b.active?"active":r)),g+=y,this.updateElement(b,i,_,r)}}},{key:"calculateTotal",value:function(){var e,t=this._cachedMeta,n=t.data,r=0;for(e=0;e<n.length;e++){var i=t._parsed[e];null===i||isNaN(i)||!this.chart.getDataVisibility(e)||n[e].hidden||(r+=Math.abs(i))}return r}},{key:"calculateCircumference",value:function(e){var t=this._cachedMeta.total;return t>0&&!isNaN(e)?eS*(Math.abs(e)/t):0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=zE(t._parsed[e],n.options.locale);return{label:r[e]||"",value:i}}},{key:"getMaxBorderWidth",value:function(e){var t,n,r,i,o,a=0,s=this.chart;if(!e)for(t=0,n=s.data.datasets.length;t<n;++t)if(s.isDatasetVisible(t)){e=(r=s.getDatasetMeta(t)).data,i=r.controller;break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)"inner"!==(o=i.resolveDataElementOptions(t)).borderAlign&&(a=Math.max(a,o.borderWidth||0,o.hoverBorderWidth||0));return a}},{key:"getMaxOffset",value:function(e){for(var t=0,n=0,r=e.length;n<r;++n){var i=this.resolveDataElementOptions(n);t=Math.max(t,i.offset||0,i.hoverOffset||0)}return t}},{key:"_getRingWeightOffset",value:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}},{key:"_getRingWeight",value:function(e){return Math.max(Ak(this.chart.data.datasets[e].weight,1),0)}},{key:"_getVisibleDatasetWeightTotal",value:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}]),n}(pT);CT.id="doughnut",CT.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"},CT.descriptors={_scriptable:function(e){return"spacing"!==e},_indexable:function(e){return"spacing"!==e}},CT.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(e){var t=e.data;if(t.labels.length&&t.datasets.length){var n=e.legend.options.labels.pointStyle;return t.labels.map((function(t,r){var i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick:function(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:function(){return""},label:function(e){var t=e.label,n=": "+e.formattedValue;return Nk(t)?(t=t.slice())[0]+=n:t+=n,t}}}}};var ET=function(e){Js(n,e);var t=rl(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"initialize",value:function(){this.enableOptionSharing=!0,this.supportsDecimation=!0,Tk(el(n.prototype),"initialize",this).call(this)}},{key:"update",value:function(e){var t=this._cachedMeta,n=t.dataset,r=t.data,i=void 0===r?[]:r,o=t._dataset,a=this.chart._animationsDisabled,s=DS(t,i,a),l=s.start,u=s.count;this._drawStart=l,this._drawCount=u,RS(t)&&(l=0,u=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;var c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:c},e),this.updateElements(i,l,u,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,o=this._cachedMeta,a=o.iScale,s=o.vScale,l=o._stacked,u=o._dataset,c=this._getSharedOptions(t,r),f=c.sharedOptions,d=c.includeOptions,h=a.axis,p=s.axis,v=this.options,m=v.spanGaps,g=v.segment,y=cS(m)?m:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||i||"none"===r,_=t>0&&this.getParsed(t-1),x=t;x<t+n;++x){var w=e[x],k=this.getParsed(x),S=b?w:{},C=jk(k[p]),E=S[h]=a.getPixelForValue(k[h],x),T=S[p]=i||C?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,k,l):k[p],x);S.skip=isNaN(E)||isNaN(T)||C,S.stop=x>0&&Math.abs(k[h]-_[h])>y,g&&(S.parsed=k,S.raw=u.data[x]),d&&(S.options=f||this.resolveDataElementOptions(x,w.active?"active":r)),b||this.updateElement(w,x,S,r),_=k}}},{key:"getMaxOverflow",value:function(){var e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;var i=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,o)/2}},{key:"draw",value:function(){var e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),Tk(el(n.prototype),"draw",this).call(this)}}]),n}(pT);ET.id="line",ET.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},ET.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};var TT=function(e){Js(n,e);var t=rl(n);function n(e,r){var i;return Ht(this,n),(i=t.call(this,e,r)).innerRadius=void 0,i.outerRadius=void 0,i}return Vt(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=zE(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:i}}},{key:"parseObjectData",value:function(e,t,n,r){return pE.bind(this)(e,t,n,r)}},{key:"update",value:function(e){var t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}},{key:"getMinMax",value:function(){var e=this,t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((function(t,r){var i=e.getParsed(r).r;!isNaN(i)&&e.chart.getDataVisibility(r)&&(i<n.min&&(n.min=i),i>n.max&&(n.max=i))})),n}},{key:"_updateRadius",value:function(){var e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),o=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-o*this.index,this.innerRadius=this.outerRadius-o}},{key:"updateElements",value:function(e,t,n,r){var i,o="reset"===r,a=this.chart,s=a.options.animation,l=this._cachedMeta.rScale,u=l.xCenter,c=l.yCenter,f=l.getIndexAngle(0)-.5*Jk,d=f,h=360/this.countVisibleElements();for(i=0;i<t;++i)d+=this._computeAngle(i,r,h);for(i=t;i<t+n;i++){var p=e[i],v=d,m=d+this._computeAngle(i,r,h),g=a.getDataVisibility(i)?l.getDistanceFromCenterForValue(this.getParsed(i).r):0;d=m,o&&(s.animateScale&&(g=0),s.animateRotate&&(v=m=f));var y={x:u,y:c,innerRadius:0,outerRadius:g,startAngle:v,endAngle:m,options:this.resolveDataElementOptions(i,p.active?"active":r)};this.updateElement(p,i,y,r)}}},{key:"countVisibleElements",value:function(){var e=this,t=this._cachedMeta,n=0;return t.data.forEach((function(t,r){!isNaN(e.getParsed(r).r)&&e.chart.getDataVisibility(r)&&n++})),n}},{key:"_computeAngle",value:function(e,t,n){return this.chart.getDataVisibility(e)?hS(this.resolveDataElementOptions(e,t).angle||n):0}}]),n}(pT);TT.id="polarArea",TT.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},TT.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(e){var t=e.data;if(t.labels.length&&t.datasets.length){var n=e.legend.options.labels.pointStyle;return t.labels.map((function(t,r){var i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick:function(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:function(){return""},label:function(e){return e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};var MT=function(e){Js(n,e);var t=rl(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n)}(CT);MT.id="pie",MT.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};var OT=function(e){Js(n,e);var t=rl(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}},{key:"parseObjectData",value:function(e,t,n,r){return pE.bind(this)(e,t,n,r)}},{key:"update",value:function(e){var t=this._cachedMeta,n=t.dataset,r=t.data||[],i=t.iScale.getLabels();if(n.points=r,"resize"!==e){var o=this.resolveDatasetElementOptions(e);this.options.showLine||(o.borderWidth=0);var a={_loop:!0,_fullLoop:i.length===r.length,options:o};this.updateElement(n,void 0,a,e)}this.updateElements(r,0,r.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i=this._cachedMeta.rScale,o="reset"===r,a=t;a<t+n;a++){var s=e[a],l=this.resolveDataElementOptions(a,s.active?"active":r),u=i.getPointPositionForValue(a,this.getParsed(a).r),c=o?i.xCenter:u.x,f=o?i.yCenter:u.y,d={x:c,y:f,angle:u.angle,skip:isNaN(c)||isNaN(f),options:l};this.updateElement(s,a,d,r)}}}]),n}(pT);OT.id="radar",OT.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},OT.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};var PT=function(){function e(){Ht(this,e),this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}return Vt(e,[{key:"tooltipPosition",value:function(e){var t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}},{key:"hasValue",value:function(){return cS(this.x)&&cS(this.y)}},{key:"getProps",value:function(e,t){var n=this,r=this.$animations;if(!t||!r)return this;var i={};return e.forEach((function(e){i[e]=r[e]&&r[e].active()?r[e]._to:n[e]})),i}}]),e}();PT.defaults={},PT.defaultRoutes=void 0;var jT={values:function(e){return Nk(e)?e:""+e},numeric:function(e,t,n){if(0===e)return"0";var r,i=this.chart.options.locale,o=e;if(n.length>1){var a=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(a<1e-4||a>1e15)&&(r="scientific"),o=function(e,t){var n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}var s=sS(Math.abs(o)),l=Math.max(Math.min(-1*Math.floor(s),20),0),u={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(u,this.options.ticks.format),zE(e,i,u)},logarithmic:function(e,t,n){if(0===e)return"0";var r=e/Math.pow(10,Math.floor(sS(e)));return 1===r||2===r||5===r?jT.numeric.call(this,e,t,n):""}};var NT={formatters:jT};function DT(e,t){var n=e.options.ticks,r=n.maxTicksLimit||function(e){var 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))}(e),i=n.major.enabled?function(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++)e[t].major&&r.push(t);return r}(t):[],o=i.length,a=i[0],s=i[o-1],l=[];if(o>r)return function(e,t,n,r){var i,o=0,a=n[0];for(r=Math.ceil(r),i=0;i<e.length;i++)i===a&&(t.push(e[i]),a=n[++o*r])}(t,l,i,o/r),l;var u=function(e,t,n){var r=function(e){var t,n,r=e.length;if(r<2)return!1;for(n=e[0],t=1;t<r;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),i=t.length/n;if(!r)return Math.max(i,1);for(var o=function(e){var t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t===0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((function(e,t){return e-t})).pop(),n}(r),a=0,s=o.length-1;a<s;a++){var l=o[a];if(l>i)return l}return Math.max(i,1)}(i,t,r);if(o>0){var c,f,d=o>1?Math.round((s-a)/(o-1)):null;for(RT(t,l,u,jk(d)?0:a-d,a),c=0,f=o-1;c<f;c++)RT(t,l,u,i[c],i[c+1]);return RT(t,l,u,s,jk(d)?t.length:s+d),l}return RT(t,l,u),l}function RT(e,t,n,r,i){var o,a,s,l=Ak(r,0),u=Math.min(Ak(i,e.length),e.length),c=0;for(n=Math.ceil(n),i&&(n=(o=i-r)/Math.floor(o/n)),s=l;s<0;)c++,s=Math.round(l+c*n);for(a=Math.max(l,0);a<u;a++)a===s&&(t.push(e[a]),c++,s=Math.round(l+c*n))}TC.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:function(e,t){return t.lineWidth},tickColor:function(e,t){return t.color},offset:!1,borderDash:[],borderDashOffset:0,borderWidth: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:NT.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),TC.route("scale.ticks","color","","color"),TC.route("scale.grid","color","","borderColor"),TC.route("scale.grid","borderColor","","borderColor"),TC.route("scale.title","color","","color"),TC.describe("scale",{_fallback:!1,_scriptable:function(e){return!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e},_indexable:function(e){return"borderDash"!==e&&"tickBorderDash"!==e}}),TC.describe("scales",{_fallback:"scale"}),TC.describe("scale.ticks",{_scriptable:function(e){return"backdropPadding"!==e&&"callback"!==e},_indexable:function(e){return"backdropPadding"!==e}});var LT=function(e,t,n){return"top"===t||"left"===t?e[t]+n:e[t]-n};function AT(e,t){for(var n=[],r=e.length/t,i=e.length,o=0;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function IT(e,t,n){var r,i=e.ticks.length,o=Math.min(t,i-1),a=e._startPixel,s=e._endPixel,l=1e-6,u=e.getPixelForTick(o);if(!(n&&(r=1===i?Math.max(u-a,s-u):0===t?(e.getPixelForTick(1)-u)/2:(u-e.getPixelForTick(o-1))/2,(u+=o<t?r:-r)<a-l||u>s+l)))return u}function FT(e){return e.drawTicks?e.tickLength:0}function zT(e,t){if(!e.display)return 0;var n=$C(e.font,t),r=QC(e.padding);return(Nk(e.text)?e.text.length:1)*n.lineHeight+r.height}function BT(e,t,n){var r=jS(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=function(e){return"left"===e?"right":"right"===e?"left":e}(r)),r}var UT=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this)).id=e.id,r.type=e.type,r.options=void 0,r.ctx=e.ctx,r.chart=e.chart,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r._margins={left:0,right:0,top:0,bottom:0},r.maxWidth=void 0,r.maxHeight=void 0,r.paddingTop=void 0,r.paddingBottom=void 0,r.paddingLeft=void 0,r.paddingRight=void 0,r.axis=void 0,r.labelRotation=void 0,r.min=void 0,r.max=void 0,r._range=void 0,r.ticks=[],r._gridLineItems=null,r._labelItems=null,r._labelSizes=null,r._length=0,r._maxLength=0,r._longestTextCache={},r._startPixel=void 0,r._endPixel=void 0,r._reversePixels=!1,r._userMax=void 0,r._userMin=void 0,r._suggestedMax=void 0,r._suggestedMin=void 0,r._ticksLength=0,r._borderValue=0,r._cache={},r._dataLimitsCached=!1,r.$context=void 0,r}return Vt(n,[{key:"init",value:function(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}},{key:"parse",value:function(e,t){return e}},{key:"getUserBounds",value:function(){var e=this._userMin,t=this._userMax,n=this._suggestedMin,r=this._suggestedMax;return e=Lk(e,Number.POSITIVE_INFINITY),t=Lk(t,Number.NEGATIVE_INFINITY),n=Lk(n,Number.POSITIVE_INFINITY),r=Lk(r,Number.NEGATIVE_INFINITY),{min:Lk(e,n),max:Lk(t,r),minDefined:Rk(e),maxDefined:Rk(t)}}},{key:"getMinMax",value:function(e){var t,n=this.getUserBounds(),r=n.min,i=n.max,o=n.minDefined,a=n.maxDefined;if(o&&a)return{min:r,max:i};for(var s=this.getMatchingVisibleMetas(),l=0,u=s.length;l<u;++l)t=s[l].controller.getMinMax(this,e),o||(r=Math.min(r,t.min)),a||(i=Math.max(i,t.max));return{min:Lk(r=a&&r>i?i:r,Lk(i=o&&r>i?r:i,r)),max:Lk(i,Lk(r,i))}}},{key:"getPadding",value:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}},{key:"getTicks",value:function(){return this.ticks}},{key:"getLabels",value:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}},{key:"beforeLayout",value:function(){this._cache={},this._dataLimitsCached=!1}},{key:"beforeUpdate",value:function(){Fk(this.options.beforeUpdate,[this])}},{key:"update",value:function(e,t,n){var r=this.options,i=r.beginAtZero,o=r.grace,a=r.ticks,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){var r=e.min,i=e.max,o=Ik(t,(i-r)/2),a=function(e,t){return n&&0===e?0:e+t};return{min:a(r,-Math.abs(o)),max:a(i,o)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();var l=s<this.ticks.length;this._convertTicksToLabels(l?AT(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=DT(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}},{key:"configure",value:function(){var e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}},{key:"afterUpdate",value:function(){Fk(this.options.afterUpdate,[this])}},{key:"beforeSetDimensions",value:function(){Fk(this.options.beforeSetDimensions,[this])}},{key:"setDimensions",value:function(){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}},{key:"afterSetDimensions",value:function(){Fk(this.options.afterSetDimensions,[this])}},{key:"_callHooks",value:function(e){this.chart.notifyPlugins(e,this.getContext()),Fk(this.options[e],[this])}},{key:"beforeDataLimits",value:function(){this._callHooks("beforeDataLimits")}},{key:"determineDataLimits",value:function(){}},{key:"afterDataLimits",value:function(){this._callHooks("afterDataLimits")}},{key:"beforeBuildTicks",value:function(){this._callHooks("beforeBuildTicks")}},{key:"buildTicks",value:function(){return[]}},{key:"afterBuildTicks",value:function(){this._callHooks("afterBuildTicks")}},{key:"beforeTickToLabelConversion",value:function(){Fk(this.options.beforeTickToLabelConversion,[this])}},{key:"generateTickLabels",value:function(e){var t,n,r,i=this.options.ticks;for(t=0,n=e.length;t<n;t++)(r=e[t]).label=Fk(i.callback,[r.value,t,e],this)}},{key:"afterTickToLabelConversion",value:function(){Fk(this.options.afterTickToLabelConversion,[this])}},{key:"beforeCalculateLabelRotation",value:function(){Fk(this.options.beforeCalculateLabelRotation,[this])}},{key:"calculateLabelRotation",value:function(){var e,t,n,r=this.options,i=r.ticks,o=this.ticks.length,a=i.minRotation||0,s=i.maxRotation,l=a;if(!this._isVisible()||!i.display||a>=s||o<=1||!this.isHorizontal())this.labelRotation=a;else{var u=this._getLabelSizes(),c=u.widest.width,f=u.highest.height,d=xS(this.chart.width-c,0,this.maxWidth);c+6>(e=r.offset?this.maxWidth/o:d/(o-1))&&(e=d/(o-(r.offset?.5:1)),t=this.maxHeight-FT(r.grid)-i.padding-zT(r.title,this.chart.options.font),n=Math.sqrt(c*c+f*f),l=pS(Math.min(Math.asin(xS((u.highest.height+6)/e,-1,1)),Math.asin(xS(t/n,-1,1))-Math.asin(xS(f/n,-1,1)))),l=Math.max(a,Math.min(s,l))),this.labelRotation=l}}},{key:"afterCalculateLabelRotation",value:function(){Fk(this.options.afterCalculateLabelRotation,[this])}},{key:"afterAutoSkip",value:function(){}},{key:"beforeFit",value:function(){Fk(this.options.beforeFit,[this])}},{key:"fit",value:function(){var e={width:0,height:0},t=this.chart,n=this.options,r=n.ticks,i=n.title,o=n.grid,a=this._isVisible(),s=this.isHorizontal();if(a){var l=zT(i,t.options.font);if(s?(e.width=this.maxWidth,e.height=FT(o)+l):(e.height=this.maxHeight,e.width=FT(o)+l),r.display&&this.ticks.length){var u=this._getLabelSizes(),c=u.first,f=u.last,d=u.widest,h=u.highest,p=2*r.padding,v=hS(this.labelRotation),m=Math.cos(v),g=Math.sin(v);if(s){var y=r.mirror?0:g*d.width+m*h.height;e.height=Math.min(this.maxHeight,e.height+y+p)}else{var b=r.mirror?0:m*d.width+g*h.height;e.width=Math.min(this.maxWidth,e.width+b+p)}this._calculatePadding(c,f,g,m)}}this._handleMargins(),s?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}},{key:"_calculatePadding",value:function(e,t,n,r){var i=this.options,o=i.ticks,a=o.align,s=o.padding,l=i.position,u=0!==this.labelRotation,c="top"!==l&&"x"===this.axis;if(this.isHorizontal()){var f=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1),h=0,p=0;u?c?(h=r*e.width,p=n*t.height):(h=n*e.height,p=r*t.width):"start"===a?p=t.width:"end"===a?h=e.width:"inner"!==a&&(h=e.width/2,p=t.width/2),this.paddingLeft=Math.max((h-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((p-d+s)*this.width/(this.width-d),0)}else{var v=t.height/2,m=e.height/2;"start"===a?(v=0,m=e.height):"end"===a&&(v=t.height,m=0),this.paddingTop=v+s,this.paddingBottom=m+s}}},{key:"_handleMargins",value:function(){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))}},{key:"afterFit",value:function(){Fk(this.options.afterFit,[this])}},{key:"isHorizontal",value:function(){var e=this.options,t=e.axis,n=e.position;return"top"===n||"bottom"===n||"x"===t}},{key:"isFullSize",value:function(){return this.options.fullSize}},{key:"_convertTicksToLabels",value:function(e){var t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)jk(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}},{key:"_getLabelSizes",value:function(){var e=this._labelSizes;if(!e){var t=this.options.ticks.sampleSize,n=this.ticks;t<n.length&&(n=AT(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length)}return e}},{key:"_computeLabelSizes",value:function(e,t){var n,r,i,o,a,s,l,u,c,f,d,h=this.ctx,p=this._longestTextCache,v=[],m=[],g=0,y=0;for(n=0;n<t;++n){if(o=e[n].label,a=this._resolveTickFontOptions(n),h.font=s=a.string,l=p[s]=p[s]||{data:{},gc:[]},u=a.lineHeight,c=f=0,jk(o)||Nk(o)){if(Nk(o))for(r=0,i=o.length;r<i;++r)jk(d=o[r])||Nk(d)||(c=MC(h,l.data,l.gc,c,d),f+=u)}else c=MC(h,l.data,l.gc,c,o),f=u;v.push(c),m.push(f),g=Math.max(c,g),y=Math.max(f,y)}!function(e,t){zk(e,(function(e){var n,r=e.gc,i=r.length/2;if(i>t){for(n=0;n<i;++n)delete e.data[r[n]];r.splice(0,i)}}))}(p,t);var b=v.indexOf(g),_=m.indexOf(y),x=function(e){return{width:v[e]||0,height:m[e]||0}};return{first:x(0),last:x(t-1),widest:x(b),highest:x(_),widths:v,heights:m}}},{key:"getLabelForValue",value:function(e){return e}},{key:"getPixelForValue",value:function(e,t){return NaN}},{key:"getValueForPixel",value:function(e){}},{key:"getPixelForTick",value:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getPixelForDecimal",value:function(e){this._reversePixels&&(e=1-e);var t=this._startPixel+e*this._length;return function(e){return xS(e,-32768,32767)}(this._alignToPixels?PC(this.chart,t,0):t)}},{key:"getDecimalForPixel",value:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}},{key:"getBasePixel",value:function(){return this.getPixelForValue(this.getBaseValue())}},{key:"getBaseValue",value:function(){var e=this.min,t=this.max;return e<0&&t<0?t:e>0&&t>0?e:0}},{key:"getContext",value:function(e){var t=this.ticks||[];if(e>=0&&e<t.length){var n=t[e];return n.$context||(n.$context=function(e,t,n){return JC(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=JC(this.chart.getContext(),{scale:this,type:"scale"}))}},{key:"_tickSize",value:function(){var e=this.options.ticks,t=hS(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),i=this._getLabelSizes(),o=e.autoSkipPadding||0,a=i?i.widest.width+o:0,s=i?i.highest.height+o:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r<a*n?s/n:a/r}},{key:"_isVisible",value:function(){var e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}},{key:"_computeGridLineItems",value:function(e){var t,n,r,i,o,a,s,l,u,c,f,d,h=this.axis,p=this.chart,v=this.options,m=v.grid,g=v.position,y=m.offset,b=this.isHorizontal(),_=this.ticks.length+(y?1:0),x=FT(m),w=[],k=m.setContext(this.getContext()),S=k.drawBorder?k.borderWidth:0,C=S/2,E=function(e){return PC(p,e,S)};if("top"===g)t=E(this.bottom),a=this.bottom-x,l=t-C,c=E(e.top)+C,d=e.bottom;else if("bottom"===g)t=E(this.top),c=e.top,d=E(e.bottom)-C,a=t+C,l=this.top+x;else if("left"===g)t=E(this.right),o=this.right-x,s=t-C,u=E(e.left)+C,f=e.right;else if("right"===g)t=E(this.left),u=e.left,f=E(e.right)-C,o=t+C,s=this.left+x;else if("x"===h){if("center"===g)t=E((e.top+e.bottom)/2+.5);else if(Dk(g)){var T=Object.keys(g)[0],M=g[T];t=E(this.chart.scales[T].getPixelForValue(M))}c=e.top,d=e.bottom,l=(a=t+C)+x}else if("y"===h){if("center"===g)t=E((e.left+e.right)/2);else if(Dk(g)){var O=Object.keys(g)[0],P=g[O];t=E(this.chart.scales[O].getPixelForValue(P))}s=(o=t-C)-x,u=e.left,f=e.right}var j=Ak(v.ticks.maxTicksLimit,_),N=Math.max(1,Math.ceil(_/j));for(n=0;n<_;n+=N){var D=m.setContext(this.getContext(n)),R=D.lineWidth,L=D.color,A=D.borderDash||[],I=D.borderDashOffset,F=D.tickWidth,z=D.tickColor,B=D.tickBorderDash||[],U=D.tickBorderDashOffset;void 0!==(r=IT(this,n,y))&&(i=PC(p,r,R),b?o=s=u=f=i:a=l=c=d=i,w.push({tx1:o,ty1:a,tx2:s,ty2:l,x1:u,y1:c,x2:f,y2:d,width:R,color:L,borderDash:A,borderDashOffset:I,tickWidth:F,tickColor:z,tickBorderDash:B,tickBorderDashOffset:U}))}return this._ticksLength=_,this._borderValue=t,w}},{key:"_computeLabelItems",value:function(e){var t,n,r,i,o,a,s,l,u,c,f,d=this.axis,h=this.options,p=h.position,v=h.ticks,m=this.isHorizontal(),g=this.ticks,y=v.align,b=v.crossAlign,_=v.padding,x=v.mirror,w=FT(h.grid),k=w+_,S=x?-_:k,C=-hS(this.labelRotation),E=[],T="middle";if("top"===p)o=this.bottom-S,a=this._getXAxisLabelAlignment();else if("bottom"===p)o=this.top+S,a=this._getXAxisLabelAlignment();else if("left"===p){var M=this._getYAxisLabelAlignment(w);a=M.textAlign,i=M.x}else if("right"===p){var O=this._getYAxisLabelAlignment(w);a=O.textAlign,i=O.x}else if("x"===d){if("center"===p)o=(e.top+e.bottom)/2+k;else if(Dk(p)){var P=Object.keys(p)[0],j=p[P];o=this.chart.scales[P].getPixelForValue(j)+k}a=this._getXAxisLabelAlignment()}else if("y"===d){if("center"===p)i=(e.left+e.right)/2-k;else if(Dk(p)){var N=Object.keys(p)[0],D=p[N];i=this.chart.scales[N].getPixelForValue(D)}a=this._getYAxisLabelAlignment(w).textAlign}"y"===d&&("start"===y?T="top":"end"===y&&(T="bottom"));var R=this._getLabelSizes();for(t=0,n=g.length;t<n;++t){r=g[t].label;var L=v.setContext(this.getContext(t));s=this.getPixelForTick(t)+v.labelOffset,u=(l=this._resolveTickFontOptions(t)).lineHeight;var A=(c=Nk(r)?r.length:1)/2,I=L.color,F=L.textStrokeColor,z=L.textStrokeWidth,B=a;m?(i=s,"inner"===a&&(B=t===n-1?this.options.reverse?"left":"right":0===t?this.options.reverse?"right":"left":"center"),f="top"===p?"near"===b||0!==C?-c*u+u/2:"center"===b?-R.highest.height/2-A*u+u:-R.highest.height+u/2:"near"===b||0!==C?u/2:"center"===b?R.highest.height/2-A*u:R.highest.height-c*u,x&&(f*=-1)):(o=s,f=(1-c)*u/2);var U=void 0;if(L.showLabelBackdrop){var V=QC(L.backdropPadding),H=R.heights[t],W=R.widths[t],Z=o+f-V.top,Y=i-V.left;switch(T){case"middle":Z-=H/2;break;case"bottom":Z-=H}switch(a){case"center":Y-=W/2;break;case"right":Y-=W}U={left:Y,top:Z,width:W+V.width,height:H+V.height,color:L.backdropColor}}E.push({rotation:C,label:r,font:l,color:I,strokeColor:F,strokeWidth:z,textOffset:f,textAlign:B,textBaseline:T,translation:[i,o],backdrop:U})}return E}},{key:"_getXAxisLabelAlignment",value:function(){var e=this.options,t=e.position,n=e.ticks;if(-hS(this.labelRotation))return"top"===t?"left":"right";var r="center";return"start"===n.align?r="left":"end"===n.align?r="right":"inner"===n.align&&(r="inner"),r}},{key:"_getYAxisLabelAlignment",value:function(e){var t,n,r=this.options,i=r.position,o=r.ticks,a=o.crossAlign,s=o.mirror,l=o.padding,u=e+l,c=this._getLabelSizes().widest.width;return"left"===i?s?(n=this.right+l,"near"===a?t="left":"center"===a?(t="center",n+=c/2):(t="right",n+=c)):(n=this.right-u,"near"===a?t="right":"center"===a?(t="center",n-=c/2):(t="left",n=this.left)):"right"===i?s?(n=this.left+l,"near"===a?t="right":"center"===a?(t="center",n-=c/2):(t="left",n-=c)):(n=this.left+u,"near"===a?t="left":"center"===a?(t="center",n+=c/2):(t="right",n=this.right)):t="right",{textAlign:t,x:n}}},{key:"_computeLabelArea",value:function(){if(!this.options.ticks.mirror){var e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}}},{key:"drawBackground",value:function(){var e=this.ctx,t=this.options.backgroundColor,n=this.left,r=this.top,i=this.width,o=this.height;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,o),e.restore())}},{key:"getLineWidthForValue",value:function(e){var t=this.options.grid;if(!this._isVisible()||!t.display)return 0;var n=this.ticks.findIndex((function(t){return t.value===e}));return n>=0?t.setContext(this.getContext(n)).lineWidth:0}},{key:"drawGrid",value:function(e){var t,n,r=this.options.grid,i=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e)),a=function(e,t,n){n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.stroke(),i.restore())};if(r.display)for(t=0,n=o.length;t<n;++t){var s=o[t];r.drawOnChartArea&&a({x:s.x1,y:s.y1},{x:s.x2,y:s.y2},s),r.drawTicks&&a({x:s.tx1,y:s.ty1},{x:s.tx2,y:s.ty2},{color:s.tickColor,width:s.tickWidth,borderDash:s.tickBorderDash,borderDashOffset:s.tickBorderDashOffset})}}},{key:"drawBorder",value:function(){var e=this.chart,t=this.ctx,n=this.options.grid,r=n.setContext(this.getContext()),i=n.drawBorder?r.borderWidth:0;if(i){var o,a,s,l,u=n.setContext(this.getContext(0)).lineWidth,c=this._borderValue;this.isHorizontal()?(o=PC(e,this.left,i)-i/2,a=PC(e,this.right,u)+u/2,s=l=c):(s=PC(e,this.top,i)-i/2,l=PC(e,this.bottom,u)+u/2,o=a=c),t.save(),t.lineWidth=r.borderWidth,t.strokeStyle=r.borderColor,t.beginPath(),t.moveTo(o,s),t.lineTo(a,l),t.stroke(),t.restore()}}},{key:"drawLabels",value:function(e){if(this.options.ticks.display){var t=this.ctx,n=this._computeLabelArea();n&&LC(t,n);var r,i,o=this._labelItems||(this._labelItems=this._computeLabelItems(e));for(r=0,i=o.length;r<i;++r){var a=o[r],s=a.font,l=a.label;a.backdrop&&(t.fillStyle=a.backdrop.color,t.fillRect(a.backdrop.left,a.backdrop.top,a.backdrop.width,a.backdrop.height)),zC(t,l,0,a.textOffset,s,a)}n&&AC(t)}}},{key:"drawTitle",value:function(){var e=this.ctx,t=this.options,n=t.position,r=t.title,i=t.reverse;if(r.display){var o=$C(r.font),a=QC(r.padding),s=r.align,l=o.lineHeight/2;"bottom"===n||"center"===n||Dk(n)?(l+=a.bottom,Nk(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=a.top;var u=function(e,t,n,r){var i,o,a,s=e.top,l=e.left,u=e.bottom,c=e.right,f=e.chart,d=f.chartArea,h=f.scales,p=0,v=u-s,m=c-l;if(e.isHorizontal()){if(o=NS(r,l,c),Dk(n)){var g=Object.keys(n)[0],y=n[g];a=h[g].getPixelForValue(y)+v-t}else a="center"===n?(d.bottom+d.top)/2+v-t:LT(e,n,t);i=c-l}else{if(Dk(n)){var b=Object.keys(n)[0],_=n[b];o=h[b].getPixelForValue(_)-m+t}else o="center"===n?(d.left+d.right)/2-m+t:LT(e,n,t);a=NS(r,u,s),p="left"===n?-iS:iS}return{titleX:o,titleY:a,maxWidth:i,rotation:p}}(this,l,n,s),c=u.titleX,f=u.titleY,d=u.maxWidth,h=u.rotation;zC(e,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:h,textAlign:BT(s,n,i),textBaseline:"middle",translation:[c,f]})}}},{key:"draw",value:function(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}},{key:"_layers",value:function(){var e=this,t=this.options,r=t.ticks&&t.ticks.z||0,i=Ak(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===n.prototype.draw?[{z:i,draw:function(t){e.drawBackground(),e.drawGrid(t),e.drawTitle()}},{z:i+1,draw:function(){e.drawBorder()}},{z:r,draw:function(t){e.drawLabels(t)}}]:[{z:r,draw:function(t){e.draw(t)}}]}},{key:"getMatchingVisibleMetas",value:function(e){var t,n,r=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",o=[];for(t=0,n=r.length;t<n;++t){var a=r[t];a[i]!==this.id||e&&a.type!==e||o.push(a)}return o}},{key:"_resolveTickFontOptions",value:function(e){return $C(this.options.ticks.setContext(this.getContext(e)).font)}},{key:"_maxDigits",value:function(){var e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}]),n}(PT),VT=function(){function e(t,n,r){Ht(this,e),this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}return Vt(e,[{key:"isForType",value:function(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}},{key:"register",value:function(e){var t,n=Object.getPrototypeOf(e);(function(e){return"id"in e&&"defaults"in e})(n)&&(t=this.register(n));var r=this.items,i=e.id,o=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in r||(r[i]=e,function(e,t,n){var r=Wk(Object.create(null),[n?TC.get(n):{},TC.get(t),e.defaults]);TC.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((function(n){var r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");TC.route(o,i,l,s)}))}(t,e.defaultRoutes);e.descriptors&&TC.describe(t,e.descriptors)}(e,o,t),this.override&&TC.override(e.id,e.overrides)),o}},{key:"get",value:function(e){return this.items[e]}},{key:"unregister",value:function(e){var t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in TC[r]&&(delete TC[r][n],this.override&&delete wC[n])}}]),e}();var HT=function(){function e(){Ht(this,e),this.controllers=new VT(pT,"datasets",!0),this.elements=new VT(PT,"elements"),this.plugins=new VT(Object,"plugins"),this.scales=new VT(UT,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}return Vt(e,[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t)}},{key:"remove",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t)}},{key:"addControllers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.controllers)}},{key:"addElements",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.elements)}},{key:"addPlugins",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.plugins)}},{key:"addScales",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.scales)}},{key:"getController",value:function(e){return this._get(e,this.controllers,"controller")}},{key:"getElement",value:function(e){return this._get(e,this.elements,"element")}},{key:"getPlugin",value:function(e){return this._get(e,this.plugins,"plugin")}},{key:"getScale",value:function(e){return this._get(e,this.scales,"scale")}},{key:"removeControllers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.controllers)}},{key:"removeElements",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.elements)}},{key:"removePlugins",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.plugins)}},{key:"removeScales",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.scales)}},{key:"_each",value:function(e,t,n){var r=this;g(t).forEach((function(t){var i=n||r._getRegistryForType(t);n||i.isForType(t)||i===r.plugins&&t.id?r._exec(e,i,t):zk(t,(function(t){var i=n||r._getRegistryForType(t);r._exec(e,i,t)}))}))}},{key:"_exec",value:function(e,t,n){var r=Kk(e);Fk(n["before"+r],[],n),t[e](n),Fk(n["after"+r],[],n)}},{key:"_getRegistryForType",value:function(e){for(var t=0;t<this._typedRegistries.length;t++){var n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}},{key:"_get",value:function(e,t,n){var r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}]),e}(),WT=new HT,ZT=function(e){Js(n,e);var t=rl(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"update",value:function(e){var t=this._cachedMeta,n=t.data,r=void 0===n?[]:n,i=this.chart._animationsDisabled,o=DS(t,r,i),a=o.start,s=o.count;if(this._drawStart=a,this._drawCount=s,RS(t)&&(a=0,s=r.length),this.options.showLine){var l=t.dataset,u=t._dataset;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!u._decimated,l.points=r;var c=this.resolveDatasetElementOptions(e);c.segment=this.options.segment,this.updateElement(l,void 0,{animated:!i,options:c},e)}this.updateElements(r,a,s,e)}},{key:"addElements",value:function(){var e=this.options.showLine;!this.datasetElementType&&e&&(this.datasetElementType=WT.getElement("line")),Tk(el(n.prototype),"addElements",this).call(this)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,o=this._cachedMeta,a=o.iScale,s=o.vScale,l=o._stacked,u=o._dataset,c=this.resolveDataElementOptions(t,r),f=this.getSharedOptions(c),d=this.includeOptions(r,f),h=a.axis,p=s.axis,v=this.options,m=v.spanGaps,g=v.segment,y=cS(m)?m:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||i||"none"===r,_=t>0&&this.getParsed(t-1),x=t;x<t+n;++x){var w=e[x],k=this.getParsed(x),S=b?w:{},C=jk(k[p]),E=S[h]=a.getPixelForValue(k[h],x),T=S[p]=i||C?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,k,l):k[p],x);S.skip=isNaN(E)||isNaN(T)||C,S.stop=x>0&&Math.abs(k[h]-_[h])>y,g&&(S.parsed=k,S.raw=u.data[x]),d&&(S.options=f||this.resolveDataElementOptions(x,w.active?"active":r)),b||this.updateElement(w,x,S,r),_=k}this.updateSharedOptions(f,r,c)}},{key:"getMaxOverflow",value:function(){var e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){for(var n=0,r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}var i=e.dataset,o=i.options&&i.options.borderWidth||0;if(!t.length)return o;var a=t[0].size(this.resolveDataElementOptions(0)),s=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(o,a,s)/2}}]),n}(pT);ZT.id="scatter",ZT.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},ZT.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:function(){return""},label:function(e){return"("+e.label+", "+e.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var YT=Object.freeze({__proto__:null,BarController:kT,BubbleController:ST,DoughnutController:CT,LineController:ET,PolarAreaController:TT,PieController:MT,RadarController:OT,ScatterController:ZT});function qT(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var GT=function(){function e(t){Ht(this,e),this.options=t||{}}return Vt(e,[{key:"init",value:function(e){}},{key:"formats",value:function(){return qT()}},{key:"parse",value:function(e,t){return qT()}},{key:"format",value:function(e,t){return qT()}},{key:"add",value:function(e,t,n){return qT()}},{key:"diff",value:function(e,t,n){return qT()}},{key:"startOf",value:function(e,t,n){return qT()}},{key:"endOf",value:function(e,t){return qT()}}]),e}();GT.override=function(e){Object.assign(GT.prototype,e)};var KT={_date:GT};function QT(e,t,n,r){var i=e.controller,o=e.data,a=e._sorted,s=i._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&o.length){var l=s._reversePixels?CS:SS;if(!r)return l(o,t,n);if(i._sharedOptions){var u=o[0],c="function"===typeof u.getRange&&u.getRange(t);if(c){var f=l(o,t,n-c),d=l(o,t,n+c);return{lo:f.lo,hi:d.hi}}}}return{lo:0,hi:o.length-1}}function $T(e,t,n,r,i){for(var o=e.getSortedVisibleDatasetMetas(),a=n[t],s=0,l=o.length;s<l;++s)for(var u=o[s],c=u.index,f=u.data,d=QT(o[s],t,a,i),h=d.lo,p=d.hi,v=h;v<=p;++v){var m=f[v];m.skip||r(m,c,v)}}function XT(e,t,n,r,i){var o=[];if(!i&&!e.isPointInArea(t))return o;return $T(e,n,t,(function(n,a,s){(i||RC(n,e.chartArea,0))&&n.inRange(t.x,t.y,r)&&o.push({element:n,datasetIndex:a,index:s})}),!0),o}function JT(e,t,n,r,i,o){var a=[],s=function(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var i=t?Math.abs(e.x-r.x):0,o=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}(n),l=Number.POSITIVE_INFINITY;return $T(e,n,t,(function(n,u,c){var f=n.inRange(t.x,t.y,i);if(!r||f){var d=n.getCenterPoint(i);if(!!o||e.isPointInArea(d)||f){var h=s(t,d);h<l?(a=[{element:n,datasetIndex:u,index:c}],l=h):h===l&&a.push({element:n,datasetIndex:u,index:c})}}})),a}function eM(e,t,n,r,i,o){return o||e.isPointInArea(t)?"r"!==n||r?JT(e,t,n,r,i,o):function(e,t,n,r){var i=[];return $T(e,n,t,(function(e,n,o){var a=e.getProps(["startAngle","endAngle"],r),s=a.startAngle,l=a.endAngle;_S(mS(e,{x:t.x,y:t.y}).angle,s,l)&&i.push({element:e,datasetIndex:n,index:o})})),i}(e,t,n,i):[]}function tM(e,t,n,r,i){var o=[],a="x"===n?"inXRange":"inYRange",s=!1;return $T(e,n,t,(function(e,r,l){e[a](t[n],i)&&(o.push({element:e,datasetIndex:r,index:l}),s=s||e.inRange(t.x,t.y,i))})),r&&!s?[]:o}var nM={evaluateInteractionItems:$T,modes:{index:function(e,t,n,r){var i=OE(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?XT(e,i,o,r,a):eM(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((function(e){var t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset:function(e,t,n,r){var i=OE(t,e),o=n.axis||"xy",a=n.includeInvisible||!1,s=n.intersect?XT(e,i,o,r,a):eM(e,i,o,!1,r,a);if(s.length>0){var l=s[0].datasetIndex,u=e.getDatasetMeta(l).data;s=[];for(var c=0;c<u.length;++c)s.push({element:u[c],datasetIndex:l,index:c})}return s},point:function(e,t,n,r){return XT(e,OE(t,e),n.axis||"xy",r,n.includeInvisible||!1)},nearest:function(e,t,n,r){var i=OE(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return eM(e,i,o,n.intersect,r,a)},x:function(e,t,n,r){return tM(e,OE(t,e),"x",n.intersect,r)},y:function(e,t,n,r){return tM(e,OE(t,e),"y",n.intersect,r)}}},rM=["left","top","right","bottom"];function iM(e,t){return e.filter((function(e){return e.pos===t}))}function oM(e,t){return e.filter((function(e){return-1===rM.indexOf(e.pos)&&e.box.axis===t}))}function aM(e,t){return e.sort((function(e,n){var r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function sM(e,t){var n,r,i,o=function(e){var t,n={},r=Mk(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.stack,a=i.pos,s=i.stackWeight;if(o&&rM.includes(a)){var l=n[o]||(n[o]={count:0,placed:0,weight:0,size:0});l.count++,l.weight+=s}}}catch(u){r.e(u)}finally{r.f()}return n}(e),a=t.vBoxMaxWidth,s=t.hBoxMaxHeight;for(n=0,r=e.length;n<r;++n){var l=(i=e[n]).box.fullSize,u=o[i.stack],c=u&&i.stackWeight/u.weight;i.horizontal?(i.width=c?c*a:l&&t.availableWidth,i.height=s):(i.width=a,i.height=c?c*s:l&&t.availableHeight)}return o}function lM(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function uM(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 cM(e,t,n,r){var i=n.pos,o=n.box,a=e.maxPadding;if(!Dk(i)){n.size&&(e[i]-=n.size);var s=r[n.stack]||{size:0,count:1};s.size=Math.max(s.size,n.horizontal?o.height:o.width),n.size=s.size/s.count,e[i]+=n.size}o.getPadding&&uM(a,o.getPadding());var l=Math.max(0,t.outerWidth-lM(a,e,"left","right")),u=Math.max(0,t.outerHeight-lM(a,e,"top","bottom")),c=l!==e.w,f=u!==e.h;return e.w=l,e.h=u,n.horizontal?{same:c,other:f}:{same:f,other:c}}function fM(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function dM(e,t,n,r){var i,o,a,s,l,u,c=[];for(i=0,o=e.length,l=0;i<o;++i){(s=(a=e[i]).box).update(a.width||t.w,a.height||t.h,fM(a.horizontal,t));var f=cM(t,n,a,r),d=f.same,h=f.other;l|=d&&c.length,u=u||h,s.fullSize||c.push(a)}return l&&dM(c,t,n,r)||u}function hM(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 pM(e,t,n,r){var i,o=n.padding,a=t.x,s=t.y,l=Mk(e);try{for(l.s();!(i=l.n()).done;){var u=i.value,c=u.box,f=r[u.stack]||{count:1,placed:0,weight:1},d=u.stackWeight/f.weight||1;if(u.horizontal){var h=t.w*d,p=f.size||c.height;Qk(f.start)&&(s=f.start),c.fullSize?hM(c,o.left,s,n.outerWidth-o.right-o.left,p):hM(c,t.left+f.placed,s,h,p),f.start=s,f.placed+=h,s=c.bottom}else{var v=t.h*d,m=f.size||c.width;Qk(f.start)&&(a=f.start),c.fullSize?hM(c,a,o.top,m,n.outerHeight-o.bottom-o.top):hM(c,a,t.top+f.placed,m,v),f.start=a,f.placed+=v,a=c.right}}}catch(g){l.e(g)}finally{l.f()}t.x=a,t.y=s}TC.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var vM=function(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:function(e){t.draw(e)}}]},e.boxes.push(t)},mM=function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},gM=function(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},yM=function(e,t,n,r){if(e){var i=QC(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(n-i.height,0),s=function(e){var t=function(e){var t,n,r,i,o,a,s=[];for(t=0,n=(e||[]).length;t<n;++t){var l=r=e[t];i=l.position;var u=l.options;o=u.stack;var c=u.stackWeight;a=void 0===c?1:c,s.push({index:t,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&i+o,stackWeight:a})}return s}(e),n=aM(t.filter((function(e){return e.box.fullSize})),!0),r=aM(iM(t,"left"),!0),i=aM(iM(t,"right")),o=aM(iM(t,"top"),!0),a=aM(iM(t,"bottom")),s=oM(t,"x"),l=oM(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:iM(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}(e.boxes),l=s.vertical,u=s.horizontal;zk(e.boxes,(function(e){"function"===typeof e.beforeLayout&&e.beforeLayout()}));var c=l.reduce((function(e,t){return t.box.options&&!1===t.box.options.display?e:e+1}),0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/c,hBoxMaxHeight:a/2}),d=Object.assign({},i);uM(d,QC(r));var h=Object.assign({maxPadding:d,w:o,h:a,x:i.left,y:i.top},i),p=sM(l.concat(u),f);dM(s.fullSize,h,f,p),dM(l,h,f,p),dM(u,h,f,p)&&dM(l,h,f,p),function(e){var t=e.maxPadding;function n(n){var r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),pM(s.leftAndTop,h,f,p),h.x+=h.w,h.y+=h.h,pM(s.rightAndBottom,h,f,p),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},zk(s.chartArea,(function(t){var n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}},bM=function(){function e(){Ht(this,e)}return Vt(e,[{key:"acquireContext",value:function(e,t){}},{key:"releaseContext",value:function(e){return!1}},{key:"addEventListener",value:function(e,t,n){}},{key:"removeEventListener",value:function(e,t,n){}},{key:"getDevicePixelRatio",value:function(){return 1}},{key:"getMaximumSize",value:function(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}},{key:"isAttached",value:function(e){return!0}},{key:"updateConfig",value:function(e){}}]),e}(),_M=function(e){Js(n,e);var t=rl(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"acquireContext",value:function(e){return e&&e.getContext&&e.getContext("2d")||null}},{key:"updateConfig",value:function(e){e.options.animation=!1}}]),n}(bM),xM={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},wM=function(e){return null===e||""===e};var kM=!!DE&&{passive:!0};function SM(e,t,n){e.canvas.removeEventListener(t,n,kM)}function CM(e,t){var n,r=Mk(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i===t||i.contains(t))return!0}}catch(o){r.e(o)}finally{r.f()}}function EM(e,t,n){var r=e.canvas,i=new MutationObserver((function(e){var t,i=!1,o=Mk(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;i=(i=i||CM(a.addedNodes,r))&&!CM(a.removedNodes,r)}}catch(s){o.e(s)}finally{o.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function TM(e,t,n){var r=e.canvas,i=new MutationObserver((function(e){var t,i=!1,o=Mk(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;i=(i=i||CM(a.removedNodes,r))&&!CM(a.addedNodes,r)}}catch(s){o.e(s)}finally{o.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}var MM=new Map,OM=0;function PM(){var e=window.devicePixelRatio;e!==OM&&(OM=e,MM.forEach((function(t,n){n.currentDevicePixelRatio!==e&&t()})))}function jM(e,t,n){var r=e.canvas,i=r&&SE(r);if(i){var o=PS((function(e,t){var r=i.clientWidth;n(e,t),r<i.clientWidth&&n()}),window),a=new ResizeObserver((function(e){var t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||o(n,r)}));return a.observe(i),function(e,t){MM.size||window.addEventListener("resize",PM),MM.set(e,t)}(e,o),a}}function NM(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){MM.delete(e),MM.size||window.removeEventListener("resize",PM)}(e)}function DM(e,t,n){var r=e.canvas,i=PS((function(t){null!==e.ctx&&n(function(e,t){var n=xM[e.type]||e.type,r=OE(e,t),i=r.x,o=r.y;return{type:n,chart:t,native:e,x:void 0!==i?i:null,y:void 0!==o?o:null}}(t,e))}),e,(function(e){var t=e[0];return[t,t.offsetX,t.offsetY]}));return function(e,t,n){e.addEventListener(t,n,kM)}(r,t,i),i}var RM=function(e){Js(n,e);var t=rl(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"acquireContext",value:function(e,t){var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){var n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e.$chartjs={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",wM(i)){var o=RE(e,"width");void 0!==o&&(e.width=o)}if(wM(r))if(""===e.style.height)e.height=e.width/(t||2);else{var a=RE(e,"height");void 0!==a&&(e.height=a)}}(e,t),n):null}},{key:"releaseContext",value:function(e){var t=e.canvas;if(!t.$chartjs)return!1;var n=t.$chartjs.initial;["height","width"].forEach((function(e){var r=n[e];jk(r)?t.removeAttribute(e):t.setAttribute(e,r)}));var r=n.style||{};return Object.keys(r).forEach((function(e){t.style[e]=r[e]})),t.width=t.width,delete t.$chartjs,!0}},{key:"addEventListener",value:function(e,t,n){this.removeEventListener(e,t);var r=e.$proxies||(e.$proxies={}),i={attach:EM,detach:TM,resize:jM}[t]||DM;r[t]=i(e,t,n)}},{key:"removeEventListener",value:function(e,t){var n=e.$proxies||(e.$proxies={}),r=n[t];r&&(({attach:NM,detach:NM,resize:NM}[t]||SM)(e,t,r),n[t]=void 0)}},{key:"getDevicePixelRatio",value:function(){return window.devicePixelRatio}},{key:"getMaximumSize",value:function(e,t,n,r){return jE(e,t,n,r)}},{key:"isAttached",value:function(e){var t=SE(e);return!(!t||!t.isConnected)}}]),n}(bM);var LM=function(){function e(){Ht(this,e),this._init=[]}return Vt(e,[{key:"notify",value:function(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));var i=r?this._descriptors(e).filter(r):this._descriptors(e),o=this._notify(i,e,t,n);return"afterDestroy"===t&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),o}},{key:"_notify",value:function(e,t,n,r){r=r||{};var i,o=Mk(e);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.plugin;if(!1===Fk(s[n],[t,r,a.options],s)&&r.cancelable)return!1}}catch(l){o.e(l)}finally{o.f()}return!0}},{key:"invalidate",value:function(){jk(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}},{key:"_descriptors",value:function(e){if(this._cache)return this._cache;var t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}},{key:"_createDescriptors",value:function(e,t){var n=e&&e.config,r=Ak(n.options&&n.options.plugins,{}),i=function(e){for(var t={},n=[],r=Object.keys(WT.plugins.items),i=0;i<r.length;i++)n.push(WT.getPlugin(r[i]));for(var o=e.plugins||[],a=0;a<o.length;a++){var s=o[a];-1===n.indexOf(s)&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==r||t?function(e,t,n,r){var i,o=t.plugins,a=t.localIds,s=[],l=e.getContext(),u=Mk(o);try{for(u.s();!(i=u.n()).done;){var c=i.value,f=c.id,d=AM(n[f],r);null!==d&&s.push({plugin:c,options:IM(e.config,{plugin:c,local:a[f]},d,l)})}}catch(h){u.e(h)}finally{u.f()}return s}(e,i,r,t):[]}},{key:"_notifyStateChanges",value:function(e){var t=this._oldCache||[],n=this._cache,r=function(e,t){return e.filter((function(e){return!t.some((function(t){return e.plugin.id===t.plugin.id}))}))};this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}]),e}();function AM(e,t){return t||!1!==e?!0===e?{}:e:null}function IM(e,t,n,r){var i=t.plugin,o=t.local,a=e.pluginScopeKeys(i),s=e.getOptionScopes(n,a);return o&&i.defaults&&s.push(i.defaults),e.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function FM(e,t){var n=TC.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function zM(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(n=t.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.charAt(0).toLowerCase();var n}function BM(e){var t=e.options||(e.options={});t.plugins=Ak(t.plugins,{}),t.scales=function(e,t){var n=wC[e.type]||{scales:{}},r=t.scales||{},i=FM(e.type,t),o=Object.create(null),a=Object.create(null);return Object.keys(r).forEach((function(e){var t=r[e];if(!Dk(t))return console.error("Invalid scale configuration for scale: ".concat(e));if(t._proxy)return console.warn("Ignoring resolver passed as options for scale: ".concat(e));var s=zM(e,t),l=function(e,t){return e===t?"_index_":"_value_"}(s,i),u=n.scales||{};o[s]=o[s]||e,a[e]=Zk(Object.create(null),[{axis:s},t,u[s],u[l]])})),e.data.datasets.forEach((function(n){var i=n.type||e.type,s=n.indexAxis||FM(i,t),l=(wC[i]||{}).scales||{};Object.keys(l).forEach((function(e){var t=function(e,t){var n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,s),i=n[t+"AxisID"]||o[t]||t;a[i]=a[i]||Object.create(null),Zk(a[i],[{axis:t},r[i],l[e]])}))})),Object.keys(a).forEach((function(e){var t=a[e];Zk(t,[TC.scales[t.type],TC.scale])})),a}(e,t)}function UM(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}var VM=new Map,HM=new Set;function WM(e,t){var n=VM.get(e);return n||(n=t(),VM.set(e,n),HM.add(n)),n}var ZM=function(e,t,n){var r=Gk(t,n);void 0!==r&&e.add(r)},YM=function(){function e(t){Ht(this,e),this._config=function(e){return(e=e||{}).data=UM(e.data),BM(e),e}(t),this._scopeCache=new Map,this._resolverCache=new Map}return Vt(e,[{key:"platform",get:function(){return this._config.platform}},{key:"type",get:function(){return this._config.type},set:function(e){this._config.type=e}},{key:"data",get:function(){return this._config.data},set:function(e){this._config.data=UM(e)}},{key:"options",get:function(){return this._config.options},set:function(e){this._config.options=e}},{key:"plugins",get:function(){return this._config.plugins}},{key:"update",value:function(){var e=this._config;this.clearCache(),BM(e)}},{key:"clearCache",value:function(){this._scopeCache.clear(),this._resolverCache.clear()}},{key:"datasetScopeKeys",value:function(e){return WM(e,(function(){return[["datasets.".concat(e),""]]}))}},{key:"datasetAnimationScopeKeys",value:function(e,t){return WM("".concat(e,".transition.").concat(t),(function(){return[["datasets.".concat(e,".transitions.").concat(t),"transitions.".concat(t)],["datasets.".concat(e),""]]}))}},{key:"datasetElementScopeKeys",value:function(e,t){return WM("".concat(e,"-").concat(t),(function(){return[["datasets.".concat(e,".elements.").concat(t),"datasets.".concat(e),"elements.".concat(t),""]]}))}},{key:"pluginScopeKeys",value:function(e){var t=e.id,n=this.type;return WM("".concat(n,"-plugin-").concat(t),(function(){return[["plugins.".concat(t)].concat(g(e.additionalOptionScopes||[]))]}))}},{key:"_cachedScopes",value:function(e,t){var n=this._scopeCache,r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}},{key:"getOptionScopes",value:function(e,t,n){var r=this.options,i=this.type,o=this._cachedScopes(e,n),a=o.get(t);if(a)return a;var s=new Set;t.forEach((function(t){e&&(s.add(e),t.forEach((function(t){return ZM(s,e,t)}))),t.forEach((function(e){return ZM(s,r,e)})),t.forEach((function(e){return ZM(s,wC[i]||{},e)})),t.forEach((function(e){return ZM(s,TC,e)})),t.forEach((function(e){return ZM(s,kC,e)}))}));var l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),HM.has(t)&&o.set(t,l),l}},{key:"chartOptionScopes",value:function(){var e=this.options,t=this.type;return[e,wC[t]||{},TC.datasets[t]||{},{type:t},TC,kC]}},{key:"resolveNamedOptions",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""],i={$shared:!0},o=qM(this._resolverCache,e,r),a=o.resolver,s=o.subPrefixes,l=a;if(KM(a,t)){i.$shared=!1,n=$k(n)?n():n;var u=this.createResolver(e,n,s);l=tE(a,n,u)}var c,f=Mk(t);try{for(f.s();!(c=f.n()).done;){var d=c.value;i[d]=l[d]}}catch(h){f.e(h)}finally{f.f()}return i}},{key:"createResolver",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0,i=qM(this._resolverCache,e,n),o=i.resolver;return Dk(t)?tE(o,t,void 0,r):o}}]),e}();function qM(e,t,n){var r=e.get(t);r||(r=new Map,e.set(t,r));var i=n.join(),o=r.get(i);o||(o={resolver:eE(t,n),subPrefixes:n.filter((function(e){return!e.toLowerCase().includes("hover")}))},r.set(i,o));return o}var GM=function(e){return Dk(e)&&Object.getOwnPropertyNames(e).reduce((function(t,n){return t||$k(e[n])}),!1)};function KM(e,t){var n,r=nE(e),i=r.isScriptable,o=r.isIndexable,a=Mk(t);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=i(s),u=o(s),c=(u||l)&&e[s];if(l&&($k(c)||GM(c))||u&&Nk(c))return!0}}catch(f){a.e(f)}finally{a.f()}return!1}var QM=["top","bottom","left","right","chartArea"];function $M(e,t){return"top"===e||"bottom"===e||-1===QM.indexOf(e)&&"x"===t}function XM(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function JM(e){var t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Fk(n&&n.onComplete,[e],t)}function eO(e){var t=e.chart,n=t.options.animation;Fk(n&&n.onProgress,[e],t)}function tO(e){return kE()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var nO={},rO=function(e){var t=tO(e);return Object.values(nO).filter((function(e){return e.canvas===t})).pop()};function iO(e,t,n){for(var r=0,i=Object.keys(e);r<i.length;r++){var o=i[r],a=+o;if(a>=t){var s=e[o];delete e[o],(n>0||a>t)&&(e[a+n]=s)}}}var oO=function(){function e(t,n){var r=this;Ht(this,e);var i=this.config=new YM(n),o=tO(t),a=rO(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");var s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(e){return!kE()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?_M:RM}(o)),this.platform.updateConfig(i);var l=this.platform.acquireContext(o,s.aspectRatio),u=l&&l.canvas,c=u&&u.height,f=u&&u.width;this.id=Pk(),this.ctx=l,this.canvas=u,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 LM,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){var n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}((function(e){return r.update(e)}),s.resizeDelay||0),this._dataChanges=[],nO[this.id]=this,l&&u?($E.listen(this,"complete",JM),$E.listen(this,"progress",eO),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}return Vt(e,[{key:"aspectRatio",get:function(){var e=this.options,t=e.aspectRatio,n=e.maintainAspectRatio,r=this.width,i=this.height,o=this._aspectRatio;return jk(t)?n&&o?o:i?r/i:null:t}},{key:"data",get:function(){return this.config.data},set:function(e){this.config.data=e}},{key:"options",get:function(){return this._options},set:function(e){this.config.options=e}},{key:"_initialize",value:function(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():NE(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}},{key:"clear",value:function(){return jC(this.canvas,this.ctx),this}},{key:"stop",value:function(){return $E.stop(this),this}},{key:"resize",value:function(e,t){$E.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}},{key:"_resize",value:function(e,t){var n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,e,t,i),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,NE(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),Fk(n.onResize,[this,o],this),this.attached&&this._doResize(s)&&this.render())}},{key:"ensureScalesHaveIDs",value:function(){zk(this.options.scales||{},(function(e,t){e.id=t}))}},{key:"buildOrUpdateScales",value:function(){var e=this,t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((function(e,t){return e[t]=!1,e}),{}),o=[];n&&(o=o.concat(Object.keys(n).map((function(e){var t=n[e],r=zM(e,t),i="r"===r,o="x"===r;return{options:t,dposition:i?"chartArea":o?"bottom":"left",dtype:i?"radialLinear":o?"category":"linear"}})))),zk(o,(function(n){var o=n.options,a=o.id,s=zM(a,o),l=Ak(o.type,n.dtype);void 0!==o.position&&$M(o.position,s)===$M(n.dposition)||(o.position=n.dposition),i[a]=!0;var u=null;a in r&&r[a].type===l?u=r[a]:(u=new(WT.getScale(l))({id:a,type:l,ctx:e.ctx,chart:e}),r[u.id]=u);u.init(o,t)})),zk(i,(function(e,t){e||delete r[t]})),zk(r,(function(t){gM(e,t,t.options),vM(e,t)}))}},{key:"_updateMetasets",value:function(){var e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((function(e,t){return e.index-t.index})),n>t){for(var r=t;r<n;++r)this._destroyDatasetMeta(r);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(XM("order","index"))}},{key:"_removeUnreferencedMetasets",value:function(){var e=this,t=this._metasets,n=this.data.datasets;t.length>n.length&&delete this._stacks,t.forEach((function(t,r){0===n.filter((function(e){return e===t._dataset})).length&&e._destroyDatasetMeta(r)}))}},{key:"buildOrUpdateControllers",value:function(){var e,t,n=[],r=this.data.datasets;for(this._removeUnreferencedMetasets(),e=0,t=r.length;e<t;e++){var i=r[e],o=this.getDatasetMeta(e),a=i.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(e),o=this.getDatasetMeta(e)),o.type=a,o.indexAxis=i.indexAxis||FM(a,this.options),o.order=i.order||0,o.index=e,o.label=""+i.label,o.visible=this.isDatasetVisible(e),o.controller)o.controller.updateIndex(e),o.controller.linkScales();else{var s=WT.getController(a),l=TC.datasets[a],u=l.datasetElementType,c=l.dataElementType;Object.assign(s.prototype,{dataElementType:WT.getElement(c),datasetElementType:u&&WT.getElement(u)}),o.controller=new s(this,e),n.push(o.controller)}}return this._updateMetasets(),n}},{key:"_resetElements",value:function(){var e=this;zk(this.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),this)}},{key:"reset",value:function(){this._resetElements(),this.notifyPlugins("reset")}},{key:"update",value:function(e){var t=this.config;t.update();var n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1!==this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})){var i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");for(var o=0,a=0,s=this.data.datasets.length;a<s;a++){var l=this.getDatasetMeta(a).controller,u=!r&&-1===i.indexOf(l);l.buildOrUpdateElements(u),o=Math.max(+l.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),r||zk(i,(function(e){e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(XM("z","_idx"));var c=this._active,f=this._lastEvent;f?this._eventHandler(f,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}}},{key:"_updateScales",value:function(){var e=this;zk(this.scales,(function(t){mM(e,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}},{key:"_checkEventBindings",value:function(){var e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);Xk(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}},{key:"_updateHiddenIndices",value:function(){var e,t=this._hiddenIndices,n=Mk(this._getUniformDataChanges()||[]);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.method,o=r.start,a=r.count;iO(t,o,"_removeElements"===i?-a:a)}}catch(s){n.e(s)}finally{n.f()}}},{key:"_getUniformDataChanges",value:function(){var e=this._dataChanges;if(e&&e.length){this._dataChanges=[];for(var t=this.data.datasets.length,n=function(t){return new Set(e.filter((function(e){return e[0]===t})).map((function(e,t){return t+","+e.splice(1).join(",")})))},r=n(0),i=1;i<t;i++)if(!Xk(r,n(i)))return;return Array.from(r).map((function(e){return e.split(",")})).map((function(e){return{method:e[1],start:+e[2],count:+e[3]}}))}}},{key:"_updateLayout",value:function(e){var t=this;if(!1!==this.notifyPlugins("beforeLayout",{cancelable:!0})){yM(this,this.width,this.height,e);var n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],zk(this.boxes,(function(e){var n;r&&"chartArea"===e.position||(e.configure&&e.configure(),(n=t._layers).push.apply(n,g(e._layers())))}),this),this._layers.forEach((function(e,t){e._idx=t})),this.notifyPlugins("afterLayout")}}},{key:"_updateDatasets",value:function(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(var t=0,n=this.data.datasets.length;t<n;++t)this.getDatasetMeta(t).controller.configure();for(var r=0,i=this.data.datasets.length;r<i;++r)this._updateDataset(r,$k(e)?e({datasetIndex:r}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}},{key:"_updateDataset",value:function(e,t){var n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}},{key:"render",value:function(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&($E.has(this)?this.attached&&!$E.running(this)&&$E.start(this):(this.draw(),JM({chart:this})))}},{key:"draw",value:function(){var e;if(this._resizeBeforeDraw){var t=this._resizeBeforeDraw,n=t.width,r=t.height;this._resize(n,r),this._resizeBeforeDraw=null}if(this.clear(),!(this.width<=0||this.height<=0)&&!1!==this.notifyPlugins("beforeDraw",{cancelable:!0})){var i=this._layers;for(e=0;e<i.length&&i[e].z<=0;++e)i[e].draw(this.chartArea);for(this._drawDatasets();e<i.length;++e)i[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}}},{key:"_getSortedDatasetMetas",value:function(e){var t,n,r=this._sortedMetasets,i=[];for(t=0,n=r.length;t<n;++t){var o=r[t];e&&!o.visible||i.push(o)}return i}},{key:"getSortedVisibleDatasetMetas",value:function(){return this._getSortedDatasetMetas(!0)}},{key:"_drawDatasets",value:function(){if(!1!==this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})){for(var e=this.getSortedVisibleDatasetMetas(),t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}}},{key:"_drawDataset",value:function(e){var t=this.ctx,n=e._clip,r=!n.disabled,i=this.chartArea,o={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(r&&LC(t,{left:!1===n.left?0:i.left-n.left,right:!1===n.right?this.width:i.right+n.right,top:!1===n.top?0:i.top-n.top,bottom:!1===n.bottom?this.height:i.bottom+n.bottom}),e.controller.draw(),r&&AC(t),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}},{key:"isPointInArea",value:function(e){return RC(e,this.chartArea,this._minPadding)}},{key:"getElementsAtEventForMode",value:function(e,t,n,r){var i=nM.modes[t];return"function"===typeof i?i(this,e,n,r):[]}},{key:"getDatasetMeta",value:function(e){var t=this.data.datasets[e],n=this._metasets,r=n.filter((function(e){return e&&e._dataset===t})).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}},{key:"getContext",value:function(){return this.$context||(this.$context=JC(null,{chart:this,type:"chart"}))}},{key:"getVisibleDatasetCount",value:function(){return this.getSortedVisibleDatasetMetas().length}},{key:"isDatasetVisible",value:function(e){var t=this.data.datasets[e];if(!t)return!1;var n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}},{key:"setDatasetVisibility",value:function(e,t){this.getDatasetMeta(e).hidden=!t}},{key:"toggleDataVisibility",value:function(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}},{key:"getDataVisibility",value:function(e){return!this._hiddenIndices[e]}},{key:"_updateVisibility",value:function(e,t,n){var r=n?"show":"hide",i=this.getDatasetMeta(e),o=i.controller._resolveAnimations(void 0,r);Qk(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),o.update(i,{visible:n}),this.update((function(t){return t.datasetIndex===e?r:void 0})))}},{key:"hide",value:function(e,t){this._updateVisibility(e,t,!1)}},{key:"show",value:function(e,t){this._updateVisibility(e,t,!0)}},{key:"_destroyDatasetMeta",value:function(e){var t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}},{key:"_stop",value:function(){var e,t;for(this.stop(),$E.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}},{key:"destroy",value:function(){this.notifyPlugins("beforeDestroy");var e=this.canvas,t=this.ctx;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),jC(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete nO[this.id],this.notifyPlugins("afterDestroy")}},{key:"toBase64Image",value:function(){var e;return(e=this.canvas).toDataURL.apply(e,arguments)}},{key:"bindEvents",value:function(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}},{key:"bindUserEvents",value:function(){var e=this,t=this._listeners,n=this.platform,r=function(t,n,r){t.offsetX=n,t.offsetY=r,e._eventHandler(t)};zk(this.options.events,(function(i){return function(r,i){n.addEventListener(e,r,i),t[r]=i}(i,r)}))}},{key:"bindResponsiveEvents",value:function(){var e=this;this._responsiveListeners||(this._responsiveListeners={});var t,n=this._responsiveListeners,r=this.platform,i=function(t,i){r.addEventListener(e,t,i),n[t]=i},o=function(t,i){n[t]&&(r.removeEventListener(e,t,i),delete n[t])},a=function(t,n){e.canvas&&e.resize(t,n)},s=function n(){o("attach",n),e.attached=!0,e.resize(),i("resize",a),i("detach",t)};t=function(){e.attached=!1,o("resize",a),e._stop(),e._resize(0,0),i("attach",s)},r.isAttached(this.canvas)?s():t()}},{key:"unbindEvents",value:function(){var e=this;zk(this._listeners,(function(t,n){e.platform.removeEventListener(e,n,t)})),this._listeners={},zk(this._responsiveListeners,(function(t,n){e.platform.removeEventListener(e,n,t)})),this._responsiveListeners=void 0}},{key:"updateHoverStyle",value:function(e,t,n){var r,i,o,a=n?"set":"remove";for("dataset"===t&&this.getDatasetMeta(e[0].datasetIndex).controller["_"+a+"DatasetHoverStyle"](),i=0,o=e.length;i<o;++i){var s=(r=e[i])&&this.getDatasetMeta(r.datasetIndex).controller;s&&s[a+"HoverStyle"](r.element,r.datasetIndex,r.index)}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e){var t=this,n=this._active||[],r=e.map((function(e){var n=e.datasetIndex,r=e.index,i=t.getDatasetMeta(n);if(!i)throw new Error("No dataset found at index "+n);return{datasetIndex:n,element:i.data[r],index:r}}));!Bk(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}},{key:"notifyPlugins",value:function(e,t,n){return this._plugins.notify(this,e,t,n)}},{key:"_updateHoverStyles",value:function(e,t,n){var r=this.options.hover,i=function(e,t){return e.filter((function(e){return!t.some((function(t){return e.datasetIndex===t.datasetIndex&&e.index===t.index}))}))},o=i(t,e),a=n?e:i(e,t);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}},{key:"_eventHandler",value:function(e,t){var n=this,r={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},i=function(t){return(t.options.events||n.options.events).includes(e.native.type)};if(!1!==this.notifyPlugins("beforeEvent",r,i)){var o=this._handleEvent(e,t,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}}},{key:"_handleEvent",value:function(e,t,n){var r=this._active,i=void 0===r?[]:r,o=this.options,a=t,s=this._getActiveElements(e,i,n,a),l=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),u=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,l);n&&(this._lastEvent=null,Fk(o.onHover,[e,s,this],this),l&&Fk(o.onClick,[e,s,this],this));var c=!Bk(s,i);return(c||t)&&(this._active=s,this._updateHoverStyles(s,i,t)),this._lastEvent=u,c}},{key:"_getActiveElements",value:function(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;var i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}}]),e}(),aO=function(){return zk(oO.instances,(function(e){return e._plugins.invalidate()}))},sO=!0;function lO(e,t,n){var r=t.startAngle,i=t.pixelMargin,o=t.x,a=t.y,s=t.outerRadius,l=t.innerRadius,u=i/s;e.beginPath(),e.arc(o,a,s,r-u,n+u),l>i?(u=i/l,e.arc(o,a,l,n+u,r-u,!0)):e.arc(o,a,i,n+iS,r-iS),e.closePath(),e.clip()}function uO(e,t,n,r){var i=function(e){return qC(e,["outerStart","outerEnd","innerStart","innerEnd"])}(e.options.borderRadius),o=(n-t)/2,a=Math.min(o,r*t/2),s=function(e){var t=(n-Math.min(o,e))*r/2;return xS(e,0,Math.min(o,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:xS(i.innerStart,0,a),innerEnd:xS(i.innerEnd,0,a)}}function cO(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function fO(e,t,n,r,i,o){var a=t.x,s=t.y,l=t.startAngle,u=t.pixelMargin,c=t.innerRadius,f=Math.max(t.outerRadius+r+n-u,0),d=c>0?c+r+n+u:0,h=0,p=i-l;if(r){var v=((c>0?c-r:0)+(f>0?f-r:0))/2;h=(p-(0!==v?p*v/(v+r):p))/2}var m=(p-Math.max(.001,p*f-n/Jk)/f)/2,g=l+m+h,y=i-m-h,b=uO(t,d,f,y-g),_=b.outerStart,x=b.outerEnd,w=b.innerStart,k=b.innerEnd,S=f-_,C=f-x,E=g+_/S,T=y-x/C,M=d+w,O=d+k,P=g+w/M,j=y-k/O;if(e.beginPath(),o){if(e.arc(a,s,f,E,T),x>0){var N=cO(C,T,a,s);e.arc(N.x,N.y,x,T,y+iS)}var D=cO(O,y,a,s);if(e.lineTo(D.x,D.y),k>0){var R=cO(O,j,a,s);e.arc(R.x,R.y,k,y+iS,j+Math.PI)}if(e.arc(a,s,d,y-k/d,g+w/d,!0),w>0){var L=cO(M,P,a,s);e.arc(L.x,L.y,w,P+Math.PI,g-iS)}var A=cO(S,g,a,s);if(e.lineTo(A.x,A.y),_>0){var I=cO(S,E,a,s);e.arc(I.x,I.y,_,g-iS,E)}}else{e.moveTo(a,s);var F=Math.cos(E)*f+a,z=Math.sin(E)*f+s;e.lineTo(F,z);var B=Math.cos(T)*f+a,U=Math.sin(T)*f+s;e.lineTo(B,U)}e.closePath()}function dO(e,t,n,r,i,o){var a=t.options,s=a.borderWidth,l=a.borderJoinStyle,u="inner"===a.borderAlign;s&&(u?(e.lineWidth=2*s,e.lineJoin=l||"round"):(e.lineWidth=s,e.lineJoin=l||"bevel"),t.fullCircles&&function(e,t,n){var r,i=t.x,o=t.y,a=t.startAngle,s=t.pixelMargin,l=t.fullCircles,u=Math.max(t.outerRadius-s,0),c=t.innerRadius+s;for(n&&lO(e,t,a+eS),e.beginPath(),e.arc(i,o,c,a+eS,a,!0),r=0;r<l;++r)e.stroke();for(e.beginPath(),e.arc(i,o,u,a,a+eS),r=0;r<l;++r)e.stroke()}(e,t,u),u&&lO(e,t,i),fO(e,t,n,r,i,o),e.stroke())}Object.defineProperties(oO,{defaults:{enumerable:sO,value:TC},instances:{enumerable:sO,value:nO},overrides:{enumerable:sO,value:wC},registry:{enumerable:sO,value:WT},version:{enumerable:sO,value:"3.9.1"},getChart:{enumerable:sO,value:rO},register:{enumerable:sO,value:function(){WT.add.apply(WT,arguments),aO()}},unregister:{enumerable:sO,value:function(){WT.remove.apply(WT,arguments),aO()}}});var hO=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this)).options=void 0,r.circumference=void 0,r.startAngle=void 0,r.endAngle=void 0,r.innerRadius=void 0,r.outerRadius=void 0,r.pixelMargin=0,r.fullCircles=0,e&&Object.assign($s(r),e),r}return Vt(n,[{key:"inRange",value:function(e,t,n){var r=mS(this.getProps(["x","y"],n),{x:e,y:t}),i=r.angle,o=r.distance,a=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),s=a.startAngle,l=a.endAngle,u=a.innerRadius,c=a.outerRadius,f=a.circumference,d=this.options.spacing/2,h=Ak(f,l-s)>=eS||_S(i,s,l),p=wS(o,u+d,c+d);return h&&p}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),n=t.x,r=t.y,i=t.startAngle,o=t.endAngle,a=t.innerRadius,s=t.outerRadius,l=this.options,u=l.offset,c=(i+o)/2,f=(a+s+l.spacing+u)/2;return{x:n+Math.cos(c)*f,y:r+Math.sin(c)*f}}},{key:"tooltipPosition",value:function(e){return this.getCenterPoint(e)}},{key:"draw",value:function(e){var t=this.options,n=this.circumference,r=(t.offset||0)/2,i=(t.spacing||0)/2,o=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>eS?Math.floor(n/eS):0,!(0===n||this.innerRadius<0||this.outerRadius<0)){e.save();var a=0;if(r){a=r/2;var s=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(s)*a,Math.sin(s)*a),this.circumference>=Jk&&(a=r)}e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor;var l=function(e,t,n,r,i){var o=t.fullCircles,a=t.startAngle,s=t.circumference,l=t.endAngle;if(o){fO(e,t,n,r,a+eS,i);for(var u=0;u<o;++u)e.fill();isNaN(s)||(l=a+s%eS,s%eS===0&&(l+=eS))}return fO(e,t,n,r,l,i),e.fill(),l}(e,this,a,i,o);dO(e,this,a,i,l,o),e.restore()}}}]),n}(PT);function pO(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=Ak(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ak(n.borderDash,t.borderDash)),e.lineDashOffset=Ak(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ak(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ak(n.borderWidth,t.borderWidth),e.strokeStyle=Ak(n.borderColor,t.borderColor)}function vO(e,t,n){e.lineTo(n.x,n.y)}function mO(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.length,i=n.start,o=void 0===i?0:i,a=n.end,s=void 0===a?r-1:a,l=t.start,u=t.end,c=Math.max(o,l),f=Math.min(s,u),d=o<l&&s<l||o>u&&s>u;return{count:r,start:c,loop:t.loop,ilen:f<c&&!d?r+f-c:f-c}}function gO(e,t,n,r){var i,o,a,s=t.points,l=t.options,u=mO(s,n,r),c=u.count,f=u.start,d=u.loop,h=u.ilen,p=function(e){return e.stepped?IC:e.tension||"monotone"===e.cubicInterpolationMode?FC:vO}(l),v=r||{},m=v.move,g=void 0===m||m,y=v.reverse;for(i=0;i<=h;++i)(o=s[(f+(y?h-i:i))%c]).skip||(g?(e.moveTo(o.x,o.y),g=!1):p(e,a,o,y,l.stepped),a=o);return d&&p(e,a,o=s[(f+(y?h:0))%c],y,l.stepped),!!d}function yO(e,t,n,r){var i,o,a,s,l,u,c=t.points,f=mO(c,n,r),d=f.count,h=f.start,p=f.ilen,v=r||{},m=v.move,g=void 0===m||m,y=v.reverse,b=0,_=0,x=function(e){return(h+(y?p-e:e))%d},w=function(){s!==l&&(e.lineTo(b,l),e.lineTo(b,s),e.lineTo(b,u))};for(g&&(o=c[x(0)],e.moveTo(o.x,o.y)),i=0;i<=p;++i)if(!(o=c[x(i)]).skip){var k=o.x,S=o.y,C=0|k;C===a?(S<s?s=S:S>l&&(l=S),b=(_*b+k)/++_):(w(),e.lineTo(k,S),a=C,_=0,s=l=S),u=S}w()}function bO(e){var t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?yO:gO}hO.id="arc",hO.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},hO.defaultRoutes={backgroundColor:"backgroundColor"};var _O="function"===typeof Path2D;function xO(e,t,n,r){_O&&!t.options.segment?function(e,t,n,r){var i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),pO(e,t.options),e.stroke(i)}(e,t,n,r):function(e,t,n,r){var i,o=t.segments,a=t.options,s=bO(t),l=Mk(o);try{for(l.s();!(i=l.n()).done;){var u=i.value;pO(e,a,u.style),e.beginPath(),s(e,t,u,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}}catch(c){l.e(c)}finally{l.f()}}(e,t,n,r)}var wO=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this)).animated=!0,r.options=void 0,r._chart=void 0,r._loop=void 0,r._fullLoop=void 0,r._path=void 0,r._points=void 0,r._segments=void 0,r._decimated=!1,r._pointsUpdated=!1,r._datasetIndex=void 0,e&&Object.assign($s(r),e),r}return Vt(n,[{key:"updateControlPoints",value:function(e,t){var n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){var r=n.spanGaps?this._loop:this._fullLoop;wE(this._points,n,e,r,t),this._pointsUpdated=!0}}},{key:"points",get:function(){return this._points},set:function(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}},{key:"segments",get:function(){return this._segments||(this._segments=function(e,t){var n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];var o=!!e._loop,a=function(e,t,n,r){var 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{start:i,end:o%=t}}(n,i,o,r),s=a.start,l=a.end;return qE(e,!0===r?[{start:s,end:l,loop:o}]:function(e,t,n,r){var i,o=e.length,a=[],s=t,l=e[t];for(i=t+1;i<=n;++i){var u=e[i%o];u.skip||u.stop?l.skip||(r=!1,a.push({start:t%o,end:(i-1)%o,loop:r}),t=s=u.stop?i:null):(s=i,l.skip&&(t=i)),l=u}return null!==s&&a.push({start:t%o,end:s%o,loop:r}),a}(n,s,l<s?l+i:l,!!e._fullLoop&&0===s&&l===i-1),n,t)}(this,this.options.segment))}},{key:"first",value:function(){var e=this.segments,t=this.points;return e.length&&t[e[0].start]}},{key:"last",value:function(){var e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}},{key:"interpolate",value:function(e,t){var n=this.options,r=e[t],i=this.points,o=YE(this,{property:t,start:r,end:r});if(o.length){var a,s,l=[],u=function(e){return e.stepped?AE:e.tension||"monotone"===e.cubicInterpolationMode?IE:LE}(n);for(a=0,s=o.length;a<s;++a){var c=o[a],f=c.start,d=c.end,h=i[f],p=i[d];if(h!==p){var v=u(h,p,Math.abs((r-h[t])/(p[t]-h[t])),n.stepped);v[t]=e[t],l.push(v)}else l.push(h)}return 1===l.length?l[0]:l}}},{key:"pathSegment",value:function(e,t,n){return bO(this)(e,this,t,n)}},{key:"path",value:function(e,t,n){var r=this.segments,i=bO(this),o=this._loop;t=t||0,n=n||this.points.length-t;var a,s=Mk(r);try{for(s.s();!(a=s.n()).done;){o&=i(e,this,a.value,{start:t,end:t+n-1})}}catch(l){s.e(l)}finally{s.f()}return!!o}},{key:"draw",value:function(e,t,n,r){var i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),xO(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}]),n}(PT);function kO(e,t,n,r){var i=e.options,o=e.getProps([n],r)[n];return Math.abs(t-o)<i.radius+i.hitRadius}wO.id="line",wO.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},wO.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},wO.descriptors={_scriptable:!0,_indexable:function(e){return"borderDash"!==e&&"fill"!==e}};var SO=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this)).options=void 0,r.parsed=void 0,r.skip=void 0,r.stop=void 0,e&&Object.assign($s(r),e),r}return Vt(n,[{key:"inRange",value:function(e,t,n){var r=this.options,i=this.getProps(["x","y"],n),o=i.x,a=i.y;return Math.pow(e-o,2)+Math.pow(t-a,2)<Math.pow(r.hitRadius+r.radius,2)}},{key:"inXRange",value:function(e,t){return kO(this,e,"x",t)}},{key:"inYRange",value:function(e,t){return kO(this,e,"y",t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}},{key:"size",value:function(e){var t=(e=e||this.options||{}).radius||0;return 2*((t=Math.max(t,t&&e.hoverRadius||0))+(t&&e.borderWidth||0))}},{key:"draw",value:function(e,t){var n=this.options;this.skip||n.radius<.1||!RC(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,NC(e,n,this.x,this.y))}},{key:"getRange",value:function(){var e=this.options||{};return e.radius+e.hitRadius}}]),n}(PT);function CO(e,t){var n,r,i,o,a,s=e.getProps(["x","y","base","width","height"],t),l=s.x,u=s.y,c=s.base,f=s.width,d=s.height;return e.horizontal?(a=d/2,n=Math.min(l,c),r=Math.max(l,c),i=u-a,o=u+a):(n=l-(a=f/2),r=l+a,i=Math.min(u,c),o=Math.max(u,c)),{left:n,top:i,right:r,bottom:o}}function EO(e,t,n,r){return e?0:xS(t,n,r)}function TO(e){var t=CO(e),n=t.right-t.left,r=t.bottom-t.top,i=function(e,t,n){var r=e.options.borderWidth,i=e.borderSkipped,o=GC(r);return{t:EO(i.top,o.top,0,n),r:EO(i.right,o.right,0,t),b:EO(i.bottom,o.bottom,0,n),l:EO(i.left,o.left,0,t)}}(e,n/2,r/2),o=function(e,t,n){var r=e.getProps(["enableBorderRadius"]).enableBorderRadius,i=e.options.borderRadius,o=KC(i),a=Math.min(t,n),s=e.borderSkipped,l=r||Dk(i);return{topLeft:EO(!l||s.top||s.left,o.topLeft,0,a),topRight:EO(!l||s.top||s.right,o.topRight,0,a),bottomLeft:EO(!l||s.bottom||s.left,o.bottomLeft,0,a),bottomRight:EO(!l||s.bottom||s.right,o.bottomRight,0,a)}}(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 MO(e,t,n,r){var i=null===t,o=null===n,a=e&&!(i&&o)&&CO(e,r);return a&&(i||wS(t,a.left,a.right))&&(o||wS(n,a.top,a.bottom))}function OO(e,t){e.rect(t.x,t.y,t.w,t.h)}function PO(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+a,radius:e.radius}}SO.id="point",SO.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},SO.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var jO=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this)).options=void 0,r.horizontal=void 0,r.base=void 0,r.width=void 0,r.height=void 0,r.inflateAmount=void 0,e&&Object.assign($s(r),e),r}return Vt(n,[{key:"draw",value:function(e){var t,n=this.inflateAmount,r=this.options,i=r.borderColor,o=r.backgroundColor,a=TO(this),s=a.inner,l=a.outer,u=(t=l.radius).topLeft||t.topRight||t.bottomLeft||t.bottomRight?VC:OO;e.save(),l.w===s.w&&l.h===s.h||(e.beginPath(),u(e,PO(l,n,s)),e.clip(),u(e,PO(s,-n,l)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),u(e,PO(s,n)),e.fillStyle=o,e.fill(),e.restore()}},{key:"inRange",value:function(e,t,n){return MO(this,e,t,n)}},{key:"inXRange",value:function(e,t){return MO(this,e,null,t)}},{key:"inYRange",value:function(e,t){return MO(this,null,e,t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","base","horizontal"],e),n=t.x,r=t.y,i=t.base,o=t.horizontal;return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}},{key:"getRange",value:function(e){return"x"===e?this.width/2:this.height/2}}]),n}(PT);jO.id="bar",jO.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},jO.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var NO=Object.freeze({__proto__:null,ArcElement:hO,LineElement:wO,PointElement:SO,BarElement:jO});function DO(e){if(e._decimated){var t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function RO(e){e.data.datasets.forEach((function(e){DO(e)}))}var LO={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:function(e,t,n){if(n.enabled){var r=e.width;e.data.datasets.forEach((function(t,i){var o=t._data,a=t.indexAxis,s=e.getDatasetMeta(i),l=o||t.data;if("y"!==XC([a,e.options.indexAxis])&&s.controller.supportsDecimation){var u=e.scales[s.xAxisID];if(("linear"===u.type||"time"===u.type)&&!e.options.parsing){var c=function(e,t){var n=t.length,r=0,i=e.iScale,o=i.getUserBounds(),a=o.min,s=o.max,l=o.minDefined,u=o.maxDefined;return l&&(r=xS(SS(t,i.axis,a).lo,0,n-1)),{start:r,count:u?xS(SS(t,i.axis,s).hi+1,r,n)-r:n-r}}(s,l),f=c.start,d=c.count;if(d<=(n.threshold||4*r))DO(t);else{var h;switch(jk(o)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":h=function(e,t,n,r,i){var o=i.samples||r;if(o>=n)return e.slice(t,t+n);var a,s,l,u,c,f=[],d=(n-2)/(o-2),h=0,p=t+n-1,v=t;for(f[h++]=e[v],a=0;a<o-2;a++){var m=0,g=0,y=void 0,b=Math.floor((a+1)*d)+1+t,_=Math.min(Math.floor((a+2)*d)+1,n)+t,x=_-b;for(y=b;y<_;y++)m+=e[y].x,g+=e[y].y;m/=x,g/=x;var w=Math.floor(a*d)+1+t,k=Math.min(Math.floor((a+1)*d)+1,n)+t,S=e[v],C=S.x,E=S.y;for(l=u=-1,y=w;y<k;y++)(u=.5*Math.abs((C-m)*(e[y].y-E)-(C-e[y].x)*(g-E)))>l&&(l=u,s=e[y],c=y);f[h++]=s,v=c}return f[h++]=e[p],f}(l,f,d,r,n);break;case"min-max":h=function(e,t,n,r){var i,o,a,s,l,u,c,f,d,h,p=0,v=0,m=[],g=t+n-1,y=e[t].x,b=e[g].x-y;for(i=t;i<t+n;++i){a=((o=e[i]).x-y)/b*r,s=o.y;var _=0|a;if(_===l)s<d?(d=s,u=i):s>h&&(h=s,c=i),p=(v*p+o.x)/++v;else{var x=i-1;if(!jk(u)&&!jk(c)){var w=Math.min(u,c),k=Math.max(u,c);w!==f&&w!==x&&m.push(Ze(Ze({},e[w]),{},{x:p})),k!==f&&k!==x&&m.push(Ze(Ze({},e[k]),{},{x:p}))}i>0&&x!==f&&m.push(e[x]),m.push(o),l=_,v=0,d=h=s,u=c=f=i}}return m}(l,f,d,r);break;default:throw new Error("Unsupported decimation algorithm '".concat(n.algorithm,"'"))}t._decimated=h}}}}))}else RO(e)},destroy:function(e){RO(e)}};function AO(e,t,n,r){if(!r){var i=t[e],o=n[e];return"angle"===e&&(i=bS(i),o=bS(o)),{property:e,start:i,end:o}}}function IO(e,t,n){for(;t>e;t--){var r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function FO(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function zO(e,t){var n=[],r=!1;return Nk(e)?(r=!0,n=e):n=function(e,t){var n=e||{},r=n.x,i=void 0===r?null:r,o=n.y,a=void 0===o?null:o,s=t.points,l=[];return t.segments.forEach((function(e){var t=e.start,n=e.end;n=IO(t,n,s);var r=s[t],o=s[n];null!==a?(l.push({x:r.x,y:a}),l.push({x:o.x,y:a})):null!==i&&(l.push({x:i,y:r.y}),l.push({x:i,y:o.y}))})),l}(e,t),n.length?new wO({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function BO(e){return e&&!1!==e.fill}function UO(e,t,n){var r,i=e[t].fill,o=[t];if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!Rk(i))return i;if(!(r=e[i]))return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function VO(e,t,n){var r=function(e){var t=e.options,n=t.fill,r=Ak(n&&n.target,n);void 0===r&&(r=!!t.backgroundColor);if(!1===r||null===r)return!1;if(!0===r)return"origin";return r}(e);if(Dk(r))return!isNaN(r.value)&&r;var i=parseFloat(r);return Rk(i)&&Math.floor(i)===i?function(e,t,n,r){"-"!==e&&"+"!==e||(n=t+n);if(n===t||n<0||n>=r)return!1;return n}(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function HO(e,t,n){for(var r=[],i=0;i<n.length;i++){var o=WO(n[i],t,"x"),a=o.first,s=o.last,l=o.point;if(!(!l||a&&s))if(a)r.unshift(l);else if(e.push(l),!s)break}e.push.apply(e,r)}function WO(e,t,n){var r=e.interpolate(t,n);if(!r)return{};for(var i=r[n],o=e.segments,a=e.points,s=!1,l=!1,u=0;u<o.length;u++){var c=o[u],f=a[c.start][n],d=a[c.end][n];if(wS(i,f,d)){s=i===f,l=i===d;break}}return{first:s,last:l,point:r}}var ZO=function(){function e(t){Ht(this,e),this.x=t.x,this.y=t.y,this.radius=t.radius}return Vt(e,[{key:"pathSegment",value:function(e,t,n){var r=this.x,i=this.y,o=this.radius;return t=t||{start:0,end:eS},e.arc(r,i,o,t.end,t.start,!0),!n.bounds}},{key:"interpolate",value:function(e){var t=this.x,n=this.y,r=this.radius,i=e.angle;return{x:t+Math.cos(i)*r,y:n+Math.sin(i)*r,angle:i}}}]),e}();function YO(e){var t=e.chart,n=e.fill,r=e.line;if(Rk(n))return function(e,t){var n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}(t,n);if("stack"===n)return function(e){var t=e.scale,n=e.index,r=e.line,i=[],o=r.segments,a=r.points,s=function(e,t){for(var n=[],r=e.getMatchingVisibleMetas("line"),i=0;i<r.length;i++){var o=r[i];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}(t,n);s.push(zO({x:null,y:t.bottom},r));for(var l=0;l<o.length;l++)for(var u=o[l],c=u.start;c<=u.end;c++)HO(i,a[c],s);return new wO({points:i,options:{}})}(e);if("shape"===n)return!0;var i=function(e){if((e.scale||{}).getPointPositionForValue)return function(e){var t=e.scale,n=e.fill,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,a=function(e,t,n){return"start"===e?n:"end"===e?t.options.reverse?t.min:t.max:Dk(e)?e.value:t.getBaseValue()}(n,t,o),s=[];if(r.grid.circular){var l=t.getPointPositionForValue(0,o);return new ZO({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(a)})}for(var u=0;u<i;++u)s.push(t.getPointPositionForValue(u,a));return s}(e);return function(e){var t=e.scale,n=void 0===t?{}:t,r=function(e,t){var n=null;return"start"===e?n=t.bottom:"end"===e?n=t.top:Dk(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}(e.fill,n);if(Rk(r)){var i=n.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}(e)}(e);return i instanceof ZO?i:zO(i,r)}function qO(e,t,n){var r=YO(t),i=t.line,o=t.scale,a=t.axis,s=i.options,l=s.fill,u=s.backgroundColor,c=l||{},f=c.above,d=void 0===f?u:f,h=c.below,p=void 0===h?u:h;r&&i.points.length&&(LC(e,n),function(e,t){var n=t.line,r=t.target,i=t.above,o=t.below,a=t.area,s=t.scale,l=n._loop?"angle":t.axis;e.save(),"x"===l&&o!==i&&(GO(e,r,a.top),KO(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore(),e.save(),GO(e,r,a.bottom));KO(e,{line:n,target:r,color:o,scale:s,property:l}),e.restore()}(e,{line:i,target:r,above:d,below:p,area:n,scale:o,axis:a}),AC(e))}function GO(e,t,n){var r=t.segments,i=t.points,o=!0,a=!1;e.beginPath();var s,l=Mk(r);try{for(l.s();!(s=l.n()).done;){var u=s.value,c=u.start,f=u.end,d=i[c],h=i[IO(c,f,i)];o?(e.moveTo(d.x,d.y),o=!1):(e.lineTo(d.x,n),e.lineTo(d.x,d.y)),(a=!!t.pathSegment(e,u,{move:a}))?e.closePath():e.lineTo(h.x,n)}}catch(p){l.e(p)}finally{l.f()}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function KO(e,t){var n,r=t.line,i=t.target,o=t.property,a=t.color,s=t.scale,l=function(e,t,n){var r,i=e.segments,o=e.points,a=t.points,s=[],l=Mk(i);try{for(l.s();!(r=l.n()).done;){var u=r.value,c=u.start,f=u.end;f=IO(c,f,o);var d=AO(n,o[c],o[f],u.loop);if(t.segments){var h,p=Mk(YE(t,d));try{for(p.s();!(h=p.n()).done;){var v,m=h.value,g=AO(n,a[m.start],a[m.end],m.loop),y=Mk(ZE(u,o,g));try{for(y.s();!(v=y.n()).done;){var b=v.value;s.push({source:b,target:m,start:He({},n,FO(d,g,"start",Math.max)),end:He({},n,FO(d,g,"end",Math.min))})}}catch(_){y.e(_)}finally{y.f()}}}catch(_){p.e(_)}finally{p.f()}}else s.push({source:u,target:d,start:o[c],end:o[f]})}}catch(_){l.e(_)}finally{l.f()}return s}(r,i,o),u=Mk(l);try{for(u.s();!(n=u.n()).done;){var c=n.value,f=c.source,d=c.target,h=c.start,p=c.end,v=f.style,m=(v=void 0===v?{}:v).backgroundColor,g=void 0===m?a:m,y=!0!==i;e.save(),e.fillStyle=g,QO(e,s,y&&AO(o,h,p)),e.beginPath();var b=!!r.pathSegment(e,f),_=void 0;if(y){b?e.closePath():$O(e,i,p,o);var x=!!i.pathSegment(e,d,{move:b,reverse:!0});(_=b&&x)||$O(e,i,h,o)}e.closePath(),e.fill(_?"evenodd":"nonzero"),e.restore()}}catch(w){u.e(w)}finally{u.f()}}function QO(e,t,n){var r=t.chart.chartArea,i=r.top,o=r.bottom,a=n||{},s=a.property,l=a.start,u=a.end;"x"===s&&(e.beginPath(),e.rect(l,i,u-l,o-i),e.clip())}function $O(e,t,n,r){var i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var XO={id:"filler",afterDatasetsUpdate:function(e,t,n){var r,i,o,a,s=(e.data.datasets||[]).length,l=[];for(i=0;i<s;++i)a=null,(o=(r=e.getDatasetMeta(i)).dataset)&&o.options&&o instanceof wO&&(a={visible:e.isDatasetVisible(i),index:i,fill:VO(o,i,s),chart:e,axis:r.controller.options.indexAxis,scale:r.vScale,line:o}),r.$filler=a,l.push(a);for(i=0;i<s;++i)(a=l[i])&&!1!==a.fill&&(a.fill=UO(l,i,n.propagate))},beforeDraw:function(e,t,n){for(var r="beforeDraw"===n.drawTime,i=e.getSortedVisibleDatasetMetas(),o=e.chartArea,a=i.length-1;a>=0;--a){var s=i[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),r&&s.fill&&qO(e.ctx,s,o))}},beforeDatasetsDraw:function(e,t,n){if("beforeDatasetsDraw"===n.drawTime)for(var r=e.getSortedVisibleDatasetMetas(),i=r.length-1;i>=0;--i){var o=r[i].$filler;BO(o)&&qO(e.ctx,o,e.chartArea)}},beforeDatasetDraw:function(e,t,n){var r=t.meta.$filler;BO(r)&&"beforeDatasetDraw"===n.drawTime&&qO(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},JO=function(e,t){var n=e.boxHeight,r=void 0===n?t:n,i=e.boxWidth,o=void 0===i?t:i;return e.usePointStyle&&(r=Math.min(r,t),o=e.pointStyleWidth||Math.min(o,t)),{boxWidth:o,boxHeight:r,itemHeight:Math.max(t,r)}},eP=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this))._added=!1,r.legendHitBoxes=[],r._hoveredItem=null,r.doughnutMode=!1,r.chart=e.chart,r.options=e.options,r.ctx=e.ctx,r.legendItems=void 0,r.columnSizes=void 0,r.lineWidths=void 0,r.maxHeight=void 0,r.maxWidth=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.height=void 0,r.width=void 0,r._margins=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Vt(n,[{key:"update",value:function(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}},{key:"setDimensions",value:function(){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)}},{key:"buildLabels",value:function(){var e=this,t=this.options.labels||{},n=Fk(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),t.sort&&(n=n.sort((function(n,r){return t.sort(n,r,e.chart.data)}))),this.options.reverse&&n.reverse(),this.legendItems=n}},{key:"fit",value:function(){var e=this.options,t=this.ctx;if(e.display){var n,r,i=e.labels,o=$C(i.font),a=o.size,s=this._computeTitleHeight(),l=JO(i,a),u=l.boxWidth,c=l.itemHeight;t.font=o.string,this.isHorizontal()?(n=this.maxWidth,r=this._fitRows(s,a,u,c)+10):(r=this.maxHeight,n=this._fitCols(s,a,u,c)+10),this.width=Math.min(n,e.maxWidth||this.maxWidth),this.height=Math.min(r,e.maxHeight||this.maxHeight)}else this.width=this.height=0}},{key:"_fitRows",value:function(e,t,n,r){var i=this.ctx,o=this.maxWidth,a=this.options.labels.padding,s=this.legendHitBoxes=[],l=this.lineWidths=[0],u=r+a,c=e;i.textAlign="left",i.textBaseline="middle";var f=-1,d=-u;return this.legendItems.forEach((function(e,h){var p=n+t/2+i.measureText(e.text).width;(0===h||l[l.length-1]+p+2*a>o)&&(c+=u,l[l.length-(h>0?0:1)]=0,d+=u,f++),s[h]={left:0,top:d,row:f,width:p,height:r},l[l.length-1]+=p+a})),c}},{key:"_fitCols",value:function(e,t,n,r){var i=this.ctx,o=this.maxHeight,a=this.options.labels.padding,s=this.legendHitBoxes=[],l=this.columnSizes=[],u=o-e,c=a,f=0,d=0,h=0,p=0;return this.legendItems.forEach((function(e,o){var v=n+t/2+i.measureText(e.text).width;o>0&&d+r+2*a>u&&(c+=f+a,l.push({width:f,height:d}),h+=f+a,p++,f=d=0),s[o]={left:h,top:d,col:p,width:v,height:r},f=Math.max(f,v),d+=r+a})),c+=f,l.push({width:f,height:d}),c}},{key:"adjustHitBoxes",value:function(){if(this.options.display){var e=this._computeTitleHeight(),t=this.legendHitBoxes,n=this.options,r=n.align,i=n.labels.padding,o=BE(n.rtl,this.left,this.width);if(this.isHorizontal()){var a,s=0,l=NS(r,this.left+i,this.right-this.lineWidths[s]),u=Mk(t);try{for(u.s();!(a=u.n()).done;){var c=a.value;s!==c.row&&(s=c.row,l=NS(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+e+i,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+i}}catch(m){u.e(m)}finally{u.f()}}else{var f,d=0,h=NS(r,this.top+e+i,this.bottom-this.columnSizes[d].height),p=Mk(t);try{for(p.s();!(f=p.n()).done;){var v=f.value;v.col!==d&&(d=v.col,h=NS(r,this.top+e+i,this.bottom-this.columnSizes[d].height)),v.top=h,v.left+=this.left+i,v.left=o.leftForLtr(o.x(v.left),v.width),h+=v.height+i}}catch(m){p.e(m)}finally{p.f()}}}}},{key:"isHorizontal",value:function(){return"top"===this.options.position||"bottom"===this.options.position}},{key:"draw",value:function(){if(this.options.display){var e=this.ctx;LC(e,this),this._draw(),AC(e)}}},{key:"_draw",value:function(){var e,t=this,n=this.options,r=this.columnSizes,i=this.lineWidths,o=this.ctx,a=n.align,s=n.labels,l=TC.color,u=BE(n.rtl,this.left,this.width),c=$C(s.font),f=s.color,d=s.padding,h=c.size,p=h/2;this.drawTitle(),o.textAlign=u.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;var v=JO(s,h),m=v.boxWidth,g=v.boxHeight,y=v.itemHeight,b=this.isHorizontal(),_=this._computeTitleHeight();e=b?{x:NS(a,this.left+d,this.right-i[0]),y:this.top+d+_,line:0}:{x:this.left+d,y:NS(a,this.top+_+d,this.bottom-r[0].height),line:0},UE(this.ctx,n.textDirection);var x=y+d;this.legendItems.forEach((function(v,w){o.strokeStyle=v.fontColor||f,o.fillStyle=v.fontColor||f;var k=o.measureText(v.text).width,S=u.textAlign(v.textAlign||(v.textAlign=s.textAlign)),C=m+p+k,E=e.x,T=e.y;u.setWidth(t.width),b?w>0&&E+C+d>t.right&&(T=e.y+=x,e.line++,E=e.x=NS(a,t.left+d,t.right-i[e.line])):w>0&&T+x>t.bottom&&(E=e.x=E+r[e.line].width+d,e.line++,T=e.y=NS(a,t.top+_+d,t.bottom-r[e.line].height)),function(e,t,n){if(!(isNaN(m)||m<=0||isNaN(g)||g<0)){o.save();var r=Ak(n.lineWidth,1);if(o.fillStyle=Ak(n.fillStyle,l),o.lineCap=Ak(n.lineCap,"butt"),o.lineDashOffset=Ak(n.lineDashOffset,0),o.lineJoin=Ak(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=Ak(n.strokeStyle,l),o.setLineDash(Ak(n.lineDash,[])),s.usePointStyle){var i={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},a=u.xPlus(e,m/2);DC(o,i,a,t+p,s.pointStyleWidth&&m)}else{var c=t+Math.max((h-g)/2,0),f=u.leftForLtr(e,m),d=KC(n.borderRadius);o.beginPath(),Object.values(d).some((function(e){return 0!==e}))?VC(o,{x:f,y:c,w:m,h:g,radius:d}):o.rect(f,c,m,g),o.fill(),0!==r&&o.stroke()}o.restore()}}(u.x(E),T,v),E=function(e,t,n,r){return e===(r?"left":"right")?n:"center"===e?(t+n)/2:t}(S,E+m+p,b?E+C:t.right,n.rtl),function(e,t,n){zC(o,n.text,e,t+y/2,c,{strikethrough:n.hidden,textAlign:u.textAlign(n.textAlign)})}(u.x(E),T,v),b?e.x+=C+d:e.y+=x})),VE(this.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var e=this.options,t=e.title,n=$C(t.font),r=QC(t.padding);if(t.display){var i,o=BE(e.rtl,this.left,this.width),a=this.ctx,s=t.position,l=n.size/2,u=r.top+l,c=this.left,f=this.width;if(this.isHorizontal())f=Math.max.apply(Math,g(this.lineWidths)),i=this.top+u,c=NS(e.align,c,this.right-f);else{var d=this.columnSizes.reduce((function(e,t){return Math.max(e,t.height)}),0);i=u+NS(e.align,this.top,this.bottom-d-e.labels.padding-this._computeTitleHeight())}var h=NS(s,c,c+f);a.textAlign=o.textAlign(jS(s)),a.textBaseline="middle",a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,zC(a,t.text,h,i,n)}}},{key:"_computeTitleHeight",value:function(){var e=this.options.title,t=$C(e.font),n=QC(e.padding);return e.display?t.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(e,t){var n,r,i;if(wS(e,this.left,this.right)&&wS(t,this.top,this.bottom))for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(wS(e,(r=i[n]).left,r.left+r.width)&&wS(t,r.top,r.top+r.height))return this.legendItems[n];return null}},{key:"handleEvent",value:function(e){var t=this.options;if(function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t)){var n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){var r=this._hoveredItem,i=function(e,t){return null!==e&&null!==t&&e.datasetIndex===t.datasetIndex&&e.index===t.index}(r,n);r&&!i&&Fk(t.onLeave,[e,r,this],this),this._hoveredItem=n,n&&!i&&Fk(t.onHover,[e,n,this],this)}else n&&Fk(t.onClick,[e,n,this],this)}}}]),n}(PT);var tP={id:"legend",_element:eP,start:function(e,t,n){var r=e.legend=new eP({ctx:e.ctx,options:n,chart:e});gM(e,r,n),vM(e,r)},stop:function(e){mM(e,e.legend),delete e.legend},beforeUpdate:function(e,t,n){var r=e.legend;gM(e,r,n),r.options=n},afterUpdate:function(e){var t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent:function(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick:function(e,t,n){var 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:function(e){return e.chart.options.color},boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.legend.options.labels,r=n.usePointStyle,i=n.pointStyle,o=n.textAlign,a=n.color;return e._getSortedDatasetMetas().map((function(e){var n=e.controller.getStyle(r?0:void 0),s=QC(n.borderWidth);return{text:t[e.index].label,fillStyle:n.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:n.borderCapStyle,lineDash:n.borderDash,lineDashOffset:n.borderDashOffset,lineJoin:n.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:n.borderColor,pointStyle:i||n.pointStyle,rotation:n.rotation,textAlign:o||n.textAlign,borderRadius:0,datasetIndex:e.index}}),this)}},title:{color:function(e){return e.chart.options.color},display:!1,position:"center",text:""}},descriptors:{_scriptable:function(e){return!e.startsWith("on")},labels:{_scriptable:function(e){return!["generateLabels","filter","sort"].includes(e)}}}},nP=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this)).chart=e.chart,r.options=e.options,r.ctx=e.ctx,r._padding=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Vt(n,[{key:"update",value:function(e,t){var n=this.options;if(this.left=0,this.top=0,n.display){this.width=this.right=e,this.height=this.bottom=t;var r=Nk(n.text)?n.text.length:1;this._padding=QC(n.padding);var i=r*$C(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}else this.width=this.height=this.right=this.bottom=0}},{key:"isHorizontal",value:function(){var e=this.options.position;return"top"===e||"bottom"===e}},{key:"_drawArgs",value:function(e){var t,n,r,i=this.top,o=this.left,a=this.bottom,s=this.right,l=this.options,u=l.align,c=0;return this.isHorizontal()?(n=NS(u,o,s),r=i+e,t=s-o):("left"===l.position?(n=o+e,r=NS(u,a,i),c=-.5*Jk):(n=s-e,r=NS(u,i,a),c=.5*Jk),t=a-i),{titleX:n,titleY:r,maxWidth:t,rotation:c}}},{key:"draw",value:function(){var e=this.ctx,t=this.options;if(t.display){var n=$C(t.font),r=n.lineHeight/2+this._padding.top,i=this._drawArgs(r),o=i.titleX,a=i.titleY,s=i.maxWidth,l=i.rotation;zC(e,t.text,0,0,n,{color:t.color,maxWidth:s,rotation:l,textAlign:jS(t.align),textBaseline:"middle",translation:[o,a]})}}}]),n}(PT);var rP={id:"title",_element:nP,start:function(e,t,n){!function(e,t){var n=new nP({ctx:e.ctx,options:t,chart:e});gM(e,n,t),vM(e,n),e.titleBlock=n}(e,n)},stop:function(e){var t=e.titleBlock;mM(e,t),delete e.titleBlock},beforeUpdate:function(e,t,n){var r=e.titleBlock;gM(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}},iP=new WeakMap,oP={id:"subtitle",start:function(e,t,n){var r=new nP({ctx:e.ctx,options:n,chart:e});gM(e,r,n),vM(e,r),iP.set(e,r)},stop:function(e){mM(e,iP.get(e)),iP.delete(e)},beforeUpdate:function(e,t,n){var r=iP.get(e);gM(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}},aP={average:function(e){if(!e.length)return!1;var t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){var a=e[t].element;if(a&&a.hasValue()){var s=a.tooltipPosition();r+=s.x,i+=s.y,++o}}return{x:r/o,y:i/o}},nearest:function(e,t){if(!e.length)return!1;var n,r,i,o=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var l=e[n].element;if(l&&l.hasValue()){var u=gS(t,l.getCenterPoint());u<s&&(s=u,i=l)}}if(i){var c=i.tooltipPosition();o=c.x,a=c.y}return{x:o,y:a}}};function sP(e,t){return t&&(Nk(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function lP(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function uP(e,t){var n=t.element,r=t.datasetIndex,i=t.index,o=e.getDatasetMeta(r).controller,a=o.getLabelAndValue(i),s=a.label,l=a.value;return{chart:e,label:s,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:l,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function cP(e,t){var n=e.chart.ctx,r=e.body,i=e.footer,o=e.title,a=t.boxWidth,s=t.boxHeight,l=$C(t.bodyFont),u=$C(t.titleFont),c=$C(t.footerFont),f=o.length,d=i.length,h=r.length,p=QC(t.padding),v=p.height,m=0,g=r.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);(g+=e.beforeBody.length+e.afterBody.length,f&&(v+=f*u.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),g)&&(v+=h*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(g-h)*l.lineHeight+(g-1)*t.bodySpacing);d&&(v+=t.footerMarginTop+d*c.lineHeight+(d-1)*t.footerSpacing);var y=0,b=function(e){m=Math.max(m,n.measureText(e).width+y)};return n.save(),n.font=u.string,zk(e.title,b),n.font=l.string,zk(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?a+2+t.boxPadding:0,zk(r,(function(e){zk(e.before,b),zk(e.lines,b),zk(e.after,b)})),y=0,n.font=c.string,zk(e.footer,b),n.restore(),{width:m+=p.width,height:v}}function fP(e,t,n,r){var i=n.x,o=n.width,a=e.width,s=e.chartArea,l=s.left,u=s.right,c="center";return"center"===r?c=i<=(l+u)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),function(e,t,n,r){var i=r.x,o=r.width,a=n.caretSize+n.caretPadding;return"left"===e&&i+o+a>t.width||"right"===e&&i-o-a<0||void 0}(c,e,t,n)&&(c="center"),c}function dP(e,t,n){var r=n.yAlign||t.yAlign||function(e,t){var n=t.y,r=t.height;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||fP(e,t,n,r),yAlign:r}}function hP(e,t,n,r){var i=e.caretSize,o=e.caretPadding,a=e.cornerRadius,s=n.xAlign,l=n.yAlign,u=i+o,c=KC(a),f=c.topLeft,d=c.topRight,h=c.bottomLeft,p=c.bottomRight,v=function(e,t){var n=e.x,r=e.width;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,s),m=function(e,t,n){var r=e.y,i=e.height;return"top"===t?r+=n:r-="bottom"===t?i+n:i/2,r}(t,l,u);return"center"===l?"left"===s?v+=u:"right"===s&&(v-=u):"left"===s?v-=Math.max(f,h)+i:"right"===s&&(v+=Math.max(d,p)+i),{x:xS(v,0,r.width-t.width),y:xS(m,0,r.height-t.height)}}function pP(e,t,n){var r=QC(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function vP(e){return sP([],lP(e))}function mP(e,t){var n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var gP=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this)).opacity=0,r._active=[],r._eventPosition=void 0,r._size=void 0,r._cachedAnimations=void 0,r._tooltipItems=[],r.$animations=void 0,r.$context=void 0,r.chart=e.chart||e._chart,r._chart=r.chart,r.options=e.options,r.dataPoints=void 0,r.title=void 0,r.beforeBody=void 0,r.body=void 0,r.afterBody=void 0,r.footer=void 0,r.xAlign=void 0,r.yAlign=void 0,r.x=void 0,r.y=void 0,r.height=void 0,r.width=void 0,r.caretX=void 0,r.caretY=void 0,r.labelColors=void 0,r.labelPointStyles=void 0,r.labelTextColors=void 0,r}return Vt(n,[{key:"initialize",value:function(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}},{key:"_resolveAnimations",value:function(){var e=this._cachedAnimations;if(e)return e;var t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,i=new nT(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}},{key:"getContext",value:function(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,JC(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}},{key:"getTitle",value:function(e,t){var n=t.callbacks,r=n.beforeTitle.apply(this,[e]),i=n.title.apply(this,[e]),o=n.afterTitle.apply(this,[e]),a=[];return a=sP(a,lP(r)),a=sP(a,lP(i)),a=sP(a,lP(o))}},{key:"getBeforeBody",value:function(e,t){return vP(t.callbacks.beforeBody.apply(this,[e]))}},{key:"getBody",value:function(e,t){var n=this,r=t.callbacks,i=[];return zk(e,(function(e){var t={before:[],lines:[],after:[]},o=mP(r,e);sP(t.before,lP(o.beforeLabel.call(n,e))),sP(t.lines,o.label.call(n,e)),sP(t.after,lP(o.afterLabel.call(n,e))),i.push(t)})),i}},{key:"getAfterBody",value:function(e,t){return vP(t.callbacks.afterBody.apply(this,[e]))}},{key:"getFooter",value:function(e,t){var n=t.callbacks,r=n.beforeFooter.apply(this,[e]),i=n.footer.apply(this,[e]),o=n.afterFooter.apply(this,[e]),a=[];return a=sP(a,lP(r)),a=sP(a,lP(i)),a=sP(a,lP(o))}},{key:"_createItems",value:function(e){var t,n,r=this,i=this._active,o=this.chart.data,a=[],s=[],l=[],u=[];for(t=0,n=i.length;t<n;++t)u.push(uP(this.chart,i[t]));return e.filter&&(u=u.filter((function(t,n,r){return e.filter(t,n,r,o)}))),e.itemSort&&(u=u.sort((function(t,n){return e.itemSort(t,n,o)}))),zk(u,(function(t){var n=mP(e.callbacks,t);a.push(n.labelColor.call(r,t)),s.push(n.labelPointStyle.call(r,t)),l.push(n.labelTextColor.call(r,t))})),this.labelColors=a,this.labelPointStyles=s,this.labelTextColors=l,this.dataPoints=u,u}},{key:"update",value:function(e,t){var n,r=this.options.setContext(this.getContext()),i=this._active,o=[];if(i.length){var a=aP[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);var s=this._size=cP(this,r),l=Object.assign({},a,s),u=dP(this.chart,r,l),c=hP(r,l,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,n={opacity:1,x:c.x,y:c.y,width:s.width,height:s.height,caretX:a.x,caretY:a.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=o,this.$context=void 0,n&&this._resolveAnimations().update(this,n),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:t})}},{key:"drawCaret",value:function(e,t,n,r){var i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}},{key:"getCaretPosition",value:function(e,t,n){var r,i,o,a,s,l,u=this.xAlign,c=this.yAlign,f=n.caretSize,d=KC(n.cornerRadius),h=d.topLeft,p=d.topRight,v=d.bottomLeft,m=d.bottomRight,g=e.x,y=e.y,b=t.width,_=t.height;return"center"===c?(s=y+_/2,"left"===u?(i=(r=g)-f,a=s+f,l=s-f):(i=(r=g+b)+f,a=s-f,l=s+f),o=r):(i="left"===u?g+Math.max(h,v)+f:"right"===u?g+b-Math.max(p,m)-f:this.caretX,"top"===c?(s=(a=y)-f,r=i-f,o=i+f):(s=(a=y+_)+f,r=i+f,o=i-f),l=a),{x1:r,x2:i,x3:o,y1:a,y2:s,y3:l}}},{key:"drawTitle",value:function(e,t,n){var r,i,o,a=this.title,s=a.length;if(s){var l=BE(n.rtl,this.x,this.width);for(e.x=pP(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",r=$C(n.titleFont),i=n.titleSpacing,t.fillStyle=n.titleColor,t.font=r.string,o=0;o<s;++o)t.fillText(a[o],l.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+i,o+1===s&&(e.y+=n.titleMarginBottom-i)}}},{key:"_drawColorBox",value:function(e,t,n,r,i){var o=this.labelColors[n],a=this.labelPointStyles[n],s=i.boxHeight,l=i.boxWidth,u=i.boxPadding,c=$C(i.bodyFont),f=pP(this,"left",i),d=r.x(f),h=s<c.lineHeight?(c.lineHeight-s)/2:0,p=t.y+h;if(i.usePointStyle){var v={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},m=r.leftForLtr(d,l)+l/2,y=p+s/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,NC(e,v,m,y),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,NC(e,v,m,y)}else{e.lineWidth=Dk(o.borderWidth)?Math.max.apply(Math,g(Object.values(o.borderWidth))):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;var b=r.leftForLtr(d,l-u),_=r.leftForLtr(r.xPlus(d,1),l-u-2),x=KC(o.borderRadius);Object.values(x).some((function(e){return 0!==e}))?(e.beginPath(),e.fillStyle=i.multiKeyBackground,VC(e,{x:b,y:p,w:l,h:s,radius:x}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),VC(e,{x:_,y:p+1,w:l-2,h:s-2,radius:x}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(b,p,l,s),e.strokeRect(b,p,l,s),e.fillStyle=o.backgroundColor,e.fillRect(_,p+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}},{key:"drawBody",value:function(e,t,n){var r,i,o,a,s,l,u,c=this.body,f=n.bodySpacing,d=n.bodyAlign,h=n.displayColors,p=n.boxHeight,v=n.boxWidth,m=n.boxPadding,g=$C(n.bodyFont),y=g.lineHeight,b=0,_=BE(n.rtl,this.x,this.width),x=function(n){t.fillText(n,_.x(e.x+b),e.y+y/2),e.y+=y+f},w=_.textAlign(d);for(t.textAlign=d,t.textBaseline="middle",t.font=g.string,e.x=pP(this,w,n),t.fillStyle=n.bodyColor,zk(this.beforeBody,x),b=h&&"right"!==w?"center"===d?v/2+m:v+2+m:0,a=0,l=c.length;a<l;++a){for(r=c[a],i=this.labelTextColors[a],t.fillStyle=i,zk(r.before,x),o=r.lines,h&&o.length&&(this._drawColorBox(t,e,a,_,n),y=Math.max(g.lineHeight,p)),s=0,u=o.length;s<u;++s)x(o[s]),y=g.lineHeight;zk(r.after,x)}b=0,y=g.lineHeight,zk(this.afterBody,x),e.y-=f}},{key:"drawFooter",value:function(e,t,n){var r,i,o=this.footer,a=o.length;if(a){var s=BE(n.rtl,this.x,this.width);for(e.x=pP(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",r=$C(n.footerFont),t.fillStyle=n.footerColor,t.font=r.string,i=0;i<a;++i)t.fillText(o[i],s.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+n.footerSpacing}}},{key:"drawBackground",value:function(e,t,n,r){var i=this.xAlign,o=this.yAlign,a=e.x,s=e.y,l=n.width,u=n.height,c=KC(r.cornerRadius),f=c.topLeft,d=c.topRight,h=c.bottomLeft,p=c.bottomRight;t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(a+f,s),"top"===o&&this.drawCaret(e,t,n,r),t.lineTo(a+l-d,s),t.quadraticCurveTo(a+l,s,a+l,s+d),"center"===o&&"right"===i&&this.drawCaret(e,t,n,r),t.lineTo(a+l,s+u-p),t.quadraticCurveTo(a+l,s+u,a+l-p,s+u),"bottom"===o&&this.drawCaret(e,t,n,r),t.lineTo(a+h,s+u),t.quadraticCurveTo(a,s+u,a,s+u-h),"center"===o&&"left"===i&&this.drawCaret(e,t,n,r),t.lineTo(a,s+f),t.quadraticCurveTo(a,s,a+f,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}},{key:"_updateAnimationTarget",value:function(e){var t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){var o=aP[e.position].call(this,this._active,this._eventPosition);if(!o)return;var a=this._size=cP(this,e),s=Object.assign({},o,this._size),l=dP(t,e,s),u=hP(e,s,l,t);r._to===u.x&&i._to===u.y||(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}},{key:"_willRender",value:function(){return!!this.opacity}},{key:"draw",value:function(e){var t=this.options.setContext(this.getContext()),n=this.opacity;if(n){this._updateAnimationTarget(t);var r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;var o=QC(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),UE(e,t.textDirection),i.y+=o.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),VE(e,t.textDirection),e.restore())}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e,t){var n=this,r=this._active,i=e.map((function(e){var t=e.datasetIndex,r=e.index,i=n.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[r],index:r}})),o=!Bk(r,i),a=this._positionChanged(i,t);(o||a)&&(this._active=i,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}},{key:"handleEvent",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;var r=this.options,i=this._active||[],o=this._getActiveElements(e,i,t,n),a=this._positionChanged(o,e),s=t||!Bk(o,i)||a;return s&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}},{key:"_getActiveElements",value:function(e,t,n,r){var i=this.options;if("mouseout"===e.type)return[];if(!r)return t;var o=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&o.reverse(),o}},{key:"_positionChanged",value:function(e,t){var n=this.caretX,r=this.caretY,i=this.options,o=aP[i.position].call(this,e,t);return!1!==o&&(n!==o.x||r!==o.y)}}]),n}(PT);gP.positioners=aP;var yP={id:"tooltip",_element:gP,positioners:aP,afterInit:function(e,t,n){n&&(e.tooltip=new gP({chart:e,options:n}))},beforeUpdate:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw:function(e){var t=e.tooltip;if(t&&t._willRender()){var n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",n))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent:function(e,t){if(e.tooltip){var 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:function(e,t){return t.bodyFont.size},boxWidth:function(e,t){return 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:{beforeTitle:Ok,title:function(e){if(e.length>0){var t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Ok,beforeBody:Ok,beforeLabel:Ok,label:function(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;var t=e.dataset.label||"";t&&(t+=": ");var n=e.formattedValue;return jk(n)||(t+=n),t},labelColor:function(e){var t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor:function(){return this.options.bodyColor},labelPointStyle:function(e){var t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Ok,afterBody:Ok,beforeFooter:Ok,footer:Ok,afterFooter:Ok}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:function(e){return"filter"!==e&&"itemSort"!==e&&"external"!==e},_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},bP=Object.freeze({__proto__:null,Decimation:LO,Filler:XO,Legend:tP,SubTitle:oP,Title:rP,Tooltip:yP});function _P(e,t,n,r){var i=e.indexOf(t);return-1===i?function(e,t,n,r){return"string"===typeof t?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n}(e,t,n,r):i!==e.lastIndexOf(t)?n:i}var xP=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e))._startValue=void 0,r._valueRange=0,r._addedLabels=[],r}return Vt(n,[{key:"init",value:function(e){var t=this._addedLabels;if(t.length){var r,i=this.getLabels(),o=Mk(t);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.index,l=a.label;i[s]===l&&i.splice(s,1)}}catch(u){o.e(u)}finally{o.f()}this._addedLabels=[]}Tk(el(n.prototype),"init",this).call(this,e)}},{key:"parse",value:function(e,t){if(jk(e))return null;var n=this.getLabels();return function(e,t){return null===e?null:xS(Math.round(e),0,t)}(t=isFinite(t)&&n[t]===e?t:_P(n,e,Ak(t,e),this._addedLabels),n.length-1)}},{key:"determineDataLimits",value:function(){var e=this.getUserBounds(),t=e.minDefined,n=e.maxDefined,r=this.getMinMax(!0),i=r.min,o=r.max;"ticks"===this.options.bounds&&(t||(i=0),n||(o=this.getLabels().length-1)),this.min=i,this.max=o}},{key:"buildTicks",value:function(){var e=this.min,t=this.max,n=this.options.offset,r=[],i=this.getLabels();i=0===e&&t===i.length-1?i:i.slice(e,t+1),this._valueRange=Math.max(i.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(var o=e;o<=t;o++)r.push({value:o});return r}},{key:"getLabelForValue",value:function(e){var t=this.getLabels();return e>=0&&e<t.length?t[e]:e}},{key:"configure",value:function(){Tk(el(n.prototype),"configure",this).call(this),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}},{key:"getPixelForValue",value:function(e){return"number"!==typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}},{key:"getPixelForTick",value:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getValueForPixel",value:function(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}},{key:"getBasePixel",value:function(){return this.bottom}}]),n}(UT);function wP(e,t){var n,r,i,o,a=[],s=e.bounds,l=e.step,u=e.min,c=e.max,f=e.precision,d=e.count,h=e.maxTicks,p=e.maxDigits,v=e.includeBounds,m=l||1,g=h-1,y=t.min,b=t.max,_=!jk(u),x=!jk(c),w=!jk(d),k=(b-y)/(p+1),S=uS((b-y)/g/m)*m;if(S<1e-14&&!_&&!x)return[{value:y},{value:b}];(o=Math.ceil(b/S)-Math.floor(y/S))>g&&(S=uS(o*S/g/m)*m),jk(f)||(n=Math.pow(10,f),S=Math.ceil(S*n)/n),"ticks"===s?(r=Math.floor(y/S)*S,i=Math.ceil(b/S)*S):(r=y,i=b),_&&x&&l&&function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e}((c-u)/l,S/1e3)?(S=(c-u)/(o=Math.round(Math.min((c-u)/S,h))),r=u,i=c):w?S=((i=x?c:i)-(r=_?u:r))/(o=d-1):o=fS(o=(i-r)/S,Math.round(o),S/1e3)?Math.round(o):Math.ceil(o);var C=Math.max(vS(S),vS(r));n=Math.pow(10,jk(f)?C:f),r=Math.round(r*n)/n,i=Math.round(i*n)/n;var E=0;for(_&&(v&&r!==u?(a.push({value:u}),r<u&&E++,fS(Math.round((r+E*S)*n)/n,u,kP(u,k,e))&&E++):r<u&&E++);E<o;++E)a.push({value:Math.round((r+E*S)*n)/n});return x&&v&&i!==c?a.length&&fS(a[a.length-1].value,c,kP(c,k,e))?a[a.length-1].value=c:a.push({value:c}):x&&i!==c||a.push({value:i}),a}function kP(e,t,n){var r=n.horizontal,i=hS(n.minRotation),o=(r?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}xP.id="category",xP.defaults={ticks:{callback:xP.prototype.getLabelForValue}};var SP=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).start=void 0,r.end=void 0,r._startValue=void 0,r._endValue=void 0,r._valueRange=0,r}return Vt(n,[{key:"parse",value:function(e,t){return jk(e)||("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}},{key:"handleTickRangeOptions",value:function(){var e=this.options.beginAtZero,t=this.getUserBounds(),n=t.minDefined,r=t.maxDefined,i=this.min,o=this.max,a=function(e){return i=n?i:e},s=function(e){return o=r?o:e};if(e){var l=lS(i),u=lS(o);l<0&&u<0?s(0):l>0&&u>0&&a(0)}if(i===o){var c=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(c=Math.abs(.05*o)),s(o+c),e||a(i-c)}this.min=i,this.max=o}},{key:"getTickLimit",value:function(){var e,t=this.options.ticks,n=t.maxTicksLimit,r=t.stepSize;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1)>1e3&&(console.warn("scales.".concat(this.id,".ticks.stepSize: ").concat(r," would result generating up to ").concat(e," ticks. Limiting to 1000.")),e=1e3):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}},{key:"computeTickLimit",value:function(){return Number.POSITIVE_INFINITY}},{key:"buildTicks",value:function(){var e=this.options,t=e.ticks,n=this.getTickLimit(),r=wP({maxTicks:n=Math.max(2,n),bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&dS(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}},{key:"configure",value:function(){var e=this.ticks,t=this.min,r=this.max;if(Tk(el(n.prototype),"configure",this).call(this),this.options.offset&&e.length){var i=(r-t)/Math.max(e.length-1,1)/2;t-=i,r+=i}this._startValue=t,this._endValue=r,this._valueRange=r-t}},{key:"getLabelForValue",value:function(e){return zE(e,this.chart.options.locale,this.options.ticks.format)}}]),n}(UT),CP=function(e){Js(n,e);var t=rl(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"determineDataLimits",value:function(){var e=this.getMinMax(!0),t=e.min,n=e.max;this.min=Rk(t)?t:0,this.max=Rk(n)?n:1,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){var e=this.isHorizontal(),t=e?this.width:this.height,n=hS(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}},{key:"getPixelForValue",value:function(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}]),n}(SP);function EP(e){return 1===e/Math.pow(10,Math.floor(sS(e)))}CP.id="linear",CP.defaults={ticks:{callback:NT.formatters.numeric}};var TP=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).start=void 0,r.end=void 0,r._startValue=void 0,r._valueRange=0,r}return Vt(n,[{key:"parse",value:function(e,t){var n=SP.prototype.parse.apply(this,[e,t]);if(0!==n)return Rk(n)&&n>0?n:null;this._zero=!0}},{key:"determineDataLimits",value:function(){var e=this.getMinMax(!0),t=e.min,n=e.max;this.min=Rk(t)?Math.max(0,t):null,this.max=Rk(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}},{key:"handleTickRangeOptions",value:function(){var e=this.getUserBounds(),t=e.minDefined,n=e.maxDefined,r=this.min,i=this.max,o=function(e){return r=t?r:e},a=function(e){return i=n?i:e},s=function(e,t){return Math.pow(10,Math.floor(sS(e))+t)};r===i&&(r<=0?(o(1),a(10)):(o(s(r,-1)),a(s(i,1)))),r<=0&&o(s(i,-1)),i<=0&&a(s(r,1)),this._zero&&this.min!==this._suggestedMin&&r===s(this.min,0)&&o(s(r,-1)),this.min=r,this.max=i}},{key:"buildTicks",value:function(){var e=this.options,t=function(e,t){var n=Math.floor(sS(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),i=[],o=Lk(e.min,Math.pow(10,Math.floor(sS(t.min)))),a=Math.floor(sS(o)),s=Math.floor(o/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{i.push({value:o,major:EP(o)}),10===++s&&(s=1,l=++a>=0?1:l),o=Math.round(s*Math.pow(10,a)*l)/l}while(a<n||a===n&&s<r);var u=Lk(e.max,o);return i.push({value:u,major:EP(o)}),i}({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&dS(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}},{key:"getLabelForValue",value:function(e){return void 0===e?"0":zE(e,this.chart.options.locale,this.options.ticks.format)}},{key:"configure",value:function(){var e=this.min;Tk(el(n.prototype),"configure",this).call(this),this._startValue=sS(e),this._valueRange=sS(this.max)-sS(e)}},{key:"getPixelForValue",value:function(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(sS(e)-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(e){var t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}]),n}(UT);function MP(e){var t=e.ticks;if(t.display&&e.display){var n=QC(t.backdropPadding);return Ak(t.font&&t.font.size,TC.font.size)+n.height}return 0}function OP(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 PP(e){for(var t,n,r,i={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},o=Object.assign({},i),a=[],s=[],l=e._pointLabels.length,u=e.options.pointLabels,c=u.centerPointLabels?Jk/l:0,f=0;f<l;f++){var d=u.setContext(e.getPointLabelContext(f));s[f]=d.padding;var h=e.getPointPosition(f,e.drawingArea+s[f],c),p=$C(d.font),v=(t=e.ctx,n=p,r=Nk(r=e._pointLabels[f])?r:[r],{w:OC(t,n.string,r),h:r.length*n.lineHeight});a[f]=v;var m=bS(e.getIndexAngle(f)+c),g=Math.round(pS(m));jP(o,i,m,OP(g,h.x,v.w,0,180),OP(g,h.y,v.h,90,270))}e.setCenterPoint(i.l-o.l,o.r-i.r,i.t-o.t,o.b-i.b),e._pointLabelItems=function(e,t,n){for(var r=[],i=e._pointLabels.length,o=e.options,a=MP(o)/2,s=e.drawingArea,l=o.pointLabels.centerPointLabels?Jk/i:0,u=0;u<i;u++){var c=e.getPointPosition(u,s+a+n[u],l),f=Math.round(pS(bS(c.angle+iS))),d=t[u],h=RP(c.y,d.h,f),p=NP(f),v=DP(c.x,d.w,p);r.push({x:c.x,y:h,textAlign:p,left:v,top:h,right:v+d.w,bottom:h+d.h})}return r}(e,a,s)}function jP(e,t,n,r,i){var o=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n)),s=0,l=0;r.start<t.l?(s=(t.l-r.start)/o,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(l=(t.t-i.start)/a,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function NP(e){return 0===e||180===e?"center":e<180?"left":"right"}function DP(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function RP(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function LP(e,t,n,r){var i=e.ctx;if(n)i.arc(e.xCenter,e.yCenter,t,0,eS);else{var o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(var a=1;a<r;a++)o=e.getPointPosition(a,t),i.lineTo(o.x,o.y)}}TP.id="logarithmic",TP.defaults={ticks:{callback:NT.formatters.logarithmic,major:{enabled:!0}}};var AP=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).xCenter=void 0,r.yCenter=void 0,r.drawingArea=void 0,r._pointLabels=[],r._pointLabelItems=[],r}return Vt(n,[{key:"setDimensions",value:function(){var e=this._padding=QC(MP(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}},{key:"determineDataLimits",value:function(){var e=this.getMinMax(!1),t=e.min,n=e.max;this.min=Rk(t)&&!isNaN(t)?t:0,this.max=Rk(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){return Math.ceil(this.drawingArea/MP(this.options))}},{key:"generateTickLabels",value:function(e){var t=this;SP.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((function(e,n){var r=Fk(t.options.pointLabels.callback,[e,n],t);return r||0===r?r:""})).filter((function(e,n){return t.chart.getDataVisibility(n)}))}},{key:"fit",value:function(){var e=this.options;e.display&&e.pointLabels.display?PP(this):this.setCenterPoint(0,0,0,0)}},{key:"setCenterPoint",value:function(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}},{key:"getIndexAngle",value:function(e){return bS(e*(eS/(this._pointLabels.length||1))+hS(this.options.startAngle||0))}},{key:"getDistanceFromCenterForValue",value:function(e){if(jk(e))return NaN;var t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}},{key:"getValueForDistanceFromCenter",value:function(e){if(jk(e))return NaN;var t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}},{key:"getPointLabelContext",value:function(e){var t=this._pointLabels||[];if(e>=0&&e<t.length){var n=t[e];return function(e,t,n){return JC(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}},{key:"getPointPosition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getIndexAngle(e)-iS+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}},{key:"getPointPositionForValue",value:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}},{key:"getBasePosition",value:function(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}},{key:"getPointLabelPosition",value:function(e){var t=this._pointLabelItems[e];return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}},{key:"drawBackground",value:function(){var e=this.options,t=e.backgroundColor,n=e.grid.circular;if(t){var r=this.ctx;r.save(),r.beginPath(),LP(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}},{key:"drawGrid",value:function(){var e,t,n,r=this,i=this.ctx,o=this.options,a=o.angleLines,s=o.grid,l=this._pointLabels.length;if(o.pointLabels.display&&function(e,t){for(var n=e.ctx,r=e.options.pointLabels,i=t-1;i>=0;i--){var o=r.setContext(e.getPointLabelContext(i)),a=$C(o.font),s=e._pointLabelItems[i],l=s.x,u=s.y,c=s.textAlign,f=s.left,d=s.top,h=s.right,p=s.bottom,v=o.backdropColor;if(!jk(v)){var m=KC(o.borderRadius),g=QC(o.backdropPadding);n.fillStyle=v;var y=f-g.left,b=d-g.top,_=h-f+g.width,x=p-d+g.height;Object.values(m).some((function(e){return 0!==e}))?(n.beginPath(),VC(n,{x:y,y:b,w:_,h:x,radius:m}),n.fill()):n.fillRect(y,b,_,x)}zC(n,e._pointLabels[i],l,u+a.lineHeight/2,a,{color:o.color,textAlign:c,textBaseline:"middle"})}}(this,l),s.display&&this.ticks.forEach((function(e,n){if(0!==n){t=r.getDistanceFromCenterForValue(e.value);var i=s.setContext(r.getContext(n-1));!function(e,t,n,r){var i=e.ctx,o=t.circular,a=t.color,s=t.lineWidth;!o&&!r||!a||!s||n<0||(i.save(),i.strokeStyle=a,i.lineWidth=s,i.setLineDash(t.borderDash),i.lineDashOffset=t.borderDashOffset,i.beginPath(),LP(e,n,o,r),i.closePath(),i.stroke(),i.restore())}(r,i,t,l)}})),a.display){for(i.save(),e=l-1;e>=0;e--){var u=a.setContext(this.getPointLabelContext(e)),c=u.color,f=u.lineWidth;f&&c&&(i.lineWidth=f,i.strokeStyle=c,i.setLineDash(u.borderDash),i.lineDashOffset=u.borderDashOffset,t=this.getDistanceFromCenterForValue(o.ticks.reverse?this.min:this.max),n=this.getPointPosition(e,t),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(n.x,n.y),i.stroke())}i.restore()}}},{key:"drawBorder",value:function(){}},{key:"drawLabels",value:function(){var e=this,t=this.ctx,n=this.options,r=n.ticks;if(r.display){var i,o,a=this.getIndexAngle(0);t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((function(a,s){if(0!==s||n.reverse){var l=r.setContext(e.getContext(s)),u=$C(l.font);if(i=e.getDistanceFromCenterForValue(e.ticks[s].value),l.showLabelBackdrop){t.font=u.string,o=t.measureText(a.label).width,t.fillStyle=l.backdropColor;var c=QC(l.backdropPadding);t.fillRect(-o/2-c.left,-i-u.size/2-c.top,o+c.width,u.size+c.height)}zC(t,a.label,0,-i,u,{color:l.color})}})),t.restore()}}},{key:"drawTitle",value:function(){}}]),n}(SP);AP.id="radialLinear",AP.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:NT.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:function(e){return e},padding:5,centerPointLabels:!1}},AP.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},AP.descriptors={angleLines:{_fallback:"grid"}};var IP={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}},FP=Object.keys(IP);function zP(e,t){return e-t}function BP(e,t){if(jk(t))return null;var n=e._adapter,r=e._parseOpts,i=r.parser,o=r.round,a=r.isoWeekday,s=t;return"function"===typeof i&&(s=i(s)),Rk(s)||(s="string"===typeof i?n.parse(s,i):n.parse(s)),null===s?null:(o&&(s="week"!==o||!cS(a)&&!0!==a?n.startOf(s,o):n.startOf(s,"isoWeek",a)),+s)}function UP(e,t,n,r){for(var i=FP.length,o=FP.indexOf(e);o<i-1;++o){var a=IP[FP[o]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(s*a.size))<=r)return FP[o]}return FP[i-1]}function VP(e,t,n){if(n){if(n.length){var r=kS(n,t),i=r.lo,o=r.hi;e[n[i]>=t?n[i]:n[o]]=!0}}else e[t]=!0}function HP(e,t,n){var r,i,o=[],a={},s=t.length;for(r=0;r<s;++r)a[i=t[r]]=r,o.push({value:i,major:!1});return 0!==s&&n?function(e,t,n,r){var i,o,a=e._adapter,s=+a.startOf(t[0].value,r),l=t[t.length-1].value;for(i=s;i<=l;i=+a.add(i,1,r))(o=n[i])>=0&&(t[o].major=!0);return t}(e,o,a,n):o}var WP=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e))._cache={data:[],labels:[],all:[]},r._unit="day",r._majorUnit=void 0,r._offsets={},r._normalized=!1,r._parseOpts=void 0,r}return Vt(n,[{key:"init",value:function(e,t){var r=e.time||(e.time={}),i=this._adapter=new KT._date(e.adapters.date);i.init(t),Zk(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},Tk(el(n.prototype),"init",this).call(this,e),this._normalized=t.normalized}},{key:"parse",value:function(e,t){return void 0===e?null:BP(this,e)}},{key:"beforeLayout",value:function(){Tk(el(n.prototype),"beforeLayout",this).call(this),this._cache={data:[],labels:[],all:[]}}},{key:"determineDataLimits",value:function(){var e=this.options,t=this._adapter,n=e.time.unit||"day",r=this.getUserBounds(),i=r.min,o=r.max,a=r.minDefined,s=r.maxDefined;function l(e){a||isNaN(e.min)||(i=Math.min(i,e.min)),s||isNaN(e.max)||(o=Math.max(o,e.max))}a&&s||(l(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||l(this.getMinMax(!1))),i=Rk(i)&&!isNaN(i)?i:+t.startOf(Date.now(),n),o=Rk(o)&&!isNaN(o)?o:+t.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}},{key:"_getLabelBounds",value:function(){var e=this.getLabelTimestamps(),t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}},{key:"buildTicks",value:function(){var e=this.options,t=e.time,n=e.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);var i=this.min,o=function(e,t,n){for(var r=0,i=e.length;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}(r,i,this.max);return this._unit=t.unit||(n.autoSkip?UP(t.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(e,t,n,r,i){for(var o=FP.length-1;o>=FP.indexOf(n);o--){var a=FP[o];if(IP[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return FP[n?FP.indexOf(n):0]}(this,o.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(var t=FP.indexOf(e)+1,n=FP.length;t<n;++t)if(IP[FP[t]].common)return FP[t]}(this._unit):void 0,this.initOffsets(r),e.reverse&&o.reverse(),HP(this,o,this._majorUnit)}},{key:"afterAutoSkip",value:function(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((function(e){return+e.value})))}},{key:"initOffsets",value:function(e){var t,n,r=0,i=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),r=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,n=this.getDecimalForValue(e[e.length-1]),i=1===e.length?n:(n-this.getDecimalForValue(e[e.length-2]))/2);var o=e.length<3?.5:.25;r=xS(r,0,o),i=xS(i,0,o),this._offsets={start:r,end:i,factor:1/(r+1+i)}}},{key:"_generate",value:function(){var e,t,n=this._adapter,r=this.min,i=this.max,o=this.options,a=o.time,s=a.unit||UP(a.minUnit,r,i,this._getLabelCapacity(r)),l=Ak(a.stepSize,1),u="week"===s&&a.isoWeekday,c=cS(u)||!0===u,f={},d=r;if(c&&(d=+n.startOf(d,"isoWeek",u)),d=+n.startOf(d,c?"day":s),n.diff(i,r,s)>1e5*l)throw new Error(r+" and "+i+" are too far apart with stepSize of "+l+" "+s);var h="data"===o.ticks.source&&this.getDataTimestamps();for(e=d,t=0;e<i;e=+n.add(e,l,s),t++)VP(f,e,h);return e!==i&&"ticks"!==o.bounds&&1!==t||VP(f,e,h),Object.keys(f).sort((function(e,t){return e-t})).map((function(e){return+e}))}},{key:"getLabelForValue",value:function(e){var t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}},{key:"_tickFormatFunction",value:function(e,t,n,r){var i=this.options,o=i.time.displayFormats,a=this._unit,s=this._majorUnit,l=a&&o[a],u=s&&o[s],c=n[t],f=s&&u&&c&&c.major,d=this._adapter.format(e,r||(f?u:l)),h=i.ticks.callback;return h?Fk(h,[d,t,n],this):d}},{key:"generateTickLabels",value:function(e){var t,n,r;for(t=0,n=e.length;t<n;++t)(r=e[t]).label=this._tickFormatFunction(r.value,t,e)}},{key:"getDecimalForValue",value:function(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}},{key:"getPixelForValue",value:function(e){var t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}},{key:"getValueForPixel",value:function(e){var t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}},{key:"_getLabelSize",value:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,r=hS(this.isHorizontal()?t.maxRotation:t.minRotation),i=Math.cos(r),o=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:n*i+a*o,h:n*o+a*i}}},{key:"_getLabelCapacity",value:function(e){var t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,i=this._tickFormatFunction(e,0,HP(this,[e],this._majorUnit),r),o=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}},{key:"getDataTimestamps",value:function(){var e,t,n=this._cache.data||[];if(n.length)return n;var r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e<t;++e)n=n.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}},{key:"getLabelTimestamps",value:function(){var e,t,n=this._cache.labels||[];if(n.length)return n;var r=this.getLabels();for(e=0,t=r.length;e<t;++e)n.push(BP(this,r[e]));return this._cache.labels=this._normalized?n:this.normalize(n)}},{key:"normalize",value:function(e){return MS(e.sort(zP))}}]),n}(UT);function ZP(e,t,n){var r,i,o,a,s=0,l=e.length-1;if(n){if(t>=e[s].pos&&t<=e[l].pos){var u=SS(e,"pos",t);s=u.lo,l=u.hi}var c=e[s];r=c.pos,o=c.time;var f=e[l];i=f.pos,a=f.time}else{if(t>=e[s].time&&t<=e[l].time){var d=SS(e,"time",t);s=d.lo,l=d.hi}var h=e[s];r=h.time,o=h.pos;var p=e[l];i=p.time,a=p.pos}var v=i-r;return v?o+(a-o)*(t-r)/v:o}WP.id="time",WP.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};var YP=function(e){Js(n,e);var t=rl(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e))._table=[],r._minPos=void 0,r._tableRange=void 0,r}return Vt(n,[{key:"initOffsets",value:function(){var e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=ZP(t,this.min),this._tableRange=ZP(t,this.max)-this._minPos,Tk(el(n.prototype),"initOffsets",this).call(this,e)}},{key:"buildLookupTable",value:function(e){var t,n,r,i,o,a=this.min,s=this.max,l=[],u=[];for(t=0,n=e.length;t<n;++t)(i=e[t])>=a&&i<=s&&l.push(i);if(l.length<2)return[{time:a,pos:0},{time:s,pos:1}];for(t=0,n=l.length;t<n;++t)o=l[t+1],r=l[t-1],i=l[t],Math.round((o+r)/2)!==i&&u.push({time:i,pos:t/(n-1)});return u}},{key:"_getTimestampsForTable",value:function(){var e=this._cache.all||[];if(e.length)return e;var t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e}},{key:"getDecimalForValue",value:function(e){return(ZP(this._table,e)-this._minPos)/this._tableRange}},{key:"getValueForPixel",value:function(e){var t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return ZP(this._table,n*this._tableRange+this._minPos,!0)}}]),n}(WP);YP.id="timeseries",YP.defaults=WP.defaults;var qP=[YT,NO,bP,Object.freeze({__proto__:null,CategoryScale:xP,LinearScale:CP,LogarithmicScale:TP,RadialLinearScale:AP,TimeScale:WP,TimeSeriesScale:YP})],GP=["height","width","redraw","datasetIdKey","type","data","options","plugins","fallbackContent"],KP="label";function QP(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function $P(e,t){e.labels=t}function XP(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:KP,r=[];e.datasets=t.map((function(t){var i=e.datasets.find((function(e){return e[n]===t[n]}));return i&&t.data&&!r.includes(i)?(r.push(i),Object.assign(i,t),i):Ze({},t)}))}function JP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:KP,n={labels:[],datasets:[]};return $P(n,e.labels),XP(n,e.datasets,t),n}function ej(e,t){return e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1)}function tj(e,t){var n=e.height,r=void 0===n?150:n,i=e.width,o=void 0===i?300:i,a=e.redraw,s=void 0!==a&&a,u=e.datasetIdKey,c=e.type,f=e.data,d=e.options,h=e.plugins,p=void 0===h?[]:h,v=e.fallbackContent,m=Wt(e,GP),g=(0,l.useRef)(null),y=(0,l.useRef)(),b=function(){g.current&&(y.current=new oO(g.current,{type:c,data:JP(f,u),options:d,plugins:p}),QP(t,y.current))},_=function(){QP(t,null),y.current&&(y.current.destroy(),y.current=null)};return(0,l.useEffect)((function(){var e,t;!s&&y.current&&d&&(e=y.current,t=d,e.options=Ze({},t))}),[s,d]),(0,l.useEffect)((function(){!s&&y.current&&$P(y.current.config.data,f.labels)}),[s,f.labels]),(0,l.useEffect)((function(){!s&&y.current&&f.datasets&&XP(y.current.config.data,f.datasets,u)}),[s,f.datasets]),(0,l.useEffect)((function(){y.current&&(s?(_(),setTimeout(b)):y.current.update())}),[s,d,f.labels,f.datasets]),(0,l.useEffect)((function(){return b(),function(){return _()}}),[]),l.createElement("canvas",Object.assign({ref:g,role:"img",height:r,width:o},m),v)}var nj=(0,l.forwardRef)(tj);function rj(e,t){return oO.register(t),(0,l.forwardRef)((function(t,n){return l.createElement(nj,Object.assign({},t,{ref:n,type:e}))}))}var ij=rj("line",ET),oj=rj("bar",kT),aj=rj("doughnut",CT),sj=bt((function(e){return function(){return e}}));function lj(e,t,n,r){var i,o=function(i){for(var o=t.length,a=0;a<o;){if(e===t[a])return n[a];a+=1}for(var s in t[a+1]=e,n[a+1]=i,e)i[s]=r?lj(e[s],t,n,!0):e[s];return i};switch(Rn(e)){case"Object":return o({});case"Array":return o([]);case"Date":return new Date(e.valueOf());case"RegExp":return i=e,new RegExp(i.source,(i.global?"g":"")+(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.sticky?"y":"")+(i.unicode?"u":""));default:return e}}var uj=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype["@@transducer/init"]=ln,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(hn(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}(),cj=Jg(4,[],Kt([],Jg(4,[],(function(e,t,n,r){return new uj(e,t,n,r)})),(function(e,t,n,r){return sn((function(r,i){var o=n(i);return r[o]=e(hn(o,r)?r[o]:lj(t,[],[],!1),i),r}),{},r)}))),fj=cj,dj=fj((function(e,t){return e+1}),0),hj=bt((function(e){return St(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()})),pj=hj,vj=n(1089);var mj=n(3514);function gj(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 yj(e,t){(0,dy.Z)(2,arguments);var n=(0,cy.default)(e),r=(0,cy.default)(t),i=gj(n,r),o=Math.abs((0,mj.default)(n,r));n.setDate(n.getDate()-i*o);var a=Number(gj(n,r)===-i),s=i*(o-a);return 0===s?0:s}var bj=n(4552),_j=n(3712);var xj=n(9996),wj=n(1437),kj=n(6634);var Sj=n(449),Cj=n.n(Sj),Ej=_t((function(e,t){for(var n=0,r=Math.min(e.length,t.length),i={};n<r;)i[e[n]]=t[n],n+=1;return i})),Tj=Ej,Mj="Others",Oj=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],Pj=function(e){var t,n;return Jm(e)?null!==(t=null===(n=e.split("/")[e.includes("://")?2:0])||void 0===n?void 0:n.split(":")[0])&&void 0!==t?t:"":"Direct"},jj=function(e,t){return Object.values(Ze(Ze({},Tj(t,t.map((function(){return 0})))),e))},Nj=function(e){return(0,ir.jsx)(Dx,Ze({type:"switch"},e))},Dj=function(e,t){var n=e.native,r=v(t,1)[0];null!==n&&void 0!==n&&n.target&&(n.target.style.cursor=r?"pointer":"default")},Rj=function(e){var t=e.dataset,n=e.raw;return"".concat(t.label,": ").concat(Cb("".concat(n)))},Lj=function(e){var t=e.label,n=e.raw;return"".concat(t,": ").concat(Cb("".concat(n)))},Aj={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},Ij={hourly:function(e){return{hours:e}},daily:function(e){return{days:e}},weekly:function(e){return{weeks:e}},monthly:function(e){return{months:e}}},Fj={hourly:function(e,t,n){(0,dy.Z)(2,arguments);var r=Wb(e,t)/vj.vh;return Yb(null===n||void 0===n?void 0:n.roundingMethod)(r)},daily:yj,weekly:function(e,t,n){(0,dy.Z)(2,arguments);var r=yj(e,t)/7;return Yb(null===n||void 0===n?void 0:n.roundingMethod)(r)},monthly:Hb},zj={hourly:function(e){return(0,uy.default)(e,"yyyy-MM-dd HH:00")},daily:function(e){return(0,uy.default)(e,"yyyy-MM-dd")},weekly:function(e){var t=(0,uy.default)((0,bj.Z)(e),"yyyy-MM-dd"),n=(0,uy.default)(function(e){return(0,dy.Z)(1,arguments),(0,_j.default)(e,{weekStartsOn:1})}(e),"yyyy-MM-dd");return"".concat(t," - ").concat(n)},monthly:function(e){return(0,uy.default)(e,"yyyy-MM")}},Bj=function(e,t){return dj((function(t){return zj[e]((0,Hg.default)(t.date))}),t)},Uj=function(e,t){var n=Fj[e],r=zj[e],i=(0,Hg.default)(t[0].date),o=(0,Hg.default)(t[t.length-1].date),a=n(i,o),s=Ij[e];return[r(o)].concat(g(Xm(a,(function(e){return r(function(e,t){if((0,dy.Z)(2,arguments),!t||"object"!==typeof t)return new Date(NaN);var n=t.years?(0,kj.Z)(t.years):0,r=t.months?(0,kj.Z)(t.months):0,i=t.weeks?(0,kj.Z)(t.weeks):0,o=t.days?(0,kj.Z)(t.days):0,a=t.hours?(0,kj.Z)(t.hours):0,s=t.minutes?(0,kj.Z)(t.minutes):0,l=t.seconds?(0,kj.Z)(t.seconds):0,u=(0,cy.default)(e),c=r||n?(0,wj.default)(u,r+12*n):u,f=o||i?(0,xj.default)(c,o+7*i):c,d=1e3*(l+60*(s+60*a));return new Date(f.getTime()+d)}(o,s(e)))}))))},Vj=function(e,t,n){return{label:t,data:e,fill:!1,tension:.2,borderColor:n,backgroundColor:n}},Hj=null,Wj=function(e){var t=e.title,n=e.visits,r=e.highlightedVisits,i=e.highlightedLabel,o=void 0===i?"Selected":i,a=e.setSelectedVisits,s=v((0,l.useState)(n.length>0?function(e){var t,n=new Date,r=(0,Hg.default)(e);return null!==(t=sy([[function(){return yj(n,r)<=2},sj("hourly")],[function(){return Hb(n,r)<=1},sj("daily")],[function(){return Hb(n,r)<=6},sj("weekly")]])())&&void 0!==t?t:"monthly"}(n[n.length-1].date):"monthly"),2),u=s[0],c=s[1],f=v(am(!0),2),d=f[0],h=f[1],p=(0,l.useRef)(null),m=(0,l.useRef)(null),g=(0,l.useMemo)((function(){return function(e,t){return t.reduce((function(t,n){var r,i=zj[e]((0,Hg.default)(n.date));return t[i]=null!==(r=t[i])&&void 0!==r?r:[],t[i].push(n),t}),{})}(u,n)}),[u,n]),y=(0,l.useMemo)((function(){return Bj(u,pj(n))}),[u,n]),b=(0,l.useMemo)((function(){return function(e,t,n,r){if(r)return[Object.keys(t),Object.values(t)];var i=Uj(n,e);return[i,jj(t,i)]}(n,y,u,d)}),[n,u,d]),_=v(b,2),x=_[0],w=_[1],k=(0,l.useMemo)((function(){return jj(Bj(u,pj(r)),x)}),[r,u,x]),S=function(){var e=Vj(w,"Visits",um);return 0===r.length?[e]:[e,Vj(k,o,cm)]},C={maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{intersect:!1,axis:"x",callbacks:{label:Rj}}},scales:{y:{beginAtZero:!0,ticks:{precision:0,callback:Cb}},x:{title:{display:!0,text:Aj[u]}}},onHover:Dj},E=function(e){return(0,ir.jsx)(ij,{ref:e,data:{labels:x,datasets:S()},options:C,onClick:function(t){return function(e,t,n,r){var i=v(n,1)[0];if(r&&i){var o,a=i.index;Hj===e[a]?(r([]),Hj=null):(r(e[a]&&t[e[a]]?t[e[a]]:[]),Hj=null!==(o=e[a])&&void 0!==o?o:null)}}(x,g,ej(e.current,t),a)}})};return(0,ir.jsxs)(jf,{children:[(0,ir.jsxs)(td,{role:"heading",children:[t,(0,ir.jsx)("div",{className:"float-end",children:(0,ir.jsxs)(jv,{children:[(0,ir.jsx)(Xc,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),(0,ir.jsx)(Gc,{end:!0,children:Object.entries(Aj).map((function(e){var t=v(e,2),n=t[0],r=t[1];return(0,ir.jsx)(Hc,{active:u===n,onClick:function(){return c(n)},children:r},n)}))})]})}),(0,ir.jsx)("div",{className:"float-end me-2",children:(0,ir.jsx)(Nj,{checked:d,onChange:h,children:(0,ir.jsx)("small",{children:"Skip dates with no visits"})})})]}),(0,ir.jsxs)(Wf,{className:"line-chart-card__body",children:[r.length>0&&E(p),0===r.length&&E(m)]})]})},Zj=function(e){var t=e.pagesCount,n=e.currentPage,r=e.setCurrentPage,i=e.centered,o=void 0===i||i;if(t<2)return null;var a=function(e){return function(){return!Mb(e)&&r(e)}};return(0,ir.jsxs)(Dp,{listClassName:ol()("flex-wrap mb-0 simple-paginator",{"justify-content-center":o}),children:[(0,ir.jsx)(Ip,{disabled:n<=1,children:(0,ir.jsx)(Up,{previous:!0,tag:"span",onClick:a(n-1)})}),Tb(n,t).map((function(e,t){return(0,ir.jsx)(Ip,{disabled:Mb(e),active:n===e,children:(0,ir.jsx)(Up,{role:"link",tag:"span",onClick:a(e),children:Ob(e)})},Pb(e,t))})),(0,ir.jsx)(Ip,{disabled:n>=t,children:(0,ir.jsx)(Up,{next:!0,tag:"span",onClick:a(n+1)})})]})},Yj=["browser","os","referer","country","city"],qj=function(e,t){return t.filter((function(t){return function(e,t){var n=e.browser,r=e.os,i=e.referer,o=e.country,a=e.city,s=Wt(e,Yj);return"".concat(n," ").concat(r," ").concat(i," ").concat(o," ").concat(a," ").concat(s.visitedUrl).toLowerCase().includes(t.toLowerCase())}(t,e)}))},Gj=function(e,t,n){var r=function(e,t){return Yn(t,e)}(n,t?qj(t,e):g(e)),i=r.length;return{visitsGroups:f_(20,r),total:i}},Kj=function(e){var t,n,r=e.visits,i=e.selectedVisits,o=void 0===i?[]:i,a=e.setSelectedVisits,s=e.selectedServer,u=e.matchMedia,c=void 0===u?window.matchMedia:u,f=e.isOrphanVisits,d=void 0!==f&&f,h="visits-table__header-cell visits-table__sticky",p=function(){return c("(max-width: 767px)").matches},m=v((0,l.useState)(p()),2),y=m[0],b=m[1],_=v((0,l.useState)(void 0),2),x=_[0],w=_[1],k=v((0,l.useState)({}),2),S=k[0],C=k[1],E=(0,l.useMemo)((function(){return Gj(r,x,S)}),[x,S]),T=(0,l.useRef)(!0),M=v((0,l.useState)(1),2),O=M[0],P=M[1],j=20*O,N=j-20,D=ag(s),R=7+Number(D)+Number(d),L=function(e){return function(){return C({field:e,dir:Zn(e,S.field,S.dir)})}},A=function(e){return(0,ir.jsx)(nb,{currentOrder:S,field:e,className:"visits-table__header-icon"})};return(0,l.useEffect)((function(){var e=function(){return b(p())};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),(0,l.useEffect)((function(){P(1),!T.current&&a([]),T.current=!1}),[x]),(0,ir.jsx)("div",{className:"table-responsive-md",children:(0,ir.jsxs)("table",{className:"table table-bordered table-hover table-sm visits-table",children:[(0,ir.jsxs)("thead",{className:"visits-table__header",children:[(0,ir.jsxs)("tr",{children:[(0,ir.jsx)("th",{className:"".concat(h," text-center"),onClick:function(){return a(o.length<E.total?E.visitsGroups.flat():[])},children:(0,ir.jsx)(Ks,{icon:yi,className:ol()({"text-primary":o.length>0})})}),D&&(0,ir.jsxs)("th",{className:"".concat(h," text-center"),onClick:L("potentialBot"),children:[(0,ir.jsx)(Ks,{icon:hi}),A("potentialBot")]}),(0,ir.jsxs)("th",{className:h,onClick:L("date"),children:["Date",A("date")]}),(0,ir.jsxs)("th",{className:h,onClick:L("country"),children:["Country",A("country")]}),(0,ir.jsxs)("th",{className:h,onClick:L("city"),children:["City",A("city")]}),(0,ir.jsxs)("th",{className:h,onClick:L("browser"),children:["Browser",A("browser")]}),(0,ir.jsxs)("th",{className:h,onClick:L("os"),children:["OS",A("os")]}),(0,ir.jsxs)("th",{className:h,onClick:L("referer"),children:["Referrer",A("referer")]}),d&&(0,ir.jsxs)("th",{className:h,onClick:L("visitedUrl"),children:["Visited URL",A("visitedUrl")]})]}),(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:R,className:"p-0",children:(0,ir.jsx)(Wg,{noBorder:!0,large:!1,onChange:w})})})]}),(0,ir.jsxs)("tbody",{children:[!(null!==(t=E.visitsGroups[O-1])&&void 0!==t&&t.length)&&(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:R,className:"text-center",children:"No visits found with current filtering"})}),null===(n=E.visitsGroups[O-1])||void 0===n?void 0:n.map((function(e,t){var n=o.includes(e);return(0,ir.jsxs)("tr",{style:{cursor:"pointer"},className:ol()({"table-active":n}),onClick:function(){return a(n?o.filter((function(t){return t!==e})):[].concat(g(o),[e]))},children:[(0,ir.jsx)("td",{className:"text-center",children:n&&(0,ir.jsx)(Ks,{icon:yi,className:"text-primary"})}),D&&(0,ir.jsx)("td",{className:"text-center",children:e.potentialBot&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Ks,{icon:hi,id:"botIcon".concat(t)}),(0,ir.jsx)(Dv,{placement:"right",target:"botIcon".concat(t),children:"Potentially a visit from a bot or crawler"})]})}),(0,ir.jsx)("td",{children:(0,ir.jsx)(t_,{date:e.date})}),(0,ir.jsx)("td",{children:e.country}),(0,ir.jsx)("td",{children:e.city}),(0,ir.jsx)("td",{children:e.browser}),(0,ir.jsx)("td",{children:e.os}),(0,ir.jsx)("td",{children:e.referer}),d&&(0,ir.jsx)("td",{children:e.visitedUrl})]},t)}))]}),E.total>20&&(0,ir.jsx)("tfoot",{children:(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:R,className:"visits-table__footer-cell visits-table__sticky",children:(0,ir.jsxs)("div",{className:"row",children:[(0,ir.jsx)("div",{className:"col-md-6",children:(0,ir.jsx)(Zj,{pagesCount:Math.ceil(E.total/20),currentPage:O,setCurrentPage:P,centered:y})}),(0,ir.jsx)("div",{className:ol()("col-md-6",{"d-flex align-items-center flex-row-reverse":!y,"text-center mt-3":y}),children:(0,ir.jsxs)("div",{children:["Visits ",(0,ir.jsx)("b",{children:Cb(N+1)})," to"," ",(0,ir.jsx)("b",{children:Cb(wb(j,E.total))})," of"," ",(0,ir.jsx)("b",{children:Cb(E.total)})]})})]})})})})]})})},Qj=function(e){var t=e.modalTitle,n=e.activeCities,r=e.locations,i=void 0===r?[]:r,o=v(am(),4),a=o[0],s=o[2],u=o[3],c=v(am(),3),f=c[0],d=c[1],h=c[2],p=v((0,l.useState)([]),2),m=p[0],g=p[1],y=lm(),b=function(e){return function(){var t;g(e?(t=i,n?t.filter((function(e){var t=e.cityName;return null===n||void 0===n?void 0:n.includes(t)})):t):i),s()}};return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(xc,{color:"link",className:"open-map-modal-btn__btn",id:y,onClick:function(){if(!n)return g(i),void s();h()},children:(0,ir.jsx)(Ks,{icon:Tr})}),(0,ir.jsx)(Dv,{placement:"left",target:y,children:"Show in map"}),(0,ir.jsx)(Pc,{isOpen:f,toggle:d,inNavbar:!0,children:(0,ir.jsxs)(Gc,{end:!0,children:[(0,ir.jsx)(Hc,{onClick:b(!1),children:"Show all locations"}),(0,ir.jsx)(Hc,{onClick:b(!0),children:"Show locations in current page"})]})}),(0,ir.jsx)(bk,{toggle:u,isOpen:a,title:t,locations:m})]})},$j=function(e){return void 0!==e.visitedUrl},Xj=$m(_t(qm("groupBy",fj((function(e,t){return null==e&&(e=[]),e.push(t),e}),null)))((function(e){return $j(e.visit)?"orphanVisits":"regularVisits"})),(function(e){return Ze({orphanVisits:[],regularVisits:[]},e)})),Jj=function(e,t){return dj(jt(t),e)},eN=function(e){var t,n,r=e.page,i=e.itemsPerPage,o=e.filter,a=e.dateRange;return{page:r,itemsPerPage:i,startDate:null!==(t=(null===a||void 0===a?void 0:a.startDate)&&yy(null===a||void 0===a?void 0:a.startDate))&&void 0!==t?t:void 0,endDate:null!==(n=(null===a||void 0===a?void 0:a.endDate)&&yy(null===a||void 0===a?void 0:a.endDate))&&void 0!==n?n:void 0,excludeBots:(null===o||void 0===o?void 0:o.excludeBots)||void 0}},tN=function(e,t){return!Mn(e)&&Jm(e[t])},nN=function(e){return"number"===typeof e?e:e?parseFloat(e):0},rN=function(e){return function(t,n){var r=tN(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1}},iN=rN("country"),oN=rN("city"),aN=function(e){return e.reduce((function(e,t){return function(e,t){var n=t.os;e[n]=(e[n]||0)+1}(e.os,t),function(e,t){var n=t.browser;e[n]=(e[n]||0)+1}(e.browsers,t),function(e,t){var n=t.referer;e[n]=(e[n]||0)+1}(e.referrers,t),iN(e.countries,t),oN(e.cities,t),function(e,t){if(tN(t,"city")&&"Unknown"!==t.city){var n=t.city,r=t.latitude,i=t.longitude,o=e[n]||{cityName:n,count:0,latLong:[nN(r),nN(i)]};o.count+=1,e[n]=o}}(e.citiesForMap,t),function(e,t){if(function(e){return void 0!==e.visitedUrl}(t)){var n=t.visitedUrl;e[n]=(e[n]||0)+1}}(e.visitedUrls,t),e}),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}})},sN=ry((function(e){var t=e.userAgent,n=e.date,r=e.referer,i=e.visitLocation,o=e.potentialBot,a=Ze(Ze({date:n,potentialBot:void 0!==o&&o},function(e){if(!Jm(e))return{browser:Mj,os:Mj};var t=Cj().parse(e),n=t.browser.name,r=t.os.name;return{os:null!==r&&void 0!==r?r:Mj,browser:n&&Oj.includes(n)?n:Mj}}(t)),{},{referer:Pj(r),country:(null===i||void 0===i?void 0:i.countryName)||"Unknown",city:(null===i||void 0===i?void 0:i.cityName)||"Unknown",latitude:null===i||void 0===i?void 0:i.latitude,longitude:null===i||void 0===i?void 0:i.longitude});return $j(e)?Ze(Ze({},a),{},{type:e.type,visitedUrl:e.visitedUrl}):a})),lN=function(e){var t=e.onChange,n=e.selected,r=void 0===n?{}:n,i=e.className,o=e.isOrphanVisits,a=e.botsSupported;if(!a&&!o)return null;var s=r.orphanVisitsType,l=r.excludeBots,u=void 0!==l&&l,c=function(e){return{active:s===e,onClick:function(){return t(Ze(Ze({},r),{},{orphanVisitsType:e===(null===r||void 0===r?void 0:r.orphanVisitsType)?void 0:e}))}}};return(0,ir.jsxs)(Zg,{text:"Filters",dropdownClassName:i,className:"me-3",right:!0,minWidth:250,children:[a&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Hc,{header:!0,children:"Bots:"}),(0,ir.jsx)(Hc,{active:u,onClick:function(){return t(Ze(Ze({},r),{},{excludeBots:!(null!==r&&void 0!==r&&r.excludeBots)}))},children:"Exclude potential bots"})]}),a&&o&&(0,ir.jsx)(Hc,{divider:!0}),o&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Hc,{header:!0,children:"Orphan visits type:"}),(0,ir.jsx)(Hc,Ze(Ze({},c("base_url")),{},{children:"Base URL"})),(0,ir.jsx)(Hc,Ze(Ze({},c("invalid_short_url")),{},{children:"Invalid short URL"})),(0,ir.jsx)(Hc,Ze(Ze({},c("regular_404")),{},{children:"Regular 404"}))]}),(0,ir.jsx)(Hc,{divider:!0}),(0,ir.jsx)(Hc,{disabled:!Jm(r),onClick:function(){return t({})},children:(0,ir.jsx)("i",{children:"Clear filters"})})]})},uN=function(e){var t,n,r=e.chart.config,i=null!==(t=r.data)&&void 0!==t?t:{},o=i.labels,a=void 0===o?[]:o,s=i.datasets,l=v(void 0===s?[]:s,1)[0].backgroundColor,u=(null!==(n=r.options)&&void 0!==n?n:{}).defaultColor;return(0,ir.jsx)("ul",{className:"doughnut-chart-legend",children:a.map((function(e,t){var n;return(0,ir.jsxs)("li",{className:"doughnut-chart-legend__item d-flex",children:[(0,ir.jsx)("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:null!==(n=l[t])&&void 0!==n?n:u}}),(0,ir.jsx)("small",{className:"doughnut-chart-legend__item-text flex-fill",children:e})]},e)}))})},cN=function(e){return[{data:e,backgroundColor:["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],borderColor:dm()?"#161b22":"white",borderWidth:2}]},fN=(0,l.memo)((function(e){var t=e.stats,n=v((0,l.useState)(),2),r=n[0],i=n[1],o=wn(t),a=vm(t),s={plugins:{legend:{display:!1},tooltip:{intersect:!0,callbacks:{label:Lj}}}},u=function(e,t){return{labels:e,datasets:cN(t)}}(o,a);return(0,ir.jsxs)("div",{className:"row",children:[(0,ir.jsx)("div",{className:"col-sm-12 col-md-7",children:(0,ir.jsx)(aj,{height:300,data:u,options:s,ref:function(e){i(null!==e&&void 0!==e?e:void 0)}})}),(0,ir.jsx)("div",{className:"col-sm-12 col-md-5",children:r&&(0,ir.jsx)(uN,{chart:r})})]})})),dN=function(e){var t=e.title,n=e.footer,r=e.children;return(0,ir.jsxs)(jf,{role:"document",children:[(0,ir.jsx)(td,{className:"chart-card__header",children:"function"===typeof t?t():t}),(0,ir.jsx)(Wf,{children:r}),n&&(0,ir.jsx)($f,{className:"chart-card__footer--sticky",children:n})]})},hN=function(e){var t=e.title,n=e.stats;return(0,ir.jsx)(dN,{title:t,children:(0,ir.jsx)(fN,{stats:n})})};function pN(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}function vN(e,t){return function(e,t,n){var r,i;if("function"===typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(i=e[n])&&1/i===r)return n;n+=1}return-1}if(t!==t){for(;n<e.length;){if("number"===typeof(i=e[n])&&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(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(Fn(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function mN(e){return'"'+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").replace(/"/g,'\\"')+'"'}var gN=function(e){return(e<10?"0":"")+e},yN="function"===typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+gN(e.getUTCMonth()+1)+"-"+gN(e.getUTCDate())+"T"+gN(e.getUTCHours())+":"+gN(e.getUTCMinutes())+":"+gN(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},bN=yN;function _N(e,t){var n=function(n){var r=t.concat([e]);return vN(n,r)?"<Circular>":_N(n,r)},r=function(e,t){return Kg((function(t){return mN(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Kg(n,e).join(", ")+"))";case"[object Array]":return"["+Kg(n,e).concat(r(e,En((function(e){return/^\d+$/.test(e)}),wn(e)))).join(", ")+"]";case"[object Boolean]":return"object"===typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):mN(bN(e)))+")";case"[object Null]":return"null";case"[object Number]":return"object"===typeof e?"new Number("+n(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return"object"===typeof e?"new String("+n(e.valueOf())+")":mN(e);case"[object Undefined]":return"undefined";default:if("function"===typeof e.toString){var i=e.toString();if("[object Object]"!==i)return i}return"{"+r(e,wn(e)).join(", ")+"}"}}var xN,wN,kN,SN,CN,EN,TN=bt((function(e){return _N(e,[])})),MN=_t((function(e,t){return ty(e+1,(function(){var n=arguments[e];if(null!=n&&pN(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(TN(n)+' does not have a method named "'+t+'"')}))})),ON=MN(0,"toLowerCase"),PN=_t((function(e,t){return Array.prototype.slice.call(t,0).sort((function(t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0}))})),jN=PN,NN=function(e){var t=e.toggleClassName,n=e.ranges,r=e.value,i=e.setValue;return(0,ir.jsxs)(jv,{children:[(0,ir.jsx)(Xc,{caret:!0,color:"link",className:t,children:"Paginate"}),(0,ir.jsxs)(Gc,{end:!0,children:[n.map((function(e){return(0,ir.jsxs)(Hc,{active:e===r,onClick:function(){return i(e)},children:[(0,ir.jsx)("b",{children:e})," items per page"]},e)})),(0,ir.jsx)(Hc,{divider:!0}),(0,ir.jsx)(Hc,{disabled:r===1/0,onClick:function(){return i(1/0)},children:(0,ir.jsx)("i",{children:"Clear pagination"})})]})]})},DN=function(e){return e.startsWith("hidden")?"":e},RN=function(e,t,n){var r={data:e,label:n?"Non-selected":"Visits",backgroundColor:"rgba(70, 150, 229, 0.4)",borderColor:um,borderWidth:2};return t.every((function(e){return 0===e}))?[r]:[r,{label:null!==n&&void 0!==n?n:"Selected",data:t,backgroundColor:"rgba(247, 127, 40, 0.4)",borderColor:cm,borderWidth:2}]},LN=function(e){var t=e.stats,n=e.highlightedStats,r=e.highlightedLabel,i=e.onClick,o=e.max,a=wn(t).map(DN),s=vm(function(e){return!!e&&Object.keys(e).length>0}(n)?wn(n).reduce((function(e,t){return e[t]&&(e[t]-=n[t]),e}),Ze({},t)):t),u=jj(null!==n&&void 0!==n?n:{},a),c=(0,l.useRef)(null),f=(0,l.useRef)(null),d={plugins:{legend:{display:!1},tooltip:{mode:"y",filter:function(e){return""!==e.label},callbacks:{label:Rj}}},scales:{x:{beginAtZero:!0,stacked:!0,max:o,ticks:{precision:0,callback:Cb}},y:{stacked:!0}},onHover:Dj,indexAxis:"y"},h=function(e,t,n,r){return{labels:e,datasets:RN(t,n,r)}}(a,s,u,r),p=function(e){return e.length>20?10*e.length:void 0}(a),m=function(e,t){return(0,ir.jsx)(oj,{ref:t,data:h,options:d,height:p,onClick:function(e){return function(e,t,n){var r=v(t,1)[0];n&&r&&n(e[r.index])}(a,ej(t.current,e),i)}},"".concat(p,"_").concat(e))};return(0,ir.jsxs)(ir.Fragment,{children:[void 0!==n&&m("with_stats",c),void 0===n&&m("without_stats",f)]})},AN=["stats","highlightedStats","title","sortingItems","extraHeaderContent","withPagination"],IN=function(e){return"String"===Rn(e)?ON(e):e},FN=function(e){return v(e,1)[0]},zN=function(e){return v(e,2)[1]},BN=function(e){var t=e.stats,n=e.highlightedStats,r=e.title,i=e.sortingItems,o=e.extraHeaderContent,a=e.withPagination,s=void 0===a||a,u=Wt(e,AN),c=v((0,l.useState)({}),2),f=c[0],d=c[1],h=v((0,l.useState)(1),2),p=h[0],m=h[1],y=v((0,l.useState)(50),2),b=y[0],_=y[1],x=function(e){var t=e[p-1];if(p<e.length)return t;var n=e[0].length;return[].concat(g(t),g(Xm(n-t.length,(function(e){return["hidden_".concat(e),0]}))))},w=function(e,t,n){var r=function(e,t){var n=Zy(e),r=f.field?jN($m(f.field===Object.keys(t)[0]?FN:zN,IN),n):n;return f.dir&&"ASC"!==f.dir?pj(r):r}(e,t),i=r.map(FN),o=n&&Zy(Ze(Ze({},Tj(i,i.map((function(){return 0})))),n));if(r.length<=b)return{currentPageStats:Ew(r),currentPageHighlightedStats:o&&Ew(o)};var a,s,l=f_(b,r),u=o&&f_(b,o);return{currentPageStats:Ew(x(l)),currentPageHighlightedStats:u&&Ew(x(u)),pagination:(s=l.length,(0,ir.jsx)(Zj,{currentPage:p,pagesCount:s,setCurrentPage:m})),max:(a=Math.max.apply(Math,g(r.map(zN))),10*kb(a/10))}}(t,i,n&&Object.keys(n).length>0?n:void 0),k=w.currentPageStats,S=w.currentPageHighlightedStats,C=w.pagination,E=w.max,T=Object.keys(k);return(0,ir.jsx)(dN,{title:function(){return(0,ir.jsxs)(ir.Fragment,{children:[r,(0,ir.jsx)("div",{className:"float-end",children:(0,ir.jsx)(Yy,{isButton:!1,right:!0,items:i,order:f,onChange:function(e,t){d({field:e,dir:t}),m(1)}})}),s&&Object.keys(t).length>50&&(0,ir.jsx)("div",{className:"float-end",children:(0,ir.jsx)(NN,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:b,setValue:function(e){_(e),m(1)}})}),o&&(0,ir.jsx)("div",{className:"float-end",children:o(C?T:void 0)})]})},footer:C,children:(0,ir.jsx)(LN,Ze({stats:k,highlightedStats:S,max:E},u))})},UN={byTime:{title:"By time",subPath:"by-time",icon:sr},byContext:{title:"By context",subPath:"by-context",icon:Nr},byLocation:{title:"By location",subPath:"by-location",icon:Tr},list:{title:"List",subPath:"list",icon:vr}},VN=function(e){var t,n,r=e.children,i=e.visitsInfo,o=e.getVisits,a=e.cancelGetVisits,s=e.domain,u=e.settings,c=e.exportCsv,f=e.selectedServer,d=e.isOrphanVisits,h=void 0!==d&&d,p=i.visits,m=i.loading,g=i.loadingLarge,y=i.error,b=i.errorData,_=i.progress,x=i.fallbackInterval,w=v((0,l.useState)(null!==(t=null!==x&&void 0!==x?x:null===(n=u.visits)||void 0===n?void 0:n.defaultInterval)&&void 0!==t?t:"last30Days"),2),k=w[0],S=w[1],C=v((0,l.useState)(Py(k)),2),E=C[0],T=C[1],M=v((0,l.useState)([]),2),O=M[0],P=M[1],j=v((0,l.useState)(),2),N=j[0],D=j[1],R=v((0,l.useState)({}),2),L=R[0],A=R[1],I=ag(f),F=(0,l.useRef)(!0),z=function(e){var t=s?"?domain=".concat(s):"";return e?"".concat(e).concat(t):"".concat(t)},B=(0,l.useMemo)((function(){return sN(p)}),[p]),U=(0,l.useMemo)((function(){return aN(B)}),[B]),V=U.os,H=U.browsers,W=U.referrers,Z=U.countries,Y=U.cities,q=U.citiesForMap,G=U.visitedUrls,K=vm(q),Q=function(e){xN=void 0,P(e)},$=function(e){return function(t){var n="".concat(e,"_").concat(t);xN===n?(P([]),D(void 0),xN=void 0):(P(B.filter(wk(e,t))),D(t),xN=n)}};(0,l.useEffect)((function(){return a}),[]),(0,l.useEffect)((function(){o({dateRange:E,filter:L},F.current),F.current=!1}),[E,L]),(0,l.useEffect)((function(){x&&S(x)}),[x]);return(0,ir.jsxs)(ir.Fragment,{children:[r,(0,ir.jsx)("section",{className:"mt-3",children:(0,ir.jsxs)("div",{className:"row flex-md-row-reverse",children:[(0,ir.jsx)("div",{className:"col-lg-7 col-xl-6",children:(0,ir.jsxs)("div",{className:"d-md-flex",children:[(0,ir.jsx)("div",{className:"flex-fill",children:(0,ir.jsx)(Hy,{updatable:!0,disabled:m,initialDateRange:k,defaultText:"All visits",onDatesChange:T})}),(0,ir.jsx)(lN,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:h,botsSupported:I,selected:L,onChange:A})]})}),p.length>0&&(0,ir.jsx)("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:(0,ir.jsxs)("div",{className:"d-flex",children:[(0,ir.jsx)(Qx,{className:"btn-md-block",amount:B.length,onClick:function(){return c(B)}}),(0,ir.jsxs)(xc,{outline:!0,disabled:0===O.length,className:"btn-md-block ms-2",onClick:function(){return Q([])},children:["Clear selection ",O.length>0&&(0,ir.jsxs)(ir.Fragment,{children:["(",Cb(O.length),")"]})]})]})})]})}),(0,ir.jsx)("section",{className:"mt-3",children:g?(0,ir.jsxs)(km,{loading:!0,children:["This is going to take a while... :S",(0,ir.jsx)(oh,{value:_,striped:100===_,className:"mt-3"})]}):m?(0,ir.jsx)(km,{loading:!0}):y?(0,ir.jsx)(Z_,{type:"error",children:(0,ir.jsx)(Y_,{errorData:b,fallbackMessage:"An error occurred while loading visits :("})}):Bn(p)?(0,ir.jsx)(km,{children:"There are no visits matching current filter"}):(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Ck,{fill:!0,children:Object.values(UN).map((function(e,t){var n=e.title,r=e.icon,i=e.subPath;return(0,ir.jsxs)(Sk,{to:z(i),replace:!0,children:[(0,ir.jsx)(Ks,{icon:r}),(0,ir.jsx)("span",{className:"ms-2 d-none d-sm-inline",children:n})]},t)}))}),(0,ir.jsx)(Mu,{children:(0,ir.jsxs)(Ne,{children:[(0,ir.jsx)(Pe,{path:UN.byTime.subPath,element:(0,ir.jsx)("div",{className:"col-12 mt-3",children:(0,ir.jsx)(Wj,{title:"Visits during time",visits:B,highlightedVisits:O,highlightedLabel:N,setSelectedVisits:Q})})}),(0,ir.jsx)(Pe,{path:UN.byContext.subPath,element:(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("div",{className:ol()("mt-3 col-lg-6",{"col-xl-4":!h}),children:(0,ir.jsx)(hN,{title:"Operating systems",stats:V})}),(0,ir.jsx)("div",{className:ol()("mt-3 col-lg-6",{"col-xl-4":!h}),children:(0,ir.jsx)(hN,{title:"Browsers",stats:H})}),(0,ir.jsx)("div",{className:ol()("mt-3",{"col-xl-4":!h,"col-lg-6":h}),children:(0,ir.jsx)(BN,{title:"Referrers",stats:W,withPagination:!1,highlightedStats:Jj(O,"referer"),highlightedLabel:N,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:$("referer")})}),h&&(0,ir.jsx)("div",{className:"mt-3 col-lg-6",children:(0,ir.jsx)(BN,{title:"Visited URLs",stats:G,highlightedLabel:N,highlightedStats:Jj(O,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:$("visitedUrl")})})]})}),(0,ir.jsx)(Pe,{path:UN.byLocation.subPath,element:(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("div",{className:"col-lg-6 mt-3",children:(0,ir.jsx)(BN,{title:"Countries",stats:Z,highlightedStats:Jj(O,"country"),highlightedLabel:N,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:$("country")})}),(0,ir.jsx)("div",{className:"col-lg-6 mt-3",children:(0,ir.jsx)(BN,{title:"Cities",stats:Y,highlightedStats:Jj(O,"city"),highlightedLabel:N,extraHeaderContent:function(e){return K.length>0&&(0,ir.jsx)(Qj,{modalTitle:"Cities",locations:K,activeCities:e})},sortingItems:{name:"City name",amount:"Visits amount"},onClick:$("city")})})]})}),(0,ir.jsx)(Pe,{path:UN.list.subPath,element:(0,ir.jsx)("div",{className:"col-12",children:(0,ir.jsx)(Kj,{visits:B,selectedVisits:O,setSelectedVisits:Q,isOrphanVisits:h,selectedServer:f})})}),(0,ir.jsx)(Pe,{path:"*",element:(0,ir.jsx)(Oe,{replace:!0,to:z(UN.byTime.subPath)})})]})})]})})]})},HN=function(e){var t=e.exportVisits;return eb((function(e){var n=e.shortUrlVisits,r=e.shortUrlDetail,i=e.getShortUrlVisits,o=e.getShortUrlDetail,a=e.cancelGetShortUrlVisits,s=e.settings,u=e.selectedServer,c=Ee().shortCode,f=void 0===c?"":c,d=Se().search,h=sm(),p=Hn(d).domain;return(0,l.useEffect)((function(){o(L_(f),p)}),[]),(0,ir.jsx)(VN,{getVisits:function(e,t){return i(L_(f),Ze(Ze({},eN(e)),{},{domain:p}),t)},cancelGetVisits:a,visitsInfo:n,domain:p,settings:s,exportCsv:function(e){var n;return t("short-url_".concat(null===(n=r.shortUrl)||void 0===n?void 0:n.shortUrl.replace(/https?:\/\//g,""),"_visits.csv"),e)},selectedServer:u,children:(0,ir.jsx)(xk,{shortUrlDetail:r,shortUrlVisits:n,goBack:h})})}),(function(e,t){return t.shortCode?[tb.shortUrlVisits(L_(t.shortCode))]:[]}))},WN=function(e){var t=e.tagVisits,n=e.goBack,r=e.colorGenerator,i=t.visits,o=t.tag,a=(0,ir.jsxs)("span",{className:"d-flex align-items-center justify-content-center",children:[(0,ir.jsx)("span",{className:"me-2",children:"Visits for"}),(0,ir.jsx)(Db,{text:o,colorGenerator:r})]});return(0,ir.jsx)(_k,{title:a,goBack:n,visits:i})},ZN=function(e,t){var n=t.exportVisits;return eb((function(t){var r=t.getTagVisits,i=t.tagVisits,o=t.cancelGetTagVisits,a=t.settings,s=t.selectedServer,l=sm(),u=Ee().tag,c=void 0===u?"":u;return(0,ir.jsx)(VN,{getVisits:function(e,t){return r(c,eN(e),t)},cancelGetVisits:o,visitsInfo:i,settings:a,exportCsv:function(e){return n("tag_".concat(c,"_visits.csv"),e)},selectedServer:s,children:(0,ir.jsx)(WN,{tagVisits:i,goBack:l,colorGenerator:e})})}),(function(){return[tb.visits]}))},YN=function(e){var t=e.exportVisits;return eb((function(e){var n=e.getOrphanVisits,r=e.orphanVisits,i=e.cancelGetOrphanVisits,o=e.settings,a=e.selectedServer,s=sm();return(0,ir.jsx)(VN,{getVisits:function(e,t){var r;return n(eN(e),null===(r=e.filter)||void 0===r?void 0:r.orphanVisitsType,t)},cancelGetVisits:i,visitsInfo:r,settings:o,exportCsv:function(e){return t("orphan_visits.csv",e)},selectedServer:a,isOrphanVisits:!0,children:(0,ir.jsx)(_k,{title:"Orphan visits",goBack:s,visits:r.visits})})}),(function(){return[tb.orphanVisits]}))},qN=function(e){var t=e.exportVisits;return eb((function(e){var n=e.getNonOrphanVisits,r=e.nonOrphanVisits,i=e.cancelGetNonOrphanVisits,o=e.settings,a=e.selectedServer,s=sm();return(0,ir.jsx)(VN,{getVisits:function(e,t){return n(eN(e),t)},cancelGetVisits:i,visitsInfo:r,settings:o,exportCsv:function(e){return t("non_orphan_visits.csv",e)},selectedServer:a,children:(0,ir.jsx)(_k,{title:"Non-orphan visits",goBack:s,visits:r.visits})})}),(function(){return[tb.visits]}))},GN="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_START",KN="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_ERROR",QN="shlink/shortUrlVisits/GET_SHORT_URL_VISITS",$N="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_LARGE",XN="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_CANCEL",JN="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_PROGRESS_CHANGED",eD="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_FALLBACK_TO_INTERVAL",tD={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},nD=jg((He(wN={},GN,(function(){return Ze(Ze({},tD),{},{loading:!0})})),He(wN,KN,(function(e,t){var n=t.errorData;return Ze(Ze({},tD),{},{error:!0,errorData:n})})),He(wN,QN,(function(e,t){var n=t.visits,r=t.query,i=t.shortCode,o=t.domain;return Ze(Ze({},e),{},{visits:n,shortCode:i,domain:o,query:r,loading:!1,loadingLarge:!1,error:!1})})),He(wN,$N,(function(e){return Ze(Ze({},e),{},{loadingLarge:!0})})),He(wN,XN,(function(e){return Ze(Ze({},e),{},{cancelLoad:!0})})),He(wN,JN,(function(e,t){var n=t.progress;return Ze(Ze({},e),{},{progress:n})})),He(wN,eD,(function(e,t){var n=t.fallbackInterval;return Ze(Ze({},e),{},{fallbackInterval:n})})),He(wN,b_,(function(e,t){var n=t.createdVisits,r=e.shortCode,i=e.domain,o=e.visits,a=e.query,s=void 0===a?{}:a,l=s.startDate,u=s.endDate,c=n.filter((function(e){var t=e.shortUrl,n=e.visit;return t&&D_(t,r,i)&&xy(n.date,l,u)})).map((function(e){return e.visit}));return 0===c.length?e:Ze(Ze({},e),{},{visits:[].concat(g(c),g(o))})})),wN),tD),rD=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var i=Bt(Yt().mark((function i(o,a){var s,l,u,c,f,d,h;return Yt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=e(a),l=s.getShortUrlVisits,u=function(){var e=Bt(Yt().mark((function e(r,i){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,Ze(Ze({},n),{},{page:r,itemsPerPage:i})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),c=y_(r,function(){var e=Bt(Yt().mark((function e(r){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,Ze(Ze({},r),{},{domain:n.domain})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),f=function(){return a().shortUrlVisits.cancelLoad},d={shortCode:t,query:n,domain:n.domain},h={start:GN,large:$N,finish:QN,error:KN,progress:JN,fallbackToInterval:eD},i.abrupt("return",g_(u,c,d,h,o,f));case 7:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}()}},iD=Ng(XN),oD="shlink/tagVisits/GET_TAG_VISITS_START",aD="shlink/tagVisits/GET_TAG_VISITS_ERROR",sD="shlink/tagVisits/GET_TAG_VISITS",lD="shlink/tagVisits/GET_TAG_VISITS_LARGE",uD="shlink/tagVisits/GET_TAG_VISITS_CANCEL",cD="shlink/tagVisits/GET_TAG_VISITS_PROGRESS_CHANGED",fD="shlink/tagVisits/GET_TAG_VISITS_FALLBACK_TO_INTERVAL",dD={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},hD=jg((He(kN={},oD,(function(){return Ze(Ze({},dD),{},{loading:!0})})),He(kN,aD,(function(e,t){var n=t.errorData;return Ze(Ze({},dD),{},{error:!0,errorData:n})})),He(kN,sD,(function(e,t){var n=t.visits,r=t.tag,i=t.query;return Ze(Ze({},e),{},{visits:n,tag:r,query:i,loading:!1,loadingLarge:!1,error:!1})})),He(kN,lD,(function(e){return Ze(Ze({},e),{},{loadingLarge:!0})})),He(kN,uD,(function(e){return Ze(Ze({},e),{},{cancelLoad:!0})})),He(kN,cD,(function(e,t){var n=t.progress;return Ze(Ze({},e),{},{progress:n})})),He(kN,fD,(function(e,t){var n=t.fallbackInterval;return Ze(Ze({},e),{},{fallbackInterval:n})})),He(kN,b_,(function(e,t){var n=t.createdVisits,r=e.tag,i=e.visits,o=e.query,a=void 0===o?{}:o,s=a.startDate,l=a.endDate,u=n.filter((function(e){var t=e.shortUrl,n=e.visit;return(null===t||void 0===t?void 0:t.tags.includes(r))&&xy(n.date,s,l)})).map((function(e){return e.visit}));return Ze(Ze({},e),{},{visits:[].concat(g(u),g(i))})})),kN),dD),pD=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var i=Bt(Yt().mark((function i(o,a){var s,l,u,c,f,d,h;return Yt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=e(a),l=s.getTagVisits,u=function(){var e=Bt(Yt().mark((function e(r,i){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,Ze(Ze({},n),{},{page:r,itemsPerPage:i})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),c=y_(r,function(){var e=Bt(Yt().mark((function e(n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,n));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),f=function(){return a().tagVisits.cancelLoad},d={tag:t,query:n},h={start:oD,large:lD,finish:sD,error:aD,progress:cD,fallbackToInterval:fD},i.abrupt("return",g_(u,c,d,h,o,f));case 7:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}()}},vD=Ng(uD),mD="shlink/orphanVisits/GET_ORPHAN_VISITS_START",gD="shlink/orphanVisits/GET_ORPHAN_VISITS_ERROR",yD="shlink/orphanVisits/GET_ORPHAN_VISITS",bD="shlink/orphanVisits/GET_ORPHAN_VISITS_LARGE",_D="shlink/orphanVisits/GET_ORPHAN_VISITS_CANCEL",xD="shlink/orphanVisits/GET_ORPHAN_VISITS_PROGRESS_CHANGED",wD="shlink/orphanVisits/GET_ORPHAN_VISITS_FALLBACK_TO_INTERVAL",kD={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},SD=jg((He(SN={},mD,(function(){return Ze(Ze({},kD),{},{loading:!0})})),He(SN,gD,(function(e,t){var n=t.errorData;return Ze(Ze({},kD),{},{error:!0,errorData:n})})),He(SN,yD,(function(e,t){var n=t.visits,r=t.query;return Ze(Ze({},e),{},{visits:n,query:r,loading:!1,loadingLarge:!1,error:!1})})),He(SN,bD,(function(e){return Ze(Ze({},e),{},{loadingLarge:!0})})),He(SN,_D,(function(e){return Ze(Ze({},e),{},{cancelLoad:!0})})),He(SN,xD,(function(e,t){var n=t.progress;return Ze(Ze({},e),{},{progress:n})})),He(SN,wD,(function(e,t){var n=t.fallbackInterval;return Ze(Ze({},e),{},{fallbackInterval:n})})),He(SN,b_,(function(e,t){var n=t.createdVisits,r=e.visits,i=e.query,o=void 0===i?{}:i,a=o.startDate,s=o.endDate,l=n.filter((function(e){var t=e.visit;return!e.shortUrl&&xy(t.date,a,s)})).map((function(e){return e.visit}));return Ze(Ze({},e),{},{visits:[].concat(g(l),g(r))})})),SN),kD),CD=function(e,t){return!t||t===e.type},ED=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var i=Bt(Yt().mark((function i(o,a){var s,l,u,c,f,d,h;return Yt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=e(a),l=s.getOrphanVisits,u=function(){var e=Bt(Yt().mark((function e(r,i){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(Ze(Ze({},t),{},{page:r,itemsPerPage:i})).then((function(e){var t=e.data.filter((function(e){return $j(e)&&CD(e,n)}));return Ze(Ze({},e),{},{data:t})})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),c=y_(r,l),f=function(){return a().orphanVisits.cancelLoad},d={query:t},h={start:mD,large:bD,finish:yD,error:gD,progress:xD,fallbackToInterval:wD},i.abrupt("return",g_(u,c,d,h,o,f));case 7:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}()}},TD=Ng(_D),MD="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_START",OD="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_ERROR",PD="shlink/orphanVisits/GET_NON_ORPHAN_VISITS",jD="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_LARGE",ND="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_CANCEL",DD="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_PROGRESS_CHANGED",RD="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_FALLBACK_TO_INTERVAL",LD={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},AD=jg((He(CN={},MD,(function(){return Ze(Ze({},LD),{},{loading:!0})})),He(CN,OD,(function(e,t){var n=t.errorData;return Ze(Ze({},LD),{},{error:!0,errorData:n})})),He(CN,PD,(function(e,t){var n=t.visits,r=t.query;return Ze(Ze({},e),{},{visits:n,query:r,loading:!1,loadingLarge:!1,error:!1})})),He(CN,jD,(function(e){return Ze(Ze({},e),{},{loadingLarge:!0})})),He(CN,ND,(function(e){return Ze(Ze({},e),{},{cancelLoad:!0})})),He(CN,DD,(function(e,t){var n=t.progress;return Ze(Ze({},e),{},{progress:n})})),He(CN,RD,(function(e,t){var n=t.fallbackInterval;return Ze(Ze({},e),{},{fallbackInterval:n})})),He(CN,b_,(function(e,t){var n=t.createdVisits,r=e.visits,i=e.query,o=void 0===i?{}:i,a=o.startDate,s=o.endDate,l=n.filter((function(e){var t=e.visit;return xy(t.date,a,s)})).map((function(e){return e.visit}));return Ze(Ze({},e),{},{visits:[].concat(g(l),g(r))})})),CN),LD),ID=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(){var r=Bt(Yt().mark((function r(i,o){var a,s,l,u,c,f,d;return Yt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e(o),s=a.getNonOrphanVisits,l=function(){var e=Bt(Yt().mark((function e(n,r){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(Ze(Ze({},t),{},{page:n,itemsPerPage:r})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),u=y_(n,s),c=function(){return o().orphanVisits.cancelLoad},f={query:t},d={start:MD,large:jD,finish:PD,error:OD,progress:DD,fallbackToInterval:RD},r.abrupt("return",g_(l,u,f,d,i,c));case 7:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}()}},FD=Ng(ND),zD=["visitsCount","orphanVisitsCount"],BD="shlink/visitsOverview/GET_OVERVIEW_START",UD="shlink/visitsOverview/GET_OVERVIEW_ERROR",VD="shlink/visitsOverview/GET_OVERVIEW",HD={visitsCount:0,orphanVisitsCount:0,loading:!1,error:!1},WD=jg((He(EN={},BD,(function(){return Ze(Ze({},HD),{},{loading:!0})})),He(EN,UD,(function(){return Ze(Ze({},HD),{},{error:!0})})),He(EN,VD,(function(e,t){var n=t.visitsCount,r=t.orphanVisitsCount;return Ze(Ze({},HD),{},{visitsCount:n,orphanVisitsCount:r})})),He(EN,b_,(function(e,t){var n=e.visitsCount,r=e.orphanVisitsCount,i=void 0===r?0:r,o=Wt(e,zD),a=t.createdVisits,s=Xj(a),l=s.regularVisits,u=s.orphanVisits;return Ze(Ze({},o),{},{visitsCount:n+l.length,orphanVisitsCount:i+u.length})})),EN),HD),ZD=function(e){return function(){return function(){var t=Bt(Yt().mark((function t(n,r){var i,o,a;return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n({type:BD}),t.prev=1,i=e(r),o=i.getVisitsOverview,t.next=5,o();case 5:a=t.sent,n(Ze({type:VD},a)),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1),n({type:UD});case 12:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(e,n){return t.apply(this,arguments)}}()}},YD=function(e){var t=e.exportVisits;return eb((function(e){var n=e.getDomainVisits,r=e.domainVisits,i=e.cancelGetDomainVisits,o=e.settings,a=e.selectedServer,s=sm(),l=Ee().domain,u=v((void 0===l?"":l).split("_"),2),c=u[0],f=u[1],d=void 0===f?c:f;return(0,ir.jsx)(VN,{getVisits:function(e,t){return n(d,eN(e),t)},cancelGetVisits:i,visitsInfo:r,settings:o,exportCsv:function(e){return t("domain_".concat(c,"_visits.csv"),e)},selectedServer:a,children:(0,ir.jsx)(_k,{goBack:s,visits:r.visits,title:'"'.concat(c,'" visits')})})}),(function(){return[tb.visits]}))},qD=function(t,n){t.serviceFactory("MapModal",(function(){return bk})),t.serviceFactory("ShortUrlVisits",HN,"ReportExporter"),t.decorator("ShortUrlVisits",n(["shortUrlVisits","shortUrlDetail","mercureInfo","settings","selectedServer"],["getShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("TagVisits",ZN,"ColorGenerator","ReportExporter"),t.decorator("TagVisits",n(["tagVisits","mercureInfo","settings","selectedServer"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("DomainVisits",YD,"ReportExporter"),t.decorator("DomainVisits",n(["domainVisits","mercureInfo","settings","selectedServer"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("OrphanVisits",YN,"ReportExporter"),t.decorator("OrphanVisits",n(["orphanVisits","mercureInfo","settings","selectedServer"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("NonOrphanVisits",qN,"ReportExporter"),t.decorator("NonOrphanVisits",n(["nonOrphanVisits","mercureInfo","settings","selectedServer"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("VisitsParser",(function(){return e})),t.serviceFactory("getShortUrlVisits",rD,"buildShlinkApiClient"),t.serviceFactory("cancelGetShortUrlVisits",(function(){return iD})),t.serviceFactory("getTagVisits",pD,"buildShlinkApiClient"),t.serviceFactory("cancelGetTagVisits",(function(){return vD})),t.serviceFactory("getDomainVisits",j_,"buildShlinkApiClient"),t.serviceFactory("cancelGetDomainVisits",(function(){return N_})),t.serviceFactory("getOrphanVisits",ED,"buildShlinkApiClient"),t.serviceFactory("cancelGetOrphanVisits",(function(){return TD})),t.serviceFactory("getNonOrphanVisits",ID,"buildShlinkApiClient"),t.serviceFactory("cancelGetNonOrphanVisits",(function(){return FD})),t.serviceFactory("createNewVisits",(function(){return __})),t.serviceFactory("loadVisitsOverview",ZD,"buildShlinkApiClient")},GD=n(4581),KD=n.n(GD),QD=function(e){var t=e.tag,n=e.colorGenerator;return(0,ir.jsx)("div",{style:{backgroundColor:n.getColorForKey(t)},className:"tag-bullet"})},$D=function(e){return{id:e,name:e}},XD=function(e){return function(t){var n,r,i=t.selectedTags,o=t.onChange,a=t.placeholder,s=t.listTags,u=t.tagsList,c=t.settings,f=t.allowNew,d=void 0===f||f;(0,l.useEffect)((function(){s()}),[]);var h=null!==(n=null===(r=c.shortUrlCreation)||void 0===r?void 0:r.tagFilteringMode)&&void 0!==n?n:"startsWith";return(0,ir.jsx)(KD(),{tags:i.map($D),tagComponent:function(t){var n=t.tag,r=t.onDelete;return(0,ir.jsx)(Db,{colorGenerator:e,text:n.name,clearable:!0,className:"react-tags__tag",onClose:r})},suggestions:u.tags.filter((function(e){return!i.includes(e)})).map($D),suggestionComponent:function(t){var n=t.item;return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(QD,{tag:"".concat(n.name),colorGenerator:e}),n.name]})},allowNew:d,addOnBlur:!0,placeholderText:null!==a&&void 0!==a?a:"Add tags to the URL",minQueryLength:1,delimiters:["Enter","Tab",","],suggestionsTransform:"includes"===h?function(e,t){return t.filter((function(t){return t.name.includes(e)}))}:void 0,onDelete:function(e){var t=g(i);t.splice(e,1),o(t)},onAddition:function(e){var t=e.name;return o(g(new Set([].concat(g(i),g(t.toLowerCase().split(","))))))}})}},JD=function(e,t,n){return function(r){var i=r.tag,o=r.selectedServer,a=r.displayed,s=r.toggle,u=v(am(),2),c=u[0],f=u[1],d=v(am(),2),h=d[0],p=d[1],m=v(am(),3),g=m[0],y=m[2],b=(0,l.useRef)(),_=It(o);return(0,l.useEffect)((function(){var e;(e=b.current)&&e.scrollWidth>e.clientWidth&&y()}),[b.current]),(0,ir.jsxs)(jf,{className:"tag-card",children:[(0,ir.jsxs)(td,{className:"tag-card__header",children:[(0,ir.jsx)(xc,{"aria-label":"Delete tag",color:"link",size:"sm",className:"tag-card__btn tag-card__btn--last",onClick:f,children:(0,ir.jsx)(Ks,{icon:Ar})}),(0,ir.jsx)(xc,{"aria-label":"Edit tag",color:"link",size:"sm",className:"tag-card__btn",onClick:p,children:(0,ir.jsx)(Ks,{icon:dr})}),(0,ir.jsxs)("h5",{className:"tag-card__tag-title text-ellipsis",title:g?i.tag:void 0,ref:z_(b),children:[(0,ir.jsx)(QD,{tag:i.tag,colorGenerator:n}),(0,ir.jsx)("span",{className:"tag-card__tag-name",onClick:s,children:i.tag})]})]}),(0,ir.jsx)(xf,{isOpen:a,children:(0,ir.jsxs)(Wf,{className:"tag-card__body",children:[(0,ir.jsxs)(ze,{to:"/server/".concat(_,"/list-short-urls/1?tags=").concat(encodeURIComponent(i.tag)),className:"btn btn-outline-secondary btn-block d-flex justify-content-between align-items-center mb-1",children:[(0,ir.jsxs)("span",{className:"text-ellipsis",children:[(0,ir.jsx)(Ks,{icon:ri,className:"me-2"}),"Short URLs"]}),(0,ir.jsx)("b",{children:Cb(i.shortUrls)})]}),(0,ir.jsxs)(ze,{to:"/server/".concat(_,"/tag/").concat(i.tag,"/visits"),className:"btn btn-outline-secondary btn-block d-flex justify-content-between align-items-center",children:[(0,ir.jsxs)("span",{className:"text-ellipsis",children:[(0,ir.jsx)(Ks,{icon:Rr,className:"me-2"}),"Visits"]}),(0,ir.jsx)("b",{children:Cb(i.visits)})]})]})}),(0,ir.jsx)(e,{tag:i.tag,toggle:f,isOpen:c}),(0,ir.jsx)(t,{tag:i.tag,toggle:p,isOpen:h})]})}},eR=function(e){var t=e.tag,n=e.toggle,r=e.isOpen,i=e.deleteTag,o=e.tagDelete,a=e.tagDeleted,s=o.deleting,l=o.error,u=o.errorData,c=function(){var e=Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i(t);case 2:a(t),n();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,ir.jsxs)(vh,{toggle:n,isOpen:r,centered:!0,children:[(0,ir.jsx)(bh,{toggle:n,className:"text-danger",children:"Delete tag"}),(0,ir.jsxs)(kh,{children:["Are you sure you want to delete tag ",(0,ir.jsx)("b",{children:t}),"?",l&&(0,ir.jsx)(Z_,{type:"error",small:!0,className:"mt-2",children:(0,ir.jsx)(Y_,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),(0,ir.jsxs)(Th,{children:[(0,ir.jsx)(xc,{color:"link",onClick:n,children:"Cancel"}),(0,ir.jsx)(xc,{color:"danger",disabled:s,onClick:c,children:s?"Deleting tag...":"Delete tag"})]})]})};function tR(){return(tR=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 nR(e,t){if(null==e)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 rR(e){var t=(0,l.useRef)(e),n=(0,l.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var iR=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},oR=function(e){return"touches"in e},aR=function(e){return e&&e.ownerDocument.defaultView||self},sR=function(e,t,n){var r=e.getBoundingClientRect(),i=oR(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:iR((i.pageX-(r.left+aR(e).pageXOffset))/r.width),top:iR((i.pageY-(r.top+aR(e).pageYOffset))/r.height)}},lR=function(e){!oR(e)&&e.preventDefault()},uR=l.memo((function(e){var t=e.onMove,n=e.onKey,r=nR(e,["onMove","onKey"]),i=(0,l.useRef)(null),o=rR(t),a=rR(n),s=(0,l.useRef)(null),u=(0,l.useRef)(!1),c=(0,l.useMemo)((function(){var e=function(e){lR(e),(oR(e)?e.touches.length>0:e.buttons>0)&&i.current?o(sR(i.current,e,s.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=u.current,o=aR(i.current),a=n?o.addEventListener:o.removeEventListener;a(r?"touchmove":"mousemove",e),a(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=i.current;if(r&&(lR(t),!function(e,t){return t&&!oR(e)}(t,u.current)&&r)){if(oR(t)){u.current=!0;var a=t.changedTouches||[];a.length&&(s.current=a[0].identifier)}r.focus(),o(sR(r,t,s.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),a({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[a,o]),f=c[0],d=c[1],h=c[2];return(0,l.useEffect)((function(){return h}),[h]),l.createElement("div",tR({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:i,onKeyDown:d,tabIndex:0,role:"slider"}))})),cR=function(e){return e.filter(Boolean).join(" ")},fR=function(e){var t=e.color,n=e.left,r=e.top,i=void 0===r?.5:r,o=cR(["react-colorful__pointer",e.className]);return l.createElement("div",{className:o,style:{top:100*i+"%",left:100*n+"%"}},l.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},dR=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},hR=(Math.PI,function(e){return"#"===e[0]&&(e=e.substr(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:1}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:1}}),pR=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:dR(e.h),s:dR(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:dR(i/2),a:dR(r,2)}},vR=function(e){var t=pR(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},mR=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),a=r*(1-n),s=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),u=o%6;return{r:dR(255*[r,s,a,a,l,r][u]),g:dR(255*[l,r,r,s,a,a][u]),b:dR(255*[a,a,l,r,r,s][u]),a:dR(i,2)}},gR=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},yR=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),a=o-Math.min(t,n,r),s=a?o===t?(n-r)/a:o===n?2+(r-t)/a:4+(t-n)/a:0;return{h:dR(60*(s<0?s+6:s)),s:dR(o?a/o*100:0),v:dR(o/255*100),a:i}},bR=l.memo((function(e){var t=e.hue,n=e.onChange,r=cR(["react-colorful__hue",e.className]);return l.createElement("div",{className:r},l.createElement(uR,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:iR(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":dR(t)},l.createElement(fR,{className:"react-colorful__hue-pointer",left:t/360,color:vR({h:t,s:100,v:100,a:1})})))})),_R=l.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:vR({h:t.h,s:100,v:100,a:1})};return l.createElement("div",{className:"react-colorful__saturation",style:r},l.createElement(uR,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:iR(t.s+100*e.left,0,100),v:iR(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+dR(t.s)+"%, Brightness "+dR(t.v)+"%"},l.createElement(fR,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:vR(t)})))})),xR=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function wR(e,t,n){var r=rR(n),i=(0,l.useState)((function(){return e.toHsva(t)})),o=i[0],a=i[1],s=(0,l.useRef)({color:t,hsva:o});(0,l.useEffect)((function(){if(!e.equal(t,s.current.color)){var n=e.toHsva(t);s.current={hsva:n,color:t},a(n)}}),[t,e]),(0,l.useEffect)((function(){var t;xR(o,s.current.hsva)||e.equal(t=e.fromHsva(o),s.current.color)||(s.current={hsva:o,color:t},r(t))}),[o,e,r]);var u=(0,l.useCallback)((function(e){a((function(t){return Object.assign({},t,e)}))}),[]);return[o,u]}var kR,SR,CR,ER,TR,MR="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,OR=new Map,PR=function(e){MR((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!OR.has(t)){var r=t.createElement("style");r.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}',OR.set(t,r);var i=kR||n.nc;i&&r.setAttribute("nonce",i),t.head.appendChild(r)}}),[])},jR=function(e){var t=e.className,n=e.colorModel,r=e.color,i=void 0===r?n.defaultColor:r,o=e.onChange,a=nR(e,["className","colorModel","color","onChange"]),s=(0,l.useRef)(null);PR(s);var u=wR(n,i,o),c=u[0],f=u[1],d=cR(["react-colorful",t]);return l.createElement("div",tR({},a,{ref:s,className:d}),l.createElement(_R,{hsva:c,onChange:f}),l.createElement(bR,{hue:c.h,onChange:f,className:"react-colorful__last-control"}))},NR={defaultColor:"000",toHsva:function(e){return yR(hR(e))},fromHsva:function(e){return n=(t=mR(e)).g,r=t.b,"#"+gR(t.r)+gR(n)+gR(r);var t,n,r},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||xR(hR(e),hR(t))}},DR=function(e){return l.createElement(jR,tR({},e,{colorModel:NR}))},RR=function(e){var t=e.getColorForKey;return function(e){var n=e.tag,r=e.editTag,i=e.toggle,o=e.tagEdited,a=e.isOpen,s=e.tagEdit,u=v((0,l.useState)(n),2),c=u[0],f=u[1],d=v((0,l.useState)(t(n)),2),h=d[0],p=d[1],m=v(am(),4),g=m[0],y=m[1],b=m[3],_=s.editing,x=s.error,w=s.errorData,k=eg(Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r(n,c,h).then((function(){return o(n,c,h)})).then(i).catch((function(){})));case 1:case"end":return e.stop()}}),e)}))));return(0,ir.jsx)(vh,{isOpen:a,toggle:i,centered:!0,onClosed:b,children:(0,ir.jsxs)("form",{name:"editTag",onSubmit:k,children:[(0,ir.jsx)(bh,{toggle:i,children:"Edit tag"}),(0,ir.jsxs)(kh,{children:[(0,ir.jsxs)(ip,{children:[(0,ir.jsx)("div",{id:"colorPickerBtn",className:"input-group-text edit-tag-modal__color-picker-toggle",style:{backgroundColor:h,borderColor:h},onClick:y,children:(0,ir.jsx)(Ks,{icon:Or,className:"edit-tag-modal__color-icon"})}),(0,ir.jsx)(Gd,{isOpen:g,toggle:y,target:"colorPickerBtn",placement:"right",hideArrow:!0,popperClassName:"edit-tag-modal__popover",children:(0,ir.jsx)(DR,{color:h,onChange:p})}),(0,ir.jsx)(ep,{value:c,placeholder:"Tag",required:!0,onChange:function(e){var t=e.target;return f(t.value)}})]}),x&&(0,ir.jsx)(Z_,{type:"error",small:!0,className:"mt-2",children:(0,ir.jsx)(Y_,{errorData:w,fallbackMessage:"Something went wrong while editing the tag :("})})]}),(0,ir.jsxs)(Th,{children:[(0,ir.jsx)(xc,{type:"button",color:"link",onClick:i,children:"Cancel"}),(0,ir.jsx)(xc,{color:"primary",disabled:_,children:_?"Saving...":"Save"})]})]})})}},LR={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},AR=function(e){var t,n=e.mode,r=e.onChange,i=e.renderTitle;return(0,ir.jsxs)(Zg,{text:null!==(t=null===i||void 0===i?void 0:i(n))&&void 0!==t?t:"Display mode: ".concat(n),children:[(0,ir.jsxs)(Hc,{active:"cards"===n,onClick:function(){return r("cards")},children:[(0,ir.jsx)(Ks,{icon:Ur,fixedWidth:!0,className:"me-1"})," Cards"]}),(0,ir.jsxs)(Hc,{active:"list"===n,onClick:function(){return r("list")},children:[(0,ir.jsx)(Ks,{icon:pr,fixedWidth:!0,className:"me-1"})," List"]})]})},IR=function(e,t){return eb((function(n){var r,i,o,a,s=n.filterTags,u=n.forceListTags,c=n.tagsList,f=n.selectedServer,d=n.settings,h=v((0,l.useState)(null!==(r=null===(i=d.tags)||void 0===i?void 0:i.defaultMode)&&void 0!==r?r:"cards"),2),p=h[0],m=h[1],g=v((0,l.useState)(null!==(o=null===(a=d.tags)||void 0===a?void 0:a.defaultOrdering)&&void 0!==o?o:{}),2),y=g[0],b=g[1],_=$m((function(){return c.filteredTags.map((function(e){var t,n,r,i;return{tag:e,shortUrls:null!==(t=null===(n=c.stats[e])||void 0===n?void 0:n.shortUrlsCount)&&void 0!==t?t:0,visits:null!==(r=null===(i=c.stats[e])||void 0===i?void 0:i.visitsCount)&&void 0!==r?r:0}}))}),(function(e){return Yn(e,y)}));if((0,l.useEffect)((function(){u()}),[]),c.loading)return(0,ir.jsx)(km,{loading:!0});if(c.error)return(0,ir.jsx)(Z_,{type:"error",children:(0,ir.jsx)(Y_,{errorData:c.errorData,fallbackMessage:"Error loading tags :("})});var x=function(e){return function(){var t=Zn(e,y.field,y.dir);b({field:t?e:void 0,dir:t})}};return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Wg,{className:"mb-3",onChange:s}),(0,ir.jsxs)(Mu,{className:"mb-3",children:[(0,ir.jsx)("div",{className:"col-lg-6",children:(0,ir.jsx)(AR,{mode:p,onChange:m})}),(0,ir.jsx)("div",{className:"col-lg-6 mt-3 mt-lg-0",children:(0,ir.jsx)(Yy,{items:LR,order:y,onChange:function(e,t){return b({field:e,dir:t})}})})]}),function(){if(c.filteredTags.length<1)return(0,ir.jsx)(km,{children:"No tags found"});var n=_();return"cards"===p?(0,ir.jsx)(e,{sortedTags:n,selectedServer:f}):(0,ir.jsx)(t,{sortedTags:n,selectedServer:f,currentOrder:y,orderByColumn:x})}()]})}),(function(){return[tb.visits]}))},FR="shlink/deleteTag/DELETE_TAG_START",zR="shlink/deleteTag/DELETE_TAG_ERROR",BR="shlink/deleteTag/DELETE_TAG",UR="shlink/deleteTag/TAG_DELETED",VR=jg((He(SR={},FR,(function(){return{deleting:!0,error:!1}})),He(SR,zR,(function(e,t){return{deleting:!1,error:!0,errorData:t.errorData}})),He(SR,BR,(function(){return{deleting:!1,error:!1}})),SR),{deleting:!1,error:!1}),HR=function(e){return function(t){return function(){var n=Bt(Yt().mark((function n(r,i){var o,a;return Yt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r({type:FR}),o=e(i),a=o.deleteTags,n.prev=2,n.next=5,a([t]);case 5:r({type:BR}),n.next=12;break;case 8:throw n.prev=8,n.t0=n.catch(2),r({type:zR,errorData:d_(n.t0)}),n.t0;case 12:case"end":return n.stop()}}),n,null,[[2,8]])})));return function(e,t){return n.apply(this,arguments)}}()}},WR=function(e){return{type:UR,tag:e}},ZR="shlink/editTag/EDIT_TAG_START",YR="shlink/editTag/EDIT_TAG_ERROR",qR="shlink/editTag/EDIT_TAG",GR="shlink/editTag/TAG_EDITED",KR=jg((He(CR={},ZR,(function(e){return Ze(Ze({},e),{},{editing:!0,error:!1})})),He(CR,YR,(function(e,t){var n=t.errorData;return Ze(Ze({},e),{},{editing:!1,error:!0,errorData:n})})),He(CR,qR,(function(e,t){return Ze(Ze({},wt(["oldName","newName"],t)),{},{editing:!1,error:!1})})),CR),{oldName:"",newName:"",editing:!1,error:!1}),QR=function(e,t){return function(n,r,i){return function(){var o=Bt(Yt().mark((function o(a,s){var l,u;return Yt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a({type:ZR}),l=e(s),u=l.editTag,o.prev=2,o.next=5,u(n,r);case 5:t.setColorForKey(r,i),a({type:qR,oldName:n,newName:r}),o.next=13;break;case 9:throw o.prev=9,o.t0=o.catch(2),a({type:YR,errorData:d_(o.t0)}),o.t0;case 13:case"end":return o.stop()}}),o,null,[[2,9]])})));return function(e,t){return o.apply(this,arguments)}}()}},$R=function(e,t,n){return{type:GR,oldName:e,newName:t,color:n}},XR=["tags"],JR="shlink/tagsList/LIST_TAGS_START",eL="shlink/tagsList/LIST_TAGS_ERROR",tL="shlink/tagsList/LIST_TAGS",nL="shlink/tagsList/FILTER_TAGS",rL={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},iL=function(e,t){return function(n){return n===e?t:n}},oL=function(e,t){return En((function(e){return e===t}),e)},aL=function(e){return Object.entries(e.reduce((function(e,t){var n=t.shortUrl;return null===n||void 0===n||n.tags.forEach((function(t){e[t]=(e[t]||0)+1})),e}),{}))},sL=jg((He(ER={},JR,(function(){return Ze(Ze({},rL),{},{loading:!0})})),He(ER,eL,(function(e,t){var n=t.errorData;return Ze(Ze({},rL),{},{error:!0,errorData:n})})),He(ER,tL,(function(e,t){var n=t.tags,r=t.stats;return Ze(Ze({},rL),{},{stats:r,tags:n,filteredTags:n})})),He(ER,UR,(function(e,t){var n=t.tag;return Ze(Ze({},e),{},{tags:oL(e.tags,n),filteredTags:oL(e.filteredTags,n)})})),He(ER,GR,(function(e,t){var n=t.oldName,r=t.newName;return Ze(Ze({},e),{},{tags:e.tags.map(iL(n,r)).sort(),filteredTags:e.filteredTags.map(iL(n,r)).sort()})})),He(ER,nL,(function(e,t){var n=t.searchTerm;return Ze(Ze({},e),{},{filteredTags:e.tags.filter((function(e){return e.toLowerCase().match(n.toLowerCase())}))})})),He(ER,b_,(function(e,t){var n,r,i=t.createdVisits;return Ze(Ze({},e),{},{stats:(n=aL(i),r=e.stats,n.reduce((function(e,t){var n=v(t,2),r=n[0],i=n[1];if(!e[r])return e;var o=e[r];return o.visitsCount+=i,e[r]=o,e}),Ze({},r)))})})),He(ER,cx,(function(e,t){var n=e.tags,r=Wt(e,XR),i=t.result;return Ze(Ze({},r),{},{tags:n.concat(i.tags.filter((function(e){return!n.includes(e)})))})})),ER),rL),lL=function(e){return{type:nL,searchTerm:e}},uL=Math.ceil,cL=function(e){return function(t){var n=t.sortedTags,r=t.selectedServer,i=v((0,l.useState)(),2),o=i[0],a=i[1],s=n.length,u=f_(uL(s/4),n);return(0,ir.jsx)(Mu,{children:u.map((function(t,n){return(0,ir.jsx)("div",{className:"col-md-6 col-xl-3",children:t.map((function(t){return(0,ir.jsx)(e,{tag:t,selectedServer:r,displayed:o===t.tag,toggle:function(){return a(o!==t.tag?t.tag:void 0)}},t.tag)}))},n)}))})}},fL=function(e){return function(t){var n,r=t.sortedTags,i=t.selectedServer,o=t.orderByColumn,a=t.currentOrder,s=(0,l.useRef)(!0),u=Se().search,c=Hn(u).page,f=function(e,t){var n=v((0,l.useState)(t),2),r=n[0],i=n[1];return[r,function(t){var n=window,r=n.location,o=n.history,a=Hn(r.search);a[e]=t,o.pushState(null,"","".concat(r.pathname,"?").concat(Wn(a))),i(t)}]}("page",Number(void 0===c?1:c)),d=v(f,2),h=d[0],p=d[1],m=f_(20,r),g=m.length>1,y=null!==(n=m[h-1])&&void 0!==n?n:[];return(0,l.useEffect)((function(){!s.current&&p(1),s.current=!1}),[r]),(0,l.useEffect)((function(){scrollTo(0,0)}),[h]),(0,ir.jsxs)(gg,{bodyClassName:g?"pb-1":"",children:[(0,ir.jsxs)("table",{className:"table table-hover responsive-table mb-0",children:[(0,ir.jsxs)("thead",{className:"responsive-table__header",children:[(0,ir.jsxs)("tr",{children:[(0,ir.jsxs)("th",{className:"tags-table__header-cell",onClick:o("tag"),children:["Tag ",(0,ir.jsx)(nb,{currentOrder:a,field:"tag"})]}),(0,ir.jsxs)("th",{className:"tags-table__header-cell text-lg-end",onClick:o("shortUrls"),children:["Short URLs ",(0,ir.jsx)(nb,{currentOrder:a,field:"shortUrls"})]}),(0,ir.jsxs)("th",{className:"tags-table__header-cell text-lg-end",onClick:o("visits"),children:["Visits ",(0,ir.jsx)(nb,{currentOrder:a,field:"visits"})]}),(0,ir.jsx)("th",{"aria-label":"Options",className:"tags-table__header-cell"})]}),(0,ir.jsx)("tr",{children:(0,ir.jsx)("th",{"aria-label":"Separator",colSpan:4,className:"p-0 border-top-0"})})]}),(0,ir.jsxs)("tbody",{children:[0===y.length&&(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:4,className:"text-center",children:"No results found"})}),y.map((function(t){return(0,ir.jsx)(e,{tag:t,selectedServer:i},t.tag)}))]})]}),g&&(0,ir.jsx)("div",{className:"sticky-card-paginator",children:(0,ir.jsx)(Zj,{pagesCount:m.length,currentPage:h,setCurrentPage:p})})]},h)}},dL=function(e,t,n){return function(r){var i=r.tag,o=r.selectedServer,a=v(am(),2),s=a[0],l=a[1],u=v(am(),2),c=u[0],f=u[1],d=v(am(),2),h=d[0],p=d[1],m=It(o);return(0,ir.jsxs)("tr",{className:"responsive-table__row",children:[(0,ir.jsxs)("th",{className:"responsive-table__cell","data-th":"Tag",children:[(0,ir.jsx)(QD,{tag:i.tag,colorGenerator:n})," ",i.tag]}),(0,ir.jsx)("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:(0,ir.jsx)(ze,{to:"/server/".concat(m,"/list-short-urls/1?tags=").concat(encodeURIComponent(i.tag)),children:Cb(i.shortUrls)})}),(0,ir.jsx)("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:(0,ir.jsx)(ze,{to:"/server/".concat(m,"/tag/").concat(i.tag,"/visits"),children:Cb(i.visits)})}),(0,ir.jsx)("td",{className:"responsive-table__cell text-lg-end",children:(0,ir.jsxs)(V_,{toggle:p,isOpen:h,children:[(0,ir.jsxs)(Hc,{onClick:f,children:[(0,ir.jsx)(Ks,{icon:dr,fixedWidth:!0,className:"me-1"})," Edit"]}),(0,ir.jsxs)(Hc,{onClick:l,children:[(0,ir.jsx)(Ks,{icon:Ar,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),(0,ir.jsx)(t,{tag:i.tag,toggle:f,isOpen:c}),(0,ir.jsx)(e,{tag:i.tag,toggle:l,isOpen:s})]})}},hL=function(e,t){e.serviceFactory("TagsSelector",XD,"ColorGenerator"),e.decorator("TagsSelector",t(["tagsList","settings"],["listTags"])),e.serviceFactory("TagCard",JD,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.serviceFactory("DeleteTagConfirmModal",(function(){return eR})),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.serviceFactory("EditTagModal",RR,"ColorGenerator"),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.serviceFactory("TagsCards",cL,"TagCard"),e.serviceFactory("TagsTableRow",dL,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.serviceFactory("TagsTable",fL,"TagsTableRow"),e.serviceFactory("TagsList",IR,"TagsCards","TagsTable"),e.decorator("TagsList",t(["tagsList","selectedServer","mercureInfo","settings"],["forceListTags","filterTags","createNewVisits","loadMercureInfo"]));var n=function(e){return function(t){return function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(){return function(){var n=Bt(Yt().mark((function n(r,i){var o,a,s,l,u,c,f,d;return Yt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=i(),a=o.tagsList,t||!a.loading&&Bn(a.tags)){n.next=3;break}return n.abrupt("return");case 3:return r({type:JR}),n.prev=4,s=e(i),l=s.listTags,n.next=8,l();case 8:u=n.sent,c=u.tags,f=u.stats,d=(void 0===f?[]:f).reduce((function(e,t){var n=t.tag,r=t.shortUrlsCount,i=t.visitsCount;return e[n]={shortUrlsCount:r,visitsCount:i},e}),{}),r({tags:c,stats:d,type:tL}),n.next=19;break;case 16:n.prev=16,n.t0=n.catch(4),r({type:eL,errorData:d_(n.t0)});case 19:case"end":return n.stop()}}),n,null,[[4,16]])})));return function(e,t){return n.apply(this,arguments)}}()}}(t.buildShlinkApiClient,e)}};e.factory("listTags",n(!1)),e.factory("forceListTags",n(!0)),e.serviceFactory("filterTags",(function(){return lL})),e.serviceFactory("tagDeleted",(function(){return WR})),e.serviceFactory("tagEdited",(function(){return $R})),e.serviceFactory("deleteTag",HR,"buildShlinkApiClient"),e.serviceFactory("editTag",QR,"buildShlinkApiClient","ColorGenerator")},pL=function(e){return"".concat("shlink",".").concat(e)},vL=Vt((function e(t){var n=this;Ht(this,e),this.localStorage=t,this.get=function(e){var t=n.localStorage.getItem(pL(e));return t?JSON.parse(t):void 0},this.set=function(e,t){return n.localStorage.setItem(pL(e),JSON.stringify(t))}})),mL="0123456789ABCDEF",gL=Math.floor,yL=Math.random,bL=Math.sqrt,_L=Math.round,xL=function(e){return e.toLowerCase().trim()},wL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _L(bL(.299*Math.pow(e,2)+.587*Math.pow(t,2)+.114*Math.pow(n,2)))},kL=Vt((function e(t){var n,r=this;Ht(this,e),this.storage=t,this.colors=void 0,this.lights=void 0,this.getColorForKey=function(e){var t=xL(e),n=r.colors[t];return n||r.setColorForKey(t,"#".concat(Xm(6,(function(){return mL[gL(yL()*mL.length)]})).join("")))},this.setColorForKey=function(e,t){var n=xL(e);return r.colors[n]=t,r.storage.set("colors",r.colors),t},this.isColorLightForKey=function(e){var t=r.getColorForKey(e).substring(1);if(Mn(r.lights[t])){var n=function(e){var t;return(null!==(t=e.match(/../g))&&void 0!==t?t:[]).map((function(e){return parseInt(e,16)||0}))}(t);r.lights[t]=wL.apply(void 0,g(n))>=128}return r.lights[t]},this.colors=null!==(n=this.storage.get("colors"))&&void 0!==n?n:{},this.lights={}})),SL=n(9995),CL=n.n(SL),EL=n(1565),TL=function(e){return new Promise((function(t){CL()().fromString(e).then(t)}))},ML=function(e){return(0,EL.parse)(e)},OL=function(e){e.constant("localStorage",n.g.localStorage),e.service("Storage",vL,"localStorage"),e.service("ColorGenerator",kL,"Storage"),e.constant("csvToJson",TL),e.constant("jsonToCsv",ML),e.constant("setTimeout",n.g.setTimeout),e.constant("clearTimeout",n.g.clearTimeout),e.serviceFactory("useTimeoutToggle",om,"setTimeout","clearTimeout")},PL="shlink/mercure/GET_MERCURE_INFO_START",jL="shlink/mercure/GET_MERCURE_INFO_ERROR",NL="shlink/mercure/GET_MERCURE_INFO",DL=jg((He(TR={},PL,(function(e){return Ze(Ze({},e),{},{loading:!0,error:!1})})),He(TR,jL,(function(e){return Ze(Ze({},e),{},{loading:!1,error:!0})})),He(TR,NL,(function(e,t){return Ze(Ze({},t),{},{loading:!1,error:!1})})),TR),{loading:!0,error:!1}),RL=function(e){return function(){return function(){var t=Bt(Yt().mark((function t(n,r){var i,o,a,s,l;return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n({type:PL}),i=r(),o=i.settings,a=e(r),s=a.mercureInfo,o.realTimeUpdates.enabled){t.next=6;break}return n({type:jL}),t.abrupt("return");case 6:return t.prev=6,t.next=9,s();case 9:l=t.sent,n(Ze({type:NL,interval:o.realTimeUpdates.interval},l)),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(6),n({type:jL});case 16:case"end":return t.stop()}}),t,null,[[6,13]])})));return function(e,n){return t.apply(this,arguments)}}()}},LL=function(e){e.serviceFactory("loadMercureInfo",RL,"buildShlinkApiClient")},AL=function(e){var t=e.children;return(0,ir.jsx)("small",{className:"form-text text-muted d-block",children:t})},IL=function(e){var t,n=e.settings.realTimeUpdates,r=e.toggleRealTimeUpdates,i=e.setRealTimeUpdatesInterval,o=lm();return(0,ir.jsxs)(gg,{title:"Real-time updates",className:"h-100",children:[(0,ir.jsx)(qh,{children:(0,ir.jsxs)(Nj,{checked:n.enabled,onChange:r,children:["Enable or disable real-time updates.",(0,ir.jsxs)(AL,{children:["Real-time updates are currently being ",(0,ir.jsx)("b",{children:n.enabled?"processed":"ignored"}),"."]})]})}),(0,ir.jsxs)(Jx,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:ol()("form-label",{"text-muted":!n.enabled}),id:o,children:[(0,ir.jsx)(ep,{type:"number",min:0,placeholder:"Immediate",disabled:!n.enabled,value:(t=n.interval,t?"".concat(t):""),id:o,onChange:function(e){var t=e.target;return i(Number(t.value))}}),n.enabled&&(0,ir.jsxs)(AL,{children:[void 0!==n.interval&&n.interval>0&&(0,ir.jsxs)("span",{children:["Updates will be reflected in the UI every ",(0,ir.jsx)("b",{children:n.interval})," minute",n.interval>1&&"s","."]}),!n.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},FL=function(e){var t=e.items;return(0,ir.jsx)(ir.Fragment,{children:t.map((function(e,t){return(0,ir.jsx)("div",{className:"mb-3",children:e},t)}))})},zL=function(e,t,n,r,i,o){return function(){return(0,ir.jsxs)(Sm,{children:[(0,ir.jsxs)(Ck,{className:"mb-3",children:[(0,ir.jsx)(Sk,{to:"general",children:"General"}),(0,ir.jsx)(Sk,{to:"short-urls",children:"Short URLs"}),(0,ir.jsx)(Sk,{to:"other-items",children:"Other items"})]}),(0,ir.jsxs)(Ne,{children:[(0,ir.jsx)(Pe,{path:"general",element:(0,ir.jsx)(FL,{items:[(0,ir.jsx)(r,{}),(0,ir.jsx)(e,{})]})}),(0,ir.jsx)(Pe,{path:"short-urls",element:(0,ir.jsx)(FL,{items:[(0,ir.jsx)(t,{}),(0,ir.jsx)(n,{})]})}),(0,ir.jsx)(Pe,{path:"other-items",element:(0,ir.jsx)(FL,{items:[(0,ir.jsx)(o,{}),(0,ir.jsx)(i,{})]})}),(0,ir.jsx)(Pe,{path:"*",element:(0,ir.jsx)(Oe,{replace:!0,to:"general"})})]})]})}},BL=function(e){return"includes"===e?"Suggest tags including input":"Suggest tags starting with input"},UL=function(e){var t,n,r,i,o,a=e.settings,s=e.setShortUrlCreationSettings,l=null!==(t=a.shortUrlCreation)&&void 0!==t?t:{validateUrls:!1},u=function(e){return function(){return s(Ze(Ze({},null!==l&&void 0!==l?l:{validateUrls:!1}),{},{tagFilteringMode:e}))}};return(0,ir.jsxs)(gg,{title:"Short URLs form",className:"h-100",children:[(0,ir.jsx)(qh,{children:(0,ir.jsxs)(Nj,{checked:null!==(n=l.validateUrls)&&void 0!==n&&n,onChange:function(e){return s(Ze(Ze({},l),{},{validateUrls:e}))},children:["Request validation on long URLs when creating new short URLs.",(0,ir.jsxs)(AL,{children:["The initial state of the ",(0,ir.jsx)("b",{children:"Validate URL"})," checkbox will be ",(0,ir.jsx)("b",{children:l.validateUrls?"checked":"unchecked"}),"."]})]})}),(0,ir.jsx)(qh,{children:(0,ir.jsxs)(Nj,{checked:null===(r=l.forwardQuery)||void 0===r||r,onChange:function(e){return s(Ze(Ze({},l),{},{forwardQuery:e}))},children:["Make all new short URLs forward their query params to the long URL.",(0,ir.jsxs)(AL,{children:["The initial state of the ",(0,ir.jsx)("b",{children:"Forward query params on redirect"})," checkbox will be ",(0,ir.jsx)("b",{children:null===(i=l.forwardQuery)||void 0===i||i?"checked":"unchecked"}),"."]})]})}),(0,ir.jsxs)(Jx,{noMargin:!0,label:"Tag suggestions search mode:",children:[(0,ir.jsxs)(Zg,{text:BL(l.tagFilteringMode),children:[(0,ir.jsx)(Hc,{active:!l.tagFilteringMode||"startsWith"===l.tagFilteringMode,onClick:u("startsWith"),children:BL("startsWith")}),(0,ir.jsx)(Hc,{active:"includes"===l.tagFilteringMode,onClick:u("includes"),children:BL("includes")})]}),(0,ir.jsx)(AL,{children:(o=l.tagFilteringMode,"includes"===o?(0,ir.jsxs)(ir.Fragment,{children:["The list of suggested tags will contain those ",(0,ir.jsx)("b",{children:"including"})," provided input."]}):(0,ir.jsxs)(ir.Fragment,{children:["The list of suggested tags will contain those ",(0,ir.jsx)("b",{children:"starting with"})," provided input."]}))})]})]})},VL=function(e){var t=e.settings.ui,n=e.setUiSettings;return(0,ir.jsxs)(gg,{title:"User interface",className:"h-100",children:[(0,ir.jsx)(Ks,{icon:"dark"===(null===t||void 0===t?void 0:t.theme)?gi:ni,className:"user-interface__theme-icon"}),(0,ir.jsx)(Nj,{checked:"dark"===(null===t||void 0===t?void 0:t.theme),onChange:function(e){var r=e?"dark":"light";n(Ze(Ze({},t),{},{theme:r})),fm(r)},children:"Use dark theme."})]})},HL=function(e){var t,n=e.onChange,r=e.active,i=e.allText;return(0,ir.jsx)(Zg,{text:null!==(t=Ty(r))&&void 0!==t?t:i,children:(0,ir.jsx)(Vy,{allText:i,active:r,onChange:n})})},WL=function(e){var t,n,r=e.settings,i=e.setVisitsSettings;return(0,ir.jsx)(gg,{title:"Visits",className:"h-100",children:(0,ir.jsx)(Jx,{noMargin:!0,label:"Default interval to load on visits sections:",children:(0,ir.jsx)(HL,{allText:"All visits",active:null!==(t=null===(n=r.visits)||void 0===n?void 0:n.defaultInterval)&&void 0!==t?t:"last30Days",onChange:function(e){return i({defaultInterval:e})}})})})},ZL=function(e){var t,n,r,i=e.settings.tags,o=e.setTagsSettings;return(0,ir.jsxs)(gg,{title:"Tags",className:"h-100",children:[(0,ir.jsxs)(Jx,{label:"Default display mode when managing tags:",children:[(0,ir.jsx)(AR,{mode:null!==(t=null===i||void 0===i?void 0:i.defaultMode)&&void 0!==t?t:"cards",renderTitle:function(e){return function(e){return"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))}(e)},onChange:function(e){return o(Ze(Ze({},i),{},{defaultMode:e}))}}),(0,ir.jsxs)(AL,{children:["Tags will be displayed as ",(0,ir.jsx)("b",{children:null!==(n=null===i||void 0===i?void 0:i.defaultMode)&&void 0!==n?n:"cards"}),"."]})]}),(0,ir.jsx)(Jx,{noMargin:!0,label:"Default ordering for tags list:",children:(0,ir.jsx)(Yy,{items:LR,order:null!==(r=null===i||void 0===i?void 0:i.defaultOrdering)&&void 0!==r?r:{},onChange:function(e,t){return o(Ze(Ze({},i),{},{defaultOrdering:{field:e,dir:t}}))}})})]})},YL=function(e){var t,n=e.settings.shortUrlsList,r=e.setShortUrlsListSettings;return(0,ir.jsx)(gg,{title:"Short URLs list",className:"h-100",children:(0,ir.jsx)(Jx,{noMargin:!0,label:"Default ordering for short URLs list:",children:(0,ir.jsx)(Yy,{items:Qy,order:null!==(t=null===n||void 0===n?void 0:n.defaultOrdering)&&void 0!==t?t:fb,onChange:function(e,t){return r({defaultOrdering:{field:e,dir:t}})}})})})},qL=function(e,t){e.serviceFactory("Settings",zL,"RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"),e.decorator("Settings",Mg),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",(function(){return IL})),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",(function(){return UL})),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",(function(){return VL})),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",(function(){return WL})),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",(function(){return ZL})),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",(function(){return YL})),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",(function(){return pb})),e.serviceFactory("setRealTimeUpdatesInterval",(function(){return vb})),e.serviceFactory("setShortUrlCreationSettings",(function(){return mb})),e.serviceFactory("setShortUrlsListSettings",(function(){return gb})),e.serviceFactory("setUiSettings",(function(){return yb})),e.serviceFactory("setVisitsSettings",(function(){return bb})),e.serviceFactory("setTagsSettings",(function(){return _b}))};var GL,KL,QL=function(e,t){var n,r=v(e.split("://"),2),i=r[0],o=r[1].split("/"),a=(f(n=o)||m(n)||h(n)||p()).slice(1),s=a.length?"/".concat(a.join("/")):"";return"".concat(i,"://").concat(t).concat(s)},$L="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",XL=function(e){return function(t,n){return function(){var r=Bt(Yt().mark((function r(i,o){var a,s,l;return Yt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i({type:"shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS_START"}),a=e(o),s=a.editDomainRedirects,r.prev=2,r.next=5,s(Ze({domain:t},n));case 5:l=r.sent,i({type:$L,domain:t,redirects:l}),r.next=12;break;case 9:r.prev=9,r.t0=r.catch(2),i({type:"shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS_ERROR",errorData:d_(r.t0)});case 12:case"end":return r.stop()}}),r,null,[[2,9]])})));return function(e,t){return r.apply(this,arguments)}}()}},JL=["url"],eA="shlink/domainsList/LIST_DOMAINS_START",tA="shlink/domainsList/LIST_DOMAINS_ERROR",nA="shlink/domainsList/LIST_DOMAINS",rA="shlink/domainsList/FILTER_DOMAINS",iA="shlink/domainsList/VALIDATE_DOMAIN",oA={domains:[],filteredDomains:[],loading:!1,error:!1},aA=function(e,t){return function(n){return n.domain!==e?n:Ze(Ze({},n),{},{redirects:t})}},sA=function(e,t){return function(n){return n.domain!==e?n:Ze(Ze({},n),{},{status:t})}},lA=jg((He(GL={},eA,(function(){return Ze(Ze({},oA),{},{loading:!0})})),He(GL,tA,(function(e){var t=e.errorData;return Ze(Ze({},oA),{},{error:!0,errorData:t})})),He(GL,nA,(function(e,t){var n=t.domains,r=t.defaultRedirects;return Ze(Ze({},oA),{},{domains:n,filteredDomains:n,defaultRedirects:r})})),He(GL,rA,(function(e,t){var n=t.searchTerm;return Ze(Ze({},e),{},{filteredDomains:e.domains.filter((function(e){return e.domain.toLowerCase().match(n.toLowerCase())}))})})),He(GL,$L,(function(e,t){var n=t.domain,r=t.redirects;return Ze(Ze({},e),{},{domains:e.domains.map(aA(n,r)),filteredDomains:e.filteredDomains.map(aA(n,r))})})),He(GL,iA,(function(e,t){var n=t.domain,r=t.status;return Ze(Ze({},e),{},{domains:e.domains.map(sA(n,r)),filteredDomains:e.filteredDomains.map(sA(n,r))})})),GL),oA),uA=function(e){return function(){return function(){var t=Bt(Yt().mark((function t(n,r){var i,o,a;return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n({type:eA}),i=e(r),o=i.listDomains,t.prev=2,t.next=5,o().then((function(e){var t=e.data,n=e.defaultRedirects;return{domains:t.map((function(e){return Ze(Ze({},e),{},{status:"validating"})})),defaultRedirects:n}}));case 5:a=t.sent,n(Ze({type:nA},a)),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),n({type:tA,errorData:d_(t.t0)});case 12:case"end":return t.stop()}}),t,null,[[2,9]])})));return function(e,n){return t.apply(this,arguments)}}()}},cA=function(e){return{type:rA,searchTerm:e}},fA=function(e){return function(t){return function(){var n=Bt(Yt().mark((function n(r,i){var o,a,s,l,u,c,f,d;return Yt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=i(),a=o.selectedServer,Rt(a)){n.next=4;break}return r({type:iA,domain:t,status:"invalid"}),n.abrupt("return");case 4:return n.prev=4,s=a.url,l=Wt(a,JL),u=e(Ze(Ze({},l),{},{url:QL(s,t)})),c=u.health,n.next=9,c();case 9:f=n.sent,d=f.status,r({type:iA,domain:t,status:"pass"===d?"valid":"invalid"}),n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),r({type:iA,domain:t,status:"invalid"});case 17:case"end":return n.stop()}}),n,null,[[4,14]])})));return function(e,t){return n.apply(this,arguments)}}()}},dA=function(e){var t=e.listDomains,n=e.value,r=e.domainsList,i=e.onChange,o=v(am(),4),a=o[0],s=o[2],u=o[3],c=r.domains,f=Bn(n),d=function(){return i("")};return(0,l.useEffect)((function(){t()}),[]),a?(0,ir.jsxs)(ip,{children:[(0,ir.jsx)(ep,{value:null!==n&&void 0!==n?n:"",placeholder:"Domain",onChange:function(e){return i(e.target.value)}}),(0,ir.jsx)(xc,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:$m(d,u),children:(0,ir.jsx)(Ks,{icon:Yr})}),(0,ir.jsx)(Dv,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):(0,ir.jsxs)(Zg,{text:f?"Domain":"Domain: ".concat(n),className:f?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[c.map((function(e){var t=e.domain,r=e.isDefault;return(0,ir.jsxs)(Hc,{active:(n===t||r)&&f,onClick:function(){return i(t)},children:[t,r&&(0,ir.jsx)("span",{className:"float-end text-muted",children:"default"})]},t)})),(0,ir.jsx)(Hc,{divider:!0}),(0,ir.jsx)(Hc,{onClick:$m(d,s),children:(0,ir.jsx)("i",{children:"New domain"})})]})},hA=function(e){var t=e.status,n=e.matchMedia,r=void 0===n?window.matchMedia:n,i=(0,l.useRef)(),o=function(){return r("(max-width: 991px)").matches},a=v((0,l.useState)(o()),2),s=a[0],u=a[1];return(0,l.useEffect)((function(){var e=function(){return u(o())};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),"validating"===t?(0,ir.jsx)(Ks,{fixedWidth:!0,icon:hr,spin:!0}):(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("span",{ref:z_(i),children:"valid"===t?(0,ir.jsx)(Ks,{fixedWidth:!0,icon:yi,className:"text-muted"}):(0,ir.jsx)(Ks,{fixedWidth:!0,icon:ui,className:"text-danger"})}),(0,ir.jsx)(Dv,{target:function(){return i.current},placement:s?"top-start":"left",autohide:"valid"===t,children:"valid"===t?"Congratulations! This domain is properly configured.":(0,ir.jsxs)("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",(0,ir.jsx)("br",{}),"Check the ",(0,ir.jsx)(gm,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},pA=["isLast"],vA=function(e){var t=e.isLast,n=Wt(e,pA);return(0,ir.jsx)(ew,Ze(Ze({},n),{},{required:!1,type:"url",placeholder:"No redirect",className:t?"mb-0":""}))},mA=function(e){var t,n,r,i,o,a,s=e.isOpen,u=e.toggle,c=e.domain,f=e.editDomainRedirects,d=v((0,l.useState)(null!==(t=null===(n=c.redirects)||void 0===n?void 0:n.baseUrlRedirect)&&void 0!==t?t:""),2),h=d[0],p=d[1],m=v((0,l.useState)(null!==(r=null===(i=c.redirects)||void 0===i?void 0:i.regular404Redirect)&&void 0!==r?r:""),2),g=m[0],y=m[1],b=v((0,l.useState)(null!==(o=null===(a=c.redirects)||void 0===a?void 0:a.invalidShortUrlRedirect)&&void 0!==o?o:""),2),_=b[0],x=b[1],w=eg(Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",f(c.domain,{baseUrlRedirect:tg(h),regular404Redirect:tg(g),invalidShortUrlRedirect:tg(_)}).then(u));case 1:case"end":return e.stop()}}),e)}))));return(0,ir.jsx)(vh,{isOpen:s,toggle:u,centered:!0,children:(0,ir.jsxs)("form",{name:"domainRedirectsModal",onSubmit:w,children:[(0,ir.jsxs)(bh,{toggle:u,children:["Edit redirects for ",(0,ir.jsx)("b",{children:c.domain})]}),(0,ir.jsxs)(kh,{children:[(0,ir.jsxs)(vA,{value:h,onChange:p,children:[(0,ir.jsxs)(Ix,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",(0,ir.jsxs)("b",{children:["https://",c.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),(0,ir.jsxs)(vA,{value:g,onChange:y,children:[(0,ir.jsxs)(Ix,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",(0,ir.jsxs)("b",{children:["https://",c.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),(0,ir.jsxs)(vA,{value:_,isLast:!0,onChange:x,children:[(0,ir.jsx)(Ix,{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"]})]}),(0,ir.jsxs)(Th,{children:[(0,ir.jsx)(xc,{color:"link",type:"button",onClick:u,children:"Cancel"}),(0,ir.jsx)(xc,{color:"primary",children:"Save"})]})]})})},gA=function(e){var t=e.domain,n=e.editDomainRedirects,r=e.selectedServer,i=v(am(),2),o=i[0],a=i[1],s=v(am(),2),l=s[0],u=s[1],c=!t.isDefault||dg(r),f=vg(r),d=It(r);return(0,ir.jsxs)(V_,{isOpen:o,toggle:a,children:[f&&(0,ir.jsxs)(Hc,{tag:ze,to:"/server/".concat(d,"/domain/").concat(t.domain).concat(t.isDefault?"_".concat(M_):"","/visits"),children:[(0,ir.jsx)(Ks,{icon:Nr,fixedWidth:!0})," Visit stats"]}),(0,ir.jsxs)(Hc,{disabled:!c,onClick:c?u:void 0,children:[(0,ir.jsx)(Ks,{fixedWidth:!0,icon:br})," Edit redirects"]}),(0,ir.jsx)(mA,{domain:t,isOpen:l,toggle:u,editDomainRedirects:n})]})},yA=function(e){var t=e.fallback;return(0,ir.jsxs)("span",{className:"text-muted",children:[!t&&(0,ir.jsx)("small",{children:"No redirect"}),t&&(0,ir.jsxs)(ir.Fragment,{children:[t," ",(0,ir.jsx)("small",{children:"(as fallback)"})]})]})},bA=function(){return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Ks,{fixedWidth:!0,icon:gr,className:"text-primary",id:"defaultDomainIcon"}),(0,ir.jsx)(Dv,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]})},_A=function(e){var t,n,r,i=e.domain,o=e.editDomainRedirects,a=e.checkDomainHealth,s=e.defaultRedirects,u=e.selectedServer,c=i.domain,f=i.isDefault,d=i.redirects,h=i.status;return(0,l.useEffect)((function(){a(i.domain)}),[]),(0,ir.jsxs)("tr",{className:"responsive-table__row",children:[(0,ir.jsx)("td",{className:"responsive-table__cell","data-th":"Is default domain",children:f&&(0,ir.jsx)(bA,{})}),(0,ir.jsx)("th",{className:"responsive-table__cell","data-th":"Domain",children:c}),(0,ir.jsx)("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:null!==(t=null===d||void 0===d?void 0:d.baseUrlRedirect)&&void 0!==t?t:(0,ir.jsx)(yA,{fallback:null===s||void 0===s?void 0:s.baseUrlRedirect})}),(0,ir.jsx)("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:null!==(n=null===d||void 0===d?void 0:d.regular404Redirect)&&void 0!==n?n:(0,ir.jsx)(yA,{fallback:null===s||void 0===s?void 0:s.regular404Redirect})}),(0,ir.jsx)("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:null!==(r=null===d||void 0===d?void 0:d.invalidShortUrlRedirect)&&void 0!==r?r:(0,ir.jsx)(yA,{fallback:null===s||void 0===s?void 0:s.invalidShortUrlRedirect})}),(0,ir.jsx)("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:(0,ir.jsx)(hA,{status:h})}),(0,ir.jsx)("td",{className:"responsive-table__cell text-end",children:(0,ir.jsx)(gA,{domain:i,editDomainRedirects:o,selectedServer:u})})]})},xA=["","Domain","Base path redirect","Regular 404 redirect","Invalid short URL redirect","",""],wA=function(e){var t,n=e.listDomains,r=e.domainsList,i=e.filterDomains,o=e.editDomainRedirects,a=e.checkDomainHealth,s=e.selectedServer,u=r.filteredDomains,c=r.defaultRedirects,f=r.loading,d=r.error,h=r.errorData,p=null!==c&&void 0!==c?c:null===(t=u.find((function(e){return e.isDefault})))||void 0===t?void 0:t.redirects;if((0,l.useEffect)((function(){n()}),[]),f)return(0,ir.jsx)(km,{loading:!0});return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Wg,{className:"mb-3",onChange:i}),d?(0,ir.jsx)(Z_,{type:"error",children:(0,ir.jsx)(Y_,{errorData:h,fallbackMessage:"Error loading domains :("})}):(0,ir.jsx)(gg,{children:(0,ir.jsxs)("table",{className:"table table-hover responsive-table mb-0",children:[(0,ir.jsx)("thead",{className:"responsive-table__header",children:(0,ir.jsx)("tr",{children:xA.map((function(e,t){return(0,ir.jsx)("th",{children:e},t)}))})}),(0,ir.jsxs)("tbody",{children:[u.length<1&&(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:xA.length,className:"text-center",children:"No results found"})}),u.map((function(e){return(0,ir.jsx)(_A,{domain:e,editDomainRedirects:o,checkDomainHealth:a,defaultRedirects:p,selectedServer:s},e.domain)}))]})]})})]})},kA=function(e,t){e.serviceFactory("DomainSelector",(function(){return dA})),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",(function(){return wA})),e.decorator("ManageDomains",t(["domainsList","selectedServer"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("listDomains",uA,"buildShlinkApiClient"),e.serviceFactory("filterDomains",(function(){return cA})),e.serviceFactory("editDomainRedirects",XL,"buildShlinkApiClient"),e.serviceFactory("checkDomainHealth",fA,"buildShlinkApiClient")},SA="shlink/appUpdates/APP_UPDATE_AVAILABLE",CA="shlink/appUpdates/RESET_APP_UPDATE",EA=jg((He(KL={},SA,(function(){return!0})),He(KL,CA,(function(){return!1})),KL),!1),TA=Ng(SA),MA=Ng(CA),OA=function(e){var t=e.isOpen,n=e.toggle,r=e.forceUpdate,i=v(am(),3),o=i[0],a=i[2];return(0,ir.jsxs)($p,{className:"app-update-banner",isOpen:t,toggle:n,tag:gg,color:"secondary",children:[(0,ir.jsx)("h4",{className:"mb-4",children:"This app has just been updated!"}),(0,ir.jsxs)("p",{className:"mb-0",children:["Restart it to enjoy the new features.",(0,ir.jsxs)(xc,{role:"button",disabled:o,className:"ms-2",color:"secondary",size:"sm",onClick:function(){a(),r()},children:[!o&&(0,ir.jsxs)(ir.Fragment,{children:["Restart now ",(0,ir.jsx)(Ks,{icon:di,className:"ms-1"})]}),o&&(0,ir.jsx)(ir.Fragment,{children:"Restarting..."})]})]})]})},PA=function(){var e=Bt(Yt().mark((function e(){var t,n;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=navigator.serviceWorker)||void 0===n?void 0:n.getRegistrations();case 2:if(e.t1=t=e.sent,e.t0=null!==e.t1,!e.t0){e.next=6;break}e.t0=void 0!==t;case 6:if(!e.t0){e.next=10;break}e.t2=t,e.next=11;break;case 10:e.t2=[];case 11:e.t2.forEach((function(e){var t=e.waiting;null===t||void 0===t||t.addEventListener("statechange",(function(e){var t;"activated"===(null===(t=e.target)||void 0===t?void 0:t.state)&&window.location.reload()})),null===t||void 0===t||t.postMessage({type:"SKIP_WAITING"})}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),jA=function(e,t,n,r,i,o,a,s){return function(u){var c=u.fetchServers,f=u.servers,d=u.settings,h=u.appUpdated,p=u.resetAppUpdate,v="/"===Se().pathname;return(0,l.useEffect)((function(){var e,t;0===Object.keys(f).length&&c(),fm(null!==(e=null===(t=d.ui)||void 0===t?void 0:t.theme)&&void 0!==e?e:"light")}),[]),(0,ir.jsxs)("div",{className:"container-fluid app-container",children:[(0,ir.jsx)(e,{}),(0,ir.jsxs)("div",{className:"app",children:[(0,ir.jsx)("div",{className:ol()("shlink-wrapper",{"d-flex d-md-block align-items-center":v}),children:(0,ir.jsxs)(Ne,{children:[(0,ir.jsx)(Pe,{index:!0,element:(0,ir.jsx)(t,{})}),(0,ir.jsx)(Pe,{path:"/settings/*",element:(0,ir.jsx)(o,{})}),(0,ir.jsx)(Pe,{path:"/manage-servers",element:(0,ir.jsx)(a,{})}),(0,ir.jsx)(Pe,{path:"/server/create",element:(0,ir.jsx)(r,{})}),(0,ir.jsx)(Pe,{path:"/server/:serverId/edit",element:(0,ir.jsx)(i,{})}),(0,ir.jsx)(Pe,{path:"/server/:serverId/*",element:(0,ir.jsx)(n,{})}),(0,ir.jsx)(Pe,{path:"*",element:(0,ir.jsx)(yg,{})})]})}),(0,ir.jsx)("div",{className:"shlink-footer",children:(0,ir.jsx)(s,{})})]}),(0,ir.jsx)(OA,{isOpen:h,toggle:p,forceUpdate:PA})]})}},NA=function(e,t){e.serviceFactory("App",jA,"MainHeader","Home","MenuLayout","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",(function(){return TA})),e.serviceFactory("resetAppUpdate",(function(){return MA}))},DA=new gt,RA=DA.container,LA=function(e,t){return Ze(Ze({},e),{},He({},t,(n=RA,r=t,function(){return n[r].apply(n,arguments)})));var n,r},AA=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Y(e?wt(e):null,t.reduce(LA,{}))};function IA(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"===typeof i?i(n,r,e):t(i)}}}}NA(DA,AA),Vg(DA,AA),tr(DA),Xx(DA,AA),Qw(DA,AA),hL(DA,AA),qD(DA,AA),OL(DA),LL(DA),qL(DA,AA),kA(DA,AA);var FA=IA();FA.withExtraArgument=IA;var zA=FA;function BA(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 UA="function"===typeof Symbol&&Symbol.observable||"@@observable",VA=function(){return Math.random().toString(36).substring(7).split("").join(".")},HA={INIT:"@@redux/INIT"+VA(),REPLACE:"@@redux/REPLACE"+VA(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+VA()}};function WA(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ZA(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(BA(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(BA(1));return n(ZA)(e,t)}if("function"!==typeof e)throw new Error(BA(2));var i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(BA(3));return o}function f(e){if("function"!==typeof e)throw new Error(BA(4));if(l)throw new Error(BA(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(BA(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function d(e){if(!WA(e))throw new Error(BA(7));if("undefined"===typeof e.type)throw new Error(BA(8));if(l)throw new Error(BA(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function h(e){if("function"!==typeof e)throw new Error(BA(10));i=e,d({type:HA.REPLACE})}function p(){var e,t=f;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(BA(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[UA]=function(){return this},e}return d({type:HA.INIT}),(r={dispatch:d,subscribe:f,getState:c,replaceReducer:h})[UA]=p,r}function YA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var qA=n(7045),GA=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:HA.INIT}))throw new Error(BA(12));if("undefined"===typeof n(void 0,{type:HA.PROBE_UNKNOWN_ACTION()}))throw new Error(BA(13))}))}(n)}catch(sI){o=sI}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var l=a[s],u=n[l],c=e[l],f=u(c,t);if("undefined"===typeof f){t&&t.type;throw new Error(BA(14))}i[l]=f,r=r||f!==c}return(r=r||a.length!==Object.keys(e).length)?i:e}}({servers:jw,selectedServer:kw,shortUrlsList:Sx,shortUrlCreationResult:hx,shortUrlDeletion:ox,shortUrlEdition:bx,shortUrlVisits:nD,tagVisits:hD,domainVisits:P_,orphanVisits:SD,nonOrphanVisits:AD,shortUrlDetail:qx,tagsList:sL,tagDelete:VR,tagEdit:KR,mercureInfo:DL,settings:hb,domainsList:lA,visitsOverview:WD,appUpdated:EA,sidebar:Lg}),KA=YA,QA={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},$A=ZA(GA,function(e){var t,n,r,i;return e.settings?("last180days"===(null===(t=e.settings.visits)||void 0===t?void 0:t.defaultInterval)&&e.settings.visits&&(e.settings.visits.defaultInterval="last180Days"),e.settings.tags=Ze(Ze({},e.settings.tags),{},{defaultMode:null!==(n=null===(r=e.settings.tags)||void 0===r?void 0:r.defaultMode)&&void 0!==n?n:null===(i=e.settings.ui)||void 0===i?void 0:i.tagsMode}),e.settings.ui&&delete e.settings.ui.tagsMode,e):e}((0,qA.zD)(QA)),KA(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(BA(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return r=YA.apply(void 0,o)(n.dispatch),Ze(Ze({},n),{},{dispatch:r})}}}((0,qA.a1)(QA),zA))),XA=n(6431),JA=n(7093),eI=n(8858),tI=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function nI(e,t){navigator.serviceWorker.register(e).then((function(e){e.onupdatefound=function(){var n=e.installing;null!=n&&(n.onstatechange=function(){"installed"===n.state&&(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(e)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(e)))})}})).catch((function(e){console.error("Error during service worker registration:",e)}))}oO.register.apply(oO,g(qP));delete sk().Icon.Default.prototype._getIconUrl,sk().Icon.Default.mergeOptions({iconRetinaUrl:XA,iconUrl:JA,shadowUrl:eI});var rI=RA.App,iI=RA.ScrollToTop,oI=RA.ErrorHandler,aI=RA.appUpdateAvailable;(0,t.s)(document.getElementById("root")).render((0,ir.jsx)(q,{store:$A,children:(0,ir.jsx)(Fe,{basename:Ve.Xh,children:(0,ir.jsx)(oI,{children:(0,ir.jsx)(iI,{children:(0,ir.jsx)(rI,{})})})})})),function(e){if("serviceWorker"in navigator){var t;if(new URL(null!==(t="/shlink-web-client/feature/update-deps")?t:"",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(function(){var t="".concat("/shlink-web-client/feature/update-deps","/service-worker.js");tI?(!function(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then((function(n){var r=n.headers.get("content-type");404===n.status||null!=r&&-1===r.indexOf("javascript")?navigator.serviceWorker.ready.then((function(e){e.unregister().then((function(){window.location.reload()}))})):nI(e,t)})).catch((function(){console.log("No internet connection found. App is running in offline mode.")}))}(t,e),navigator.serviceWorker.ready.then((function(){console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")}))):nI(t,e)}))}}({onUpdate:function(){$A.dispatch(aI())}})}()}();
//# sourceMappingURL=main.46e17564.js.map