Submit
Path:
~
/
/
opt
/
psa
/
admin
/
htdocs
/
modules
/
log-browser
/
build
/
File Content:
main.js
/*! For license information please see main.js.LICENSE.txt */ define(["plesk-ui-library"],e=>(()=>{var t={76:e=>{"use strict";e.exports=Function.prototype.call},414:e=>{"use strict";e.exports=Math.round},453:(e,t,n)=>{"use strict";var r,o=n(9612),a=n(9383),i=n(1237),s=n(9290),c=n(9538),l=n(8068),u=n(9675),d=n(5345),p=n(1514),f=n(8968),h=n(6188),m=n(8002),y=n(5880),g=n(414),v=n(3093),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},x=n(5795),k=n(655),S=function(){throw new u},_=x?function(){try{return S}catch(e){try{return x(arguments,"callee").get}catch(e){return S}}}():S,D=n(4039)(),j=n(3628),T=n(1064),O=n(8648),C=n(1002),E=n(76),P={},R="undefined"!=typeof Uint8Array&&j?j(Uint8Array):r,M={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":D&&j?j([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":i,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":P,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D&&j?j(j([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&D&&j?j((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&D&&j?j((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D&&j?j(""[Symbol.iterator]()):r,"%Symbol%":D?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":_,"%TypedArray%":R,"%TypeError%":u,"%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%":d,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":E,"%Function.prototype.apply%":C,"%Object.defineProperty%":k,"%Object.getPrototypeOf%":T,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":g,"%Math.sign%":v,"%Reflect.getPrototypeOf%":O};if(j)try{null.error}catch(e){var A=j(j(e));M["%Error.prototype%"]=A}var L=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&j&&(n=j(o.prototype))}return M[t]=n,n},N={__proto__:null,"%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"]},F=n(6743),I=n(9957),q=F.call(E,Array.prototype.concat),B=F.call(C,Array.prototype.splice),U=F.call(E,String.prototype.replace),Y=F.call(E,String.prototype.slice),W=F.call(E,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Q=/\\(\\)?/g,z=function(e,t){var n,r=e;if(I(N,r)&&(r="%"+(n=N[r])[0]+"%"),I(M,r)){var o=M[r];if(o===P&&(o=L(r)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Y(e,0,1),n=Y(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return U(e,H,function(e,t,n,o){r[r.length]=n?U(o,Q,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=z("%"+r+"%",t),a=o.name,i=o.value,s=!1,c=o.alias;c&&(r=c[0],B(n,q([0,1],c)));for(var d=1,p=!0;d<n.length;d+=1){var f=n[d],h=Y(f,0,1),m=Y(f,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==f&&p||(s=!0),I(M,a="%"+(r+="."+f)+"%"))i=M[a];else if(null!=i){if(!(f in i)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&d+1>=n.length){var y=x(i,f);i=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:i[f]}else p=I(i,f),i=i[f];p&&!s&&(M[a]=i)}}return i}},507:(e,t,n)=>{"use strict";var r=n(453),o=n(6556),a=n(8859),i=n(9675),s=r("%Map%",!0),c=o("Map.prototype.get",!0),l=o("Map.prototype.set",!0),u=o("Map.prototype.has",!0),d=o("Map.prototype.delete",!0),p=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+a(e))},delete:function(t){if(e){var n=d(e,t);return 0===p(e)&&(e=void 0),n}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new s),l(e,t,n)}};return t}},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}},655:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},920:(e,t,n)=>{"use strict";var r=n(9675),o=n(8859),a=n(4803),i=n(507),s=n(2271)||i||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},946:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(1601),o=n.n(r),a=n(6314),i=n.n(a),s=n(2063),c=i()(o());c.i(s.A),c.push([e.id,'.ext-log-browser__filter-date{padding:0}.ext-log-browser__filter-date input{cursor:default}.ext-log-browser__filter-input-filled input{padding-right:57px !important}.ext-log-browser__filter-input-filled .pul-input__suffix{width:56px}.ext-log-browser__filter-date_btn-group{width:100%}.ext-log-browser__filter-message input{width:200px}.pul-toolbar__group--grow .ext-log-browser__filter-message input{width:100%}.ext-log-browser__logs-list{margin-bottom:0}.ext-log-browser__logs-list table td{font:14px/1.429 "Consolas","Liberation Mono","Menlo","Courier",monospace}.ext-log-browser__logs-list table td.ext-log-browser__logs-list_column-date{background-color:#fdfdfd}.ext-log-browser__logs-list table td.ext-log-browser__logs-list_column-message{word-break:break-all}.react-datepicker-popper{z-index:1040}',""]);const l=c},1002:e=>{"use strict";e.exports=Function.prototype.apply},1064:(e,t,n)=>{"use strict";var r=n(9612);e.exports=r.getPrototypeOf||null},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))}}},1237:e=>{"use strict";e.exports=EvalError},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(var r 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 o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},1514:e=>{"use strict";e.exports=Math.abs},1601:e=>{"use strict";e.exports=function(e){return e[1]}},2063:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),o=n.n(r),a=n(6314),i=n.n(a)()(o());i.push([e.id,'@charset "UTF-8";\n.react-datepicker__navigation-icon::before, .react-datepicker__year-read-view--down-arrow,\n.react-datepicker__month-read-view--down-arrow,\n.react-datepicker__month-year-read-view--down-arrow {\n border-color: #ccc;\n border-style: solid;\n border-width: 3px 3px 0 0;\n content: "";\n display: block;\n height: 9px;\n position: absolute;\n top: 6px;\n width: 9px;\n}\n.react-datepicker-wrapper {\n display: inline-block;\n padding: 0;\n border: 0;\n}\n\n.react-datepicker {\n font-family: "Helvetica Neue", helvetica, arial, sans-serif;\n font-size: 0.8rem;\n background-color: #fff;\n color: #000;\n border: 1px solid #aeaeae;\n border-radius: 0.3rem;\n display: inline-block;\n position: relative;\n line-height: initial;\n}\n\n.react-datepicker--time-only .react-datepicker__time-container {\n border-left: 0;\n}\n.react-datepicker--time-only .react-datepicker__time,\n.react-datepicker--time-only .react-datepicker__time-box {\n border-bottom-left-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n}\n\n.react-datepicker-popper {\n z-index: 1;\n line-height: 0;\n}\n.react-datepicker-popper .react-datepicker__triangle {\n stroke: #aeaeae;\n}\n.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {\n fill: #f0f0f0;\n color: #f0f0f0;\n}\n.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle {\n fill: #fff;\n color: #fff;\n}\n\n.react-datepicker__header {\n text-align: center;\n background-color: #f0f0f0;\n border-bottom: 1px solid #aeaeae;\n border-top-left-radius: 0.3rem;\n padding: 8px 0;\n position: relative;\n}\n.react-datepicker__header--time {\n padding-bottom: 8px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.react-datepicker__header--time:not(.react-datepicker__header--time--only) {\n border-top-left-radius: 0;\n}\n.react-datepicker__header:not(.react-datepicker__header--has-time-select) {\n border-top-right-radius: 0.3rem;\n}\n\n.react-datepicker__year-dropdown-container--select,\n.react-datepicker__month-dropdown-container--select,\n.react-datepicker__month-year-dropdown-container--select,\n.react-datepicker__year-dropdown-container--scroll,\n.react-datepicker__month-dropdown-container--scroll,\n.react-datepicker__month-year-dropdown-container--scroll {\n display: inline-block;\n margin: 0 15px;\n}\n\n.react-datepicker__current-month,\n.react-datepicker-time__header,\n.react-datepicker-year-header {\n margin-top: 0;\n color: #000;\n font-weight: bold;\n font-size: 0.944rem;\n}\n\nh2.react-datepicker__current-month {\n padding: 0;\n margin: 0;\n}\n\n.react-datepicker-time__header {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n\n.react-datepicker__navigation {\n align-items: center;\n background: none;\n display: flex;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n position: absolute;\n top: 2px;\n padding: 0;\n border: none;\n z-index: 1;\n height: 32px;\n width: 32px;\n text-indent: -999em;\n overflow: hidden;\n}\n.react-datepicker__navigation--previous {\n left: 2px;\n}\n.react-datepicker__navigation--next {\n right: 2px;\n}\n.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button) {\n right: 85px;\n}\n.react-datepicker__navigation--years {\n position: relative;\n top: 0;\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.react-datepicker__navigation--years-previous {\n top: 4px;\n}\n.react-datepicker__navigation--years-upcoming {\n top: -4px;\n}\n.react-datepicker__navigation:hover *::before {\n border-color: rgb(165.75, 165.75, 165.75);\n}\n\n.react-datepicker__navigation-icon {\n position: relative;\n top: -1px;\n font-size: 20px;\n width: 0;\n}\n.react-datepicker__navigation-icon--next {\n left: -2px;\n}\n.react-datepicker__navigation-icon--next::before {\n transform: rotate(45deg);\n left: -7px;\n}\n.react-datepicker__navigation-icon--previous {\n right: -2px;\n}\n.react-datepicker__navigation-icon--previous::before {\n transform: rotate(225deg);\n right: -7px;\n}\n\n.react-datepicker__month-container {\n float: left;\n}\n\n.react-datepicker__year {\n margin: 0.4rem;\n text-align: center;\n}\n.react-datepicker__year-wrapper {\n display: flex;\n flex-wrap: wrap;\n max-width: 180px;\n}\n.react-datepicker__year .react-datepicker__year-text {\n display: inline-block;\n width: 4rem;\n margin: 2px;\n}\n\n.react-datepicker__month {\n margin: 0.4rem;\n text-align: center;\n}\n.react-datepicker__month .react-datepicker__month-text,\n.react-datepicker__month .react-datepicker__quarter-text {\n display: inline-block;\n width: 4rem;\n margin: 2px;\n}\n\n.react-datepicker__input-time-container {\n clear: both;\n width: 100%;\n float: left;\n margin: 5px 0 10px 15px;\n text-align: left;\n}\n.react-datepicker__input-time-container .react-datepicker-time__caption {\n display: inline-block;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container {\n display: inline-block;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input {\n display: inline-block;\n margin-left: 10px;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input {\n width: auto;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time] {\n -moz-appearance: textfield;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter {\n margin-left: 5px;\n display: inline-block;\n}\n\n.react-datepicker__time-container {\n float: right;\n border-left: 1px solid #aeaeae;\n width: 85px;\n}\n.react-datepicker__time-container--with-today-button {\n display: inline;\n border: 1px solid #aeaeae;\n border-radius: 0.3rem;\n position: absolute;\n right: -87px;\n top: 0;\n}\n.react-datepicker__time-container .react-datepicker__time {\n position: relative;\n background: white;\n border-bottom-right-radius: 0.3rem;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {\n width: 85px;\n overflow-x: hidden;\n margin: 0 auto;\n text-align: center;\n border-bottom-right-radius: 0.3rem;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list {\n list-style: none;\n margin: 0;\n height: calc(195px + 1.7rem / 2);\n overflow-y: scroll;\n padding-right: 0;\n padding-left: 0;\n width: 100%;\n box-sizing: content-box;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item {\n height: 30px;\n padding: 5px 10px;\n white-space: nowrap;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover {\n cursor: pointer;\n background-color: #f0f0f0;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected {\n background-color: #216ba5;\n color: white;\n font-weight: bold;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover {\n background-color: #216ba5;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled {\n color: #ccc;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover {\n cursor: default;\n background-color: transparent;\n}\n\n.react-datepicker__week-number {\n color: #ccc;\n display: inline-block;\n width: 1.7rem;\n line-height: 1.7rem;\n text-align: center;\n margin: 0.166rem;\n}\n.react-datepicker__week-number.react-datepicker__week-number--clickable {\n cursor: pointer;\n}\n.react-datepicker__week-number.react-datepicker__week-number--clickable:not(.react-datepicker__week-number--selected):hover {\n border-radius: 0.3rem;\n background-color: #f0f0f0;\n}\n.react-datepicker__week-number--selected {\n border-radius: 0.3rem;\n background-color: #216ba5;\n color: #fff;\n}\n.react-datepicker__week-number--selected:hover {\n background-color: rgb(28.75, 93.2196969697, 143.75);\n}\n\n.react-datepicker__day-names {\n white-space: nowrap;\n margin-bottom: -8px;\n}\n\n.react-datepicker__week {\n white-space: nowrap;\n}\n\n.react-datepicker__day-name,\n.react-datepicker__day,\n.react-datepicker__time-name {\n color: #000;\n display: inline-block;\n width: 1.7rem;\n line-height: 1.7rem;\n text-align: center;\n margin: 0.166rem;\n}\n\n.react-datepicker__day,\n.react-datepicker__month-text,\n.react-datepicker__quarter-text,\n.react-datepicker__year-text {\n cursor: pointer;\n}\n.react-datepicker__day:not([aria-disabled=true]):hover,\n.react-datepicker__month-text:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text:not([aria-disabled=true]):hover,\n.react-datepicker__year-text:not([aria-disabled=true]):hover {\n border-radius: 0.3rem;\n background-color: #f0f0f0;\n}\n.react-datepicker__day--today,\n.react-datepicker__month-text--today,\n.react-datepicker__quarter-text--today,\n.react-datepicker__year-text--today {\n font-weight: bold;\n}\n.react-datepicker__day--highlighted,\n.react-datepicker__month-text--highlighted,\n.react-datepicker__quarter-text--highlighted,\n.react-datepicker__year-text--highlighted {\n border-radius: 0.3rem;\n background-color: #3dcc4a;\n color: #fff;\n}\n.react-datepicker__day--highlighted:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--highlighted:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--highlighted:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--highlighted:not([aria-disabled=true]):hover {\n background-color: rgb(49.8551020408, 189.6448979592, 62.5632653061);\n}\n.react-datepicker__day--highlighted-custom-1,\n.react-datepicker__month-text--highlighted-custom-1,\n.react-datepicker__quarter-text--highlighted-custom-1,\n.react-datepicker__year-text--highlighted-custom-1 {\n color: magenta;\n}\n.react-datepicker__day--highlighted-custom-2,\n.react-datepicker__month-text--highlighted-custom-2,\n.react-datepicker__quarter-text--highlighted-custom-2,\n.react-datepicker__year-text--highlighted-custom-2 {\n color: green;\n}\n.react-datepicker__day--holidays,\n.react-datepicker__month-text--holidays,\n.react-datepicker__quarter-text--holidays,\n.react-datepicker__year-text--holidays {\n position: relative;\n border-radius: 0.3rem;\n background-color: #ff6803;\n color: #fff;\n}\n.react-datepicker__day--holidays .overlay,\n.react-datepicker__month-text--holidays .overlay,\n.react-datepicker__quarter-text--holidays .overlay,\n.react-datepicker__year-text--holidays .overlay {\n position: absolute;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n background-color: #333;\n color: #fff;\n padding: 4px;\n border-radius: 4px;\n white-space: nowrap;\n visibility: hidden;\n opacity: 0;\n transition: visibility 0s, opacity 0.3s ease-in-out;\n}\n.react-datepicker__day--holidays:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--holidays:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--holidays:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--holidays:not([aria-disabled=true]):hover {\n background-color: rgb(207, 82.9642857143, 0);\n}\n.react-datepicker__day--holidays:hover .overlay,\n.react-datepicker__month-text--holidays:hover .overlay,\n.react-datepicker__quarter-text--holidays:hover .overlay,\n.react-datepicker__year-text--holidays:hover .overlay {\n visibility: visible;\n opacity: 1;\n}\n.react-datepicker__day--selected, .react-datepicker__day--in-selecting-range, .react-datepicker__day--in-range,\n.react-datepicker__month-text--selected,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--selected,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--selected,\n.react-datepicker__year-text--in-selecting-range,\n.react-datepicker__year-text--in-range {\n border-radius: 0.3rem;\n background-color: #216ba5;\n color: #fff;\n}\n.react-datepicker__day--selected:not([aria-disabled=true]):hover, .react-datepicker__day--in-selecting-range:not([aria-disabled=true]):hover, .react-datepicker__day--in-range:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--selected:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--in-selecting-range:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--in-range:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--selected:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--in-selecting-range:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--in-range:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--selected:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--in-selecting-range:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--in-range:not([aria-disabled=true]):hover {\n background-color: rgb(28.75, 93.2196969697, 143.75);\n}\n.react-datepicker__day--keyboard-selected,\n.react-datepicker__month-text--keyboard-selected,\n.react-datepicker__quarter-text--keyboard-selected,\n.react-datepicker__year-text--keyboard-selected {\n border-radius: 0.3rem;\n background-color: rgb(186.25, 217.0833333333, 241.25);\n color: rgb(0, 0, 0);\n}\n.react-datepicker__day--keyboard-selected:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--keyboard-selected:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--keyboard-selected:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--keyboard-selected:not([aria-disabled=true]):hover {\n background-color: rgb(28.75, 93.2196969697, 143.75);\n}\n.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range),\n.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range),\n.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range),\n.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range) {\n background-color: rgba(33, 107, 165, 0.5);\n}\n.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range), .react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range) {\n background-color: #f0f0f0;\n color: #000;\n}\n.react-datepicker__day--disabled,\n.react-datepicker__month-text--disabled,\n.react-datepicker__quarter-text--disabled,\n.react-datepicker__year-text--disabled {\n cursor: default;\n color: #ccc;\n}\n.react-datepicker__day--disabled .overlay,\n.react-datepicker__month-text--disabled .overlay,\n.react-datepicker__quarter-text--disabled .overlay,\n.react-datepicker__year-text--disabled .overlay {\n position: absolute;\n bottom: 70%;\n left: 50%;\n transform: translateX(-50%);\n background-color: #333;\n color: #fff;\n padding: 4px;\n border-radius: 4px;\n white-space: nowrap;\n visibility: hidden;\n opacity: 0;\n transition: visibility 0s, opacity 0.3s ease-in-out;\n}\n\n.react-datepicker__input-container {\n position: relative;\n display: inline-block;\n width: 100%;\n}\n.react-datepicker__input-container .react-datepicker__calendar-icon {\n position: absolute;\n padding: 0.5rem;\n box-sizing: content-box;\n}\n\n.react-datepicker__view-calendar-icon input {\n padding: 6px 10px 5px 25px;\n}\n\n.react-datepicker__year-read-view,\n.react-datepicker__month-read-view,\n.react-datepicker__month-year-read-view {\n border: 1px solid transparent;\n border-radius: 0.3rem;\n position: relative;\n}\n.react-datepicker__year-read-view:hover,\n.react-datepicker__month-read-view:hover,\n.react-datepicker__month-year-read-view:hover {\n cursor: pointer;\n}\n.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,\n.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,\n.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,\n.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,\n.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,\n.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow {\n border-top-color: rgb(178.5, 178.5, 178.5);\n}\n.react-datepicker__year-read-view--down-arrow,\n.react-datepicker__month-read-view--down-arrow,\n.react-datepicker__month-year-read-view--down-arrow {\n transform: rotate(135deg);\n right: -16px;\n top: 0;\n}\n\n.react-datepicker__year-dropdown,\n.react-datepicker__month-dropdown,\n.react-datepicker__month-year-dropdown {\n background-color: #f0f0f0;\n position: absolute;\n width: 50%;\n left: 25%;\n top: 30px;\n z-index: 1;\n text-align: center;\n border-radius: 0.3rem;\n border: 1px solid #aeaeae;\n}\n.react-datepicker__year-dropdown:hover,\n.react-datepicker__month-dropdown:hover,\n.react-datepicker__month-year-dropdown:hover {\n cursor: pointer;\n}\n.react-datepicker__year-dropdown--scrollable,\n.react-datepicker__month-dropdown--scrollable,\n.react-datepicker__month-year-dropdown--scrollable {\n height: 150px;\n overflow-y: scroll;\n}\n\n.react-datepicker__year-option,\n.react-datepicker__month-option,\n.react-datepicker__month-year-option {\n line-height: 20px;\n width: 100%;\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.react-datepicker__year-option:first-of-type,\n.react-datepicker__month-option:first-of-type,\n.react-datepicker__month-year-option:first-of-type {\n border-top-left-radius: 0.3rem;\n border-top-right-radius: 0.3rem;\n}\n.react-datepicker__year-option:last-of-type,\n.react-datepicker__month-option:last-of-type,\n.react-datepicker__month-year-option:last-of-type {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n border-bottom-left-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n}\n.react-datepicker__year-option:hover,\n.react-datepicker__month-option:hover,\n.react-datepicker__month-year-option:hover {\n background-color: #ccc;\n}\n.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,\n.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,\n.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming {\n border-bottom-color: rgb(178.5, 178.5, 178.5);\n}\n.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,\n.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,\n.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous {\n border-top-color: rgb(178.5, 178.5, 178.5);\n}\n.react-datepicker__year-option--selected,\n.react-datepicker__month-option--selected,\n.react-datepicker__month-year-option--selected {\n position: absolute;\n left: 15px;\n}\n\n.react-datepicker__close-icon {\n cursor: pointer;\n background-color: transparent;\n border: 0;\n outline: 0;\n padding: 0 6px 0 0;\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n display: table-cell;\n vertical-align: middle;\n}\n.react-datepicker__close-icon::after {\n cursor: pointer;\n background-color: #216ba5;\n color: #fff;\n border-radius: 50%;\n height: 16px;\n width: 16px;\n padding: 2px;\n font-size: 12px;\n line-height: 1;\n text-align: center;\n display: table-cell;\n vertical-align: middle;\n content: "×";\n}\n.react-datepicker__close-icon--disabled {\n cursor: default;\n}\n.react-datepicker__close-icon--disabled::after {\n cursor: default;\n background-color: #ccc;\n}\n\n.react-datepicker__today-button {\n background: #f0f0f0;\n border-top: 1px solid #aeaeae;\n cursor: pointer;\n text-align: center;\n font-weight: bold;\n padding: 5px 0;\n clear: left;\n}\n\n.react-datepicker__portal {\n position: fixed;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.8);\n left: 0;\n top: 0;\n justify-content: center;\n align-items: center;\n display: flex;\n z-index: 2147483647;\n}\n.react-datepicker__portal .react-datepicker__day-name,\n.react-datepicker__portal .react-datepicker__day,\n.react-datepicker__portal .react-datepicker__time-name {\n width: 3rem;\n line-height: 3rem;\n}\n@media (max-width: 400px), (max-height: 550px) {\n .react-datepicker__portal .react-datepicker__day-name,\n .react-datepicker__portal .react-datepicker__day,\n .react-datepicker__portal .react-datepicker__time-name {\n width: 2rem;\n line-height: 2rem;\n }\n}\n.react-datepicker__portal .react-datepicker__current-month,\n.react-datepicker__portal .react-datepicker-time__header {\n font-size: 1.44rem;\n}\n\n.react-datepicker__children-container {\n width: 13.8rem;\n margin: 0.4rem;\n padding-right: 0.2rem;\n padding-left: 0.2rem;\n height: auto;\n}\n\n.react-datepicker__aria-live {\n position: absolute;\n clip-path: circle(0);\n border: 0;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n width: 1px;\n white-space: nowrap;\n}\n\n.react-datepicker__calendar-icon {\n width: 1em;\n height: 1em;\n vertical-align: -0.125em;\n}\n',""]);const s=i},2271:(e,t,n)=>{"use strict";var r=n(453),o=n(6556),a=n(8859),i=n(507),s=n(9675),c=r("%WeakMap%",!0),l=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(n){if(c&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(i&&t)return t.delete(n);return!1},get:function(n){return c&&n&&("object"==typeof n||"function"==typeof n)&&e?l(e,n):t&&t.get(n)},has:function(n){return c&&n&&("object"==typeof n||"function"==typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){c&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new c),u(e,n,r)):i&&(t||(t=i()),t.set(n,r))}};return n}:i},2280:t=>{"use strict";t.exports=e},2634:()=>{},2642:(e,t,n)=>{"use strict";var r=n(7720),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},c=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t,n,a){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,l=n.depth>0&&/(\[[^[\]]*])/.exec(i),u=l?i.slice(0,l.index):i,d=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;d.push(u)}for(var p=0;n.depth>0&&null!==(l=s.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(l[1])}if(l){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");d.push("["+i.slice(l.index)+"]")}return function(e,t,n,o){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var i=e.slice(0,-1).join("");a=Array.isArray(t)&&t[i]?t[i].length:0}for(var s=o?t:c(t,n,a),l=e.length-1;l>=0;--l){var u,d=e[l];if("[]"===d&&n.parseArrays)u=n.allowEmptyArrays&&(""===s||n.strictNullHandling&&null===s)?[]:r.combine([],s);else{u=n.plainObjects?{__proto__:null}:{};var p="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,f=n.decodeDotInKeys?p.replace(/%2E/g,"."):p,h=parseInt(f,10);n.parseArrays||""!==f?!isNaN(h)&&d!==f&&String(h)===f&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(u=[])[h]=s:"__proto__"!==f&&(u[f]=s):u={0:s}}s=u}return s}(d,t,n,a)}};e.exports=function(e,t){var n=function(e){if(!e)return i;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");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");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?i.charset:e.charset,n=void 0===e.duplicates?i.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||i.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:i.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:i.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var u="string"==typeof e?function(e,t){var n={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,t.throwOnLimitExceeded?u+1:u);if(t.throwOnLimitExceeded&&d.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var p,f=-1,h=t.charset;if(t.charsetSentinel)for(p=0;p<d.length;++p)0===d[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[p]?h="utf-8":"utf8=%26%2310003%3B"===d[p]&&(h="iso-8859-1"),f=p,p=d.length);for(p=0;p<d.length;++p)if(p!==f){var m,y,g=d[p],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(m=t.decoder(g,i.decoder,h,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,b),i.decoder,h,"key"),y=r.maybeMap(c(g.slice(b+1),t,a(n[m])?n[m].length:0),function(e){return t.decoder(e,i.decoder,h,"value")})),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=s(String(y))),g.indexOf("[]=")>-1&&(y=a(y)?[y]:y);var w=o.call(n,m);w&&"combine"===t.duplicates?n[m]=r.combine(n[m],y):w&&"last"!==t.duplicates||(n[m]=y)}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},p=Object.keys(u),f=0;f<p.length;++f){var h=p[f],m=l(h,u[h],n,"string"==typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},3093:(e,t,n)=>{"use strict";var r=n(4459);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},3126:(e,t,n)=>{"use strict";var r=n(6743),o=n(9675),a=n(76),i=n(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return i(r,a,e)}},3144:(e,t,n)=>{"use strict";var r=n(6743),o=n(1002),a=n(76),i=n(7119);e.exports=i||r.call(a,o)},3628:(e,t,n)=>{"use strict";var r=n(8648),o=n(1064),a=n(7176);e.exports=r?function(e){return r(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:a?function(e){return a(e)}:null},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()}},4459:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},4600:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),o=n.n(r),a=n(6314),i=n.n(a)()(o());i.push([e.id,".ext-log-browser__service-info pre,.ext-log-browser__service-error pre{white-space:pre-wrap;word-wrap:break-word;margin:0}",""]);const s=i},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}},4803:(e,t,n)=>{"use strict";var r=n(8859),o=n(9675),a=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return a(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=a(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!a(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=a(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},5056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},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 a={},i=[],s=0;s<e.length;s++){var c=e[s],l=r.base?c[0]+r.base:c[0],u=a[l]||0,d="".concat(l," ").concat(u);a[l]=u+1;var p=n(d),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=o(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}i.push(d)}return i}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 a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var c=r(e,o),l=0;l<a.length;l++){var u=n(a[l]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=c}}},5345:e=>{"use strict";e.exports=URIError},5373:(e,t,n)=>{"use strict";var r=n(8636),o=n(2642),a=n(4765);e.exports={formats:a,parse:o,stringify:r}},5556:(e,t,n)=>{e.exports=n(2694)()},5795:(e,t,n)=>{"use strict";var r=n(6549);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},5880:e=>{"use strict";e.exports=Math.pow},6188:e=>{"use strict";e.exports=Math.max},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,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(i[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&i[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),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}},6549:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},6556:(e,t,n)=>{"use strict";var r=n(453),o=n(3126),a=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?o([n]):n}},6743:(e,t,n)=>{"use strict";var r=n(9353);e.exports=Function.prototype.bind||r},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},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=i(e,a(n)))}return e}function a(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=i(t,n));return t}function i(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)}()},7119:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176:(e,t,n)=>{"use strict";var r,o=n(3126),a=n(5795);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var i=!!r&&a&&a(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=i&&"function"==typeof i.get?o([i.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},7569:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),o=n.n(r),a=n(6314),i=n.n(a)()(o());i.push([e.id,".mail-queue-copyable-alert{white-space:pre-line;margin-bottom:.8rem}.mail-queue-info-popover{max-height:95vh;overflow-y:auto;padding-right:1rem}.mail-queue-delivery-cycle-icon{vertical-align:-1.3px}.mail-queue-status-details{line-height:1.1}.mail-queue-status-filter{min-width:248px}",""]);const s=i},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)}},7720:(e,t,n)=>{"use strict";var r=n(4765),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},c=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.prop],s=Object.keys(i),c=0;c<s.length;++c){var l=s[c],u=i[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:i,prop:l}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(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,a){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var l="",u=0;u<s.length;u+=c){for(var d=s.length>=c?s.slice(u,u+c):s,p=[],f=0;f<d.length;++f){var h=d.charCodeAt(f);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||a===r.RFC1738&&(40===h||41===h)?p[p.length]=d.charAt(f):h<128?p[p.length]=i[h]:h<2048?p[p.length]=i[192|h>>6]+i[128|63&h]:h<55296||h>=57344?p[p.length]=i[224|h>>12]+i[128|h>>6&63]+i[128|63&h]:(f+=1,h=65536+((1023&h)<<10|1023&d.charCodeAt(f)),p[p.length]=i[240|h>>18]+i[128|h>>12&63]+i[128|h>>6&63]+i[128|63&h])}l+=p.join("")}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(a(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&&"function"!=typeof n){if(a(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 i=t;return a(t)&&!a(n)&&(i=s(t,r)),a(t)&&a(n)?(n.forEach(function(n,a){if(o.call(t,a)){var i=t[a];i&&"object"==typeof i&&n&&"object"==typeof n?t[a]=e(i,n,r):t.push(n)}else t[a]=n}),t):Object.keys(n).reduce(function(t,a){var i=n[a];return o.call(t,a)?t[a]=e(t[a],i,r):t[a]=i,t},i)}}},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 a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},8002:e=>{"use strict";e.exports=Math.min},8068:e=>{"use strict";e.exports=SyntaxError},8636:(e,t,n)=>{"use strict";var r=n(920),o=n(7720),a=n(4765),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},d=Date.prototype.toISOString,p=a.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,a,i,s,l,d,p,m,y,g,v,b,w,x,k,S,_){for(var D,j=t,T=_,O=0,C=!1;void 0!==(T=T.get(h))&&!C;){var E=T.get(t);if(O+=1,void 0!==E){if(E===O)throw new RangeError("Cyclic object value");C=!0}void 0===T.get(h)&&(O=0)}if("function"==typeof y?j=y(n,j):j instanceof Date?j=b(j):"comma"===a&&c(j)&&(j=o.maybeMap(j,function(e){return e instanceof Date?b(e):e})),null===j){if(l)return m&&!k?m(n,f.encoder,S,"key",w):n;j=""}if("string"==typeof(D=j)||"number"==typeof D||"boolean"==typeof D||"symbol"==typeof D||"bigint"==typeof D||o.isBuffer(j))return m?[x(k?n:m(n,f.encoder,S,"key",w))+"="+x(m(j,f.encoder,S,"value",w))]:[x(n)+"="+x(String(j))];var P,R=[];if(void 0===j)return R;if("comma"===a&&c(j))k&&m&&(j=o.maybeMap(j,m)),P=[{value:j.length>0?j.join(",")||null:void 0}];else if(c(y))P=y;else{var M=Object.keys(j);P=g?M.sort(g):M}var A=p?String(n).replace(/\./g,"%2E"):String(n),L=i&&c(j)&&1===j.length?A+"[]":A;if(s&&c(j)&&0===j.length)return L+"[]";for(var N=0;N<P.length;++N){var F=P[N],I="object"==typeof F&&F&&void 0!==F.value?F.value:j[F];if(!d||null!==I){var q=v&&p?String(F).replace(/\./g,"%2E"):String(F),B=c(j)?"function"==typeof a?a(L,q):L:L+(v?"."+q:"["+q+"]");_.set(t,O);var U=r();U.set(h,_),u(R,e(I,B,a,i,s,l,d,p,"comma"===a&&k&&c(j)?null:m,y,g,v,b,w,x,k,S,U))}}return R};e.exports=function(e,t){var n,o=e,l=function(e){if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");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=a.default;if(void 0!==e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=a.formatters[n],l=f.filter;if(("function"==typeof e.filter||c(e.filter))&&(l=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:l,format:n,formatter:o,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 l.filter?o=(0,l.filter)("",o):c(l.filter)&&(n=l.filter);var d=[];if("object"!=typeof o||null===o)return"";var p=s[l.arrayFormat],h="comma"===p&&l.commaRoundTrip;n||(n=Object.keys(o)),l.sort&&n.sort(l.sort);for(var y=r(),g=0;g<n.length;++g){var v=n[g],b=o[v];l.skipNulls&&null===b||u(d,m(b,v,p,h,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,y))}var w=d.join(l.delimiter),x=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),w.length>0?x+w:""}},8648:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8859:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&o&&"function"==typeof o.get?o.get:null,i=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,u=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,k=RegExp.prototype.test,S=Array.prototype.concat,_=Array.prototype.join,D=Array.prototype.slice,j=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,E="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function A(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||k.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-j(-e):j(e);if(r!==e){var o=String(r),a=v.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var L=n(2634),N=L.custom,F=Q(N)?N:null,I={__proto__:null,double:'"',single:"'"},q={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(e,t,n){var r=n.quoteStyle||t,o=I[r];return o+e+o}function U(e){return b.call(String(e),/"/g,""")}function Y(e){return!P||!("object"==typeof e&&(P in e||void 0!==e[P]))}function W(e){return"[object Array]"===$(e)&&Y(e)}function H(e){return"[object RegExp]"===$(e)&&Y(e)}function Q(e){if(E)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,s){var c=r||{};if(V(c,"quoteStyle")&&!V(I,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!V(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.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 G(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var k=String(t);return w?A(t,k):k}if("bigint"==typeof t){var j=String(t)+"n";return w?A(t,j):j}var O=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=O&&O>0&&"object"==typeof t)return W(t)?"[Array]":"[Object]";var N,q=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=_.call(Array(e.indent+1)," ")}return{base:n,prev:_.call(Array(t+1),n)}}(c,o);if(void 0===s)s=[];else if(K(s,t)>=0)return"[Circular]";function z(t,n,r){if(n&&(s=D.call(s)).push(n),r){var a={depth:c.depth};return V(c,"quoteStyle")&&(a.quoteStyle=c.quoteStyle),e(t,a,o+1,s)}return e(t,c,o+1,s)}if("function"==typeof t&&!H(t)){var J=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),re=ne(t,z);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(re.length>0?" { "+_.call(re,", ")+" }":"")}if(Q(t)){var oe=E?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(t);return"object"!=typeof t||E?oe:X(oe)}if((N=t)&&"object"==typeof N&&("undefined"!=typeof HTMLElement&&N instanceof HTMLElement||"string"==typeof N.nodeName&&"function"==typeof N.getAttribute)){for(var ae="<"+x.call(String(t.nodeName)),ie=t.attributes||[],se=0;se<ie.length;se++)ae+=" "+ie[se].name+"="+B(U(ie[se].value),"double",c);return ae+=">",t.childNodes&&t.childNodes.length&&(ae+="..."),ae+"</"+x.call(String(t.nodeName))+">"}if(W(t)){if(0===t.length)return"[]";var ce=ne(t,z);return q&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(ce)?"["+te(ce,q)+"]":"[ "+_.call(ce,", ")+" ]"}if(function(e){return"[object Error]"===$(e)&&Y(e)}(t)){var le=ne(t,z);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(le,", ")+" }":"{ ["+String(t)+"] "+_.call(S.call("[cause]: "+z(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(F&&"function"==typeof t[F]&&L)return L(t,{depth:O-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return i&&i.call(t,function(e,n){ue.push(z(n,t,!0)+" => "+z(e,t))}),ee("Map",a.call(t),ue,q)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var de=[];return u&&u.call(t,function(e){de.push(z(e,t))}),ee("Set",l.call(t),de,q)}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 WeakMap}catch(e){}return!1}(t))return Z("WeakMap");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 WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return"[object Number]"===$(e)&&Y(e)}(t))return X(z(Number(t)));if(function(e){if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}(t))return X(z(T.call(t)));if(function(e){return"[object Boolean]"===$(e)&&Y(e)}(t))return X(h.call(t));if(function(e){return"[object String]"===$(e)&&Y(e)}(t))return X(z(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===$(e)&&Y(e)}(t)&&!H(t)){var pe=ne(t,z),fe=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,he=t instanceof Object?"":"null prototype",me=!fe&&P&&Object(t)===t&&P in t?v.call($(t),8,-1):he?"Object":"",ye=(fe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(me||he?"["+_.call(S.call([],me||[],he||[]),": ")+"] ":"");return 0===pe.length?ye+"{}":q?ye+"{"+te(pe,q)+"}":ye+"{ "+_.call(pe,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return z.call(e,t)}function $(e){return m.call(e)}function K(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 G(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return G(v.call(e,0,t.maxStringLength),t)+r}var o=q[t.quoteStyle||"single"];return o.lastIndex=0,B(b.call(b.call(e,o,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(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":"")+w.call(t.toString(16))}function X(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function ee(e,t,n,r){return e+" ("+t+") {"+(r?te(n,r):_.call(n,", "))+"}"}function te(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+_.call(e,","+n)+"\n"+t.prev}function ne(e,t){var n=W(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=V(e,o)?t(e[o],e):""}var a,i="function"==typeof O?O(e):[];if(E){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var c in e)V(e,c)&&(n&&String(Number(c))===c&&c<e.length||E&&a["$"+c]instanceof Symbol||(k.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof O)for(var l=0;l<i.length;l++)R.call(e,i[l])&&r.push("["+t(i[l])+"]: "+t(e[i[l]],e));return r}},8968:e=>{"use strict";e.exports=Math.floor},9290:e=>{"use strict";e.exports=RangeError},9353:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var a,i=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),s=n(0,o.length-i.length),c=[],l=0;l<s;l++)c[l]="$"+l;if(a=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=o.apply(this,r(i,arguments));return Object(t)===t?t:this}return o.apply(e,r(i,arguments))}),o.prototype){var u=function(){};u.prototype=o.prototype,a.prototype=new u,u.prototype=null}return a}},9383:e=>{"use strict";e.exports=Error},9538:e=>{"use strict";e.exports=ReferenceError},9612:e=>{"use strict";e.exports=Object},9675:e=>{"use strict";e.exports=TypeError},9947:e=>{var t=function(e){return"string"==typeof e};e.exports=function(e,n,r){return Array.isArray(e)||(e=[e]),o=e.map(function(e){return t(e)?function(e,n,r){var o=0,a=0;if(""===e)return e;if(!e||!t(e))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var i,s,c,l=n;(function(e){return e instanceof RegExp})(l)||(l=new RegExp("("+(i=l,s=/[\\^$.*+?()[\]{}|]/g,c=RegExp(s.source),(i&&c.test(i)?i.replace(s,"\\$&"):i)+")"),"gi"));for(var u=e.split(l),d=1,p=u.length;d<p;d+=2)void 0!==u[d]&&void 0!==u[d-1]?(a=u[d].length,o+=u[d-1].length,u[d]=r(u[d],d,o),o+=a):console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");return u}(e,n,r):e}),a=[],o.forEach(function(e){Array.isArray(e)?a=a.concat(e):a.push(e)}),a;var o,a}},9957:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=n(6743);e.exports=a.call(r,o)}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={id:e,exports:{}};return t[e](a,a.exports,r),a.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:()=>Qf});var e={};r.r(e),r.d(e,{Children:()=>n.Children,Component:()=>n.Component,Fragment:()=>n.Fragment,cloneElement:()=>n.cloneElement,createContext:()=>n.createContext,createElement:()=>n.createElement,createPortal:()=>n.createPortal,createRef:()=>n.createRef,default:()=>a,flushSync:()=>n.flushSync,forwardRef:()=>n.forwardRef,isValidElement:()=>n.isValidElement,jsx:()=>n.jsx,jsxs:()=>n.jsxs,memo:()=>n.memo,startTransition:()=>n.startTransition,useCallback:()=>n.useCallback,useContext:()=>n.useContext,useEffect:()=>n.useEffect,useLayoutEffect:()=>n.useLayoutEffect,useMemo:()=>n.useMemo,useRef:()=>n.useRef,useState:()=>n.useState});var t={};r.r(t),r.d(t,{hasBrowserEnv:()=>ge,hasStandardBrowserEnv:()=>be,hasStandardBrowserWebWorkerEnv:()=>we,navigator:()=>ve,origin:()=>xe});var n=r(2280);const a=n;var i=r(5556),s=r.n(i);function c(e,t){return function(){return e.apply(t,arguments)}}const{toString:l}=Object.prototype,{getPrototypeOf:u}=Object,{iterator:d,toStringTag:p}=Symbol,f=(h=Object.create(null),e=>{const t=l.call(e);return h[t]||(h[t]=t.slice(8,-1).toLowerCase())});var h;const m=e=>(e=e.toLowerCase(),t=>f(t)===e),y=e=>t=>typeof t===e,{isArray:g}=Array,v=y("undefined");function b(e){return null!==e&&!v(e)&&null!==e.constructor&&!v(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const w=m("ArrayBuffer"),x=y("string"),k=y("function"),S=y("number"),_=e=>null!==e&&"object"==typeof e,D=e=>{if("object"!==f(e))return!1;const t=u(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||p in e||d in e)},j=m("Date"),T=m("File"),O=m("Blob"),C=m("FileList"),E=m("URLSearchParams"),[P,R,M,A]=["ReadableStream","Request","Response","Headers"].map(m);function L(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),g(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(b(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function N(e,t){if(b(e))return null;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 F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,I=e=>!v(e)&&e!==F,q=(B="undefined"!=typeof Uint8Array&&u(Uint8Array),e=>B&&e instanceof B);var B;const U=m("HTMLFormElement"),Y=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),W=m("RegExp"),H=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};L(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)},Q=m("AsyncFunction"),z=(V="function"==typeof setImmediate,$=k(F.postMessage),V?setImmediate:$?(K=`axios@${Math.random()}`,G=[],F.addEventListener("message",({source:e,data:t})=>{e===F&&t===K&&G.length&&G.shift()()},!1),e=>{G.push(e),F.postMessage(K,"*")}):e=>setTimeout(e));var V,$,K,G;const J="undefined"!=typeof queueMicrotask?queueMicrotask.bind(F):"undefined"!=typeof process&&process.nextTick||z,X={isArray:g,isArrayBuffer:w,isBuffer:b,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||k(e.append)&&("formdata"===(t=f(e))||"object"===t&&k(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&w(e.buffer),t},isString:x,isNumber:S,isBoolean:e=>!0===e||!1===e,isObject:_,isPlainObject:D,isEmptyObject:e=>{if(!_(e)||b(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:P,isRequest:R,isResponse:M,isHeaders:A,isUndefined:v,isDate:j,isFile:T,isBlob:O,isRegExp:W,isFunction:k,isStream:e=>_(e)&&k(e.pipe),isURLSearchParams:E,isTypedArray:q,isFileList:C,forEach:L,merge:function e(){const{caseless:t}=I(this)&&this||{},n={},r=(r,o)=>{const a=t&&N(n,o)||o;D(n[a])&&D(r)?n[a]=e(n[a],r):D(r)?n[a]=e({},r):g(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&L(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(L(t,(t,r)=>{n&&k(t)?e[r]=c(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,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&u(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:f,kindOfTest:m,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(g(e))return e;let t=e.length;if(!S(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[d]).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:U,hasOwnProperty:Y,hasOwnProp:Y,reduceDescriptors:H,freezeMethods:e=>{H(e,(t,n)=>{if(k(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];k(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 g(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)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:N,global:F,isContextDefined:I,isSpecCompliantForm:function(e){return!!(e&&k(e.append)&&"FormData"===e[p]&&e[d])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(_(e)){if(t.indexOf(e)>=0)return;if(b(e))return e;if(!("toJSON"in e)){t[r]=e;const o=g(e)?[]:{};return L(e,(e,t)=>{const a=n(e,r+1);!v(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Q,isThenable:e=>e&&(_(e)||k(e))&&k(e.then)&&k(e.catch),setImmediate:z,asap:J,isIterable:e=>null!=e&&k(e[d])};function Z(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,this.status=o.status?o.status:null)}X.inherits(Z,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:X.toJSONObject(this.config),code:this.code,status:this.status}}});const ee=Z.prototype,te={};["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=>{te[e]={value:e}}),Object.defineProperties(Z,te),Object.defineProperty(ee,"isAxiosError",{value:!0}),Z.from=(e,t,n,r,o,a)=>{const i=Object.create(ee);return X.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Z.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const ne=Z;function re(e){return X.isPlainObject(e)||X.isArray(e)}function oe(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function ae(e,t,n){return e?e.concat(t).map(function(e,t){return e=oe(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ie=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)}),se=function(e,t,n){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!X.isUndefined(t[e])})).metaTokens,o=n.visitor||l,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(X.isDate(e))return e.toISOString();if(X.isBoolean(e))return e.toString();if(!s&&X.isBlob(e))throw new ne("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(e)||X.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(X.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(X.isArray(e)&&function(e){return X.isArray(e)&&!e.some(re)}(e)||(X.isFileList(e)||X.endsWith(n,"[]"))&&(s=X.toArray(e)))return n=oe(n),s.forEach(function(e,r){!X.isUndefined(e)&&null!==e&&t.append(!0===i?ae([n],r,a):null===i?n:n+"[]",c(e))}),!1;return!!re(e)||(t.append(ae(o,n,a),c(e)),!1)}const u=[],d=Object.assign(ie,{defaultVisitor:l,convertValue:c,isVisitable:re});if(!X.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!X.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),X.forEach(n,function(n,a){!0===(!(X.isUndefined(n)||null===n)&&o.call(t,n,X.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])}),u.pop()}}(e),t};function ce(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function le(e,t){this._pairs=[],e&&se(e,this,t)}const ue=le.prototype;ue.append=function(e,t){this._pairs.push([e,t])},ue.toString=function(e){const t=e?function(t){return e.call(this,t,ce)}:ce;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const de=le;function pe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fe(e,t,n){if(!t)return e;const r=n&&n.encode||pe;X.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(a=o?o(t,n):X.isURLSearchParams(t)?t.toString():new de(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const he=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){X.forEach(this.handlers,function(t){null!==t&&e(t)})}},me={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ye={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:de,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ge="undefined"!=typeof window&&"undefined"!=typeof document,ve="object"==typeof navigator&&navigator||void 0,be=ge&&(!ve||["ReactNative","NativeScript","NS"].indexOf(ve.product)<0),we="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,xe=ge&&window.location.href||"http://localhost",ke={...t,...ye},Se=function(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;return a=!a&&X.isArray(r)?r.length:a,s?(X.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i):(r[a]&&X.isObject(r[a])||(r[a]=[]),t(e,n,r[a],o)&&X.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i)}if(X.isFormData(e)&&X.isFunction(e.entries)){const n={};return X.forEachEntry(e,(e,r)=>{t(function(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},_e={transitional:me,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=X.isObject(e);if(o&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return r?JSON.stringify(Se(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)||X.isReadableStream(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return se(e,new ke.classes.URLSearchParams,{visitor:function(e,t,n,r){return ke.isNode&&X.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=X.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return se(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(X.isString(e))try{return(0,JSON.parse)(e),X.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||_e.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(X.isResponse(e)||X.isReadableStream(e))return e;if(e&&X.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 ne.from(e,ne.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:ke.classes.FormData,Blob:ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{_e.headers[e]={}});const De=_e,je=X.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"]),Te=Symbol("internals");function Oe(e){return e&&String(e).trim().toLowerCase()}function Ce(e){return!1===e||null==e?e:X.isArray(e)?e.map(Ce):String(e)}function Ee(e,t,n,r,o){return X.isFunction(r)?r.call(this,t,n):(o&&(t=n),X.isString(t)?X.isString(r)?-1!==t.indexOf(r):X.isRegExp(r)?r.test(t):void 0:void 0)}class Pe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Oe(t);if(!o)throw new Error("header name must be a non-empty string");const a=X.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=Ce(e))}const a=(e,t)=>X.forEach(e,(e,n)=>o(e,n,t));if(X.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(X.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((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]&&je[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(X.isObject(e)&&X.isIterable(e)){let n,r,o={};for(const t of e){if(!X.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?X.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Oe(e)){const n=X.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(X.isFunction(t))return t.call(this,e,n);if(X.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Oe(e)){const n=X.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ee(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Oe(e)){const o=X.findKey(n,e);!o||t&&!Ee(0,n[o],o,t)||(delete n[o],r=!0)}}return X.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&&!Ee(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return X.forEach(this,(r,o)=>{const a=X.findKey(n,o);if(a)return t[a]=Ce(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Ce(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return X.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&X.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")}getSetCookie(){return this.get("set-cookie")||[]}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[Te]=this[Te]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Oe(e);t[r]||(function(e,t){const n=X.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 X.isArray(e)?e.forEach(r):r(e),this}}Pe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(Pe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),X.freezeMethods(Pe);const Re=Pe;function Me(e,t){const n=this||De,r=t||n,o=Re.from(r.headers);let a=r.data;return X.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Ae(e){return!(!e||!e.__CANCEL__)}function Le(e,t,n){ne.call(this,null==e?"canceled":e,ne.ERR_CANCELED,t,n),this.name="CanceledError"}X.inherits(Le,ne,{__CANCEL__:!0});const Ne=Le;function Fe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ne("Request failed with status code "+n.status,[ne.ERR_BAD_REQUEST,ne.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Ie=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=r[i];o||(o=c),n[a]=s,r[a]=c;let u=i,d=0;for(;u!==a;)d+=n[u++],u%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o<t)return;const p=l&&c-l;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,c=o(s);r=a,e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:c||void 0,estimated:c&&i&&a<=i?(i-a)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},qe=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Be=e=>(...t)=>X.asap(()=>e(...t)),Ue=ke.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ke.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ke.origin),ke.navigator&&/(msie|trident)/i.test(ke.navigator.userAgent)):()=>!0,Ye=ke.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];X.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),X.isString(r)&&i.push("path="+r),X.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.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 We(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const He=e=>e instanceof Re?{...e}:e;function Qe(e,t){t=t||{};const n={};function r(e,t,n,r){return X.isPlainObject(e)&&X.isPlainObject(t)?X.merge.call({caseless:r},e,t):X.isPlainObject(t)?X.merge({},t):X.isArray(t)?t.slice():t}function o(e,t,n,o){return X.isUndefined(t)?X.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!X.isUndefined(t))return r(void 0,t)}function i(e,t){return X.isUndefined(t)?X.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>o(He(e),He(t),0,!0)};return X.forEach(Object.keys({...e,...t}),function(r){const a=c[r]||o,i=a(e[r],t[r],r);X.isUndefined(i)&&a!==s||(n[r]=i)}),n}const ze=e=>{const t=Qe({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:c}=t;if(t.headers=s=Re.from(s),t.url=fe(We(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),X.isFormData(r))if(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ke.hasStandardBrowserEnv&&(o&&X.isFunction(o)&&(o=o(t)),o||!1!==o&&Ue(t.url))){const e=a&&i&&Ye.read(i);e&&s.set(a,e)}return t},Ve="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=ze(e);let o=r.data;const a=Re.from(r.headers).normalize();let i,s,c,l,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function y(){if(!m)return;const r=Re.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Fe(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(n(new ne("Request aborted",ne.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new ne("Network Error",ne.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||me;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ne(t,o.clarifyTimeoutError?ne.ETIMEDOUT:ne.ECONNABORTED,e,m)),m=null},void 0===o&&a.setContentType(null),"setRequestHeader"in m&&X.forEach(a.toJSON(),function(e,t){m.setRequestHeader(t,e)}),X.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([c,u]=Ie(f,!0),m.addEventListener("progress",c)),p&&m.upload&&([s,l]=Ie(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Ne(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===ke.protocols.indexOf(g)?n(new ne("Unsupported protocol "+g+":",ne.ERR_BAD_REQUEST,e)):m.send(o||null)})},$e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ne?t:new Ne(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new ne(`timeout ${t} of ms exceeded`,ne.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>X.asap(i),s}},Ke=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ge=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Ke(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Je="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Xe=Je&&"function"==typeof ReadableStream,Ze=Je&&("function"==typeof TextEncoder?(et=new TextEncoder,e=>et.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var et;const tt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},nt=Xe&&tt(()=>{let e=!1;const t=new Request(ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),rt=Xe&&tt(()=>X.isReadableStream(new Response("").body)),ot={stream:rt&&(e=>e.body)};var at;Je&&(at=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ot[e]&&(ot[e]=X.isFunction(at[e])?t=>t[e]():(t,n)=>{throw new ne(`Response type '${e}' is not supported`,ne.ERR_NOT_SUPPORT,n)})}));const it=Je&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:p}=ze(e);l=l?(l+"").toLowerCase():"text";let f,h=$e([o,a&&a.toAbortSignal()],i);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let y;try{if(c&&nt&&"get"!==n&&"head"!==n&&0!==(y=await(async(e,t)=>{const n=X.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(X.isBlob(e))return e.size;if(X.isSpecCompliantForm(e)){const t=new Request(ke.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return X.isArrayBufferView(e)||X.isArrayBuffer(e)?e.byteLength:(X.isURLSearchParams(e)&&(e+=""),X.isString(e)?(await Ze(e)).byteLength:void 0)})(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(X.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=qe(y,Ie(Be(c)));r=Ge(n.body,65536,e,t)}}X.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let a=await fetch(f,p);const i=rt&&("stream"===l||"response"===l);if(rt&&(s||i&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=a[t]});const t=X.toFiniteNumber(a.headers.get("content-length")),[n,r]=s&&qe(t,Ie(Be(s),!0))||[];a=new Response(Ge(a.body,65536,n,()=>{r&&r(),m&&m()}),e)}l=l||"text";let g=await ot[X.findKey(ot,l)||"text"](a,e);return!i&&m&&m(),await new Promise((t,n)=>{Fe(t,n,{data:g,headers:Re.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:f})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ne("Network Error",ne.ERR_NETWORK,e,f),{cause:t.cause||t});throw ne.from(t,t&&t.code,e,f)}}),st={http:null,xhr:Ve,fetch:it};X.forEach(st,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const ct=e=>`- ${e}`,lt=e=>X.isFunction(e)||null===e||!1===e,ut=e=>{e=X.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){let t;if(n=e[a],r=n,!lt(n)&&(r=st[(t=String(n)).toLowerCase()],void 0===r))throw new ne(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+a]=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(ct).join("\n"):" "+ct(e[0]):"as no adapter specified";throw new ne("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function dt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ne(null,e)}function pt(e){return dt(e),e.headers=Re.from(e.headers),e.data=Me.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ut(e.adapter||De.adapter)(e).then(function(t){return dt(e),t.data=Me.call(e,e.transformResponse,t),t.headers=Re.from(t.headers),t},function(t){return Ae(t)||(dt(e),t&&t.response&&(t.response.data=Me.call(e,e.transformResponse,t.response),t.response.headers=Re.from(t.response.headers))),Promise.reject(t)})}const ft="1.11.0",ht={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ht[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const mt={};ht.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ft+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new ne(r(o," has been removed"+(t?" in "+t:"")),ne.ERR_DEPRECATED);return t&&!mt[o]&&(mt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},ht.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const yt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ne("options must be an object",ne.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new ne("option "+a+" must be "+n,ne.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ne("Unknown option "+a,ne.ERR_BAD_OPTION)}},validators:ht},gt=yt.validators;class vt{constructor(e){this.defaults=e||{},this.interceptors={request:new he,response:new he}}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/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Qe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&yt.assertOptions(n,{silentJSONParsing:gt.transitional(gt.boolean),forcedJSONParsing:gt.transitional(gt.boolean),clarifyTimeoutError:gt.transitional(gt.boolean)},!1),null!=r&&(X.isFunction(r)?t.paramsSerializer={serialize:r}:yt.assertOptions(r,{encode:gt.function,serialize:gt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),yt.assertOptions(t,{baseUrl:gt.spelling("baseURL"),withXsrfToken:gt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&X.merge(o.common,o[t.method]);o&&X.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Re.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[pt.bind(this),void 0];for(e.unshift(...i),e.push(...c),u=e.length,l=Promise.resolve(t);d<u;)l=l.then(e[d++],e[d++]);return l}u=i.length;let p=t;for(d=0;d<u;){const e=i[d++],t=i[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{l=pt.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=c.length;d<u;)l=l.then(c[d++],c[d++]);return l}getUri(e){return fe(We((e=Qe(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}X.forEach(["delete","get","head","options"],function(e){vt.prototype[e]=function(t,n){return this.request(Qe(n||{},{method:e,url:t,data:(n||{}).data}))}}),X.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Qe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}vt.prototype[e]=t(),vt.prototype[e+"Form"]=t(!0)});const bt=vt;class wt{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 Ne(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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new wt(function(t){e=t});return{token:t,cancel:e}}}const xt=wt,kt={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(kt).forEach(([e,t])=>{kt[t]=e});const St=kt,_t=function e(t){const n=new bt(t),r=c(bt.prototype.request,n);return X.extend(r,bt.prototype,n,{allOwnKeys:!0}),X.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Qe(t,n))},r}(De);_t.Axios=bt,_t.CanceledError=Ne,_t.CancelToken=xt,_t.isCancel=Ae,_t.VERSION=ft,_t.toFormData=se,_t.AxiosError=ne,_t.Cancel=_t.CanceledError,_t.all=function(e){return Promise.all(e)},_t.spread=function(e){return function(t){return e.apply(null,t)}},_t.isAxiosError=function(e){return X.isObject(e)&&!0===e.isAxiosError},_t.mergeConfig=Qe,_t.AxiosHeaders=Re,_t.formToJSON=e=>Se(X.isHTMLForm(e)?new FormData(e):e),_t.getAdapter=ut,_t.HttpStatusCode=St,_t.default=_t;const Dt=_t;var jt=function(e){var t=e.code,r=e.text;return(0,n.jsx)(n.Alert,{intent:"danger",children:(0,n.jsx)(n.Item,{icon:(0,n.jsx)(n.Icon,{name:"exclamation-mark-circle",intent:"danger",size:"24"}),title:(0,n.jsx)(n.Text,{bold:!0,intent:"danger",fontSize:"md",children:t?"Error (Code: ".concat(t,")"):"Error"}),children:(0,n.jsx)(n.Text,{fontSize:"md",children:r})})})};jt.propTypes={text:s().string.isRequired,code:s().number},jt.defaultProps={code:void 0};const Tt=jt;var Ot="ext-log-browser",Ct="MESSAGE_INVALID_FORMAT",Et={KERNEL:{title:"kern",value:"0"},USER:{title:"user",value:"1"},MAIL:{title:"mail",value:"2"},DAEMON:{title:"daemon",value:"3"},AUTH:{title:"auth",value:"4"},SYSLOG:{title:"syslog",value:"5"},LPR:{title:"lpr",value:"6"},NEWS:{title:"news",value:"7"},UUCP:{title:"uucp",value:"8"},CLOCK:{title:"clock",value:"9"},AUTH_PRIV:{title:"authpriv",value:"10"},FTP:{title:"ftp",value:"11"},NTP:{title:"ntp",value:"12"},LOG_AUDIT:{title:"log audit",value:"13"},LOG_ALERT:{title:"log alert",value:"14"},CLOCKD:{title:"clock daemon",value:"15"},LOCAL0:{title:"local0",value:"16"},LOCAL1:{title:"local1",value:"17"},LOCAL2:{title:"local2",value:"18"},LOCAL3:{title:"local3",value:"19"},LOCAL4:{title:"local4",value:"20"},LOCAL5:{title:"local5",value:"21"},LOCAL6:{title:"local6",value:"22"},LOCAL7:{title:"local7",value:"23"}};const Pt=function(e){return Object.values(Et).map(function(t){return"".concat(e("Filter.facility.".concat(t.title))," [").concat(t.value,"]")})};var Rt=r(5072),Mt=r.n(Rt),At=r(7825),Lt=r.n(At),Nt=r(7659),Ft=r.n(Nt),It=r(5056),qt=r.n(It),Bt=r(540),Ut=r.n(Bt),Yt=r(1113),Wt=r.n(Yt),Ht=r(946),Qt={};Qt.styleTagTransform=Wt(),Qt.setAttributes=qt(),Qt.insert=Ft().bind(null,"head"),Qt.domAPI=Lt(),Qt.insertStyleElement=Ut(),Mt()(Ht.A,Qt),Ht.A&&Ht.A.locals&&Ht.A.locals;var zt=[100,500,1e3],Vt=function(e){var t=e.direction,r=e.chunkSize,o=e.onClick,a=e.isLoading;return(0,n.jsx)(n.Button,{tooltip:(0,n.jsx)(n.Translate,{content:"List.loadUpHint",params:{number:r}}),fill:!0,ghost:!0,icon:"chevron-double-".concat(t),onClick:function(){return o()},state:a?"loading":void 0,children:(0,n.jsx)(n.Translate,{content:"List.loadMoreRecords"})})};Vt.propTypes={onClick:s().func.isRequired,isLoading:s().bool.isRequired,direction:s().oneOf(["up","down"]).isRequired,chunkSize:s().number.isRequired};const $t=Vt;var Kt=r(9947),Gt=r.n(Kt),Jt={EMERG:{title:"emerg",value:"0"},ALERT:{title:"alert",value:"1"},CRIT:{title:"crit",value:"2"},ERR:{title:"err",value:"3"},WARN:{title:"warning",value:"4"},NOTICE:{title:"notice",value:"5"},INFO:{title:"info",value:"6"},DEBUG:{title:"debug",value:"7"}},Xt={0:"EMERG",1:"ALERT",2:"CRIT",3:"ERR",4:"WARN",5:"NOTICE",6:"INFO",7:"DEBUG"},Zt=function(e){switch(e){case"ERR":return"danger";case"WARN":return"warning";case"INFO":return"info";default:return"inactive"}},en=function(e){var t=[];return e.forEach(function(e){return t.push(Xt[e])}),t};const tn=function(e){return Object.values(Jt).map(function(t){return"".concat(e("Filter.priority.".concat(t.title))," [").concat(t.value,"]")})};var nn=function(e,t){return e?"List.loading":t?"List.noFilteredRecords":"List.noRecords"},rn=function(e){var t=e.isLoading,r=e.isFiltered;return(0,n.jsx)(n.ListEmptyView,{image:null,title:null,description:(0,n.jsx)(n.Translate,{content:nn(t,r)})})};rn.propTypes={isLoading:s().bool.isRequired,isFiltered:s().bool.isRequired};const on=rn;var an=function(e){var t=e.isFirstLoading,r=e.isRealTimeUpdate,o=e.listRows,a=e.isNewerRequested,i=e.loadListPortion,s=e.newestRowDate,c=e.baseClassName,l=e.showFacilityFilter,u=e.filterMessage,d=e.isLoading,p=e.isFilterSet,f=e.isOlderRequested,h=e.oldestRowDate,m=(0,n.useTranslate)(),y=(0,n.useMemo)(function(){return tn(m)},[m]),g=(0,n.useMemo)(function(){return Pt(m)},[m]),v=(0,n.useMemo)(function(){return function(e,t,r,o,a){return[{key:"date",align:"center",type:"title",className:"".concat(e,"_column-date"),render:function(e){return(0,n.jsx)(n.Text,{intent:"muted",nowrap:!0,children:e.date_fmt})}},{key:"priority",className:"".concat(e,"_column-priority"),render:function(e){return""===e.priority?(0,n.jsx)(n.Text,{intent:"muted",fontSize:"sm",children:(0,n.jsx)(n.Translate,{content:"List.priorityIsNA"})}):(0,n.jsx)(n.Tooltip,{title:r[e.priority],children:(0,n.jsx)(n.Label,{intent:(t=e.priority,o=parseInt(t),o<=parseInt(Jt.ERR.value)?"danger":o===parseInt(Jt.WARN.value)?"warning":o<=parseInt(Jt.INFO.value)?"info":"inactive"),children:Object.values(Jt).find(function(t){return t.value===e.priority}).title})});var t,o}},{key:"source",className:"".concat(e,"_column-source"),render:function(e){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(n.Text,{component:"div",nowrap:!0,children:[(0,n.jsx)(n.Text,{bold:!0,children:e.source})," ",e.source_id?(0,n.jsx)(n.Text,{fontSize:"sm",children:"[".concat(e.source_id,"]")}):null]},"row-source"),t&&""!==e.facility&&(0,n.jsx)(n.Text,{fontSize:"sm",intent:"muted",component:"div",children:o[e.facility]},"row-facility")]})}},{key:"message",className:"".concat(e,"_column-message"),render:function(e){return e.message===Ct?(0,n.jsx)(n.Text,{intent:"muted",fontSize:"sm",children:(0,n.jsx)(n.Translate,{content:"List.emptyMessage"})}):a?Gt()(e.message,new RegExp("(".concat(a.replace(/([\\.+*?[^\]$(){}=!<>|:])/g,"\\$1"),")"),"ig"),function(e){return(0,n.jsx)(n.Text,{bold:!0,intent:"warning",children:e})}):e.message}}]}(c,l,y,g,u)},[c,l,y,g,u]);return t?(0,n.jsx)(n.ContentLoader,{text:(0,n.jsx)(n.Translate,{content:"List.loading"})}):(0,n.jsxs)(n.Fragment,{children:[!r&&o.length?(0,n.jsx)($t,{isLoading:a,onClick:function(){return i(s)},chunkSize:100,direction:"up"}):null,(0,n.jsx)(n.List,{className:c,filtered:!t,columns:v,data:o,emptyView:(0,n.jsx)(on,{isLoading:d,isFiltered:p}),loading:d,vertical:600}),!r&&o.length?(0,n.jsx)($t,{isLoading:f,onClick:function(){return i(h,!1)},chunkSize:100,direction:"down"}):null]})};an.propTypes={isFirstLoading:s().bool.isRequired,isRealTimeUpdate:s().bool.isRequired,listRows:s().array.isRequired,isNewerRequested:s().bool.isRequired,loadListPortion:s().func.isRequired,newestRowDate:s().string.isRequired,baseClassName:s().string.isRequired,showFacilityFilter:s().bool.isRequired,filterMessage:s().string.isRequired,isLoading:s().bool.isRequired,isFilterSet:s().bool.isRequired,isOlderRequested:s().bool.isRequired,oldestRowDate:s().string.isRequired};const sn=an;var cn=function(e){var t=e.isRealTimeUpdate,r=e.onRefresh,o=e.onChange,a=e.onClear,i=e.disabled,s=e.showUpdateButton,c=(0,n.useTranslate)("Switcher"),l=c("switchText"),u=c("buttonRefresh"),d=c("buttonClear");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(n.Switch,{className:"".concat(Ot,"__switch-button"),disabled:i,onChange:o,children:l}),s?[" ",(0,n.jsx)(n.Button,{className:"".concat(Ot,t?"__clear-button":"__refresh-button"),icon:t?"clean":"refresh",onClick:function(){return t?a():r()},disabled:i,ghost:!0,children:t?d:u},"update-button")]:null]})};cn.propTypes={isRealTimeUpdate:s().bool.isRequired,onRefresh:s().func.isRequired,onChange:s().func.isRequired,onClear:s().func.isRequired,disabled:s().bool.isRequired,showUpdateButton:s().bool},cn.defaultProps={showUpdateButton:!0};const ln=cn;var un=r(6942),dn=r.n(un);function pn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=pn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=pn(e))&&(r&&(r+=" "),r+=t);return r}Math.pow(10,8);const hn=6048e5,mn=6e4,yn=36e5,gn=Symbol.for("constructDateFrom");function vn(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&gn in e?e[gn](t):e instanceof Date?new e.constructor(t):new Date(t)}function bn(e,t){return vn(t||e,e)}const wn={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},xn=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,kn=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Sn=/^([+-])(\d{2})(?::?(\d{2}))?$/;function _n(e){return e?parseInt(e):1}function Dn(e){return e&&parseFloat(e.replace(",","."))||0}const jn=[31,null,31,30,31,30,31,31,30,31,30,31];function Tn(e){return e%400==0||e%4==0&&e%100!=0}const On={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Cn(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const En={date:Cn({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Cn({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Cn({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Pn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Rn(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const Mn={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Rn({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Rn({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Rn({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Rn({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Rn({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function An(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(s,e=>e.test(i)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(s,e=>e.test(i));let l;return l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l,{value:l,rest:t.slice(i.length)}}}const Ln={ordinalNumber:(Nn={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(Nn.matchPattern);if(!n)return null;const r=n[0],o=e.match(Nn.parsePattern);if(!o)return null;let a=Nn.valueCallback?Nn.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:An({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:An({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:An({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:An({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:An({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Nn;const Fn={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=On[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:En,formatRelative:(e,t,n,r)=>Pn[e],localize:Mn,match:Ln,options:{weekStartsOn:0,firstWeekContainsDate:1}},In=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},qn=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Bn={p:qn,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return In(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",In(r,t)).replace("{{time}}",qn(o,t))}},Un=/^D+$/,Yn=/^Y+$/,Wn=["D","DD","YY","YYYY"];function Hn(e){return Un.test(e)}function Qn(e){return Yn.test(e)}function zn(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),Wn.includes(e))throw new RangeError(r)}let Vn={};function $n(){return Vn}class Kn{subPriority=0;validate(e,t){return!0}}class Gn extends Kn{constructor(e,t,n,r,o){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class Jn extends Kn{priority=10;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>vn(t,e))}set(e,t){return t.timestampIsSet?e:vn(e,function(e,t){const n=function(e){return"function"==typeof e&&e.prototype?.constructor===e}(t)?new t(0):vn(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}(e,this.context))}}class Xn{run(e,t,n,r){const o=this.parse(e,t,n,r);return o?{setter:new Gn(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}}const Zn=/^(1[0-2]|0?\d)/,er=/^(3[0-1]|[0-2]?\d)/,tr=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,nr=/^(5[0-3]|[0-4]?\d)/,rr=/^(2[0-3]|[0-1]?\d)/,or=/^(2[0-4]|[0-1]?\d)/,ar=/^(1[0-1]|0?\d)/,ir=/^(1[0-2]|0?\d)/,sr=/^[0-5]?\d/,cr=/^[0-5]?\d/,lr=/^\d/,ur=/^\d{1,2}/,dr=/^\d{1,3}/,pr=/^\d{1,4}/,fr=/^-?\d+/,hr=/^-?\d/,mr=/^-?\d{1,2}/,yr=/^-?\d{1,3}/,gr=/^-?\d{1,4}/,vr=/^([+-])(\d{2})(\d{2})?|Z/,br=/^([+-])(\d{2})(\d{2})|Z/,wr=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,xr=/^([+-])(\d{2}):(\d{2})|Z/,kr=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Sr(e,t){return e?{value:t(e.value),rest:e.rest}:e}function _r(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Dr(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*yn+a*mn+1e3*i),rest:t.slice(n[0].length)}}function jr(e){return _r(fr,e)}function Tr(e,t){switch(e){case 1:return _r(lr,t);case 2:return _r(ur,t);case 3:return _r(dr,t);case 4:return _r(pr,t);default:return _r(new RegExp("^\\d{1,"+e+"}"),t)}}function Or(e,t){switch(e){case 1:return _r(hr,t);case 2:return _r(mr,t);case 3:return _r(yr,t);case 4:return _r(gr,t);default:return _r(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Cr(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Er(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const t=r+50;o=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?o:1-o}function Pr(e){return e%400==0||e%4==0&&e%100!=0}function Rr(e,t){const n=$n(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=bn(e,t?.in),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function Mr(e,t){const n=bn(e,t?.in),r=n.getFullYear(),o=$n(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=vn(t?.in||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=Rr(i,t),c=vn(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const l=Rr(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function Ar(e,t){return Rr(e,{...t,weekStartsOn:1})}function Lr(e,t){const n=bn(e,t?.in),r=+Rr(n,t)-+function(e,t){const n=$n(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Mr(e,t),a=vn(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Rr(a,t)}(n,t);return Math.round(r/hn)+1}function Nr(e,t){const n=bn(e,t?.in),r=n.getFullYear(),o=vn(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=Ar(o),i=vn(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const s=Ar(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Fr(e,t){const n=bn(e,t?.in),r=+Ar(n)-+function(e,t){const n=Nr(e,t),r=vn(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ar(r)}(n);return Math.round(r/hn)+1}const Ir=[31,28,31,30,31,30,31,31,30,31,30,31],qr=[31,29,31,30,31,30,31,31,30,31,30,31];function Br(e,t,n){const r=bn(e,n?.in);return isNaN(t)?vn(n?.in||e,NaN):t?(r.setDate(r.getDate()+t),r):r}function Ur(e,t,n){const r=$n(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=bn(e,n?.in),i=a.getDay(),s=7-o;return Br(a,t<0||t>6?t-(i+s)%7:((t%7+7)%7+s)%7-(i+s)%7,n)}function Yr(e,t,n){const r=bn(e,n?.in);return Br(r,t-function(e,t){const n=bn(e,t?.in).getDay();return 0===n?7:n}(r,n),n)}function Wr(e){const t=bn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}const Hr={G:new class extends Xn{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends Xn{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return Sr(Tr(4,e),r);case"yo":return Sr(n.ordinalNumber(e,{unit:"year"}),r);default:return Sr(Tr(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=Er(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}},Y:new class extends Xn{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return Sr(Tr(4,e),r);case"Yo":return Sr(n.ordinalNumber(e,{unit:"year"}),r);default:return Sr(Tr(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const o=Mr(e,r);if(n.isTwoDigitYear){const t=Er(n.year,o);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Rr(e,r)}const a="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Rr(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends Xn{priority=130;parse(e,t){return Or("R"===t?4:t.length,e)}set(e,t,n){const r=vn(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ar(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends Xn{priority=130;parse(e,t){return Or("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends Xn{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return Tr(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends Xn{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return Tr(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends Xn{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return Sr(_r(Zn,e),r);case"MM":return Sr(Tr(2,e),r);case"Mo":return Sr(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends Xn{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return Sr(_r(Zn,e),r);case"LL":return Sr(Tr(2,e),r);case"Lo":return Sr(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends Xn{priority=100;parse(e,t,n){switch(t){case"w":return _r(nr,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Tr(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Rr(function(e,t,n){const r=bn(e,n?.in),o=Lr(r,n)-t;return r.setDate(r.getDate()-7*o),bn(r,n?.in)}(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends Xn{priority=100;parse(e,t,n){switch(t){case"I":return _r(nr,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Tr(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Ar(function(e,t,n){const r=bn(e,n?.in),o=Fr(r,n)-t;return r.setDate(r.getDate()-7*o),r}(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends Xn{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return _r(er,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Tr(t.length,e)}}validate(e,t){const n=Pr(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=qr[r]:t>=1&&t<=Ir[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends Xn{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return _r(tr,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Tr(t.length,e)}}validate(e,t){return Pr(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends Xn{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Ur(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends Xn{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Sr(Tr(t.length,e),o);case"eo":return Sr(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Ur(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends Xn{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Sr(Tr(t.length,e),o);case"co":return Sr(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Ur(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends Xn{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return Tr(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Sr(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return Sr(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Sr(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return Sr(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=Yr(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends Xn{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Cr(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends Xn{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Cr(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends Xn{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Cr(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends Xn{priority=70;parse(e,t,n){switch(t){case"h":return _r(ir,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Tr(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends Xn{priority=70;parse(e,t,n){switch(t){case"H":return _r(rr,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Tr(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends Xn{priority=70;parse(e,t,n){switch(t){case"K":return _r(ar,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Tr(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends Xn{priority=70;parse(e,t,n){switch(t){case"k":return _r(or,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Tr(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends Xn{priority=60;parse(e,t,n){switch(t){case"m":return _r(sr,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Tr(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends Xn{priority=50;parse(e,t,n){switch(t){case"s":return _r(cr,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Tr(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends Xn{priority=30;parse(e,t){return Sr(Tr(t.length,e),e=>Math.trunc(e*Math.pow(10,3-t.length)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends Xn{priority=10;parse(e,t){switch(t){case"X":return Dr(vr,e);case"XX":return Dr(br,e);case"XXXX":return Dr(wr,e);case"XXXXX":return Dr(kr,e);default:return Dr(xr,e)}}set(e,t,n){return t.timestampIsSet?e:vn(e,e.getTime()-Wr(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends Xn{priority=10;parse(e,t){switch(t){case"x":return Dr(vr,e);case"xx":return Dr(br,e);case"xxxx":return Dr(wr,e);case"xxxxx":return Dr(kr,e);default:return Dr(xr,e)}}set(e,t,n){return t.timestampIsSet?e:vn(e,e.getTime()-Wr(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends Xn{priority=40;parse(e){return jr(e)}set(e,t,n){return[vn(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends Xn{priority=20;parse(e){return jr(e)}set(e,t,n){return[vn(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},Qr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Vr=/^'([^]*?)'?$/,$r=/''/g,Kr=/\S/,Gr=/[a-zA-Z]/;function Jr(e,t,n,r){const o=()=>vn(r?.in||n,NaN),a=Object.assign({},$n()),i=r?.locale??a.locale??Fn,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!t)return e?o():bn(n,r?.in);const l={firstWeekContainsDate:s,weekStartsOn:c,locale:i},u=[new Jn(r?.in,n)],d=t.match(zr).map(e=>{const t=e[0];return t in Bn?(0,Bn[t])(e,i.formatLong):e}).join("").match(Qr),p=[];for(let n of d){!r?.useAdditionalWeekYearTokens&&Qn(n)&&zn(n,t,e),!r?.useAdditionalDayOfYearTokens&&Hn(n)&&zn(n,t,e);const a=n[0],s=Hr[a];if(s){const{incompatibleTokens:t}=s;if(Array.isArray(t)){const e=p.find(e=>t.includes(e.token)||e.token===a);if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if("*"===s.incompatibleTokens&&p.length>0)throw new RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);p.push({token:a,fullToken:n});const r=s.run(e,n,i.match,l);if(!r)return o();u.push(r.setter),e=r.rest}else{if(a.match(Gr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if("''"===n?n="'":"'"===a&&(n=Xr(n)),0!==e.indexOf(n))return o();e=e.slice(n.length)}}if(e.length>0&&Kr.test(e))return o();const f=u.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>u.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]);let h=bn(n,r?.in);if(isNaN(+h))return o();const m={};for(const e of f){if(!e.validate(h,l))return o();const t=e.set(h,m,l);Array.isArray(t)?(h=t[0],Object.assign(m,t[1])):h=t}return h}function Xr(e){return e.match(Vr)[1].replace($r,"'")}function Zr(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function eo(e){return!(!Zr(e)&&"number"!=typeof e||isNaN(+bn(e)))}function to(e,t){return+bn(e)<+bn(t)}function no(e,...t){const n=vn.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}function ro(e,t){const n=bn(e,t?.in);return n.setHours(0,0,0,0),n}function oo(e,t,n){const[r,o]=no(n?.in,e,t),a=ro(r),i=ro(o),s=+a-Wr(a),c=+i-Wr(i);return Math.round((s-c)/864e5)}function ao(e,t){const n=bn(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function io(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const so={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return io("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):io(n+1,2)},d:(e,t)=>io(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>io(e.getHours()%12||12,t.length),H:(e,t)=>io(e.getHours(),t.length),m:(e,t)=>io(e.getMinutes(),t.length),s:(e,t)=>io(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return io(Math.trunc(r*Math.pow(10,n-3)),t.length)}},co={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return so.y(e,t)},Y:function(e,t,n,r){const o=Mr(e,r),a=o>0?o:1-o;return"YY"===t?io(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):io(a,t.length)},R:function(e,t){return io(Nr(e),t.length)},u:function(e,t){return io(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return io(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return io(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return so.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return io(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Lr(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):io(o,t.length)},I:function(e,t,n){const r=Fr(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):io(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):so.d(e,t)},D:function(e,t,n){const r=function(e,t){const n=bn(e,t?.in);return oo(n,ao(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):io(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return io(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return io(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return io(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return so.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):so.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):io(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):io(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):so.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):so.s(e,t)},S:function(e,t){return so.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return uo(r);case"XXXX":case"XX":return po(r);default:return po(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return uo(r);case"xxxx":case"xx":return po(r);default:return po(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+lo(r,":");default:return"GMT"+po(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+lo(r,":");default:return"GMT"+po(r,":")}},t:function(e,t,n){return io(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return io(+e,t.length)}};function lo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+io(a,2)}function uo(e,t){return e%60==0?(e>0?"-":"+")+io(Math.abs(e)/60,2):po(e,t)}function po(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+io(Math.trunc(r/60),2)+t+io(r%60,2)}const fo=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ho=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mo=/^'([^]*?)'?$/,yo=/''/g,go=/[a-zA-Z]/;function vo(e,t,n){const r=$n(),o=n?.locale??r.locale??Fn,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=bn(e,n?.in);if(!eo(s))throw new RangeError("Invalid time value");let c=t.match(ho).map(e=>{const t=e[0];return"p"===t||"P"===t?(0,Bn[t])(e,o.formatLong):e}).join("").match(fo).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:bo(e)};if(co[t])return{isToken:!0,value:e};if(t.match(go))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const l={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return c.map(r=>{if(!r.isToken)return r.value;const a=r.value;return(!n?.useAdditionalWeekYearTokens&&Qn(a)||!n?.useAdditionalDayOfYearTokens&&Hn(a))&&zn(a,t,String(e)),(0,co[a[0]])(s,a,o.localize,l)}).join("")}function bo(e){const t=e.match(mo);return t?t[1].replace(yo,"'"):e}function wo(e,t,n){const r=bn(e,n?.in);return r.setHours(t),r}function xo(e,t,n){const r=bn(e,n?.in);return r.setMinutes(t),r}function ko(e,t,n){const r=bn(e,n?.in);return r.setSeconds(t),r}function So(e,t){const n=bn(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function _o(e,t){const n=bn(e,t?.in),r=n.getMonth(),o=r-r%3;return n.setMonth(o,1),n.setHours(0,0,0,0),n}function Do(e,t){const n=bn(e,t?.in);return n.setHours(23,59,59,999),n}function jo(e,t){const n=bn(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function To(e,t,n){const r=+bn(e,n?.in),[o,a]=[+bn(t.start,n?.in),+bn(t.end,n?.in)].sort((e,t)=>e-t);return r>=o&&r<=a}function Oo(e,t,n){const r=bn(e,n?.in),o=r.getFullYear(),a=r.getDate(),i=vn(n?.in||e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const s=function(e,t){const n=bn(e,t?.in),r=n.getFullYear(),o=n.getMonth(),a=vn(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}(i);return r.setMonth(t,Math.min(a,s)),r}function Co(e,t,n){const r=bn(e,n?.in),o=t-(Math.trunc(r.getMonth()/3)+1);return Oo(r,r.getMonth()+3*o)}function Eo(e,t){return bn(e,t?.in).getFullYear()}function Po(e,t){return bn(e,t?.in).getMonth()}function Ro(e,t){const n=bn(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Mo(e,t){const n=bn(e,t?.in);return Math.trunc(n.getMonth()/3)+1}function Ao(e,t){return bn(e,t?.in).getHours()}function Lo(e,t){return bn(e,t?.in).getMinutes()}function No(e){return bn(e).getSeconds()}function Fo(e,t,n){const r=bn(e,n?.in);if(isNaN(t))return vn(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),a=vn(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),o>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}function Io(e,t,n){return Fo(e,-t,n)}function qo(e,t,n){const[r,o]=no(n?.in,e,t);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}function Bo(e,t,n){return Fo(e,3*t,n)}function Uo(e,t,n){return Bo(e,-t,n)}function Yo(e,t,n){const[r,o]=no(n?.in,e,t);return 4*(r.getFullYear()-o.getFullYear())+(Mo(r)-Mo(o))}function Wo(e,t,n){return Fo(e,12*t,n)}function Ho(e,t,n){return Wo(e,-t,n)}function Qo(e,t,n){const[r,o]=no(n?.in,e,t);return r.getFullYear()-o.getFullYear()}function zo(e,t){let n,r=t?.in;return e.forEach(e=>{r||"object"!=typeof e||(r=vn.bind(null,e));const t=bn(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),vn(r,n||NaN)}function Vo(e,t){let n,r=t?.in;return e.forEach(e=>{r||"object"!=typeof e||(r=vn.bind(null,e));const t=bn(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),vn(r,n||NaN)}function $o(e,t,n){return vn(n?.in||e,+bn(e)+t)}function Ko(e,t,n){return $o(e,t*yn,n)}function Go(e,t,n){const r=bn(e,n?.in);return r.setTime(r.getTime()+t*mn),r}function Jo(e,t,n){return $o(e,1e3*t,n)}function Xo(e,t){return+bn(e)>+bn(t)}function Zo(e,t){return bn(e,t?.in).getDate()}function ea(e,t,n){return Br(e,7*t,n)}function ta(e){return+bn(e)}function na(e,t,n){const r=bn(e,n?.in);return isNaN(+r)?vn(n?.in||e,NaN):(r.setFullYear(t),r)}function ra(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function oa(e,t,n){return ea(e,-t,n)}var aa="undefined"!=typeof document?n.useLayoutEffect:function(){};const ia={...e}.useInsertionEffect||(e=>e());function sa(){return"undefined"!=typeof window}function ca(e){return da(e)?(e.nodeName||"").toLowerCase():"#document"}function la(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ua(e){var t;return null==(t=(da(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function da(e){return!!sa()&&(e instanceof Node||e instanceof la(e).Node)}function pa(e){return!!sa()&&(e instanceof Element||e instanceof la(e).Element)}function fa(e){return!!sa()&&(e instanceof HTMLElement||e instanceof la(e).HTMLElement)}function ha(e){return!(!sa()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof la(e).ShadowRoot)}const ma=new Set(["inline","contents"]);function ya(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Oa(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ma.has(o)}const ga=new Set(["table","td","th"]);function va(e){return ga.has(ca(e))}const ba=[":popover-open",":modal"];function wa(e){return ba.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const xa=["transform","translate","scale","rotate","perspective"],ka=["transform","translate","scale","rotate","perspective","filter"],Sa=["paint","layout","strict","content"];function _a(e){const t=Da(),n=pa(e)?Oa(e):e;return xa.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ka.some(e=>(n.willChange||"").includes(e))||Sa.some(e=>(n.contain||"").includes(e))}function Da(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ja=new Set(["html","body","#document"]);function Ta(e){return ja.has(ca(e))}function Oa(e){return la(e).getComputedStyle(e)}function Ca(e){return pa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ea(e){if("html"===ca(e))return e;const t=e.assignedSlot||e.parentNode||ha(e)&&e.host||ua(e);return ha(t)?t.host:t}function Pa(e){const t=Ea(e);return Ta(t)?e.ownerDocument?e.ownerDocument.body:e.body:fa(t)&&ya(t)?t:Pa(t)}function Ra(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Pa(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=la(o);if(a){const e=Ma(i);return t.concat(i,i.visualViewport||[],ya(o)?o:[],e&&n?Ra(e):[])}return t.concat(o,Ra(o,[],n))}function Ma(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Aa=Math.min,La=Math.max,Na=Math.round,Fa=Math.floor,Ia=e=>({x:e,y:e}),qa={left:"right",right:"left",bottom:"top",top:"bottom"},Ba={start:"end",end:"start"};function Ua(e,t){return"function"==typeof e?e(t):e}function Ya(e){return e.split("-")[0]}function Wa(e){return e.split("-")[1]}function Ha(e){return"y"===e?"height":"width"}const Qa=new Set(["top","bottom"]);function za(e){return Qa.has(Ya(e))?"y":"x"}function Va(e){return"x"===za(e)?"y":"x"}function $a(e){return e.replace(/start|end/g,e=>Ba[e])}const Ka=["left","right"],Ga=["right","left"],Ja=["top","bottom"],Xa=["bottom","top"];function Za(e){return e.replace(/left|right|bottom|top/g,e=>qa[e])}function ei(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ti(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ni(e,t,n){let{reference:r,floating:o}=e;const a=za(t),i=Va(t),s=Ha(i),c=Ya(t),l="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let f;switch(c){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Wa(t)){case"start":f[i]-=p*(n&&l?-1:1);break;case"end":f[i]+=p*(n&&l?-1:1)}return f}const ri=new Set(["left","top"]);function oi(e){const t=Oa(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=fa(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Na(n)!==a||Na(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function ai(e){return pa(e)?e:e.contextElement}function ii(e){const t=ai(e);if(!fa(t))return Ia(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=oi(t);let i=(a?Na(n.width):n.width)/r,s=(a?Na(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const si=Ia(0);function ci(e){const t=la(e);return Da()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:si}function li(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=ai(e);let i=Ia(1);t&&(r?pa(r)&&(i=ii(r)):i=ii(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==la(e))&&t}(a,n,r)?ci(a):Ia(0);let c=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=la(a),t=r&&pa(r)?la(r):r;let n=e,o=Ma(n);for(;o&&r&&t!==n;){const e=ii(o),t=o.getBoundingClientRect(),r=Oa(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=i,n=la(o),o=Ma(n)}}return ti({width:u,height:d,x:c,y:l})}function ui(e,t){const n=Ca(e).scrollLeft;return t?t.left+n:li(ua(e)).left+n}function di(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ui(e,r)),y:r.top+t.scrollTop}}const pi=new Set(["absolute","fixed"]);function fi(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=la(e),r=ua(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const e=Da();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=ua(e),n=Ca(e),r=e.ownerDocument.body,o=La(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=La(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ui(e);const s=-n.scrollTop;return"rtl"===Oa(r).direction&&(i+=La(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(ua(e));else if(pa(t))r=function(e,t){const n=li(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=fa(e)?ii(e):Ia(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=ci(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ti(r)}function hi(e,t){const n=Ea(e);return!(n===t||!pa(n)||Ta(n))&&("fixed"===Oa(n).position||hi(n,t))}function mi(e,t,n){const r=fa(t),o=ua(t),a="fixed"===n,i=li(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=Ia(0);function l(){c.x=ui(o)}if(r||!r&&!a)if(("body"!==ca(t)||ya(o))&&(s=Ca(t)),r){const e=li(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&l();a&&!r&&o&&l();const u=!o||r||a?Ia(0):di(o,s);return{x:i.left+s.scrollLeft-c.x-u.x,y:i.top+s.scrollTop-c.y-u.y,width:i.width,height:i.height}}function yi(e){return"static"===Oa(e).position}function gi(e,t){if(!fa(e)||"fixed"===Oa(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ua(e)===n&&(n=n.ownerDocument.body),n}function vi(e,t){const n=la(e);if(wa(e))return n;if(!fa(e)){let t=Ea(e);for(;t&&!Ta(t);){if(pa(t)&&!yi(t))return t;t=Ea(t)}return n}let r=gi(e,t);for(;r&&va(r)&&yi(r);)r=gi(r,t);return r&&Ta(r)&&yi(r)&&!_a(r)?n:r||function(e){let t=Ea(e);for(;fa(t)&&!Ta(t);){if(_a(t))return t;if(wa(t))return null;t=Ea(t)}return null}(e)||n}const bi={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=ua(r),s=!!t&&wa(t.floating);if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ia(1);const u=Ia(0),d=fa(r);if((d||!d&&!a)&&(("body"!==ca(r)||ya(i))&&(c=Ca(r)),fa(r))){const e=li(r);l=ii(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!i||d||a?Ia(0):di(i,c,!0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+p.x,y:n.y*l.y-c.scrollTop*l.y+u.y+p.y}},getDocumentElement:ua,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a="clippingAncestors"===n?wa(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ra(e,[],!1).filter(e=>pa(e)&&"body"!==ca(e)),o=null;const a="fixed"===Oa(e).position;let i=a?Ea(e):e;for(;pa(i)&&!Ta(i);){const t=Oa(i),n=_a(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&pi.has(o.position)||ya(i)&&!n&&hi(e,i))?r=r.filter(e=>e!==i):o=t,i=Ea(i)}return t.set(e,r),r}(t,this._c):[].concat(n),i=[...a,r],s=i[0],c=i.reduce((e,n)=>{const r=fi(t,n,o);return e.top=La(r.top,e.top),e.right=Aa(r.right,e.right),e.bottom=Aa(r.bottom,e.bottom),e.left=La(r.left,e.left),e},fi(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:vi,getElementRects:async function(e){const t=this.getOffsetParent||vi,n=this.getDimensions,r=await n(e.floating);return{reference:mi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=oi(e);return{width:t,height:n}},getScale:ii,isElement:pa,isRTL:function(e){return"rtl"===Oa(e).direction}};function wi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xi(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=ai(e),u=o||a?[...l?Ra(l):[],...Ra(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=l&&s?function(e,t){let n,r=null;const o=ua(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),a();const l=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=l;if(s||t(),!p||!f)return;const h={rootMargin:-Fa(d)+"px "+-Fa(o.clientWidth-(u+p))+"px "+-Fa(o.clientHeight-(d+f))+"px "+-Fa(u)+"px",threshold:La(0,Aa(1,c))||1};let m=!0;function y(t){const r=t[0].intersectionRatio;if(r!==c){if(!m)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||wi(l,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(y,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,h)}r.observe(e)}(!0),a}(l,n):null;let p,f=-1,h=null;i&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let m=c?li(e):null;return c&&function t(){const r=li(e);m&&!wi(m,r)&&n(),m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const ki=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=Ya(n),s=Wa(n),c="y"===za(n),l=ri.has(i)?-1:1,u=a&&c?-1:1,d=Ua(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),c?{x:f*u,y:p*l}:{x:p*l,y:f*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},Si=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...y}=Ua(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const g=Ya(o),v=za(s),b=Ya(s)===s,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=p||(b||!m?[Za(s)]:function(e){const t=Za(e);return[$a(e),t,$a(t)]}(s)),k="none"!==h;!p&&k&&x.push(...function(e,t,n,r){const o=Wa(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Ga:Ka:t?Ka:Ga;case"left":case"right":return t?Ja:Xa;default:return[]}}(Ya(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map($a)))),a}(s,m,h,w));const S=[s,...x],_=await async function(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Ua(t,e),h=ei(f),m=s[p?"floating"===d?"reference":"floating":d],y=ti(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=ti(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:c}):g);return{top:(y.top-w.top+h.top)/b.y,bottom:(w.bottom-y.bottom+h.bottom)/b.y,left:(y.left-w.left+h.left)/b.x,right:(w.right-y.right+h.right)/b.x}}(t,y),D=[];let j=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&D.push(_[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Wa(e),o=Va(e),a=Ha(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Za(i)),[i,Za(i)]}(o,i,w);D.push(_[e[0]],_[e[1]])}if(j=[...j,{placement:o,overflows:D}],!D.every(e=>e<=0)){var T,O;const e=((null==(T=a.flip)?void 0:T.index)||0)+1,t=S[e];if(t&&("alignment"!==d||v===za(t)||j.every(e=>e.overflows[0]>0&&za(e.placement)===v)))return{data:{index:e,overflows:j},reset:{placement:t}};let n=null==(O=j.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:O.placement;if(!n)switch(f){case"bestFit":{var C;const e=null==(C=j.filter(e=>{if(k){const t=za(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:C[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},_i=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Ua(e,t)||{};if(null==l)return{};const d=ei(u),p={x:n,y:r},f=Va(o),h=Ha(f),m=await i.getDimensions(l),y="y"===f,g=y?"top":"left",v=y?"bottom":"right",b=y?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[f]-p[f]-a.floating[h],x=p[f]-a.reference[f],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let S=k?k[b]:0;S&&await(null==i.isElement?void 0:i.isElement(k))||(S=s.floating[b]||a.floating[h]);const _=w/2-x/2,D=S/2-m[h]/2-1,j=Aa(d[g],D),T=Aa(d[v],D),O=j,C=S-m[h]-T,E=S/2-m[h]/2+_,P=La(O,Aa(E,C)),R=!c.arrow&&null!=Wa(o)&&E!==P&&a.reference[h]/2-(E<O?j:T)-m[h]/2<0,M=R?E<O?E-O:E-C:0;return{[f]:p[f]+M,data:{[f]:P,centerOffset:E-P-M,...R&&{alignmentOffset:M}},reset:R}}});var Di="undefined"!=typeof document?n.useLayoutEffect:function(){};function ji(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!ji(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||ji(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Ti(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Oi(e,t){const n=Ti(e);return Math.round(t*n)/n}function Ci(e){const t=n.useRef(e);return Di(()=>{t.current=e}),t}const Ei=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?_i({element:n.current,padding:r}).fn(t):{}:n?_i({element:n,padding:r}).fn(t):{};var o}}),Pi=(e,t)=>({...ki(e),options:[e,t]}),Ri=(e,t)=>({...Si(e),options:[e,t]}),Mi=(e,t)=>({...Ei(e),options:[e,t]}),Ai={...e};let Li=!1,Ni=0;const Fi=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ni++,Ii=Ai.useId||function(){const[e,t]=n.useState(()=>Li?Fi():void 0);return aa(()=>{null==e&&t(Fi())},[]),n.useEffect(()=>{Li=!0},[]),e},qi=n.forwardRef(function(e,t){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:a,shift:i}},width:s=14,height:c=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:d,stroke:p,d:f,style:{transform:h,...m}={},...y}=e,g=Ii(),[v,b]=n.useState(!1);if(aa(()=>{o&&"rtl"===Oa(o).direction&&b(!0)},[o]),!o)return null;const[w,x]=r.split("-"),k="top"===w||"bottom"===w;let S=d;(k&&null!=i&&i.x||!k&&null!=i&&i.y)&&(S=null);const _=2*u,D=_/2,j=s/2*(l/-8+1),T=c/2*l/4,O=!!f,C=S&&"end"===x?"bottom":"top";let E=S&&"end"===x?"right":"left";S&&v&&(E="end"===x?"left":"right");const P=null!=(null==a?void 0:a.x)?S||a.x:"",R=null!=(null==a?void 0:a.y)?S||a.y:"",M=f||"M0,0 H"+s+" L"+(s-j)+","+(c-T)+" Q"+s/2+","+c+" "+j+","+(c-T)+" Z",A={top:O?"rotate(180deg)":"",left:O?"rotate(90deg)":"rotate(-90deg)",bottom:O?"":"rotate(180deg)",right:O?"rotate(-90deg)":"rotate(90deg)"}[w];return(0,n.jsxs)("svg",{...y,"aria-hidden":!0,ref:t,width:O?s:s+_,height:s,viewBox:"0 0 "+s+" "+(c>s?c:s),style:{position:"absolute",pointerEvents:"none",[E]:P,[C]:R,[w]:k||O?"100%":"calc(100% - "+_/2+"px)",transform:[A,h].filter(e=>!!e).join(" "),...m},children:[_>0&&(0,n.jsx)("path",{clipPath:"url(#"+g+")",fill:"none",stroke:p,strokeWidth:_+(f?0:1),d:M}),(0,n.jsx)("path",{stroke:_&&!f?y.fill:"none",d:M}),(0,n.jsx)("clipPath",{id:g,children:(0,n.jsx)("rect",{x:-D,y:D*(O?-1:1),width:s+_,height:s})})]})});const Bi=n.createContext(null),Ui=n.createContext(null);function Yi(e){const{open:t=!1,onOpenChange:r,elements:o}=e,a=Ii(),i=n.useRef({}),[s]=n.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}()),c=null!=((null==(l=n.useContext(Bi))?void 0:l.id)||null);var l;const[u,d]=n.useState(o.reference),p=function(e){const t=n.useRef(()=>{});return ia(()=>{t.current=e}),n.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}((e,t,n)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:n,nested:c}),null==r||r(e,t,n)}),f=n.useMemo(()=>({setPositionReference:d}),[]),h=n.useMemo(()=>({reference:u||o.reference||null,floating:o.floating||null,domReference:o.reference}),[u,o.reference,o.floating]);return n.useMemo(()=>({dataRef:i,open:t,onOpenChange:p,elements:h,events:s,floatingId:a,refs:f}),[t,p,h,s,a,f])}function Wi(e){void 0===e&&(e={});const{nodeId:t}=e,r=Yi({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||r,a=o.elements,[i,s]=n.useState(null),[c,l]=n.useState(null),u=(null==a?void 0:a.domReference)||i,d=n.useRef(null),p=n.useContext(Ui);aa(()=>{u&&(d.current=u)},[u]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,p]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=n.useState(o);ji(f,o)||h(o);const[m,y]=n.useState(null),[g,v]=n.useState(null),b=n.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),w=n.useCallback(e=>{e!==_.current&&(_.current=e,v(e))},[]),x=i||m,k=s||g,S=n.useRef(null),_=n.useRef(null),D=n.useRef(d),j=null!=l,T=Ci(l),O=Ci(a),C=Ci(u),E=n.useCallback(()=>{if(!S.current||!_.current)return;const e={placement:t,strategy:r,middleware:f};O.current&&(e.platform=O.current),((e,t,n)=>{const r=new Map,o={platform:bi,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=ni(l,r,c),p=r,f={},h=0;for(let n=0;n<s.length;n++){const{name:a,fn:m}=s[n],{x:y,y:g,data:v,reset:b}=await m({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:l,platform:i,elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=g?g:d,f={...f,[a]:{...f[a],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(l=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=ni(l,p,c))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:a})})(S.current,_.current,e).then(e=>{const t={...e,isPositioned:!1!==C.current};P.current&&!ji(D.current,t)&&(D.current=t,n.flushSync(()=>{p(t)}))})},[f,t,r,O,C]);Di(()=>{!1===u&&D.current.isPositioned&&(D.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);const P=n.useRef(!1);Di(()=>(P.current=!0,()=>{P.current=!1}),[]),Di(()=>{if(x&&(S.current=x),k&&(_.current=k),x&&k){if(T.current)return T.current(x,k,E);E()}},[x,k,E,T,j]);const R=n.useMemo(()=>({reference:S,floating:_,setReference:b,setFloating:w}),[b,w]),M=n.useMemo(()=>({reference:x,floating:k}),[x,k]),A=n.useMemo(()=>{const e={position:r,left:0,top:0};if(!M.floating)return e;const t=Oi(M.floating,d.x),n=Oi(M.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...Ti(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,M.floating,d.x,d.y]);return n.useMemo(()=>({...d,update:E,refs:R,elements:M,floatingStyles:A}),[d,E,R,M,A])}({...e,elements:{...a,...c&&{reference:c}}}),h=n.useCallback(e=>{const t=pa(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;l(t),f.refs.setReference(t)},[f.refs]),m=n.useCallback(e=>{(pa(e)||null===e)&&(d.current=e,s(e)),(pa(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!pa(e))&&f.refs.setReference(e)},[f.refs]),y=n.useMemo(()=>({...f.refs,setReference:m,setPositionReference:h,domReference:d}),[f.refs,m,h]),g=n.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),v=n.useMemo(()=>({...f,...o,refs:y,elements:g,nodeId:t}),[f,y,g,t,o]);return aa(()=>{o.dataRef.current.floatingContext=v;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),n.useMemo(()=>({...f,context:v,refs:y,elements:g}),[f,y,g,v])}var Hi=function(e,t){return Hi=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])},Hi(e,t)};function Qi(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}Hi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var zi=function(){return zi=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},zi.apply(this,arguments)};function Vi(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;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"==typeof SuppressedError&&SuppressedError;var $i,Ki=function(e){var t=e.showTimeSelectOnly,n=void 0!==t&&t,r=e.showTime,o=void 0!==r&&r,i=e.className,s=e.children,c=n?"Choose Time":"Choose Date".concat(o?" and Time":"");return a.createElement("div",{className:i,role:"dialog","aria-label":c,"aria-modal":"true"},s)},Gi=function(e){var t=e.children,r=e.onClickOutside,o=e.className,i=e.containerRef,s=e.style,c=function(e,t){var r=(0,n.useRef)(null),o=(0,n.useRef)(e);o.current=e;var a=(0,n.useCallback)(function(e){var n,a=e.composed&&e.composedPath&&e.composedPath().find(function(e){return e instanceof Node})||e.target;r.current&&!r.current.contains(a)&&(t&&a instanceof HTMLElement&&a.classList.contains(t)||null===(n=o.current)||void 0===n||n.call(o,e))},[t]);return(0,n.useEffect)(function(){return document.addEventListener("mousedown",a),function(){document.removeEventListener("mousedown",a)}},[a]),r}(r,e.ignoreClass);return a.createElement("div",{className:o,style:s,ref:function(e){c.current=e,i&&(i.current=e)}},t)};function Ji(){return"undefined"!=typeof window?window:globalThis}function Xi(e){if(null==e)return new Date;var t="string"==typeof e?function(e,t){const n=()=>vn(t?.in,NaN),r=t?.additionalDigits??2,o=function(e){const t={},n=e.split(wn.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],wn.timeZoneDelimiter.test(t.date)&&(t.date=e.split(wn.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const e=wn.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let a;if(o.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(o.date,r);a=function(e,t){if(null===t)return new Date(NaN);const n=e.match(xn);if(!n)return new Date(NaN);const r=!!n[4],o=_n(n[1]),a=_n(n[2])-1,i=_n(n[3]),s=_n(n[4]),c=_n(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=7*(t-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}(t,s,c):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(jn[t]||(Tn(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(Tn(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(+a))return n();const i=+a;let s,c=0;if(o.time&&(c=function(e){const t=e.match(kn);if(!t)return NaN;const n=Dn(t[1]),r=Dn(t[2]),o=Dn(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*yn+r*mn+1e3*o:NaN}(o.time),isNaN(c)))return n();if(!o.timezone){const e=new Date(i+c),n=bn(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return s=function(e){if("Z"===e)return 0;const t=e.match(Sn);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*yn+o*mn):NaN}(o.timezone),isNaN(s)?n():bn(i+c+s,t?.in)}(e):bn(e);return es(t)?t:new Date}function Zi(e,t,n,r,o){void 0===o&&(o=Xi());for(var a=vs(n)||vs(gs()),i=0,s=Array.isArray(t)?t:[t];i<s.length;i++){var c=s[i],l=Jr(e,c,o,{locale:a,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});if(es(l)&&(!r||e===ts(l,c,n)))return l}return null}function es(e,t){return eo(e)&&!to(e,new Date("1/1/1800"))}function ts(e,t,n){if("en"===n)return vo(e,t,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?vs(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),vo(e,t,{locale:r=r||vs(gs()),useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function ns(e,t){var n=t.dateFormat,r=t.locale,o=Array.isArray(n)&&n.length>0?n[0]:n;return e&&ts(e,o,r)||""}function rs(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second;return wo(xo(ko(e,void 0===i?0:i),a),r)}function os(e){return ro(e)}function as(e,t,n){return Rr(e,{locale:vs(t||gs()),weekStartsOn:n})}function is(e){return So(e)}function ss(e){return ao(e)}function cs(e){return _o(e)}function ls(){return ro(Xi())}function us(e){return Do(e)}function ds(e,t){return e&&t?function(e,t,n){const[r,o]=no(n?.in,e,t);return r.getFullYear()===o.getFullYear()}(e,t):!e&&!t}function ps(e,t){return e&&t?function(e,t,n){const[r,o]=no(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}(e,t):!e&&!t}function fs(e,t){return e&&t?function(e,t,n){const[r,o]=no(n?.in,e,t);return+_o(r)===+_o(o)}(e,t):!e&&!t}function hs(e,t){return e&&t?function(e,t,n){const[r,o]=no(n?.in,e,t);return+ro(r)===+ro(o)}(e,t):!e&&!t}function ms(e,t){return e&&t?(n=t,+bn(e)===+bn(n)):!e&&!t;var n}function ys(e,t,n){var r,o=ro(t),a=Do(n);try{r=To(e,{start:o,end:a})}catch(e){r=!1}return r}function gs(){return Ji().__localeId__}function vs(e){if("string"==typeof e){var t=Ji();return t.__localeData__?t.__localeData__[e]:void 0}return e}function bs(e,t){return ts(Oo(Xi(),e),"LLLL",t)}function ws(e,t){return ts(Oo(Xi(),e),"LLL",t)}function xs(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.excludeDateIntervals,s=n.includeDates,c=n.includeDateIntervals,l=n.filterDate;return Es(e,{minDate:r,maxDate:o})||a&&a.some(function(t){return t instanceof Date?hs(e,t):hs(e,t.date)})||i&&i.some(function(t){var n=t.start,r=t.end;return To(e,{start:n,end:r})})||s&&!s.some(function(t){return hs(e,t)})||c&&!c.some(function(t){var n=t.start,r=t.end;return To(e,{start:n,end:r})})||l&&!l(Xi(e))||!1}function ks(e,t){var n=void 0===t?{}:t,r=n.excludeDates,o=n.excludeDateIntervals;return o&&o.length>0?o.some(function(t){var n=t.start,r=t.end;return To(e,{start:n,end:r})}):r&&r.some(function(t){var n;return t instanceof Date?hs(e,t):hs(e,null!==(n=t.date)&&void 0!==n?n:new Date)})||!1}function Ss(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.includeDates,s=n.filterDate;return Es(e,{minDate:r?So(r):void 0,maxDate:o?jo(o):void 0})||(null==a?void 0:a.some(function(t){return ps(e,t instanceof Date?t:t.date)}))||i&&!i.some(function(t){return ps(e,t)})||s&&!s(Xi(e))||!1}function _s(e,t,n,r){var o=Eo(e),a=Po(e),i=Eo(t),s=Po(t),c=Eo(r);return o===i&&o===c?a<=n&&n<=s:o<i&&(c===o&&a<=n||c===i&&s>=n||c<i&&c>o)}function Ds(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.includeDates;return Es(e,{minDate:r,maxDate:o})||a&&a.some(function(t){return ps(t instanceof Date?t:t.date,e)})||i&&!i.some(function(t){return ps(t,e)})||!1}function js(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.includeDates,s=n.filterDate;return Es(e,{minDate:r,maxDate:o})||(null==a?void 0:a.some(function(t){return fs(e,t instanceof Date?t:t.date)}))||i&&!i.some(function(t){return fs(e,t)})||s&&!s(Xi(e))||!1}function Ts(e,t,n){if(!t||!n)return!1;if(!eo(t)||!eo(n))return!1;var r=Eo(t),o=Eo(n);return r<=e&&o>=e}function Os(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.includeDates,s=n.filterDate,c=new Date(e,0,1);return Es(c,{minDate:r?ao(r):void 0,maxDate:o?Ro(o):void 0})||(null==a?void 0:a.some(function(e){return ds(c,e instanceof Date?e:e.date)}))||i&&!i.some(function(e){return ds(c,e)})||s&&!s(Xi(c))||!1}function Cs(e,t,n,r){var o=Eo(e),a=Mo(e),i=Eo(t),s=Mo(t),c=Eo(r);return o===i&&o===c?a<=n&&n<=s:o<i&&(c===o&&a<=n||c===i&&s>=n||c<i&&c>o)}function Es(e,t){var n,r=void 0===t?{}:t,o=r.minDate,a=r.maxDate;return null!==(n=o&&oo(e,o)<0||a&&oo(e,a)>0)&&void 0!==n&&n}function Ps(e,t){return t.some(function(t){return Ao(t)===Ao(e)&&Lo(t)===Lo(e)&&No(t)===No(e)})}function Rs(e,t){var n=void 0===t?{}:t,r=n.excludeTimes,o=n.includeTimes,a=n.filterTime;return r&&Ps(e,r)||o&&!Ps(e,o)||a&&!a(e)||!1}function Ms(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var o=Xi();o=ko(o=xo(o=wo(o,Ao(e)),Lo(e)),No(e));var a=Xi();a=ko(a=xo(a=wo(a,Ao(n)),Lo(n)),No(n));var i,s=Xi();s=ko(s=xo(s=wo(s,Ao(r)),Lo(r)),No(r));try{i=!To(o,{start:a,end:s})}catch(e){i=!1}return i}function As(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.includeDates,a=Io(e,1);return r&&qo(r,a)>0||o&&o.every(function(e){return qo(e,a)>0})||!1}function Ls(e,t){var n=void 0===t?{}:t,r=n.maxDate,o=n.includeDates,a=Fo(e,1);return r&&qo(a,r)>0||o&&o.every(function(e){return qo(a,e)>0})||!1}function Ns(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.includeDates,a=Ho(e,1);return r&&Qo(r,a)>0||o&&o.every(function(e){return Qo(e,a)>0})||!1}function Fs(e,t){var n=void 0===t?{}:t,r=n.maxDate,o=n.includeDates,a=Wo(e,1);return r&&Qo(a,r)>0||o&&o.every(function(e){return Qo(a,e)>0})||!1}function Is(e){var t=e.minDate,n=e.includeDates;return n&&t?zo(n.filter(function(e){return oo(e,t)>=0})):n?zo(n):t}function qs(e){var t=e.maxDate,n=e.includeDates;return n&&t?Vo(n.filter(function(e){return oo(e,t)<=0})):n?Vo(n):t}function Bs(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--highlighted");for(var r=new Map,o=0,a=e.length;o<a;o++){var i=e[o];if(Zr(i)){var s=ts(i,"MM.dd.yyyy");(p=r.get(s)||[]).includes(t)||(p.push(t),r.set(s,p))}else if("object"==typeof i){var c=null!==(n=Object.keys(i)[0])&&void 0!==n?n:"",l=i[c];if("string"==typeof c&&Array.isArray(l))for(var u=0,d=l.length;u<d;u++){var p,f=l[u];if(f)s=ts(f,"MM.dd.yyyy"),(p=r.get(s)||[]).includes(c)||(p.push(c),r.set(s,p))}}}return r}function Us(e,t){void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--holidays");var n=new Map;return e.forEach(function(e){var r=e.date,o=e.holidayName;if(Zr(r)){var a=ts(r,"MM.dd.yyyy"),i=n.get(a)||{className:"",holidayNames:[]};if(!("className"in i)||i.className!==t||(s=i.holidayNames,c=[o],s.length!==c.length||!s.every(function(e,t){return e===c[t]}))){var s,c;i.className=t;var l=i.holidayNames;i.holidayNames=l?Vi(Vi([],l,!0),[o],!1):[o],n.set(a,i)}}}),n}function Ys(e,t,n,r,o){for(var a=o.length,i=[],s=0;s<a;s++){var c=e,l=o[s];l&&(c=Jo(c=Go(c=Ko(c,Ao(l)),Lo(l)),No(l)));var u=Go(e,(n+1)*r);Xo(c,t)&&to(c,u)&&null!=l&&i.push(l)}return i}function Ws(e){return e<10?"0".concat(e):"".concat(e)}function Hs(e,t){void 0===t&&(t=12);var n=Math.ceil(Eo(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function Qs(e){var t=e.getSeconds(),n=e.getMilliseconds();return bn(e.getTime()-1e3*t-n)}function zs(e){if(!Zr(e))throw new Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function Vs(e,t){if(!Zr(e)||!Zr(t))throw new Error("Invalid date received");return to(zs(e),zs(t))}function $s(e){return e.key===$i.Space}!function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"}($i||($i={}));var Ks,Gs=function(e){function t(t){var r=e.call(this,t)||this;return r.inputRef=a.createRef(),r.onTimeChange=function(e){var t,n;r.setState({time:e});var o=r.props.date,a=o instanceof Date&&!isNaN(+o)?o:new Date;if(null==e?void 0:e.includes(":")){var i=e.split(":"),s=i[0],c=i[1];a.setHours(Number(s)),a.setMinutes(Number(c))}null===(n=(t=r.props).onChange)||void 0===n||n.call(t,a)},r.renderTimeInput=function(){var e=r.state.time,t=r.props,o=t.date,i=t.timeString,s=t.customTimeInput;return s?(0,n.cloneElement)(s,{date:o,value:e,onChange:r.onTimeChange}):a.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:r.inputRef,onClick:function(){var e;null===(e=r.inputRef.current)||void 0===e||e.focus()},required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||i)}})},r.state={time:r.props.timeString},r}return Qi(t,e),t.getDerivedStateFromProps=function(e,t){return e.timeString!==t.time?{time:e.timeString}:null},t.prototype.render=function(){return a.createElement("div",{className:"react-datepicker__input-time-container"},a.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),a.createElement("div",{className:"react-datepicker-time__input-container"},a.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},t}(n.Component),Js=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dayEl=(0,n.createRef)(),t.handleClick=function(e){!t.isDisabled()&&t.props.onClick&&t.props.onClick(e)},t.handleMouseEnter=function(e){!t.isDisabled()&&t.props.onMouseEnter&&t.props.onMouseEnter(e)},t.handleOnKeyDown=function(e){var n,r;e.key===$i.Space&&(e.preventDefault(),e.key=$i.Enter),null===(r=(n=t.props).handleOnKeyDown)||void 0===r||r.call(n,e)},t.isSameDay=function(e){return hs(t.props.day,e)},t.isKeyboardSelected=function(){var e;if(t.props.disabledKeyboardNavigation)return!1;var n=t.props.selectsMultiple?null===(e=t.props.selectedDates)||void 0===e?void 0:e.some(function(e){return t.isSameDayOrWeek(e)}):t.isSameDayOrWeek(t.props.selected),r=t.props.preSelection&&t.isDisabled(t.props.preSelection);return!n&&t.isSameDayOrWeek(t.props.preSelection)&&!r},t.isDisabled=function(e){return void 0===e&&(e=t.props.day),xs(e,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(){return ks(t.props.day,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.isStartOfWeek=function(){return hs(t.props.day,as(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameWeek=function(e){return t.props.showWeekPicker&&hs(e,as(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameDayOrWeek=function(e){return t.isSameDay(e)||t.isSameWeek(e)},t.getHighLightedClass=function(){var e=t.props,n=e.day,r=e.highlightDates;if(!r)return!1;var o=ts(n,"MM.dd.yyyy");return r.get(o)},t.getHolidaysClass=function(){var e,n=t.props,r=n.day,o=n.holidays;if(!o)return[void 0];var a=ts(r,"MM.dd.yyyy");return o.has(a)?[null===(e=o.get(a))||void 0===e?void 0:e.className]:[void 0]},t.isInRange=function(){var e=t.props,n=e.day,r=e.startDate,o=e.endDate;return!(!r||!o)&&ys(n,r,o)},t.isInSelectingRange=function(){var e,n=t.props,r=n.day,o=n.selectsStart,a=n.selectsEnd,i=n.selectsRange,s=n.selectsDisabledDaysInRange,c=n.startDate,l=n.endDate,u=null!==(e=t.props.selectingDate)&&void 0!==e?e:t.props.preSelection;return!(!(o||a||i)||!u||!s&&t.isDisabled())&&(o&&l&&(to(u,l)||ms(u,l))?ys(r,u,l):(a&&c&&(Xo(u,c)||ms(u,c))||!(!i||!c||l||!Xo(u,c)&&!ms(u,c)))&&ys(r,c,u))},t.isSelectingRangeStart=function(){var e;if(!t.isInSelectingRange())return!1;var n=t.props,r=n.day,o=n.startDate,a=n.selectsStart,i=null!==(e=t.props.selectingDate)&&void 0!==e?e:t.props.preSelection;return hs(r,a?i:o)},t.isSelectingRangeEnd=function(){var e;if(!t.isInSelectingRange())return!1;var n=t.props,r=n.day,o=n.endDate,a=n.selectsEnd,i=n.selectsRange,s=null!==(e=t.props.selectingDate)&&void 0!==e?e:t.props.preSelection;return hs(r,a||i?s:o)},t.isRangeStart=function(){var e=t.props,n=e.day,r=e.startDate,o=e.endDate;return!(!r||!o)&&hs(r,n)},t.isRangeEnd=function(){var e=t.props,n=e.day,r=e.startDate,o=e.endDate;return!(!r||!o)&&hs(o,n)},t.isWeekend=function(){var e=function(e,t){return bn(e,t?.in).getDay()}(t.props.day);return 0===e||6===e},t.isAfterMonth=function(){return void 0!==t.props.month&&(t.props.month+1)%12===Po(t.props.day)},t.isBeforeMonth=function(){return void 0!==t.props.month&&(Po(t.props.day)+1)%12===t.props.month},t.isCurrentDay=function(){return t.isSameDay(Xi())},t.isSelected=function(){var e;return t.props.selectsMultiple?null===(e=t.props.selectedDates)||void 0===e?void 0:e.some(function(e){return t.isSameDayOrWeek(e)}):t.isSameDayOrWeek(t.props.selected)},t.getClassNames=function(e){return fn("react-datepicker__day",t.props.dayClassName?t.props.dayClassName(e):void 0,"react-datepicker__day--"+ts(t.props.day,"ddd",undefined),{"react-datepicker__day--disabled":t.isDisabled(),"react-datepicker__day--excluded":t.isExcluded(),"react-datepicker__day--selected":t.isSelected(),"react-datepicker__day--keyboard-selected":t.isKeyboardSelected(),"react-datepicker__day--range-start":t.isRangeStart(),"react-datepicker__day--range-end":t.isRangeEnd(),"react-datepicker__day--in-range":t.isInRange(),"react-datepicker__day--in-selecting-range":t.isInSelectingRange(),"react-datepicker__day--selecting-range-start":t.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":t.isSelectingRangeEnd(),"react-datepicker__day--today":t.isCurrentDay(),"react-datepicker__day--weekend":t.isWeekend(),"react-datepicker__day--outside-month":t.isAfterMonth()||t.isBeforeMonth()},t.getHighLightedClass(),t.getHolidaysClass())},t.getAriaLabel=function(){var e=t.props,n=e.day,r=e.ariaLabelPrefixWhenEnabled,o=void 0===r?"Choose":r,a=e.ariaLabelPrefixWhenDisabled,i=void 0===a?"Not available":a,s=t.isDisabled()||t.isExcluded()?i:o;return"".concat(s," ").concat(ts(n,"PPPP",t.props.locale))},t.getTitle=function(){var e=t.props,n=e.day,r=e.holidays,o=void 0===r?new Map:r,a=e.excludeDates,i=ts(n,"MM.dd.yyyy"),s=[];return o.has(i)&&s.push.apply(s,o.get(i).holidayNames),t.isExcluded()&&s.push(null==a?void 0:a.filter(function(e){return e instanceof Date?hs(e,n):hs(null==e?void 0:e.date,n)}).map(function(e){if(!(e instanceof Date))return null==e?void 0:e.message})),s.join(", ")},t.getTabIndex=function(){var e=t.props.selected,n=t.props.preSelection;return(!t.props.showWeekPicker||!t.props.showWeekNumber&&t.isStartOfWeek())&&(t.isKeyboardSelected()||t.isSameDay(e)&&hs(n,e))?0:-1},t.handleFocusDay=function(){var e;t.shouldFocusDay()&&(null===(e=t.dayEl.current)||void 0===e||e.focus({preventScroll:!0}))},t.renderDayContents=function(){return t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()||t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()?null:t.props.renderDayContents?t.props.renderDayContents(Zo(t.props.day),t.props.day):Zo(t.props.day)},t.render=function(){return a.createElement("div",{ref:t.dayEl,className:t.getClassNames(t.props.day),onKeyDown:t.handleOnKeyDown,onClick:t.handleClick,onMouseEnter:t.props.usePointerEvent?void 0:t.handleMouseEnter,onPointerEnter:t.props.usePointerEvent?t.handleMouseEnter:void 0,tabIndex:t.getTabIndex(),"aria-label":t.getAriaLabel(),role:"option",title:t.getTitle(),"aria-disabled":t.isDisabled(),"aria-current":t.isCurrentDay()?"date":void 0,"aria-selected":t.isSelected()||t.isInRange()},t.renderDayContents(),""!==t.getTitle()&&a.createElement("span",{className:"overlay"},t.getTitle()))},t}return Qi(t,e),t.prototype.componentDidMount=function(){this.handleFocusDay()},t.prototype.componentDidUpdate=function(){this.handleFocusDay()},t.prototype.shouldFocusDay=function(){var e=!1;return 0===this.getTabIndex()&&this.isSameDay(this.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(e=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(e=!1),this.isDayActiveElement()&&(e=!0),this.isDuplicateDay()&&(e=!1)),e},t.prototype.isDayActiveElement=function(){var e,t,n;return(null===(t=null===(e=this.props.containerRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.contains(document.activeElement))&&(null===(n=document.activeElement)||void 0===n?void 0:n.classList.contains("react-datepicker__day"))},t.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},t}(n.Component),Xs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.weekNumberEl=(0,n.createRef)(),t.handleClick=function(e){t.props.onClick&&t.props.onClick(e)},t.handleOnKeyDown=function(e){var n,r;e.key===$i.Space&&(e.preventDefault(),e.key=$i.Enter),null===(r=(n=t.props).handleOnKeyDown)||void 0===r||r.call(n,e)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!hs(t.props.date,t.props.selected)&&hs(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||hs(t.props.date,t.props.selected)&&hs(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(e){var n=!1;0===t.getTabIndex()&&!(null==e?void 0:e.isInputFocused)&&hs(t.props.date,t.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(n=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(n=!0)),n&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return Qi(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},t.prototype.componentDidUpdate=function(e){this.handleFocusWeekNumber(e)},t.prototype.render=function(){var e=this.props,n=e.weekNumber,r=e.isWeekDisabled,o=e.ariaLabelPrefix,i=void 0===o?t.defaultProps.ariaLabelPrefix:o,s=e.onClick,c={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!s&&!r,"react-datepicker__week-number--selected":!!s&&hs(this.props.date,this.props.selected)};return a.createElement("div",{ref:this.weekNumberEl,className:fn(c),"aria-label":"".concat(i," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},n)},t}(n.Component),Zs=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.isDisabled=function(e){return xs(e,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.handleDayClick=function(e,t){n.props.onDayClick&&n.props.onDayClick(e,t)},n.handleDayMouseEnter=function(e){n.props.onDayMouseEnter&&n.props.onDayMouseEnter(e)},n.handleWeekClick=function(e,r,o){for(var a,i,s,c=new Date(e),l=0;l<7;l++){var u=new Date(e);if(u.setDate(u.getDate()+l),!n.isDisabled(u)){c=u;break}}"function"==typeof n.props.onWeekSelect&&n.props.onWeekSelect(c,r,o),n.props.showWeekPicker&&n.handleDayClick(c,o),(null!==(a=n.props.shouldCloseOnSelect)&&void 0!==a?a:t.defaultProps.shouldCloseOnSelect)&&(null===(s=(i=n.props).setOpen)||void 0===s||s.call(i,!1))},n.formatWeekNumber=function(e){return n.props.formatWeekNumber?n.props.formatWeekNumber(e):function(e){return Fr(e)}(e)},n.isWeekDisabled=function(){for(var e=n.startOfWeek(),t=Br(e,6),r=new Date(e);r<=t;){if(!n.isDisabled(r))return!1;r=Br(r,1)}return!0},n.renderDays=function(){var e=n.startOfWeek(),r=[],o=n.formatWeekNumber(e);if(n.props.showWeekNumber){var i=n.props.onWeekSelect||n.props.showWeekPicker?n.handleWeekClick.bind(n,e,o):void 0;r.push(a.createElement(Xs,zi({key:"W"},t.defaultProps,n.props,{weekNumber:o,isWeekDisabled:n.isWeekDisabled(),date:e,onClick:i})))}return r.concat([0,1,2,3,4,5,6].map(function(r){var o=Br(e,r);return a.createElement(Js,zi({},t.defaultProps,n.props,{ariaLabelPrefixWhenEnabled:n.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:n.props.disabledDayAriaLabelPrefix,key:o.valueOf(),day:o,onClick:n.handleDayClick.bind(n,o),onMouseEnter:n.handleDayMouseEnter.bind(n,o)}))}))},n.startOfWeek=function(){return as(n.props.day,n.props.locale,n.props.calendarStartDay)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!hs(n.startOfWeek(),n.props.selected)&&hs(n.startOfWeek(),n.props.preSelection)},n}return Qi(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e={"react-datepicker__week":!0,"react-datepicker__week--selected":hs(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return a.createElement("div",{className:fn(e)},this.renderDays())},t}(n.Component),ec="two_columns",tc="three_columns",nc="four_columns",rc=((Ks={})[ec]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},Ks[tc]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},Ks[nc]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},Ks);function oc(e,t){return e?nc:t?ec:tc}var ac=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.MONTH_REFS=Vi([],Array(12),!0).map(function(){return(0,n.createRef)()}),t.QUARTER_REFS=Vi([],Array(4),!0).map(function(){return(0,n.createRef)()}),t.isDisabled=function(e){return xs(e,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(e){return ks(e,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.handleDayClick=function(e,n){var r,o;null===(o=(r=t.props).onDayClick)||void 0===o||o.call(r,e,n,t.props.orderInDisplay)},t.handleDayMouseEnter=function(e){var n,r;null===(r=(n=t.props).onDayMouseEnter)||void 0===r||r.call(n,e)},t.handleMouseLeave=function(){var e,n;null===(n=(e=t.props).onMouseLeave)||void 0===n||n.call(e)},t.isRangeStartMonth=function(e){var n=t.props,r=n.day,o=n.startDate,a=n.endDate;return!(!o||!a)&&ps(Oo(r,e),o)},t.isRangeStartQuarter=function(e){var n=t.props,r=n.day,o=n.startDate,a=n.endDate;return!(!o||!a)&&fs(Co(r,e),o)},t.isRangeEndMonth=function(e){var n=t.props,r=n.day,o=n.startDate,a=n.endDate;return!(!o||!a)&&ps(Oo(r,e),a)},t.isRangeEndQuarter=function(e){var n=t.props,r=n.day,o=n.startDate,a=n.endDate;return!(!o||!a)&&fs(Co(r,e),a)},t.isInSelectingRangeMonth=function(e){var n,r=t.props,o=r.day,a=r.selectsStart,i=r.selectsEnd,s=r.selectsRange,c=r.startDate,l=r.endDate,u=null!==(n=t.props.selectingDate)&&void 0!==n?n:t.props.preSelection;return!(!(a||i||s)||!u)&&(a&&l?_s(u,l,e,o):(i&&c||!(!s||!c||l))&&_s(c,u,e,o))},t.isSelectingMonthRangeStart=function(e){var n;if(!t.isInSelectingRangeMonth(e))return!1;var r=t.props,o=r.day,a=r.startDate,i=r.selectsStart,s=Oo(o,e),c=null!==(n=t.props.selectingDate)&&void 0!==n?n:t.props.preSelection;return ps(s,i?c:a)},t.isSelectingMonthRangeEnd=function(e){var n;if(!t.isInSelectingRangeMonth(e))return!1;var r=t.props,o=r.day,a=r.endDate,i=r.selectsEnd,s=r.selectsRange,c=Oo(o,e),l=null!==(n=t.props.selectingDate)&&void 0!==n?n:t.props.preSelection;return ps(c,i||s?l:a)},t.isInSelectingRangeQuarter=function(e){var n,r=t.props,o=r.day,a=r.selectsStart,i=r.selectsEnd,s=r.selectsRange,c=r.startDate,l=r.endDate,u=null!==(n=t.props.selectingDate)&&void 0!==n?n:t.props.preSelection;return!(!(a||i||s)||!u)&&(a&&l?Cs(u,l,e,o):(i&&c||!(!s||!c||l))&&Cs(c,u,e,o))},t.isWeekInMonth=function(e){var n=t.props.day,r=Br(e,6);return ps(e,n)||ps(r,n)},t.isCurrentMonth=function(e,t){return Eo(e)===Eo(Xi())&&t===Po(Xi())},t.isCurrentQuarter=function(e,t){return Eo(e)===Eo(Xi())&&t===Mo(Xi())},t.isSelectedMonth=function(e,t,n){return Po(n)===t&&Eo(e)===Eo(n)},t.isSelectMonthInList=function(e,n,r){return r.some(function(r){return t.isSelectedMonth(e,n,r)})},t.isSelectedQuarter=function(e,t,n){return Mo(e)===t&&Eo(e)===Eo(n)},t.isMonthSelected=function(){var e=t.props,n=e.day,r=e.selected,o=e.selectedDates,a=e.selectsMultiple,i=Po(n);return a?null==o?void 0:o.some(function(e){return t.isSelectedMonth(n,i,e)}):!!r&&t.isSelectedMonth(n,i,r)},t.renderWeeks=function(){for(var e=[],n=t.props.fixedHeight,r=0,o=!1,i=as(is(t.props.day),t.props.locale,t.props.calendarStartDay),s=t.props.selected?function(e){return t.props.showWeekPicker?as(e,t.props.locale,t.props.calendarStartDay):t.props.selected}(t.props.selected):void 0,c=t.props.preSelection?function(e){return t.props.showWeekPicker?as(e,t.props.locale,t.props.calendarStartDay):t.props.preSelection}(t.props.preSelection):void 0;e.push(a.createElement(Zs,zi({},t.props,{ariaLabelPrefix:t.props.weekAriaLabelPrefix,key:r,day:i,month:Po(t.props.day),onDayClick:t.handleDayClick,onDayMouseEnter:t.handleDayMouseEnter,selected:s,preSelection:c,showWeekNumber:t.props.showWeekNumbers}))),!o;){r++,i=ea(i,1);var l=n&&r>=6,u=!n&&!t.isWeekInMonth(i);if(l||u){if(!t.props.peekNextMonth)break;o=!0}}return e},t.onMonthClick=function(e,n){var r=t.isMonthDisabledForLabelDate(n),o=r.isDisabled,a=r.labelDate;o||t.handleDayClick(is(a),e)},t.onMonthMouseEnter=function(e){var n=t.isMonthDisabledForLabelDate(e),r=n.isDisabled,o=n.labelDate;r||t.handleDayMouseEnter(is(o))},t.handleMonthNavigation=function(e,n){var r,o,a,i;null===(o=(r=t.props).setPreSelection)||void 0===o||o.call(r,n),null===(i=null===(a=t.MONTH_REFS[e])||void 0===a?void 0:a.current)||void 0===i||i.focus()},t.handleKeyboardNavigation=function(e,n,r){var o,a=t.props,i=a.selected,s=a.preSelection,c=a.setPreSelection,l=a.minDate,u=a.maxDate,d=a.showFourColumnMonthYearPicker,p=a.showTwoColumnMonthYearPicker;if(s){var f=oc(d,p),h=t.getVerticalOffset(f),m=null===(o=rc[f])||void 0===o?void 0:o.grid,y=function(e,t,n){var r,o,a=t,i=n;switch(e){case $i.ArrowRight:a=Fo(t,1),i=11===n?0:n+1;break;case $i.ArrowLeft:a=Io(t,1),i=0===n?11:n-1;break;case $i.ArrowUp:a=Io(t,h),i=(null===(r=null==m?void 0:m[0])||void 0===r?void 0:r.includes(n))?n+12-h:n-h;break;case $i.ArrowDown:a=Fo(t,h),i=(null===(o=null==m?void 0:m[m.length-1])||void 0===o?void 0:o.includes(n))?n-12+h:n+h}return{newCalculatedDate:a,newCalculatedMonth:i}};if(n!==$i.Enter){var g=function(e,n,r){for(var o=e,a=!1,i=0,s=y(o,n,r),c=s.newCalculatedDate,d=s.newCalculatedMonth;!a;){if(i>=40){c=n,d=r;break}var p;l&&c<l&&(o=$i.ArrowRight,c=(p=y(o,c,d)).newCalculatedDate,d=p.newCalculatedMonth),u&&c>u&&(o=$i.ArrowLeft,c=(p=y(o,c,d)).newCalculatedDate,d=p.newCalculatedMonth),Ds(c,t.props)?(c=(p=y(o,c,d)).newCalculatedDate,d=p.newCalculatedMonth):a=!0,i++}return{newCalculatedDate:c,newCalculatedMonth:d}}(n,s,r),v=g.newCalculatedDate,b=g.newCalculatedMonth;switch(n){case $i.ArrowRight:case $i.ArrowLeft:case $i.ArrowUp:case $i.ArrowDown:t.handleMonthNavigation(b,v)}}else t.isMonthDisabled(r)||(t.onMonthClick(e,r),null==c||c(i))}},t.getVerticalOffset=function(e){var t,n;return null!==(n=null===(t=rc[e])||void 0===t?void 0:t.verticalNavigationOffset)&&void 0!==n?n:0},t.onMonthKeyDown=function(e,n){var r=t.props,o=r.disabledKeyboardNavigation,a=r.handleOnMonthKeyDown,i=e.key;i!==$i.Tab&&e.preventDefault(),o||t.handleKeyboardNavigation(e,i,n),a&&a(e)},t.onQuarterClick=function(e,n){var r=Co(t.props.day,n);js(r,t.props)||t.handleDayClick(cs(r),e)},t.onQuarterMouseEnter=function(e){var n=Co(t.props.day,e);js(n,t.props)||t.handleDayMouseEnter(cs(n))},t.handleQuarterNavigation=function(e,n){var r,o,a,i;t.isDisabled(n)||t.isExcluded(n)||(null===(o=(r=t.props).setPreSelection)||void 0===o||o.call(r,n),null===(i=null===(a=t.QUARTER_REFS[e-1])||void 0===a?void 0:a.current)||void 0===i||i.focus())},t.onQuarterKeyDown=function(e,n){var r,o,a=e.key;if(!t.props.disabledKeyboardNavigation)switch(a){case $i.Enter:t.onQuarterClick(e,n),null===(o=(r=t.props).setPreSelection)||void 0===o||o.call(r,t.props.selected);break;case $i.ArrowRight:if(!t.props.preSelection)break;t.handleQuarterNavigation(4===n?1:n+1,Bo(t.props.preSelection,1));break;case $i.ArrowLeft:if(!t.props.preSelection)break;t.handleQuarterNavigation(1===n?4:n-1,Uo(t.props.preSelection,1))}},t.isMonthDisabledForLabelDate=function(e){var n,r=t.props,o=r.day,a=r.minDate,i=r.maxDate,s=r.excludeDates,c=r.includeDates,l=Oo(o,e);return{isDisabled:null!==(n=(a||i||s||c)&&Ss(l,t.props))&&void 0!==n&&n,labelDate:l}},t.isMonthDisabled=function(e){return t.isMonthDisabledForLabelDate(e).isDisabled},t.getMonthClassNames=function(e){var n=t.props,r=n.day,o=n.startDate,a=n.endDate,i=n.preSelection,s=n.monthClassName,c=s?s(Oo(r,e)):void 0,l=t.getSelection();return fn("react-datepicker__month-text","react-datepicker__month-".concat(e),c,{"react-datepicker__month-text--disabled":t.isMonthDisabled(e),"react-datepicker__month-text--selected":l?t.isSelectMonthInList(r,e,l):void 0,"react-datepicker__month-text--keyboard-selected":!t.props.disabledKeyboardNavigation&&i&&t.isSelectedMonth(r,e,i)&&!t.isMonthSelected()&&!t.isMonthDisabled(e),"react-datepicker__month-text--in-selecting-range":t.isInSelectingRangeMonth(e),"react-datepicker__month-text--in-range":o&&a?_s(o,a,e,r):void 0,"react-datepicker__month-text--range-start":t.isRangeStartMonth(e),"react-datepicker__month-text--range-end":t.isRangeEndMonth(e),"react-datepicker__month-text--selecting-range-start":t.isSelectingMonthRangeStart(e),"react-datepicker__month-text--selecting-range-end":t.isSelectingMonthRangeEnd(e),"react-datepicker__month-text--today":t.isCurrentMonth(r,e)})},t.getTabIndex=function(e){if(null==t.props.preSelection)return"-1";var n=Po(t.props.preSelection),r=t.isMonthDisabledForLabelDate(n).isDisabled;return e!==n||r||t.props.disabledKeyboardNavigation?"-1":"0"},t.getQuarterTabIndex=function(e){if(null==t.props.preSelection)return"-1";var n=Mo(t.props.preSelection),r=js(t.props.day,t.props);return e!==n||r||t.props.disabledKeyboardNavigation?"-1":"0"},t.getAriaLabel=function(e){var n=t.props,r=n.chooseDayAriaLabelPrefix,o=void 0===r?"Choose":r,a=n.disabledDayAriaLabelPrefix,i=void 0===a?"Not available":a,s=n.day,c=n.locale,l=Oo(s,e),u=t.isDisabled(l)||t.isExcluded(l)?i:o;return"".concat(u," ").concat(ts(l,"MMMM yyyy",c))},t.getQuarterClassNames=function(e){var n=t.props,r=n.day,o=n.startDate,a=n.endDate,i=n.selected,s=n.minDate,c=n.maxDate,l=n.excludeDates,u=n.includeDates,d=n.filterDate,p=n.preSelection,f=n.disabledKeyboardNavigation,h=(s||c||l||u||d)&&js(Co(r,e),t.props);return fn("react-datepicker__quarter-text","react-datepicker__quarter-".concat(e),{"react-datepicker__quarter-text--disabled":h,"react-datepicker__quarter-text--selected":i?t.isSelectedQuarter(r,e,i):void 0,"react-datepicker__quarter-text--keyboard-selected":!f&&p&&t.isSelectedQuarter(r,e,p)&&!h,"react-datepicker__quarter-text--in-selecting-range":t.isInSelectingRangeQuarter(e),"react-datepicker__quarter-text--in-range":o&&a?Cs(o,a,e,r):void 0,"react-datepicker__quarter-text--range-start":t.isRangeStartQuarter(e),"react-datepicker__quarter-text--range-end":t.isRangeEndQuarter(e),"react-datepicker__quarter-text--today":t.isCurrentQuarter(r,e)})},t.getMonthContent=function(e){var n=t.props,r=n.showFullMonthYearPicker,o=n.renderMonthContent,a=n.locale,i=n.day,s=ws(e,a),c=bs(e,a);return o?o(e,s,c,i):r?c:s},t.getQuarterContent=function(e){var n,r,o,a=t.props,i=a.renderQuarterContent,s=(r=e,o=a.locale,ts(Co(Xi(),r),"QQQ",o));return null!==(n=null==i?void 0:i(e,s))&&void 0!==n?n:s},t.renderMonths=function(){var e,n=t.props,r=n.showTwoColumnMonthYearPicker,o=n.showFourColumnMonthYearPicker,i=n.day,s=n.selected,c=null===(e=rc[oc(o,r)])||void 0===e?void 0:e.grid;return null==c?void 0:c.map(function(e,n){return a.createElement("div",{className:"react-datepicker__month-wrapper",key:n},e.map(function(e,n){return a.createElement("div",{ref:t.MONTH_REFS[e],key:n,onClick:function(n){t.onMonthClick(n,e)},onKeyDown:function(n){$s(n)&&(n.preventDefault(),n.key=$i.Enter),t.onMonthKeyDown(n,e)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onMonthMouseEnter(e)},onPointerEnter:t.props.usePointerEvent?function(){return t.onMonthMouseEnter(e)}:void 0,tabIndex:Number(t.getTabIndex(e)),className:t.getMonthClassNames(e),"aria-disabled":t.isMonthDisabled(e),role:"option","aria-label":t.getAriaLabel(e),"aria-current":t.isCurrentMonth(i,e)?"date":void 0,"aria-selected":s?t.isSelectedMonth(i,e,s):void 0},t.getMonthContent(e))}))})},t.renderQuarters=function(){var e=t.props,n=e.day,r=e.selected;return a.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(e,o){return a.createElement("div",{key:o,ref:t.QUARTER_REFS[o],role:"option",onClick:function(n){t.onQuarterClick(n,e)},onKeyDown:function(n){t.onQuarterKeyDown(n,e)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onQuarterMouseEnter(e)},onPointerEnter:t.props.usePointerEvent?function(){return t.onQuarterMouseEnter(e)}:void 0,className:t.getQuarterClassNames(e),"aria-selected":r?t.isSelectedQuarter(n,e,r):void 0,tabIndex:Number(t.getQuarterTabIndex(e)),"aria-current":t.isCurrentQuarter(n,e)?"date":void 0},t.getQuarterContent(e))}))},t.getClassNames=function(){var e=t.props,n=e.selectingDate,r=e.selectsStart,o=e.selectsEnd;return fn("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||o)},{"react-datepicker__monthPicker":e.showMonthYearPicker},{"react-datepicker__quarterPicker":e.showQuarterYearPicker},{"react-datepicker__weekPicker":e.showWeekPicker})},t}return Qi(t,e),t.prototype.getSelection=function(){var e=this.props,t=e.selected,n=e.selectedDates;return e.selectsMultiple?n:t?[t]:void 0},t.prototype.render=function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,o=e.ariaLabelPrefix,i=void 0===o?"Month ":o,s=i?i.trim()+" ":"";return a.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(s).concat(ts(r,"MMMM, yyyy",this.props.locale)),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())},t}(n.Component),ic=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isSelectedMonth=function(e){return t.props.month===e},t.renderOptions=function(){return t.props.monthNames.map(function(e,n){return a.createElement("div",{className:t.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:e,onClick:t.onChange.bind(t,n),"aria-selected":t.isSelectedMonth(n)?"true":void 0},t.isSelectedMonth(n)?a.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",e)})},t.onChange=function(e){return t.props.onChange(e)},t.handleClickOutside=function(){return t.props.onCancel()},t}return Qi(t,e),t.prototype.render=function(){return a.createElement(Gi,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},t}(n.Component),sc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(e){return e.map(function(e,t){return a.createElement("option",{key:e,value:t},e)})},t.renderSelectMode=function(e){return a.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(e){return t.onChange(parseInt(e.target.value))}},t.renderSelectOptions(e))},t.renderReadView=function(e,n){return a.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},a.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),a.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[t.props.month]))},t.renderDropdown=function(e){return a.createElement(ic,zi({key:"dropdown"},t.props,{monthNames:e,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(e){var n=t.state.dropdownVisible,r=[t.renderReadView(!n,e)];return n&&r.unshift(t.renderDropdown(e)),r},t.onChange=function(e){t.toggleDropdown(),e!==t.props.month&&t.props.onChange(e)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return Qi(t,e),t.prototype.render=function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return ws(e,t.props.locale)}:function(e){return bs(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return a.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component);function cc(e,t){for(var n=[],r=is(e),o=is(t);!Xo(r,o);)n.push(Xi(r)),r=Fo(r,1);return n}var lc=function(e){function t(t){var n=e.call(this,t)||this;return n.renderOptions=function(){return n.state.monthYearsList.map(function(e){var t=ta(e),r=ds(n.props.date,e)&&ps(n.props.date,e);return a.createElement("div",{className:r?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:n.onChange.bind(n,t),"aria-selected":r?"true":void 0},r?a.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",ts(e,n.props.dateFormat,n.props.locale))})},n.onChange=function(e){return n.props.onChange(e)},n.handleClickOutside=function(){n.props.onCancel()},n.state={monthYearsList:cc(n.props.minDate,n.props.maxDate)},n}return Qi(t,e),t.prototype.render=function(){var e=fn({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return a.createElement(Gi,{className:e,onClickOutside:this.handleClickOutside},this.renderOptions())},t}(n.Component),uc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=is(t.props.minDate),n=is(t.props.maxDate),r=[];!Xo(e,n);){var o=ta(e);r.push(a.createElement("option",{key:o,value:o},ts(e,t.props.dateFormat,t.props.locale))),e=Fo(e,1)}return r},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return a.createElement("select",{value:ta(is(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){var n=ts(t.props.date,t.props.dateFormat,t.props.locale);return a.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},a.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),a.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))},t.renderDropdown=function(){return a.createElement(lc,zi({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,n=[t.renderReadView(!e)];return e&&n.unshift(t.renderDropdown()),n},t.onChange=function(e){t.toggleDropdown();var n=Xi(e);ds(t.props.date,n)&&ps(t.props.date,n)||t.props.onChange(n)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return Qi(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return a.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component),dc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var e,r,o;n.list&&(n.list.scrollTop=null!==(o=n.centerLi&&t.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-(null!==(r=null===(e=n.header)||void 0===e?void 0:e.clientHeight)&&void 0!==r?r:0):n.list.clientHeight,n.centerLi))&&void 0!==o?o:0)})},n.handleClick=function(e){var t,r;(n.props.minTime||n.props.maxTime)&&Ms(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&Rs(e,n.props)||null===(r=(t=n.props).onChange)||void 0===r||r.call(t,e)},n.isSelectedTime=function(e){return n.props.selected&&(t=e,Qs(n.props.selected).getTime()===Qs(t).getTime());var t},n.isDisabledTime=function(e){return(n.props.minTime||n.props.maxTime)&&Ms(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&Rs(e,n.props)},n.liClasses=function(e){var r,o=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(e):void 0];return n.isSelectedTime(e)&&o.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(e)&&o.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(3600*Ao(e)+60*Lo(e)+No(e))%(60*(null!==(r=n.props.intervals)&&void 0!==r?r:t.defaultProps.intervals))!=0&&o.push("react-datepicker__time-list-item--injected"),o.join(" ")},n.handleOnKeyDown=function(e,t){var r,o;e.key===$i.Space&&(e.preventDefault(),e.key=$i.Enter),(e.key===$i.ArrowUp||e.key===$i.ArrowLeft)&&e.target instanceof HTMLElement&&e.target.previousSibling&&(e.preventDefault(),e.target.previousSibling instanceof HTMLElement&&e.target.previousSibling.focus()),(e.key===$i.ArrowDown||e.key===$i.ArrowRight)&&e.target instanceof HTMLElement&&e.target.nextSibling&&(e.preventDefault(),e.target.nextSibling instanceof HTMLElement&&e.target.nextSibling.focus()),e.key===$i.Enter&&n.handleClick(t),null===(o=(r=n.props).handleOnKeyDown)||void 0===o||o.call(r,e)},n.renderTimes=function(){for(var e,r=[],o="string"==typeof n.props.format?n.props.format:"p",i=null!==(e=n.props.intervals)&&void 0!==e?e:t.defaultProps.intervals,s=n.props.selected||n.props.openToDate||Xi(),c=os(s),l=n.props.injectTimes&&n.props.injectTimes.sort(function(e,t){return e.getTime()-t.getTime()}),u=60*function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+n-+t)/36e5)}(s),d=u/i,p=0;p<d;p++){var f=Go(c,p*i);if(r.push(f),l){var h=Ys(c,f,p,i,l);r=r.concat(h)}}var m=r.reduce(function(e,t){return t.getTime()<=s.getTime()?t:e},r[0]);return r.map(function(e){return a.createElement("li",{key:e.valueOf(),onClick:n.handleClick.bind(n,e),className:n.liClasses(e),ref:function(t){e===m&&(n.centerLi=t)},onKeyDown:function(t){n.handleOnKeyDown(t,e)},tabIndex:e===m?0:-1,role:"option","aria-selected":n.isSelectedTime(e)?"true":void 0,"aria-disabled":n.isDisabledTime(e)?"true":void 0},ts(e,o,n.props.locale))})},n.renderTimeCaption=function(){return!1===n.props.showTimeCaption?a.createElement(a.Fragment,null):a.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(n.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(e){n.header=e}},a.createElement("div",{className:"react-datepicker-time__header"},n.props.timeCaption))},n}return Qi(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeightChanges()},t.prototype.componentWillUnmount=function(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()},t.prototype.observeDatePickerHeightChanges=function(){var e=this,t=this.props.monthRef;this.updateContainerHeight(),t&&(this.resizeObserver=new ResizeObserver(function(){e.updateContainerHeight()}),this.resizeObserver.observe(t))},t.prototype.updateContainerHeight=function(){this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},t.prototype.render=function(){var e,n=this,r=this.state.height;return a.createElement("div",{className:"react-datepicker__time-container ".concat((null!==(e=this.props.todayButton)&&void 0!==e?e:t.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),a.createElement("div",{className:"react-datepicker__time"},a.createElement("div",{className:"react-datepicker__time-box"},a.createElement("ul",{className:"react-datepicker__time-list",ref:function(e){n.list=e},style:r?{height:r}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},t.calcCenterPosition=function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)},t}(n.Component),pc=function(e){function t(t){var r=e.call(this,t)||this;return r.YEAR_REFS=Vi([],Array(r.props.yearItemNumber),!0).map(function(){return(0,n.createRef)()}),r.isDisabled=function(e){return xs(e,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(e){return ks(e,{excludeDates:r.props.excludeDates})},r.selectingDate=function(){var e;return null!==(e=r.props.selectingDate)&&void 0!==e?e:r.props.preSelection},r.updateFocusOnPaginate=function(e){window.requestAnimationFrame(function(){var t,n;null===(n=null===(t=r.YEAR_REFS[e])||void 0===t?void 0:t.current)||void 0===n||n.focus()})},r.handleYearClick=function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)},r.handleYearNavigation=function(e,t){var n,o,a,i,s=r.props,c=s.date,l=s.yearItemNumber;if(void 0!==c&&void 0!==l){var u=Hs(c,l).startPeriod;r.isDisabled(t)||r.isExcluded(t)||(null===(o=(n=r.props).setPreSelection)||void 0===o||o.call(n,t),e-u<0?r.updateFocusOnPaginate(l-(u-e)):e-u>=l?r.updateFocusOnPaginate(Math.abs(l-(e-u))):null===(i=null===(a=r.YEAR_REFS[e-u])||void 0===a?void 0:a.current)||void 0===i||i.focus())}},r.isSameDay=function(e,t){return hs(e,t)},r.isCurrentYear=function(e){return e===Eo(Xi())},r.isRangeStart=function(e){return r.props.startDate&&r.props.endDate&&ds(na(Xi(),e),r.props.startDate)},r.isRangeEnd=function(e){return r.props.startDate&&r.props.endDate&&ds(na(Xi(),e),r.props.endDate)},r.isInRange=function(e){return Ts(e,r.props.startDate,r.props.endDate)},r.isInSelectingRange=function(e){var t=r.props,n=t.selectsStart,o=t.selectsEnd,a=t.selectsRange,i=t.startDate,s=t.endDate;return!(!(n||o||a)||!r.selectingDate())&&(n&&s?Ts(e,r.selectingDate(),s):(o&&i||!(!a||!i||s))&&Ts(e,i,r.selectingDate()))},r.isSelectingRangeStart=function(e){var t;if(!r.isInSelectingRange(e))return!1;var n=r.props,o=n.startDate,a=n.selectsStart;return ds(na(Xi(),e),a?null!==(t=r.selectingDate())&&void 0!==t?t:null:null!=o?o:null)},r.isSelectingRangeEnd=function(e){var t;if(!r.isInSelectingRange(e))return!1;var n=r.props,o=n.endDate,a=n.selectsEnd,i=n.selectsRange;return ds(na(Xi(),e),a||i?null!==(t=r.selectingDate())&&void 0!==t?t:null:null!=o?o:null)},r.isKeyboardSelected=function(e){if(void 0!==r.props.date&&null!=r.props.selected&&null!=r.props.preSelection){var t=r.props,n=t.minDate,o=t.maxDate,a=t.excludeDates,i=t.includeDates,s=t.filterDate,c=ss(na(r.props.date,e)),l=(n||o||a||i||s)&&Os(e,r.props);return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!hs(c,ss(r.props.selected))&&hs(c,ss(r.props.preSelection))&&!l}},r.isSelectedYear=function(e){var t=r.props,n=t.selectsMultiple,o=t.selected,a=t.selectedDates;return n?null==a?void 0:a.some(function(t){return e===Eo(t)}):!!o&&e===Eo(o)},r.onYearClick=function(e,t){var n=r.props.date;void 0!==n&&r.handleYearClick(ss(na(n,t)),e)},r.onYearKeyDown=function(e,t){var n,o,a=e.key,i=r.props,s=i.date,c=i.yearItemNumber,l=i.handleOnKeyDown;if(a!==$i.Tab&&e.preventDefault(),!r.props.disabledKeyboardNavigation)switch(a){case $i.Enter:if(null==r.props.selected)break;r.onYearClick(e,t),null===(o=(n=r.props).setPreSelection)||void 0===o||o.call(n,r.props.selected);break;case $i.ArrowRight:if(null==r.props.preSelection)break;r.handleYearNavigation(t+1,Wo(r.props.preSelection,1));break;case $i.ArrowLeft:if(null==r.props.preSelection)break;r.handleYearNavigation(t-1,Ho(r.props.preSelection,1));break;case $i.ArrowUp:if(void 0===s||void 0===c||null==r.props.preSelection)break;var u=Hs(s,c).startPeriod;if((f=t-(p=3))<u){var d=c%p;t>=u&&t<u+d?p=d:p+=d,f=t-p}r.handleYearNavigation(f,Ho(r.props.preSelection,p));break;case $i.ArrowDown:if(void 0===s||void 0===c||null==r.props.preSelection)break;var p,f,h=Hs(s,c).endPeriod;(f=t+(p=3))>h&&(d=c%p,t<=h&&t>h-d?p=d:p+=d,f=t+p),r.handleYearNavigation(f,Wo(r.props.preSelection,p))}l&&l(e)},r.getYearClassNames=function(e){var t=r.props,n=t.date,o=t.minDate,a=t.maxDate,i=t.excludeDates,s=t.includeDates,c=t.filterDate,l=t.yearClassName;return fn("react-datepicker__year-text","react-datepicker__year-".concat(e),n?null==l?void 0:l(na(n,e)):void 0,{"react-datepicker__year-text--selected":r.isSelectedYear(e),"react-datepicker__year-text--disabled":(o||a||i||s||c)&&Os(e,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(e),"react-datepicker__year-text--range-start":r.isRangeStart(e),"react-datepicker__year-text--range-end":r.isRangeEnd(e),"react-datepicker__year-text--in-range":r.isInRange(e),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(e),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(e),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(e),"react-datepicker__year-text--today":r.isCurrentYear(e)})},r.getYearTabIndex=function(e){if(r.props.disabledKeyboardNavigation||null==r.props.preSelection)return"-1";var t=Eo(r.props.preSelection),n=Os(e,r.props);return e!==t||n?"-1":"0"},r.getYearContent=function(e){return r.props.renderYearContent?r.props.renderYearContent(e):e},r}return Qi(t,e),t.prototype.render=function(){var e=this,t=[],n=this.props,r=n.date,o=n.yearItemNumber,i=n.onYearMouseEnter,s=n.onYearMouseLeave;if(void 0===r)return null;for(var c=Hs(r,o),l=c.startPeriod,u=c.endPeriod,d=function(n){t.push(a.createElement("div",{ref:p.YEAR_REFS[n-l],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){$s(t)&&(t.preventDefault(),t.key=$i.Enter),e.onYearKeyDown(t,n)},tabIndex:Number(p.getYearTabIndex(n)),className:p.getYearClassNames(n),onMouseEnter:p.props.usePointerEvent?void 0:function(e){return i(e,n)},onPointerEnter:p.props.usePointerEvent?function(e){return i(e,n)}:void 0,onMouseLeave:p.props.usePointerEvent?void 0:function(e){return s(e,n)},onPointerLeave:p.props.usePointerEvent?function(e){return s(e,n)}:void 0,key:n,"aria-current":p.isCurrentYear(n)?"date":void 0},p.getYearContent(n)))},p=this,f=l;f<=u;f++)d(f);return a.createElement("div",{className:"react-datepicker__year"},a.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},t))},t}(n.Component);function fc(e,t,n,r){for(var o=[],a=0;a<2*t+1;a++){var i=e+t-a,s=!0;n&&(s=Eo(n)<=i),r&&s&&(s=Eo(r)>=i),s&&o.push(i)}return o}var hc=function(e){function t(t){var r=e.call(this,t)||this;r.renderOptions=function(){var e=r.props.year,t=r.state.yearsList.map(function(t){return a.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:r.onChange.bind(r,t),"aria-selected":e===t?"true":void 0},e===t?a.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)}),n=r.props.minDate?Eo(r.props.minDate):null,o=r.props.maxDate?Eo(r.props.maxDate):null;return o&&r.state.yearsList.find(function(e){return e===o})||t.unshift(a.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},a.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find(function(e){return e===n})||t.push(a.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},a.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t},r.onChange=function(e){r.props.onChange(e)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(e){var t=r.state.yearsList.map(function(t){return t+e});r.setState({yearsList:t})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var o=t.yearDropdownItemNumber,i=t.scrollableYearDropdown,s=o||(i?10:5);return r.state={yearsList:fc(r.props.year,s,r.props.minDate,r.props.maxDate)},r.dropdownRef=(0,n.createRef)(),r}return Qi(t,e),t.prototype.componentDidMount=function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find(function(e){return e.ariaSelected}):null;e.scrollTop=n&&n instanceof HTMLElement?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}},t.prototype.render=function(){var e=fn({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return a.createElement(Gi,{className:e,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},t}(n.Component),mc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=t.props.minDate?Eo(t.props.minDate):1900,n=t.props.maxDate?Eo(t.props.maxDate):2100,r=[],o=e;o<=n;o++)r.push(a.createElement("option",{key:o,value:o},o));return r},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return a.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){return a.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(e){return t.toggleDropdown(e)}},a.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),a.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return a.createElement(hc,zi({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,n=[t.renderReadView(!e)];return e&&n.unshift(t.renderDropdown()),n},t.onChange=function(e){t.toggleDropdown(),e!==t.props.year&&t.props.onChange(e)},t.toggleDropdown=function(e){t.setState({dropdownVisible:!t.state.dropdownVisible},function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,e)})},t.handleYearChange=function(e,n){var r;null===(r=t.onSelect)||void 0===r||r.call(t,e,n),t.setOpen()},t.onSelect=function(e,n){var r,o;null===(o=(r=t.props).onSelect)||void 0===o||o.call(r,e,n)},t.setOpen=function(){var e,n;null===(n=(e=t.props).setOpen)||void 0===n||n.call(e,!0)},t}return Qi(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return a.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component),yc=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],gc=function(e){function t(r){var o=e.call(this,r)||this;return o.monthContainer=void 0,o.handleClickOutside=function(e){o.props.onClickOutside(e)},o.setClickOutsideRef=function(){return o.containerRef.current},o.handleDropdownFocus=function(e){var t,n,r,a;r=e.target,a=(r.className||"").split(/\s+/),yc.some(function(e){return a.indexOf(e)>=0})&&(null===(n=(t=o.props).onDropdownFocus)||void 0===n||n.call(t,e))},o.getDateInView=function(){var e=o.props,t=e.preSelection,n=e.selected,r=e.openToDate,a=Is(o.props),i=qs(o.props),s=Xi();return r||n||t||(a&&to(s,a)?a:i&&Xo(s,i)?i:s)},o.increaseMonth=function(){o.setState(function(e){return{date:Fo(e.date,1)}},function(){return o.handleMonthChange(o.state.date)})},o.decreaseMonth=function(){o.setState(function(e){return{date:Io(e.date,1)}},function(){return o.handleMonthChange(o.state.date)})},o.handleDayClick=function(e,t,n){o.props.onSelect(e,t,n),o.props.setPreSelection&&o.props.setPreSelection(e)},o.handleDayMouseEnter=function(e){o.setState({selectingDate:e}),o.props.onDayMouseEnter&&o.props.onDayMouseEnter(e)},o.handleMonthMouseLeave=function(){o.setState({selectingDate:void 0}),o.props.onMonthMouseLeave&&o.props.onMonthMouseLeave()},o.handleYearMouseEnter=function(e,t){o.setState({selectingDate:na(Xi(),t)}),o.props.onYearMouseEnter&&o.props.onYearMouseEnter(e,t)},o.handleYearMouseLeave=function(e,t){o.props.onYearMouseLeave&&o.props.onYearMouseLeave(e,t)},o.handleYearChange=function(e){var t,n,r,a;null===(n=(t=o.props).onYearChange)||void 0===n||n.call(t,e),o.setState({isRenderAriaLiveMessage:!0}),o.props.adjustDateOnChange&&(o.props.onSelect(e),null===(a=(r=o.props).setOpen)||void 0===a||a.call(r,!0)),o.props.setPreSelection&&o.props.setPreSelection(e)},o.getEnabledPreSelectionDateForMonth=function(e){if(!xs(e,o.props))return e;for(var t=is(e),n=function(e,t,n){const[r,o]=no(n?.in,e,t),a=ra(r,o),i=Math.abs(oo(r,o));r.setDate(r.getDate()-a*i);const s=a*(i-Number(ra(r,o)===-a));return 0===s?0:s}(function(e){return jo(e)}(e),t),r=null,a=0;a<=n;a++){var i=Br(t,a);if(!xs(i,o.props)){r=i;break}}return r},o.handleMonthChange=function(e){var t,n,r,a=null!==(t=o.getEnabledPreSelectionDateForMonth(e))&&void 0!==t?t:e;o.handleCustomMonthChange(a),o.props.adjustDateOnChange&&(o.props.onSelect(a),null===(r=(n=o.props).setOpen)||void 0===r||r.call(n,!0)),o.props.setPreSelection&&o.props.setPreSelection(a)},o.handleCustomMonthChange=function(e){var t,n;null===(n=(t=o.props).onMonthChange)||void 0===n||n.call(t,e),o.setState({isRenderAriaLiveMessage:!0})},o.handleMonthYearChange=function(e){o.handleYearChange(e),o.handleMonthChange(e)},o.changeYear=function(e){o.setState(function(t){return{date:na(t.date,Number(e))}},function(){return o.handleYearChange(o.state.date)})},o.changeMonth=function(e){o.setState(function(t){return{date:Oo(t.date,Number(e))}},function(){return o.handleMonthChange(o.state.date)})},o.changeMonthYear=function(e){o.setState(function(t){return{date:na(Oo(t.date,Po(e)),Eo(e))}},function(){return o.handleMonthYearChange(o.state.date)})},o.header=function(e){void 0===e&&(e=o.state.date);var t=as(e,o.props.locale,o.props.calendarStartDay),n=[];return o.props.showWeekNumbers&&n.push(a.createElement("div",{key:"W",className:"react-datepicker__day-name"},o.props.weekLabel||"#")),n.concat([0,1,2,3,4,5,6].map(function(e){var n=Br(t,e),r=o.formatWeekday(n,o.props.locale),i=o.props.weekDayClassName?o.props.weekDayClassName(n):void 0;return a.createElement("div",{key:e,"aria-label":ts(n,"EEEE",o.props.locale),className:fn("react-datepicker__day-name",i)},r)}))},o.formatWeekday=function(e,t){return o.props.formatWeekDay?function(e,t,n){return t(ts(e,"EEEE",n))}(e,o.props.formatWeekDay,t):o.props.useWeekdaysShort?function(e,t){return ts(e,"EEE",t)}(e,t):function(e,t){return ts(e,"EEEEEE",t)}(e,t)},o.decreaseYear=function(){o.setState(function(e){var n;return{date:Ho(e.date,o.props.showYearPicker?null!==(n=o.props.yearItemNumber)&&void 0!==n?n:t.defaultProps.yearItemNumber:1)}},function(){return o.handleYearChange(o.state.date)})},o.clearSelectingDate=function(){o.setState({selectingDate:void 0})},o.renderPreviousButton=function(){var e,n,r;if(!o.props.renderCustomHeader){var i,s=null!==(e=o.props.monthsShown)&&void 0!==e?e:t.defaultProps.monthsShown,c=o.props.showPreviousMonths?s-1:0,l=null!==(n=o.props.monthSelectedIn)&&void 0!==n?n:c,u=Io(o.state.date,l);switch(!0){case o.props.showMonthYearPicker:i=Ns(o.state.date,o.props);break;case o.props.showYearPicker:i=function(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.yearItemNumber,a=void 0===o?12:o,i=Hs(ss(Ho(e,a)),a).endPeriod,s=r&&Eo(r);return s&&s>i||!1}(o.state.date,o.props);break;case o.props.showQuarterYearPicker:i=function(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.includeDates,a=Uo(ao(e),1);return r&&Yo(r,a)>0||o&&o.every(function(e){return Yo(e,a)>0})||!1}(o.state.date,o.props);break;default:i=As(u,o.props)}if(((null!==(r=o.props.forceShowMonthNavigation)&&void 0!==r?r:t.defaultProps.forceShowMonthNavigation)||o.props.showDisabledMonthNavigation||!i)&&!o.props.showTimeSelectOnly){var d=["react-datepicker__navigation","react-datepicker__navigation--previous"],p=o.decreaseMonth;(o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker)&&(p=o.decreaseYear),i&&o.props.showDisabledMonthNavigation&&(d.push("react-datepicker__navigation--previous--disabled"),p=void 0);var f=o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker,h=o.props,m=h.previousMonthButtonLabel,y=void 0===m?t.defaultProps.previousMonthButtonLabel:m,g=h.previousYearButtonLabel,v=void 0===g?t.defaultProps.previousYearButtonLabel:g,b=o.props,w=b.previousMonthAriaLabel,x=void 0===w?"string"==typeof y?y:"Previous Month":w,k=b.previousYearAriaLabel,S=void 0===k?"string"==typeof v?v:"Previous Year":k;return a.createElement("button",{type:"button",className:d.join(" "),onClick:p,onKeyDown:o.props.handleOnKeyDown,"aria-label":f?S:x},a.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},f?v:y))}}},o.increaseYear=function(){o.setState(function(e){var n;return{date:Wo(e.date,o.props.showYearPicker?null!==(n=o.props.yearItemNumber)&&void 0!==n?n:t.defaultProps.yearItemNumber:1)}},function(){return o.handleYearChange(o.state.date)})},o.renderNextButton=function(){var e;if(!o.props.renderCustomHeader){var n;switch(!0){case o.props.showMonthYearPicker:n=Fs(o.state.date,o.props);break;case o.props.showYearPicker:n=function(e,t){var n=void 0===t?{}:t,r=n.maxDate,o=n.yearItemNumber,a=void 0===o?12:o,i=Hs(Wo(e,a),a).startPeriod,s=r&&Eo(r);return s&&s<i||!1}(o.state.date,o.props);break;case o.props.showQuarterYearPicker:n=function(e,t){var n=void 0===t?{}:t,r=n.maxDate,o=n.includeDates,a=Bo(Ro(e),1);return r&&Yo(a,r)>0||o&&o.every(function(e){return Yo(a,e)>0})||!1}(o.state.date,o.props);break;default:n=Ls(o.state.date,o.props)}if(((null!==(e=o.props.forceShowMonthNavigation)&&void 0!==e?e:t.defaultProps.forceShowMonthNavigation)||o.props.showDisabledMonthNavigation||!n)&&!o.props.showTimeSelectOnly){var r=["react-datepicker__navigation","react-datepicker__navigation--next"];o.props.showTimeSelect&&r.push("react-datepicker__navigation--next--with-time"),o.props.todayButton&&r.push("react-datepicker__navigation--next--with-today-button");var i=o.increaseMonth;(o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker)&&(i=o.increaseYear),n&&o.props.showDisabledMonthNavigation&&(r.push("react-datepicker__navigation--next--disabled"),i=void 0);var s=o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker,c=o.props,l=c.nextMonthButtonLabel,u=void 0===l?t.defaultProps.nextMonthButtonLabel:l,d=c.nextYearButtonLabel,p=void 0===d?t.defaultProps.nextYearButtonLabel:d,f=o.props,h=f.nextMonthAriaLabel,m=void 0===h?"string"==typeof u?u:"Next Month":h,y=f.nextYearAriaLabel,g=void 0===y?"string"==typeof p?p:"Next Year":y;return a.createElement("button",{type:"button",className:r.join(" "),onClick:i,onKeyDown:o.props.handleOnKeyDown,"aria-label":s?g:m},a.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},s?p:u))}}},o.renderCurrentMonth=function(e){void 0===e&&(e=o.state.date);var t=["react-datepicker__current-month"];return o.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),o.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),o.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),a.createElement("h2",{className:t.join(" ")},ts(e,o.props.dateFormat,o.props.locale))},o.renderYearDropdown=function(e){if(void 0===e&&(e=!1),o.props.showYearDropdown&&!e)return a.createElement(mc,zi({},t.defaultProps,o.props,{date:o.state.date,onChange:o.changeYear,year:Eo(o.state.date)}))},o.renderMonthDropdown=function(e){if(void 0===e&&(e=!1),o.props.showMonthDropdown&&!e)return a.createElement(sc,zi({},t.defaultProps,o.props,{month:Po(o.state.date),onChange:o.changeMonth}))},o.renderMonthYearDropdown=function(e){if(void 0===e&&(e=!1),o.props.showMonthYearDropdown&&!e)return a.createElement(uc,zi({},t.defaultProps,o.props,{date:o.state.date,onChange:o.changeMonthYear}))},o.handleTodayButtonClick=function(e){o.props.onSelect(ls(),e),o.props.setPreSelection&&o.props.setPreSelection(ls())},o.renderTodayButton=function(){if(o.props.todayButton&&!o.props.showTimeSelectOnly)return a.createElement("div",{className:"react-datepicker__today-button",onClick:o.handleTodayButtonClick},o.props.todayButton)},o.renderDefaultHeader=function(e){var t=e.monthDate,n=e.i;return a.createElement("div",{className:"react-datepicker__header ".concat(o.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},o.renderCurrentMonth(t),a.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(o.props.dropdownMode),onFocus:o.handleDropdownFocus},o.renderMonthDropdown(0!==n),o.renderMonthYearDropdown(0!==n),o.renderYearDropdown(0!==n)),a.createElement("div",{className:"react-datepicker__day-names"},o.header(t)))},o.renderCustomHeader=function(e){var t,n,r=e.monthDate,i=e.i;if(o.props.showTimeSelect&&!o.state.monthContainer||o.props.showTimeSelectOnly)return null;var s=As(o.state.date,o.props),c=Ls(o.state.date,o.props),l=Ns(o.state.date,o.props),u=Fs(o.state.date,o.props),d=!o.props.showMonthYearPicker&&!o.props.showQuarterYearPicker&&!o.props.showYearPicker;return a.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:o.props.onDropdownFocus},null===(n=(t=o.props).renderCustomHeader)||void 0===n?void 0:n.call(t,zi(zi({},o.state),{customHeaderCount:i,monthDate:r,changeMonth:o.changeMonth,changeYear:o.changeYear,decreaseMonth:o.decreaseMonth,increaseMonth:o.increaseMonth,decreaseYear:o.decreaseYear,increaseYear:o.increaseYear,prevMonthButtonDisabled:s,nextMonthButtonDisabled:c,prevYearButtonDisabled:l,nextYearButtonDisabled:u})),d&&a.createElement("div",{className:"react-datepicker__day-names"},o.header(r)))},o.renderYearHeader=function(e){var n=e.monthDate,r=o.props,i=r.showYearPicker,s=r.yearItemNumber,c=Hs(n,void 0===s?t.defaultProps.yearItemNumber:s),l=c.startPeriod,u=c.endPeriod;return a.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},i?"".concat(l," - ").concat(u):Eo(n))},o.renderHeader=function(e){var t=e.monthDate,n=e.i,r={monthDate:t,i:void 0===n?0:n};switch(!0){case void 0!==o.props.renderCustomHeader:return o.renderCustomHeader(r);case o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker:return o.renderYearHeader(r);default:return o.renderDefaultHeader(r)}},o.renderMonths=function(){var e,n;if(!o.props.showTimeSelectOnly&&!o.props.showYearPicker){for(var r=[],i=null!==(e=o.props.monthsShown)&&void 0!==e?e:t.defaultProps.monthsShown,s=o.props.showPreviousMonths?i-1:0,c=o.props.showMonthYearPicker||o.props.showQuarterYearPicker?Wo(o.state.date,s):Io(o.state.date,s),l=null!==(n=o.props.monthSelectedIn)&&void 0!==n?n:s,u=0;u<i;++u){var d=u-l+s,p=o.props.showMonthYearPicker||o.props.showQuarterYearPicker?Wo(c,d):Fo(c,d),f="month-".concat(u),h=u<i-1,m=u>0;r.push(a.createElement("div",{key:f,ref:function(e){o.monthContainer=null!=e?e:void 0},className:"react-datepicker__month-container"},o.renderHeader({monthDate:p,i:u}),a.createElement(ac,zi({},t.defaultProps,o.props,{containerRef:o.containerRef,ariaLabelPrefix:o.props.monthAriaLabelPrefix,day:p,onDayClick:o.handleDayClick,handleOnKeyDown:o.props.handleOnDayKeyDown,handleOnMonthKeyDown:o.props.handleOnKeyDown,onDayMouseEnter:o.handleDayMouseEnter,onMouseLeave:o.handleMonthMouseLeave,orderInDisplay:u,selectingDate:o.state.selectingDate,monthShowsDuplicateDaysEnd:h,monthShowsDuplicateDaysStart:m}))))}return r}},o.renderYears=function(){if(!o.props.showTimeSelectOnly)return o.props.showYearPicker?a.createElement("div",{className:"react-datepicker__year--container"},o.renderHeader({monthDate:o.state.date}),a.createElement(pc,zi({},t.defaultProps,o.props,{selectingDate:o.state.selectingDate,date:o.state.date,onDayClick:o.handleDayClick,clearSelectingDate:o.clearSelectingDate,onYearMouseEnter:o.handleYearMouseEnter,onYearMouseLeave:o.handleYearMouseLeave}))):void 0},o.renderTimeSection=function(){if(o.props.showTimeSelect&&(o.state.monthContainer||o.props.showTimeSelectOnly))return a.createElement(dc,zi({},t.defaultProps,o.props,{onChange:o.props.onTimeChange,format:o.props.timeFormat,intervals:o.props.timeIntervals,monthRef:o.state.monthContainer}))},o.renderInputTimeSection=function(){var e=o.props.selected?new Date(o.props.selected):void 0,n=e&&es(e)&&Boolean(o.props.selected)?"".concat(Ws(e.getHours()),":").concat(Ws(e.getMinutes())):"";if(o.props.showTimeInput)return a.createElement(Gs,zi({},t.defaultProps,o.props,{date:e,timeString:n,onChange:o.props.onTimeChange}))},o.renderAriaLiveRegion=function(){var e,n,r=Hs(o.state.date,null!==(e=o.props.yearItemNumber)&&void 0!==e?e:t.defaultProps.yearItemNumber),i=r.startPeriod,s=r.endPeriod;return n=o.props.showYearPicker?"".concat(i," - ").concat(s):o.props.showMonthYearPicker||o.props.showQuarterYearPicker?Eo(o.state.date):"".concat(bs(Po(o.state.date),o.props.locale)," ").concat(Eo(o.state.date)),a.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o.state.isRenderAriaLiveMessage&&n)},o.renderChildren=function(){if(o.props.children)return a.createElement("div",{className:"react-datepicker__children-container"},o.props.children)},o.containerRef=(0,n.createRef)(),o.state={date:o.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},o}return Qi(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:12}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))},t.prototype.componentDidUpdate=function(e){var t=this;if(!this.props.preSelection||hs(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!hs(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!ps(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return n&&t.handleCustomMonthChange(t.state.date)})}},t.prototype.render=function(){var e=this.props.container||Ki;return a.createElement(Gi,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},a.createElement("div",{style:{display:"contents"},ref:this.containerRef},a.createElement(e,{className:fn("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},t}(n.Component),vc=function(e){var t=e.icon,n=e.className,r=void 0===n?"":n,o=e.onClick,i="react-datepicker__calendar-icon";if("string"==typeof t)return a.createElement("i",{className:"".concat(i," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:o});if(a.isValidElement(t)){var s=t;return a.cloneElement(s,{className:"".concat(s.props.className||""," ").concat(i," ").concat(r),onClick:function(e){"function"==typeof s.props.onClick&&s.props.onClick(e),"function"==typeof o&&o(e)}})}return a.createElement("svg",{className:"".concat(i," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},a.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},bc=function(e){function t(t){var n=e.call(this,t)||this;return n.portalRoot=null,n.el=document.createElement("div"),n}return Qi(t,e),t.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},t.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},t.prototype.render=function(){return a.createPortal(this.props.children,this.el)},t}(n.Component),wc=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&-1!==e.tabIndex},xc=function(e){function t(t){var r=e.call(this,t)||this;return r.getTabChildren=function(){var e;return Array.prototype.slice.call(null===(e=r.tabLoopRef.current)||void 0===e?void 0:e.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(wc)},r.handleFocusStart=function(){var e=r.getTabChildren();e&&e.length>1&&e[e.length-1].focus()},r.handleFocusEnd=function(){var e=r.getTabChildren();e&&e.length>1&&e[0].focus()},r.tabLoopRef=(0,n.createRef)(),r}return Qi(t,e),t.prototype.render=function(){var e;return(null!==(e=this.props.enableTabLoop)&&void 0!==e?e:t.defaultProps.enableTabLoop)?a.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},a.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,a.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},t.defaultProps={enableTabLoop:!0},t}(n.Component),kc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qi(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.props,r=e.className,o=e.wrapperClassName,i=e.hidePopper,s=void 0===i?t.defaultProps.hidePopper:i,c=e.popperComponent,l=e.targetComponent,u=e.enableTabLoop,d=e.popperOnKeyDown,p=e.portalId,f=e.portalHost,h=e.popperProps,m=e.showArrow,y=void 0;if(!s){var g=fn("react-datepicker-popper",r);y=a.createElement(xc,{enableTabLoop:u},a.createElement("div",{ref:h.refs.setFloating,style:h.floatingStyles,className:g,"data-placement":h.placement,onKeyDown:d},c,m&&a.createElement(qi,{ref:h.arrowRef,context:h.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(y=(0,n.createElement)(this.props.popperContainer,{},y)),p&&!s&&(y=a.createElement(bc,{portalId:p,portalHost:f},y));var v=fn("react-datepicker-wrapper",o);return a.createElement(a.Fragment,null,a.createElement("div",{ref:h.refs.setReference,className:v},l),y)},t}(n.Component),Sc=function(e){return function(t){var r,o="boolean"!=typeof t.hidePopper||t.hidePopper,i=(0,n.useRef)(null),s=Wi(zi({open:!o,whileElementsMounted:xi,placement:t.popperPlacement,middleware:Vi([Ri({padding:15}),Pi(10),Mi({element:i})],null!==(r=t.popperModifiers)&&void 0!==r?r:[],!0)},t.popperProps)),c=zi(zi({},t),{hidePopper:o,popperProps:zi(zi({},s),{arrowRef:i})});return a.createElement(e,zi({},c))}}(kc),_c="react-datepicker-ignore-onclickoutside",Dc="Date input not valid.",jc=function(e){function t(r){var o=e.call(this,r)||this;return o.calendar=null,o.input=null,o.getPreSelection=function(){return o.props.openToDate?o.props.openToDate:o.props.selectsEnd&&o.props.startDate?o.props.startDate:o.props.selectsStart&&o.props.endDate?o.props.endDate:Xi()},o.modifyHolidays=function(){var e;return null===(e=o.props.holidays)||void 0===e?void 0:e.reduce(function(e,t){var n=new Date(t.date);return es(n)?Vi(Vi([],e,!0),[zi(zi({},t),{date:n})],!1):e},[])},o.calcInitialState=function(){var e,t=o.getPreSelection(),n=Is(o.props),r=qs(o.props),a=n&&to(t,os(n))?n:r&&Xo(t,us(r))?r:t;return{open:o.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:null!==(e=o.props.selectsRange?o.props.startDate:o.props.selected)&&void 0!==e?e:a,highlightDates:Bs(o.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},o.resetHiddenStatus=function(){o.setState(zi(zi({},o.state),{wasHidden:!1}))},o.setHiddenStatus=function(){o.setState(zi(zi({},o.state),{wasHidden:!0}))},o.setHiddenStateOnVisibilityHidden=function(){"hidden"===document.visibilityState&&o.setHiddenStatus()},o.clearPreventFocusTimeout=function(){o.preventFocusTimeout&&clearTimeout(o.preventFocusTimeout)},o.setFocus=function(){var e,t;null===(t=null===(e=o.input)||void 0===e?void 0:e.focus)||void 0===t||t.call(e,{preventScroll:!0})},o.setBlur=function(){var e,t;null===(t=null===(e=o.input)||void 0===e?void 0:e.blur)||void 0===t||t.call(e),o.cancelFocusInput()},o.deferBlur=function(){requestAnimationFrame(function(){o.setBlur()})},o.setOpen=function(e,t){void 0===t&&(t=!1),o.setState({open:e,preSelection:e&&o.state.open?o.state.preSelection:o.calcInitialState().preSelection,lastPreSelectChange:Oc},function(){e||o.setState(function(e){return{focused:!!t&&e.focused}},function(){!t&&o.deferBlur(),o.setState({inputValue:null})})})},o.inputOk=function(){return Zr(o.state.preSelection)},o.isCalendarOpen=function(){return void 0===o.props.open?o.state.open&&!o.props.disabled&&!o.props.readOnly:o.props.open},o.handleFocus=function(e){var t,n,r=o.state.wasHidden,a=!r||o.state.open;r&&o.resetHiddenStatus(),o.state.preventFocus||(null===(n=(t=o.props).onFocus)||void 0===n||n.call(t,e),!a||o.props.preventOpenOnFocus||o.props.readOnly||o.setOpen(!0)),o.setState({focused:!0})},o.sendFocusBackToInput=function(){o.preventFocusTimeout&&o.clearPreventFocusTimeout(),o.setState({preventFocus:!0},function(){o.preventFocusTimeout=setTimeout(function(){o.setFocus(),o.setState({preventFocus:!1})})})},o.cancelFocusInput=function(){clearTimeout(o.inputFocusTimeout),o.inputFocusTimeout=void 0},o.deferFocusInput=function(){o.cancelFocusInput(),o.inputFocusTimeout=setTimeout(function(){return o.setFocus()},1)},o.handleDropdownFocus=function(){o.cancelFocusInput()},o.handleBlur=function(e){var t,n;(!o.state.open||o.props.withPortal||o.props.showTimeInput)&&(null===(n=(t=o.props).onBlur)||void 0===n||n.call(t,e)),o.state.open&&!1===o.props.open&&o.setOpen(!1),o.setState({focused:!1})},o.handleCalendarClickOutside=function(e){var t,n;o.props.inline||o.setOpen(!1),null===(n=(t=o.props).onClickOutside)||void 0===n||n.call(t,e),o.props.withPortal&&e.preventDefault()},o.handleChange=function(){for(var e,n,r,a,i,s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];var l=s[0];if(!o.props.onChangeRaw||(o.props.onChangeRaw.apply(o,s),l&&"function"==typeof l.isDefaultPrevented&&!l.isDefaultPrevented())){o.setState({inputValue:(null==l?void 0:l.target)instanceof HTMLInputElement?l.target.value:null,lastPreSelectChange:Tc});var u=o.props,d=u.selectsRange,p=u.startDate,f=u.endDate,h=null!==(e=o.props.dateFormat)&&void 0!==e?e:t.defaultProps.dateFormat,m=null!==(n=o.props.strictParsing)&&void 0!==n?n:t.defaultProps.strictParsing,y=(null==l?void 0:l.target)instanceof HTMLInputElement?l.target.value:"";if(d){var g=y.split(h.includes("-")?" - ":"-",2).map(function(e){return e.trim()}),v=g[0],b=g[1],w=Zi(null!=v?v:"",h,o.props.locale,m),x=Zi(null!=b?b:"",h,o.props.locale,m),k=(null==p?void 0:p.getTime())!==(null==w?void 0:w.getTime()),S=(null==f?void 0:f.getTime())!==(null==x?void 0:x.getTime());if(!k&&!S)return;if(w&&xs(w,o.props))return;if(x&&xs(x,o.props))return;null===(a=(r=o.props).onChange)||void 0===a||a.call(r,[w,x],l)}else{var _=Zi(y,h,o.props.locale,m,null!==(i=o.props.selected)&&void 0!==i?i:void 0);!_&&y||o.setSelected(_,l,!0)}}},o.handleSelect=function(e,t,n){if(!o.props.readOnly)if(o.props.shouldCloseOnSelect&&!o.props.showTimeSelect&&o.sendFocusBackToInput(),o.props.onChangeRaw&&o.props.onChangeRaw(t),o.setSelected(e,t,!1,n),o.props.showDateSelect&&o.setState({isRenderAriaLiveMessage:!0}),!o.props.shouldCloseOnSelect||o.props.showTimeSelect)o.setPreSelection(e);else if(!o.props.inline){o.props.selectsRange||o.setOpen(!1);var r=o.props,a=r.startDate,i=r.endDate;!a||i||!o.props.swapRange&&Vs(e,a)||o.setOpen(!1)}},o.setSelected=function(e,t,n,r){var a,i,s=e;if(o.props.showYearPicker){if(null!==s&&Os(Eo(s),o.props))return}else if(o.props.showMonthYearPicker){if(null!==s&&Ss(s,o.props))return}else if(null!==s&&xs(s,o.props))return;var c=o.props,l=c.onChange,u=c.selectsRange,d=c.startDate,p=c.endDate,f=c.selectsMultiple,h=c.selectedDates,m=c.minTime,y=c.swapRange;if(!ms(o.props.selected,s)||o.props.allowSameDay||u||f)if(null!==s&&(!o.props.selected||n&&(o.props.showTimeSelect||o.props.showTimeSelectOnly||o.props.showTimeInput)||(s=rs(s,{hour:Ao(o.props.selected),minute:Lo(o.props.selected),second:No(o.props.selected)})),n||!o.props.showTimeSelect&&!o.props.showTimeSelectOnly||m&&(s=rs(s,{hour:m.getHours(),minute:m.getMinutes(),second:m.getSeconds()})),o.props.inline||o.setState({preSelection:s}),o.props.focusSelectedMonth||o.setState({monthSelectedIn:r})),u){var g=d&&p;d||p?d&&!p&&(null===s?null==l||l([null,null],t):Vs(s,d)?y?null==l||l([s,d],t):null==l||l([s,null],t):null==l||l([d,s],t)):null==l||l([s,null],t),g&&(null==l||l([s,null],t))}else if(f){if(null!==s)if(null==h?void 0:h.length)if(h.some(function(e){return hs(e,s)})){var v=h.filter(function(e){return!hs(e,s)});null==l||l(v,t)}else null==l||l(Vi(Vi([],h,!0),[s],!1),t);else null==l||l([s],t)}else null==l||l(s,t);n||(null===(i=(a=o.props).onSelect)||void 0===i||i.call(a,s,t),o.setState({inputValue:null}))},o.setPreSelection=function(e){if(!o.props.readOnly){var t=Zr(o.props.minDate),n=Zr(o.props.maxDate),r=!0;if(e){var a=os(e);if(t&&n)r=ys(e,o.props.minDate,o.props.maxDate);else if(t){var i=os(o.props.minDate);r=Xo(e,i)||ms(a,i)}else if(n){var s=us(o.props.maxDate);r=to(e,s)||ms(a,s)}}r&&o.setState({preSelection:e})}},o.toggleCalendar=function(){o.setOpen(!o.state.open)},o.handleTimeChange=function(e){var t,n;if(!o.props.selectsRange&&!o.props.selectsMultiple){var r=o.props.selected?o.props.selected:o.getPreSelection(),a=o.props.selected?e:rs(r,{hour:Ao(e),minute:Lo(e)});o.setState({preSelection:a}),null===(n=(t=o.props).onChange)||void 0===n||n.call(t,a),o.props.shouldCloseOnSelect&&!o.props.showTimeInput&&(o.sendFocusBackToInput(),o.setOpen(!1)),o.props.showTimeInput&&o.setOpen(!0),(o.props.showTimeSelectOnly||o.props.showTimeSelect)&&o.setState({isRenderAriaLiveMessage:!0}),o.setState({inputValue:null})}},o.onInputClick=function(){var e,t;o.props.disabled||o.props.readOnly||o.setOpen(!0),null===(t=(e=o.props).onInputClick)||void 0===t||t.call(e)},o.onInputKeyDown=function(e){var t,n,r,a,i,s;null===(n=(t=o.props).onKeyDown)||void 0===n||n.call(t,e);var c=e.key;if(o.state.open||o.props.inline||o.props.preventOpenOnFocus){if(o.state.open){if(c===$i.ArrowDown||c===$i.ArrowUp){e.preventDefault();var l=o.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":o.props.showWeekPicker&&o.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':o.props.showFullMonthYearPicker||o.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',u=(null===(a=o.calendar)||void 0===a?void 0:a.containerRef.current)instanceof Element&&o.calendar.containerRef.current.querySelector(l);return void(u instanceof HTMLElement&&u.focus({preventScroll:!0}))}var d=Xi(o.state.preSelection);c===$i.Enter?(e.preventDefault(),e.target.blur(),o.inputOk()&&o.state.lastPreSelectChange===Oc?(o.handleSelect(d,e),!o.props.shouldCloseOnSelect&&o.setPreSelection(d)):o.setOpen(!1)):c===$i.Escape?(e.preventDefault(),e.target.blur(),o.sendFocusBackToInput(),o.setOpen(!1)):c===$i.Tab&&o.setOpen(!1),o.inputOk()||null===(s=(i=o.props).onInputError)||void 0===s||s.call(i,{code:1,msg:Dc})}}else c!==$i.ArrowDown&&c!==$i.ArrowUp&&c!==$i.Enter||null===(r=o.onInputClick)||void 0===r||r.call(o)},o.onPortalKeyDown=function(e){e.key===$i.Escape&&(e.preventDefault(),o.setState({preventFocus:!0},function(){o.setOpen(!1),setTimeout(function(){o.setFocus(),o.setState({preventFocus:!1})})}))},o.onDayKeyDown=function(e){var t,n,r,a,i,s,c=o.props,l=c.minDate,u=c.maxDate,d=c.disabledKeyboardNavigation,p=c.showWeekPicker,f=c.shouldCloseOnSelect,h=c.locale,m=c.calendarStartDay,y=c.adjustDateOnChange,g=c.inline;if(null===(n=(t=o.props).onKeyDown)||void 0===n||n.call(t,e),!d){var v=e.key,b=e.shiftKey,w=Xi(o.state.preSelection),x=function(e,t){var n=t;switch(e){case $i.ArrowRight:n=p?ea(t,1):Br(t,1);break;case $i.ArrowLeft:n=p?oa(t,1):function(e,t,n){return Br(e,-t,n)}(t,1);break;case $i.ArrowUp:n=oa(t,1);break;case $i.ArrowDown:n=ea(t,1);break;case $i.PageUp:n=b?Ho(t,1):Io(t,1);break;case $i.PageDown:n=b?Wo(t,1):Fo(t,1);break;case $i.Home:n=as(t,h,m);break;case $i.End:n=function(e){return function(e,t){const n=$n(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=bn(e,t?.in),a=o.getDay(),i=6+(a<r?-7:0)-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}(e)}(t)}return n};if(v===$i.Enter)return e.preventDefault(),o.handleSelect(w,e),void(!f&&o.setPreSelection(w));if(v===$i.Escape)return e.preventDefault(),o.setOpen(!1),void(o.inputOk()||null===(a=(r=o.props).onInputError)||void 0===a||a.call(r,{code:1,msg:Dc}));var k=null;switch(v){case $i.ArrowLeft:case $i.ArrowRight:case $i.ArrowUp:case $i.ArrowDown:case $i.PageUp:case $i.PageDown:case $i.Home:case $i.End:k=function(e,t){for(var n=e,r=!1,a=0,i=x(e,t);!r;){if(a>=40){i=t;break}l&&i<l&&(n=$i.ArrowRight,i=xs(l,o.props)?x(n,i):l),u&&i>u&&(n=$i.ArrowLeft,i=xs(u,o.props)?x(n,i):u),xs(i,o.props)?(n!==$i.PageUp&&n!==$i.Home||(n=$i.ArrowRight),n!==$i.PageDown&&n!==$i.End||(n=$i.ArrowLeft),i=x(n,i)):r=!0,a++}return i}(v,w)}if(k){if(e.preventDefault(),o.setState({lastPreSelectChange:Oc}),y&&o.setSelected(k),o.setPreSelection(k),g){var S=Po(w),_=Po(k),D=Eo(w),j=Eo(k);S!==_||D!==j?o.setState({shouldFocusDayInline:!0}):o.setState({shouldFocusDayInline:!1})}}else null===(s=(i=o.props).onInputError)||void 0===s||s.call(i,{code:1,msg:Dc})}},o.onPopperKeyDown=function(e){e.key===$i.Escape&&(e.preventDefault(),o.sendFocusBackToInput(),o.setOpen(!1))},o.onClearClick=function(e){e&&e.preventDefault&&e.preventDefault(),o.sendFocusBackToInput();var t=o.props,n=t.selectsRange,r=t.onChange;n?null==r||r([null,null],e):null==r||r(null,e),o.setState({inputValue:null})},o.clear=function(){o.onClearClick()},o.onScroll=function(e){"boolean"==typeof o.props.closeOnScroll&&o.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||o.setOpen(!1):"function"==typeof o.props.closeOnScroll&&o.props.closeOnScroll(e)&&o.setOpen(!1)},o.renderCalendar=function(){var e,n;return o.props.inline||o.isCalendarOpen()?a.createElement(gc,zi({showMonthYearDropdown:void 0,ref:function(e){o.calendar=e}},o.props,o.state,{setOpen:o.setOpen,dateFormat:null!==(e=o.props.dateFormatCalendar)&&void 0!==e?e:t.defaultProps.dateFormatCalendar,onSelect:o.handleSelect,onClickOutside:o.handleCalendarClickOutside,holidays:Us(o.modifyHolidays()),outsideClickIgnoreClass:_c,onDropdownFocus:o.handleDropdownFocus,onTimeChange:o.handleTimeChange,className:o.props.calendarClassName,container:o.props.calendarContainer,handleOnKeyDown:o.props.onKeyDown,handleOnDayKeyDown:o.onDayKeyDown,setPreSelection:o.setPreSelection,dropdownMode:null!==(n=o.props.dropdownMode)&&void 0!==n?n:t.defaultProps.dropdownMode}),o.props.children):null},o.renderAriaLiveRegion=function(){var e,n=o.props,r=n.dateFormat,i=void 0===r?t.defaultProps.dateFormat:r,s=n.locale,c=o.props.showTimeInput||o.props.showTimeSelect?"PPPPp":"PPPP";return e=o.props.selectsRange?"Selected start date: ".concat(ns(o.props.startDate,{dateFormat:c,locale:s}),". ").concat(o.props.endDate?"End date: "+ns(o.props.endDate,{dateFormat:c,locale:s}):""):o.props.showTimeSelectOnly?"Selected time: ".concat(ns(o.props.selected,{dateFormat:i,locale:s})):o.props.showYearPicker?"Selected year: ".concat(ns(o.props.selected,{dateFormat:"yyyy",locale:s})):o.props.showMonthYearPicker?"Selected month: ".concat(ns(o.props.selected,{dateFormat:"MMMM yyyy",locale:s})):o.props.showQuarterYearPicker?"Selected quarter: ".concat(ns(o.props.selected,{dateFormat:"yyyy, QQQ",locale:s})):"Selected date: ".concat(ns(o.props.selected,{dateFormat:c,locale:s})),a.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)},o.renderDateInput=function(){var e,r,i,s=fn(o.props.className,((e={})[_c]=o.state.open,e)),c=o.props.customInput||a.createElement("input",{type:"text"}),l=o.props.customInputRef||"ref",u=o.props,d=u.dateFormat,p=void 0===d?t.defaultProps.dateFormat:d,f=u.locale,h="string"==typeof o.props.value?o.props.value:"string"==typeof o.state.inputValue?o.state.inputValue:o.props.selectsRange?function(e,t,n){if(!e)return"";var r=ns(e,n),o=t?ns(t,n):"";return"".concat(r).concat(" - ").concat(o)}(o.props.startDate,o.props.endDate,{dateFormat:p,locale:f}):o.props.selectsMultiple?function(e,t){if(!(null==e?void 0:e.length))return"";var n=e[0]?ns(e[0],t):"";if(1===e.length)return n;if(2===e.length&&e[1]){var r=ns(e[1],t);return"".concat(n,", ").concat(r)}var o=e.length-1;return"".concat(n," (+").concat(o,")")}(null!==(i=o.props.selectedDates)&&void 0!==i?i:[],{dateFormat:p,locale:f}):ns(o.props.selected,{dateFormat:p,locale:f});return(0,n.cloneElement)(c,((r={})[l]=function(e){o.input=e},r.value=h,r.onBlur=o.handleBlur,r.onChange=o.handleChange,r.onClick=o.onInputClick,r.onFocus=o.handleFocus,r.onKeyDown=o.onInputKeyDown,r.id=o.props.id,r.name=o.props.name,r.form=o.props.form,r.autoFocus=o.props.autoFocus,r.placeholder=o.props.placeholderText,r.disabled=o.props.disabled,r.autoComplete=o.props.autoComplete,r.className=fn(c.props.className,s),r.title=o.props.title,r.readOnly=o.props.readOnly,r.required=o.props.required,r.tabIndex=o.props.tabIndex,r["aria-describedby"]=o.props.ariaDescribedBy,r["aria-invalid"]=o.props.ariaInvalid,r["aria-labelledby"]=o.props.ariaLabelledBy,r["aria-required"]=o.props.ariaRequired,r))},o.renderClearButton=function(){var e=o.props,t=e.isClearable,n=e.disabled,r=e.selected,i=e.startDate,s=e.endDate,c=e.clearButtonTitle,l=e.clearButtonClassName,u=void 0===l?"":l,d=e.ariaLabelClose,p=void 0===d?"Close":d,f=e.selectedDates,h=e.readOnly;return!t||h||null==r&&null==i&&null==s&&!(null==f?void 0:f.length)?null:a.createElement("button",{type:"button",className:fn("react-datepicker__close-icon",u,{"react-datepicker__close-icon--disabled":n}),disabled:n,"aria-label":p,onClick:o.onClearClick,title:c,tabIndex:-1})},o.state=o.calcInitialState(),o.preventFocusTimeout=void 0,o}return Qi(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},t.prototype.componentDidUpdate=function(e,t){var n,r,o,a,i,s;e.inline&&(i=e.selected,s=this.props.selected,i&&s?Po(i)!==Po(s)||Eo(i)!==Eo(s):i!==s)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Bs(this.props.highlightDates)}),t.focused||ms(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&(null===(r=(n=this.props).onCalendarOpen)||void 0===r||r.call(n)),!0===t.open&&!1===this.state.open&&(null===(a=(o=this.props).onCalendarClose)||void 0===a||a.call(o)))},t.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},t.prototype.renderInputContainer=function(){var e=this.props,t=e.showIcon,n=e.icon,r=e.calendarIconClassname,o=e.calendarIconClassName,i=e.toggleCalendarOnIconClick,s=this.state.open;return r&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),a.createElement("div",{className:"react-datepicker__input-container".concat(t?" react-datepicker__view-calendar-icon":"")},t&&a.createElement(vc,zi({icon:n,className:fn(o,!o&&r,s&&"react-datepicker-ignore-onclickoutside")},i?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},t.prototype.render=function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?a.createElement(xc,{enableTabLoop:this.props.enableTabLoop},a.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=a.createElement(bc,zi({portalId:this.props.portalId},this.props),t)),a.createElement("div",null,this.renderInputContainer(),t)}return a.createElement(Sc,zi({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:e,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},t}(n.Component),Tc="input",Oc="navigate";function Cc(e){return Cc="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},Cc(e)}function Ec(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 Pc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ec(Object(n),!0).forEach(function(t){Rc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rc(e,t,n){return(t=function(e){var t=function(e){if("object"!=Cc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mc=(0,n.forwardRef)(function(e,t){var r=e.label,o=e.vertical,a=e.filterDate,i=e.disabled,s=e.datePlaceholder,c=e.onChange,l=e.value,u=e.onClick;return(0,n.jsx)(n.FormField,{label:r,vertical:o,className:dn()("".concat(Ot,"__filter-date"),Rc({},"".concat(Ot,"__filter-input-filled"),!!a)),ref:t,children:function(e){var t=e.getId,r=e.getName;return(0,n.jsx)(n.Input,{id:t(),name:r(),className:"".concat(Ot,"__filter-moment"),disabled:i,placeholder:s,onClick:u,value:l,suffix:(0,n.jsxs)(n.ButtonGroup,{children:[l?(0,n.jsx)(n.Button,{ghost:!0,size:"fill",icon:"cross-mark",disabled:i,className:"".concat(Ot,"__filter-clear-btn"),onClick:function(e){c(null),e.stopPropagation()}}):null,(0,n.jsx)(n.Button,{ghost:!0,disabled:i,icon:"calendar-clock",onClick:u})]})})}})});Mc.propTypes={filterDate:s().string.isRequired,disabled:s().bool.isRequired,onChange:s().func.isRequired,label:s().elementType,vertical:s().bool,datePlaceholder:s().string,value:s().string,onClick:s().func},Mc.defaultProps={label:null,vertical:!1,datePlaceholder:"",value:"",onClick:function(){}},Mc.displayName="InputDate";var Ac=function(e){var t=e.filterDate,r=e.disabled,o=e.firstDayOfWeek,a=e.onChange,i=e.label,s=e.vertical,c=e.showTimeInput,l=e.minDate,u=e.maxDate,d=(0,n.useTranslate)("Filter.date"),p=d("placeholder"),f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"].map(function(e){return d("datePicker.months.".concat(e))}),h=["Su","Mo","Tu","We","Th","Fr","Sa"].map(function(e){return d("datePicker.days.".concat(e))}),m=d("datePicker.timeLabel"),y=Pc(Pc({},Fn),{},{localize:Pc(Pc({},Fn.localize),{},{month:function(e){return f[e]},day:function(e){return h[e]}}),options:{weekStartsOn:parseInt(o)}});return(0,n.jsx)(jc,{selected:t?new Date(1e3*t):null,onChange:function(e){return a(new Date(e).getTime()/1e3)},timeInputLabel:m,dateFormat:"yyyy-MM-dd HH:mm",minDate:l?new Date(1e3*l):null,maxDate:u?new Date(1e3*u):null,customInput:(0,n.jsx)(Mc,{datePlaceholder:p,disabled:r,filterDate:t,label:i,vertical:s,onChange:a}),locale:y,showTimeInput:c,renderMonthContent:function(e){return f[e]},popperPlacement:"bottom-end",useWeekdaysShort:!0})};Ac.propTypes={filterDate:s().string.isRequired,firstDayOfWeek:s().string.isRequired,disabled:s().bool.isRequired,onChange:s().func.isRequired,label:s().any,vertical:s().bool,showTimeInput:s().bool,minDate:s().number,maxDate:s().number},Ac.defaultProps={label:null,vertical:void 0,showTimeInput:!0,minDate:void 0,maxDate:(new Date).getTime()/1e3};const Lc=Ac;var Nc=function(e){var t=e.description,r=e.disabled,o=e.onChange,a=(0,n.useTranslate)("Filter.message");return(0,n.jsx)(n.Tooltip,{title:t,children:(0,n.jsx)(n.SearchBar,{className:"".concat(Ot,"__filter-message"),onSearch:o,inputProps:{placeholder:a("placeholder"),disabled:r},minWidth:200,collapsable:!0,responsive:!1})})};Nc.propTypes={description:s().any.isRequired,disabled:s().bool.isRequired,onChange:s().func.isRequired};const Fc=Nc;var Ic=function(e){var t=e.options,r=e.disabled,o=e.onChange,a=e.selectKey,i=e.label,s=e.selectedValue,c=e.size,l=e.vertical,u=e.multiple;return(0,n.jsx)(n.FormField,{label:i,vertical:l,className:"".concat(Ot,"__filter-").concat(a),children:function(e){var i=e.getId,l=e.getName,d=e.getValue,p=e.setValue;return(0,n.jsx)(n.Select,{id:i(),name:l(),value:d(s),size:c,multiple:u,onChange:function(e){p(e),o(e)},placeholder:(0,n.jsx)(n.Translate,{content:"Filter.".concat(a,".placeholder")}),disabled:r,clearable:!0,children:Object.keys(t).map(function(e){return(0,n.jsx)(n.SelectOption,{value:e,children:t[e]},"".concat(a,"-").concat(e))})})}})};Ic.propTypes={options:s().array.isRequired,disabled:s().bool.isRequired,onChange:s().func.isRequired,selectKey:s().string.isRequired,label:s().any,selectedValue:s().oneOfType([s().string,s().arrayOf(s().string)]),size:s().string,vertical:s().bool,multiple:s().bool},Ic.defaultProps={label:void 0,selectedValue:void 0,size:void 0,vertical:void 0,multiple:!1};const qc=Ic;var Bc=function(e,t){return JSON.stringify(e.sort())===JSON.stringify(t.sort())};function Uc(e,t,r,o){var a=this,i=(0,n.useRef)(null),s=(0,n.useRef)(0),c=(0,n.useRef)(0),l=(0,n.useRef)(null),u=(0,n.useRef)([]),d=(0,n.useRef)(),p=(0,n.useRef)(),f=(0,n.useRef)(e),h=(0,n.useRef)(!0);f.current=e;var m="undefined"!=typeof window,y=!t&&0!==t&&m;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(r=r||{}).leading,v=!("trailing"in r)||!!r.trailing,b="maxWait"in r,w="debounceOnServer"in r&&!!r.debounceOnServer,x=b?Math.max(+r.maxWait||0,t):null;(0,n.useEffect)(function(){return h.current=!0,function(){h.current=!1}},[]);var k=(0,n.useMemo)(function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,s.current=e,c.current=c.current||e,p.current=f.current.apply(n,t)},n=function(e,t){y&&cancelAnimationFrame(l.current),l.current=y?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!h.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||b&&e-s.current>=x},k=function(t){return l.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},S=function e(){var o=Date.now();if(g&&c.current===s.current&&_(),r(o))return k(o);if(h.current){var a=t-(o-i.current),l=b?Math.min(a,x-(o-s.current)):a;n(e,l)}},_=function(){o&&o({})},D=function(){if(m||w){var o=Date.now(),c=r(o);if(u.current=[].slice.call(arguments),d.current=a,i.current=o,c){if(!l.current&&h.current)return s.current=i.current,n(S,t),g?e(i.current):p.current;if(b)return n(S,t),e(i.current)}return l.current||n(S,t),p.current}};return D.cancel=function(){l.current&&(y?cancelAnimationFrame(l.current):clearTimeout(l.current)),s.current=0,u.current=i.current=d.current=l.current=null},D.isPending=function(){return!!l.current},D.flush=function(){return l.current?k(Date.now()):p.current},D},[g,b,t,x,v,y,m,w,o]);return k}var Yc=(0,n.createContext)(),Wc=function(e){var t=e.children,r=e.value;return(0,n.jsx)(Yc.Provider,{value:r,children:t})};Wc.propTypes={children:s().node.isRequired,value:s().object.isRequired};const Hc=Wc;function Qc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var zc=function(e){var t,r,o=e.isFilterInactive,a=e.setFilterDateFrom,i=e.setFilterDateTo,s=e.isLoading,c=(0,n.useContext)(Yc),l=c.setFilterSources,u=c.filterSources,d=c.setFilterFacilities,p=c.filterFacilities,f=c.setFilterPriorities,h=c.filterPriorities,m=c.isDialogOpen,y=c.showFacilityFilter,g=c.sourceList,v=(t=(0,n.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Qc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qc(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=v[0],w=v[1],x=Uc(function(e){l(e)},300),k=Uc(function(e){d(e)},300),S=Uc(function(e){f(e)},300),_=(0,n.useTranslate)(),D=(0,n.useMemo)(function(){return tn(_)},[_]),j=(0,n.useMemo)(function(){return Pt(_)},[_]);return(0,n.jsxs)(n.Popover,{target:(0,n.jsx)(n.Button,{icon:"filter",tooltip:(0,n.jsx)(n.Translate,{content:"Filter.title"}),onClick:function(){w(!b)},className:"".concat(Ot,"__filter-button")}),title:(0,n.jsx)(n.Translate,{content:"Filter.title"}),extra:(0,n.jsx)(n.Button,{ghost:!0,icon:"clean",disabled:o,onClick:function(){return a(null),i(null),l([]),d([]),f([]),void w(!1)},className:"".concat(Ot,"__filter-clear-button"),children:(0,n.jsx)(n.Translate,{content:"Filter.buttonClear"})}),placement:"bottom",visible:b,onClose:function(){w(!1)},canCloseOnOutsideClick:!m,children:[(0,n.jsx)(qc,{options:D,label:(0,n.jsx)(n.Translate,{content:"Filter.priority.title"}),selectedValue:h,disabled:s,onChange:function(e){Bc(e,h)||S(e)},selectKey:"priority",size:"fill",vertical:!0,multiple:!0}),y?(0,n.jsx)(qc,{options:j,label:(0,n.jsx)(n.Translate,{content:"Filter.facility.title"}),selectedValue:p,disabled:s,onChange:function(e){Bc(e,p)||k(e)},selectKey:"facility",size:"fill",vertical:!0,multiple:!0}):null,(0,n.jsx)(qc,{options:g.reduce(function(e,t){return e[t]=t,e},[]),label:(0,n.jsx)(n.Translate,{content:"Filter.source.title"}),selectedValue:u,disabled:s,onChange:function(e){Bc(e,u)||x(e)},selectKey:"source",size:"fill",vertical:!0,multiple:!0})]})};zc.propTypes={isFilterInactive:s().bool.isRequired,setFilterDateFrom:s().func.isRequired,setFilterDateTo:s().func.isRequired,isLoading:s().bool.isRequired};const Vc=zc;var $c=function(e){var t=e.isLoading,r=e.isRealTimeUpdate,o=e.setRefreshFlag,a=e.refreshFlag,i=e.setListRows,s=e.setFilterDate,c=e.setFilterDateFrom,l=e.setFilterDateTo,u=e.setRealTimeUpdate,d=e.setItems,p=e.items,f=e.filterDate,h=e.firstDayOfWeek,m=e.setFilterMessage,y=e.filterMessage,g=e.isFilterInactive;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(n.Toolbar,{children:[(0,n.jsx)(n.ToolbarGroup,{children:(0,n.jsx)(ln,{disabled:t,isRealTimeUpdate:r,showUpdateButton:r,onRefresh:function(){o(a+1)},onClear:function(){i([])},onChange:function(e){e&&(s(null),c(null),l(null)),u(e)}})}),(0,n.jsx)(n.ToolbarExpander,{}),(0,n.jsx)(n.ToolbarGroup,{children:(0,n.jsx)(n.Text,{fontSize:"sm",children:(0,n.jsx)(n.SegmentedControl,{label:(0,n.jsx)(n.Translate,{content:"Pagination.itemsPerPage"}),labelPlacement:"left",buttons:zt.map(function(e){return{value:e,title:e}}),selected:p,onChange:function(e){d(e)},ghost:!0})})})]}),(0,n.jsxs)(n.Toolbar,{children:[(0,n.jsx)(n.ToolbarGroup,{groupable:!1,children:(0,n.jsx)(Lc,{filterDate:f,disabled:r||t,firstDayOfWeek:h,onChange:function(e){f!==e&&s(e)},vertical:!0})},"filter-date"),r?null:(0,n.jsx)(n.ToolbarGroup,{groupable:!1,children:(0,n.jsx)(n.Button,{className:"".concat(Ot,"__refresh-button"),icon:"backup2",tooltip:(0,n.jsx)(n.Translate,{content:"List.buttonRefreshHint"}),onClick:function(){s(null),o(a+1)},disabled:t,ghost:!0})},"update-button"),(0,n.jsx)(n.ToolbarExpander,{}),(0,n.jsx)(n.ToolbarGroup,{groupable:!1,children:(0,n.jsx)(Fc,{disabled:t,description:(0,n.jsx)(n.Translate,{content:"Filter.message.description"}),onChange:function(e){(e=e.trim()||null)===y?o(a+1):m(e)}})},"message-filter"),(0,n.jsx)(n.ToolbarGroup,{groupable:!1,children:(0,n.jsx)(n.Badge,{hidden:g,intent:"info",children:(0,n.jsx)(Vc,{isFilterInactive:g,setFilterDateFrom:c,setFilterDateTo:l,isLoading:t})})},"filter-button")]})]})};$c.propTypes={isLoading:s().bool.isRequired,isRealTimeUpdate:s().bool.isRequired,setRefreshFlag:s().func.isRequired,refreshFlag:s().number.isRequired,setListRows:s().func.isRequired,setFilterDate:s().func.isRequired,setFilterDateFrom:s().func.isRequired,setFilterDateTo:s().func.isRequired,setRealTimeUpdate:s().func.isRequired,setItems:s().func.isRequired,items:s().number.isRequired,filterDate:s().instanceOf(Date).isRequired,firstDayOfWeek:s().number.isRequired,setFilterMessage:s().func.isRequired,filterMessage:s().string.isRequired,isFilterInactive:s().bool.isRequired};const Kc=$c;var Gc=function(e){var t=e.setDialogOpen,r=e.isDialogOpen,o=e.setDialogDate,a=e.dialogDate,i=e.isDialogNewer,s=e.loadListPortion,c=e.dialogFromDate,l=e.dialogToDate,u=function(){t(!1),o(null)};return(0,n.jsx)(n.Dialog,{isOpen:r,title:(0,n.jsx)(n.Translate,{content:"List.Dialog.Title"}),size:"sm",onClose:u,form:{onSubmit:function(){u(),s(a,i)},submitButton:{children:(0,n.jsx)(n.Translate,{content:"List.Dialog.submitButton"}),id:"dialog-submit-button"},cancelButton:{children:(0,n.jsx)(n.Translate,{content:"List.Dialog.cancelButton"}),id:"dialog-cancel-button"}},children:(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"List.Dialog.Text",params:{fromDate:c,toDate:l}})})})};Gc.propTypes={setDialogOpen:s().func.isRequired,isDialogOpen:s().bool.isRequired,setDialogDate:s().func.isRequired,dialogDate:s().string.isRequired,isDialogNewer:s().bool.isRequired,loadListPortion:s().func.isRequired,dialogFromDate:s().string.isRequired,dialogToDate:s().string.isRequired};const Jc=Gc;function Xc(e){return Xc="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},Xc(e)}function Zc(e){return function(e){if(Array.isArray(e))return nl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function el(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||tl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tl(e,t){if(e){if("string"==typeof e)return nl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nl(e,t):void 0}}function nl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rl(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 ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(n),!0).forEach(function(t){al(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function al(e,t,n){return(t=function(e){var t=function(e){if("object"!=Xc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var il=function(e,t){return ol(ol({},e),{},{key:"".concat(e.date,"_").concat(t)})},sl=function(e){return"now"===e?(0,n.jsx)(n.Translate,{content:"List.Dialog.nowText"}):new Date(Math.floor(Number(e)/1e3)).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})},cl=function(e){var t=e.baseClassName,r=e.baseUrl,o=e.firstDayOfWeek,a=e.currentDate,i=e.sourceList,s=e.showFacilityFilter,c=e.sourceFilterValue,l=el((0,n.useState)(!1),2),u=l[0],d=l[1],p=el((0,n.useState)(0),2),f=p[0],h=p[1],m=el((0,n.useState)(!1),2),y=m[0],g=m[1],v=el((0,n.useState)(!1),2),b=v[0],w=v[1],x=el((0,n.useState)(!0),2),k=x[0],S=x[1],_=el((0,n.useState)(!1),2),D=_[0],j=_[1],T=el((0,n.useState)([]),2),O=T[0],C=T[1],E=el((0,n.useState)(null),2),P=E[0],R=E[1],M=el((0,n.useState)(null),2),A=M[0],L=M[1],N=el((0,n.useState)(null),2),F=N[0],I=N[1],q=el((0,n.useState)(zt[0]),2),B=q[0],U=q[1],Y=-new Date(a).getTimezoneOffset(),W=-(new Date).getTimezoneOffset(),H=el((0,n.useState)(null),2),Q=H[0],z=H[1],V=el((0,n.useState)(null),2),$=V[0],K=V[1],G=el((0,n.useState)(null),2),J=G[0],X=G[1],Z=el((0,n.useState)(c),2),ee=Z[0],te=Z[1],ne=el((0,n.useState)([]),2),re=ne[0],oe=ne[1],ae=el((0,n.useState)([]),2),ie=ae[0],se=ae[1],ce=el((0,n.useState)(null),2),le=ce[0],ue=ce[1],de=el((0,n.useState)(!1),2),pe=de[0],fe=de[1],he=el((0,n.useState)(!0),2),me=he[0],ye=he[1],ge=el((0,n.useState)(null),2),ve=ge[0],be=ge[1],we=el((0,n.useState)(null),2),xe=we[0],ke=we[1],Se=el((0,n.useState)(null),2),_e=Se[0],De=Se[1],je=(0,n.useCallback)(function(e){return e+60*W-60*Y},[W,Y]),Te=(0,n.useCallback)(function(e){return e-60*W+60*Y},[W,Y]),Oe=!($||J||ee.length||re.length||ie.length),Ce=!Oe||Q||le,Ee=function(e,t,n,r){ye(e),be(t),ke(sl(n)),De(sl(r)),fe(!0)};(0,n.useEffect)(function(){d(!0),R(null),Dt.get("".concat(r,"index.php/api/read-journal-log-list"),{params:{items:B,filterDate:Q?1e6*je(Q):null,filterDateFrom:$?je($):null,filterDateTo:J?je(J):null,filterSources:ee,filterFacilities:s?re:[Et.MAIL.value],filterPriorities:ie,filterMessage:le}}).then(function(e){var t=e.data,n=t.rows,r=t.newer,o=void 0!==r&&r,a=t.date,i=void 0===a?null:a,s=t.fromDate,c=void 0===s?null:s,l=t.toDate,u=void 0===l?null:l;n.length?(L(n[n.length-1].date),I(n[0].date)):(L(null),I(null),i&&Ee(o,i,c,u)),C(n.reverse().map(il)),d(!1)}).catch(function(e){R(e.message),d(!1)})},[r,je,Q,$,J,re,le,ie,ee,B,f,s]);var Pe=(0,n.useCallback)(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t?g(!0):w(!0),d(!0),R(null),Dt.get("".concat(r,"index.php/api/read-journal-log-list"),{params:{date:e,items:100*(t?1:-1),filterSources:ee,filterFacilities:s?re:[Et.MAIL.value],filterPriorities:ie,filterMessage:le}}).then(function(e){if(t?g(!1):w(!1),d(!1),e.data.rows.length){var r=e.data.rows.reverse();t?(L(r[0].date),F||I(r[r.length-1].date)):(I(r[r.length-1].date),A||L(r[0].date),Q&&z(Te(r[r.length-1].date/1e6)));var o=t?[].concat(Zc(r.map(il)),Zc(O)):[].concat(Zc(O),Zc(r.map(il)));C(n?o.slice(0,B):o)}else{var a=e.data,i=a.newer,s=void 0!==i&&i,c=a.date,l=void 0===c?null:c,u=a.fromDate,p=void 0===u?null:u,f=a.toDate;if(!l)return;Ee(s,l,p,void 0===f?null:f)}}).catch(function(e){return R(e.message)})},[r,Te,Q,re,le,ie,ee,B,O,s,A,F]);return(0,n.useEffect)(function(){k&&(u||S(!1))},[k,u]),(0,n.useEffect)(function(){if(D){var e=setInterval(function(){D&&!u&&Pe(A,!0,!0)},3e3);return function(){return clearInterval(e)}}},[D,u,Pe,A]),(0,n.jsxs)(Hc,{value:{setFilterSources:te,filterSources:ee,setFilterFacilities:oe,filterFacilities:re,setFilterPriorities:se,filterPriorities:ie,isDialogOpen:pe,showFacilityFilter:s,sourceList:i},children:[(0,n.jsx)(Kc,{isLoading:u,isRealTimeUpdate:D,setRefreshFlag:h,refreshFlag:f,setListRows:C,setFilterDate:z,setFilterDateFrom:K,setFilterDateTo:X,setRealTimeUpdate:j,setItems:U,items:B,filterDate:Q,firstDayOfWeek:o,setFilterMessage:ue,filterMessage:le,isFilterInactive:Oe}),P?(0,n.jsx)(Tt,{text:P}):null,(0,n.jsx)(sn,{isFirstLoading:k,isRealTimeUpdate:D,listRows:O,isNewerRequested:y,loadListPortion:Pe,newestRowDate:A,baseClassName:t,showFacilityFilter:s,filterMessage:le,isLoading:u,isOlderRequested:b,oldestRowDate:F,isFilterSet:Ce}),(0,n.jsx)(Jc,{setDialogOpen:fe,isDialogOpen:pe,setDialogDate:be,dialogDate:ve,isDialogNewer:me,loadListPortion:Pe,dialogFromDate:xe,dialogToDate:_e})]})};cl.propTypes={baseClassName:s().string,baseUrl:s().string.isRequired,firstDayOfWeek:s().string.isRequired,currentDate:s().string.isRequired,sourceList:s().arrayOf(s().string).isRequired,showFacilityFilter:s().bool,sourceFilterValue:s().array},cl.defaultProps={baseClassName:"".concat(Ot,"__logs-list"),showFacilityFilter:!0,sourceFilterValue:[]};const ll=cl;var ul=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dl=function(e){return e[0].toLowerCase()+e.slice(1)},pl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(!e)return"0 B";var n=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,n)).toFixed(t)," ").concat(ul[n])},fl=function(e){var t=new Intl.DateTimeFormat("en-US",{month:"short"}).format(e),n=e.getUTCDate(),r=e.getUTCHours().toString().padStart(2,"0"),o=e.getUTCMinutes().toString().padStart(2,"0"),a=e.getUTCSeconds().toString().padStart(2,"0");return"".concat(t," ").concat(n," ").concat(r,":").concat(o,":").concat(a)};function hl(e){return hl="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},hl(e)}function ml(e){return function(e){if(Array.isArray(e))return vl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||gl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gl(e,t){if(e){if("string"==typeof e)return vl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vl(e,t):void 0}}function vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bl(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 wl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bl(Object(n),!0).forEach(function(t){xl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xl(e,t,n){return(t=function(e){var t=function(e){if("object"!=hl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hl(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kl=function(e){return e.map(function(e,t){return wl(wl({},e),{},{key:"".concat(e.date,"_").concat(t)})})},Sl=function(e){var t,o=e.baseClassName,a=e.baseUrl,i=e.firstDayOfWeek,s=e.currentDate,c=e.showPanelLogDataFilter,l=(0,n.useTranslate)(),u=[100,500,1e3],d=yl((0,n.useState)(0),2),p=d[0],f=d[1],h=yl((0,n.useState)(!0),2),m=h[0],y=h[1],g=yl((0,n.useState)(!0),2),v=g[0],b=g[1],w=yl((0,n.useState)(!1),2),x=w[0],k=w[1],S=(t=l,Object.values(Xt).map(function(e){return"".concat(t("Filter.panelLogPriority.".concat(e)))})),_=yl((0,n.useState)([]),2),D=_[0],j=_[1],T=yl((0,n.useState)(u[0]),2),O=T[0],C=T[1],E=yl((0,n.useState)(null),2),P=E[0],R=E[1],M=yl((0,n.useState)([]),2),A=M[0],L=M[1],N=yl((0,n.useState)(null),2),F=N[0],I=N[1],q=yl((0,n.useState)(!1),2),B=q[0],U=q[1],Y=yl((0,n.useState)(null),2),W=Y[0],H=Y[1],Q=yl((0,n.useState)(!1),2),z=Q[0],V=Q[1],$=yl((0,n.useState)(!1),2),K=$[0],G=$[1],J=yl((0,n.useState)(null),2),X=J[0],Z=J[1],ee=yl((0,n.useState)(null),2),te=ee[0],ne=ee[1],re=yl((0,n.useState)(!1),2),oe=re[0],ae=re[1],ie=-new Date(s).getTimezoneOffset(),se=-(new Date).getTimezoneOffset(),ce=(0,n.useCallback)(function(e){return e+60*se-60*ie},[se,ie]),le=[{key:"date",align:"center",type:"title",className:"".concat(o,"_column-date"),render:function(e){return(0,n.jsx)(n.Text,{intent:"muted",nowrap:!0,children:e.date_fmt})}},{key:"priority",className:"".concat(o,"_column-priority"),render:function(e){return""===e.priority?e.priority:(0,n.jsx)(n.Label,{intent:Zt(e.priority),children:e.priority})}},{key:"source",className:"".concat(o,"_column-source"),render:function(e){return(0,n.jsxs)(n.Text,{component:"div",nowrap:!0,children:[(0,n.jsx)(n.Text,{bold:!0,children:e.source})," ",e.source_id?(0,n.jsx)(n.Text,{fontSize:"sm",children:"[".concat(e.source_id,"]")}):null]},"row-source")}},{key:"message",className:"".concat(o,"_column-message"),render:function(e){if(e.message===Ct)return(0,n.jsx)(n.Text,{intent:"muted",fontSize:"sm",children:(0,n.jsx)(n.Translate,{content:"List.emptyMessage"})});var t=F?Gt()(e.message,new RegExp("(".concat(F.replace(/([\\.+*?[^\]$(){}=!<>|:])/g,"\\$1"),")"),"ig"),function(e){return(0,n.jsx)(n.Text,{bold:!0,intent:"warning",children:e})}):e.message;return t.toString().includes("\n")||t.toString().length>140?(0,n.jsx)(n.Cuttable,{collapsed:!B,maxHeight:"1.5rem",children:(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Plaintext,{children:t})})},"".concat(e.key,"-cuttable-").concat(B)):(0,n.jsx)(n.Plaintext,{children:t})}}],ue=Uc(function(e){L(e)},300),de=!A.length,pe=!de||W||F;(0,n.useEffect)(function(){v&&(m||b(!1))},[v,m]),(0,n.useEffect)(function(){y(!0),R(null),Dt.get("".concat(a,"index.php/api/read-panel-log-portion"),{params:{items:-1*O,filterDate:W?ce(W):null,filterPriorities:en(A),filterMessage:F}}).then(function(e){var t=e.data.stdout,n=t.rows,r=void 0===n?[]:n,o=t.showNewerOffset,a=void 0===o?null:o,i=t.showOlderOffset,s=void 0===i?null:i;r.length&&(Z(a),ne(s)),j(kl(r)),y(!1)}).catch(function(e){R(e.message),y(!1)})},[a,ce,W,F,A,O,p]);var fe=(0,n.useCallback)(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];y(!0),e?V(!0):G(!0),R(null),Dt.get("".concat(a,"index.php/api/read-panel-log-portion"),{params:{filterDate:W?ce(W):null,items:100*(e?1:-1),filterPriorities:en(A),filterMessage:F,offset:e?X:te}}).then(function(t){y(!1);var n=t.data.stdout,r=n.rows,o=void 0===r?[]:r,a=n.showNewerOffset,i=void 0===a?null:a,s=n.showOlderOffset,c=void 0===s?null:s;if(e?V(!1):G(!1),o.length){e?Z(i):ne(c);var l=e?[].concat(ml(o),ml(D)):[].concat(ml(D),ml(o));j(kl(x?l.slice(0,100):l))}}).catch(function(e){R(e.message),y(!1)})},[a,ce,W,F,A,x,D,X,te]);(0,n.useEffect)(function(){var e=setInterval(function(){x&&!m&&fe()},3e3);return function(){return clearInterval(e)}},[x,m,W,fe]);var he=v?(0,n.jsx)(n.ContentLoader,{text:(0,n.jsx)(n.Translate,{content:"List.loading"})}):(0,n.jsxs)(n.Fragment,{children:[!x&&D.length?(0,n.jsx)($t,{isLoading:z,onClick:function(){return fe()},direction:"up",chunkSize:100}):null,(0,n.jsx)(n.List,{className:o,filtered:!v,columns:le,data:D,emptyView:(0,n.jsx)(on,{isLoading:m,isFiltered:pe}),loading:m,vertical:600}),!x&&D.length?(0,n.jsx)($t,{isLoading:K,onClick:function(){return fe(!1)},direction:"down",chunkSize:100}):null]}),me=(0,n.jsx)(n.Popover,{target:(0,n.jsx)(n.Button,{icon:"filter",tooltip:(0,n.jsx)(n.Translate,{content:"Filter.title"}),onClick:function(){ae(!oe)},className:"".concat(Ot,"__filter-button")}),title:(0,n.jsx)(n.Translate,{content:"Filter.title"}),extra:[(0,n.jsx)(n.Button,{ghost:!0,icon:"clean",disabled:de,onClick:function(){return L([]),void ae(!1)},className:"".concat(Ot,"__filter-clear-button"),children:(0,n.jsx)(n.Translate,{content:"Filter.buttonClear"})},"button")],placement:"bottom",visible:oe,onClose:function(){ae(!1)},children:(0,n.jsx)(qc,{options:S,label:(0,n.jsx)(n.Translate,{content:"Filter.priority.title"}),selectedValue:A,disabled:m,onChange:function(e){Bc(e,A)||ue(e)},selectKey:"priority",vertical:!0,multiple:!0})}),ye=(0,n.jsxs)(n.Popover,{target:(0,n.jsx)(n.Action,{icon:"gear",children:(0,n.jsx)(n.Translate,{content:"Settings.settingsText"})}),placement:"bottom",children:[(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Switch,{tooltip:(0,n.jsx)(n.Translate,{content:"PanelLog.tooltip"}),checked:B,onChange:function(e){U(e)},children:(0,n.jsx)(n.Translate,{content:"PanelLog.expandLog"})})}),(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Switch,{className:"".concat(Ot,"__switch-button"),disabled:m,checked:x,onChange:function(e){e&&(Z(null),ne(null)),f(p+1),k(e)},children:(0,n.jsx)(n.Translate,{content:"Switcher.switchText"})})}),(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Link,{href:"https://support.plesk.com/hc/en-us/articles/12377672365975-How-to-enable-disable-Plesk-debug-mode",target:"_blank",onClick:function(){return void(r.g.Jsw&&r.g.Jsw.UAT&&r.g.Jsw.UAT.dispatchAction("DEBUG_INI_CONFIGURE"))},children:(0,n.jsx)(n.Translate,{content:"PanelLog.debugSettingText"})})})]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(n.Toolbar,{children:[(0,n.jsxs)(n.ToolbarGroup,{children:[ye," ",x?(0,n.jsx)(n.Button,{ghost:!0,icon:"clean",onClick:function(){j([])},className:"".concat(Ot,"__filter-clear-button"),children:(0,n.jsx)(n.Translate,{content:"Filter.buttonClear"})}):null]}),(0,n.jsx)(n.ToolbarExpander,{}),(0,n.jsx)(n.ToolbarGroup,{children:(0,n.jsx)(n.Text,{fontSize:"sm",children:(0,n.jsx)(n.SegmentedControl,{label:(0,n.jsx)(n.Translate,{content:"Pagination.itemsPerPage"}),labelPlacement:"left",buttons:u.map(function(e){return{value:e,title:e,id:"items-per-page-".concat(e)}}),selected:O,onChange:function(e){C(e)},ghost:!0})})})]}),(0,n.jsxs)(n.Toolbar,{children:[c?(0,n.jsx)(n.ToolbarGroup,{groupable:!1,children:(0,n.jsx)(Lc,{filterDate:W,disabled:x||m,firstDayOfWeek:i,onChange:function(e){W!==e&&H(e)},vertical:!0})},"filter-date"):null,x||!c?null:(0,n.jsx)(n.ToolbarGroup,{groupable:!1,children:(0,n.jsx)(n.Button,{className:"".concat(Ot,"__refresh-button"),icon:"backup2",tooltip:(0,n.jsx)(n.Translate,{content:"List.buttonRefreshHint"}),onClick:function(){H(null),Z(null),ne(null)},disabled:m,ghost:!0})},"update-button"),(0,n.jsx)(n.ToolbarExpander,{}),(0,n.jsxs)(n.ToolbarGroup,{groupable:!1,children:[(0,n.jsx)(Fc,{disabled:m,description:(0,n.jsx)(n.Translate,{content:"Filter.message.description"}),onChange:function(e){(e=e.trim()||null)!==F&&I(e)}})," ",(0,n.jsx)(n.ToolbarGroup,{groupable:!1,children:(0,n.jsx)(n.Badge,{hidden:de,intent:"info",children:me})},"filter-button")]},"message-filter")]}),P?(0,n.jsx)(Tt,{text:P}):null,he]})};Sl.propTypes={baseClassName:s().string,baseUrl:s().string.isRequired,firstDayOfWeek:s().string.isRequired,currentDate:s().string.isRequired,showPanelLogDataFilter:s().bool.isRequired},Sl.defaultProps={baseClassName:"".concat(Ot,"__logs-list")};const _l=Sl;var Dl=r(4600),jl={};function Tl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ol(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ol(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ol(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}jl.styleTagTransform=Wt(),jl.setAttributes=qt(),jl.insert=Ft().bind(null,"head"),jl.domAPI=Lt(),jl.insertStyleElement=Ut(),Mt()(Dl.A,jl),Dl.A&&Dl.A.locals&&Dl.A.locals;var Cl=function(e){var t=e.baseUrl,r=e.service,o=e.convertStatus,a=Tl((0,n.useState)(null),2),i=a[0],s=a[1],c=Tl((0,n.useState)(null),2),l=c[0],u=c[1],d=Tl((0,n.useState)(!1),2),p=d[0],f=d[1];i||l||p||(f(!0),u(null),Dt.get("".concat(t,"index.php/api/get-service-status"),{params:{service:r.name}}).then(function(e){var t=e.data,n=t.status,o=t.error;n?s(m(r.name,n)):u(o),f(!1)}).catch(function(e){u(e.message),f(!1)}));var h,m=function(e,t){var n=t.split("\n"),r=n[0].indexOf(e);-1!==r&&(n[0]=n[0].substring(r));var o=n.join("\n");return o.length>0?o:null};return p?(0,n.jsx)(n.ContentLoader,{text:(0,n.jsx)(n.Translate,{content:"List.loading"})}):null!==l?(0,n.jsx)("div",{className:"".concat(Ot,"__service-error"),children:(0,n.jsxs)("pre",{children:[(0,n.jsxs)("span",{children:[(0,n.jsx)(n.Icon,{name:"exclamation-mark-circle-filled",intent:"danger",size:"12"})," "]}),(0,n.jsx)(n.Text,{intent:"danger",children:l})]})}):(0,n.jsx)("div",{className:"".concat(Ot,"__service-info"),children:(0,n.jsxs)("pre",{children:[(0,n.jsxs)("span",{children:[(0,n.jsx)(n.Icon,{name:(h=r.status,["active","failed"].includes(h)?"check-mark-circle-filled":"sleep"),intent:o(r.status),size:"12"})," "]}),(0,n.jsx)(n.Text,{children:i})]})})};Cl.propTypes={baseUrl:s().string.isRequired,service:s().shape({name:s().string,status:s().string,comment:s().string}).isRequired,convertStatus:s().func.isRequired};const El=Cl;function Pl(e){return Pl="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},Pl(e)}function Rl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ml(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ml(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ml(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Al(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 Ll(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Al(Object(n),!0).forEach(function(t){Nl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nl(e,t,n){return(t=function(e){var t=function(e){if("object"!=Pl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pl(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fl=function(e){var t=e.baseClassName,r=e.baseUrl,o=e.serviceList,a=e.logsClickHandler,i=o.map(function(e,t){return Ll(Ll({},e),{},{key:"".concat(e.name,"_").concat(t)})}),s=i.filter(function(e){return"inactive"!==e.status}),c=i.filter(function(e){return"inactive"===e.status}),l=Rl((0,n.useState)(""),2),u=l[0],d=l[1],p=Rl((0,n.useState)(s),2),f=p[0],h=p[1],m=Rl((0,n.useState)(c),2),y=m[0],g=m[1],v=(0,n.useTranslate)("List")("serviceFilterPlaceHolder"),b=[{key:"service",title:(0,n.jsx)(n.Translate,{content:"List.serviceTitle"}),render:function(e){return(0,n.jsxs)("div",{children:[(0,n.jsx)(n.Text,{className:"".concat(Ot,"__service-name"),children:e.name}),(0,n.jsx)(n.Text,{fontSize:"sm",intent:"muted",component:"div",children:e.comment})]})},width:"70%",sortable:!0,sort:function(e,t){return dl(e.name)>dl(t.name)?1:-1}},{key:"status",title:(0,n.jsx)(n.Translate,{content:"List.statusTitle"}),render:function(e){return(0,n.jsx)(n.Status,{intent:w(e.status),children:(0,n.jsx)(n.Translate,{content:"Tabs.overviewTab.status.".concat(e.status)})})},sortable:!0,sort:function(e,t){return x(e.status)>x(t.status)?1:x(e.status)<x(t.status)?-1:0}},{key:"col3",type:"actions",render:function(e){return(0,n.jsx)(n.ListActions,{children:(0,n.jsx)(n.ListAction,{primary:!0,icon:"list",onClick:function(){return a(e)},className:"".concat(Ot,"__logs-button"),children:(0,n.jsx)(n.Translate,{content:"List.logsTitle"})})})}}],w=function(e){return"failed"===(e="active"===e?"success":e)?"danger":e},x=function(e){return"active"===e?0:1},k=function(e){d(e),h(s.filter(function(t){return-1!==t.name.indexOf(e)})),g(c.filter(function(t){return-1!==t.name.indexOf(e)}))},S=function(e){return(0,n.jsx)(El,{baseUrl:r,service:e,convertStatus:w})};return(0,n.jsxs)("div",{children:[(0,n.jsxs)(n.Toolbar,{children:[(0,n.jsx)(n.ToolbarExpander,{}),(0,n.jsx)(n.SearchBar,{className:"".concat(Ot,"__filter-service"),onSearch:k,onTyping:k,collapsable:!0,maxWidth:"200px",inputProps:{placeholder:v,value:u}})]}),f.length>0&&(0,n.jsx)(n.List,{className:t,columns:b,data:f,sortColumn:"status",sortDirection:"DESC",renderRowBody:S}),y.length>0&&(0,n.jsx)(n.List,{className:t,columns:b,data:y,sortColumn:"status",sortDirection:"DESC",renderRowBody:S}),0===f.length&&0===y.length&&(0,n.jsx)(n.List,{columns:b,data:y})]})};Fl.propTypes={baseClassName:s().string,baseUrl:s().string.isRequired,serviceList:s().arrayOf(s().shape({name:s().string,status:s().string,comment:s().string})).isRequired,logsClickHandler:s().func.isRequired},Fl.defaultProps={baseClassName:"".concat(Ot,"__service-list")};const Il=Fl;function ql(e){return ql="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},ql(e)}function Bl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||Ul(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ul(e,t){if(e){if("string"==typeof e)return Yl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yl(e,t):void 0}}function Yl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Wl=function(e,t){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=Bl((0,n.useState)(null),2),i=a[0],s=a[1],c=Bl((0,n.useState)(!0),2),l=c[0],u=c[1],d=Bl((0,n.useState)(null),2),p=d[0],f=d[1],h=JSON.stringify(t);return(0,n.useEffect)(function(){var n=!1;return u(!0),Dt.get("".concat(e).concat(function(e){var t=new URLSearchParams(e).toString();if(e instanceof Object){var n={};Object.entries(e).forEach(function(e){var t=Bl(e,2),r=t[0],o=t[1];n[r]=o&&"object"===ql(o)?JSON.stringify(o):o}),t=new URLSearchParams(n).toString()}return t.length?"?".concat(t):""}(t))).then(function(e){n||(s(e.data),u(!1))}).catch(function(e){n||(f(e.message),u(!1))}),function(){n=!0}},[e,h].concat(function(e){if(Array.isArray(e))return Yl(e)}(r=o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||Ul(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),[i,l,p]};var Hl={old:"danger",new:"info",eq:""},Ql=function(e){var t=e.value,r=e.kind;return t?(0,n.jsx)(n.Text,{intent:Hl[r],children:t},r):(0,n.jsx)(n.Text,{children:"''"},r)};Ql.propTypes={value:s().string.isRequired,kind:s().string.isRequired};var zl=function(e){var t=e.item;return t.newValue===t.oldValue?(0,n.jsx)(Ql,{value:t.newValue,kind:"eq"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ql,{value:t.oldValue,kind:"old"}),(0,n.jsx)(n.Text,{children:" → "},"to"),(0,n.jsx)(Ql,{value:t.newValue,kind:"new"})]})},Vl=s().shape({component:s().string.isRequired,newValue:s().string.isRequired,oldValue:s().string.isRequired});zl.propTypes={item:Vl.isRequired};var $l=function(e){var t=e.item;return(0,n.jsxs)("div",{children:[(0,n.jsxs)(n.Text,{intent:"muted",children:[t.component,": "]}),(0,n.jsx)(zl,{item:t})]})};$l.propTypes={item:Vl.isRequired};const Kl=$l;function Gl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Jl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Xl=function(e){var t="List.noRecords";return e.isLoading&&(t="List.loading"),(0,n.jsx)(n.ListEmptyView,{image:null,title:null,description:(0,n.jsx)(n.Translate,{content:t})})};Xl.propTypes={isLoading:s().bool.isRequired};var Zl=function(e){var t=e.baseUrl,r=e.filter,o=e.itemsPerPage,a=e.baseClassName,i=e.refresh,s=e.isLoading,c=e.error,l=Gl((0,n.useState)(1),2),u=l[0],d=l[1],p=Gl(Wl("".concat(t,"index.php/action-log/read-portion"),{filter:r,page:u,itemsPerPage:o},[i]),3),f=p[0],h=p[1],m=p[2],y=Gl((0,n.useState)([]),2),g=y[0],v=y[1],b=JSON.stringify(r);s=s||h,c=c||m,(0,n.useEffect)(function(){v(function(e){var t;return e.concat(null!==(t=null==f?void 0:f.items)&&void 0!==t?t:[])})},[null==f?void 0:f.items]),(0,n.useEffect)(function(){d(1),v([])},[b,o,i]);var w=[{key:"date",title:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogTab.dateTitle"}),type:"title"},{key:"ip_address",title:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogTab.ipTitle"})},{key:"user",title:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogTab.userTitle"})},{key:"action_name",title:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogTab.actionTitle"})},{key:"details",title:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogTab.detailsTitle"}),render:function(e){var t,r,o=null!==(t=null===(r=e.components)||void 0===r?void 0:r.length)&&void 0!==t?t:0;return 0===o?"":1===o?(0,n.jsx)(Kl,{item:e.components[0]}):(0,n.jsx)(n.Cuttable,{maxHeight:"20px",children:e.components.map(function(e){return(0,n.jsx)(Kl,{item:e},e.component)})})}}];return(0,n.jsxs)(n.Fragment,{children:[c&&(0,n.jsx)(Tt,{text:c}),(0,n.jsx)(n.List,{id:"action-log-records-list",className:a,columns:w,data:g,loading:s,emptyView:(0,n.jsx)(Xl,{isLoading:s})}),(null==f?void 0:f.nextPage)&&g.length>0&&(0,n.jsx)(n.Button,{fill:!0,ghost:!0,icon:"chevron-double-down",onClick:function(){return d(null==f?void 0:f.nextPage)},state:s?"loading":void 0,children:(0,n.jsx)(n.Translate,{content:"List.loadMoreRecords"})})]})};Zl.propTypes={baseClassName:s().string.isRequired,baseUrl:s().string.isRequired,filter:s().object.isRequired,refresh:s().object.isRequired,itemsPerPage:s().number.isRequired,isLoading:s().bool.isRequired,error:s().string.isRequired};const eu=Zl;var tu=r(5373),nu=function(e){var t=e.storeTypes,r=e.canChangeSettings,o=e.handleFormFieldChange,a=[];return t.by_period&&a.push({value:"by_period",label:(0,n.jsxs)("div",{children:[(0,n.jsx)(n.Translate,{content:"ActionLogSettings.for-period"}),":"]}),indentFields:[(0,n.jsxs)(n.Grid,{gap:"xs",children:[(0,n.jsx)(n.GridCol,{xs:1,children:(0,n.jsx)(n.FormFieldText,{label:null,name:"store[period]",size:"fill",disabled:!r,onChange:function(e){return o("store","period",e)}})}),(0,n.jsx)(n.GridCol,{xs:2,children:(0,n.jsx)(n.FormField,{label:null,name:"store[period_dim]",disabled:!r,onChange:function(e){return o("store","period_dim",e)},children:function(e){var t=e.getValue,o=e.setValue;return(0,n.jsxs)("select",{value:t(),disabled:!r,onChange:function(e){return o(e.target.value)},children:[(0,n.jsx)(n.Translate,{content:"ActionLogSettings.days",component:"option",value:"day"}),(0,n.jsx)(n.Translate,{content:"ActionLogSettings.weeks",component:"option",value:"week"}),(0,n.jsx)(n.Translate,{content:"ActionLogSettings.months",component:"option",value:"month"})]})}})})]},"by_period")]}),t.by_number&&a.push({value:"by_number",label:(0,n.jsxs)("div",{children:[(0,n.jsx)(n.Translate,{content:"ActionLogSettings.by-number"}),":"]}),indentFields:[(0,n.jsxs)(n.Grid,{gap:"xs",children:[(0,n.jsx)(n.GridCol,{xs:1,children:(0,n.jsx)(n.FormFieldText,{label:null,name:"store[records_number]",size:"fill",disabled:!r,onChange:function(e){return o("store","records_number",e)}})}),(0,n.jsx)(n.GridCol,{xs:2,style:{padding:"7px",opacity:r?1:.47},children:(0,n.jsx)(n.Translate,{content:"ActionLogSettings.entries"})})]},"by_number")]}),t.forever&&a.push({value:"forever",label:(0,n.jsx)(n.Translate,{content:"ActionLogSettings.do-not-remove"})}),(0,n.jsx)(n.FormFieldRadioButtons,{label:(0,n.jsx)(n.Translate,{content:"ActionLogSettings.store-records"}),name:"store[type]",options:a,disabled:!r,onChange:function(e){return o("store","type",e)}})};nu.propTypes={storeTypes:s().array.isRequired,canChangeSettings:s().bool.isRequired,handleFormFieldChange:s().func.isRequired};const ru=nu;function ou(e){return ou="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},ou(e)}var au=["actions","storeTypes","storeOpts","canChangeSettings","isNis2Compliant","onSubmit","error"];function iu(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 su(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iu(Object(n),!0).forEach(function(t){cu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cu(e,t,n){return(t=function(e){var t=function(e){if("object"!=ou(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ou(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ou(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return uu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var du=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.reduce(function(e,n){var r=!!n.is_forced||t;return e[n.name]=null===t?n.is_enabled:r,e},{})},pu=function(e){return Object.values(e).every(function(e){return!0===e})},fu=function(e){var t=e.canChangeSettings,r=e.handleSelectAllChange;return(0,n.jsx)(n.FormField,{label:(0,n.jsx)(n.Text,{intent:"muted",children:(0,n.jsx)(n.Translate,{content:"ActionLogSettings.select-all"})}),children:(0,n.jsx)(n.FormFieldCheckbox,{name:"allSelected",disabled:!t,onChange:r},"select_all")},"select_all_field")};fu.propTypes={canChangeSettings:s().bool.isRequired,handleSelectAllChange:s().func.isRequired};var hu=function(e){var t=e.canChangeSettings,r=e.isNis2Compliant,o=e.actions,a=e.handleActionFieldChange,i=e.handleSelectAllChange;return t||r?(0,n.jsxs)(n.Section,{title:(0,n.jsx)(n.Translate,{content:"ActionLogSettings.logged-actions"}),children:[(0,n.jsx)(fu,{canChangeSettings:t,handleSelectAllChange:i}),o.map(function(e){if(!t&&!e.is_forced)return"";var r="";return e.is_forced&&(r="api_call"===e.name?(0,n.jsx)(n.Translate,{content:"ActionLogSettings.nis2restricted-apicall"}):(0,n.jsx)(n.Translate,{content:"ActionLogSettings.nis2restricted"})),(0,n.jsx)(n.FormField,{label:e.description,children:(0,n.jsx)(n.FormFieldCheckbox,{name:"actions[".concat(e.name,"]"),disabled:e.is_forced||!t,description:r,label:e.events.map(function(e){return e.short_descr}).join(" / ")+(e.is_mixed?" (mixed)":""),onChange:function(t){return a("actions",e.name,t)}},e.name)},"".concat(e.name,"_field"))}),(0,n.jsx)(fu,{canChangeSettings:t,handleSelectAllChange:i})]}):""};hu.propTypes={canChangeSettings:s().bool.isRequired,isNis2Compliant:s().bool.isRequired,actions:s().array.isRequired,handleActionFieldChange:s().func.isRequired,handleSelectAllChange:s().func.isRequired};var mu=function(e){var t=e.actions,r=e.storeTypes,o=e.storeOpts,a=e.canChangeSettings,i=e.isNis2Compliant,s=e.onSubmit,c=e.error,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,au);t=null!=t?t:[],r=null!=r?r:{};var u=lu((0,n.useState)(function(){var e=du(t);return{actions:e,allSelected:pu(e)}}),2),d=u[0],p=u[1],f=lu((0,n.useState)({store:su({},o)}),2),h=f[0],m=f[1];return(0,n.jsxs)(n.Form,su(su({applyButton:!1,submitButton:a,cancelButton:!0,onSubmit:function(e){s(e)},values:su(su({},d),h)},l),{},{children:[c&&(0,n.jsx)(Tt,{text:c}),!a&&(0,n.jsx)(n.StatusMessage,{intent:"info",children:(0,n.jsx)(n.Translate,{content:"ActionLogSettings.info"})}),i&&(0,n.jsx)(n.StatusMessage,{intent:"info",children:(0,n.jsx)(n.Translate,{content:"ActionLogSettings.nis2restricted-apicall"})}),(0,n.jsx)(hu,{canChangeSettings:a,isNis2Compliant:i,actions:t,handleSelectAllChange:function(e){p({actions:du(t,e),allSelected:e})},handleActionFieldChange:function(e,t,n){p(function(e){return e.actions[t]=n,e.allSelected=pu(e.actions),su({},e)})}}),(0,n.jsx)(n.Section,{title:(0,n.jsx)(n.Translate,{content:"ActionLogSettings.storage-settings"}),children:(0,n.jsx)(ru,{storeTypes:r,canChangeSettings:a,handleFormFieldChange:function(e,t,n){m(function(e){return e.store[t]=n,su({},e)})}})})]}))};mu.propTypes={actions:s().array.isRequired,storeTypes:s().array.isRequired,storeOpts:s().array.isRequired,canChangeSettings:s().bool.isRequired,isNis2Compliant:s().bool.isRequired,onSubmit:s().func.isRequired,error:s().string.isRequired};const yu=mu;function gu(e){return gu="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},gu(e)}var vu=["baseUrl","onSubmit"];function bu(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 wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=gu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ku(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ku(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Su=function(e){var t=e.baseUrl,r=e.onSubmit,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,vu),a="".concat(t,"index.php/action-log/settings"),i=xu(Wl(a),3),s=i[0],c=i[1],l=i[2],u=xu((0,n.useState)(),2),d=u[0],p=u[1],f=xu((0,n.useState)(),2),h=f[0],m=f[1],y=(0,n.useCallback)(function(e){p("submit"),Dt.post(a,(0,tu.stringify)(e)).then(function(){p(void 0),r()}).catch(function(e){p(void 0),m(e.message)})},[a,r]);return c?(0,n.jsx)(n.ContentLoader,{text:(0,n.jsx)(n.Translate,{content:"List.loading"})}):(0,n.jsx)(yu,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bu(Object(n),!0).forEach(function(t){wu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({onSubmit:y,actions:null==s?void 0:s.actions,storeTypes:null==s?void 0:s.types,storeOpts:null==s?void 0:s.store,canChangeSettings:null==s?void 0:s.canChangeSettings,isNis2Compliant:null==s?void 0:s.isNis2Compliant,state:d,error:null!=l?l:h},o))};Su.propTypes={baseUrl:s().string.isRequired,onSubmit:s().func.isRequired};const _u=Su;function Du(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ju=function(e){var t,r,o=e.dates,a=e.onChange,i=e.firstDayOfWeek,s=(r=2,function(e){if(Array.isArray(e))return e}(t=o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Du(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Du(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],l=s[1];return(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"row"},children:[(0,n.jsx)(Lc,{disabled:!1,filterDate:c,maxDate:l,firstDayOfWeek:i,onChange:function(e){a([e,l])},showTimeInput:!1})," - ",(0,n.jsx)(Lc,{disabled:!1,filterDate:l,minDate:c,firstDayOfWeek:i,onChange:function(e){a([c,e])},showTimeInput:!1})]})};ju.propTypes={dates:s().array.isRequired,onChange:s().func.isRequired,firstDayOfWeek:s().string.isRequired};const Tu=ju;function Ou(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Eu=function(e){var t,r,o=e.baseUrl,a=e.filter,i=e.onFilterChanged,s=e.firstDayOfWeek,c=Ou((0,n.useState)(!1),2),l=c[0],u=c[1],d=(0,n.useTranslate)(),p=Ou((0,n.useState)(a),2),f=p[0],h=p[1],m=Ou(Wl("".concat(o,"index.php/action-log/filter-settings")),1)[0],y=null!==(t=null==m?void 0:m.users)&&void 0!==t?t:[],g=null!==(r=null==m?void 0:m.actions)&&void 0!==r?r:[];return(0,n.jsx)(n.Popover,{style:{maxInlineSize:"450px"},target:(0,n.jsx)(n.Button,{icon:"filter",tooltip:(0,n.jsx)(n.Translate,{content:"Filter.title"}),onClick:function(){return u(!l)}}),title:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.filter"}),extra:(0,n.jsx)(n.Button,{ghost:!0,icon:"clean",onClick:function(){return h({date:[void 0,void 0],ip:void 0,users:[],actions:[],component:void 0,componentValue:void 0})},children:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.filter-reset"})}),placement:"left",visible:l,onClose:function(){return u(!1)},children:(0,n.jsxs)(n.Form,{applyButton:!1,submitButton:{children:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.filter-apply"}),fill:!0,"data-action-name":"filter-apply"},cancelButton:!1,onSubmit:function(e){u(!1),h(e),i(e)},values:f,children:[(0,n.jsx)(n.FormField,{name:"date",label:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.period"}),children:function(e){var t=e.getValue,r=e.setValue;return(0,n.jsx)(Tu,{dates:t(),onChange:r,firstDayOfWeek:s})}}),(0,n.jsx)(n.FormFieldText,{name:"ip",label:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.ip"}),description:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.hint.filter-ip"}),fullDescription:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.hint.filter-ip-full"}),size:"fill","test-data-id":"ip"}),(0,n.jsx)(n.FormField,{name:"users",label:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.users"}),"test-data-id":"users",children:function(e){var t=e.getValue,r=e.setValue;return(0,n.jsx)(n.Select,{value:t(),onChange:function(e){return r(e)},size:"fill",multiple:!0,searchable:!0,children:y.sort().map(function(e){return(0,n.jsx)(n.SelectOption,{"test-data-id":e,value:e||" ",label:e||d("ActionLogFilter.empty-value"),children:e||(0,n.jsx)(n.Translate,{content:"ActionLogFilter.empty-value"})},e)})})}}),(0,n.jsx)(n.FormField,{name:"actions",label:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.actions"}),"test-data-id":"actions",children:function(e){var t=e.getValue,r=e.setValue;return(0,n.jsx)(n.Select,{value:t(),onChange:function(e){return r(e)},size:"fill",multiple:!0,searchable:!0,children:g.map(function(e){return(0,n.jsx)(n.SelectOption,{"test-data-id":e.name,value:e.name,label:e.description,children:e.description},e.name)})})}}),(0,n.jsx)(n.FormFieldText,{name:"component",label:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.component"}),description:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.hint.filter-component"}),fullDescription:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.hint.filter-component-full"}),size:"fill","test-data-id":"component"}),(0,n.jsx)(n.FormFieldText,{name:"componentValue",label:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.component-value"}),description:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.hint.filter-component-value"}),fullDescription:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.hint.filter-component-value-full"}),size:"fill","test-data-id":"componentValue"})]})})};Eu.propTypes={baseUrl:s().string.isRequired,filter:s().object.isRequired,onFilterChanged:s().func.isRequired,firstDayOfWeek:s().number.isRequired};const Pu=Eu;var Ru=function(e){var t=e.baseUrl,r=e.filterValues;return(0,n.jsxs)("form",{action:"".concat(t,"index.php/action-log/download"),method:"post",children:[(0,n.jsx)("input",{type:"hidden",name:"filter",value:JSON.stringify(r)}),(0,n.jsx)(n.Button,{"data-action-name":"action-log-download-button",type:"submit",icon:"arrow-down-tray",intent:"primary",tooltip:(0,n.jsx)(n.Translate,{content:"ActionLogFilter.hint.applied-filter"}),children:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogTab.download"})})]})};Ru.propTypes={baseUrl:s().string.isRequired,filterValues:s().object.isRequired};const Mu=Ru;function Au(e){return Au="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},Au(e)}var Lu=["confirmationText","actionButtonText","cancelButtonText","onClick"];function Nu(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 Fu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nu(Object(n),!0).forEach(function(t){Iu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Iu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Au(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Au(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Au(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Bu=function(e){var t,r,o=e.confirmationText,a=e.actionButtonText,i=e.cancelButtonText,s=e.onClick,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Lu),l=(t=(0,n.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return qu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qu(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],d=l[1];return(0,n.jsx)(n.Popover,{visible:u,target:(0,n.jsx)(n.Button,Fu({onClick:function(){return d(!0)}},c)),placement:"top",onClose:function(){return d(!1)},children:(0,n.jsxs)(n.Media,{image:(0,n.jsx)(n.Icon,{intent:"warning",name:"info-circle-filled"}),children:[(0,n.jsx)(n.Paragraph,{children:o}),(0,n.jsxs)("div",{children:[(0,n.jsx)(n.Button,{onClick:function(){d(!1),s()},intent:"danger",children:a})," ",(0,n.jsx)(n.Button,{ghost:!0,onClick:function(){return d(!1)},children:i})]})]})})};Bu.propTypes={confirmationText:s().object.isRequired,actionButtonText:s().object.isRequired,cancelButtonText:s().object.isRequired,onClick:s().func.isRequired};const Uu=Bu;var Yu=(0,n.createContext)({baseUrl:!1,firstDayOfWeek:"",currentDate:"",systemUnits:[],serviceList:[],mailUnits:[],showPanelLogDataFilter:!1,canTroubleshoot:!1,canSeeActionLog:!1,canClearActionLog:!1,canChangeSettings:!1,isNis2Compliant:!1,domainId:0,domainName:"",canViewDomainMailQueue:!1,canViewServerMailQueue:!1,databaseIsLocked:!1,promos:[]}),Wu=function(){return(0,n.useContext)(Yu)};function Hu(e){return Hu="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},Hu(e)}function Qu(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 zu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qu(Object(n),!0).forEach(function(t){Vu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Hu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ku(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ku(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ku(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Gu=function(e){var t,r=e.baseClassName,o=Wu(),a=o.baseUrl,i=o.firstDayOfWeek,s=o.currentDate,c=o.canClearActionLog,l=o.domainName,u=-new Date(s).getTimezoneOffset(),d=-(new Date).getTimezoneOffset(),p=$u((0,n.useState)(!1),2),f=p[0],h=p[1],m=$u((0,n.useState)(function(){return l?zu(zu({},{date:[void 0,void 0],ip:void 0,users:[],actions:[],component:void 0,componentValue:void 0}),{},{component:"Domain Name",componentValue:l}):{date:[void 0,void 0],ip:void 0,users:[],actions:[],component:void 0,componentValue:void 0}}),2),y=m[0],g=m[1],v=$u((0,n.useState)({}),2),b=v[0],w=v[1],x=function(e){return e?e+60*d-60*u:null},k=[100,500,1e3],S=$u((0,n.useState)(k[0]),2),_=S[0],D=S[1],j=function(e){return zu(zu({},e),{},{date:[x(null==e?void 0:e.date[0]),x(null==e?void 0:e.date[1])]})},T=$u((0,n.useState)(!1),2),O=T[0],C=T[1],E=$u((0,n.useState)(void 0),2),P=E[0],R=E[1];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(n.Toolbar,{children:[(0,n.jsx)(n.ToolbarGroup,{children:(0,n.jsx)(Mu,{baseUrl:a,filterValues:j(y)})}),(0,n.jsx)(n.ToolbarGroup,{children:(0,n.jsx)(n.Button,{icon:"refresh",onClick:function(){return w({})},children:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogTab.refresh"})})}),(0,n.jsxs)(n.ToolbarGroup,{children:[(0,n.jsx)(n.Button,{icon:"gear","data-action-name":"action-log-settings-button",ghost:!0,onClick:function(){return h(!0)},children:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogTab.settings"})}),(0,n.jsx)(n.Drawer,{title:(0,n.jsx)(n.Translate,{content:"ActionLogSettings.title"}),isOpen:f,onClose:function(){return h(!1)},"data-type":"action-log-settings",form:(0,n.jsx)(_u,{baseUrl:a,onSubmit:function(){return h(!1)}})})]}),c&&(0,n.jsx)(n.ToolbarGroup,{children:(0,n.jsx)(Uu,{icon:"recycle","data-action-name":"clear-action-log",ghost:!0,confirmationText:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogTab.clearConfirm"}),actionButtonText:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogTab.clear"}),cancelButtonText:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogTab.clearCancel"}),onClick:function(){C(!0),Dt.post("".concat(a,"index.php/action-log/clear"),{filter:j(y)}).then(function(){C(!1),w({})}).catch(function(e){C(!1),R(e.message)})},children:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogTab.clear"})})}),(0,n.jsx)(n.ToolbarExpander,{}),(0,n.jsx)(n.ToolbarGroup,{children:(0,n.jsx)(n.SegmentedControl,{label:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogTab.itemsPerPage"}),labelPlacement:"left",buttons:k.map(function(e){return{value:e,title:e}}),selected:_,onChange:D,ghost:!0})}),(0,n.jsx)(n.ToolbarGroup,{groupable:!1,children:(0,n.jsx)(n.Badge,{intent:"info",hidden:(t=y,JSON.stringify(t)===JSON.stringify({date:[void 0,void 0],ip:void 0,users:[],actions:[],component:void 0,componentValue:void 0})),"data-action-name":"filter-action-log",children:(0,n.jsx)(Pu,{baseUrl:a,firstDayOfWeek:i,filter:y,onFilterChanged:g})})})]}),(0,n.jsx)(eu,{baseUrl:a,filter:j(y),itemsPerPage:_,isLoading:O,error:P,baseClassName:r,refresh:b})]})};Gu.propTypes={baseClassName:s().string},Gu.defaultProps={baseClassName:"".concat(Ot,"__logs-list")};const Ju=Gu;var Xu="popstate";function Zu(e={}){return function(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s="POP",c=null,l=u();function u(){return(i.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-l;l=e,c&&c({action:s,location:f.location,delta:t})}function p(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),ed(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:od(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}(e)}null==l&&(l=0,i.replaceState({...i.state,idx:l},""));let f={get action(){return s},get location(){return e(o,i)},listen(e){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(Xu,d),c=e,()=>{o.removeEventListener(Xu,d),c=null}},createHref:e=>t(o,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=rd(f.location,e,t);n&&n(r,e),l=u()+1;let d=nd(r,l),p=f.createHref(r);try{i.pushState(d,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(p)}a&&c&&c({action:s,location:f.location,delta:1})},replace:function(e,t){s="REPLACE";let r=rd(f.location,e,t);n&&n(r,e),l=u();let o=nd(r,l),d=f.createHref(r);i.replaceState(o,"",d),a&&c&&c({action:s,location:f.location,delta:0})},go:e=>i.go(e)};return f}(function(e,t){let{pathname:n,search:r,hash:o}=e.location;return rd("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:od(t)},null,e)}function ed(e,t){if(!1===e||null==e)throw new Error(t)}function td(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function nd(e,t){return{usr:e.state,key:e.key,idx:t}}function rd(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?ad(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function od({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function ad(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function id(e,t,n="/"){return function(e,t,n,r){let o=wd(("string"==typeof t?ad(t):t).pathname||"/",n);if(null==o)return null;let a=sd(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=bd(o);i=gd(a[e],t,r)}return i}(e,t,n,!1)}function sd(e,t=[],n=[],r=""){let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(ed(i.relativePath.startsWith(r),`Absolute route path "${i.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(r.length));let s=_d([r,i.relativePath]),c=n.concat(i);e.children&&e.children.length>0&&(ed(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),sd(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:yd(s,e.index),routesMeta:c})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of cd(e.path))o(e,t,n);else o(e,t)}),t}function cd(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=cd(r.join("/")),s=[];return s.push(...i.map(e=>""===e?a:[a,e].join("/"))),o&&s.push(...i),s.map(t=>e.startsWith("/")&&""===t?"/":t)}new WeakMap;var ld=/^:[\w-]+$/,ud=3,dd=2,pd=1,fd=10,hd=-2,md=e=>"*"===e;function yd(e,t){let n=e.split("/"),r=n.length;return n.some(md)&&(r+=hd),t&&(r+=dd),n.filter(e=>!md(e)).reduce((e,t)=>e+(ld.test(t)?ud:""===t?pd:fd),r)}function gd(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l="/"===a?t:t.slice(a.length)||"/",u=vd({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=vd({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:_d([a,u.pathname]),pathnameBase:Dd(_d([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=_d([a,u.pathnameBase]))}return i}function vd(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){td("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1),c=r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{});return{params:c,pathname:a,pathnameBase:i,pattern:e}}function bd(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return td(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function wd(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function xd(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function kd(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Sd(e,t,n,r=!1){let o;"string"==typeof e?o=ad(e):(o={...e},ed(!o.pathname||!o.pathname.includes("?"),xd("?","pathname","search",o)),ed(!o.pathname||!o.pathname.includes("#"),xd("#","pathname","hash",o)),ed(!o.search||!o.search.includes("#"),xd("#","search","hash",o)));let a,i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?ad(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:jd(r),hash:Td(o)}}(o,a),l=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!l&&!u||(c.pathname+="/"),c}var _d=e=>e.join("/").replace(/\/\/+/g,"/"),Dd=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),jd=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Td=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function Od(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var Cd=["POST","PUT","PATCH","DELETE"],Ed=(new Set(Cd),["GET",...Cd]);new Set(Ed),Symbol("ResetLoaderData");var Pd=n.createContext(null);Pd.displayName="DataRouter";var Rd=n.createContext(null);Rd.displayName="DataRouterState";n.createContext(!1);var Md=n.createContext({isTransitioning:!1});Md.displayName="ViewTransition",n.createContext(new Map).displayName="Fetchers",n.createContext(null).displayName="Await";var Ad=n.createContext(null);Ad.displayName="Navigation";var Ld=n.createContext(null);Ld.displayName="Location";var Nd=n.createContext({outlet:null,matches:[],isDataRoute:!1});Nd.displayName="Route";var Fd=n.createContext(null);function Id(){return null!=n.useContext(Ld)}function qd(){return ed(Id(),"useLocation() may be used only in the context of a <Router> component."),n.useContext(Ld).location}Fd.displayName="RouteError";var Bd="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ud(e){n.useContext(Ad).static||n.useLayoutEffect(e)}function Yd(){let{isDataRoute:e}=n.useContext(Nd);return e?function(){let{router:e}=function(e){let t=n.useContext(Pd);return ed(t,Kd(e)),t}("useNavigate"),t=Gd("useNavigate"),r=n.useRef(!1);Ud(()=>{r.current=!0});let o=n.useCallback(async(n,o={})=>{td(r.current,Bd),r.current&&("number"==typeof n?e.navigate(n):await e.navigate(n,{fromRouteId:t,...o}))},[e,t]);return o}():function(){ed(Id(),"useNavigate() may be used only in the context of a <Router> component.");let e=n.useContext(Pd),{basename:t,navigator:r}=n.useContext(Ad),{matches:o}=n.useContext(Nd),{pathname:a}=qd(),i=JSON.stringify(kd(o)),s=n.useRef(!1);Ud(()=>{s.current=!0});let c=n.useCallback((n,o={})=>{if(td(s.current,Bd),!s.current)return;if("number"==typeof n)return void r.go(n);let c=Sd(n,JSON.parse(i),a,"path"===o.relative);null==e&&"/"!==t&&(c.pathname="/"===c.pathname?t:_d([t,c.pathname])),(o.replace?r.replace:r.push)(c,o.state,o)},[t,r,i,a,e]);return c}()}function Wd(e,{relative:t}={}){let{matches:r}=n.useContext(Nd),{pathname:o}=qd(),a=JSON.stringify(kd(r));return n.useMemo(()=>Sd(e,JSON.parse(a),o,"path"===t),[e,a,o,t])}function Hd(e,t,r,o){ed(Id(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=n.useContext(Ad),{matches:i}=n.useContext(Nd),s=i[i.length-1],c=s?s.params:{},l=s?s.pathname:"/",u=s?s.pathnameBase:"/",d=s&&s.route;{let e=d&&d.path||"";Xd(l,!d||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let p,f=qd();if(t){let e="string"==typeof t?ad(t):t;ed("/"===u||e.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=f;let h=p.pathname||"/",m=h;if("/"!==u){let e=u.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=id(e,{pathname:m});td(d||null!=y,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),td(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=function(e,t=[],r=null){if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,a=r?.errors;if(null!=a){let e=o.findIndex(e=>e.route.id&&void 0!==a?.[e.route.id]);ed(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let i=!1,s=-1;if(r)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){i=!0,o=s>=0?o.slice(0,s+1):[o[0]];break}}}return o.reduceRight((e,c,l)=>{let u,d=!1,p=null,f=null;r&&(u=a&&c.route.id?a[c.route.id]:void 0,p=c.route.errorElement||zd,i&&(s<0&&0===l?(Xd("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,f=null):s===l&&(d=!0,f=c.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,l+1)),m=()=>{let t;return t=u?p:d?f:c.route.Component?n.createElement(c.route.Component,null):c.route.element?c.route.element:e,n.createElement($d,{match:c,routeContext:{outlet:e,matches:h,isDataRoute:null!=r},children:t})};return r&&(c.route.ErrorBoundary||c.route.errorElement||0===l)?n.createElement(Vd,{location:r.location,revalidation:r.revalidation,component:p,error:u,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:_d([u,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:_d([u,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,o);return t&&g?n.createElement(Ld.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},g):g}function Qd(){let e=function(){let e=n.useContext(Fd),t=function(e){let t=n.useContext(Rd);return ed(t,Kd(e)),t}("useRouteError"),r=Gd("useRouteError");return void 0!==e?e:t.errors?.[r]}(),t=Od(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o},i={padding:"2px 4px",backgroundColor:o},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=n.createElement(n.Fragment,null,n.createElement("p",null,"💿 Hey developer 👋"),n.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",n.createElement("code",{style:i},"ErrorBoundary")," or"," ",n.createElement("code",{style:i},"errorElement")," prop on your route.")),n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:a},r):null,s)}n.createContext(null);var zd=n.createElement(Qd,null),Vd=class extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?n.createElement(Nd.Provider,{value:this.props.routeContext},n.createElement(Fd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function $d({routeContext:e,match:t,children:r}){let o=n.useContext(Pd);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),n.createElement(Nd.Provider,{value:e},r)}function Kd(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gd(e){let t=function(e){let t=n.useContext(Nd);return ed(t,Kd(e)),t}(e),r=t.matches[t.matches.length-1];return ed(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}var Jd={};function Xd(e,t,n){t||Jd[e]||(Jd[e]=!0,td(!1,n))}function Zd(e){ed(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ep({basename:e="/",children:t=null,location:r,navigationType:o="POP",navigator:a,static:i=!1}){ed(!Id(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=n.useMemo(()=>({basename:s,navigator:a,static:i,future:{}}),[s,a,i]);"string"==typeof r&&(r=ad(r));let{pathname:l="/",search:u="",hash:d="",state:p=null,key:f="default"}=r,h=n.useMemo(()=>{let e=wd(l,s);return null==e?null:{location:{pathname:e,search:u,hash:d,state:p,key:f},navigationType:o}},[s,l,u,d,p,f,o]);return td(null!=h,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==h?null:n.createElement(Ad.Provider,{value:c},n.createElement(Ld.Provider,{children:t,value:h}))}function tp({children:e,location:t}){return Hd(np(e),t)}function np(e,t=[]){let r=[];return n.Children.forEach(e,(e,o)=>{if(!n.isValidElement(e))return;let a=[...t,o];if(e.type===n.Fragment)return void r.push.apply(r,np(e.props.children,a));ed(e.type===Zd,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ed(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=np(e.props.children,a)),r.push(i)}),r}n.memo(function({routes:e,future:t,state:n}){return Hd(e,void 0,n,t)}),n.Component;var rp="get",op="application/x-www-form-urlencoded";function ap(e){return null!=e&&"string"==typeof e.tagName}function ip(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}var sp=null,cp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function lp(e){return null==e||cp.has(e)?e:(td(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${op}"`),null)}function up(e,t){if(!1===e||null==e)throw new Error(t)}function dp(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function pp(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter((e,t)=>i(e,t)||s(e,t)):"data"===a?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(i(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function fp(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o}).flat(1),[...new Set(r)];var r}function hp(){let e=n.useContext(Pd);return up(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function mp(){let e=n.useContext(Rd);return up(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");var yp=n.createContext(void 0);function gp(){let e=n.useContext(yp);return up(e,"You must render this element inside a <HydratedRouter> element"),e}function vp(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function bp({page:e,...t}){let{router:r}=hp(),o=n.useMemo(()=>id(r.routes,e,r.basename),[r.routes,e,r.basename]);return o?n.createElement(xp,{page:e,matches:o,...t}):null}function wp(e){let{manifest:t,routeModules:r}=gp(),[o,a]=n.useState([]);return n.useEffect(()=>{let n=!1;return async function(e,t,n){let r=await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(r,n);return e.links?e.links():[]}return[]}));return function(e,t){let n=new Set,r=new Set(t);return e.reduce((e,o)=>{if(t&&(null==(a=o)||"string"!=typeof a.page)&&"script"===o.as&&o.href&&r.has(o.href))return e;var a;let i=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(i)||(n.add(i),e.push({key:i,link:o})),e},[])}(r.flat(1).filter(dp).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,r).then(e=>{n||a(e)}),()=>{n=!0}},[e,t,r]),o}function xp({page:e,matches:t,...r}){let o=qd(),{manifest:a,routeModules:i}=gp(),{basename:s}=hp(),{loaderData:c,matches:l}=mp(),u=n.useMemo(()=>pp(e,t,l,a,o,"data"),[e,t,l,a,o]),d=n.useMemo(()=>pp(e,t,l,a,o,"assets"),[e,t,l,a,o]),p=n.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let n=new Set,r=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&i[e.route.id]?.shouldRevalidate||t.hasClientLoader?r=!0:n.add(e.route.id))}),0===n.size)return[];let l=function(e,t,n){let r="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===r.pathname?r.pathname=`_root.${n}`:t&&"/"===wd(r.pathname,t)?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}(e,s,"data");return r&&n.size>0&&l.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[l.pathname+l.search]},[s,c,o,a,u,t,e,i]),f=n.useMemo(()=>fp(d,a),[d,a]),h=wp(d);return n.createElement(n.Fragment,null,p.map(e=>n.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),f.map(e=>n.createElement("link",{key:e,rel:"modulepreload",href:e,...r})),h.map(({key:e,link:t})=>n.createElement("link",{key:e,...t})))}yp.displayName="FrameworkContext";function kp(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}n.Component;var Sp="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Sp&&(window.__reactRouterVersion="7.7.1")}catch(e){}function _p({basename:e,children:t,window:r}){let o=n.useRef();null==o.current&&(o.current=Zu({window:r,v5Compat:!0}));let a=o.current,[i,s]=n.useState({action:a.action,location:a.location}),c=n.useCallback(e=>{n.startTransition(()=>s(e))},[s]);return n.useLayoutEffect(()=>a.listen(c),[a,c]),n.createElement(ep,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:a})}var Dp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jp=n.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:o,reloadDocument:a,replace:i,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,...p},f){let h,{basename:m}=n.useContext(Ad),y="string"==typeof l&&Dp.test(l),g=!1;if("string"==typeof l&&y&&(h=l,Sp))try{let e=new URL(window.location.href),t=l.startsWith("//")?new URL(e.protocol+l):new URL(l),n=wd(t.pathname,m);t.origin===e.origin&&null!=n?l=n+t.search+t.hash:g=!0}catch(e){td(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let v=function(e,{relative:t}={}){ed(Id(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=n.useContext(Ad),{hash:a,pathname:i,search:s}=Wd(e,{relative:t}),c=i;return"/"!==r&&(c="/"===i?r:_d([r,i])),o.createHref({pathname:c,search:s,hash:a})}(l,{relative:o}),[b,w,x]=function(e,t){let r=n.useContext(yp),[o,a]=n.useState(!1),[i,s]=n.useState(!1),{onFocus:c,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=t,f=n.useRef(null);n.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),n.useEffect(()=>{if(o){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[o]);let h=()=>{a(!0)},m=()=>{a(!1),s(!1)};return r?"intent"!==e?[i,f,{}]:[i,f,{onFocus:vp(c,h),onBlur:vp(l,m),onMouseEnter:vp(u,h),onMouseLeave:vp(d,m),onTouchStart:vp(p,h)}]:[!1,f,{}]}(r,p),k=function(e,{target:t,replace:r,state:o,preventScrollReset:a,relative:i,viewTransition:s}={}){let c=Yd(),l=qd(),u=Wd(e,{relative:i});return n.useCallback(n=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(n,t)){n.preventDefault();let t=void 0!==r?r:od(l)===od(u);c(e,{replace:t,state:o,preventScrollReset:a,relative:i,viewTransition:s})}},[l,c,u,r,o,t,e,a,i,s])}(l,{replace:i,state:s,target:c,preventScrollReset:u,relative:o,viewTransition:d}),S=n.createElement("a",{...p,...x,href:h||v,onClick:g||a?e:function(t){e&&e(t),t.defaultPrevented||k(t)},ref:kp(f,w),target:c,"data-discover":y||"render"!==t?void 0:"true"});return b&&!y?n.createElement(n.Fragment,null,S,n.createElement(bp,{page:v})):S});jp.displayName="Link",n.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:o=!1,style:a,to:i,viewTransition:s,children:c,...l},u){let d=Wd(i,{relative:l.relative}),p=qd(),f=n.useContext(Rd),{navigator:h,basename:m}=n.useContext(Ad),y=null!=f&&function(e,{relative:t}={}){let r=n.useContext(Md);ed(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Op("useViewTransitionState"),a=Wd(e,{relative:t});if(!r.isTransitioning)return!1;let i=wd(r.currentLocation.pathname,o)||r.currentLocation.pathname,s=wd(r.nextLocation.pathname,o)||r.nextLocation.pathname;return null!=vd(a.pathname,s)||null!=vd(a.pathname,i)}(d)&&!0===s,g=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,v=p.pathname,b=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),b=b?b.toLowerCase():null,g=g.toLowerCase()),b&&m&&(b=wd(b,m)||b);const w="/"!==g&&g.endsWith("/")?g.length-1:g.length;let x,k=v===g||!o&&v.startsWith(g)&&"/"===v.charAt(w),S=null!=b&&(b===g||!o&&b.startsWith(g)&&"/"===b.charAt(g.length)),_={isActive:k,isPending:S,isTransitioning:y},D=k?e:void 0;x="function"==typeof r?r(_):[r,k?"active":null,S?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof a?a(_):a;return n.createElement(jp,{...l,"aria-current":D,className:x,ref:u,style:j,to:i,viewTransition:s},"function"==typeof c?c(_):c)}).displayName="NavLink";var Tp=n.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:o,replace:a,state:i,method:s=rp,action:c,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:p,...f},h)=>{let m=function(){let{router:e}=Op("useSubmit"),{basename:t}=n.useContext(Ad),r=Gd("useRouteId");return n.useCallback(async(n,o={})=>{let{action:a,method:i,encType:s,formData:c,body:l}=function(e,t){let n,r,o,a,i;if(ap(s=e)&&"form"===s.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?wd(i,t):null,n=e.getAttribute("method")||rp,o=lp(e.getAttribute("enctype"))||op,a=new FormData(e)}else if(function(e){return ap(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return ap(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(r=s?wd(s,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||rp,o=lp(e.getAttribute("formenctype"))||lp(i.getAttribute("enctype"))||op,a=new FormData(i,e),!function(){if(null===sp)try{new FormData(document.createElement("form"),0),sp=!1}catch(e){sp=!0}return sp}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(ap(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=rp,r=null,o=op,i=e}var s;return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}(n,t);if(!1===o.navigate){let t=o.fetcherKey||Pp();await e.fetch(t,r,o.action||a,{preventScrollReset:o.preventScrollReset,formData:c,body:l,formMethod:o.method||i,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:c,body:l,formMethod:o.method||i,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,r])}(),y=function(e,{relative:t}={}){let{basename:r}=n.useContext(Ad),o=n.useContext(Nd);ed(o,"useFormAction must be used inside a RouteContext");let[a]=o.matches.slice(-1),i={...Wd(e||".",{relative:t})},s=qd();if(null==e){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();i.search=n?`?${n}`:""}}return e&&"."!==e||!a.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(i.pathname="/"===i.pathname?r:_d([r,i.pathname])),od(i)}(c,{relative:u}),g="get"===s.toLowerCase()?"get":"post",v="string"==typeof c&&Dp.test(c);return n.createElement("form",{ref:h,method:g,action:y,onSubmit:o?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let n=e.nativeEvent.submitter,o=n?.getAttribute("formmethod")||s;m(n||e.currentTarget,{fetcherKey:t,method:o,navigate:r,replace:a,state:i,relative:u,preventScrollReset:d,viewTransition:p})},...f,"data-discover":v||"render"!==e?void 0:"true"})});function Op(e){let t=n.useContext(Pd);return ed(t,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}function Cp(e){td("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=n.useRef(ip(e)),r=n.useRef(!1),o=qd(),a=n.useMemo(()=>function(e,t){let n=ip(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(o.search,r.current?null:t.current),[o.search]),i=Yd(),s=n.useCallback((e,t)=>{const n=ip("function"==typeof e?e(new URLSearchParams(a)):e);r.current=!0,i("?"+n,t)},[i,a]);return[a,s]}Tp.displayName="Form";var Ep=0,Pp=()=>`__${String(++Ep)}__`;function Rp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mp(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ap=function(e){var t,r=e.params,o="overview",a="system",i=Rp((0,n.useState)([]),2),s=i[0],c=i[1],l=Rp(Cp(),2),u=l[0],d=l[1],p=[],f=function(e){var t=p.findIndex(function(t){return t.key===e});return-1===t?1:t+1},h=function(e){c([]),g(f(e)),d({tab:e})};r.canTroubleshoot&&p.push({key:"overview",component:(0,n.jsxs)(n.Tab,{title:(0,n.jsx)(n.Translate,{content:"Tabs.overview"}),icon:"four-squares","data-test-id":"".concat(Ot,"-overview-tab"),onActivate:function(){return h(o)},children:[(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"Tabs.overviewInfo"})}),(0,n.jsx)(Il,{baseUrl:r.baseUrl,serviceList:r.serviceList,logsClickHandler:function(e){g(f(a)),c([e.name]),d({tab:a})},onActivate:function(){return h(o)}})]})},{key:"system",component:(0,n.jsxs)(n.Tab,{title:(0,n.jsx)(n.Translate,{content:"Tabs.system"}),icon:"linux","data-test-id":"".concat(Ot,"-system-tab"),onActivate:function(){return h(a)},children:[(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"Tabs.systemInfo"})}),(0,n.jsx)(ll,{baseUrl:r.baseUrl,firstDayOfWeek:r.firstDayOfWeek,currentDate:r.currentDate,sourceList:r.systemUnits,showMomentFilter:!0,sourceFilterValue:s})]})},{key:"mail",component:(0,n.jsxs)(n.Tab,{title:(0,n.jsx)(n.Translate,{content:"Tabs.mail"}),icon:"mail","data-test-id":"".concat(Ot,"-mail-tab"),onActivate:function(){return h("mail")},children:[(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"Tabs.mailInfo"})}),(0,n.jsx)(ll,{baseUrl:r.baseUrl,firstDayOfWeek:r.firstDayOfWeek,currentDate:r.currentDate,sourceList:r.mailUnits,showMomentFilter:!0,showFacilityFilter:!1})]})},{key:"plesk",component:(0,n.jsxs)(n.Tab,{title:(0,n.jsx)(n.Translate,{content:"Tabs.plesk"}),icon:"panel","data-test-id":"".concat(Ot,"-panel-log-tab"),onActivate:function(){return h("plesk")},children:[(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"Tabs.pleskInfo"})}),(0,n.jsx)(_l,{baseUrl:r.baseUrl,firstDayOfWeek:r.firstDayOfWeek,currentDate:r.currentDate,showPanelLogDataFilter:r.showPanelLogDataFilter})]})}),r.canSeeActionLog&&p.push({key:"actionLog",component:(0,n.jsxs)(n.Tab,{title:(0,n.jsx)(n.Translate,{content:"Tabs.actionLog"}),icon:"list-check-mark","data-test-id":"".concat(Ot,"-action-log-tab"),onActivate:function(){return h("actionLog")},children:[(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogInfo"})}),(0,n.jsx)(Ju,{})]})});var m=Rp((0,n.useState)(f(null!==(t=u.get("tab"))&&void 0!==t?t:o)),2),y=m[0],g=m[1];return(0,n.jsx)(n.Tabs,{active:y,monospaced:!0,children:p.map(function(e){return e.component})})};Ap.propTypes={params:s().shape({baseUrl:s().string.isRequired,firstDayOfWeek:s().string.isRequired,currentDate:s().string.isRequired,systemUnits:s().arrayOf(s().string).isRequired,serviceList:s().arrayOf(s().object).isRequired,mailUnits:s().arrayOf(s().string).isRequired,showPanelLogDataFilter:s().bool.isRequired,canTroubleshoot:s().bool.isRequired,canSeeActionLog:s().bool.isRequired,canClearActionLog:s().bool.isRequired,canChangeSettings:s().bool.isRequired,isNis2Compliant:s().bool.isRequired,domainName:s().string}).isRequired};const Lp=Ap;var Np=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Dt.post("/modules/log-browser/index.php/mail-queue/delete-from-queue",{queueIds:e,mailIds:t,serverWide:n})},Fp=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Dt.post("/modules/log-browser/index.php/mail-queue/flush-from-queue",{queueIds:e,serverWide:t})},Ip=(0,n.createContext)({addSuccess:function(e){},addError:function(e){},clear:function(){}}),qp=function(e){var t=e.children,r=(0,n.useRef)(),o=(0,n.useMemo)(function(){return{addSuccess:function(e){return r.current.add({intent:"success",message:e})},addError:function(e){return r.current.add({intent:"danger",message:e})},clear:function(){return r.current.clear()}}},[r]);return(0,n.jsxs)(Ip.Provider,{value:o,children:[t,(0,n.jsx)(n.Toaster,{ref:r})]})};qp.propTypes={children:s().element.isRequired};var Bp=function(){return(0,n.useContext)(Ip)};function Up(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Yp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yp(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Wp=function(e){return Object.entries(e).filter(function(e){return e[1]}).map(function(e){return e[0]})},Hp=function(e){var t=e.onUpdateFilters,r=e.statusList,o=e.totals,a=(0,n.useTranslate)(),i=Up((0,n.useState)(null),2),s=i[0],c=i[1],l=Up((0,n.useState)([]),2),u=l[0],d=l[1],p=(0,n.useMemo)(function(){return r.map(function(e){var t;return(0,n.jsx)(n.FormFieldCheckbox,{disabled:!Object.prototype.hasOwnProperty.call(o,e)||0===o[e],name:e,label:(0,n.jsxs)(n.Text,{children:[(0,n.jsx)(n.Translate,{content:"MailQueueList.Filter.Status.".concat(e)})," ",(0,n.jsx)(n.Text,{intent:"muted",children:null!==(t=o[e])&&void 0!==t?t:0})]})},"filter-".concat(e))})},[r,o]);return(0,n.jsxs)(n.ToolbarGroup,{title:(0,n.jsx)(n.Translate,{content:"Filter.title"}),groupable:!1,children:[(0,n.jsx)(n.Popover,{title:(0,n.jsx)(n.Translate,{content:"Filter.title"}),target:(0,n.jsx)(n.Button,{icon:"filter"}),placement:"bottom",extra:(0,n.jsx)(n.Action,{icon:"clean",onClick:function(){d([]),c(null),t({statuses:[],text:""})},children:(0,n.jsx)(n.Translate,{content:"Filter.buttonClear"})}),children:(0,n.jsx)("div",{className:"mail-queue-status-filter",children:(0,n.jsx)(n.Form,{applyButton:{children:(0,n.jsx)(n.Translate,{content:"Filter.apply"}),size:"md"},cancelButton:!1,submitButton:!1,onSubmit:function(e){d(e),t({statuses:Wp(e),text:s})},values:u,children:p})})})," ",(0,n.jsx)(n.SearchBar,{inputProps:{placeholder:a("MailQueueList.Filter.text"),value:s},onSearch:function(e){c(e),t({statuses:Wp(u),text:e})}})]})};Hp.propTypes={onUpdateFilters:s().func.isRequired,statusList:s().object.isRequired,totals:s().shape({all:s().number}).isRequired};const Qp=Hp,zp=function(){return(0,n.jsxs)("span",{children:[(0,n.jsx)(n.Translate,{content:"MailQueueList.Column.status"})," ",(0,n.jsx)(n.Popover,{target:(0,n.jsx)(n.Icon,{intent:"inactive",name:"question-mark-circle"}),title:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.Status.header"}),width:"xs",placement:"bottom-right",children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(n.Text,{bold:!0,children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.Status.2xxOverview"})}),(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.Status.2xxDescription"})}),(0,n.jsx)(n.Text,{bold:!0,children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.Status.4xxOverview"})}),(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.Status.4xxDescription"})}),(0,n.jsx)(n.Text,{bold:!0,children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.Status.5xxOverview"})}),(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.Status.5xxDescription"})}),(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.Status.rfcDescription",params:{link:(0,n.jsx)(n.Link,{href:"https://datatracker.ietf.org/doc/html/rfc3463#page-14",children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.Status.rfcReference"})})}})})]})})]})};var Vp=window.navigator.userAgent.includes("Windows")?"\r\n":"\n",$p=function(e){var t=e.intent,r=void 0===t?void 0:t,o=e.header,a=void 0===o?void 0:o,i=e.content,s=void 0===i?[]:i,c=Bp(),l=c.addError,u=c.addSuccess,d=(0,n.useTranslate)();return(0,n.jsxs)(n.Fragment,{children:[a&&(0,n.jsx)(n.Heading,{level:5,children:a}),(0,n.jsxs)(n.Alert,{intent:r,children:[(0,n.jsx)("div",{className:"mail-queue-copyable-alert",children:s.join(Vp)}),(0,n.jsx)(n.Button,{ghost:!0,icon:"copy",onToggle:function(){var e;(e=s.join(Vp),navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e):new Promise(function(t,n){var r=document.createElement("textarea");r.value=e,r.style.position="absolute",r.style.left="-9999px",document.body.appendChild(r),r.select();try{document.execCommand("copy"),t()}catch(e){n(e)}finally{r.remove()}})).then(function(){return u(d("MailQueueList.Copy.success"))}).catch(function(e){return l(d("MailQueueList.Copy.failure",{error:e.message}))})},children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Copy.button"})})]})]})};$p.propTypes={intent:s().oneOf(["info","success","warning","danger","inactive"]),header:s().element,content:s().arrayOf(s().string)},$p.defaultProps={intent:"",header:void 0,content:[]};const Kp=$p;var Gp=function(e){var t=e.extendedStatus?"(".concat(e.extendedStatus,")"):null;return[e.dsn,e.status,t].filter(function(e){return e}).join(" ")},Jp=function(e){var t=e.row,r=e.showStatus,o=e.showDetails,a=e.showHeaders,i=e.showEvents;return(0,n.jsxs)("div",{className:"mail-queue-info-popover",children:[r&&(0,n.jsx)(Kp,{intent:"info",content:[Gp(t)],header:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.Heading.summary"})}),o&&t.report&&(0,n.jsx)(Kp,{intent:"inactive",content:[t.report],header:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.Heading.details"})}),a&&t.headers&&(0,n.jsx)(Kp,{intent:"inactive",content:t.headers,header:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.Heading.headers"})}),i&&(0,n.jsx)(Kp,{intent:"inactive",content:t.events.map(function(e){return"".concat(fl(new Date(1e3*e.timestamp))," ").concat(e.entry)}),header:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.Heading.events"})})]})};Jp.propTypes={row:s().shape({dsn:s().string,status:s().string,extendedStatus:s().string,disabled:s().bool,queueId:s().string,report:s().string,headers:s().arrayOf(s().string),events:s().arrayOf(s().shape({timestamp:s().number,entry:s().string}))}).isRequired,showStatus:s().bool,showDetails:s().bool,showHeaders:s().bool,showEvents:s().bool},Jp.defaultProps={showStatus:!1,showDetails:!1,showHeaders:!1,showEvents:!1};const Xp=Jp;var Zp=function(e){var t,r,o,a,i,s,c,l,u,d=e.firstTimestamp,p=null!==(t=e.lastTimestamp)&&void 0!==t?t:new Date,f=!e.disabled,h=(0,n.jsx)(n.Label,{icon:"deferred"===e.status?"triangle-exclamation-mark-filled":null,intent:e.statusIntent,size:"lg",view:"light",children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Filter.Status.".concat(e.status?e.status:"currentlyUnavailable")})});return(0,n.jsxs)(n.Fragment,{children:[e.report||null!==(r=e.events)&&void 0!==r&&r.length?(0,n.jsx)(n.Popover,{width:"md",placement:"right",target:h,children:(0,n.jsx)(Xp,{row:e,showStatus:f,showDetails:f,showEvents:!f})}):h,(0,n.jsx)("br",{}),(0,n.jsx)("span",{children:(0,n.jsxs)(n.Text,{bold:!0,fontSize:"sm",intent:e.secondaryStatusIntent,children:[(0,n.jsx)(n.Icon,{className:"mail-queue-delivery-cycle-icon",size:"12",name:"clock",intent:e.secondaryStatusIntent})," ",(o=d,a=p,i=(a-o)/1e3,s=Math.floor(i%60),c=Math.floor(i/60%60),l=Math.floor(i/3600%24),u=Math.floor(i/86400),"".concat(u?"".concat(u,"d"):""," ").concat(l?"".concat(l,"h"):""," ").concat(c?"".concat(c,"m"):""," ").concat(s,"s"))]})}),(0,n.jsx)("br",{}),(0,n.jsxs)("div",{className:"mail-queue-status-details",children:[(0,n.jsx)(n.Text,{bold:!0,intent:"muted",fontSize:"sm",children:e.dsn})," ",e.extendedStatus&&(0,n.jsx)(n.Tooltip,{title:e.extendedStatus,children:(0,n.jsx)(n.Text,{intent:"muted",fontSize:"sm",children:e.extendedStatus.length>48?"".concat(e.extendedStatus.slice(0,45),"..."):e.extendedStatus})})]})]})};Zp.propTypes={row:s().shape({dsn:s().string,status:s().string,extendedStatus:s().string,disabled:s().bool,queueId:s().string,report:s().string,headers:s().arrayOf(s().string),events:s().arrayOf(s().shape({timestamp:s().number,entry:s().string})),firstTimestamp:s().instanceOf(Date),lastTimestamp:s().instanceOf(Date),statusIntent:s().oneOf(["success","danger","warning","muted"]),secondaryStatusIntent:s().oneOf(["success","danger","warning","muted"])}).isRequired};const ef=Zp,tf=function(){return(0,n.jsxs)("span",{children:[(0,n.jsx)(n.Translate,{content:"MailQueueList.Column.idOrSubject"})," ",(0,n.jsx)(n.Popover,{target:(0,n.jsx)(n.Icon,{intent:"inactive",name:"question-mark-circle"}),width:"xs",placement:"right",children:(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.ID.description"})})})]})};var nf=function(e){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(n.Text,{bold:!0,children:e.messageId?e.messageId:e.queueId}),e.subject&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("br",{}),(0,n.jsx)(n.Popover,{width:"md",placement:"right",target:(0,n.jsx)(n.Text,{intent:"info",children:e.subject}),children:(0,n.jsx)(Xp,{row:e,showHeaders:!0})})]}),(0,n.jsx)("br",{}),(0,n.jsx)(n.Text,{intent:"muted",fontSize:"sm",children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.ID.date",params:{date:fl(e.firstTimestamp)}})}),(0,n.jsx)("br",{}),(0,n.jsx)(n.Text,{intent:"muted",fontSize:"sm",children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Details.ID.size",params:{size:pl(e.size)}})})]})};nf.propTypes={row:s().shape({dsn:s().string,status:s().string,extendedStatus:s().string,disabled:s().bool,queueId:s().string,report:s().string,headers:s().arrayOf(s().string),events:s().arrayOf(s().shape({timestamp:s().number,entry:s().string})),firstTimestamp:s().instanceOf(Date)}).isRequired};const rf=nf;var of=function(e){var t,r=e.row,o=e.handleFlushFromQueue,a=e.handleRemoveFromQueue,i=(0,n.useContext)(Yu).baseUrl,s="".concat(i,"images/mail-resend.svg"),c=!r.disabled;return(0,n.jsxs)(n.ListActions,{children:[(0,n.jsx)(n.ListAction,{icon:"list",primary:!0,disabled:!(r.report||null!==(t=r.events)&&void 0!==t&&t.length),children:function(e){var t=e.wrap;return(0,n.jsx)(n.Popover,{width:"md",placement:"left",target:t((0,n.jsx)(n.Translate,{content:"MailQueueList.Action.details"})),children:(0,n.jsx)(Xp,{row:r,showStatus:c,showDetails:c,showHeaders:c,showEvents:!c})})}}),(0,n.jsx)(n.ListAction,{icon:(0,n.jsx)(n.Icon,{children:(0,n.jsx)("img",{alt:"",src:s})}),disabled:!c,primary:!0,onClick:function(){return o([r.queueId])},children:(0,n.jsx)(n.Translate,{content:r.disabled?"MailQueueList.Action.cannotAct":"MailQueueList.Action.resend"})}),(0,n.jsx)(n.ListAction,{icon:"recycle",disabled:!c,primary:!0,children:function(e){var t=e.wrap;return(0,n.jsxs)(n.Popover,{target:t((0,n.jsx)(n.Translate,{content:r.disabled?"MailQueueList.Action.cannotAct":"MailQueueList.Action.remove"})),placement:"top",children:[(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Remove.confirm"})}),(0,n.jsx)(n.Button,{intent:"danger",onClick:function(){return a([r.queueId],[r.id])},children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Action.confirm"})})]})}})]})};of.propTypes={row:s().shape({id:s().number,dsn:s().string,status:s().string,extendedStatus:s().string,disabled:s().bool,queueId:s().string,report:s().string,headers:s().arrayOf(s().string),events:s().arrayOf(s().shape({timestamp:s().number,entry:s().string}))}).isRequired,handleFlushFromQueue:s().func.isRequired,handleRemoveFromQueue:s().func.isRequired};const af=of;var sf=["deferred","expired","force-expired","pending","hold","maildrop"],cf=["bounced","corrupt","rejected"],lf=["active","incoming"],uf=function(e,t){return[{key:"status",title:(0,n.jsx)(zp,{}),render:ef,width:"18%"},{key:"id",title:(0,n.jsx)(tf,{}),render:rf,truncate:!0,width:"29%"},{key:"from",title:(0,n.jsx)(n.Translate,{content:"MailQueueList.Column.from"}),render:function(e){return e.from?e.from:"—"},truncate:!0,width:"22%"},{key:"to",title:(0,n.jsx)(n.Translate,{content:"MailQueueList.Column.to"}),render:function(e){var t=e.to;return Array.isArray(t)?(0,n.jsx)(n.Cuttable,{maxHeight:"5rem",children:t.length?t.map(function(e){return(0,n.jsx)("div",{children:e},e)}):"-"}):null!=t?t:"-"},truncate:!0,width:"22%"},{key:"actions",type:"controls",render:function(r){return(0,n.jsx)(af,{handleFlushFromQueue:e,row:r,handleRemoveFromQueue:t})},width:"9%"}]},df=function(e,t){return 0===e.length?t.all:Object.entries(t).filter(function(t){return e.includes(t[0])}).reduce(function(e,t){return e+t[1]},0)},pf=function(e){var t="success",n="muted";return cf.includes(e)?(t="danger",n="warning"):sf.includes(e)?(t="warning",n="muted"):(lf.includes(e)||null===e)&&(t="info"),{statusIntent:t,secondaryStatusIntent:n}},ff=function(e){return!sf.includes(e)},hf=r(7569),mf={};function yf(e){return yf="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},yf(e)}function gf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vf(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bf(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 wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bf(Object(n),!0).forEach(function(t){xf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xf(e,t,n){return(t=function(e){var t=function(e){if("object"!=yf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yf(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}mf.styleTagTransform=Wt(),mf.setAttributes=qt(),mf.insert=Ft().bind(null,"head"),mf.domAPI=Lt(),mf.insertStyleElement=Ut(),Mt()(hf.A,mf),hf.A&&hf.A.locals&&hf.A.locals;var kf=["deferred","expired","force-expired","pending"],Sf=function(e,t){return e.map(function(e){return t.find(function(t){return t.id===e}).queueId})},_f=function(e){return e.disabled?(0,n.jsx)(n.Tooltip,{title:(0,n.jsx)(n.Translate,{content:"MailQueueList.Action.cannotAct"}),children:(0,n.jsx)(n.Checkbox,wf({},e))}):(0,n.jsx)(n.Checkbox,wf({},e))},Df=function(e){var t,n=pf(e.status),r=new Date(1e3*e.events[0].timestamp),o=(t=e.status,sf.includes(t)||null===t?new Date:new Date(1e3*e.events[e.events.length-1].timestamp));return wf(wf({},e),{},{key:e.id,disabled:ff(e.status),firstTimestamp:r,lastTimestamp:o},n)};const jf=function(){var e,t,r,o,a,i,s=Wu().domainId,c=(0,n.useTranslate)(),l=Bp(),u=l.addError,d=l.addSuccess,p=gf((0,n.useState)([]),2),f=p[0],h=p[1],m=gf((0,n.useState)(null),2),y=m[0],g=m[1],v=gf((0,n.useState)({all:0}),2),b=v[0],w=v[1],x=gf((0,n.useState)(!0),2),k=x[0],S=x[1],_=gf((0,n.useState)([]),2),D=_[0],j=_[1],T=gf((0,n.useState)({statuses:[],text:null,filterInProcessing:!1}),2),O=T[0],C=T[1],E=gf((0,n.useState)(1),2),P=E[0],R=E[1],M=gf((0,n.useState)(10),2),A=M[0],L=M[1],N=(0,n.useCallback)(function(e){return Fp(e).then(function(){return d(c("MailQueueList.Resend.success"))}).catch(function(e){return u(c("MailQueueList.Resend.failure",{error:e.message}))})},[u,d,c]),F=(0,n.useCallback)(function(e){var t=e.domainId,n=e.page,r=void 0===n?1:n,o=e.itemsPerPage,a=void 0===o?10:o,i=e.filters,s=void 0===i?{}:i;S(!0),function(e){return Dt.post("/modules/log-browser/index.php/mail-queue/get-mail-events",e).then(function(e){return e.data})}(wf({page:r,itemsPerPage:a,domainId:t},s)).then(function(e){h(e.map(Df)),S(!1)}).catch(g),U({domainId:t,filters:s})},[U]),I=(0,n.useCallback)(function(e,t){return Np(e,t).then(function(){d(c("MailQueueList.Remove.success")),F({domainId:s,page:P,itemsPerPage:A,filters:O})}).catch(function(e){return u(c("MailQueueList.Remove.failure",{error:e.message}))})},[u,d,c,F,s,P,A,O]),q=(0,n.useMemo)(function(){return O.filterInProcessing&&O.statuses.push("currentlyUnavailable"),df(O.statuses,b)},[O,b]),B=(0,n.useMemo)(function(){return null===b?0:Math.ceil(b.all/A)},[b,A]);e="parse-maillog",r=(t={uniq:!0,onComplete:function(){return F({domainId:s,page:P,itemsPerPage:A,filters:O})}}).onComplete,o=t.onError,a=t.uniq,i=(0,n.useRef)(new Set),(0,n.useEffect)(function(){if("Jsw"in window){var t=function(e,t){null==e||e(t),i.current.add(t.id)},n=function(n){a&&i.current.has(n.id)||n.type==="".concat("ext-log-browser-").concat(e)&&(o&&"error"===n.status&&t(o,n),r&&"done"===n.status&&t(r,n))};return Jsw.Observer.append(n,"plesk:taskComplete"),function(){return Jsw.Observer.remove(n,"plesk:taskComplete")}}return null},[r,o,e,a]);var U=(0,n.useCallback)(function(e){var t=e.domainId,n=e.filters;(function(e){return Dt.post("/modules/log-browser/index.php/mail-queue/get-mail-count",e).then(function(e){return e.data})})({domainId:t,text:(void 0===n?{}:n).text}).then(function(e){w(e)}).catch(g)},[]);return(0,n.useEffect)(function(){return F({domainId:s,page:P,itemsPerPage:A,filters:O})},[s,F,A,P,O]),y?(0,n.jsx)(n.StatusMessage,{intent:"danger",children:y.message}):(0,n.jsx)(n.List,{columns:uf(N,I),data:f,filtered:!0,selection:D,onSelectionChange:j,loading:k,emptyView:k?(0,n.jsx)(n.SkeletonText,{}):(0,n.jsx)(n.ListEmptyView,{title:(0,n.jsx)(n.Translate,{content:"MailQueueList.Filter.empty"})}),pagination:(0,n.jsx)(n.Pagination,{current:P,total:B,onSelect:function(e){R(e)},itemsPerPage:A,itemsPerPageOptions:[10,25,50],onItemsPerPageChange:function(e){R(1),L(e)}}),renderSelectionCheckbox:_f,totalRows:q,toolbar:(0,n.jsxs)(n.Toolbar,{children:[(0,n.jsxs)(n.ToolbarGroup,{title:"Actions",children:[(0,n.jsx)(n.Button,{disabled:k,icon:"refresh",onClick:function(){S(!0),function(e){Dt.post("/modules/log-browser/index.php/mail-queue/parse-log-files",{domainId:e})}(s)},intent:"primary",children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Action.refresh"})}),(0,n.jsx)(n.ListOperation,{noSelectionText:(0,n.jsx)(n.Translate,{content:"MailQueueList.Resend.emptySelection"}),children:(0,n.jsx)(n.Button,{onClick:function(){D.length&&N(Sf(D,f))},children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Resend.button"})})}),(0,n.jsx)(n.ListOperation,{critical:!0,noSelectionText:(0,n.jsx)(n.Translate,{content:"MailQueueList.Remove.emptySelection"}),confirmationText:(0,n.jsx)(n.Translate,{content:"MailQueueList.Remove.confirmMulti"}),actionButtonText:(0,n.jsx)(n.Translate,{content:"MailQueueList.Remove.button"}),children:(0,n.jsx)(n.Button,{onClick:function(){return I(Sf(D,f),function(e,t){return e.map(function(e){return t.find(function(t){return t.id===e}).id})}(D,f))},children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Remove.button"})})})]}),(0,n.jsx)(n.ToolbarExpander,{}),(0,n.jsx)(Qp,{totals:b,statusList:["sent","bounced","rejected","currentlyUnavailable"].concat(kf),onUpdateFilters:function(e){e.statuses.includes("currentlyUnavailable")&&(e.filterInProcessing=!0,e.statuses=e.statuses.filter(function(e){return"currentlyUnavailable"!==e})),C(e),R(1)}})]})})};function Tf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Of(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Of(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Of(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Cf={mailQueue:1,actionLog:2};const Ef=function(){var e,t=Tf(Cp(),2),r=t[0],o=t[1],a=Tf((0,n.useState)(null!==(e=Cf[r.get("tab")])&&void 0!==e?e:Cf.actionLog),2),i=a[0],s=a[1],c=Wu(),l=function(e){s(Cf[e]),o({site_id:String(c.domainId),tab:e})};return(0,n.jsxs)(n.Tabs,{active:i,monospaced:!0,children:[c.canViewDomainMailQueue&&(0,n.jsxs)(n.Tab,{title:(0,n.jsx)(n.Translate,{content:"Tabs.mailQueue"}),icon:"mail","data-test-id":"".concat(Ot,"-mail-queue-tab"),onActivate:function(){return l("mailQueue")},children:[(0,n.jsxs)(n.Alert,{intent:"info",children:[(0,n.jsx)(n.Heading,{level:5,children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Feature.header"})}),(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Feature.description"})})]}),c.databaseIsLocked?(0,n.jsx)(n.Alert,{intent:"warning",children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Feature.databaseIsLocked"})}):(0,n.jsx)(jf,{})]}),c.canSeeActionLog&&(0,n.jsxs)(n.Tab,{title:(0,n.jsx)(n.Translate,{content:"Tabs.actionLog"}),icon:"list-check-mark","data-test-id":"".concat(Ot,"-action-log-tab"),onActivate:function(){return l("actionLog")},children:[(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"Tabs.actionLogInfo"})}),(0,n.jsx)(Ju,{})]})]})};function Pf(e){return Pf="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},Pf(e)}function Rf(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 Mf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rf(Object(n),!0).forEach(function(t){Af(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Af(e,t,n){return(t=function(e){var t=function(e){if("object"!=Pf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pf(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Nf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nf(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ff=function(e,t){return e.map(function(e){return t.find(function(t){return t.key===e}).queueId})};const If=function(){var e=(0,n.useTranslate)(),t=Bp(),r=t.addError,o=t.addSuccess,a=Lf((0,n.useState)([]),2),i=a[0],s=a[1],c=Lf((0,n.useState)(null),2),l=c[0],u=c[1],d=Lf((0,n.useState)({all:0}),2),p=d[0],f=d[1],h=Lf((0,n.useState)(!0),2),m=h[0],y=h[1],g=Lf((0,n.useState)([]),2),v=g[0],b=g[1],w=Lf((0,n.useState)({statuses:[],text:null}),2),x=w[0],k=w[1],S=Lf((0,n.useState)(1),2),_=S[0],D=S[1],j=Lf((0,n.useState)(1),2),T=j[0],O=j[1],C=Lf((0,n.useState)(10),2),E=C[0],P=C[1],R=(0,n.useCallback)(function(t){return Np(t,[],!0).then(function(){b([]),o(e("MailQueueList.Remove.success")),O(T+1)}).catch(function(t){return r(e("MailQueueList.Remove.failure",{error:t.message}))})},[r,o,T,e]),M=(0,n.useCallback)(function(t){return Fp(t,!0).then(function(){b([]),o(e("MailQueueList.Resend.success")),O(T+1)}).catch(function(t){return r(e("MailQueueList.Resend.failure",{error:t.message}))})},[r,o,T,e]),A=(0,n.useCallback)(function(e){var t=e.page,n=void 0===t?1:t,r=e.itemsPerPage,o=void 0===r?10:r,a=e.filters,i=void 0===a?{}:a;y(!0),function(e){return Dt.post("/modules/log-browser/index.php/mail-queue/get-mail-queue",e).then(function(e){return e.data})}(Mf({page:n,itemsPerPage:o},i)).then(function(e){s(e.messages.map(function(e){return Mf(Mf({},e),{},{key:"".concat(e.queueId,"-").concat(e.to[0]),firstTimestamp:new Date(1e3*e.arrivalTime),dsn:(t=e.report,null==t||null===(n=t.split("\n").find(function(e){return e.startsWith("status=")}))||void 0===n?void 0:n.substring(7)),disabled:ff(e.status)},pf(e.status));var t,n})),f(e.totals),y(!1)}).catch(u)},[]),L=(0,n.useMemo)(function(){return df(x.statuses,p)},[x.statuses,p]),N=(0,n.useMemo)(function(){return null===L?0:Math.ceil(L/E)},[L,E]);return(0,n.useEffect)(function(){return A({page:_,itemsPerPage:E,filters:x})},[A,E,_,x,T]),l?(0,n.jsx)(n.StatusMessage,{intent:"danger",children:l.message}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(n.Alert,{intent:"muted",children:[(0,n.jsx)(n.Text,{bold:!0,children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Server.Total",params:{count:p.all}})}),Object.entries(p).map(function(e){var t=Lf(e,2),n=t[0];return Mf({count:t[1],name:n},function(e){switch(e){case"deferred":case"maildrop":return{intent:"warning",icon:{name:"triangle-exclamation-mark-filled"}};case"hold":return{intent:"danger",icon:{name:"exclamation-mark-circle-filled"}};case"incoming":return{intent:"info",icon:{name:"info-circle-filled"}};case"active":return{intent:"success",icon:{name:"info-circle-filled"}};case"corrupt":return{intent:"danger",icon:{name:"cross-mark-circle-filled"}};default:return null}}(n))}).filter(function(e){return e.icon}).map(function(e){return(0,n.jsx)("span",{style:{textTransform:"lowercase",marginLeft:"0.5rem"},children:(0,n.jsxs)(n.Status,{intent:e.intent,icon:e.icon,children:[e.count," ",(0,n.jsx)(n.Translate,{content:"MailQueueList.Filter.Status.".concat(e.name)})]})},"mail-queue-status-".concat(e.name,"-").concat(e.count))})]}),(0,n.jsx)(n.List,{columns:uf(M,R),data:i,filtered:!0,selection:v,onSelectionChange:b,loading:m,emptyView:m?(0,n.jsx)(n.SkeletonText,{}):(0,n.jsx)(n.ListEmptyView,{title:(0,n.jsx)(n.Translate,{content:"MailQueueList.Filter.emptyServer"})}),pagination:(0,n.jsx)(n.Pagination,{current:_,total:N,onSelect:function(e){D(e)},itemsPerPage:E,itemsPerPageOptions:[10,25,50],onItemsPerPageChange:function(e){D(1),P(e)}}),totalRows:L,toolbar:(0,n.jsxs)(n.Toolbar,{children:[(0,n.jsxs)(n.ToolbarGroup,{title:"Actions",children:[(0,n.jsx)(n.Button,{disabled:m,icon:"refresh",onClick:function(){O(T+1)},intent:"primary",children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Action.refresh"})}),(0,n.jsx)(n.ListOperation,{noSelectionText:(0,n.jsx)(n.Translate,{content:"MailQueueList.Resend.emptySelection"}),children:(0,n.jsx)(n.Button,{onClick:function(){v.length&&M(Ff(v,i))},children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Resend.button"})})})]}),(0,n.jsx)(n.ToolbarGroup,{title:"Remove",children:(0,n.jsx)(n.ListOperation,{critical:!0,noSelectionText:(0,n.jsx)(n.Translate,{content:"MailQueueList.Remove.emptySelection"}),confirmationText:(0,n.jsx)(n.Translate,{content:"MailQueueList.Remove.confirmMulti"}),actionButtonText:(0,n.jsx)(n.Translate,{content:"MailQueueList.Remove.button"}),children:(0,n.jsx)(n.Button,{onClick:function(){return R(Ff(v,i))},children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Remove.button"})})})}),(0,n.jsx)(n.ToolbarGroup,{title:"Clear",children:(0,n.jsx)(n.Popover,{placement:"top",target:(0,n.jsx)(n.Button,{children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Clear.button"})}),children:function(e){var t=e.onClose;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(n.Paragraph,{children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Clear.confirm"})}),(0,n.jsx)(n.Button,{onClick:function(){return function(e){y(!0),Dt.post("/modules/log-browser/index.php/mail-queue/delete-all-messages").then(function(){D(1),O(function(e){return e+1}),e()}).catch(function(e){return r(e.message)}).finally(function(){return y(!1)})}(t)},intent:"danger",children:(0,n.jsx)(n.Translate,{content:"MailQueueList.Clear.button"})})]})}})}),(0,n.jsx)(n.ToolbarExpander,{}),(0,n.jsx)(Qp,{totals:p,statusList:["deferred","maildrop","hold","incoming","active","corrupt"],onUpdateFilters:function(e){k(e),D(1)}})]})})]})};function qf(e){return qf="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},qf(e)}function Bf(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 Uf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bf(Object(n),!0).forEach(function(t){Yf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yf(e,t,n){return(t=function(e){var t=function(e){if("object"!=qf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qf(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wf=function(e){var t=e.tabs;return(0,n.jsx)(n.Tabs,{active:t.findIndex(function(e){return"tabMailQueue"===e.id})+1,children:t.map(function(e){return(0,n.jsx)(n.Tab,Uf(Uf({id:e.id,title:e.title,href:e.url},e.datatestid?{"data-test-id":"".concat(Ot,"-").concat(e.datatestid)}:{}),{},{children:"tabMailQueue"===e.id&&(0,n.jsx)(If,{})}),e.id)})})};Wf.propTypes={tabs:s().arrayOf(s().shape({title:s().string,url:s().string,id:s().string,datatestid:s().string})).isRequired};const Hf=Wf;Dt.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",Dt.interceptors.response.use(function(e){return e},function(e){var t;return 400===(null===(t=e.response)||void 0===t?void 0:t.status)?(window.location.reload(),new Promise(function(){})):Promise.reject(e)});const Qf=function(e){(0,n.render)((0,n.jsx)(n.LocaleProvider,{messages:e.locale,children:(0,n.jsx)(Yu.Provider,{value:e,children:(0,n.jsx)(qp,{children:(0,n.jsx)(_p,{basename:e.baseUrl,children:(0,n.jsxs)(tp,{children:[(0,n.jsx)(Zd,{path:"/index.php/index/domain",element:(0,n.jsx)(Ef,{})}),(0,n.jsx)(Zd,{path:"/index.php/index/mail-queue",element:(0,n.jsx)(Hf,{tabs:e.tabs})}),(0,n.jsx)(Zd,{path:"*",element:(0,n.jsx)(Lp,{params:e})})]})})})})}),document.getElementById(e.moduleId))}})(),o})());
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
main.js
423739 bytes
0644
main.js.LICENSE.txt
461 bytes
0644
N4ST4R_ID | Naxtarrr