D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
htdocs
/
modules
/
monitoring
/
js
/
Filename :
cloud.bundle.js
back
Copy
/*! For license information please see cloud.bundle.js.LICENSE.txt */ define(["plesk-ui-library"],(e=>(()=>{var t={1966:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var 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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(7592),s=p(i),a=p(n(5556)),l=n(5758),c=n(8851),u=n(2747);function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){var t=e.getIn,n=e.toJS,r=function(e){function r(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));i.inTimeTravelling=!1,i.unsubscribe=o.store.subscribe((function(){var r=n(t(o.store.getState(),["router","location"])),s=r.pathname,a=r.search,l=r.hash,c=e.history.location,u=c.pathname,p=c.search,d=c.hash;u===s&&p===a&&d===l||(i.inTimeTravelling=!0,e.history.push({pathname:s,search:a,hash:l}))}));var s=function(t,n){i.inTimeTravelling?i.inTimeTravelling=!1:e.onLocationChanged(t,n)};return i.unlisten=e.history.listen(s),s(e.history.location,e.history.action),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),o(r,[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var e=this.props,t=e.history,n=e.children;return E("React").createElement(E("Router"),{history:t},n)}}]),r}(E("Component"));return r.contextTypes={store:E("PropTypes").shape({getState:E("PropTypes").func.isRequired,subscribe:E("PropTypes").func.isRequired}).isRequired},r.propTypes={history:E("PropTypes").shape({action:E("PropTypes").string.isRequired,listen:E("PropTypes").func.isRequired,location:E("PropTypes").object.isRequired,push:E("PropTypes").func.isRequired}).isRequired,location:E("PropTypes").oneOfType([E("PropTypes").object,E("PropTypes").string]).isRequired,action:E("PropTypes").string.isRequired,basename:E("PropTypes").string,children:E("PropTypes").oneOfType([E("PropTypes").func,E("PropTypes").node]),onLocationChanged:E("PropTypes").func.isRequired},E("connect")((function(e){return{action:t(e,["router","action"]),location:t(e,["router","location"])}}),(function(e){return{onLocationChanged:function(t,n){return e(E("onLocationChanged")(t,n))}}}))(r)};function h(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=E("createConnectedRouter");var f,y=null;function m(){if(null===y){var e=h();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),y=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return y}function _(){var e=h();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function g(){var e=m(),t=_(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(f=h()).__rewire_reset_all__||(f.__rewire_reset_all__=function(){f.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var b="__INTENTIONAL_UNDEFINED__",v={};function E(e){var t=g();if(void 0===t[e])return function(e){switch(e){case"Component":return i.Component;case"PropTypes":return a.default;case"onLocationChanged":return u.onLocationChanged;case"connect":return l.connect;case"createConnectedRouter":return d;case"React":return s.default;case"Router":return c.Router}}(e);var n=t[e];return n===b?void 0:n}function T(e,t){var n=g();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?b:t,function(){w(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function w(e){var t=g();delete t[e],0==Object.keys(t).length&&delete _()[m]}function S(e){var t=g(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(v,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",E),e("__GetDependency__",E),e("__Rewire__",T),e("__set__",T),e("__reset__",w),e("__ResetDependency__",w),e("__with__",S)}();var x=void 0===d?"undefined":r(d);function P(e,t){Object.defineProperty(d,e,{value:t,enumerable:!1,configurable:!0})}"object"!==x&&"function"!==x||!Object.isExtensible(d)||(P("__get__",E),P("__GetDependency__",E),P("__Rewire__",T),P("__set__",T),P("__reset__",w),P("__ResetDependency__",w),P("__with__",S),P("__RewireAPI__",v)),t.__get__=E,t.__GetDependency__=E,t.__Rewire__=T,t.__set__=T,t.__ResetDependency__=w,t.__RewireAPI__=v},2747:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},o=t.LOCATION_CHANGE="@@router/LOCATION_CHANGE",i=(t.onLocationChanged=function(e,t){return{type:v("LOCATION_CHANGE"),payload:{location:e,action:t}}},t.CALL_HISTORY_METHOD="@@router/CALL_HISTORY_METHOD"),s=function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return{type:v("CALL_HISTORY_METHOD"),payload:{method:e,args:n}}}},a=t.push=v("updateLocation")("push"),l=t.replace=v("updateLocation")("replace"),c=t.go=v("updateLocation")("go"),u=t.goBack=v("updateLocation")("goBack"),p=t.goForward=v("updateLocation")("goForward");function d(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.routerActions={push:v("push"),replace:v("replace"),go:v("go"),goBack:v("goBack"),goForward:v("goForward")};var h,f=null;function y(){if(null===f){var e=d();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),f=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return f}function m(){var e=d();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function _(){var e=y(),t=m(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(h=d()).__rewire_reset_all__||(h.__rewire_reset_all__=function(){h.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var g="__INTENTIONAL_UNDEFINED__",b={};function v(e){var t=_();if(void 0===t[e])return function(e){switch(e){case"LOCATION_CHANGE":return o;case"CALL_HISTORY_METHOD":return i;case"updateLocation":return s;case"push":return a;case"replace":return l;case"go":return c;case"goBack":return u;case"goForward":return p}}(e);var n=t[e];return n===g?void 0:n}function E(e,t){var n=_();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?g:t,function(){T(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function T(e){var t=_();delete t[e],0==Object.keys(t).length&&delete m()[y]}function w(e){var t=_(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(b,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",v),e("__GetDependency__",v),e("__Rewire__",E),e("__set__",E),e("__reset__",T),e("__ResetDependency__",T),e("__with__",w)}(),t.__get__=v,t.__GetDependency__=v,t.__Rewire__=E,t.__set__=E,t.__ResetDependency__=T,t.__RewireAPI__=b,t.default=b},5315:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var 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},o=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},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2747)),s=u(n(1966)),a=u(n(1620)),l=u(n(5342)),c=u(n(4222));function u(e){return e&&e.__esModule?e:{default:e}}var p=function(e){return o({},v("actions"),v("createSelectors")(e),{ConnectedRouter:v("createConnectedRouter")(e),connectRouter:v("createConnectRouter")(e),routerMiddleware:v("routerMiddleware")})};function d(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=v("createAll");var h,f=null;function y(){if(null===f){var e=d();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),f=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return f}function m(){var e=d();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function _(){var e=y(),t=m(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(h=d()).__rewire_reset_all__||(h.__rewire_reset_all__=function(){h.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var g="__INTENTIONAL_UNDEFINED__",b={};function v(e){var t=_();if(void 0===t[e])return function(e){switch(e){case"actions":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).filter((function(e){return"__get__"!==e&&"__set__"!==e&&"__reset__"!==e&&"__with__"!==e&&"__GetDependency__"!==e&&"__Rewire__"!==e&&"__ResetDependency__"!==e&&"__RewireAPI__"!==e})).reduce((function(t,n){return t[n]=e[n],t}),{})}(i);case"createSelectors":return c.default;case"createConnectedRouter":return s.default;case"createConnectRouter":return a.default;case"routerMiddleware":return l.default;case"createAll":return p}}(e);var n=t[e];return n===g?void 0:n}function E(e,t){var n=_();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?g:t,function(){T(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function T(e){var t=_();delete t[e],0==Object.keys(t).length&&delete m()[y]}function w(e){var t=_(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(b,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",v),e("__GetDependency__",v),e("__Rewire__",E),e("__set__",E),e("__reset__",T),e("__ResetDependency__",T),e("__with__",w)}();var S=void 0===p?"undefined":r(p);function x(e,t){Object.defineProperty(p,e,{value:t,enumerable:!1,configurable:!0})}"object"!==S&&"function"!==S||!Object.isExtensible(p)||(x("__get__",v),x("__GetDependency__",v),x("__Rewire__",E),x("__set__",E),x("__reset__",T),x("__ResetDependency__",T),x("__with__",w),x("__RewireAPI__",b)),t.__get__=v,t.__GetDependency__=v,t.__Rewire__=E,t.__set__=E,t.__ResetDependency__=T,t.__RewireAPI__=b},8560:(e,t,n)=>{"use strict";t.wf=t.S6=t.Ny=t.VC=void 0;var 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},o=s(n(5315)),i=s(n(9893));function s(e){return e&&e.__esModule?e:{default:e}}var a=v("createAll")(v("plainStructure")),l=(a.LOCATION_CHANGE,a.CALL_HISTORY_METHOD,a.push),c=(a.replace,a.go,a.goBack,a.goForward,a.routerActions,a.ConnectedRouter),u=a.connectRouter,p=a.routerMiddleware;a.getLocation,a.getAction,a.createMatchSelector;function d(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.VC=l,t.Ny=c,t.S6=u,t.wf=p;var h,f=null;function y(){if(null===f){var e=d();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),f=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return f}function m(){var e=d();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function _(){var e=y(),t=m(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(h=d()).__rewire_reset_all__||(h.__rewire_reset_all__=function(){h.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var g="__INTENTIONAL_UNDEFINED__",b={};function v(e){var t=_();if(void 0===t[e])return function(e){switch(e){case"createAll":return o.default;case"plainStructure":return i.default}}(e);var n=t[e];return n===g?void 0:n}function E(e,t){var n=_();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?g:t,function(){T(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function T(e){var t=_();delete t[e],0==Object.keys(t).length&&delete m()[y]}function w(e){var t=_(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(b,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",v),e("__GetDependency__",v),e("__Rewire__",E),e("__set__",E),e("__reset__",T),e("__ResetDependency__",T),e("__with__",w)}()},5342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var 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},o=n(2747),i=function(e){return function(t){return function(t){return function(n){if(n.type!==f("CALL_HISTORY_METHOD"))return t(n);var r=n.payload,o=r.method,i=r.args;e[o].apply(e,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(i))}}}};function s(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=f("routerMiddleware");var a,l=null;function c(){if(null===l){var e=s();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),l=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return l}function u(){var e=s();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function p(){var e=c(),t=u(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(a=s()).__rewire_reset_all__||(a.__rewire_reset_all__=function(){a.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var d="__INTENTIONAL_UNDEFINED__",h={};function f(e){var t=p();if(void 0===t[e])return function(e){switch(e){case"CALL_HISTORY_METHOD":return o.CALL_HISTORY_METHOD;case"routerMiddleware":return i}}(e);var n=t[e];return n===d?void 0:n}function y(e,t){var n=p();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?d:t,function(){m(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function m(e){var t=p();delete t[e],0==Object.keys(t).length&&delete u()[c]}function _(e){var t=p(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(h,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",f),e("__GetDependency__",f),e("__Rewire__",y),e("__set__",y),e("__reset__",m),e("__ResetDependency__",m),e("__with__",_)}();var g=void 0===i?"undefined":r(i);function b(e,t){Object.defineProperty(i,e,{value:t,enumerable:!1,configurable:!0})}"object"!==g&&"function"!==g||!Object.isExtensible(i)||(b("__get__",f),b("__GetDependency__",f),b("__Rewire__",y),b("__set__",y),b("__reset__",m),b("__ResetDependency__",m),b("__with__",_),b("__RewireAPI__",h)),t.__get__=f,t.__GetDependency__=f,t.__Rewire__=y,t.__set__=y,t.__ResetDependency__=m,t.__RewireAPI__=h},1620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var 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},o=n(2747),i=function(e){var t=e.fromJS,n=e.merge;return function(e){var r=t({location:e.location,action:e.action});return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.type,i=t.payload;return o===f("LOCATION_CHANGE")?n(e,i):e}}};function s(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=f("createConnectRouter");var a,l=null;function c(){if(null===l){var e=s();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),l=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return l}function u(){var e=s();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function p(){var e=c(),t=u(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(a=s()).__rewire_reset_all__||(a.__rewire_reset_all__=function(){a.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var d="__INTENTIONAL_UNDEFINED__",h={};function f(e){var t=p();if(void 0===t[e])return function(e){switch(e){case"LOCATION_CHANGE":return o.LOCATION_CHANGE;case"createConnectRouter":return i}}(e);var n=t[e];return n===d?void 0:n}function y(e,t){var n=p();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?d:t,function(){m(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function m(e){var t=p();delete t[e],0==Object.keys(t).length&&delete u()[c]}function _(e){var t=p(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(h,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",f),e("__GetDependency__",f),e("__Rewire__",y),e("__set__",y),e("__reset__",m),e("__ResetDependency__",m),e("__with__",_)}();var g=void 0===i?"undefined":r(i);function b(e,t){Object.defineProperty(i,e,{value:t,enumerable:!1,configurable:!0})}"object"!==g&&"function"!==g||!Object.isExtensible(i)||(b("__get__",f),b("__GetDependency__",f),b("__Rewire__",y),b("__set__",y),b("__reset__",m),b("__ResetDependency__",m),b("__with__",_),b("__RewireAPI__",h)),t.__get__=f,t.__GetDependency__=f,t.__Rewire__=y,t.__set__=y,t.__ResetDependency__=m,t.__RewireAPI__=h},4222:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var 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},o=n(8851),i=function(e){var t=e.getIn,n=e.toJS,r=function(e){return n(t(e,["router","location"]))};return{getLocation:r,getAction:function(e){return n(t(e,["router","action"]))},createMatchSelector:function(e){var t=null,n=null;return function(o){var i=(r(o)||{}).pathname;if(i===t)return n;t=i;var s=f("matchPath")(i,e);return s&&n&&s.url===n.url||(n=s),n}}}};function s(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=f("createSelectors");var a,l=null;function c(){if(null===l){var e=s();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),l=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return l}function u(){var e=s();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function p(){var e=c(),t=u(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(a=s()).__rewire_reset_all__||(a.__rewire_reset_all__=function(){a.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var d="__INTENTIONAL_UNDEFINED__",h={};function f(e){var t=p();if(void 0===t[e])return function(e){switch(e){case"matchPath":return o.matchPath;case"createSelectors":return i}}(e);var n=t[e];return n===d?void 0:n}function y(e,t){var n=p();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?d:t,function(){m(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function m(e){var t=p();delete t[e],0==Object.keys(t).length&&delete u()[c]}function _(e){var t=p(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(h,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",f),e("__GetDependency__",f),e("__Rewire__",y),e("__set__",y),e("__reset__",m),e("__ResetDependency__",m),e("__with__",_)}();var g=void 0===i?"undefined":r(i);function b(e,t){Object.defineProperty(i,e,{value:t,enumerable:!1,configurable:!0})}"object"!==g&&"function"!==g||!Object.isExtensible(i)||(b("__get__",f),b("__GetDependency__",f),b("__Rewire__",y),b("__set__",y),b("__reset__",m),b("__ResetDependency__",m),b("__with__",_),b("__RewireAPI__",h)),t.__get__=f,t.__GetDependency__=f,t.__Rewire__=y,t.__set__=y,t.__ResetDependency__=m,t.__RewireAPI__=h},9518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},o=function(e,t){if(!e)return e;var n=t.length;if(n){for(var r=e,o=0;o<n&&r;++o)r=r[t[o]];return r}};function i(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=h("getIn");var s,a=null;function l(){if(null===a){var e=i();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),a=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return a}function c(){var e=i();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function u(){var e=l(),t=c(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(s=i()).__rewire_reset_all__||(s.__rewire_reset_all__=function(){s.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var p="__INTENTIONAL_UNDEFINED__",d={};function h(e){var t=u();if(void 0===t[e])return function(e){if("getIn"===e)return o}(e);var n=t[e];return n===p?void 0:n}function f(e,t){var n=u();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?p:t,function(){y(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function y(e){var t=u();delete t[e],0==Object.keys(t).length&&delete c()[l]}function m(e){var t=u(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(d,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",h),e("__GetDependency__",h),e("__Rewire__",f),e("__set__",f),e("__reset__",y),e("__ResetDependency__",y),e("__with__",m)}();var _=void 0===o?"undefined":r(o);function g(e,t){Object.defineProperty(o,e,{value:t,enumerable:!1,configurable:!0})}"object"!==_&&"function"!==_||!Object.isExtensible(o)||(g("__get__",h),g("__GetDependency__",h),g("__Rewire__",f),g("__set__",f),g("__reset__",y),g("__ResetDependency__",y),g("__with__",m),g("__RewireAPI__",d)),t.__get__=h,t.__GetDependency__=h,t.__Rewire__=f,t.__set__=f,t.__ResetDependency__=y,t.__RewireAPI__=d},9893:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var r,o="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},i=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},s=(r=n(9518))&&r.__esModule?r:{default:r},a={fromJS:function(e){return e},getIn:m("getIn"),merge:function(e,t){return i({},e,t)},toJS:function(e){return e}};function l(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=m("structure");var c,u=null;function p(){if(null===u){var e=l();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),u=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return u}function d(){var e=l();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function h(){var e=p(),t=d(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(c=l()).__rewire_reset_all__||(c.__rewire_reset_all__=function(){c.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var f="__INTENTIONAL_UNDEFINED__",y={};function m(e){var t=h();if(void 0===t[e])return function(e){switch(e){case"getIn":return s.default;case"structure":return a}}(e);var n=t[e];return n===f?void 0:n}function _(e,t){var n=h();if("object"!==(void 0===e?"undefined":o(e)))return n[e]=void 0===t?f:t,function(){g(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function g(e){var t=h();delete t[e],0==Object.keys(t).length&&delete d()[p]}function b(e){var t=h(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(y,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",m),e("__GetDependency__",m),e("__Rewire__",_),e("__set__",_),e("__reset__",g),e("__ResetDependency__",g),e("__with__",b)}();var v=void 0===a?"undefined":o(a);function E(e,t){Object.defineProperty(a,e,{value:t,enumerable:!1,configurable:!0})}"object"!==v&&"function"!==v||!Object.isExtensible(a)||(E("__get__",m),E("__GetDependency__",m),E("__Rewire__",_),E("__set__",_),E("__reset__",g),E("__ResetDependency__",g),E("__with__",b),E("__RewireAPI__",y)),t.__get__=m,t.__GetDependency__=m,t.__Rewire__=_,t.__set__=_,t.__ResetDependency__=g,t.__RewireAPI__=y},8700:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1601),o=n.n(r),i=n(6314),s=n.n(i)()(o());s.push([e.id,".monitoring__notification-bar{z-index:1052 !important}.monitoring__page-heading__title{font-weight:400}.monitoring__page-heading__group:not(:last-child){margin-right:25px}.monitoring__link-ghost:hover{text-decoration:none}.monitoring__frame{display:block;width:100%;height:2000px}.monitoring__frame--loading{height:0}.monitoring__cloud-workspace--locked{-webkit-filter:blur(4px);filter:blur(4px)}.monitoring__cloud-workspace--locked:after{display:block;position:absolute;top:0;left:0;width:100%;height:100%;content:''}.monitoring__license-toolbar{margin-bottom:20px}.monitoring__license-heading{margin-bottom:0}.monitoring__license-progress{margin-bottom:5px}.pul-icon--inline{vertical-align:baseline}.pul-progress-bar--alone{display:inline-block;vertical-align:middle}",""]);const a=s},1498:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1601),o=n.n(r),i=n(6314),s=n.n(i)()(o());s.push([e.id,".monitoring__notification-bar{z-index:1052 !important}.monitoring__page-heading__title{font-weight:400}.monitoring__page-heading__group:not(:last-child){margin-right:25px}.monitoring__link-ghost:hover{text-decoration:none}.monitoring__switch-hint{max-width:500px}@media (min-width:500px){.monitoring__switch-hint{font-size:14px}}.monitoring__spot{z-index:1051}",""]);const a=s},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&s[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},1601:e=>{"use strict";e.exports=function(e){return e[1]}},4039:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(1333);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},1333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},2043:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),s=Math.max(0,r.length-i.length),a=[],l=0;l<s;l++)a.push("$"+l);if(o=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}},261:(e,t,n)=>{"use strict";var r=n(2043);e.exports=Function.prototype.bind||r},9030:(e,t,n)=>{"use strict";var r=n(261);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},7774:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}n.d(t,{zR:()=>b,yJ:()=>p,sC:()=>E,AO:()=>u,Fu:()=>d});const s=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],s=t&&t.split("/")||[],a=e&&o(e),l=t&&o(t),c=a||l;if(e&&o(e)?s=r:r.length&&(s.pop(),s=s.concat(r)),!s.length)return"/";if(s.length){var u=s[s.length-1];n="."===u||".."===u||""===u}else n=!1;for(var p=0,d=s.length;d>=0;d--){var h=s[d];"."===h?i(s,d):".."===h?(i(s,d),p++):p&&(i(s,d),p--)}if(!c)for(;p--;p)s.unshift("..");!c||""===s[0]||s[0]&&o(s[0])||s.unshift("");var f=s.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};function a(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=a(t),o=a(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};const c=function(e,t){if(!e)throw new Error("Invariant failed")};function u(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function p(e,t,n,o){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=r({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=s(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function d(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function h(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var f=!("undefined"==typeof window||!window.document||!window.document.createElement);function y(e,t){t(window.confirm(e))}var m="popstate",_="hashchange";function g(){try{return window.history.state||{}}catch(e){return{}}}function b(e){void 0===e&&(e={}),f||c(!1);var t,n,o=window.history,i=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,s=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,l=a.forceRefresh,d=void 0!==l&&l,b=a.getUserConfirmation,v=void 0===b?y:b,E=a.keyLength,T=void 0===E?6:E,w=e.basename?function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}("/"===(n=e.basename).charAt(0)?n:"/"+n):"";function S(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return w&&(i=function(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}(i,w)),p(i,r,n)}function x(){return Math.random().toString(36).substr(2,T)}var P=h();function O(e){r(D,e),D.length=o.length,P.notifyListeners(D.location,D.action)}function R(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||j(S(e.state))}function A(){j(S(g()))}var I=!1;function j(e){I?(I=!1,O()):P.confirmTransitionTo(e,"POP",v,(function(t){t?O({action:"POP",location:e}):function(e){var t=D.location,n=L.indexOf(t.key);-1===n&&(n=0);var r=L.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(I=!0,N(o))}(e)}))}var C=S(g()),L=[C.key];function M(e){return w+u(e)}function N(e){o.go(e)}var U=0;function B(e){1===(U+=e)&&1===e?(window.addEventListener(m,R),s&&window.addEventListener(_,A)):0===U&&(window.removeEventListener(m,R),s&&window.removeEventListener(_,A))}var k=!1,D={length:o.length,action:"POP",location:C,createHref:M,push:function(e,t){var n="PUSH",r=p(e,t,x(),D.location);P.confirmTransitionTo(r,n,v,(function(e){if(e){var t=M(r),s=r.key,a=r.state;if(i)if(o.pushState({key:s,state:a},null,t),d)window.location.href=t;else{var l=L.indexOf(D.location.key),c=L.slice(0,l+1);c.push(r.key),L=c,O({action:n,location:r})}else window.location.href=t}}))},replace:function(e,t){var n="REPLACE",r=p(e,t,x(),D.location);P.confirmTransitionTo(r,n,v,(function(e){if(e){var t=M(r),s=r.key,a=r.state;if(i)if(o.replaceState({key:s,state:a},null,t),d)window.location.replace(t);else{var l=L.indexOf(D.location.key);-1!==l&&(L[l]=r.key),O({action:n,location:r})}else window.location.replace(t)}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(e){void 0===e&&(e=!1);var t=P.setPrompt(e);return k||(B(1),k=!0),function(){return k&&(k=!1,B(-1)),t()}},listen:function(e){var t=P.appendListener(e);return B(1),function(){B(-1),t()}}};return D}function v(e,t,n){return Math.min(Math.max(e,t),n)}function E(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,s=t.initialIndex,a=void 0===s?0:s,l=t.keyLength,c=void 0===l?6:l,d=h();function f(e){r(E,e),E.length=E.entries.length,d.notifyListeners(E.location,E.action)}function y(){return Math.random().toString(36).substr(2,c)}var m=v(a,0,i.length-1),_=i.map((function(e){return p(e,void 0,"string"==typeof e?y():e.key||y())})),g=u;function b(e){var t=v(E.index+e,0,E.entries.length-1),r=E.entries[t];d.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var E={length:_.length,action:"POP",location:_[m],index:m,entries:_,createHref:g,push:function(e,t){var r="PUSH",o=p(e,t,y(),E.location);d.confirmTransitionTo(o,r,n,(function(e){if(e){var t=E.index+1,n=E.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),f({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=p(e,t,y(),E.location);d.confirmTransitionTo(o,r,n,(function(e){e&&(E.entries[E.index]=o,f({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=E.index+e;return t>=0&&t<E.entries.length},block:function(e){return void 0===e&&(e=!1),d.setPrompt(e)},listen:function(e){return d.appendListener(e)}};return E}},4146:(e,t,n)=>{"use strict";var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=h(n);o&&o!==f&&e(t,o,r)}var s=u(n);p&&(s=s.concat(p(n)));for(var a=l(t),y=l(n),m=0;m<s.length;++m){var _=s[m];if(!(i[_]||r&&r[_]||y&&y[_]||a&&a[_])){var g=d(n,_);try{c(t,_,g)}catch(e){}}}return t}return t}},3072:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,y=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,_=n?Symbol.for("react.fundamental"):60117,g=n?Symbol.for("react.responder"):60118;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case l:return e;default:return t}}case m:case y:case o:return t}}}function v(e){return b(e)===p}t.typeOf=b,t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=y,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===a||e===s||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===g)},t.isAsyncMode=function(e){return v(e)||b(e)===u},t.isConcurrentMode=v,t.isContextConsumer=function(e){return b(e)===c},t.isContextProvider=function(e){return b(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return b(e)===d},t.isFragment=function(e){return b(e)===i},t.isLazy=function(e){return b(e)===m},t.isMemo=function(e){return b(e)===y},t.isPortal=function(e){return b(e)===o},t.isProfiler=function(e){return b(e)===a},t.isStrictMode=function(e){return b(e)===s},t.isSuspense=function(e){return b(e)===h}},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},311:e=>{"use strict";e.exports=function(e,t,n,r,o,i,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,s,a],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},8859:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,s=r&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&l&&"function"==typeof l.get?l.get:null,u=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,_=String.prototype.match,g=String.prototype.slice,b=String.prototype.replace,v=String.prototype.toUpperCase,E=String.prototype.toLowerCase,T=RegExp.prototype.test,w=Array.prototype.concat,S=Array.prototype.join,x=Array.prototype.slice,P=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,L=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||T.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-P(-e):P(e);if(r!==e){var o=String(r),i=g.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var N=n(2634),U=N.custom,B=F(U)?U:null;function k(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function D(e){return b.call(String(e),/"/g,""")}function H(e){return!("[object Array]"!==W(e)||j&&"object"==typeof e&&j in e)}function G(e){return!("[object RegExp]"!==W(e)||j&&"object"==typeof e&&j in e)}function F(e){if(I)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,o){var a=n||{};if(q(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!q(a,"customInspect")||a.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return z(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var v=String(t);return y?M(t,v):v}if("bigint"==typeof t){var T=String(t)+"n";return y?M(t,T):T}var P=void 0===a.depth?5:a.depth;if(void 0===r&&(r=0),r>=P&&P>0&&"object"==typeof t)return H(t)?"[Array]":"[Object]";var R,U=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(a,r);if(void 0===o)o=[];else if(V(o,t)>=0)return"[Circular]";function $(t,n,i){if(n&&(o=x.call(o)).push(n),i){var s={depth:a.depth};return q(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,r+1,o)}return e(t,a,r+1,o)}if("function"==typeof t&&!G(t)){var Y=function(e){if(e.name)return e.name;var t=_.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ee=Q(t,$);return"[Function"+(Y?": "+Y:" (anonymous)")+"]"+(ee.length>0?" { "+S.call(ee,", ")+" }":"")}if(F(t)){var te=I?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!=typeof t||I?te:X(te)}if((R=t)&&"object"==typeof R&&("undefined"!=typeof HTMLElement&&R instanceof HTMLElement||"string"==typeof R.nodeName&&"function"==typeof R.getAttribute)){for(var ne="<"+E.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe<re.length;oe++)ne+=" "+re[oe].name+"="+k(D(re[oe].value),"double",a);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+E.call(String(t.nodeName))+">"}if(H(t)){if(0===t.length)return"[]";var ie=Q(t,$);return U&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(ie)?"["+Z(ie,U)+"]":"[ "+S.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==W(e)||j&&"object"==typeof e&&j in e)}(t)){var se=Q(t,$);return"cause"in Error.prototype||!("cause"in t)||C.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(se,", ")+" }":"{ ["+String(t)+"] "+S.call(w.call("[cause]: "+$(t.cause),se),", ")+" }"}if("object"==typeof t&&l){if(B&&"function"==typeof t[B]&&N)return N(t,{depth:P-r});if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return s.call(t,(function(e,n){ae.push($(n,t,!0)+" => "+$(e,t))})),J("Map",i.call(t),ae,U)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var le=[];return u.call(t,(function(e){le.push($(e,t))})),J("Set",c.call(t),le,U)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return K("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return K("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return K("WeakRef");if(function(e){return!("[object Number]"!==W(e)||j&&"object"==typeof e&&j in e)}(t))return X($(Number(t)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return X($(O.call(t)));if(function(e){return!("[object Boolean]"!==W(e)||j&&"object"==typeof e&&j in e)}(t))return X(f.call(t));if(function(e){return!("[object String]"!==W(e)||j&&"object"==typeof e&&j in e)}(t))return X($(String(t)));if(!function(e){return!("[object Date]"!==W(e)||j&&"object"==typeof e&&j in e)}(t)&&!G(t)){var ce=Q(t,$),ue=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",de=!ue&&j&&Object(t)===t&&j in t?g.call(W(t),8,-1):pe?"Object":"",he=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||pe?"["+S.call(w.call([],de||[],pe||[]),": ")+"] ":"");return 0===ce.length?he+"{}":U?he+"{"+Z(ce,U)+"}":he+"{ "+S.call(ce,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return $.call(e,t)}function W(e){return y.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function z(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return z(g.call(e,0,t.maxStringLength),t)+r}return k(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function X(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function J(e,t,n,r){return e+" ("+t+") {"+(r?Z(n,r):S.call(n,", "))+"}"}function Z(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function Q(e,t){var n=H(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=q(e,o)?t(e[o],e):""}var i,s="function"==typeof R?R(e):[];if(I){i={};for(var a=0;a<s.length;a++)i["$"+s[a]]=s[a]}for(var l in e)q(e,l)&&(n&&String(Number(l))===l&&l<e.length||I&&i["$"+l]instanceof Symbol||(T.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof R)for(var c=0;c<s.length;c++)C.call(e,s[c])&&r.push("["+t(s[c])+"]: "+t(e[s[c]],e));return r}},5302:(e,t,n)=>{var r=n(7291);e.exports=function e(t,n,o){return r(n)||(o=n||o,n=[]),o=o||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(t,n):r(t)?function(t,n,r){for(var o=[],i=0;i<t.length;i++)o.push(e(t[i],n,r).source);return u(new RegExp("(?:"+o.join("|")+")",p(r)),n)}(t,n,o):function(e,t,n){return d(i(e,n),t,n)}(t,n,o)},e.exports.parse=i,e.exports.compile=function(e,t){return a(i(e,t))},e.exports.tokensToFunction=a,e.exports.tokensToRegExp=d;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,s=0,a="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var p=n[0],d=n[1],h=n.index;if(a+=e.slice(s,h),s=h+p.length,d)a+=d[1];else{var f=e[s],y=n[2],m=n[3],_=n[4],g=n[5],b=n[6],v=n[7];a&&(r.push(a),a="");var E=null!=y&&null!=f&&f!==y,T="+"===b||"*"===b,w="?"===b||"*"===b,S=n[2]||u,x=_||g;r.push({name:m||i++,prefix:y||"",delimiter:S,optional:w,repeat:T,partial:E,asterisk:!!v,pattern:x?c(x):v?".*":"[^"+l(S)+"]+?"})}}return s<e.length&&(a+=e.substr(s)),a&&r.push(a),r}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function a(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,o){for(var i="",a=n||{},l=(o||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var p,d=a[u.name];if(null==d){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(d)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(p=l(d[h]),!t[c].test(p))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(p)+"`");i+=(0===h?u.prefix:u.delimiter)+p}}else{if(p=u.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(d),!t[c].test(p))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+p+'"');i+=u.prefix+p}}else i+=u}return i}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function p(e){return e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,s="",a=0;a<e.length;a++){var c=e[a];if("string"==typeof c)s+=l(c);else{var d=l(c.prefix),h="(?:"+c.pattern+")";t.push(c),c.repeat&&(h+="(?:"+d+h+")*"),s+=h=c.optional?c.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}var f=l(n.delimiter||"/"),y=s.slice(-f.length)===f;return o||(s=(y?s.slice(0,-f.length):s)+"(?:"+f+"(?=$))?"),s+=i?"$":o&&y?"":"(?="+f+"|$)",u(new RegExp("^"+s,p(n)),t)}},7291:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=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 a.name="Invariant Violation",a}}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:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4765:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},5373:(e,t,n)=>{"use strict";var r=n(8636),o=n(2642),i=n(4765);e.exports={formats:i,parse:o,stringify:r}},2642:(e,t,n)=>{"use strict";var r=n(7720),o=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!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},a=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},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=a?i.slice(0,a.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var p=0;n.depth>0&&null!==(a=s.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+i.slice(a.index)+"]"),function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if("[]"===a&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(s=[])[u]=o:"__proto__"!==c&&(s[c]=o):s={0:o}}o=s}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==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=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,p),h=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?f="utf-8":"utf8=%26%2310003%3B"===d[n]&&(f="iso-8859-1"),h=n,n=d.length);for(n=0;n<d.length;++n)if(n!==h){var y,m,_=d[n],g=_.indexOf("]="),b=-1===g?_.indexOf("="):g+1;-1===b?(y=t.decoder(_,s.decoder,f,"key"),m=t.strictNullHandling?null:""):(y=t.decoder(_.slice(0,b),s.decoder,f,"key"),m=r.maybeMap(l(_.slice(b+1),t),(function(e){return t.decoder(e,s.decoder,f,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===f&&(m=a(m)),_.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(c,y)?c[y]=r.combine(c[y],m):c[y]=m}return c}(e,n):e,p=n.plainObjects?Object.create(null):{},d=Object.keys(u),h=0;h<d.length;++h){var f=d[h],y=c(f,u[f],n,"string"==typeof e);p=r.merge(p,y,n)}return!0===n.allowSparse?p:r.compact(p)}},8636:(e,t,n)=>{"use strict";var r=n(920),o=n(7720),i=n(4765),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=String.prototype.split,u=Array.prototype.push,p=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,h=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},y={},m=function e(t,n,i,s,a,u,d,h,m,_,g,b,v,E,T,w){for(var S,x=t,P=w,O=0,R=!1;void 0!==(P=P.get(y))&&!R;){var A=P.get(t);if(O+=1,void 0!==A){if(A===O)throw new RangeError("Cyclic object value");R=!0}void 0===P.get(y)&&(O=0)}if("function"==typeof h?x=h(n,x):x instanceof Date?x=g(x):"comma"===i&&l(x)&&(x=o.maybeMap(x,(function(e){return e instanceof Date?g(e):e}))),null===x){if(a)return d&&!E?d(n,f.encoder,T,"key",b):n;x=""}if("string"==typeof(S=x)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||o.isBuffer(x)){if(d){var I=E?n:d(n,f.encoder,T,"key",b);if("comma"===i&&E){for(var j=c.call(String(x),","),C="",L=0;L<j.length;++L)C+=(0===L?"":",")+v(d(j[L],f.encoder,T,"value",b));return[v(I)+(s&&l(x)&&1===j.length?"[]":"")+"="+C]}return[v(I)+"="+v(d(x,f.encoder,T,"value",b))]}return[v(n)+"="+v(String(x))]}var M,N=[];if(void 0===x)return N;if("comma"===i&&l(x))M=[{value:x.length>0?x.join(",")||null:void 0}];else if(l(h))M=h;else{var U=Object.keys(x);M=m?U.sort(m):U}for(var B=s&&l(x)&&1===x.length?n+"[]":n,k=0;k<M.length;++k){var D=M[k],H="object"==typeof D&&void 0!==D.value?D.value:x[D];if(!u||null!==H){var G=l(x)?"function"==typeof i?i(B,D):B:B+(_?"."+D:"["+D+"]");w.set(t,O);var F=r();F.set(y,w),p(N,e(H,G,i,s,a,u,d,h,m,_,g,b,v,E,T,F))}}return N};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return f;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||f.charset;if(void 0!==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(void 0!==e.format){if(!s.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],o=f.filter;return("function"==typeof e.filter||l(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var u,d=[];if("object"!=typeof o||null===o)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=a[u];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===h&&t&&t.commaRoundTrip;n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var _=r(),g=0;g<n.length;++g){var b=n[g];c.skipNulls&&null===o[b]||p(d,m(o[b],b,h,y,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,_))}var v=d.join(c.delimiter),E=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),v.length>0?E+v:""}},7720:(e,t,n)=>{"use strict";var r=n(4765),o=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,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 o=t[r],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var c=a[l],u=s[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:s,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);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(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<a.length;++c){var u=a.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===r.RFC1738&&(40===u||41===u)?l+=a.charAt(c):u<128?l+=s[u]:u<2048?l+=s[192|u>>6]+s[128|63&u]:u<55296||u>=57344?l+=s[224|u>>12]+s[128|u>>6&63]+s[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(c)),l+=s[240|u>>18]+s[128|u>>12&63]+s[128|u>>6&63]+s[128|63&u])}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(i(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(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return i(t)&&!i(n)&&(s=a(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return o.call(t,i)?t[i]=e(t[i],s,r):t[i]=s,t}),s)}}},5758:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.r(t),n.d(t,{Provider:()=>u,connect:()=>H,connectAdvanced:()=>P,createProvider:()=>c});var o=n(7592),i=n(7778),s=n.n(i),a=s().shape({trySubscribe:s().func.isRequired,tryUnsubscribe:s().func.isRequired,notifyNestedSubs:s().func.isRequired,isSubscribed:s().func.isRequired}),l=s().shape({subscribe:s().func.isRequired,dispatch:s().func.isRequired,getState:s().func.isRequired});function c(e){var t;void 0===e&&(e="store");var n=e+"Subscription",i=function(t){r(s,t);var i=s.prototype;function s(n,r){var o;return(o=t.call(this,n,r)||this)[e]=n.store,o}return i.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},i.render=function(){return o.Children.only(this.props.children)},s}(o.Component);return i.propTypes={store:l.isRequired,children:s().element.isRequired},i.childContextTypes=((t={})[e]=l.isRequired,t[n]=a,t),i}o.default.forwardRef;const u=c();function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function h(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var f=n(4146),y=n.n(f),m=n(311),_=n.n(m),g=n(4737),b=null,v={notify:function(){}},E=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=v}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=b,e=b},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==b&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=v)},e}(),T=void 0!==o.default.forwardRef,w=0,S={};function x(){}function P(e,t){var n,i;void 0===t&&(t={});var s=t,c=s.getDisplayName,u=void 0===c?function(e){return"ConnectAdvanced("+e+")"}:c,f=s.methodName,m=void 0===f?"connectAdvanced":f,b=s.renderCountProp,v=void 0===b?void 0:b,P=s.shouldHandleStateChanges,O=void 0===P||P,R=s.storeKey,A=void 0===R?"store":R,I=s.withRef,j=void 0!==I&&I,C=h(s,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),L=A+"Subscription",M=w++,N=((n={})[A]=l,n[L]=a,n),U=((i={})[L]=a,i);return function(t){_()((0,g.isValidElementType)(t),"You must pass a component to the function returned by "+m+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",i=u(n),s=d({},C,{getDisplayName:u,methodName:m,renderCountProp:v,shouldHandleStateChanges:O,storeKey:A,withRef:j,displayName:i,wrappedComponentName:n,WrappedComponent:t}),a=function(n){function a(e,t){var r;return(r=n.call(this,e,t)||this).version=M,r.state={},r.renderCount=0,r.store=e[A]||t[A],r.propsMode=Boolean(e[A]),r.setWrappedInstance=r.setWrappedInstance.bind(p(p(r))),_()(r.store,'Could not find "'+A+'" in either the context or props of "'+i+'". Either wrap the root component in a <Provider>, or explicitly pass "'+A+'" as a prop to "'+i+'".'),r.initSelector(),r.initSubscription(),r}r(a,n);var l=a.prototype;return l.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[L]=t||this.context[L],e},l.componentDidMount=function(){O&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},l.componentWillReceiveProps=function(e){this.selector.run(e)},l.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},l.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=x,this.store=null,this.selector.run=x,this.selector.shouldComponentUpdate=!1},l.getWrappedInstance=function(){return _()(j,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+m+"() call."),this.wrappedInstance},l.setWrappedInstance=function(e){this.wrappedInstance=e},l.initSelector=function(){var t=e(this.store.dispatch,s);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},l.initSubscription=function(){if(O){var e=(this.propsMode?this.props:this.context)[L];this.subscription=new E(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},l.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(S)):this.notifyNestedSubs()},l.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},l.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},l.addExtraProps=function(e){if(!(j||v||this.propsMode&&this.subscription))return e;var t=d({},e);return j&&(t.ref=this.setWrappedInstance),v&&(t[v]=this.renderCount++),this.propsMode&&this.subscription&&(t[L]=this.subscription),t},l.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return(0,o.createElement)(t,this.addExtraProps(e.props))},a}(o.Component);return T&&(a.prototype.UNSAFE_componentWillReceiveProps=a.prototype.componentWillReceiveProps,delete a.prototype.componentWillReceiveProps),a.WrappedComponent=t,a.displayName=i,a.childContextTypes=U,a.contextTypes=N,a.propTypes=N,y()(a,t)}}var O=Object.prototype.hasOwnProperty;function R(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function A(e,t){if(R(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 o=0;o<n.length;o++)if(!O.call(t,n[o])||!R(e[n[o]],t[n[o]]))return!1;return!0}var I=n(5081);function j(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function C(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function L(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=C(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=C(o),o=r(t,n)),o},r}}function M(e,t,n){return d({},n,e,t)}const N=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,s=!1;return function(t,n,a){var l=e(t,n,a);return s?o&&i(l,r)||(r=l):(s=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return M}}];function U(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function B(e,t,n,r,o){var i,s,a,l,c,u=o.areStatesEqual,p=o.areOwnPropsEqual,d=o.areStatePropsEqual,h=!1;return function(o,f){return h?function(o,h){var f,y,m=!p(h,s),_=!u(o,i);return i=o,s=h,m&&_?(a=e(i,s),t.dependsOnOwnProps&&(l=t(r,s)),c=n(a,l,s)):m?(e.dependsOnOwnProps&&(a=e(i,s)),t.dependsOnOwnProps&&(l=t(r,s)),c=n(a,l,s)):_?(f=e(i,s),y=!d(f,a),a=f,y&&(c=n(a,l,s)),c):c}(o,f):(a=e(i=o,s=f),l=t(r,s),c=n(a,l,s),h=!0,c)}}function k(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function D(e,t){return e===t}const H=(F=(G={}).connectHOC,$=void 0===F?P:F,W=void 0===(q=G.mapStateToPropsFactories)?[function(e){return"function"==typeof e?L(e):void 0},function(e){return e?void 0:j((function(){return{}}))}]:q,z=void 0===(V=G.mapDispatchToPropsFactories)?[function(e){return"function"==typeof e?L(e):void 0},function(e){return e?void 0:j((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?j((function(t){return(0,I.zH)(e,t)})):void 0}]:V,X=void 0===(Y=G.mergePropsFactories)?N:Y,J=void 0===(K=G.selectorFactory)?function(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=h(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),s=n(e,i),a=r(e,i),l=o(e,i);return(i.pure?B:U)(s,a,l,e,i)}:K,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,s=void 0===i||i,a=o.areStatesEqual,l=void 0===a?D:a,c=o.areOwnPropsEqual,u=void 0===c?A:c,p=o.areStatePropsEqual,f=void 0===p?A:p,y=o.areMergedPropsEqual,m=void 0===y?A:y,_=h(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),g=k(e,W,"mapStateToProps"),b=k(t,z,"mapDispatchToProps"),v=k(n,X,"mergeProps");return $(J,d({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:g,initMapDispatchToProps:b,initMergeProps:v,pure:s,areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:f,areMergedPropsEqual:m},_))});var G,F,$,q,W,V,z,Y,X,K,J},7972:(e,t,n)=>{"use strict";var r=n(1811);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array: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:i,resetWarningCache:o};return n.PropTypes=n,n}},7778:(e,t,n)=>{e.exports=n(7972)()},1811:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8989:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=(n&&Symbol.for("react.element"),n&&Symbol.for("react.portal"),n?Symbol.for("react.fragment"):60107),o=n?Symbol.for("react.strict_mode"):60108,i=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,a=n?Symbol.for("react.context"):60110,l=(n&&Symbol.for("react.async_mode"),n?Symbol.for("react.concurrent_mode"):60111),c=n?Symbol.for("react.forward_ref"):60112,u=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,d=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,f=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,m=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===s||e.$$typeof===a||e.$$typeof===c||e.$$typeof===y||e.$$typeof===m||e.$$typeof===_||e.$$typeof===f)}},4737:(e,t,n)=>{"use strict";e.exports=n(8989)},2298:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(9771),o=n.n(r),i=n(311),s=n.n(i),a=n(7592),l=n(6523),c=n.n(l),u=n(3401),p=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};function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){return 0===a.default.Children.count(e)},f=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=d(this,e.call.apply(e,[this].concat(i))),r.state={match:r.computeMatch(r.props,r.context.router)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:p({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,o=e.path,i=e.strict,a=e.exact,l=e.sensitive;if(n)return n;s()(t,"You should not use <Route> or withRouter() outside a <Router>");var c=t.route,p=(r||c.location).pathname;return(0,u.A)(p,{path:o,strict:i,exact:a,sensitive:l},c.match)},t.prototype.componentWillMount=function(){o()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),o()(!(this.props.component&&this.props.children&&!h(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),o()(!(this.props.render&&this.props.children&&!h(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){o()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),o()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,i=this.context.router,s=i.history,l=i.route,c=i.staticContext,u={match:e,location:this.props.location||l.location,history:s,staticContext:c};return r?e?a.default.createElement(r,u):null:o?e?o(u):null:"function"==typeof n?n(u):n&&!h(n)?a.default.Children.only(n):null},t}(a.default.Component);f.propTypes={computedMatch:c().object,path:c().string,exact:c().bool,strict:c().bool,sensitive:c().bool,component:c().func,render:c().func,children:c().oneOfType([c().func,c().node]),location:c().object},f.contextTypes={router:c().shape({history:c().object.isRequired,route:c().object.isRequired,staticContext:c().object})},f.childContextTypes={router:c().object.isRequired};const y=f},6575:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(7592),o=n(6523),i=n.n(o),s=n(9771),a=n.n(s),l=n(311),c=n.n(l),u=n(3401),p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){c()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){a()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),a()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,o=void 0,i=void 0;return r.default.Children.forEach(t,(function(t){if(null==o&&r.default.isValidElement(t)){var s=t.props,a=s.path,l=s.exact,c=s.strict,p=s.sensitive,d=s.from,h=a||d;i=t,o=(0,u.A)(n.pathname,{path:h,exact:l,strict:c,sensitive:p},e.match)}})),o?r.default.cloneElement(i,{location:n,computedMatch:o}):null},t}(r.default.Component);p.contextTypes={router:i().shape({route:i().object.isRequired}).isRequired},p.propTypes={children:i().node,location:i().object};const d=p},8851:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MemoryRouter:()=>_,Prompt:()=>b,Redirect:()=>O,Route:()=>R.A,Router:()=>f,StaticRouter:()=>k,Switch:()=>D.A,generatePath:()=>S,matchPath:()=>H.A,withRouter:()=>G.A});var r=n(9771),o=n.n(r),i=n(7592),s=n(6523),a=n.n(s),l=n(7774),c=n(311),u=n.n(c),p=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};function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=d(this,e.call.apply(e,[this].concat(i))),r.state={match:r.computeMatch(r.props.history.location.pathname)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:p({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;u()(null==n||1===i.default.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen((function(){e.setState({match:e.computeMatch(r.location.pathname)})}))},t.prototype.componentWillReceiveProps=function(e){o()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?i.default.Children.only(e):null},t}(i.default.Component);h.propTypes={history:a().object.isRequired,children:a().node},h.contextTypes={router:a().object},h.childContextTypes={router:a().object.isRequired};const f=h;function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=y(this,e.call.apply(e,[this].concat(i))),r.history=(0,l.sC)(r.props),y(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){o()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return i.default.createElement(f,{history:this.history,children:this.props.children})},t}(i.default.Component);m.propTypes={initialEntries:a().array,initialIndex:a().number,getUserConfirmation:a().func,keyLength:a().number,children:a().node};const _=m;var g=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){u()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(i.default.Component);g.propTypes={when:a().bool,message:a().oneOfType([a().func,a().string]).isRequired},g.defaultProps={when:!0},g.contextTypes={router:a().shape({history:a().shape({block:a().func.isRequired}).isRequired}).isRequired};const b=g;var v=n(5302),E=n.n(v),T={},w=0;const S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("/"===e)return e;var n=function(e){var t=e,n=T[t]||(T[t]={});if(n[e])return n[e];var r=E().compile(e);return w<1e4&&(n[e]=r,w++),r}(e);return n(t,{pretty:!0})};var x=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},P=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){u()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=(0,l.yJ)(e.to),n=(0,l.yJ)(this.props.to);(0,l.Fu)(t,n)?o()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?S(n,t.params):x({},n,{pathname:S(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(i.default.Component);P.propTypes={computedMatch:a().object,push:a().bool,from:a().string,to:a().oneOfType([a().string,a().object]).isRequired},P.defaultProps={push:!1},P.contextTypes={router:a().shape({history:a().shape({push:a().func.isRequired,replace:a().func.isRequired}).isRequired,staticContext:a().object}).isRequired};const O=P;var R=n(2298),A=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};function I(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var j=function(e){return"/"===e.charAt(0)?e:"/"+e},C=function(e,t){return e?A({},t,{pathname:j(e)+t.pathname}):t},L=function(e,t){if(!e)return t;var n=j(e);return 0!==t.pathname.indexOf(n)?t:A({},t,{pathname:t.pathname.substr(n.length)})},M=function(e){return"string"==typeof e?e:(0,l.AO)(e)},N=function(e){return function(){u()(!1,"You cannot %s with <StaticRouter>",e)}},U=function(){},B=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=I(this,e.call.apply(e,[this].concat(i))),r.createHref=function(e){return j(r.props.basename+M(e))},r.handlePush=function(e){var t=r.props,n=t.basename,o=t.context;o.action="PUSH",o.location=C(n,(0,l.yJ)(e)),o.url=M(o.location)},r.handleReplace=function(e){var t=r.props,n=t.basename,o=t.context;o.action="REPLACE",o.location=C(n,(0,l.yJ)(e)),o.url=M(o.location)},r.handleListen=function(){return U},r.handleBlock=function(){return U},I(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.componentWillMount=function(){o()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:L(t,(0,l.yJ)(n)),push:this.handlePush,replace:this.handleReplace,go:N("go"),goBack:N("goBack"),goForward:N("goForward"),listen:this.handleListen,block:this.handleBlock};return i.default.createElement(f,A({},r,{history:o}))},t}(i.default.Component);B.propTypes={basename:a().string,context:a().object.isRequired,location:a().oneOfType([a().string,a().object])},B.defaultProps={basename:"",location:"/"},B.childContextTypes={router:a().object.isRequired};const k=B;var D=n(6575),H=n(3401),G=n(1410)},3401:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5302),o=n.n(r),i={},s=0;const a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,a=r.path,l=r.exact,c=void 0!==l&&l,u=r.strict,p=void 0!==u&&u,d=r.sensitive;if(null==a)return n;var h=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=i[n]||(i[n]={});if(r[e])return r[e];var a=[],l={re:o()(e,a,t),keys:a};return s<1e4&&(r[e]=l,s++),l}(a,{end:c,strict:p,sensitive:void 0!==d&&d}),f=h.re,y=h.keys,m=f.exec(e);if(!m)return null;var _=m[0],g=m.slice(1),b=e===_;return c&&!b?null:{path:a,url:"/"===a&&""===_?"/":_,isExact:b,params:y.reduce((function(e,t,n){return e[t.name]=g[n],e}),{})}}},1410:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(7592),o=n(6523),i=n.n(o),s=n(1201),a=n.n(s),l=n(2298),c=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};const u=function(e){var t=function(t){var n=t.wrappedComponentRef,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return r.default.createElement(l.A,{children:function(t){return r.default.createElement(e,c({},o,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:i().func},a()(t,e)}},1201:e=>{"use strict";var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,o=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,s=Object.getOwnPropertyDescriptor,a=Object.getPrototypeOf,l=a&&a(Object);e.exports=function e(c,u,p){if("string"!=typeof u){if(l){var d=a(u);d&&d!==l&&e(c,d,p)}var h=o(u);i&&(h=h.concat(i(u)));for(var f=0;f<h.length;++f){var y=h[f];if(!(t[y]||n[y]||p&&p[y])){var m=s(u,y);try{r(c,y,m)}catch(e){}}}return c}return c}},2263:(e,t,n)=>{"use strict";var r=n(2752);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array: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:i,resetWarningCache:o};return n.PropTypes=n,n}},6523:(e,t,n)=>{e.exports=n(2263)()},2752:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5081:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(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?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(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. "}n.d(t,{Tw:()=>y,zH:()=>h,HY:()=>p,Zz:()=>f,y$:()=>u});var a="function"==typeof Symbol&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function u(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(s(1));return n(u)(e,t)}if("function"!=typeof e)throw new Error(s(2));var o=e,i=t,l=[],p=l,d=!1;function h(){p===l&&(p=l.slice())}function f(){if(d)throw new Error(s(3));return i}function y(e){if("function"!=typeof e)throw new Error(s(4));if(d)throw new Error(s(5));var t=!0;return h(),p.push(e),function(){if(t){if(d)throw new Error(s(6));t=!1,h();var n=p.indexOf(e);p.splice(n,1),l=null}}}function m(e){if(!function(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}(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if(d)throw new Error(s(9));try{d=!0,i=o(i,e)}finally{d=!1}for(var t=l=p,n=0;n<t.length;n++)(0,t[n])();return e}return m({type:c.INIT}),(r={dispatch:m,subscribe:y,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw new Error(s(10));o=e,m({type:c.REPLACE})}})[a]=function(){var e,t=y;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(s(11));function n(){e.next&&e.next(f())}return n(),{unsubscribe:t(n)}}})[a]=function(){return this},e},r}function p(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:c.INIT}))throw new Error(s(12));if(void 0===n(void 0,{type:c.PROBE_UNKNOWN_ACTION()}))throw new Error(s(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},l=0;l<a.length;l++){var c=a[l],u=n[c],p=e[c],d=u(p,t);if(void 0===d)throw t&&t.type,new Error(s(14));o[c]=d,r=r||d!==p}return(r=r||a.length!==Object.keys(e).length)?o:e}}function d(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t){if("function"==typeof e)return d(e,t);if("object"!=typeof e||null===e)throw new Error(s(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=d(o,t))}return n}function f(){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))}}))}function y(){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(s(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return r=f.apply(void 0,a)(n.dispatch),i(i({},n),{},{dispatch:r})}}}},920:(e,t,n)=>{"use strict";var r=n(9750),o=n(8648),i=n(8859),s=r("%TypeError%"),a=r("%WeakMap%",!0),l=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),f=o("Map.prototype.has",!0),y=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+i(e))},get:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(l){if(t)return d(t,r)}else if(n)return function(e,t){var n=y(e,t);return n&&n.value}(n,r)},has:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(l){if(t)return f(t,r)}else if(n)return function(e,t){return!!y(e,t)}(n,r);return!1},set:function(r,o){a&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new a),u(e,r,o)):l?(t||(t=new l),h(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=y(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},8648:(e,t,n)=>{"use strict";var r=n(9750),o=n(6420),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},6420:(e,t,n)=>{"use strict";var r=n(6316),o=n(9750),i=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),a=o("%Reflect.apply%",!0)||r.call(s,i),l=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=a(r,s,arguments);return l&&c&&l(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}),t};var p=function(){return a(r,i,arguments)};c?c(e.exports,"apply",{value:p}):e.exports.apply=p},1968:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),s=Math.max(0,r.length-i.length),a=[],l=0;l<s;l++)a.push("$"+l);if(o=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}},6316:(e,t,n)=>{"use strict";var r=n(1968);e.exports=Function.prototype.bind||r},9750:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,s=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new s},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,p=n(4039)(),d=Object.getPrototypeOf||function(e){return e.__proto__},h={},f="undefined"==typeof Uint8Array?r:d(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?d(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":f,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},m=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=d(o.prototype))}return y[t]=n,n},_={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(6316),b=n(9030),v=g.call(Function.call,Array.prototype.concat),E=g.call(Function.apply,Array.prototype.splice),T=g.call(Function.call,String.prototype.replace),w=g.call(Function.call,String.prototype.slice),S=g.call(Function.call,RegExp.prototype.exec),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,O=function(e,t){var n,r=e;if(b(_,r)&&(r="%"+(n=_[r])[0]+"%"),b(y,r)){var i=y[r];if(i===h&&(i=m(r)),void 0===i&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/g,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=w(e,0,1),n=w(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return T(e,x,(function(e,t,n,o){r[r.length]=n?T(o,P,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=O("%"+r+"%",t),a=i.name,c=i.value,u=!1,p=i.alias;p&&(r=p[0],E(n,v([0,1],p)));for(var d=1,h=!0;d<n.length;d+=1){var f=n[d],m=w(f,0,1),_=w(f,-1);if(('"'===m||"'"===m||"`"===m||'"'===_||"'"===_||"`"===_)&&m!==_)throw new o("property names with quotes must have matching quotes");if("constructor"!==f&&h||(u=!0),b(y,a="%"+(r+="."+f)+"%"))c=y[a];else if(null!=c){if(!(f in c)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var g=l(c,f);c=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[f]}else h=b(c,f),c=c[f];h&&!u&&(y[a]=c)}}return c}},5072:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},s=[],a=0;a<e.length;a++){var l=e[a],c=r.base?l[0]+r.base:l[0],u=i[c]||0,p="".concat(c," ").concat(u);i[c]=u+1;var d=n(p),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var f=o(h,r);r.byIndex=a,t.splice(a,0,{identifier:p,updater:f,references:1})}s.push(p)}return s}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=n(i[s]);t[a].references--}for(var l=r(e,o),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},7659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},7592:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(2280),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o);const i=r},9771:e=>{"use strict";e.exports=function(){}},2280:t=>{"use strict";t.exports=e},2634:()=>{},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,exports:{}};return t[e](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var o={};return(()=>{"use strict";r.r(o),r.d(o,{default:()=>Ko});var e={};r.r(e),r.d(e,{hasBrowserEnv:()=>$n,hasStandardBrowserEnv:()=>qn,hasStandardBrowserWebWorkerEnv:()=>Vn});var t=r(7592),n=r(2280),i=r(5758),s=r(8560),a=r(5081);function l(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var c=l();c.withExtraArgument=l;const u=c,p="add_notification",d="installation_check_requested",h="installation_checked",f="installation_fix_requested",y="installation_fixed",m="/modules/monitoring",_="/index.php",g=`${m}${_}`,b=`${m}/images`,v="DESC",E="https://docs.plesk.com/en-US/obsidian/administrator-guide/statistics-and-monitoring/monitoring.68886/#differences-between-built-in-monitoring-and-360-monitoring",T="/auth/signup",w="initial",S="requested",x="loaded",P="submitted",O={ALL:"all",MONITORED:"monitored",NOT_MONITORED:"not_monitored",WITH_ISSUES:"with_issues"},R="monitoring",A="OPEN_MONITORING_URL",I="SWITCH_TO_BUILT_IN_DIALOG",j="OPEN_LICENSE_ADJUST_URL",C="SWITCH_TO_BUILT_IN_REMOVE_CLOUD_AGENT",L="SERVER_DETACHED_CONNECT_TO_360",M="SERVER_DETACHED_SWITCH_TO_360",N="monitoring_banner",U="domaincard_banner",B="sign_up",k="connect",D="activate",H=e=>({notifications:[],installationError:null,installationErrorIsCritical:null,installationErrorIsGrafana:null,loadingStatus:w,installationFixStatus:x}),G=e=>{const t=Object.assign({},H(),{cloudServerIsAttached:e.cloudServerIsAttached,cloudMonitoringIsEnabled:e.cloudMonitoringIsEnabled,feedbackUrl:e.feedbackUrl,cloudShowLicensePanel:e.cloudShowLicensePanel,cloudMonitoringLinkUrl:e.cloudMonitoringLinkUrl,cloudMonitoringPoweredByUrl:e.cloudMonitoringPoweredByUrl,cloudPlatformUrl:e.cloudPlatformUrl,siteId:e.siteId,siteName:e.siteName,siteMonitoringIsNotNeeded:e.siteMonitoringIsNotNeeded,siteMonitoringIsOn:e.siteMonitoringIsOn});return(e=t,n)=>((e,t,n)=>{switch(n||(n=H()),t.type){case p:{const{message:e,key:r,intent:o,timeout:i}=t;return{...n,notifications:[...n.notifications,{message:e,key:r,intent:o,timeout:i}]}}case d:return{...n,loadingStatus:S,installationError:null};case h:return{...n,loadingStatus:x,installationError:t.error,installationErrorIsCritical:t.isCriticalError,installationErrorIsGrafana:t.isGrafanaError,installationFixStatus:t.error?w:n.installationFixStatus};case f:return{...n,installationFixStatus:S};case y:return{...n,installationError:t.error,installationErrorIsCritical:t.isCriticalError,installationErrorIsGrafana:!1,installationFixStatus:t.error?w:x}}return n})(0,n,e)},F="statistics_requested",$="statistics_loaded",q="agent_version_requested",W="agent_version_loaded",V="agent_version_updated",z="data_requested",Y="data_loaded",X="dashboard_url_requested",K="dashboard_url_loaded",J="agent_start_requested",Z="agent_started",Q="agent_start_failed",ee=()=>{const e={totalDomains:null,monitors:null,license:null,trialPeriodHasExpired:null,monitoringIsActive:null,dataIsAvailable:null,dataAvailabilityLoadingStatus:w,loadingStatus:w,dashboardAuthUrl:null,dashboardOverviewUrl:null,dashboardAlertsUrl:null,dashboardUrlLoadingStatus:w,agentVersion:null,agentLatestVersion:null,agentVersionLoadingStatus:w,licensePurchaseUrl:null,licenseAdjustUrl:null,licenseInfoUrl:null,serverNotifications:null,agentIsBeingStarted:!1,agentIsInstalled:null,agentIsActive:null};return(t=e,n)=>{switch(n.type){case F:return{...t,loadingStatus:S};case $:{const{monitors:e}=n;return{...t,...n,monitors:e?{total:e.total,totalUp:e.up,totalDown:e.down}:t.monitors,loadingStatus:x}}case X:return{...t,dashboardUrlLoadingStatus:S};case K:{const{authUrl:e,overviewUrl:r,alertsUrl:o}=n;return{...t,dashboardAuthUrl:e,dashboardOverviewUrl:r,dashboardAlertsUrl:o,dashboardUrlLoadingStatus:x}}case q:return{...t,agentVersionLoadingStatus:S};case W:{const{version:e,latestVersion:r,isBeingInstalled:o,agentIsActive:i,agentIsInstalled:s}=n;return{...t,agentVersion:e,agentLatestVersion:r,agentVersionLoadingStatus:o?P:x,agentIsActive:i,agentIsInstalled:s}}case V:return{...t,agentVersionLoadingStatus:P};case z:return{...t,dataAvailabilityLoadingStatus:S};case Y:{const{dataIsAvailable:e}=n;return{...t,dataIsAvailable:e,dataAvailabilityLoadingStatus:x}}case J:return{...t,agentIsBeingStarted:!0};case Z:return{...t,agentIsActive:!0,agentIsBeingStarted:!1};case Q:return{...t,agentIsActive:!1,agentIsBeingStarted:!1}}return t}},te="websites_requested",ne="websites_loaded",re="websites_monitor_is_being_changed",oe="websites_monitor_changed",ie=()=>{const e={list:null,totalItems:null,localUsed:null,totalUsed:null,totalAllowed:null,localAllowed:null,loadingStatus:w};return(t=e,n)=>{switch(n.type){case te:return{...t,loadingStatus:S};case ne:{const e={},{list:r,totalItems:o,localUsed:i,totalUsed:s,totalAllowed:a,localAllowed:l}=n;return r.forEach((t=>{e[t.name]=Object.assign({},t,{loadingStatus:x})})),{...t,loadingStatus:x,list:e,totalItems:o,localUsed:i,totalUsed:s,totalAllowed:a,localAllowed:l}}case re:{const{list:e}=t;return e[n.name]={...e[n.name],loadingStatus:P},{...t,list:{...e}}}case oe:{const{list:e}=t;return e[n.name]={...e[n.name],...n.changes,loadingStatus:x},{...t,list:{...e}}}}return t}},se="monitors_requested",ae="monitors_loaded",le="monitors_should_be_reloaded",ce=()=>{const e={list:null,totalItems:null,localUsed:null,totalUsed:null,totalAllowed:null,localAllowed:null,loadingStatus:w,isUpToDate:!0};return(t=e,n)=>{switch(n.type){case se:return{...t,loadingStatus:S};case ae:{const e={},{list:r,totalItems:o,localUsed:i,totalUsed:s,totalAllowed:a,localAllowed:l}=n;return r.forEach((t=>{e[t.name]=Object.assign({},t,{loadingStatus:x})})),{...t,loadingStatus:x,isUpToDate:!0,list:e,totalItems:o,localUsed:i,totalUsed:s,totalAllowed:a,localAllowed:l}}case le:return{...t,isUpToDate:!1}}return t}};var ue=r(7774),pe=function(e,t){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},pe(e,t)};function de(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}pe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var he,fe,ye,me=function(){return me=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},me.apply(this,arguments)};function _e(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function ge(e){return e.type===fe.literal}function be(e){return e.type===fe.argument}function ve(e){return e.type===fe.number}function Ee(e){return e.type===fe.date}function Te(e){return e.type===fe.time}function we(e){return e.type===fe.select}function Se(e){return e.type===fe.plural}function xe(e){return e.type===fe.pound}function Pe(e){return e.type===fe.tag}function Oe(e){return!(!e||"object"!=typeof e||e.type!==ye.number)}function Re(e){return!(!e||"object"!=typeof e||e.type!==ye.dateTime)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(he||(he={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(fe||(fe={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(ye||(ye={}));var Ae=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ie=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function je(e){var t={};return e.replace(Ie,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var Ce=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Le=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Me=/^(@+)?(\+|#+)?[rs]?$/g,Ne=/(\*)(0+)|(#+)(0+)|(0+)/g,Ue=/^(0+)$/;function Be(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Me,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function ke(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function De(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ue.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function He(e){return ke(e)||{}}function Ge(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=me(me(me({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return me(me({},e),He(t))}),{}));continue;case"engineering":t=me(me(me({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return me(me({},e),He(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Ne,(function(e,n,r,o,i,s){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Ue.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Le.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Le,(function(e,n,r,o,i,s){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&s?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+s.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];"w"===i?t=me(me({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=me(me({},t),Be(i)))}else if(Me.test(o.stem))t=me(me({},t),Be(o.stem));else{var s=ke(o.stem);s&&(t=me(me({},t),s));var a=De(o.stem);a&&(t=me(me({},t),a))}}return t}var Fe,$e={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function qe(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),($e[n||""]||$e[r||""]||$e["".concat(r,"-001")]||$e["001"])[0]}var We=new RegExp("^".concat(Ae.source,"*")),Ve=new RegExp("".concat(Ae.source,"*$"));function ze(e,t){return{start:e,end:t}}var Ye=!!String.prototype.startsWith&&"_a".startsWith("a",1),Xe=!!String.fromCodePoint,Ke=!!Object.fromEntries,Je=!!String.prototype.codePointAt,Ze=!!String.prototype.trimStart,Qe=!!String.prototype.trimEnd,et=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},tt=!0;try{tt="a"===(null===(Fe=ct("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Fe?void 0:Fe[0])}catch(e){tt=!1}var nt,rt=Ye?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},ot=Xe?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},it=Ke?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}return t},st=Je?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},at=Ze?function(e){return e.trimStart()}:function(e){return e.replace(We,"")},lt=Qe?function(e){return e.trimEnd()}:function(e){return e.replace(Ve,"")};function ct(e,t){return new RegExp(e,t)}if(tt){var ut=ct("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");nt=function(e,t){var n;return ut.lastIndex=t,null!==(n=ut.exec(e)[1])&&void 0!==n?n:""}}else nt=function(e,t){for(var n=[];;){var r=st(e,t);if(void 0===r||ht(r)||ft(r))break;n.push(r),t+=r>=65536?2:1}return ot.apply(void 0,n)};var pt=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(he.UNMATCHED_CLOSING_TAG,ze(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&dt(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:fe.pound,location:ze(s,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:fe.literal,value:"<".concat(r,"/>"),location:ze(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!dt(this.char()))return this.error(he.INVALID_TAG,ze(s,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(he.UNMATCHED_CLOSING_TAG,ze(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:fe.tag,value:r,children:i,location:ze(n,this.clonePosition())},err:null}:this.error(he.INVALID_TAG,ze(s,this.clonePosition())))}return this.error(he.UNCLOSED_TAG,ze(n,this.clonePosition()))}return this.error(he.INVALID_TAG,ze(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var a=ze(n,this.clonePosition());return{val:{type:fe.literal,value:r,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(dt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return ot.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),ot(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,ze(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(he.EMPTY_ARGUMENT,ze(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(he.MALFORMED_ARGUMENT,ze(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,ze(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:fe.argument,value:r,location:ze(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,ze(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(he.MALFORMED_ARGUMENT,ze(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=nt(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:ze(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(he.EXPECT_ARGUMENT_TYPE,ze(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((_=this.parseSimpleArgStyleIfPossible()).err)return _;if(0===(h=lt(_.val)).length)return this.error(he.EXPECT_ARGUMENT_STYLE,ze(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:ze(c,this.clonePosition())}}if((g=this.tryParseArgumentClose(r)).err)return g;var u=ze(r,this.clonePosition());if(l&&rt(null==l?void 0:l.style,"::",0)){var p=at(l.style.slice(2));if("number"===s)return(_=this.parseNumberSkeletonFromString(p,l.styleLocation)).err?_:{val:{type:fe.number,value:n,location:u,style:_.val},err:null};if(0===p.length)return this.error(he.EXPECT_DATE_TIME_SKELETON,u);var d=p;this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=qe(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===o?"H":o}return n}(p,this.locale));var h={type:ye.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?je(d):{}};return{val:{type:"date"===s?fe.date:fe.time,value:n,location:u,style:h},err:null}}return{val:{type:"number"===s?fe.number:"date"===s?fe.date:fe.time,value:n,location:u,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(he.EXPECT_SELECT_ARGUMENT_OPTIONS,ze(f,me({},f)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),m=0;if("select"!==s&&"offset"===y.value){if(!this.bumpIf(":"))return this.error(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ze(this.clonePosition(),this.clonePosition()));var _;if(this.bumpSpace(),(_=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return _;this.bumpSpace(),y=this.parseIdentifierIfPossible(),m=_.val}var g,b=this.tryParsePluralOrSelectOptions(e,s,t,y);if(b.err)return b;if((g=this.tryParseArgumentClose(r)).err)return g;var v=ze(r,this.clonePosition());return"select"===s?{val:{type:fe.select,value:n,options:it(b.val),location:v},err:null}:{val:{type:fe.plural,value:n,options:it(b.val),offset:m,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(he.INVALID_ARGUMENT_TYPE,ze(i,a))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,ze(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(he.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ze(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(Ce).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],s=o.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:s})}return t}(e)}catch(e){return this.error(he.INVALID_NUMBER_SKELETON,t)}return{val:{type:ye.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Ge(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,i=!1,s=[],a=new Set,l=r.value,c=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var p=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_SELECTOR,he.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=ze(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(a.has(l))return this.error("select"===t?he.DUPLICATE_SELECT_ARGUMENT_SELECTOR:he.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?he.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:he.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ze(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var f=this.tryParseArgumentClose(d);if(f.err)return f;s.push([l,{value:h.val,location:ze(d,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===s.length?this.error("select"===t?he.EXPECT_SELECT_ARGUMENT_SELECTOR:he.EXPECT_PLURAL_ARGUMENT_SELECTOR,ze(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(he.MISSING_OTHER_CLAUSE,ze(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}var a=ze(r,this.clonePosition());return o?et(i*=n)?{val:i,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=st(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(rt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ht(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function dt(e){return e>=97&&e<=122||e>=65&&e<=90}function ht(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ft(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function yt(e){e.forEach((function(e){if(delete e.location,we(e)||Se(e))for(var t in e.options)delete e.options[t].location,yt(e.options[t].value);else ve(e)&&Oe(e.style)||(Ee(e)||Te(e))&&Re(e.style)?delete e.style.location:Pe(e)&&yt(e.children)}))}function mt(e,t){void 0===t&&(t={}),t=me({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new pt(e,t).parse();if(n.err){var r=SyntaxError(he[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||yt(n.val),n.val}function _t(e,t){var n=t&&t.cache?t.cache:xt,r=t&&t.serializer?t.serializer:Tt;return(t&&t.strategy?t.strategy:Et)(e,{cache:n,serializer:r})}function gt(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),s=t.get(i);return void 0===s&&(s=e.call(this,r),t.set(i,s)),s}function bt(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function vt(e,t,n,r,o){return n.bind(t,e,r,o)}function Et(e,t){return vt(e,this,1===e.length?gt:bt,t.cache.create(),t.serializer)}var Tt=function(){return JSON.stringify(arguments)};function wt(){this.cache=Object.create(null)}wt.prototype.get=function(e){return this.cache[e]},wt.prototype.set=function(e,t){this.cache[e]=t};var St,xt={create:function(){return new wt}},Pt={variadic:function(e,t){return vt(e,this,bt,t.cache.create(),t.serializer)},monadic:function(e,t){return vt(e,this,gt,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(St||(St={}));var Ot,Rt=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return de(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),At=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),St.INVALID_VALUE,o)||this}return de(t,e),t}(Rt),It=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),St.INVALID_VALUE,r)||this}return de(t,e),t}(Rt),jt=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),St.MISSING_VALUE,n)||this}return de(t,e),t}(Rt);function Ct(e){return"function"==typeof e}function Lt(e,t,n,r,o,i,s){if(1===e.length&&ge(e[0]))return[{type:Ot.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if(ge(u))a.push({type:Ot.literal,value:u.value});else if(xe(u))"number"==typeof i&&a.push({type:Ot.literal,value:n.getNumberFormat(t).format(i)});else{var p=u.value;if(!o||!(p in o))throw new jt(p,s);var d=o[p];if(be(u))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?Ot.literal:Ot.object,value:d});else if(Ee(u)){var h="string"==typeof u.style?r.date[u.style]:Re(u.style)?u.style.parsedOptions:void 0;a.push({type:Ot.literal,value:n.getDateTimeFormat(t,h).format(d)})}else if(Te(u))h="string"==typeof u.style?r.time[u.style]:Re(u.style)?u.style.parsedOptions:r.time.medium,a.push({type:Ot.literal,value:n.getDateTimeFormat(t,h).format(d)});else if(ve(u))(h="string"==typeof u.style?r.number[u.style]:Oe(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(d*=h.scale||1),a.push({type:Ot.literal,value:n.getNumberFormat(t,h).format(d)});else{if(Pe(u)){var f=u.children,y=u.value,m=o[y];if(!Ct(m))throw new It(y,"function",s);var _=m(Lt(f,t,n,r,o,i).map((function(e){return e.value})));Array.isArray(_)||(_=[_]),a.push.apply(a,_.map((function(e){return{type:"string"==typeof e?Ot.literal:Ot.object,value:e}})))}if(we(u)){if(!(g=u.options[d]||u.options.other))throw new At(u.value,d,Object.keys(u.options),s);a.push.apply(a,Lt(g.value,t,n,r,o))}else if(Se(u)){var g;if(!(g=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new Rt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',St.MISSING_INTL_API,s);var b=n.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0));g=u.options[b]||u.options.other}if(!g)throw new At(u.value,d,Object.keys(u.options),s);a.push.apply(a,Lt(g.value,t,n,r,o,d-(u.offset||0)))}}}}return(v=a).length<2?v:v.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Ot.literal&&t.type===Ot.literal?n.value+=t.value:e.push(t),e}),[]);var v}function Mt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Ot||(Ot={}));var Nt=function(){function e(t,n,r,o){var i,s,a,l=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=l.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Ot.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Lt(l.ast,l.locales,l.formatters,l.formats,e,void 0,l.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=l.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(l.locales)[0]}},this.getAst=function(){return l.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=o||{},u=(c.formatters,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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(c,["formatters"]));this.ast=e.__parse(t,me(me({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(s=e.formats,(a=r)?Object.keys(s).reduce((function(e,t){var n,r;return e[t]=(n=s[t],(r=a[t])?me(me(me({},n||{}),r||{}),Object.keys(n).reduce((function(e,t){return e[t]=me(me({},n[t]),r[t]||{}),e}),{})):n),e}),me({},s)):s),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_t((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,_e([void 0],t,!1)))}),{cache:Mt(i.number),strategy:Pt.variadic}),getDateTimeFormat:_t((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,_e([void 0],t,!1)))}),{cache:Mt(i.dateTime),strategy:Pt.variadic}),getPluralRules:_t((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,_e([void 0],t,!1)))}),{cache:Mt(i.pluralRules),strategy:Pt.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=mt,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Ut=Nt,Bt=e=>{const{namespace:t,content:r,params:o,fallback:i}=e,s=(0,n.useTranslate)(t)(r,o,i),a=(e,t)=>new Ut(e,document.documentElement.lang).format(t);return"string"==typeof s?a(s,o):s.map((e=>"string"==typeof e?a(e,o):e))};Bt.propTypes={namespace:n.PropTypes.string,content:n.PropTypes.string.isRequired,params:n.PropTypes.object,fallback:n.PropTypes.string},Bt.defaultProps={namespace:void 0,params:void 0,fallback:void 0};const kt=Bt;class Dt extends n.Component{componentDidUpdate(e){const{notifications:r}=this.props;if(r.length<=e.notifications.length)return;const o=r.pop();if(!o)return;const{message:i,key:s,intent:a,timeout:l}=o;this.toaster.add({message:i||(0,t.jsx)(n.Translate,{content:s}),intent:a,onClose:()=>{},autoCloseTimeout:void 0!==l?l:3e3})}render(){return(0,t.jsx)(n.Toaster,{ref:e=>this.toaster=e,maxToastsNumber:5,onToastClose:()=>{},className:`${R}__notification-bar`})}}Dt.propTypes={notifications:n.PropTypes.arrayOf(n.PropTypes.shape({message:n.PropTypes.string,key:n.PropTypes.string,intent:n.PropTypes.string,timeout:n.PropTypes.number})).isRequired};const Ht=(0,i.connect)((e=>{const{app:t}=e;return{notifications:t.notifications}}))(Dt),Gt=e=>{const r=(0,n.classNames)(e.baseClassName,e.className);return(0,t.jsxs)(n.Toolbar,{className:r,children:[(0,t.jsx)(n.ToolbarGroup,{className:`${e.baseClassName}__group`,children:(0,t.jsx)(n.Heading,{level:2,className:`${e.baseClassName}__title`,children:(0,t.jsx)(n.Translate,{content:"text.page-title"})})}),e.toolbar?(0,t.jsx)(n.ToolbarGroup,{className:`${e.baseClassName}__group`,children:e.toolbar}):null,e.addonMenu?(0,t.jsx)(n.ToolbarGroup,{className:`${e.baseClassName}__group`,children:(0,t.jsx)(n.Dropdown,{menu:e.addonMenu,className:`${e.baseClassName}__menu`,children:(0,t.jsx)(n.Button,{icon:"three-dots-horizontal",ghost:!0})})}):null]})};Gt.propTypes={toolbar:n.PropTypes.node,addonMenu:n.PropTypes.node,className:n.PropTypes.string,baseClassName:n.PropTypes.string},Gt.defaultProps={toolbar:null,addonMenu:null,className:void 0,baseClassName:`${R}__page-heading`};const Ft=Gt;function $t(e,t){return function(){return e.apply(t,arguments)}}const{toString:qt}=Object.prototype,{getPrototypeOf:Wt}=Object,Vt=(zt=Object.create(null),e=>{const t=qt.call(e);return zt[t]||(zt[t]=t.slice(8,-1).toLowerCase())});var zt;const Yt=e=>(e=e.toLowerCase(),t=>Vt(t)===e),Xt=e=>t=>typeof t===e,{isArray:Kt}=Array,Jt=Xt("undefined"),Zt=Yt("ArrayBuffer"),Qt=Xt("string"),en=Xt("function"),tn=Xt("number"),nn=e=>null!==e&&"object"==typeof e,rn=e=>{if("object"!==Vt(e))return!1;const t=Wt(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},on=Yt("Date"),sn=Yt("File"),an=Yt("Blob"),ln=Yt("FileList"),cn=Yt("URLSearchParams");function un(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Kt(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function pn(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const dn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,hn=e=>!Jt(e)&&e!==dn,fn=(yn="undefined"!=typeof Uint8Array&&Wt(Uint8Array),e=>yn&&e instanceof yn);var yn;const mn=Yt("HTMLFormElement"),_n=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gn=Yt("RegExp"),bn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};un(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},vn="abcdefghijklmnopqrstuvwxyz",En="0123456789",Tn={DIGIT:En,ALPHA:vn,ALPHA_DIGIT:vn+vn.toUpperCase()+En},wn=Yt("AsyncFunction"),Sn={isArray:Kt,isArrayBuffer:Zt,isBuffer:function(e){return null!==e&&!Jt(e)&&null!==e.constructor&&!Jt(e.constructor)&&en(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||en(e.append)&&("formdata"===(t=Vt(e))||"object"===t&&en(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Zt(e.buffer),t},isString:Qt,isNumber:tn,isBoolean:e=>!0===e||!1===e,isObject:nn,isPlainObject:rn,isUndefined:Jt,isDate:on,isFile:sn,isBlob:an,isRegExp:gn,isFunction:en,isStream:e=>nn(e)&&en(e.pipe),isURLSearchParams:cn,isTypedArray:fn,isFileList:ln,forEach:un,merge:function e(){const{caseless:t}=hn(this)&&this||{},n={},r=(r,o)=>{const i=t&&pn(n,o)||o;rn(n[i])&&rn(r)?n[i]=e(n[i],r):rn(r)?n[i]=e({},r):Kt(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&un(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(un(t,((t,r)=>{n&&en(t)?e[r]=$t(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&Wt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Vt,kindOfTest:Yt,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Kt(e))return e;let t=e.length;if(!tn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:mn,hasOwnProperty:_n,hasOwnProp:_n,reduceDescriptors:bn,freezeMethods:e=>{bn(e,((t,n)=>{if(en(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];en(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Kt(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:pn,global:dn,isContextDefined:hn,ALPHABET:Tn,generateString:(e=16,t=Tn.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&en(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(nn(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Kt(e)?[]:{};return un(e,((e,t)=>{const i=n(e,r+1);!Jt(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:wn,isThenable:e=>e&&(nn(e)||en(e))&&en(e.then)&&en(e.catch)};function xn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Sn.inherits(xn,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:Sn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Pn=xn.prototype,On={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{On[e]={value:e}})),Object.defineProperties(xn,On),Object.defineProperty(Pn,"isAxiosError",{value:!0}),xn.from=(e,t,n,r,o,i)=>{const s=Object.create(Pn);return Sn.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),xn.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Rn=xn;function An(e){return Sn.isPlainObject(e)||Sn.isArray(e)}function In(e){return Sn.endsWith(e,"[]")?e.slice(0,-2):e}function jn(e,t,n){return e?e.concat(t).map((function(e,t){return e=In(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Cn=Sn.toFlatObject(Sn,{},null,(function(e){return/^is[A-Z]/.test(e)})),Ln=function(e,t,n){if(!Sn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Sn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Sn.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Sn.isSpecCompliantForm(t);if(!Sn.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Sn.isDate(e))return e.toISOString();if(!a&&Sn.isBlob(e))throw new Rn("Blob is not supported. Use a Buffer instead.");return Sn.isArrayBuffer(e)||Sn.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(Sn.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Sn.isArray(e)&&function(e){return Sn.isArray(e)&&!e.some(An)}(e)||(Sn.isFileList(e)||Sn.endsWith(n,"[]"))&&(a=Sn.toArray(e)))return n=In(n),a.forEach((function(e,r){!Sn.isUndefined(e)&&null!==e&&t.append(!0===s?jn([n],r,i):null===s?n:n+"[]",l(e))})),!1;return!!An(e)||(t.append(jn(o,n,i),l(e)),!1)}const u=[],p=Object.assign(Cn,{defaultVisitor:c,convertValue:l,isVisitable:An});if(!Sn.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Sn.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Sn.forEach(n,(function(n,i){!0===(!(Sn.isUndefined(n)||null===n)&&o.call(t,n,Sn.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function Mn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Nn(e,t){this._pairs=[],e&&Ln(e,this,t)}const Un=Nn.prototype;Un.append=function(e,t){this._pairs.push([e,t])},Un.toString=function(e){const t=e?function(t){return e.call(this,t,Mn)}:Mn;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Bn=Nn;function kn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Dn(e,t,n){if(!t)return e;const r=n&&n.encode||kn,o=n&&n.serialize;let i;if(i=o?o(t,n):Sn.isURLSearchParams(t)?t.toString():new Bn(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const Hn=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Sn.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Gn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fn={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Bn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},$n="undefined"!=typeof window&&"undefined"!=typeof document,qn=(Wn="undefined"!=typeof navigator&&navigator.product,$n&&["ReactNative","NativeScript","NS"].indexOf(Wn)<0);var Wn;const Vn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,zn={...e,...Fn},Yn=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;return i=!i&&Sn.isArray(r)?r.length:i,a?(Sn.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&Sn.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Sn.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s)}if(Sn.isFormData(e)&&Sn.isFunction(e.entries)){const n={};return Sn.forEachEntry(e,((e,r)=>{t(function(e){return Sn.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},Xn={transitional:Gn,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Sn.isObject(e);if(o&&Sn.isHTMLForm(e)&&(e=new FormData(e)),Sn.isFormData(e))return r?JSON.stringify(Yn(e)):e;if(Sn.isArrayBuffer(e)||Sn.isBuffer(e)||Sn.isStream(e)||Sn.isFile(e)||Sn.isBlob(e))return e;if(Sn.isArrayBufferView(e))return e.buffer;if(Sn.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ln(e,new zn.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return zn.isNode&&Sn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Sn.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ln(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Sn.isString(e))try{return(0,JSON.parse)(e),Sn.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Xn.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Sn.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Rn.from(e,Rn.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zn.classes.FormData,Blob:zn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Sn.forEach(["delete","get","head","post","put","patch"],(e=>{Xn.headers[e]={}}));const Kn=Xn,Jn=Sn.toObjectSet(["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"]),Zn=Symbol("internals");function Qn(e){return e&&String(e).trim().toLowerCase()}function er(e){return!1===e||null==e?e:Sn.isArray(e)?e.map(er):String(e)}function tr(e,t,n,r,o){return Sn.isFunction(r)?r.call(this,t,n):(o&&(t=n),Sn.isString(t)?Sn.isString(r)?-1!==t.indexOf(r):Sn.isRegExp(r)?r.test(t):void 0:void 0)}class nr{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Qn(t);if(!o)throw new Error("header name must be a non-empty string");const i=Sn.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=er(e))}const i=(e,t)=>Sn.forEach(e,((e,n)=>o(e,n,t)));return Sn.isPlainObject(e)||e instanceof this.constructor?i(e,t):Sn.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Jn[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=Qn(e)){const n=Sn.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Sn.isFunction(t))return t.call(this,e,n);if(Sn.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Qn(e)){const n=Sn.findKey(this,e);return!(!n||void 0===this[n]||t&&!tr(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Qn(e)){const o=Sn.findKey(n,e);!o||t&&!tr(0,n[o],o,t)||(delete n[o],r=!0)}}return Sn.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!tr(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Sn.forEach(this,((r,o)=>{const i=Sn.findKey(n,o);if(i)return t[i]=er(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=er(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Sn.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Sn.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Zn]=this[Zn]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Qn(e);t[r]||(function(e,t){const n=Sn.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Sn.isArray(e)?e.forEach(r):r(e),this}}nr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Sn.reduceDescriptors(nr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Sn.freezeMethods(nr);const rr=nr;function or(e,t){const n=this||Kn,r=t||n,o=rr.from(r.headers);let i=r.data;return Sn.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ir(e){return!(!e||!e.__CANCEL__)}function sr(e,t,n){Rn.call(this,null==e?"canceled":e,Rn.ERR_CANCELED,t,n),this.name="CanceledError"}Sn.inherits(sr,Rn,{__CANCEL__:!0});const ar=sr,lr=zn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];Sn.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Sn.isString(r)&&s.push("path="+r),Sn.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function cr(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ur=zn.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Sn.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function pr(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=r[s];o||(o=l),n[i]=a,r[i]=l;let u=s,p=0;for(;u!==i;)p+=n[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const d=c&&l-c;return d?Math.round(1e3*p/d):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a);n=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&i<=s?(s-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const dr={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=rr.from(e.headers).normalize();let i,s,{responseType:a,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(Sn.isFormData(r))if(zn.hasStandardBrowserEnv||zn.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(s=o.getContentType())){const[e,...t]=s?s.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const p=cr(e.baseURL,e.url);function d(){if(!u)return;const r=rr.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Rn("Request failed with status code "+n.status,[Rn.ERR_BAD_REQUEST,Rn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:a&&"text"!==a&&"json"!==a?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),Dn(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(n(new Rn("Request aborted",Rn.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Rn("Network Error",Rn.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Gn;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Rn(t,r.clarifyTimeoutError?Rn.ETIMEDOUT:Rn.ECONNABORTED,e,u)),u=null},zn.hasStandardBrowserEnv&&(l&&Sn.isFunction(l)&&(l=l(e)),l||!1!==l&&ur(p))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&lr.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&Sn.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),Sn.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&"json"!==a&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",pr(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",pr(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new ar(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const h=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(p);h&&-1===zn.protocols.indexOf(h)?n(new Rn("Unsupported protocol "+h+":",Rn.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};Sn.forEach(dr,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const hr=e=>`- ${e}`,fr=e=>Sn.isFunction(e)||null===e||!1===e,yr=e=>{e=Sn.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!fr(n)&&(r=dr[(t=String(n)).toLowerCase()],void 0===r))throw new Rn(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(hr).join("\n"):" "+hr(e[0]):"as no adapter specified";throw new Rn("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function mr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ar(null,e)}function _r(e){return mr(e),e.headers=rr.from(e.headers),e.data=or.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yr(e.adapter||Kn.adapter)(e).then((function(t){return mr(e),t.data=or.call(e,e.transformResponse,t),t.headers=rr.from(t.headers),t}),(function(t){return ir(t)||(mr(e),t&&t.response&&(t.response.data=or.call(e,e.transformResponse,t.response),t.response.headers=rr.from(t.response.headers))),Promise.reject(t)}))}const gr=e=>e instanceof rr?{...e}:e;function br(e,t){t=t||{};const n={};function r(e,t,n){return Sn.isPlainObject(e)&&Sn.isPlainObject(t)?Sn.merge.call({caseless:n},e,t):Sn.isPlainObject(t)?Sn.merge({},t):Sn.isArray(t)?t.slice():t}function o(e,t,n){return Sn.isUndefined(t)?Sn.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Sn.isUndefined(t))return r(void 0,t)}function s(e,t){return Sn.isUndefined(t)?Sn.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken: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:a,headers:(e,t)=>o(gr(e),gr(t),!0)};return Sn.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,s=i(e[r],t[r],r);Sn.isUndefined(s)&&i!==a||(n[r]=s)})),n}const vr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{vr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Er={};vr.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Rn(r(o," has been removed"+(t?" in "+t:"")),Rn.ERR_DEPRECATED);return t&&!Er[o]&&(Er[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const Tr={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Rn("options must be an object",Rn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new Rn("option "+i+" must be "+n,Rn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Rn("Unknown option "+i,Rn.ERR_BAD_OPTION)}},validators:vr},wr=Tr.validators;class Sr{constructor(e){this.defaults=e,this.interceptors={request:new Hn,response:new Hn}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=br(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Tr.assertOptions(n,{silentJSONParsing:wr.transitional(wr.boolean),forcedJSONParsing:wr.transitional(wr.boolean),clarifyTimeoutError:wr.transitional(wr.boolean)},!1),null!=r&&(Sn.isFunction(r)?t.paramsSerializer={serialize:r}:Tr.assertOptions(r,{encode:wr.function,serialize:wr.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Sn.merge(o.common,o[t.method]);o&&Sn.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=rr.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,p=0;if(!a){const e=[_r.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);p<u;)c=c.then(e[p++],e[p++]);return c}u=s.length;let d=t;for(p=0;p<u;){const e=s[p++],t=s[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{c=_r.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,u=l.length;p<u;)c=c.then(l[p++],l[p++]);return c}getUri(e){return Dn(cr((e=br(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Sn.forEach(["delete","get","head","options"],(function(e){Sr.prototype[e]=function(t,n){return this.request(br(n||{},{method:e,url:t,data:(n||{}).data}))}})),Sn.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(br(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Sr.prototype[e]=t(),Sr.prototype[e+"Form"]=t(!0)}));const xr=Sr;class Pr{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new ar(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Pr((function(t){e=t})),cancel:e}}}const Or=Pr,Rr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Rr).forEach((([e,t])=>{Rr[t]=e}));const Ar=Rr,Ir=function e(t){const n=new xr(t),r=$t(xr.prototype.request,n);return Sn.extend(r,xr.prototype,n,{allOwnKeys:!0}),Sn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(br(t,n))},r}(Kn);Ir.Axios=xr,Ir.CanceledError=ar,Ir.CancelToken=Or,Ir.isCancel=ir,Ir.VERSION="1.6.8",Ir.toFormData=Ln,Ir.AxiosError=Rn,Ir.Cancel=Ir.CanceledError,Ir.all=function(e){return Promise.all(e)},Ir.spread=function(e){return function(t){return e.apply(null,t)}},Ir.isAxiosError=function(e){return Sn.isObject(e)&&!0===e.isAxiosError},Ir.mergeConfig=br,Ir.AxiosHeaders=rr,Ir.formToJSON=e=>Yn(Sn.isHTMLForm(e)?new FormData(e):e),Ir.getAdapter=yr,Ir.HttpStatusCode=Ar,Ir.default=Ir;const jr=Ir;var Cr=r(5373),Lr=r.n(Cr);const Mr=e=>((e.headers.hasOwnProperty("location")&&(e.headers.location.indexOf("login_up.php")||e.headers.location.indexOf("login.php"))||"string"==typeof e.data&&(e.data.indexOf("login_up.php")||e.data.indexOf("login.php")))&&location.reload(),e),Nr=e=>(e.response&&400===e.response.status&&!e.response.data&&location.reload(),Promise.reject(e)),Ur=(()=>{const e=jr.create({baseURL:g,headers:{"Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"},responseType:"json",paramsSerializer:e=>Lr().stringify(e,{arrayFormat:"brackets",skipNulls:!0})});return e.interceptors.response.use(Mr,Nr),e})(),Br=e=>_+e,kr=e=>g+e,Dr={statistics:Br("/index/main"),statisticsFull:kr("/index/main"),thresholds:Br("/index/thresholds"),customization:Br("/index/customization"),subscriptions:Br("/index/subscriptions"),subscription:Br("/index/subscription"),parameters:Br("/index/parameters"),componentsInstallation:"/admin/update/add-components",cgroupsManagerLicense:"https://www.plesk.com/editions/",cloud:Br("/cloud/main"),cloudConnectFull:kr("/cloud/connect"),cloudMonitors:Br("/cloud/monitors"),cloudMonitorsManagement:Br("/cloud/monitors-management"),cloudMonitorsManagement2:Br("/cloud/monitors-management2"),cloudMonitorsManagementFull:kr("/cloud/monitors-management"),cloudMonitorsManagementFull2:kr("/cloud/monitors-management2")},Hr="/cloud-statistics/get-agent-version",Gr=(e,t="info",n=3e3)=>r=>r({type:p,key:e,intent:t,timeout:n}),Fr=e=>t=>t(((e,t="info",n=3e3)=>r=>r({type:p,message:e,intent:t,timeout:n}))("string"==typeof e?e:e.response&&e.response.data?e.response.data.message:e.message,"danger",null)),$r=e=>t=>t(Gr(e,"danger",null)),qr=(e=null,t=!1,n=!1)=>r=>r({type:h,error:e,isCriticalError:t,isGrafanaError:n}),Wr=()=>e=>(e({type:f}),Ur.post("/installation/fix").then((t=>{if(t.data){const{success:n,error:r,isCriticalError:o}=t.data;let i=null;n||(i=r),e(Vr(i,!!o))}else e($r("text.installation-fix-failed"))})).catch((t=>{e(Fr(t))}))),Vr=(e=null,t=!1)=>n=>n({type:y,error:e,isCriticalError:t}),zr=e=>()=>{Jsw&&Jsw.UAT&&Jsw.UAT.dispatchAction(e)};class Yr extends n.Component{fixInstallationHandler=()=>{this.props.installationErrorIsCritical&&!this.props.forceFixAllIssues?this.props.fixCriticalInstallationIssues():this.props.fixInstallation()};render(){const{isInitial:e,isRequested:r,isLoaded:o,installationError:i,installationErrorIsGrafana:s,installationFixIsRequested:a}=this.props;return e?null:(0,t.jsxs)("div",{className:`${R}__status`,children:[r?(0,t.jsx)(n.Status,{progress:!0,children:(0,t.jsx)(n.Translate,{content:"text.loading"})}):null,o?s?(0,t.jsx)(n.Panel,{children:(0,t.jsxs)(n.Media,{image:(0,t.jsx)(n.Icon,{name:"rocket",size:"64"}),children:[(0,t.jsx)(n.MediaSection,{children:i}),(0,t.jsx)("br",{}),(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Button,{intent:"primary",onClick:this.fixInstallationHandler,state:a?"loading":"",children:(0,t.jsx)(n.Translate,{content:"button.install-grafana"})})})]})}):(0,t.jsxs)(n.Alert,{intent:"danger",children:[(0,t.jsx)(n.Icon,{name:"triangle-exclamation-mark"})," ",i," ",(0,t.jsx)(n.Button,{intent:"default",icon:"circle-check-mark",onClick:this.fixInstallationHandler,state:a?"loading":"",children:(0,t.jsx)(n.Translate,{content:"button.fix-installation"})})]}):null]})}}Yr.propTypes={isInitial:n.PropTypes.bool.isRequired,isRequested:n.PropTypes.bool.isRequired,isLoaded:n.PropTypes.bool.isRequired,installationError:n.PropTypes.string.isRequired,installationErrorIsCritical:n.PropTypes.bool.isRequired,installationErrorIsGrafana:n.PropTypes.bool.isRequired,installationFixIsRequested:n.PropTypes.bool.isRequired,fixInstallation:n.PropTypes.func.isRequired,fixCriticalInstallationIssues:n.PropTypes.func.isRequired,forceFixAllIssues:n.PropTypes.bool},Yr.defaultProps={forceFixAllIssues:!1};const Xr=(0,i.connect)((e=>{const{app:t}=e;return{isInitial:t.loadingStatus===w,isRequested:t.loadingStatus===S,isLoaded:t.loadingStatus===x,installationError:t.installationError,installationErrorIsCritical:t.installationErrorIsCritical,installationErrorIsGrafana:t.installationErrorIsGrafana,installationFixIsRequested:t.installationFixStatus===S}}),(e=>({fixInstallation:()=>e(Wr()),fixCriticalInstallationIssues:()=>e((e=>(e({type:f}),Ur.post("/installation/fix-critical-issues").then((t=>{if(t.data){const{success:n,error:r,isCriticalError:o}=t.data;e(Vr(n?null:r,!!o))}else e($r("text.installation-fix-failed"))})).catch((t=>{e(Fr(t))})))))})))(Yr);var Kr=r(6942),Jr=r.n(Kr),Zr=r(5556),Qr=r.n(Zr);const eo=e=>{const r=Jr()(e.baseClassName,e.className);return(0,t.jsxs)(n.Dialog,{isOpen:e.isOpen,onClose:e.onClose,title:(0,t.jsx)(n.Translate,{content:"text.cloud-monitoring-view-prev-dialog-title"}),size:"xs",form:{onSubmit:e.onSubmit,submitButton:{children:(0,t.jsx)(n.Translate,{content:"button.cloud-monitoring-view-prev-proceed"})},cancelButton:{children:(0,t.jsx)(n.Translate,{content:"button.cancel"})},values:{}},className:r,children:[(0,t.jsx)(n.Paragraph,{children:(0,t.jsx)(n.Translate,{content:"text.cloud-monitoring-view-prev-dialog-content"})}),(0,t.jsx)(n.Paragraph,{children:(0,t.jsx)(n.Translate,{content:"text.cloud-monitoring-view-uninstall-cloud-agent-dialog-content"})}),(0,t.jsx)(n.FormFieldCheckbox,{name:"uninstall_cloud_agent",label:(0,t.jsx)(n.Translate,{content:"text.cloud-monitoring-view-uninstall-cloud-agent-checkbox-content"})})]})};eo.propTypes={className:Qr().string,baseClassName:Qr().string,isOpen:Qr().bool,onClose:Qr().func,onSubmit:Qr().func},eo.defaultProps={className:void 0,baseClassName:`${R}__monitoring-view-intent-dialog`,isOpen:!1,onClose:()=>{},onSubmit:()=>{}};const to=eo;top.owop=(e,t)=>Object.keys(e).filter((e=>t.includes(e))).reduce(((t,n)=>({...t,[n]:e[n]})),{});const no=(e,t)=>{const n=e.split("."),r=t.split(".");for(let e=0;e<3;e++){const t=Number(n[e]),o=Number(r[e]);if(t>o)return 1;if(o>t)return-1;if(!isNaN(t)&&isNaN(o))return 1;if(isNaN(t)&&!isNaN(o))return-1}return 0},ro=(e,t,n)=>`${e}${e.includes("?")?"&":"?"}\nutm_campaign=in-plesk-360m-promo&utm_source=plesk&utm_medium=${t}&utm_content=${n}`,oo=`${b}/try-monitoring.svg`;class io extends n.Component{constructor(e){super(e),this.state={cloudConnectionIsInProgress:!1,builtInActivationIsInProgress:!1}}handleCloudServerConnect=()=>{this.setState({cloudConnectionIsInProgress:!0}),this.props.onCloudServerConnect&&this.props.onCloudServerConnect();const e=ro(Dr.cloudConnectFull,N,k);window.open(e,"_self")};handleCloudMonitoringActivate=()=>{this.setState({cloudConnectionIsInProgress:!0}),this.props.onCloudMonitoringActivate&&this.props.onCloudMonitoringActivate();const e=ro(Dr.cloudConnectFull,N,D);window.open(e,"_self")};handleBuiltInMonitoringActivate=()=>{this.setState({builtInActivationIsInProgress:!0}),this.props.onBuiltInMonitoringActivate()};renderCloudConnectionPromoBanner(){const{cloudServerIsAttached:e,onClose:r,cloudPlatformUrl:o}=this.props,{cloudConnectionIsInProgress:i,builtInActivationIsInProgress:s}=this.state,a=ro(o+T,N,B);return(0,t.jsx)(n.Panel,{title:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-title"}),extra:r?(0,t.jsx)(n.Button,{icon:"cross-mark",ghost:!0,onClick:()=>r()}):null,className:`${R}__cloud-connection-promo-banner`,children:(0,t.jsxs)(n.Media,{image:(0,t.jsx)(n.Icon,{src:oo,size:"192"}),className:`${R}__media`,children:[(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Grid,{children:(0,t.jsx)(n.GridCol,{lg:8,children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo",params:{link:(0,t.jsx)(n.Link,{href:o,target:"_blank",children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-link"})})}})})})}),(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Link,{href:E,target:"_blank",children:(0,t.jsx)(n.Translate,{content:"button.how-360-monitoring-is-better"})})}),(0,t.jsx)("br",{}),(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Heading,{level:4,children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-steps-title"})})}),(0,t.jsxs)(n.MediaSection,{children:[e?(0,t.jsx)(n.Text,{fontSize:"sm",intent:"muted",children:(0,t.jsxs)(n.Media,{image:(0,t.jsx)(n.Text,{children:"1."}),children:[(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-step-one-done"})," ",(0,t.jsx)(n.Icon,{name:"check-mark",intent:"success"})]})}):(0,t.jsx)(n.Text,{fontSize:"sm",children:(0,t.jsxs)(n.Media,{title:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-step-one"}),image:(0,t.jsx)(n.Text,{children:"1."}),children:[(0,t.jsx)(n.Button,{intent:"primary",icon:"cloud",onClick:this.handleCloudServerConnect,state:i?"loading":void 0,disabled:s,children:(0,t.jsx)(n.Translate,{content:"button.cloud-connection-promo-connect"})})," ",(0,t.jsx)(n.Button,{icon:"user",component:"a",href:a,target:"_blank",disabled:i||s,children:(0,t.jsx)(n.Translate,{content:"button.cloud-connection-promo-sign-up"})})]})}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Text,{fontSize:"sm",children:(0,t.jsx)(n.Media,{title:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-step-two"}),image:(0,t.jsx)(n.Text,{children:"2."}),children:e?(0,t.jsx)(n.Button,{intent:"primary",icon:"monitoring",onClick:this.handleCloudMonitoringActivate,state:i?"loading":void 0,disabled:s,children:(0,t.jsx)(n.Translate,{content:"button.cloud-connection-promo-activate"})}):null})})]}),(0,t.jsx)("br",{})]})})}renderBuiltInMonitoringBanner(){const{onBuiltInMonitoringActivate:e}=this.props,{builtInActivationIsInProgress:r,cloudConnectionIsInProgress:o}=this.state;return e?(0,t.jsx)(n.Panel,{className:`${R}__built-in-monitoring-banner`,children:(0,t.jsxs)(n.Media,{className:`${R}__media`,children:[(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Button,{onClick:this.handleBuiltInMonitoringActivate,state:r?"loading":void 0,disabled:o,children:(0,t.jsx)(n.Translate,{content:"button.install-monitoring"})})}),(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Grid,{children:(0,t.jsx)(n.GridCol,{lg:7,children:(0,t.jsx)(n.Hint,{children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-monitoring-hint"})})})})})]})}):null}render(){const{isLoaded:e}=this.props;return e?[this.renderCloudConnectionPromoBanner(),this.renderBuiltInMonitoringBanner()]:null}}io.propTypes={isLoaded:n.PropTypes.bool.isRequired,cloudServerIsAttached:n.PropTypes.bool.isRequired,cloudPlatformUrl:n.PropTypes.string.isRequired,onCloudServerConnect:n.PropTypes.func,onCloudMonitoringActivate:n.PropTypes.func,onBuiltInMonitoringActivate:n.PropTypes.func,onClose:n.PropTypes.func},io.defaultProps={onCloudServerConnect:null,onCloudMonitoringActivate:null,onBuiltInMonitoringActivate:null,onClose:null};const so=(0,i.connect)((e=>{const{loadingStatus:t,cloudServerIsAttached:n,cloudPlatformUrl:r}=e.app;return{isLoaded:t===x,cloudServerIsAttached:n,cloudPlatformUrl:r}}))(io);var ao=r(6575),lo=r(2298),co=r(1410);const uo=()=>e=>(e({type:F}),Ur.get("/cloud-statistics/get").then((t=>{t.data?e(po(t.data)):e($r("text.cloud-statistics-loading-failed"))})).catch((t=>{e(Fr(t))}))),po=({totalDomains:e,monitors:t,license:n,trialPeriodHasExpired:r,monitoringIsActive:o,dataIsAvailable:i,licensePurchaseUrl:s,licenseAdjustUrl:a,licenseInfoUrl:l,serverNotifications:c})=>u=>u({type:$,totalDomains:e,monitors:t,license:n,trialPeriodHasExpired:r,monitoringIsActive:o,dataIsAvailable:i,licensePurchaseUrl:s,licenseAdjustUrl:a,licenseInfoUrl:l,serverNotifications:c}),ho=({version:e,latestVersion:t,isBeingInstalled:n,agentIsActive:r,agentIsInstalled:o})=>i=>i({type:W,version:e,latestVersion:t,isBeingInstalled:n,agentIsActive:r,agentIsInstalled:o}),fo=()=>e=>Ur.get(Hr).then((t=>{t.data&&!t.data.isBeingInstalled&&e(ho(t.data))})).catch((t=>{e(Fr(t))})),yo=e=>t=>Ur.delete("/cloud-statistics/toggle-monitoring-view",{params:{isUninstallCloudAgent:e?1:null}}).catch((e=>{t(Fr(e))})),mo=`${b}/kite.svg`;class _o extends n.Component{constructor(e){super(e),this.state={currentListPage:1,currentListSortColumn:null,currentListSortDirection:null,currentListItemsPerPage:25,appliedFilter:O.ALL,appliedSearch:null},this.filter=O.ALL,this.search=null}componentDidMount(){const e=this.calculateFilter(),t=e!==this.filter;t&&(this.filter=e),(this.props.hasNeverLoaded||t||!this.props.isUpToDate)&&this.reloadMonitors()}componentDidUpdate(e){const t=this.calculateFilter();t!==this.filter&&(this.filter=t,this.setState({currentListPage:1},this.reloadMonitors)),!e.monWasLoaded&&this.props.monWasLoaded&&(this.state.appliedFilter===this.filter&&this.state.appliedSearch===this.search||this.setState({appliedFilter:this.filter,appliedSearch:this.search})),e.isUpToDate&&!this.props.isUpToDate&&this.setState({currentListPage:1},this.reloadMonitors)}calculateFilter(){const{pathname:e}=window.location,t=window.location.hash.substring(1),n=Dr.cloudMonitors.length;return e.substr(-n)===Dr.cloudMonitors&&t&&Object.values(O).includes(t)?t:O.ALL}reloadMonitors=()=>{const{currentListPage:e,currentListSortColumn:t,currentListSortDirection:n,currentListItemsPerPage:r}=this.state;this.props.reloadMonitors(this.filter,this.search,e,t?(n===v?"-":"")+t:null,"all"===r?-1:r)};handleListFilterChange=e=>{const t=e!==O.ALL?"#"+e:"";this.props.pushUrl(Dr.cloudMonitors+t)};handleListSearch=e=>{1!==e.length&&(this.search=e?e.trim():null,this.setState({currentListPage:1},this.reloadMonitors))};handlePageChange=e=>{this.setState({currentListPage:e},this.reloadMonitors)};handleSortChange=({sortColumn:e,sortDirection:t})=>{this.setState({currentListPage:1,currentListSortColumn:e,currentListSortDirection:t},this.reloadMonitors)};handleItemsPerPageChange=e=>{this.setState({currentListPage:1,currentListItemsPerPage:e},this.reloadMonitors)};renderList(){const{currentListPage:e,currentListSortColumn:r,currentListSortDirection:o,currentListItemsPerPage:i,appliedFilter:s,appliedSearch:a}=this.state,{monWasLoaded:l,totalDomains:c,monitors:u,list:p,totalItems:d,baseClassName:h,pushUrl:f}=this.props,{lmsg:y}=this.context.locale,m="all"===i?1:Math.ceil(d/i);return(0,t.jsx)(n.List,{columns:[{key:"name",title:(0,t.jsx)(n.Translate,{content:"text.cloud-monitors-list-column-website"}),type:"title",sortable:!0,width:300,render:e=>(0,t.jsx)(n.Link,{href:e.url,target:"_blank",children:e.name})},{key:"uptime",title:(0,t.jsx)(n.Translate,{content:"text.cloud-monitors-list-column-uptime"}),width:230,render:e=>(0,t.jsxs)(n.Columns,{vertical:!1,children:[(0,t.jsx)(n.Column,{width:50,children:parseInt(10*e.uptime)/10+"%"}),(0,t.jsx)(n.Column,{width:100,children:(0,t.jsx)(n.ProgressBar,{intent:"success",progress:e.uptime,className:"pul-progress-bar--alone"})})]})},{key:"state",title:(0,t.jsx)(n.Translate,{content:"text.cloud-monitors-list-column-state"}),render:e=>e.active?e.up?e.pending?(0,t.jsx)(n.Label,{intent:"inactive",children:(0,t.jsx)(n.Translate,{content:"text.cloud-monitors-state-pending"})}):(0,t.jsx)(n.Status,{intent:"success",icon:"check-mark-circle",children:(0,t.jsx)(n.Translate,{content:"text.cloud-monitors-state-ok"})}):(0,t.jsx)(n.Label,{intent:"danger",children:e.message}):(0,t.jsx)(n.Tooltip,{title:(0,t.jsx)(n.Translate,{content:"text.cloud-monitors-list-item-inactive-hint"}),children:(0,t.jsx)(n.Label,{intent:"warning",children:(0,t.jsx)(n.Translate,{content:"text.cloud-monitors-list-item-inactive"})})})}],data:p,toolbar:(0,t.jsxs)(n.Toolbar,{children:[(0,t.jsx)(n.ToolbarGroup,{children:(0,t.jsx)(n.Button,{icon:"list",onClick:()=>{this.props.trackClickUAT("WEBSITES_TAB_OPEN_WEBSITES_DRAWER"),f(Dr.cloudMonitorsManagement2)},children:(0,t.jsx)(n.Translate,{content:"button.cloud-monitors-select-websites"})})}),(0,t.jsx)(n.ToolbarExpander,{}),(0,t.jsx)(n.ToolbarGroup,{children:(0,t.jsx)(n.SegmentedControl,{buttons:[{value:O.ALL,title:(0,t.jsx)(n.Translate,{content:"button.cloud-monitors-filter-all"})},{value:O.WITH_ISSUES,title:[(0,t.jsx)(n.Translate,{content:"button.cloud-monitors-filter-issues"}),u&&u.totalDown>0?[" ",(0,t.jsx)(n.Label,{intent:"danger",children:u.totalDown},"with-issues")]:null]}],selected:this.filter,onChange:this.handleListFilterChange})}),(0,t.jsx)(n.ToolbarGroup,{groupable:!1,children:(0,t.jsx)(n.SearchBar,{inputProps:{placeholder:y("text.cloud-monitors-search-placeholder")},onSearch:this.handleListSearch,minWidth:50})})]}),filtered:this.filter||this.search,totalRows:d,pagination:(0,t.jsx)(n.Pagination,{current:e,total:m,itemsPerPage:i,itemsPerPageOptions:[25,100,"all"],onSelect:this.handlePageChange,onItemsPerPageChange:this.handleItemsPerPageChange}),sortColumn:r,sortDirection:o,onSortChange:this.handleSortChange,locale:{totalRows:this.filter===O.ALL?u&&null!==c?(0,t.jsx)(kt,{content:"text.cloud-monitors-list-statistics-header",params:{number:u.total,html:(0,t.jsx)(n.Text,{bold:!0,children:(0,t.jsx)(kt,{content:"text.cloud-monitors-list-statistics-number",params:{number:u.total,total:c}})})}}):(0,t.jsx)(n.Icon,{name:"refresh",size:"12",intent:"inactive",animation:"spin"}):l?(0,t.jsx)(kt,{content:"text.cloud-monitors-list-statistics-header-filtered",params:{number:d,html:(0,t.jsx)(n.Text,{bold:!0,children:d})}}):(0,t.jsx)(n.Icon,{name:"refresh",size:"12",intent:"inactive",animation:"spin"})},emptyView:s!==O.WITH_ISSUES||a?(0,t.jsx)(n.ListEmptyView,{}):(0,t.jsx)(n.ListEmptyView,{image:mo,title:(0,t.jsx)(n.Translate,{content:"text.cloud-monitors-list-not-responding-empty-view-title"}),description:(0,t.jsx)(n.Translate,{content:"text.cloud-monitors-list-not-responding-empty-view-description"})}),loading:!l,className:h})}render(){return this.renderList()}}_o.contextTypes={locale:n.PropTypes.shape({lmsg:n.PropTypes.func})},_o.propTypes={baseClassName:n.PropTypes.string,hasNeverLoaded:n.PropTypes.bool.isRequired,monWasLoaded:n.PropTypes.bool.isRequired,list:n.PropTypes.array,totalDomains:n.PropTypes.number.isRequired,totalItems:n.PropTypes.number,isUpToDate:n.PropTypes.bool.isRequired,monitors:n.PropTypes.shape({total:n.PropTypes.number.isRequired,totalUp:n.PropTypes.number.isRequired,totalDown:n.PropTypes.number.isRequired}),reloadMonitors:n.PropTypes.func.isRequired,pushUrl:n.PropTypes.func.isRequired,trackClickUAT:n.PropTypes.func.isRequired},_o.defaultProps={baseClassName:`${R}__monitors`,list:[],totalItems:0,monitors:null};const go=(0,i.connect)((e=>{const{loadingStatus:t,list:n,totalItems:r,isUpToDate:o}=e.monitors,{totalDomains:i,monitors:s}=e.statistics;return{hasNeverLoaded:t===w,monWasLoaded:t===x,list:n?Object.values(n).filter((e=>!!e.id)).map((e=>Object.assign({},e,{key:e.name,loading:e.loadingStatus===P}))):[],totalDomains:i,totalItems:r||0,isUpToDate:o,monitors:s}}),(e=>({reloadMonitors:(t,n,r,o,i)=>e(((e=null,t=null,n=null,r=null,o=null)=>i=>{i({type:se});let s=null;e!==O.ALL&&(s=e);let a=null;""!==`${t}`.trim()&&(a=t);let l=null;return 1!==n&&(l=n),Ur.get("/cloud-monitors/get",{params:{filter:s,search:a,page:l,sort:r,per_page:o}}).then((e=>{e.data?i((({list:e,totalItems:t,localUsed:n,totalUsed:r,totalAllowed:o,localAllowed:i})=>s=>s({type:ae,list:e,totalItems:t,localUsed:n,totalUsed:r,totalAllowed:o,localAllowed:i}))(e.data)):i($r("text.cloud-monitors-loading-failed"))})).catch((e=>{i(Fr(e))}))})(t,n,r,o,i)),pushUrl:t=>e((0,s.VC)(t)),trackClickUAT:t=>e(zr(t))})))(_o),bo=(e,t={})=>n=>n({type:oe,name:e,changes:t}),vo=`${b}/kite.svg`;class Eo extends n.Component{constructor(e){super(e),this.state={loaded:!1,currentListPage:1,currentListSortColumn:null,currentListSortDirection:null,currentListItemsPerPage:25,appliedFilter:O.ALL,appliedSearch:null,localMonitorsUsed:e.localMonitorsUsed,totalMonitorsUsed:e.totalMonitorsUsed},this.filter=O.ALL,this.search=null,this.changedItems={}}componentDidUpdate(e){let{currentListSortColumn:t,currentListSortDirection:n}=this.state;const{loaded:r}=this.state,o=this.calculateFilter(),i=!e.isOpen&&this.props.isOpen||this.props.isOpen&&!r,s=o!==this.filter;if(i&&(this.search=null,t=null,n=null),s&&(this.filter=o),(i||s)&&this.setState({loaded:!0,currentListPage:1,currentListSortColumn:t,currentListSortDirection:n},this.reloadWebsites),!e.wsWasLoaded&&this.props.wsWasLoaded){const e={localMonitorsUsed:this.props.localMonitorsUsed,totalMonitorsUsed:this.props.totalMonitorsUsed};this.state.appliedFilter===this.filter&&this.state.appliedSearch===this.search||(e.appliedFilter=this.filter,e.appliedSearch=this.search),this.setState(e)}}calculateFilter(){const{pathname:e}=window.location,t=window.location.hash.substring(1),n=this.props.baseUrl.length;return e.substr(-n)===this.props.baseUrl&&t&&Object.values(O).includes(t)?t:O.ALL}calculateMonitorSlotsAvailable(){const{totalMonitorsAllowed:e,localMonitorsAllowed:t}=this.props,{localMonitorsUsed:n,totalMonitorsUsed:r}=this.state;if(null===t)return Math.max(e-r,0);const o=Math.min(t-n,e-r);return Math.max(o,0)}reloadWebsites=()=>{const{currentListPage:e,currentListSortColumn:t,currentListSortDirection:n,currentListItemsPerPage:r}=this.state;this.props.reloadWebsites(this.filter,this.search,e,t?(n===v?"-":"")+t:null,"all"===r?-1:r)};addMonitor=e=>{this.setState((({localMonitorsUsed:e,totalMonitorsUsed:t})=>({localMonitorsUsed:e+1,totalMonitorsUsed:t+1}))),!1===this.changedItems[e]?delete this.changedItems[e]:this.changedItems[e]=!0,this.props.addMonitor(e),this.props.trackClickUAT("ADD_WEBSITE_MONITOR")};removeMonitor=(e,t)=>{this.setState((({localMonitorsUsed:e,totalMonitorsUsed:t})=>({localMonitorsUsed:e-1,totalMonitorsUsed:t-1}))),!0===this.changedItems[e]?delete this.changedItems[e]:this.changedItems[e]=!1,this.props.removeMonitor(e,t),this.props.trackClickUAT("REMOVE_WEBSITE_MONITOR")};handleClose=()=>{Object.keys(this.changedItems).length&&(this.props.triggerMonitorsReload(),this.props.reloadCloudStatistics(),this.changedItems={}),this.props.pushUrl(this.props.returnUrl)};handleListFilterChange=e=>{const t=e===O.ALL?"":`#${e}`;this.props.pushUrl(this.props.baseUrl+t)};handleListSearch=e=>{1!==e.length&&(this.search=e?e.trim():null,this.setState({currentListPage:1},this.reloadWebsites))};handlePageChange=e=>{this.setState({currentListPage:e},this.reloadWebsites)};handleSortChange=({sortColumn:e,sortDirection:t})=>{this.setState({currentListPage:1,currentListSortColumn:e,currentListSortDirection:t},this.reloadWebsites)};handleItemsPerPageChange=e=>{this.setState({currentListPage:1,currentListItemsPerPage:e},this.reloadWebsites)};renderList(){const{currentListPage:e,currentListSortColumn:r,currentListSortDirection:o,currentListItemsPerPage:i,appliedFilter:s,appliedSearch:a,localMonitorsUsed:l}=this.state,{wsWasLoaded:c,totalDomains:u,list:p,totalItems:d,baseClassName:h}=this.props,{lmsg:f}=this.context.locale,y=this.calculateMonitorSlotsAvailable(),m="all"===i?1:Math.ceil(d/i);return(0,t.jsx)(n.List,{columns:[{key:"monitor",render:e=>(0,t.jsx)(n.Switch,{checked:!!e.id,loading:e.loading,disabled:null===l||!e.id&&y<1,onChange:t=>{t?this.addMonitor(e.name):this.removeMonitor(e.name,e.id)}})},{key:"name",title:(0,t.jsx)(n.Translate,{content:"text.cloud-websites-list-column-name"}),type:"title",sortable:!0,render:e=>(0,t.jsx)(n.Link,{href:e.url,target:"_blank",children:e.name})},{key:"ip",title:(0,t.jsx)(n.Translate,{content:"text.cloud-websites-list-column-ip"}),render:e=>e.ips.join(", ")}],data:p,toolbar:(0,t.jsxs)(n.Toolbar,{children:[(0,t.jsx)(n.ToolbarGroup,{children:(0,t.jsx)(n.SegmentedControl,{buttons:[{value:O.ALL,title:(0,t.jsx)(n.Translate,{content:"button.cloud-websites-filter-all"})},{value:O.MONITORED,title:(0,t.jsx)(n.Translate,{content:"button.cloud-websites-filter-monitored"})},{value:O.NOT_MONITORED,title:(0,t.jsx)(n.Translate,{content:"button.cloud-websites-filter-not-monitored"})}],selected:this.filter,onChange:this.handleListFilterChange})}),(0,t.jsx)(n.ToolbarExpander,{}),(0,t.jsx)(n.ToolbarGroup,{groupable:!1,children:(0,t.jsx)(n.SearchBar,{inputProps:{placeholder:f("text.cloud-websites-search-placeholder")},onSearch:this.handleListSearch,minWidth:50})})]}),filtered:this.filter||this.search,totalRows:d,pagination:(0,t.jsx)(n.Pagination,{current:e,total:m,itemsPerPage:i,itemsPerPageOptions:[25,100,"all"],onSelect:this.handlePageChange,onItemsPerPageChange:this.handleItemsPerPageChange}),sortColumn:r,sortDirection:o,onSortChange:this.handleSortChange,locale:{totalRows:this.filter===O.ALL?null!==l&&null!==u?(0,t.jsx)(kt,{content:"text.cloud-websites-list-statistics-header",params:{number:l,html:(0,t.jsx)(n.Text,{bold:!0,children:(0,t.jsx)(kt,{content:"text.cloud-websites-list-statistics-number",params:{number:l,total:u}})})}}):(0,t.jsx)(n.Icon,{name:"refresh",size:"12",intent:"inactive",animation:"spin"}):c?(0,t.jsx)(kt,{content:"text.cloud-websites-list-statistics-header-filtered",params:{number:d,html:(0,t.jsx)(n.Text,{bold:!0,children:d})}}):(0,t.jsx)(n.Icon,{name:"refresh",size:"12",intent:"inactive",animation:"spin"})},emptyView:s!==O.WITH_ISSUES||a?(0,t.jsx)(n.ListEmptyView,{}):(0,t.jsx)(n.ListEmptyView,{image:vo,title:(0,t.jsx)(n.Translate,{content:"text.cloud-websites-list-not-responding-empty-view-title"}),description:(0,t.jsx)(n.Translate,{content:"text.cloud-websites-list-not-responding-empty-view-description"})}),loading:!c,className:h})}renderLicenseBanner(){const{localMonitorsUsed:e,license:r,licensePurchaseUrl:o,licenseAdjustUrl:i,cloudShowLicensePanel:s}=this.props;if(null===e||!r)return null;let a;a=s?"text.cloud-websites-license-banner":"text.cloud-websites-license-banner-no-link";const l=r.paid?i:o;return(0,t.jsx)(n.Alert,{intent:"info",children:(0,t.jsx)(n.Translate,{content:a,params:{websites:(0,t.jsx)(n.Text,{bold:!0,children:(0,t.jsx)(kt,{content:"text.cloud-websites-license-number",params:{number:this.calculateMonitorSlotsAvailable()}})}),link:(0,t.jsx)(n.Link,{href:l,target:"_blank",children:(0,t.jsx)(n.Translate,{content:"text.cloud-websites-license-link"})})}})})}render(){const{isOpen:e,baseClassName:r}=this.props;return(0,t.jsxs)(n.Drawer,{title:(0,t.jsx)(n.Translate,{content:"settings.cloudWebsitesTitle"}),isOpen:e,onClose:this.handleClose,placement:"left",size:"sm",className:`${r}__drawer`,children:[this.renderLicenseBanner(),this.renderList()]})}}Eo.contextTypes={locale:n.PropTypes.shape({lmsg:n.PropTypes.func})},Eo.propTypes={baseUrl:n.PropTypes.string.isRequired,returnUrl:n.PropTypes.string.isRequired,wsWasLoaded:n.PropTypes.bool.isRequired,isOpen:n.PropTypes.bool,baseClassName:n.PropTypes.string,list:n.PropTypes.array,totalDomains:n.PropTypes.number.isRequired,totalItems:n.PropTypes.number,localMonitorsUsed:n.PropTypes.number.isRequired,totalMonitorsUsed:n.PropTypes.number.isRequired,totalMonitorsAllowed:n.PropTypes.number.isRequired,localMonitorsAllowed:n.PropTypes.number,license:n.PropTypes.shape({paid:n.PropTypes.bool.isRequired,trial:n.PropTypes.bool.isRequired}).isRequired,licensePurchaseUrl:n.PropTypes.string.isRequired,licenseAdjustUrl:n.PropTypes.string.isRequired,reloadWebsites:n.PropTypes.func.isRequired,triggerMonitorsReload:n.PropTypes.func.isRequired,addMonitor:n.PropTypes.func.isRequired,removeMonitor:n.PropTypes.func.isRequired,reloadCloudStatistics:n.PropTypes.func.isRequired,pushUrl:n.PropTypes.func.isRequired,trackClickUAT:n.PropTypes.func.isRequired,cloudShowLicensePanel:n.PropTypes.bool.isRequired},Eo.defaultProps={isOpen:!1,baseClassName:`${R}__websites`,list:[],totalItems:0,localMonitorsAllowed:null};const To=(0,i.connect)((e=>{const{loadingStatus:t,list:n,totalItems:r,localUsed:o,totalUsed:i,totalAllowed:s,localAllowed:a}=e.websites,{totalDomains:l,license:c,licensePurchaseUrl:u,licenseAdjustUrl:p}=e.statistics;return{wsWasLoaded:t===x,list:n?Object.values(n).map((e=>Object.assign({},e,{key:e.name,loading:e.loadingStatus===P}))):[],totalDomains:l,totalItems:r||0,localMonitorsUsed:o,totalMonitorsUsed:i,totalMonitorsAllowed:s,localMonitorsAllowed:a,license:c,licensePurchaseUrl:u,licenseAdjustUrl:p,cloudShowLicensePanel:e.app.cloudShowLicensePanel}}),(e=>({reloadWebsites:(t,n,r,o,i)=>e(((e=null,t=null,n=null,r=null,o=null)=>i=>{i({type:te});let s=null;e!==O.ALL&&(s=e);let a=null;""!==`${t}`.trim()&&(a=t);let l=null;return 1!==n&&(l=n),Ur.get("/cloud-websites/get",{params:{filter:s,search:a,page:l,sort:r,per_page:o}}).then((e=>{e.data?i((({list:e,totalItems:t,localUsed:n,totalUsed:r,totalAllowed:o,localAllowed:i})=>s=>s({type:ne,list:e,totalItems:t,localUsed:n,totalUsed:r,totalAllowed:o,localAllowed:i}))(e.data)):i($r("text.cloud-websites-loading-failed"))})).catch((e=>{i(Fr(e))}))})(t,n,r,o,i)),addMonitor:t=>e((e=>t=>(t({type:re,name:e}),Ur.post("/cloud-monitors/add",Lr().stringify({name:e})).then((n=>{const{id:r}=n.data;r?(t(bo(e,{id:r,up:!0,message:""})),t(Gr("text.cloud-monitor-has-been-added","success"))):(t($r("text.cloud-monitor-update-failed")),t(bo(e)))})).catch((n=>{t(Fr(n)),t(bo(e))}))))(t)),removeMonitor:(t,n)=>e(((e,t)=>n=>(n({type:re,name:e}),Ur.post("/cloud-monitors/remove",Lr().stringify({id:t})).then((t=>{const{success:r}=t.data;r?(n(bo(e,{id:null,up:!0,message:""})),n(Gr("text.cloud-monitor-has-been-removed","success"))):(n($r("text.cloud-monitor-update-failed")),n(bo(e)))})).catch((t=>{n(Fr(t)),n(bo(e))}))))(t,n)),triggerMonitorsReload:()=>e((e=>e({type:le}))),reloadCloudStatistics:()=>e(uo()),pushUrl:t=>e((0,s.VC)(t)),trackClickUAT:t=>e(zr(t))})))(Eo);class wo extends n.Component{constructor(e){super(e),this.state={loaded:!1,frame:null,showMonitoringViewIntentDialog:!1,showMonitorsLimitReachedBanner:!1},this.statisticsUpdateTO=null,this.cloudAgentStatusUpdateTO=null}componentDidUpdate(e){const{loaded:t,frame:n}=this.state;if(!e.isLoaded&&this.props.isLoaded){const n={};t||(n.loaded=!0);const r=Math.max(this.props.license.monitorsAllowed-this.props.license.monitorsUsed,0);if(n.loaded&&0===r)n.showMonitorsLimitReachedBanner=!0;else if(e.license&&e.license.monitorsUsed!==this.props.license.monitorsUsed){const t=Math.max(e.license.monitorsAllowed-e.license.monitorsUsed,0);0!==r&&0!==t||(n.showMonitorsLimitReachedBanner=0===r)}Object.keys(n).length&&this.setState(n),this.scheduleUpdate()}this.props.dataIsAvailable&&this.props.dashboardUrlHasNeverLoaded&&this.props.reloadCloudDashboardUrl(),!e.dashboardUrlIsLoaded&&this.props.dashboardUrlIsLoaded&&this.setState({frame:this.generateFrame(this.props.dashboardAuthUrl)}),e.showMonitors&&!this.props.showMonitors&&n&&n.loaded&&n.url!==this.props.dashboardOverviewUrl&&this.setState({frame:this.generateFrame(this.props.dashboardOverviewUrl)}),this.props.agentVersionIsUpdated&&!this.cloudAgentStatusUpdateTO&&this.pollCloudAgentStatus(),!this.props.agentVersionIsUpdated&&this.cloudAgentStatusUpdateTO&&(clearTimeout(this.cloudAgentStatusUpdateTO),this.cloudAgentStatusUpdateTO=null,this.props.reloadCloudStatistics())}scheduleUpdate=()=>{this.statisticsUpdateTO&&clearTimeout(this.statisticsUpdateTO),this.statisticsUpdateTO=setTimeout(this.props.reloadCloudStatistics,3e4)};pollCloudAgentStatus=()=>{this.cloudAgentStatusUpdateTO=setTimeout((()=>{this.props.checkCloudAgentIsReady(),this.cloudAgentStatusUpdateTO=null,this.pollCloudAgentStatus()}),5e3)};generateFrame=e=>({key:Math.random().toString(36).substr(2,5),url:e||null,loaded:!e});handleFrameLoad=()=>{this.state.frame.url!==this.props.dashboardAuthUrl?this.setState({frame:{...this.state.frame,loaded:!0}}):"#alerts"===window.location.hash?this.setState({frame:this.generateFrame(this.props.dashboardAlertsUrl)}):this.setState({frame:this.generateFrame(this.props.dashboardOverviewUrl)})};handleMonitoringViewIntent=(e=!0)=>{this.setState({showMonitoringViewIntentDialog:e})};handleMonitoringViewToggle=e=>{this.setState({showMonitoringViewIntentDialog:!1}),this.props.trackClickUAT(I),this.props.toggleCloudMonitoringView(e&&e.uninstall_cloud_agent),e&&e.uninstall_cloud_agent&&this.props.trackClickUAT(C),window.open(Dr.statisticsFull,"_self")};handleOpenMonitorsManagement=()=>{this.props.trackClickUAT("OPEN_WEBSITES_DRAWER"),this.props.pushUrl(Dr.cloudMonitorsManagement)};handleOpenMonitors=(e=!1)=>{let t=Dr.cloudMonitors;e&&(t+="#"+O.WITH_ISSUES),this.props.pushUrl(t)};handleRenderMonitorsLimitReachedBannerClose=()=>{this.setState({showMonitorsLimitReachedBanner:!1})};handleOpenAlerts(){this.setState({frame:this.generateFrame(this.props.dashboardAlertsUrl)})}renderWebsitesPanel(){const{monitors:e,isRequested:r}=this.props;return e.total>0?(0,t.jsxs)(n.Item,{view:"card",children:[(0,t.jsxs)(n.Toolbar,{children:[(0,t.jsx)(n.ToolbarGroup,{children:(0,t.jsxs)(n.Heading,{level:3,children:[(0,t.jsx)(n.Translate,{content:"text.cloud-panel-websites-title"}),r?[" ",(0,t.jsx)("sup",{children:(0,t.jsx)(n.Icon,{name:"refresh",size:"12",intent:"inactive",animation:"spin"})})]:null]})}),(0,t.jsx)(n.ToolbarExpander,{}),(0,t.jsx)(n.ToolbarGroup,{children:(0,t.jsx)(n.Button,{icon:"list",ghost:!0,onClick:()=>this.handleOpenMonitorsManagement()})}),(0,t.jsx)(n.ToolbarGroup,{children:e.totalDown>0?(0,t.jsx)(n.Icon,{name:"exclamation-mark-circle-filled",intent:"danger",size:"24"}):(0,t.jsx)(n.Icon,{name:"check-mark-circle",intent:"success",size:"24"})})]}),(0,t.jsx)(n.Paragraph,{children:e.totalDown>0?(0,t.jsx)(n.Link,{onClick:()=>this.handleOpenMonitors(!0),children:(0,t.jsx)(kt,{content:"text.cloud-panel-websites-has-issues",params:{number:e.totalDown}})}):(0,t.jsx)(n.Link,{onClick:()=>this.handleOpenMonitors(),children:(0,t.jsx)(n.Translate,{content:"text.cloud-panel-websites-no-issues"})})})]},"websites"):(0,t.jsxs)(n.Item,{view:"card",children:[(0,t.jsxs)(n.Toolbar,{children:[(0,t.jsx)(n.ToolbarGroup,{children:(0,t.jsxs)(n.Heading,{level:3,children:[(0,t.jsx)(n.Translate,{content:"text.cloud-panel-websites-title"}),r?[" ",(0,t.jsx)("sup",{children:(0,t.jsx)(n.Icon,{name:"refresh",size:"12",intent:"inactive",animation:"spin"})})]:null]})}),(0,t.jsx)(n.ToolbarExpander,{}),(0,t.jsx)(n.ToolbarGroup,{children:(0,t.jsx)(n.Button,{intent:"primary",icon:"list",onClick:()=>this.handleOpenMonitorsManagement(),children:(0,t.jsx)(n.Translate,{content:"text.cloud-panel-websites-set-monitoring-list"})})})]}),(0,t.jsx)(n.Paragraph,{children:(0,t.jsx)(n.Text,{intent:"muted",children:(0,t.jsx)(n.Translate,{content:"text.cloud-panel-websites-not-monitoring"})})})]},"websites")}renderNotificationsPart(){const{serverNotifications:e}=this.props;return(0,t.jsx)(n.Link,{onClick:()=>this.handleOpenAlerts(),children:0===e.open.length?(0,t.jsx)(n.Translate,{content:"text.cloud-panel-server-no-alerts"}):(0,t.jsx)(kt,{content:"text.cloud-panel-server-has-alerts",params:{value:e.open.length}})})}renderAgentStatusPart(){const{agentIsActive:e,agentIsInstalled:r,agentIsBeingStarted:o,agentVersionIsUpdated:i,agentVersion:s,agentLatestVersion:a,agentVersionIsLoaded:l,isLoaded:c}=this.props,u=s&&a&&-1===no(s,a);return i&&!u||l&&!s||!r?(0,t.jsx)(n.Button,{onClick:()=>this.props.reinstallCloudAgent(),intent:"warning",icon:"triangle-exclamation-mark-filled",state:i||!c?"loading":void 0,children:(0,t.jsx)(n.Translate,{content:"button.cloud-agent-install"})}):u?(0,t.jsx)(n.Button,{onClick:()=>this.props.reinstallCloudAgent(),icon:"arrow-down-tray",ghost:!0,disabled:i,state:i||!c?"loading":void 0,children:(0,t.jsx)(n.Text,{bold:!0,children:(0,t.jsx)(n.Translate,{content:"button.cloud-agent-version-update"})})}):e?null:(0,t.jsx)(n.Button,{intent:"warning",icon:"triangle-exclamation-mark-filled",onClick:()=>this.props.startAgent(),state:o?"loading":"",children:(0,t.jsx)(n.Translate,{content:"button.cloud-agent-launch"})})}renderServerStatusButton(){const{serverNotifications:e,agentIsActive:r,agentIsInstalled:o,agentVersion:i,agentLatestVersion:s,agentVersionIsUpdated:a}=this.props,l=0!==e.open.length,c=i&&s&&-1===no(i,s);return!a&&(o&&r||c)?(0,t.jsx)(n.Icon,{name:l?"exclamation-mark-circle-filled":"check-mark-circle",size:"24",intent:l?"danger":"success",className:"pul-icon--inline"}):null}renderServerPanel(){return(0,t.jsxs)(n.Item,{view:"card",children:[(0,t.jsxs)(n.Toolbar,{children:[(0,t.jsx)(n.ToolbarGroup,{children:(0,t.jsx)(n.Heading,{level:3,children:(0,t.jsx)(n.Translate,{content:"text.cloud-panel-server-title"})})}),(0,t.jsx)(n.ToolbarExpander,{}),(0,t.jsxs)(n.ToolbarGroup,{children:[this.renderAgentStatusPart(),this.renderServerStatusButton()]})]}),(0,t.jsx)(n.Paragraph,{children:this.renderNotificationsPart()})]},"server")}renderLicensePanelButton(e=!1){const{license:r,licensePurchaseUrl:o,licenseAdjustUrl:i}=this.props;let s="widget.license.button-buy-pro",a="dollar",l=o;return r.paid&&(s="widget.license.button-adjust-limits",a="sliders",l=i),(0,t.jsx)(n.Button,{ghost:e,icon:a,component:"a",href:l,onClick:()=>this.props.trackClickUAT("LICENSE_WIDGET_BUY_PRO"),target:"_blank",children:(0,t.jsx)(n.Translate,{content:s})})}renderLicensePanelToolbar(){const{license:e}=this.props,r=Math.ceil(e.expiresIn/86400);let o="widget.license.header-lite";return e.paid?o="widget.license.header-pro":e.trial&&(o="widget.license.header-trial"),(0,t.jsxs)(n.Toolbar,{className:`${R}__license-toolbar`,children:[(0,t.jsx)(n.ToolbarGroup,{children:(0,t.jsx)(n.Heading,{className:`${R}__license-heading`,level:3,children:(0,t.jsx)(kt,{content:o,params:{days:r}})})}),(0,t.jsx)(n.ToolbarExpander,{}),(0,t.jsx)(n.ToolbarGroup,{children:this.renderLicensePanelButton(!0)}),e.paid?null:(0,t.jsx)(n.ToolbarGroup,{children:(0,t.jsx)(n.Dropdown,{menu:(0,t.jsxs)(n.Menu,{children:[(0,t.jsx)(n.MenuItem,{icon:"transfer",onClick:()=>{this.props.trackClickUAT("LICENSE_WIDGET_COMPARE"),window.open(E)},children:(0,t.jsx)(n.Translate,{content:"widget.license.menu-compare-licenses"})}),(0,t.jsx)(n.MenuItem,{icon:"arrow-back",onClick:()=>{this.props.trackClickUAT("LICENSE_WIDGET_SWITCH_TO_BUILT_IN"),this.handleMonitoringViewIntent()},children:(0,t.jsx)(n.Translate,{content:"widget.license.menu-back-to-classic"})})]}),children:(0,t.jsx)(n.Button,{ghost:!0,icon:"three-dots-horizontal"})})})]})}renderLicensePanelWebsitesPopover(){const{license:e}=this.props;let r="widget.license.popup-lite-websites-allowed";return e.paid?r="widget.license.popup-pro-websites-allowed":e.trial&&(r="widget.license.popup-trial-websites-allowed"),(0,t.jsxs)(n.Popover,{target:(0,t.jsx)(n.Icon,{className:"pul-icon-inline",name:"question-mark-circle",intent:"inactive",size:"12"}),children:[(0,t.jsxs)(n.Paragraph,{children:[(0,t.jsx)(kt,{content:"widget.license.popup-websites-used",params:{used:e.monitorsUsed,serversUsed:e.serversUsed}}),(0,t.jsx)("br",{}),(0,t.jsx)(kt,{content:r,params:{allowed:e.monitorsAllowed}})]}),this.renderLicensePanelButton()]})}renderLicensePanelWebsitesUsage(){const{license:e}=this.props,r=Math.min(e.monitorsUsed/e.monitorsAllowed*100,100);return[(0,t.jsxs)(n.Columns,{vertical:!1,gap:"xs",className:`${R}__license-progress`,children:[(0,t.jsx)(n.Column,{fill:!0,children:(0,t.jsx)(n.Text,{fontSize:"sm",children:(0,t.jsx)(kt,{content:"widget.license.websites-used-allowed",params:{used:e.monitorsUsed,allowed:e.trial?"∞":e.monitorsAllowed}})})}),(0,t.jsx)(n.Column,{children:this.renderLicensePanelWebsitesPopover()})]},"title"),e.trial?null:(0,t.jsx)(n.ProgressBar,{progress:r},"progress")]}renderLicensePanelServersPopover(){const{license:e}=this.props;let r="widget.license.popup-lite-servers-allowed";return e.paid?r="widget.license.popup-pro-servers-allowed":e.trial&&(r="widget.license.popup-trial-servers-allowed"),(0,t.jsxs)(n.Popover,{target:(0,t.jsx)(n.Icon,{className:"pul-icon-inline",name:"question-mark-circle",intent:"inactive",size:"12"}),children:[(0,t.jsxs)(n.Paragraph,{children:[(0,t.jsx)(kt,{content:"widget.license.popup-servers-used",params:{used:e.serversUsed}}),(0,t.jsx)("br",{}),(0,t.jsx)(kt,{content:r,params:{allowed:e.serversAllowed}})]}),this.renderLicensePanelButton()]})}renderLicensePanelServersUsage(){const{license:e}=this.props,r=Math.min(e.serversUsed/e.serversAllowed*100,100);return[(0,t.jsxs)(n.Columns,{vertical:!1,gap:"xs",className:`${R}__license-progress`,children:[(0,t.jsx)(n.Column,{fill:!0,children:(0,t.jsx)(n.Text,{fontSize:"sm",children:(0,t.jsx)(kt,{content:"widget.license.servers-used-allowed",params:{used:e.serversUsed,allowed:e.trial?"∞":e.serversAllowed}})})}),(0,t.jsx)(n.Column,{children:this.renderLicensePanelServersPopover()})]},"title"),e.trial?null:(0,t.jsx)(n.ProgressBar,{progress:r},"progress")]}renderLicensePanel(){const{cloudShowLicensePanel:e}=this.props;return e?(0,t.jsxs)(n.Item,{view:"card",children:[this.renderLicensePanelToolbar(),(0,t.jsxs)(n.Columns,{vertical:!1,gap:"xl",children:[(0,t.jsx)(n.Column,{ratio:1,children:this.renderLicensePanelWebsitesUsage()}),(0,t.jsx)(n.Column,{ratio:1,children:this.renderLicensePanelServersUsage()})]})]},"license"):null}renderPanels(){return(0,t.jsxs)(n.ItemList,{xs:1,md:2,lg:3,gap:"xs",hoverable:!1,stretchable:!0,children:[this.renderServerPanel(),this.renderWebsitesPanel(),this.renderLicensePanel()]})}renderAgentProblemBanner(){const{agentIsInstalled:e,agentIsActive:r,dataIsAvailable:o,isLoaded:i,agentVersionIsUpdated:s}=this.props;let a="";if(!i||o||s)return null;if(e){if(r)return null;a="text.cloud-no-data-start-agent-description"}else a="text.cloud-no-data-install-agent-description";return(0,t.jsx)(n.StatusMessage,{intent:"danger",children:(0,t.jsx)(n.Translate,{content:a})})}renderServerMonitoringWarning(){const{monitoringIsActive:e,cloudShowLicensePanel:r,license:o,licenseAdjustUrl:i}=this.props,s=o&&o.serversUsed>o.serversAllowed;let a,l,c="warning";if(!1===e)r?(a="text.cloud-server-monitoring-inactive-message",l="text.cloud-server-monitoring-inactive-adjust-link"):a="text.cloud-server-monitoring-inactive-no-link-message",c="danger";else{if(!s||!0!==r)return null;a="text.cloud-license-servers-limit-reached-message",l="text.cloud-license-servers-limit-reached-adjust-link"}return(0,t.jsx)(n.StatusMessage,{intent:c,children:(0,t.jsx)(n.Translate,{content:a,params:l?{link:(0,t.jsx)(n.Link,{href:i,onClick:()=>this.props.trackClickUAT(j),target:"_blank",children:(0,t.jsx)(n.Translate,{content:l})})}:void 0})})}renderMonitorsLimitReachedBanner(){const{showMonitorsLimitReachedBanner:e}=this.state;if(!e)return null;const{license:r,licenseAdjustUrl:o,licensePurchaseUrl:i,cloudShowLicensePanel:s}=this.props;let a="",l="";return s?(a="text.cloud-license-limits-reached-message-trial",l="text.cloud-license-limits-reached-message-lite"):(a="text.cloud-license-limits-reached-message-trial-no-link",l="text.cloud-license-limits-reached-message-lite-no-link"),(0,t.jsx)(n.StatusMessage,{intent:"info",onClose:this.handleRenderMonitorsLimitReachedBannerClose,children:r.trial||r.paid?(0,t.jsx)(n.Translate,{content:a,params:{link:(0,t.jsx)(n.Link,{href:o,onClick:()=>this.props.trackClickUAT(j),target:"_blank",children:(0,t.jsx)(n.Translate,{content:"text.cloud-license-limits-reached-adjust-link"})})}}):(0,t.jsx)(n.Translate,{content:l,params:{link:(0,t.jsx)(n.Link,{href:i,onClick:()=>this.props.trackClickUAT("LICENSE_LIMIT_REACHED_BUY_PRO"),target:"_blank",children:(0,t.jsx)(n.Translate,{content:"text.cloud-license-limits-reached-buy-pro-link"})})}})})}renderBody(){const{frame:e}=this.state,{dataIsAvailable:r,dataAvailabilityRequested:o,monitoringIsActive:i,dashboardUrlIsLoaded:s,agentIsInstalled:a,agentIsActive:l}=this.props,c=(0,n.classNames)(`${R}__frame`,{[`${R}__frame--loading`]:!e||!e.loaded});return r?s&&e?[(0,t.jsx)("iframe",{src:e.url,onLoad:()=>this.handleFrameLoad(),className:c,sandbox:"allow-scripts allow-forms allow-same-origin allow-pointer-lock allow-downloads allow-popups"},e.key),e.loaded?null:(0,t.jsx)(n.ContentLoader,{})]:(0,t.jsx)(n.ContentLoader,{}):i&&a&&l?(0,t.jsx)(n.ListEmptyView,{title:(0,t.jsx)(n.Translate,{content:"text.cloud-no-data-title"}),description:(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Paragraph,{children:(0,t.jsx)(n.Translate,{content:"text.cloud-no-data-connection-notice"})}),(0,t.jsx)(n.Paragraph,{children:(0,t.jsx)(n.Translate,{content:"text.cloud-no-data-description"})})]}),image:(0,t.jsx)("img",{src:`${b}/collecting-data.png`,width:"316"}),actions:(0,t.jsx)(n.Button,{intent:"primary",onClick:()=>this.props.reloadIsDataAvailable(),state:o?"loading":void 0,children:(0,t.jsx)(n.Translate,{content:"button.cloud-statistics-refresh"})})}):null}renderTabs(){const{showMonitors:e,pushUrl:r}=this.props,o=[{key:"server",title:(0,t.jsx)(n.Translate,{content:"panel.cloudServerTitle"}),url:Dr.cloud},{key:"websites",title:(0,t.jsx)(n.Translate,{content:"panel.cloudMonitorsTitle"}),url:Dr.cloudMonitors}];return(0,t.jsx)(n.Tabs,{active:e?2:1,children:o.map((e=>(0,t.jsx)(n.Tab,{title:e.title,onActivate:()=>r(e.url)},e.key)))})}render(){const{locked:e,showMonitors:r,showWebsites:o}=this.props,{showMonitoringViewIntentDialog:i}=this.state;return(0,t.jsxs)("div",{children:[this.renderTabs(),(0,t.jsxs)("div",{className:(0,n.classNames)(`${R}__cloud-workspace`,{[`${R}__cloud-workspace--locked`]:e}),children:[this.renderServerMonitoringWarning(),this.renderMonitorsLimitReachedBanner(),this.renderAgentProblemBanner(),r?(0,t.jsx)(go,{}):[this.state.loaded?this.renderPanels():null,this.renderBody()]]}),(0,t.jsx)(to,{isOpen:i,onClose:()=>this.handleMonitoringViewIntent(!1),onSubmit:this.handleMonitoringViewToggle}),(0,t.jsx)(To,{isOpen:o,baseUrl:r?Dr.cloudMonitorsManagement2:Dr.cloudMonitorsManagement,returnUrl:r?Dr.cloudMonitors:Dr.cloud})]})}}wo.propTypes={locked:n.PropTypes.bool,isRequested:n.PropTypes.bool.isRequired,isLoaded:n.PropTypes.bool.isRequired,monitors:n.PropTypes.shape({total:n.PropTypes.number.isRequired,totalUp:n.PropTypes.number.isRequired,totalDown:n.PropTypes.number.isRequired}),license:n.PropTypes.shape({paid:n.PropTypes.bool.isRequired,trial:n.PropTypes.bool.isRequired,expiresIn:n.PropTypes.number.isRequired,monitorsAllowed:n.PropTypes.number.isRequired,monitorsUsed:n.PropTypes.number.isRequired,serversAllowed:n.PropTypes.number.isRequired,serversUsed:n.PropTypes.number.isRequired}),monitoringIsActive:n.PropTypes.bool,dataIsAvailable:n.PropTypes.bool,dataAvailabilityRequested:n.PropTypes.bool.isRequired,dashboardUrlHasNeverLoaded:n.PropTypes.bool.isRequired,dashboardUrlIsLoaded:n.PropTypes.bool.isRequired,dashboardAuthUrl:n.PropTypes.string,dashboardOverviewUrl:n.PropTypes.string,dashboardAlertsUrl:n.PropTypes.string,agentVersionIsLoaded:n.PropTypes.bool.isRequired,agentVersionIsUpdated:n.PropTypes.bool.isRequired,agentVersion:n.PropTypes.string,agentLatestVersion:n.PropTypes.string,showMonitors:n.PropTypes.bool,showWebsites:n.PropTypes.bool,licensePurchaseUrl:n.PropTypes.string.isRequired,licenseAdjustUrl:n.PropTypes.string.isRequired,serverNotifications:n.PropTypes.array.isRequired,agentIsActive:n.PropTypes.bool.isRequired,agentIsInstalled:n.PropTypes.bool.isRequired,agentIsBeingStarted:n.PropTypes.bool.isRequired,reloadCloudStatistics:n.PropTypes.func.isRequired,reloadCloudDashboardUrl:n.PropTypes.func.isRequired,reinstallCloudAgent:n.PropTypes.func.isRequired,checkCloudAgentIsReady:n.PropTypes.func.isRequired,reloadIsDataAvailable:n.PropTypes.func.isRequired,toggleCloudMonitoringView:n.PropTypes.func.isRequired,startAgent:n.PropTypes.func.isRequired,trackClickUAT:n.PropTypes.func.isRequired,pushUrl:n.PropTypes.func.isRequired,cloudShowLicensePanel:n.PropTypes.bool.isRequired},wo.defaultProps={locked:!1,monitors:null,license:null,monitoringIsActive:null,dataIsAvailable:null,dashboardAuthUrl:null,dashboardOverviewUrl:null,dashboardAlertsUrl:null,agentVersion:null,agentLatestVersion:null,showMonitors:!1,showWebsites:!1};const So=(0,i.connect)((e=>{const{loadingStatus:t,monitors:n,license:r,monitoringIsActive:o,dataIsAvailable:i,dataAvailabilityLoadingStatus:s,dashboardUrlLoadingStatus:a,dashboardAuthUrl:l,dashboardOverviewUrl:c,dashboardAlertsUrl:u,agentVersionLoadingStatus:p,agentVersion:d,agentLatestVersion:h,licensePurchaseUrl:f,licenseAdjustUrl:y,serverNotifications:m,agentIsActive:_,agentIsInstalled:g,agentIsBeingStarted:b}=e.statistics;return{isRequested:t===S,isLoaded:t===x,monitors:n,license:r,monitoringIsActive:o,dataIsAvailable:i,dataAvailabilityRequested:s===S,dashboardUrlHasNeverLoaded:a===w,dashboardUrlIsLoaded:a===x,dashboardAuthUrl:l,dashboardOverviewUrl:c,dashboardAlertsUrl:u,agentVersionIsLoaded:p===x,agentVersionIsUpdated:p===P,agentVersion:d,agentLatestVersion:h,licensePurchaseUrl:f,licenseAdjustUrl:y,serverNotifications:m,agentIsActive:_,agentIsInstalled:g,agentIsBeingStarted:b,cloudShowLicensePanel:e.app.cloudShowLicensePanel}}),(e=>({reloadCloudStatistics:()=>e(uo()),reloadCloudDashboardUrl:()=>e((e=>(e({type:X}),Ur.get("/cloud-statistics/get-dashboard-url").then((t=>{t.data?e((({authUrl:e,overviewUrl:t,alertsUrl:n})=>r=>r({type:K,authUrl:e,overviewUrl:t,alertsUrl:n}))(t.data)):e($r("text.cloud-dashboard-url-loading-failed"))})).catch((t=>{e(Fr(t))}))))),reinstallCloudAgent:()=>e((e=>(e({type:V}),Ur.post("/cloud-statistics/reinstall-agent").catch((t=>{e(Fr(t))}))))),checkCloudAgentIsReady:()=>e(fo()),reloadIsDataAvailable:()=>e((e=>(e({type:z}),Ur.get("/cloud-statistics/is-data-available").then((t=>{t.data?e((({dataIsAvailable:e})=>t=>t({type:Y,dataIsAvailable:e}))(t.data)):e($r("text.cloud-data-loading-failed"))})).catch((t=>{e(Fr(t))}))))),toggleCloudMonitoringView:t=>e(yo(t)),startAgent:()=>e((e=>(e({type:J}),Ur.post("/cloud-statistics/start-agent").then((t=>{const{success:n,error:r}=t.data;n?e((e=>e({type:Z}))):(e(Fr(r)),e((e=>e({type:Q}))))}))))),trackClickUAT:t=>e(zr(t)),pushUrl:t=>e((0,s.VC)(t))})))(wo);var xo=r(5072),Po=r.n(xo),Oo=r(7825),Ro=r.n(Oo),Ao=r(7659),Io=r.n(Ao),jo=r(5056),Co=r.n(jo),Lo=r(540),Mo=r.n(Lo),No=r(1113),Uo=r.n(No),Bo=r(8700),ko={};ko.styleTagTransform=Uo(),ko.setAttributes=Co(),ko.insert=Io().bind(null,"head"),ko.domAPI=Ro(),ko.insertStyleElement=Mo(),Po()(Bo.A,ko),Bo.A&&Bo.A.locals&&Bo.A.locals;var Do=r(1498),Ho={};Ho.styleTagTransform=Uo(),Ho.setAttributes=Co(),Ho.insert=Io().bind(null,"head"),Ho.domAPI=Ro(),Ho.insertStyleElement=Mo(),Po()(Do.A,Ho),Do.A&&Do.A.locals&&Do.A.locals;class Go extends n.Component{constructor(e){super(e),this.state={siteMonitoringIsNotNeeded:e.siteMonitoringIsNotNeeded,showSpot:!1}}handleSiteMonitoringIsNotNeeded=e=>{const{siteId:t,setSiteMonitoringIsNotNeeded:n}=this.props;this.setState({siteMonitoringIsNotNeeded:e}),n(t,e),this.props.onThanksButtonClick(e)};handleToggleSpot=()=>{this.setState((e=>({showSpot:!e.showSpot})))};render(){const{siteId:e}=this.props,{siteMonitoringIsNotNeeded:r,showSpot:o}=this.state;return null===e?null:(0,t.jsx)(n.Panel,{className:`${R}__site-monitoring-is-not-needed-banner`,children:(0,t.jsxs)(n.Media,{className:`${R}__media`,children:[(0,t.jsxs)(n.MediaSection,{children:[(0,t.jsx)(n.Switch,{checked:r,onChange:e=>{this.handleSiteMonitoringIsNotNeeded(e)},className:`${R}__switch`})," ",(0,t.jsx)(n.Text,{bold:!0,fontSize:"sm",children:(0,t.jsx)(n.Translate,{content:"switch.site-monitoring-is-not-needed"})})]}),(0,t.jsxs)(n.MediaSection,{className:`${R}__switch-hint`,children:[(0,t.jsx)(n.Hint,{children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-site-monitoring-is-not-needed-disabled-hint",params:{navigationPane:(0,t.jsx)("a",{onClick:()=>this.handleToggleSpot(),children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-site-monitoring-is-not-needed-navigation-pane-link"})})}})}),o&&(0,t.jsx)(n.Spot,{placement:"right",className:`${R}__spot`,selector:"[id^=extNavButton-monitoring]"})]})]})})}}Go.propTypes={siteId:n.PropTypes.number,siteMonitoringIsNotNeeded:n.PropTypes.bool,setSiteMonitoringIsNotNeeded:n.PropTypes.func.isRequired,onThanksButtonClick:n.PropTypes.func},Go.defaultProps={siteId:null,siteMonitoringIsNotNeeded:!1,onThanksButtonClick:null};const Fo=(0,i.connect)((e=>{const{siteId:t,siteMonitoringIsOn:n,siteMonitoringIsNotNeeded:r}=e.app;return{siteId:t,siteMonitoringIsOn:n,siteMonitoringIsNotNeeded:r}}),(e=>({setSiteMonitoringIsNotNeeded:(t,n)=>e(((e,t)=>n=>(n({type:"site_monitoring_is_not_needed"}),Ur.post("/cloud-monitors/set-site-monitoring-is-not-needed",{site_id:e,site_monitoring_is_not_needed:t}).catch((e=>{n(Fr(e))}))))(t,n))})))(Go),$o=`${b}/activated-notifications-vertical.svg`;class qo extends n.Component{constructor(e){super(e),this.state={cloudConnectionIsInProgress:!1}}handleCloudServerConnect=()=>{this.setState({cloudConnectionIsInProgress:!0}),this.props.onCloudServerConnect&&this.props.onCloudServerConnect();const e=ro(Dr.cloudConnectFull,U,k);window.open(e,"_self")};handleCloudMonitoringActivate=()=>{this.setState({cloudConnectionIsInProgress:!0}),this.props.onCloudMonitoringActivate&&this.props.onCloudMonitoringActivate();const e=ro(Dr.cloudConnectFull,U,D);window.open(e,"_self")};handleWebsiteMonitoringEnable=()=>{window.open(Dr.cloudMonitorsManagementFull2,"_self")};renderWebsiteIsNotMonitoredWarning(){const{siteName:e,siteMonitoringIsOn:r}=this.props;return r?null:(0,t.jsx)(n.StatusMessage,{intent:"warning",children:(0,t.jsx)(kt,{content:"text.website-is-not-monitored-externally",params:{site:e,b:e=>(0,t.jsx)("strong",{children:e})}})})}renderCloudConnectionWebsiteMonitoringPromoBanner(){const{cloudServerIsAttached:e,cloudMonitoringIsEnabled:r,cloudPlatformUrl:o,siteName:i}=this.props,{cloudConnectionIsInProgress:s}=this.state,a=ro(o+T,U,B);return(0,t.jsx)(n.Panel,{className:`${R}__cloud-connection-site-monitoring-banner`,children:(0,t.jsxs)(n.Media,{image:(0,t.jsx)("img",{src:$o,height:"240px",alt:"360 Monitoring"}),className:`${R}__media`,imageSpacing:"xl",children:[(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Grid,{children:(0,t.jsx)(n.GridCol,{lg:8,children:(0,t.jsx)(kt,{content:"text.cloud-connection-website-monitoring-promo",params:{site:i,b:e=>(0,t.jsx)("strong",{children:e}),br:(0,t.jsx)("br",{})}})})})}),(0,t.jsx)("br",{}),(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Heading,{level:4,children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-steps-title"})})}),(0,t.jsxs)(n.MediaSection,{children:[e?(0,t.jsx)(n.Text,{fontSize:"sm",intent:"muted",children:(0,t.jsxs)(n.Media,{image:(0,t.jsx)(n.Text,{children:"1."}),children:[(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-step-one-done"})," ",(0,t.jsx)(n.Icon,{name:"check-mark",intent:"success"})]})}):(0,t.jsx)(n.Text,{fontSize:"sm",children:(0,t.jsxs)(n.Media,{title:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-step-one"}),image:(0,t.jsx)(n.Text,{children:"1."}),children:[(0,t.jsx)(n.Button,{intent:"primary",icon:"cloud",onClick:this.handleCloudServerConnect,state:s?"loading":void 0,children:(0,t.jsx)(n.Translate,{content:"button.cloud-connection-promo-connect"})})," ",(0,t.jsx)(n.Button,{icon:"user",component:"a",href:a,target:"_blank",disabled:s,children:(0,t.jsx)(n.Translate,{content:"button.cloud-connection-promo-sign-up"})})]})}),(0,t.jsx)("br",{}),r?(0,t.jsx)(n.Text,{fontSize:"sm",intent:"muted",children:(0,t.jsxs)(n.Media,{image:(0,t.jsx)(n.Text,{children:"2."}),children:[(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-step-two-done"})," ",(0,t.jsx)(n.Icon,{name:"check-mark",intent:"success"})]})}):(0,t.jsx)(n.Text,{fontSize:"sm",children:(0,t.jsx)(n.Media,{title:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-step-two"}),image:(0,t.jsx)(n.Text,{children:"2."}),children:e?(0,t.jsx)(n.Button,{intent:"primary",icon:"monitoring",onClick:this.handleCloudMonitoringActivate,state:s?"loading":void 0,children:(0,t.jsx)(n.Translate,{content:"button.cloud-connection-promo-activate"})}):null})}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Text,{fontSize:"sm",children:(0,t.jsx)(n.Media,{title:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-step-three",params:{site:i}}),image:(0,t.jsx)(n.Text,{children:"3."}),children:r?(0,t.jsx)(n.Button,{intent:"primary",icon:"web",onClick:this.handleWebsiteMonitoringEnable,children:(0,t.jsx)(n.Translate,{content:"button.cloud-connection-website-monitoring-promo-enable"})}):null})})]}),(0,t.jsx)("br",{})]})})}render(){const{isLoaded:e}=this.props;return e?[this.renderWebsiteIsNotMonitoredWarning(),this.renderCloudConnectionWebsiteMonitoringPromoBanner()]:null}}qo.propTypes={isLoaded:n.PropTypes.bool.isRequired,cloudServerIsAttached:n.PropTypes.bool.isRequired,cloudMonitoringIsEnabled:n.PropTypes.bool.isRequired,cloudPlatformUrl:n.PropTypes.string.isRequired,onCloudServerConnect:n.PropTypes.func,onCloudMonitoringActivate:n.PropTypes.func,siteName:n.PropTypes.string.isRequired,siteMonitoringIsOn:n.PropTypes.bool.isRequired},qo.defaultProps={onCloudServerConnect:null,onCloudMonitoringActivate:null};const Wo=(0,i.connect)((e=>{const{loadingStatus:t,cloudServerIsAttached:n,cloudMonitoringIsEnabled:r,cloudPlatformUrl:o,siteName:i,siteMonitoringIsOn:s}=e.app;return{isLoaded:t===x,cloudServerIsAttached:n,cloudMonitoringIsEnabled:r,cloudPlatformUrl:o,siteName:i,siteMonitoringIsOn:s}}))(qo),Vo=`${b}/trial-expired.svg`,zo=`${b}/360monitoring-logo.svg`;class Yo extends n.Component{constructor(e){super(e),this.state={showMonitoringViewIntentDialog:!1,showTrialPeriodHasExpiredBanner:!1,builtInMonitoringStarts:!1},this.cloudAgentStatusUpdateTO=null}componentDidMount(){this.props.checkInstallationIfFirstOpen()}componentDidUpdate(e){const t=!e.appIsLoaded&&this.props.appIsLoaded&&this.props.cloudMonitoringIsEnabled&&!this.props.installationErrorIsCritical,n=e.installationErrorIsCritical&&!this.props.installationErrorIsCritical&&this.props.appIsLoaded;(t||n)&&(this.props.loadCloudStatisticsIfFirstOpen(),this.props.loadCloudAgentVersion()),e.trialPeriodHasExpired!==this.props.trialPeriodHasExpired&&this.setState({showTrialPeriodHasExpiredBanner:this.props.trialPeriodHasExpired}),this.state.builtInMonitoringStarts&&this.props.installationFixed&&(this.setState({builtInMonitoringStarts:!1}),this.handleMonitoringViewToggle()),this.props.agentVersionIsBeingUpdated&&!this.cloudAgentStatusUpdateTO&&this.pollCloudAgentStatus(),!this.props.agentVersionIsBeingUpdated&&this.cloudAgentStatusUpdateTO&&(clearTimeout(this.cloudAgentStatusUpdateTO),this.cloudAgentStatusUpdateTO=null,this.props.reloadCloudStatistics())}pollCloudAgentStatus=()=>{this.cloudAgentStatusUpdateTO=setTimeout((()=>{this.props.checkCloudAgentIsReady(),this.cloudAgentStatusUpdateTO=null,this.pollCloudAgentStatus()}),5e3)};handleMonitoringViewIntent=(e=!0)=>{this.setState({showMonitoringViewIntentDialog:e})};handleMonitoringViewToggle=e=>{this.setState({showMonitoringViewIntentDialog:!1}),this.props.trackClickUAT(I),this.props.toggleCloudMonitoringView(e&&e.uninstall_cloud_agent),e&&e.uninstall_cloud_agent&&this.props.trackClickUAT(C),window.open(Dr.statisticsFull,"_self")};handleMonitoringInstallationClick=()=>{this.props.trackClickUAT("SERVER_DETACHED_SWITCH_TO_BUILT_IN"),this.props.installationError?(this.setState({builtInMonitoringStarts:!0}),this.props.fixInstallation()):this.handleMonitoringViewToggle()};renderMonitoringLink=()=>{const{cloudMonitoringLinkUrl:e,cloudMonitoringPoweredByUrl:r}=this.props,o=ro(e,"ext-monitoring","open_360_monitoring"),i=(0,t.jsxs)(n.Hint,{children:[(0,t.jsx)(n.Translate,{content:"text.powered-by"})," ",(0,t.jsx)("img",{src:zo,height:"24"})]});return!1===r?i:null===r?(0,t.jsx)(n.Link,{href:o,onClick:()=>this.props.trackClickUAT(A),target:"_blank",children:(0,t.jsx)(n.Text,{fontSize:"md",children:(0,t.jsx)(n.Translate,{content:"button.cloud-open-external-monitoring"})})}):(0,t.jsx)("a",{href:r,onClick:()=>this.props.trackClickUAT(A),target:"_blank",className:`${R}__link-ghost`,rel:"noopener noreferrer",children:i})};renderHeader(){const{cloudServerIsAttached:e,cloudMonitoringIsEnabled:r,feedbackUrl:o,siteId:i}=this.props;return e&&r&&!i?(0,t.jsx)(Ft,{toolbar:this.renderMonitoringLink(),addonMenu:(0,t.jsxs)(n.Menu,{children:[(0,t.jsx)(n.MenuItem,{icon:"feedback",onClick:()=>{this.props.trackClickUAT("OPEN_MONITORING_FEEDBACK_URL"),window.open(o,"_blank")},children:(0,t.jsx)(n.Translate,{content:"button.share-feedback"})}),(0,t.jsx)(n.MenuItem,{icon:"arrow-back",onClick:()=>{this.props.trackClickUAT("OPEN_MONITORING_SWITCH_TO_BUILT_IN"),this.handleMonitoringViewIntent()},children:(0,t.jsx)(n.Translate,{content:"button.cloud-monitoring-view-prev"})})]})}):(0,t.jsx)(Ft,{})}handleCloudTrialPeriodHasExpiredBannerClose=()=>{this.setState({showTrialPeriodHasExpiredBanner:!1}),this.props.hideTrialPeriodHasExpiredBanner()};renderTrialPeriodExpirationBanner(){const{license:e,licensePurchaseUrl:r,licenseInfoUrl:o}=this.props;return(0,t.jsx)(n.Panel,{title:(0,t.jsx)(n.Translate,{content:"text.cloud-trial-period-has-expired-banner-title"}),extra:(0,t.jsx)(n.Button,{icon:"cross-mark",ghost:!0,onClick:this.handleCloudTrialPeriodHasExpiredBannerClose}),className:`${R}__cloud-trial-period-has-expired-banner`,children:(0,t.jsxs)(n.Media,{image:(0,t.jsx)(n.Icon,{src:Vo,size:"128"}),className:`${R}__media`,children:[(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Grid,{children:(0,t.jsx)(n.GridCol,{lg:8,children:(0,t.jsx)(kt,{content:"text.cloud-trial-period-has-expired-banner",params:{max_number:e.monitorsAllowed,link_free:(0,t.jsx)(n.Link,{href:o,target:"_blank",children:(0,t.jsx)(n.Translate,{content:"text.cloud-trial-period-has-expired-banner-link-free"})}),link_pro:(0,t.jsx)(n.Link,{href:r,target:"_blank",children:(0,t.jsx)(n.Translate,{content:"text.cloud-trial-period-has-expired-banner-link-pro"})})}})})})}),(0,t.jsx)("br",{}),(0,t.jsxs)(n.MediaSection,{children:[(0,t.jsx)(n.Button,{intent:"primary",component:"a",href:r,onClick:()=>this.props.trackClickUAT("TRIAL_EXPIRED_BUY_PRO"),target:"_blank",children:(0,t.jsx)(n.Translate,{content:"button.cloud-license-buy-pro"})})," ",(0,t.jsx)(n.Button,{onClick:()=>{this.props.trackClickUAT("TRIAL_EXPIRED_KEEP_LITE"),this.handleCloudTrialPeriodHasExpiredBannerClose()},children:(0,t.jsx)(n.Translate,{content:"button.cloud-license-keep-free"})})," ",(0,t.jsx)(n.Button,{ghost:!0,onClick:()=>{this.props.trackClickUAT("TRIAL_EXPIRED_BACK_TO_BUILT_IN"),this.handleMonitoringViewIntent()},children:(0,t.jsx)(n.Translate,{content:"button.cloud-monitoring-view-prev"})})]}),(0,t.jsx)("br",{}),(0,t.jsx)("br",{})]})})}render(){const{appIsLoaded:e,installationErrorIsCritical:r,cloudServerIsAttached:o,cloudMonitoringIsEnabled:i,siteId:s,siteMonitoringIsOn:a}=this.props,{showTrialPeriodHasExpiredBanner:l,showMonitoringViewIntentDialog:c}=this.state;return e?r?(0,t.jsx)(Xr,{}):(0,t.jsxs)("div",{children:[(0,t.jsx)(Ht,{}),this.renderHeader(),o&&i||s?null:(0,t.jsx)(so,{onCloudServerConnect:()=>{this.props.trackClickUAT(L)},onCloudMonitoringActivate:()=>{this.props.trackClickUAT(M)},onBuiltInMonitoringActivate:this.handleMonitoringInstallationClick}),o&&i&&a||!s?null:(0,t.jsx)(Wo,{onCloudServerConnect:()=>{this.props.trackClickUAT(L)},onCloudMonitoringActivate:()=>{this.props.trackClickUAT(M)},onBuiltInMonitoringActivate:this.handleMonitoringInstallationClick}),l?this.renderTrialPeriodExpirationBanner():null,s?(0,t.jsx)(Fo,{onThanksButtonClick:e=>{const t=e?"SITE_MONITORING_IS_NOT_NEEDED_ENABLE":"SITE_MONITORING_IS_NOT_NEEDED_DISABLE";this.props.trackClickUAT(t)}}):null,e&&o&&i&&!s?(0,t.jsxs)(ao.A,{children:[(0,t.jsx)(lo.A,{path:Dr.cloud,children:(0,t.jsx)(So,{locked:l})}),(0,t.jsx)(lo.A,{path:Dr.cloudMonitors,children:(0,t.jsx)(So,{showMonitors:!0,locked:l})}),(0,t.jsx)(lo.A,{path:Dr.cloudMonitorsManagement,children:(0,t.jsx)(So,{showWebsites:!0,locked:l})}),(0,t.jsx)(lo.A,{path:Dr.cloudMonitorsManagement2,children:(0,t.jsx)(So,{showMonitors:!0,showWebsites:!0,locked:l})}),(0,t.jsx)(lo.A,{path:"*",children:(0,t.jsx)("div",{children:(0,t.jsx)(n.Translate,{content:"text.page-not-found"})})})]}):null,s?null:(0,t.jsx)(to,{isOpen:c,onClose:()=>this.handleMonitoringViewIntent(!1),onSubmit:this.handleMonitoringViewToggle})]}):(0,t.jsx)(n.ContentLoader,{})}}Yo.propTypes={cloudServerIsAttached:n.PropTypes.bool.isRequired,cloudMonitoringIsEnabled:n.PropTypes.bool.isRequired,feedbackUrl:n.PropTypes.string.isRequired,cloudMonitoringLinkUrl:n.PropTypes.string.isRequired,cloudMonitoringPoweredByUrl:n.PropTypes.string.isRequired,appIsLoaded:n.PropTypes.bool.isRequired,installationError:n.PropTypes.string.isRequired,installationErrorIsCritical:n.PropTypes.string.isRequired,installationFixed:n.PropTypes.bool.isRequired,trialPeriodHasExpired:n.PropTypes.bool.isRequired,agentVersionIsBeingUpdated:n.PropTypes.bool.isRequired,license:n.PropTypes.shape({paid:n.PropTypes.bool.isRequired,trial:n.PropTypes.bool.isRequired,expiresIn:n.PropTypes.number.isRequired,monitorsAllowed:n.PropTypes.number.isRequired,monitorsUsed:n.PropTypes.number.isRequired,serversAllowed:n.PropTypes.number.isRequired,serversUsed:n.PropTypes.number.isRequired}),licensePurchaseUrl:n.PropTypes.string.isRequired,licenseInfoUrl:n.PropTypes.string.isRequired,checkInstallationIfFirstOpen:n.PropTypes.func.isRequired,fixInstallation:n.PropTypes.func.isRequired,loadCloudStatisticsIfFirstOpen:n.PropTypes.func.isRequired,reloadCloudStatistics:n.PropTypes.func.isRequired,toggleCloudMonitoringView:n.PropTypes.func.isRequired,loadCloudAgentVersion:n.PropTypes.func.isRequired,hideTrialPeriodHasExpiredBanner:n.PropTypes.func.isRequired,checkCloudAgentIsReady:n.PropTypes.func.isRequired,trackClickUAT:n.PropTypes.func.isRequired,siteId:n.PropTypes.number,siteMonitoringIsOn:n.PropTypes.bool},Yo.defaultProps={license:null,siteId:null,siteMonitoringIsOn:null};const Xo=(0,co.A)((0,i.connect)((e=>{const{cloudServerIsAttached:t,cloudMonitoringIsEnabled:n,feedbackUrl:r,cloudMonitoringLinkUrl:o,cloudMonitoringPoweredByUrl:i,installationError:s,installationErrorIsCritical:a,installationFixStatus:l,loadingStatus:c,siteId:u,siteMonitoringIsOn:p}=e.app,{agentVersionLoadingStatus:d,trialPeriodHasExpired:h,license:f,licensePurchaseUrl:y,licenseInfoUrl:m}=e.statistics;return{cloudServerIsAttached:t,cloudMonitoringIsEnabled:n,feedbackUrl:r,cloudMonitoringLinkUrl:o,cloudMonitoringPoweredByUrl:i,appIsLoaded:c===x,installationError:s,installationErrorIsCritical:a,installationFixed:l===x,trialPeriodHasExpired:h,agentVersionIsBeingUpdated:d===P,license:f,licensePurchaseUrl:y,licenseInfoUrl:m,siteId:u,siteMonitoringIsOn:p}}),(e=>({checkInstallationIfFirstOpen:()=>e(((e,t)=>{t().app.loadingStatus===w&&e((e=>(e({type:d}),Ur.get("/installation/check").then((t=>{if(t.data){const{success:n,error:r,isCriticalError:o,isGrafanaError:i}=t.data;let s=null;n||(s=r),e(qr(s,!!o,!!i))}else e($r("text.installation-check-failed"))})).catch((t=>{e(Fr(t))})))))})),fixInstallation:()=>e(Wr()),loadCloudStatisticsIfFirstOpen:()=>e(((e,t)=>{t().statistics.loadingStatus===w&&e(uo())})),reloadCloudStatistics:()=>e(uo()),toggleCloudMonitoringView:t=>e(yo(t)),loadCloudAgentVersion:()=>e((e=>(e({type:q}),Ur.get(Hr).then((t=>{t.data?e(ho(t.data)):e($r("text.cloud-agent-version-loading-failed"))})).catch((t=>{e(Fr(t))}))))),hideTrialPeriodHasExpiredBanner:()=>e((e=>Ur.post("/cloud-statistics/hide-trial-period-has-expired-banner").catch((t=>{e(Fr(t))})))),checkCloudAgentIsReady:()=>e(fo()),trackClickUAT:t=>e(zr(t))})))(Yo)),Ko=e=>{const r=(0,ue.zR)({basename:m}),o=((e,t)=>(0,a.y$)((0,a.HY)({router:(0,s.S6)(t),app:G(e),statistics:ee(),websites:ie(),monitors:ce()}),(0,a.Zz)((0,a.Tw)(u,(0,s.wf)(t)),window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e)))(e,r);(0,n.render)((0,t.jsx)(i.Provider,{store:o,children:(0,t.jsx)(n.LocaleProvider,{messages:e.locale,children:(0,t.jsx)(s.Ny,{history:r,children:(0,t.jsx)(Xo,{})})})}),document.getElementById("ui-container"))}})(),o})()));