@fattureincloud/fic-design-system 0.7.50 → 0.7.51

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ object-assign
17
17
  Licensed under the MIT License (MIT), see
18
18
  http://jedwatson.github.io/classnames
19
19
  */
20
- dL=xL,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)n.push(o);else if(Array.isArray(o)){if(o.length){var a=t.apply(null,o);a&&n.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var l in o)e.call(o,l)&&o[l]&&n.push(l)}}}return n.join(" ")}dL.exports?(t.default=t,dL.exports=t):window.classNames=t}();var wL=xL.exports;function kL(e,t){return kL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kL(e,t)}function CL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _L(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var SL,$L,EL=(void 0===SL&&(SL=0),function(){return++SL}),TL={},DL={},ML=["touchstart","touchmove"];function OL(e,t){var n={};return-1!==ML.indexOf(t)&&$L&&(n.passive=!e.props.preventDefault),n}function RL(e,n){var r,o,i=e.displayName||e.name||"Component";return o=r=function(r){var o,a;function l(e){var t;return(t=r.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof t.__clickOutsideHandlerProp){var n=t.getInstance();if("function"!=typeof n.props.handleClickOutside){if("function"!=typeof n.handleClickOutside)throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.");n.handleClickOutside(e)}else n.props.handleClickOutside(e)}else t.__clickOutsideHandlerProp(e)},t.__getComponentNode=function(){var e=t.getInstance();return n&&"function"==typeof n.setClickOutsideRef?n.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():h.findDOMNode(e)},t.enableOnClickOutside=function(){if("undefined"!=typeof document&&!DL[t._uid]){void 0===$L&&($L=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),DL[t._uid]=!0;var e=t.props.eventTypes;e.forEach||(e=[e]),TL[t._uid]=function(e){var n;null!==t.componentNode&&(t.props.preventDefault&&e.preventDefault(),t.props.stopPropagation&&e.stopPropagation(),t.props.excludeScrollbar&&(n=e,document.documentElement.clientWidth<=n.clientX||document.documentElement.clientHeight<=n.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&_L(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,t.componentNode,t.props.outsideClickIgnoreClass)===document&&t.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,TL[t._uid],OL(CL(t),e))}))}},t.disableOnClickOutside=function(){delete DL[t._uid];var e=TL[t._uid];if(e&&"undefined"!=typeof document){var n=t.props.eventTypes;n.forEach||(n=[n]),n.forEach((function(n){return document.removeEventListener(n,e,OL(CL(t),n))})),delete TL[t._uid]}},t.getRef=function(e){return t.instanceRef=e},t._uid=EL(),t}a=r,(o=l).prototype=Object.create(a.prototype),o.prototype.constructor=o,kL(o,a);var s=l.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},s.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(n&&"function"==typeof n.handleClickOutside&&(this.__clickOutsideHandlerProp=n.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var n=this.props;n.excludeScrollbar;var r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?r.ref=this.getRef:r.wrappedRef=this.getRef,r.disableOnClickOutside=this.disableOnClickOutside,r.enableOnClickOutside=this.enableOnClickOutside,t.createElement(e,r)},l}(t.Component),r.displayName="OnClickOutside("+i+")",r.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:n&&n.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},r.getClass=function(){return e.getClass?e.getClass():e},o}function PL(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 NL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PL(Object(n),!0).forEach((function(t){LL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AL(e){return(AL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function IL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GL(r.key),r)}}function jL(e,t,n){return t&&FL(e.prototype,t),n&&FL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function LL(e,t,n){return(t=GL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zL(){return(zL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function BL(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UL(e,t)}function HL(e){return(HL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function UL(e,t){return(UL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function WL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=HL(e);if(t){var o=HL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return WL(e)}(this,n)}}function YL(e){return function(e){if(Array.isArray(e))return qL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return qL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qL(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GL(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function KL(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function XL(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var QL={p:XL,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return KL(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",KL(o,t)).replace("{{time}}",XL(i,t))}},ZL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function JL(e){var t=e?"string"==typeof e||e instanceof String?hc(e):Ha(e):new Date;return ez(t)?t:null}function ez(e,t){return t=t||new Date("1/1/1000"),pl(e)&&!Ts(e,t)}function tz(e,t,n){if("en"===n)return ys(e,t,{awareOfUnicodeTokens:!0});var r=yz(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&gz()&&yz(gz())&&(r=yz(gz())),ys(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function nz(e,t){var n=t.dateFormat,r=t.locale;return e&&tz(e,Array.isArray(n)?n[0]:n,r)||""}function rz(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,i=void 0===o?0:o,a=t.second;return _c(Sc(function(e,t){Ba(2,arguments);var n=Ha(e),r=za(t);return n.setSeconds(r),n}(e,void 0===a?0:a),i),r)}function oz(e,t){var n=t&&yz(t)||gz()&&yz(gz());return function(e){Ba(1,arguments);var t=Ha(e),n=Qa(t).getTime()-Za(t).getTime();return Math.round(n/ws)+1}(e,n?{locale:n}:null)}function iz(e,t,n){return Xa(e,{locale:yz(t||gz()),weekStartsOn:n})}function az(e){return xl(e)}function lz(e){return kl(e)}function sz(e){return vl(e)}function uz(){return el(JL())}function cz(e,t){return e&&t?function(e,t){Ba(2,arguments);var n=Ha(e),r=Ha(t);return n.getFullYear()===r.getFullYear()}(e,t):!e&&!t}function dz(e,t){return e&&t?function(e,t){Ba(2,arguments);var n=Ha(e),r=Ha(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}(e,t):!e&&!t}function fz(e,t){return e&&t?function(e,t){Ba(2,arguments);var n=vl(e),r=vl(t);return n.getTime()===r.getTime()}(e,t):!e&&!t}function pz(e,t){return e&&t?function(e,t){Ba(2,arguments);var n=el(e),r=el(t);return n.getTime()===r.getTime()}(e,t):!e&&!t}function hz(e,t){return e&&t?function(e,t){Ba(2,arguments);var n=Ha(e),r=Ha(t);return n.getTime()===r.getTime()}(e,t):!e&&!t}function mz(e,t,n){var r,o=el(t),i=yl(n);try{r=pc(e,{start:o,end:i})}catch(e){r=!1}return r}function gz(){return("undefined"!=typeof window?window:globalThis).__localeId__}function yz(e){if("string"==typeof e){var t="undefined"!=typeof window?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function bz(e,t){return tz(Cc(JL(),e),"LLLL",t)}function vz(e,t){return tz(Cc(JL(),e),"LLL",t)}function xz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.excludeDateIntervals,a=t.includeDates,l=t.includeDateIntervals,s=t.filterDate;return Ez(e,{minDate:n,maxDate:r})||o&&o.some((function(t){return pz(e,t)}))||i&&i.some((function(t){var n=t.start,r=t.end;return pc(e,{start:n,end:r})}))||a&&!a.some((function(t){return pz(e,t)}))||l&&!l.some((function(t){var n=t.start,r=t.end;return pc(e,{start:n,end:r})}))||s&&!s(JL(e))||!1}function wz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some((function(t){var n=t.start,r=t.end;return pc(e,{start:n,end:r})})):n&&n.some((function(t){return pz(e,t)}))||!1}function kz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return Ez(e,{minDate:xl(n),maxDate:bl(r)})||o&&o.some((function(t){return dz(e,t)}))||i&&!i.some((function(t){return dz(e,t)}))||a&&!a(JL(e))||!1}function Cz(e,t,n,r){var o=$s(e),i=Cs(e),a=$s(t),l=Cs(t),s=$s(r);return o===a&&o===s?i<=n&&n<=l:o<a?s===o&&i<=n||s===a&&l>=n||s<a&&s>o:void 0}function _z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return Ez(e,{minDate:n,maxDate:r})||o&&o.some((function(t){return fz(e,t)}))||i&&!i.some((function(t){return fz(e,t)}))||a&&!a(JL(e))||!1}function Sz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate,l=new Date(e,0,1);return Ez(l,{minDate:kl(n),maxDate:wl(r)})||o&&o.some((function(e){return cz(l,e)}))||i&&!i.some((function(e){return cz(l,e)}))||a&&!a(JL(l))||!1}function $z(e,t,n,r){var o=$s(e),i=ml(e),a=$s(t),l=ml(t),s=$s(r);return o===a&&o===s?i<=n&&n<=l:o<a?s===o&&i<=n||s===a&&l>=n||s<a&&s>o:void 0}function Ez(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&nl(e,n)<0||r&&nl(e,r)>0}function Tz(e,t){return t.some((function(t){return xs(t)===xs(e)&&ks(t)===ks(e)}))}function Dz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,o=t.filterTime;return n&&Tz(e,n)||r&&!Tz(e,r)||o&&!o(e)||!1}function Mz(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var o,i=JL(),a=_c(Sc(i,ks(e)),xs(e)),l=_c(Sc(i,ks(n)),xs(n)),s=_c(Sc(i,ks(r)),xs(r));try{o=!pc(a,{start:l,end:s})}catch(e){o=!1}return o}function Oz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=Tc(e,1);return n&&hl(n,o)>0||r&&r.every((function(e){return hl(e,o)>0}))||!1}function Rz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=Wa(e,1);return n&&hl(o,n)>0||r&&r.every((function(e){return hl(o,e)>0}))||!1}function Pz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=Dc(e,1);return n&&gl(n,o)>0||r&&r.every((function(e){return gl(e,o)>0}))||!1}function Nz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=ll(e,1);return n&&gl(o,n)>0||r&&r.every((function(e){return gl(o,e)>0}))||!1}function Az(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return nl(e,t)>=0}));return ul(r)}return n?ul(n):t}function Iz(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return nl(e,t)<=0}));return sl(r)}return n?sl(n):t}function Fz(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,o=e.length;r<o;r++){var i=e[r];if(fl(i)){var a=tz(i,"MM.dd.yyyy"),l=n.get(a)||[];l.includes(t)||(l.push(t),n.set(a,l))}else if("object"===AL(i)){var s=Object.keys(i),u=s[0],c=i[s[0]];if("string"==typeof u&&c.constructor===Array)for(var d=0,f=c.length;d<f;d++){var p=tz(c[d],"MM.dd.yyyy"),h=n.get(p)||[];h.includes(u)||(h.push(u),n.set(p,h))}}}return n}function jz(e,t,n,r,o){for(var i=o.length,a=[],l=0;l<i;l++){var s=ol(qa(e,xs(o[l])),ks(o[l])),u=ol(e,(n+1)*r);Es(s,t)&&Ts(s,u)&&a.push(o[l])}return a}function Lz(e){return e<10?"0".concat(e):"".concat(e)}function zz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,n=Math.ceil($s(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function Bz(e,t,n,r){for(var o=[],i=0;i<2*t+1;i++){var a=e+t-i,l=!0;n&&(l=$s(n)<=a),r&&l&&(l=$s(r)>=a),l&&o.push(a)}return o}var Hz=RL(function(e){BL(r,_.default.Component);var n=VL(r);function r(e){var o;IL(this,r),LL(WL(o=n.call(this,e)),"renderOptions",(function(){var e=o.props.year,t=o.state.yearsList.map((function(t){return _.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:o.onChange.bind(WL(o),t),"aria-selected":e===t?"true":void 0},e===t?_.default.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)})),n=o.props.minDate?$s(o.props.minDate):null,r=o.props.maxDate?$s(o.props.maxDate):null;return r&&o.state.yearsList.find((function(e){return e===r}))||t.unshift(_.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:o.incrementYears},_.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&o.state.yearsList.find((function(e){return e===n}))||t.push(_.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:o.decrementYears},_.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),LL(WL(o),"onChange",(function(e){o.props.onChange(e)})),LL(WL(o),"handleClickOutside",(function(){o.props.onCancel()})),LL(WL(o),"shiftYears",(function(e){var t=o.state.yearsList.map((function(t){return t+e}));o.setState({yearsList:t})})),LL(WL(o),"incrementYears",(function(){return o.shiftYears(1)})),LL(WL(o),"decrementYears",(function(){return o.shiftYears(-1)}));var i=e.yearDropdownItemNumber,a=e.scrollableYearDropdown,l=i||(a?10:5);return o.state={yearsList:Bz(o.props.year,l,o.props.minDate,o.props.maxDate)},o.dropdownRef=t.createRef(),o}return jL(r,[{key:"componentDidMount",value: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.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}}},{key:"render",value:function(){var e=wL({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return _.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),r}()),Uz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),LL(WL(e),"renderSelectOptions",(function(){for(var t=e.props.minDate?$s(e.props.minDate):1900,n=e.props.maxDate?$s(e.props.maxDate):2100,r=[],o=t;o<=n;o++)r.push(_.default.createElement("option",{key:o,value:o},o));return r})),LL(WL(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),LL(WL(e),"renderSelectMode",(function(){return _.default.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),LL(WL(e),"renderReadView",(function(t){return _.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(t){return e.toggleDropdown(t)}},_.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),_.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))})),LL(WL(e),"renderDropdown",(function(){return _.default.createElement(Hz,{key:"dropdown",year:e.props.year,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})})),LL(WL(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),LL(WL(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)})),LL(WL(e),"toggleDropdown",(function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},(function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)}))})),LL(WL(e),"handleYearChange",(function(t,n){e.onSelect(t,n),e.setOpen()})),LL(WL(e),"onSelect",(function(t,n){e.props.onSelect&&e.props.onSelect(t,n)})),LL(WL(e),"setOpen",(function(){e.props.setOpen&&e.props.setOpen(!0)})),e}return jL(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return _.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(),Wz=RL(function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"isSelectedMonth",(function(t){return e.props.month===t})),LL(WL(e),"renderOptions",(function(){return e.props.monthNames.map((function(t,n){return _.default.createElement("div",{className:e.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(WL(e),n),"aria-selected":e.isSelectedMonth(n)?"true":void 0},e.isSelectedMonth(n)?_.default.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",t)}))})),LL(WL(e),"onChange",(function(t){return e.props.onChange(t)})),LL(WL(e),"handleClickOutside",(function(){return e.props.onCancel()})),e}return jL(n,[{key:"render",value:function(){return _.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}()),Vz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),LL(WL(e),"renderSelectOptions",(function(e){return e.map((function(e,t){return _.default.createElement("option",{key:t,value:t},e)}))})),LL(WL(e),"renderSelectMode",(function(t){return _.default.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(t){return e.onChange(t.target.value)}},e.renderSelectOptions(t))})),LL(WL(e),"renderReadView",(function(t,n){return _.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},_.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),_.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[e.props.month]))})),LL(WL(e),"renderDropdown",(function(t){return _.default.createElement(Wz,{key:"dropdown",month:e.props.month,monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown})})),LL(WL(e),"renderScrollMode",(function(t){var n=e.state.dropdownVisible,r=[e.renderReadView(!n,t)];return n&&r.unshift(e.renderDropdown(t)),r})),LL(WL(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)})),LL(WL(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return jL(n,[{key:"render",value:function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return vz(e,t.props.locale)}:function(e){return bz(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return _.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}();function Yz(e,t){for(var n=[],r=az(e),o=az(t);!Es(r,o);)n.push(JL(r)),r=Wa(r,1);return n}var qz=RL(function(e){BL(n,_.default.Component);var t=VL(n);function n(e){var r;return IL(this,n),LL(WL(r=t.call(this,e)),"renderOptions",(function(){return r.state.monthYearsList.map((function(e){var t=Ss(e),n=cz(r.props.date,e)&&dz(r.props.date,e);return _.default.createElement("div",{className:n?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:r.onChange.bind(WL(r),t),"aria-selected":n?"true":void 0},n?_.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",tz(e,r.props.dateFormat,r.props.locale))}))})),LL(WL(r),"onChange",(function(e){return r.props.onChange(e)})),LL(WL(r),"handleClickOutside",(function(){r.props.onCancel()})),r.state={monthYearsList:Yz(r.props.minDate,r.props.maxDate)},r}return jL(n,[{key:"render",value:function(){var e=wL({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return _.default.createElement("div",{className:e},this.renderOptions())}}]),n}()),Gz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),LL(WL(e),"renderSelectOptions",(function(){for(var t=az(e.props.minDate),n=az(e.props.maxDate),r=[];!Es(t,n);){var o=Ss(t);r.push(_.default.createElement("option",{key:o,value:o},tz(t,e.props.dateFormat,e.props.locale))),t=Wa(t,1)}return r})),LL(WL(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),LL(WL(e),"renderSelectMode",(function(){return _.default.createElement("select",{value:Ss(az(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),LL(WL(e),"renderReadView",(function(t){var n=tz(e.props.date,e.props.dateFormat,e.props.locale);return _.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(t){return e.toggleDropdown(t)}},_.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),_.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))})),LL(WL(e),"renderDropdown",(function(){return _.default.createElement(qz,{key:"dropdown",date:e.props.date,dateFormat:e.props.dateFormat,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,locale:e.props.locale})})),LL(WL(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),LL(WL(e),"onChange",(function(t){e.toggleDropdown();var n=JL(parseInt(t));cz(e.props.date,n)&&dz(e.props.date,n)||e.props.onChange(n)})),LL(WL(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return jL(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return _.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(),Kz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"dayEl",_.default.createRef()),LL(WL(e),"handleClick",(function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)})),LL(WL(e),"handleMouseEnter",(function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)})),LL(WL(e),"handleOnKeyDown",(function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)})),LL(WL(e),"isSameDay",(function(t){return pz(e.props.day,t)})),LL(WL(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!e.isSameDay(e.props.selected)&&e.isSameDay(e.props.preSelection)})),LL(WL(e),"isDisabled",(function(){return xz(e.props.day,e.props)})),LL(WL(e),"isExcluded",(function(){return wz(e.props.day,e.props)})),LL(WL(e),"getHighLightedClass",(function(t){var n=e.props,r=n.day,o=n.highlightDates;if(!o)return!1;var i=tz(r,"MM.dd.yyyy");return o.get(i)})),LL(WL(e),"isInRange",(function(){var t=e.props,n=t.day,r=t.startDate,o=t.endDate;return!(!r||!o)&&mz(n,r,o)})),LL(WL(e),"isInSelectingRange",(function(){var t,n=e.props,r=n.day,o=n.selectsStart,i=n.selectsEnd,a=n.selectsRange,l=n.selectsDisabledDaysInRange,s=n.startDate,u=n.endDate,c=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return!(!(o||i||a)||!c||!l&&e.isDisabled())&&(o&&u&&(Ts(c,u)||hz(c,u))?mz(r,c,u):(i&&s&&(Es(c,s)||hz(c,s))||!(!a||!s||u||!Es(c,s)&&!hz(c,s)))&&mz(r,s,c))})),LL(WL(e),"isSelectingRangeStart",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,o=n.startDate,i=n.selectsStart,a=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return pz(r,i?a:o)})),LL(WL(e),"isSelectingRangeEnd",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,o=n.endDate,i=n.selectsEnd,a=n.selectsRange,l=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return pz(r,i||a?l:o)})),LL(WL(e),"isRangeStart",(function(){var t=e.props,n=t.day,r=t.startDate,o=t.endDate;return!(!r||!o)&&pz(r,n)})),LL(WL(e),"isRangeEnd",(function(){var t=e.props,n=t.day,r=t.startDate,o=t.endDate;return!(!r||!o)&&pz(o,n)})),LL(WL(e),"isWeekend",(function(){var t=function(e){return Ba(1,arguments),Ha(e).getDay()}(e.props.day);return 0===t||6===t})),LL(WL(e),"isAfterMonth",(function(){return void 0!==e.props.month&&(e.props.month+1)%12===Cs(e.props.day)})),LL(WL(e),"isBeforeMonth",(function(){return void 0!==e.props.month&&(Cs(e.props.day)+1)%12===e.props.month})),LL(WL(e),"isCurrentDay",(function(){return e.isSameDay(JL())})),LL(WL(e),"isSelected",(function(){return e.isSameDay(e.props.selected)})),LL(WL(e),"getClassNames",(function(t){var n=e.props.dayClassName?e.props.dayClassName(t):void 0;return wL("react-datepicker__day",n,"react-datepicker__day--"+function(e,t){return tz(e,"ddd",t)}(e.props.day),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"))})),LL(WL(e),"getAriaLabel",(function(){var t=e.props,n=t.day,r=t.ariaLabelPrefixWhenEnabled,o=void 0===r?"Choose":r,i=t.ariaLabelPrefixWhenDisabled,a=void 0===i?"Not available":i,l=e.isDisabled()||e.isExcluded()?a:o;return"".concat(l," ").concat(tz(n,"PPPP",e.props.locale))})),LL(WL(e),"getTabIndex",(function(t,n){var r=t||e.props.selected,o=n||e.props.preSelection;return e.isKeyboardSelected()||e.isSameDay(r)&&pz(o,r)?0:-1})),LL(WL(e),"handleFocusDay",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(n=!0),e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()&&(n=!1),e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()&&(n=!1)),n&&e.dayEl.current.focus({preventScroll:!0})})),LL(WL(e),"renderDayContents",(function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(vs(e.props.day),e.props.day):vs(e.props.day)})),LL(WL(e),"render",(function(){return _.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option","aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()},e.renderDayContents())})),e}return jL(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(),Xz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"handleClick",(function(t){e.props.onClick&&e.props.onClick(t)})),e}return jL(n,[{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,r=void 0===n?"week ":n,o={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick};return _.default.createElement("div",{className:wL(o),"aria-label":"".concat(r," ").concat(this.props.weekNumber),onClick:this.handleClick},t)}}]),n}(),Qz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n)})),LL(WL(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),LL(WL(e),"handleWeekClick",(function(t,n,r){"function"==typeof e.props.onWeekSelect&&e.props.onWeekSelect(t,n,r),e.props.shouldCloseOnSelect&&e.props.setOpen(!1)})),LL(WL(e),"formatWeekNumber",(function(t){return e.props.formatWeekNumber?e.props.formatWeekNumber(t):oz(t)})),LL(WL(e),"renderDays",(function(){var t=iz(e.props.day,e.props.locale,e.props.calendarStartDay),n=[],r=e.formatWeekNumber(t);if(e.props.showWeekNumber){var o=e.props.onWeekSelect?e.handleWeekClick.bind(WL(e),t,r):void 0;n.push(_.default.createElement(Xz,{key:"W",weekNumber:r,onClick:o,ariaLabelPrefix:e.props.ariaLabelPrefix}))}return n.concat([0,1,2,3,4,5,6].map((function(n){var r=Ua(t,n);return _.default.createElement(Kz,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:r.valueOf(),day:r,month:e.props.month,onClick:e.handleDayClick.bind(WL(e),r),onMouseEnter:e.handleDayMouseEnter.bind(WL(e),r),minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,renderDayContents:e.props.renderDayContents,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart,locale:e.props.locale})})))})),e}return jL(n,[{key:"render",value:function(){return _.default.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),Zz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"MONTH_REFS",YL(Array(12)).map((function(){return _.default.createRef()}))),LL(WL(e),"QUARTER_REFS",YL(Array(4)).map((function(){return _.default.createRef()}))),LL(WL(e),"isDisabled",(function(t){return xz(t,e.props)})),LL(WL(e),"isExcluded",(function(t){return wz(t,e.props)})),LL(WL(e),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n,e.props.orderInDisplay)})),LL(WL(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),LL(WL(e),"handleMouseLeave",(function(){e.props.onMouseLeave&&e.props.onMouseLeave()})),LL(WL(e),"isRangeStartMonth",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&dz(Cc(r,t),o)})),LL(WL(e),"isRangeStartQuarter",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&fz($c(r,t),o)})),LL(WL(e),"isRangeEndMonth",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&dz(Cc(r,t),i)})),LL(WL(e),"isRangeEndQuarter",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&fz($c(r,t),i)})),LL(WL(e),"isInSelectingRangeMonth",(function(t){var n,r=e.props,o=r.day,i=r.selectsStart,a=r.selectsEnd,l=r.selectsRange,s=r.startDate,u=r.endDate,c=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(i||a||l)||!c)&&(i&&u?Cz(c,u,t,o):(a&&s||!(!l||!s||u))&&Cz(s,c,t,o))})),LL(WL(e),"isInSelectingRangeQuarter",(function(t){var n,r=e.props,o=r.day,i=r.selectsStart,a=r.selectsEnd,l=r.selectsRange,s=r.startDate,u=r.endDate,c=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(i||a||l)||!c)&&(i&&u?$z(c,u,t,o):(a&&s||!(!l||!s||u))&&$z(s,c,t,o))})),LL(WL(e),"isWeekInMonth",(function(t){var n=e.props.day,r=Ua(t,6);return dz(t,n)||dz(r,n)})),LL(WL(e),"isCurrentMonth",(function(e,t){return $s(e)===$s(JL())&&t===Cs(JL())})),LL(WL(e),"isCurrentQuarter",(function(e,t){return $s(e)===$s(JL())&&t===ml(JL())})),LL(WL(e),"isSelectedMonth",(function(e,t,n){return Cs(e)===t&&$s(e)===$s(n)})),LL(WL(e),"isSelectedQuarter",(function(e,t,n){return ml(e)===t&&$s(e)===$s(n)})),LL(WL(e),"renderWeeks",(function(){for(var t=[],n=e.props.fixedHeight,r=0,o=!1,i=iz(az(e.props.day),e.props.locale,e.props.calendarStartDay);t.push(_.default.createElement(Qz,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,key:r,day:i,month:Cs(e.props.day),onDayClick:e.handleDayClick,onDayMouseEnter:e.handleDayMouseEnter,onWeekSelect:e.props.onWeekSelect,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,showWeekNumber:e.props.showWeekNumbers,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderDayContents:e.props.renderDayContents,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,calendarStartDay:e.props.calendarStartDay,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart})),!o;){r++,i=al(i,1);var a=n&&r>=6,l=!n&&!e.isWeekInMonth(i);if(a||l){if(!e.props.peekNextMonth)break;o=!0}}return t})),LL(WL(e),"onMonthClick",(function(t,n){e.handleDayClick(az(Cc(e.props.day,n)),t)})),LL(WL(e),"onMonthMouseEnter",(function(t){e.handleDayMouseEnter(az(Cc(e.props.day,t)))})),LL(WL(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),LL(WL(e),"onMonthKeyDown",(function(t,n){t.preventDefault();var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onMonthClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,Wa(e.props.preSelection,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,Tc(e.props.preSelection,1));break;case"ArrowUp":e.handleMonthNavigation(n>=0&&n<=2?n+9:n-3,Tc(e.props.preSelection,3));break;case"ArrowDown":e.handleMonthNavigation(n>=9&&n<=11?n-9:n+3,Wa(e.props.preSelection,3))}})),LL(WL(e),"onQuarterClick",(function(t,n){e.handleDayClick(sz($c(e.props.day,n)),t)})),LL(WL(e),"onQuarterMouseEnter",(function(t){e.handleDayMouseEnter(sz($c(e.props.day,t)))})),LL(WL(e),"handleQuarterNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.QUARTER_REFS[t-1].current&&e.QUARTER_REFS[t-1].current.focus())})),LL(WL(e),"onQuarterKeyDown",(function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onQuarterClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(4===n?1:n+1,il(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(1===n?4:n-1,function(e,t){return Ba(2,arguments),il(e,-za(t))}(e.props.preSelection,1))}})),LL(WL(e),"getMonthClassNames",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate,a=n.selected,l=n.minDate,s=n.maxDate,u=n.preSelection,c=n.monthClassName,d=n.excludeDates,f=n.includeDates,p=c?c(Cc(r,t)):void 0,h=Cc(r,t);return wL("react-datepicker__month-text","react-datepicker__month-".concat(t),p,{"react-datepicker__month-text--disabled":(l||s||d||f)&&kz(h,e.props),"react-datepicker__month-text--selected":e.isSelectedMonth(r,t,a),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&Cs(u)===t,"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":Cz(o,i,t,r),"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--today":e.isCurrentMonth(r,t)})})),LL(WL(e),"getTabIndex",(function(t){var n=Cs(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),LL(WL(e),"getQuarterTabIndex",(function(t){var n=ml(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),LL(WL(e),"getAriaLabel",(function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,o=void 0===r?"Choose":r,i=n.disabledDayAriaLabelPrefix,a=void 0===i?"Not available":i,l=Cc(n.day,t),s=e.isDisabled(l)||e.isExcluded(l)?a:o;return"".concat(s," ").concat(tz(l,"MMMM yyyy"))})),LL(WL(e),"getQuarterClassNames",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate,a=n.selected,l=n.minDate,s=n.maxDate,u=n.preSelection;return wL("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":(l||s)&&_z($c(r,t),e.props),"react-datepicker__quarter-text--selected":e.isSelectedQuarter(r,t,a),"react-datepicker__quarter-text--keyboard-selected":ml(u)===t,"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":$z(o,i,t,r),"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t)})})),LL(WL(e),"renderMonths",(function(){var t=e.props,n=t.showFullMonthYearPicker,r=t.showTwoColumnMonthYearPicker,o=t.showFourColumnMonthYearPicker,i=t.locale,a=t.day,l=t.selected;return(o?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:r?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map((function(t,r){return _.default.createElement("div",{className:"react-datepicker__month-wrapper",key:r},t.map((function(t,r){return _.default.createElement("div",{ref:e.MONTH_REFS[t],key:r,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},onMouseEnter:function(){return e.onMonthMouseEnter(t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(a,t)?"date":void 0,"aria-selected":e.isSelectedMonth(a,t,l)},n?bz(t,i):vz(t,i))})))}))})),LL(WL(e),"renderQuarters",(function(){var t=e.props,n=t.day,r=t.selected;return _.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,o){return _.default.createElement("div",{key:o,ref:e.QUARTER_REFS[o],role:"option",onClick:function(n){e.onQuarterClick(n,t)},onKeyDown:function(n){e.onQuarterKeyDown(n,t)},onMouseEnter:function(){return e.onQuarterMouseEnter(t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r),tabIndex:e.getQuarterTabIndex(t),"aria-current":e.isCurrentQuarter(n,t)?"date":void 0},function(e,t){return tz($c(JL(),e),"QQQ",t)}(t,e.props.locale))})))})),LL(WL(e),"getClassNames",(function(){var t=e.props;t.day;var n=t.selectingDate,r=t.selectsStart,o=t.selectsEnd,i=t.showMonthYearPicker,a=t.showQuarterYearPicker;return wL("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||o)},{"react-datepicker__monthPicker":i},{"react-datepicker__quarterPicker":a})})),e}return jL(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,o=e.ariaLabelPrefix,i=void 0===o?"month ":o;return _.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(i," ").concat(tz(r,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(),Jz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"state",{height:null}),LL(WL(e),"handleClick",(function(t){(e.props.minTime||e.props.maxTime)&&Mz(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&Dz(t,e.props)||e.props.onChange(t)})),LL(WL(e),"isSelectedTime",(function(t,n,r){return e.props.selected&&n===xs(t)&&r===ks(t)})),LL(WL(e),"liClasses",(function(t,n,r){var o=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t,n,r):void 0];return e.isSelectedTime(t,n,r)&&o.push("react-datepicker__time-list-item--selected"),((e.props.minTime||e.props.maxTime)&&Mz(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&Dz(t,e.props))&&o.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(60*xs(t)+ks(t))%e.props.intervals!=0&&o.push("react-datepicker__time-list-item--injected"),o.join(" ")})),LL(WL(e),"handleOnKeyDown",(function(t,n){" "===t.key&&(t.preventDefault(),t.key="Enter"),"Enter"===t.key&&e.handleClick(n),e.props.handleOnKeyDown(t)})),LL(WL(e),"renderTimes",(function(){for(var t=[],n=e.props.format?e.props.format:"p",r=e.props.intervals,o=function(e){return el(e)}(JL(e.props.selected)),i=1440/r,a=e.props.injectTimes&&e.props.injectTimes.sort((function(e,t){return e-t})),l=e.props.selected||e.props.openToDate||JL(),s=xs(l),u=ks(l),c=_c(Sc(o,u),s),d=0;d<i;d++){var f=ol(o,d*r);if(t.push(f),a){var p=jz(o,f,d,r,a);t=t.concat(p)}}return t.map((function(t,r){return _.default.createElement("li",{key:r,onClick:e.handleClick.bind(WL(e),t),className:e.liClasses(t,s,u),ref:function(n){(Ts(t,c)||hz(t,c))&&(e.centerLi=n)},onKeyDown:function(n){e.handleOnKeyDown(n,t)},tabIndex:"0","aria-selected":e.isSelectedTime(t,s,u)?"true":void 0},tz(t,n,e.props.locale))}))})),e}return jL(n,[{key:"componentDidMount",value:function(){this.list.scrollTop=this.centerLi&&n.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var e=this,t=this.state.height;return _.default.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},_.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(t){e.header=t}},_.default.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),_.default.createElement("div",{className:"react-datepicker__time"},_.default.createElement("div",{className:"react-datepicker__time-box"},_.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{},tabIndex:"0"},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}();LL(Jz,"calcCenterPosition",(function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)}));var eB=function(e){BL(n,_.default.Component);var t=VL(n);function n(e){var r;return IL(this,n),LL(WL(r=t.call(this,e)),"YEAR_REFS",YL(Array(r.props.yearItemNumber)).map((function(){return _.default.createRef()}))),LL(WL(r),"isDisabled",(function(e){return xz(e,r.props)})),LL(WL(r),"isExcluded",(function(e){return wz(e,r.props)})),LL(WL(r),"updateFocusOnPaginate",(function(e){var t=function(){this.YEAR_REFS[e].current.focus()}.bind(WL(r));window.requestAnimationFrame(t)})),LL(WL(r),"handleYearClick",(function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)})),LL(WL(r),"handleYearNavigation",(function(e,t){var n=r.props,o=n.date,i=n.yearItemNumber,a=zz(o,i).startPeriod;r.isDisabled(t)||r.isExcluded(t)||(r.props.setPreSelection(t),e-a==-1?r.updateFocusOnPaginate(i-1):e-a===i?r.updateFocusOnPaginate(0):r.YEAR_REFS[e-a].current.focus())})),LL(WL(r),"isSameDay",(function(e,t){return pz(e,t)})),LL(WL(r),"isCurrentYear",(function(e){return e===$s(JL())})),LL(WL(r),"isKeyboardSelected",(function(e){var t=lz(Ec(r.props.date,e));return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!pz(t,lz(r.props.selected))&&pz(t,lz(r.props.preSelection))})),LL(WL(r),"onYearClick",(function(e,t){var n=r.props.date;r.handleYearClick(lz(Ec(n,t)),e)})),LL(WL(r),"onYearKeyDown",(function(e,t){var n=e.key;if(!r.props.disabledKeyboardNavigation)switch(n){case"Enter":r.onYearClick(e,t),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleYearNavigation(t+1,ll(r.props.preSelection,1));break;case"ArrowLeft":r.handleYearNavigation(t-1,Dc(r.props.preSelection,1))}})),LL(WL(r),"getYearClassNames",(function(e){var t=r.props,n=t.minDate,o=t.maxDate,i=t.selected,a=t.excludeDates,l=t.includeDates,s=t.filterDate;return wL("react-datepicker__year-text",{"react-datepicker__year-text--selected":e===$s(i),"react-datepicker__year-text--disabled":(n||o||a||l||s)&&Sz(e,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(e),"react-datepicker__year-text--today":r.isCurrentYear(e)})})),LL(WL(r),"getYearTabIndex",(function(e){return r.props.disabledKeyboardNavigation?"-1":e===$s(r.props.preSelection)?"0":"-1"})),r}return jL(n,[{key:"render",value:function(){for(var e=this,t=[],n=this.props,r=zz(n.date,n.yearItemNumber),o=r.startPeriod,i=r.endPeriod,a=function(n){t.push(_.default.createElement("div",{ref:e.YEAR_REFS[n-o],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){e.onYearKeyDown(t,n)},tabIndex:e.getYearTabIndex(n),className:e.getYearClassNames(n),key:n,"aria-current":e.isCurrentYear(n)?"date":void 0},n))},l=o;l<=i;l++)a(l);return _.default.createElement("div",{className:"react-datepicker__year"},_.default.createElement("div",{className:"react-datepicker__year-wrapper"},t))}}]),n}(),tB=function(e){BL(n,_.default.Component);var t=VL(n);function n(e){var r;return IL(this,n),LL(WL(r=t.call(this,e)),"onTimeChange",(function(e){r.setState({time:e});var t=new Date;t.setHours(e.split(":")[0]),t.setMinutes(e.split(":")[1]),r.props.onChange(t)})),LL(WL(r),"renderTimeInput",(function(){var e=r.state.time,t=r.props,n=t.date,o=t.timeString,i=t.customTimeInput;return i?_.default.cloneElement(i,{date:n,value:e,onChange:r.onTimeChange}):_.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||o)}})})),r.state={time:r.props.timeString},r}return jL(n,[{key:"render",value:function(){return _.default.createElement("div",{className:"react-datepicker__input-time-container"},_.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),_.default.createElement("div",{className:"react-datepicker-time__input-container"},_.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.timeString!==t.time?{time:e.timeString}:null}}]),n}();function nB(e){var t=e.className,n=e.children,r=e.showPopperArrow,o=e.arrowProps,i=void 0===o?{}:o;return _.default.createElement("div",{className:t},r&&_.default.createElement("div",zL({className:"react-datepicker__triangle"},i)),n)}var rB,oB,iB,aB,lB,sB,uB,cB,dB,fB,pB,hB,mB,gB,yB,bB,vB,xB,wB,kB=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],CB=function(e){BL(n,_.default.Component);var t=VL(n);function n(e){var r;return IL(this,n),LL(WL(r=t.call(this,e)),"handleClickOutside",(function(e){r.props.onClickOutside(e)})),LL(WL(r),"setClickOutsideRef",(function(){return r.containerRef.current})),LL(WL(r),"handleDropdownFocus",(function(e){(function(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return kB.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&r.props.onDropdownFocus()})),LL(WL(r),"getDateInView",(function(){var e=r.props,t=e.preSelection,n=e.selected,o=e.openToDate,i=Az(r.props),a=Iz(r.props),l=JL();return o||n||t||(i&&Ts(l,i)?i:a&&Es(l,a)?a:l)})),LL(WL(r),"increaseMonth",(function(){r.setState((function(e){return{date:Wa(e.date,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),LL(WL(r),"decreaseMonth",(function(){r.setState((function(e){return{date:Tc(e.date,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),LL(WL(r),"handleDayClick",(function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)})),LL(WL(r),"handleDayMouseEnter",(function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)})),LL(WL(r),"handleMonthMouseLeave",(function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()})),LL(WL(r),"handleYearChange",(function(e){r.props.onYearChange&&(r.props.onYearChange(e),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),LL(WL(r),"handleMonthChange",(function(e){r.props.onMonthChange&&(r.props.onMonthChange(e),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),LL(WL(r),"handleMonthYearChange",(function(e){r.handleYearChange(e),r.handleMonthChange(e)})),LL(WL(r),"changeYear",(function(e){r.setState((function(t){return{date:Ec(t.date,e)}}),(function(){return r.handleYearChange(r.state.date)}))})),LL(WL(r),"changeMonth",(function(e){r.setState((function(t){return{date:Cc(t.date,e)}}),(function(){return r.handleMonthChange(r.state.date)}))})),LL(WL(r),"changeMonthYear",(function(e){r.setState((function(t){return{date:Ec(Cc(t.date,Cs(e)),$s(e))}}),(function(){return r.handleMonthYearChange(r.state.date)}))})),LL(WL(r),"header",(function(){var e=iz(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,r.props.locale,r.props.calendarStartDay),t=[];return r.props.showWeekNumbers&&t.push(_.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map((function(t){var n=Ua(e,t),o=r.formatWeekday(n,r.props.locale),i=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return _.default.createElement("div",{key:t,className:wL("react-datepicker__day-name",i)},o)})))})),LL(WL(r),"formatWeekday",(function(e,t){return r.props.formatWeekDay?function(e,t,n){return t(tz(e,"EEEE",n))}(e,r.props.formatWeekDay,t):r.props.useWeekdaysShort?function(e,t){return tz(e,"EEE",t)}(e,t):function(e,t){return tz(e,"EEEEEE",t)}(e,t)})),LL(WL(r),"decreaseYear",(function(){r.setState((function(e){return{date:Dc(e.date,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),LL(WL(r),"renderPreviousButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=Pz(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,o=void 0===r?12:r,i=zz(lz(Dc(e,o)),o).endPeriod,a=n&&$s(n);return a&&a>i||!1}(r.state.date,r.props);break;default:e=Oz(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var o=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,i=r.props,a=i.previousMonthButtonLabel,l=i.previousYearButtonLabel,s=r.props,u=s.previousMonthAriaLabel,c=void 0===u?"string"==typeof a?a:"Previous Month":u,d=s.previousYearAriaLabel,f=void 0===d?"string"==typeof l?l:"Previous Year":d;return _.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":o?f:c},_.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},o?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel))}}})),LL(WL(r),"increaseYear",(function(){r.setState((function(e){return{date:ll(e.date,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),LL(WL(r),"renderNextButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=Nz(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,o=void 0===r?12:r,i=zz(ll(e,o),o).startPeriod,a=n&&$s(n);return a&&a<i||!1}(r.state.date,r.props);break;default:e=Rz(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.increaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null);var o=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,i=r.props,a=i.nextMonthButtonLabel,l=i.nextYearButtonLabel,s=r.props,u=s.nextMonthAriaLabel,c=void 0===u?"string"==typeof a?a:"Next Month":u,d=s.nextYearAriaLabel,f=void 0===d?"string"==typeof l?l:"Next Year":d;return _.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":o?f:c},_.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},o?r.props.nextYearButtonLabel:r.props.nextMonthButtonLabel))}}})),LL(WL(r),"renderCurrentMonth",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),_.default.createElement("div",{className:t.join(" ")},tz(e,r.props.dateFormat,r.props.locale))})),LL(WL(r),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return _.default.createElement(Uz,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:$s(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})})),LL(WL(r),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return _.default.createElement(Vz,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:Cs(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})})),LL(WL(r),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return _.default.createElement(Gz,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})})),LL(WL(r),"handleTodayButtonClick",(function(e){r.props.onSelect(uz(),e),r.props.setPreSelection&&r.props.setPreSelection(uz())})),LL(WL(r),"renderTodayButton",(function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return _.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.handleTodayButtonClick(e)}},r.props.todayButton)})),LL(WL(r),"renderDefaultHeader",(function(e){var t=e.monthDate,n=e.i;return _.default.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),_.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),_.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),LL(WL(r),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var o=Oz(r.state.date,r.props),i=Rz(r.state.date,r.props),a=Pz(r.state.date,r.props),l=Nz(r.state.date,r.props),s=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return _.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(NL(NL({},r.state),{},{customHeaderCount:n,monthDate:t,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:o,nextMonthButtonDisabled:i,prevYearButtonDisabled:a,nextYearButtonDisabled:l})),s&&_.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),LL(WL(r),"renderYearHeader",(function(){var e=r.state.date,t=r.props,n=t.showYearPicker,o=zz(e,t.yearItemNumber),i=o.startPeriod,a=o.endPeriod;return _.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(i," - ").concat(a):$s(e))})),LL(WL(r),"renderHeader",(function(e){switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(e);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(e);default:return r.renderDefaultHeader(e)}})),LL(WL(r),"renderMonths",(function(){if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var e=[],t=r.props.showPreviousMonths?r.props.monthsShown-1:0,n=Tc(r.state.date,t),o=0;o<r.props.monthsShown;++o){var i=Wa(n,o-r.props.monthSelectedIn),a="month-".concat(o),l=o<r.props.monthsShown-1,s=o>0;e.push(_.default.createElement("div",{key:a,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.renderHeader({monthDate:i,i:o}),_.default.createElement(Zz,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,ariaLabelPrefix:r.props.monthAriaLabelPrefix,onChange:r.changeMonthYear,day:i,dayClassName:r.props.dayClassName,calendarStartDay:r.props.calendarStartDay,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:o,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,highlightDates:r.props.highlightDates,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:l,monthShowsDuplicateDaysStart:s})))}return e}})),LL(WL(r),"renderYears",(function(){if(!r.props.showTimeSelectOnly)return r.props.showYearPicker?_.default.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader(),_.default.createElement(eB,zL({onDayClick:r.handleDayClick,date:r.state.date},r.props))):void 0})),LL(WL(r),"renderTimeSection",(function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return _.default.createElement(Jz,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,handleOnKeyDown:r.props.handleOnKeyDown,showTimeSelectOnly:r.props.showTimeSelectOnly})})),LL(WL(r),"renderInputTimeSection",(function(){var e=new Date(r.props.selected),t=ez(e)&&Boolean(r.props.selected)?"".concat(Lz(e.getHours()),":").concat(Lz(e.getMinutes())):"";if(r.props.showTimeInput)return _.default.createElement(tB,{date:e,timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})})),LL(WL(r),"renderAriaLiveRegion",(function(){var e,t=zz(r.state.date,r.props.yearItemNumber),n=t.startPeriod,o=t.endPeriod;return e=r.props.showYearPicker?"".concat(n," - ").concat(o):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?$s(r.state.date):"".concat(bz(Cs(r.state.date),r.props.locale)," ").concat($s(r.state.date)),_.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&e)})),LL(WL(r),"renderChildren",(function(){if(r.props.children)return _.default.createElement("div",{className:"react-datepicker__children-container"},r.props.children)})),r.containerRef=_.default.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},r}return jL(n,[{key:"componentDidMount",value:function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))}},{key:"componentDidUpdate",value:function(e){!this.props.preSelection||pz(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn?this.props.openToDate&&!pz(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate}):this.setState({date:this.props.preSelection})}},{key:"render",value:function(){var e=this.props.container||nB;return _.default.createElement("div",{ref:this.containerRef},_.default.createElement(e,{className:wL("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(),_B=function(e){BL(n,_.default.Component);var t=VL(n);function n(e){var r;return IL(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return jL(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return O.default.createPortal(this.props.children,this.el)}}]),n}(),SB=function(e){return!e.disabled&&-1!==e.tabIndex},$B=function(e){BL(n,_.default.Component);var t=VL(n);function n(e){var r;return IL(this,n),LL(WL(r=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(SB)})),LL(WL(r),"handleFocusStart",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[t.length-1].focus()})),LL(WL(r),"handleFocusEnd",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[0].focus()})),r.tabLoopRef=_.default.createRef(),r}return jL(n,[{key:"render",value:function(){return this.props.enableTabLoop?_.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},_.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,_.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),EB=function(e){BL(n,_.default.Component);var t=VL(n);function n(){return IL(this,n),t.apply(this,arguments)}return jL(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,o=t.hidePopper,a=t.popperComponent,l=t.popperModifiers,s=t.popperPlacement,u=t.popperProps,c=t.targetComponent,d=t.enableTabLoop,f=t.popperOnKeyDown,p=t.portalId,h=t.portalHost;if(!o){var m=wL("react-datepicker-popper",n);e=_.default.createElement(i.Popper,zL({modifiers:l,placement:s},u),(function(e){var t=e.ref,n=e.style,r=e.placement,o=e.arrowProps;return _.default.createElement($B,{enableTabLoop:d},_.default.createElement("div",{ref:t,style:n,className:m,"data-placement":r,onKeyDown:f},_.default.cloneElement(a,{arrowProps:o})))}))}this.props.popperContainer&&(e=_.default.createElement(this.props.popperContainer,{},e)),p&&!o&&(e=_.default.createElement(_B,{portalId:p,portalHost:h},e));var g=wL("react-datepicker-wrapper",r);return _.default.createElement(i.Manager,{className:"react-datepicker-manager"},_.default.createElement(i.Reference,null,(function(e){var t=e.ref;return _.default.createElement("div",{ref:t,className:g},c)})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),TB=RL(CB),DB=function(e){BL(n,_.default.Component);var t=VL(n);function n(e){var r;return IL(this,n),LL(WL(r=t.call(this,e)),"getPreSelection",(function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:JL()})),LL(WL(r),"calcInitialState",(function(){var e,t=r.getPreSelection(),n=Az(r.props),o=Iz(r.props),i=n&&Ts(t,el(n))?n:o&&Es(t,yl(o))?o:t;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:i,highlightDates:Fz(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}})),LL(WL(r),"clearPreventFocusTimeout",(function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)})),LL(WL(r),"setFocus",(function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})})),LL(WL(r),"setBlur",(function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()})),LL(WL(r),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:OB},(function(){e||r.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&r.setBlur(),r.setState({inputValue:null})}))}))})),LL(WL(r),"inputOk",(function(){return fl(r.state.preSelection)})),LL(WL(r),"isCalendarOpen",(function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open})),LL(WL(r),"handleFocus",(function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})})),LL(WL(r),"cancelFocusInput",(function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null})),LL(WL(r),"deferFocusInput",(function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout((function(){return r.setFocus()}),1)})),LL(WL(r),"handleDropdownFocus",(function(){r.cancelFocusInput()})),LL(WL(r),"handleBlur",(function(e){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(e),r.setState({focused:!1})})),LL(WL(r),"handleCalendarClickOutside",(function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()})),LL(WL(r),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0];if(!r.props.onChangeRaw||(r.props.onChangeRaw.apply(WL(r),t),"function"==typeof o.isDefaultPrevented&&!o.isDefaultPrevented())){r.setState({inputValue:o.target.value,lastPreSelectChange:MB});var i=function(e,t,n,r,o){var i=null,a=yz(n)||yz(gz()),l=!0;return Array.isArray(t)?(t.forEach((function(t){var s=dc(e,t,new Date,{locale:a});r&&(l=ez(s,o)&&e===tz(s,t,n)),ez(s,o)&&l&&(i=s)})),i):(i=dc(e,t,new Date,{locale:a}),r?l=ez(i)&&e===tz(i,t,n):ez(i)||(t=t.match(ZL).map((function(e){var t=e[0];return"p"===t||"P"===t?a?(0,QL[t])(e,a.formatLong):t:e})).join(""),e.length>0&&(i=dc(e,t.slice(0,e.length),new Date)),ez(i)||(i=new Date(e))),ez(i)&&l?i:null)}(o.target.value,r.props.dateFormat,r.props.locale,r.props.strictParsing,r.props.minDate);r.props.showTimeSelectOnly&&r.props.selected&&!pz(i,r.props.selected)&&(i=function(e,t){if(Ba(2,arguments),"object"!==La(t)||null===t)throw new RangeError("values parameter must be an object");var n=Ha(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=Cc(n,t.month)),null!=t.date&&n.setDate(za(t.date)),null!=t.hours&&n.setHours(za(t.hours)),null!=t.minutes&&n.setMinutes(za(t.minutes)),null!=t.seconds&&n.setSeconds(za(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(za(t.milliseconds)),n)}(r.props.selected,null==i?{hours:xs(r.props.selected),minutes:ks(r.props.selected),seconds:_s(r.props.selected)}:{hours:xs(i),minutes:ks(i),seconds:_s(i)})),!i&&o.target.value||r.setSelected(i,o,!0)}})),LL(WL(r),"handleSelect",(function(e,t,n){if(r.setState({preventFocus:!0},(function(){return r.preventFocusTimeout=setTimeout((function(){return r.setState({preventFocus:!1})}),50),r.preventFocusTimeout})),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.setSelected(e,t,!1,n),r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(e);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var o=r.props,i=o.startDate,a=o.endDate;!i||a||Ts(e,i)||r.setOpen(!1)}})),LL(WL(r),"setSelected",(function(e,t,n,o){var i=e;if(r.props.showYearPicker){if(null!==i&&Sz($s(i),r.props))return}else if(r.props.showMonthYearPicker){if(null!==i&&kz(i,r.props))return}else if(null!==i&&xz(i,r.props))return;var a=r.props,l=a.onChange,s=a.selectsRange,u=a.startDate,c=a.endDate;if(!hz(r.props.selected,i)||r.props.allowSameDay||s)if(null!==i&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(i=rz(i,{hour:xs(r.props.selected),minute:ks(r.props.selected),second:_s(r.props.selected)})),r.props.inline||r.setState({preSelection:i}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:o})),s){var d=u&&c;u||c?u&&!c&&(Ts(i,u)?l([i,null],t):l([u,i],t)):l([i,null],t),d&&l([i,null],t)}else l(i,t);n||(r.props.onSelect(i,t),r.setState({inputValue:null}))})),LL(WL(r),"setPreSelection",(function(e){var t=void 0!==r.props.minDate,n=void 0!==r.props.maxDate,o=!0;if(e){var i=el(e);if(t&&n)o=mz(e,r.props.minDate,r.props.maxDate);else if(t){var a=el(r.props.minDate);o=Es(e,a)||hz(i,a)}else if(n){var l=yl(r.props.maxDate);o=Ts(e,l)||hz(i,l)}}o&&r.setState({preSelection:e})})),LL(WL(r),"handleTimeChange",(function(e){var t=rz(r.props.selected?r.props.selected:r.getPreSelection(),{hour:xs(e),minute:ks(e)});r.setState({preSelection:t}),r.props.onChange(t),r.props.shouldCloseOnSelect&&r.setOpen(!1),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})})),LL(WL(r),"onInputClick",(function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()})),LL(WL(r),"onInputKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){if(r.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=r.calendar.componentNode&&r.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(n&&n.focus({preventScroll:!0}))}var o=JL(r.state.preSelection);"Enter"===t?(e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===OB?(r.handleSelect(o,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(o)):r.setOpen(!1)):"Escape"===t&&(e.preventDefault(),r.setOpen(!1)),r.inputOk()||r.props.onInputError({code:1,msg:"Date input not valid."})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||r.onInputClick()})),LL(WL(r),"onPortalKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},(function(){r.setOpen(!1),setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))})))})),LL(WL(r),"onDayKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key,n=JL(r.state.preSelection);if("Enter"===t)e.preventDefault(),r.handleSelect(n,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(n);else if("Escape"===t)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:"Date input not valid."});else if(!r.props.disabledKeyboardNavigation){var o;switch(t){case"ArrowLeft":o=function(e,t){return Ba(2,arguments),Ua(e,-za(t))}(n,1);break;case"ArrowRight":o=Ua(n,1);break;case"ArrowUp":o=function(e,t){return Ba(2,arguments),al(e,-za(t))}(n,1);break;case"ArrowDown":o=al(n,1);break;case"PageUp":o=Tc(n,1);break;case"PageDown":o=Wa(n,1);break;case"Home":o=Dc(n,1);break;case"End":o=ll(n,1)}if(!o)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:"Date input not valid."}));if(e.preventDefault(),r.setState({lastPreSelectChange:OB}),r.props.adjustDateOnChange&&r.setSelected(o),r.setPreSelection(o),r.props.inline){var i=Cs(n),a=Cs(o),l=$s(n),s=$s(o);i!==a||l!==s?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}})),LL(WL(r),"onPopperKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},(function(){r.setOpen(!1),setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))})))})),LL(WL(r),"onClearClick",(function(e){e&&e.preventDefault&&e.preventDefault(),r.props.selectsRange?r.props.onChange([null,null],e):r.props.onChange(null,e),r.setState({inputValue:null})})),LL(WL(r),"clear",(function(){r.onClearClick()})),LL(WL(r),"onScroll",(function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)})),LL(WL(r),"renderCalendar",(function(){return r.props.inline||r.isCalendarOpen()?_.default.createElement(TB,{ref:function(e){r.calendar=e},locale:r.props.locale,calendarStartDay:r.props.calendarStartDay,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,monthAriaLabelPrefix:r.props.monthAriaLabelPrefix,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,shouldFocusDayInline:r.state.shouldFocusDayInline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,showPreviousMonths:r.props.showPreviousMonths,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:"react-datepicker-ignore-onclickoutside",fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,weekDayClassName:r.props.weekDayClassName,monthClassName:r.props.monthClassName,timeClassName:r.props.timeClassName,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearItemNumber:r.props.yearItemNumber,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthAriaLabel:r.props.previousMonthAriaLabel,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthAriaLabel:r.props.nextMonthAriaLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,previousYearAriaLabel:r.props.previousYearAriaLabel,previousYearButtonLabel:r.props.previousYearButtonLabel,nextYearAriaLabel:r.props.nextYearAriaLabel,nextYearButtonLabel:r.props.nextYearButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showPopperArrow:r.props.showPopperArrow,excludeScrollbar:r.props.excludeScrollbar,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,isInputFocused:r.state.focused,customTimeInput:r.props.customTimeInput,setPreSelection:r.setPreSelection},r.props.children):null})),LL(WL(r),"renderAriaLiveRegion",(function(){var e,t=r.props,n=t.dateFormat,o=t.locale,i=r.props.showTimeInput||r.props.showTimeSelect?"PPPPp":"PPPP";return e=r.props.selectsRange?"Selected start date: ".concat(nz(r.props.startDate,{dateFormat:i,locale:o}),". ").concat(r.props.endDate?"End date: "+nz(r.props.endDate,{dateFormat:i,locale:o}):""):r.props.showTimeSelectOnly?"Selected time: ".concat(nz(r.props.selected,{dateFormat:n,locale:o})):r.props.showYearPicker?"Selected year: ".concat(nz(r.props.selected,{dateFormat:"yyyy",locale:o})):r.props.showMonthYearPicker?"Selected month: ".concat(nz(r.props.selected,{dateFormat:"MMMM yyyy",locale:o})):r.props.showQuarterYearPicker?"Selected quarter: ".concat(nz(r.props.selected,{dateFormat:"yyyy, QQQ",locale:o})):"Selected date: ".concat(nz(r.props.selected,{dateFormat:i,locale:o})),_.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&e)})),LL(WL(r),"renderDateInput",(function(){var e,t=wL(r.props.className,LL({},"react-datepicker-ignore-onclickoutside",r.state.open)),n=r.props.customInput||_.default.createElement("input",{type:"text"}),o=r.props.customInputRef||"ref",i="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:r.props.selectsRange?function(e,t,n){if(!e)return"";var r=nz(e,n),o=t?nz(t,n):"";return"".concat(r," - ").concat(o)}(r.props.startDate,r.props.endDate,r.props):nz(r.props.selected,r.props);return _.default.cloneElement(n,(LL(e={},o,(function(e){r.input=e})),LL(e,"value",i),LL(e,"onBlur",r.handleBlur),LL(e,"onChange",r.handleChange),LL(e,"onClick",r.onInputClick),LL(e,"onFocus",r.handleFocus),LL(e,"onKeyDown",r.onInputKeyDown),LL(e,"id",r.props.id),LL(e,"name",r.props.name),LL(e,"form",r.props.form),LL(e,"autoFocus",r.props.autoFocus),LL(e,"placeholder",r.props.placeholderText),LL(e,"disabled",r.props.disabled),LL(e,"autoComplete",r.props.autoComplete),LL(e,"className",wL(n.props.className,t)),LL(e,"title",r.props.title),LL(e,"readOnly",r.props.readOnly),LL(e,"required",r.props.required),LL(e,"tabIndex",r.props.tabIndex),LL(e,"aria-describedby",r.props.ariaDescribedBy),LL(e,"aria-invalid",r.props.ariaInvalid),LL(e,"aria-labelledby",r.props.ariaLabelledBy),LL(e,"aria-required",r.props.ariaRequired),e))})),LL(WL(r),"renderClearButton",(function(){var e=r.props,t=e.isClearable,n=e.selected,o=e.startDate,i=e.endDate,a=e.clearButtonTitle,l=e.clearButtonClassName,s=void 0===l?"":l,u=e.ariaLabelClose,c=void 0===u?"Close":u;return!t||null==n&&null==o&&null==i?null:_.default.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(s).trim(),"aria-label":c,onClick:r.onClearClick,title:a,tabIndex:-1})})),r.state=r.calcInitialState(),r}return jL(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?Cs(n)!==Cs(r)||$s(n)!==$s(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Fz(this.props.highlightDates)}),t.focused||hz(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var e=this.props.showIcon;return _.default.createElement("div",{className:"react-datepicker__input-container ".concat(e?"react-datepicker__view-calendar-icon":"")},e&&_.default.createElement("svg",{className:"react-datepicker__calendar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},_.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"})),this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?_.default.createElement($B,{enableTabLoop:this.props.enableTabLoop},_.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=_.default.createElement(_B,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),_.default.createElement("div",null,this.renderInputContainer(),t)}return _.default.createElement(EB,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,renderDayContents:function(e){return e},focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(),MB="input",OB="navigate",RB=function(e){var t=e.onClick,n=e.selected,r=e.text;return _.default.createElement(PB,{onClick:t},n&&_.default.createElement(ie,{icon:o.faCheck,color:"primary"})," ",r)},PB=$.default.div(rB||(rB=H(["\n padding: 0.5em;\n :hover {\n color: ",";\n background-color: ",";\n }\n"],["\n padding: 0.5em;\n :hover {\n color: ",";\n background-color: ",";\n }\n"])),(function(e){return e.theme.palette.primary[800]}),(function(e){return e.theme.palette.primary[50]})),NB=function(e){return _.default.createElement(AB,null,e)},AB=$.default.div(oB||(oB=H([""],[""]))),IB=$.default.div(lB||(lB=H(["\n flex: 1 0 21%;\n\n cursor: pointer;\n\n text-transform: capitalize;\n text-align: center;\n font-size: 0.75em;\n\n border-radius: ",";\n padding: 0.7em 0.5em;\n\n ","\n"],["\n flex: 1 0 21%;\n\n cursor: pointer;\n\n text-transform: capitalize;\n text-align: center;\n font-size: 0.75em;\n\n border-radius: ",";\n padding: 0.7em 0.5em;\n\n ","\n"])),(function(e){return e.theme.components.datePicker.item.borderRadius}),(function(e){return e.isActive?n.css(iB||(iB=H(["\n color: ",";\n background: ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n "],["\n color: ",";\n background: ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n "])),(function(e){return e.theme.components.datePicker.item.active.color}),(function(e){return e.theme.components.datePicker.item.active.background}),(function(e){return e.theme.components.datePicker.item.activeHover.color}),(function(e){return e.theme.components.datePicker.item.activeHover.background})):n.css(aB||(aB=H(["\n color: ",";\n background: ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n "],["\n color: ",";\n background: ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n "])),(function(e){return e.theme.components.datePicker.item.normal.color}),(function(e){return e.theme.components.datePicker.item.normal.background}),(function(e){return e.theme.components.datePicker.item.normalHover.color}),(function(e){return e.theme.components.datePicker.item.normalHover.background}))})),FB=Array.from(Array(12).keys()).map((function(e){var t;return null===(t=Lc.localize)||void 0===t?void 0:t.month(e,{width:"abbreviated"})})),jB=function(e){var n=e.changeMonth,r=e.date.getMonth(),o=t.useMemo((function(){return FB.map((function(e,t){return _.default.createElement(IB,{key:t,onClick:function(){return n(t)},isActive:t===r},e)}))}),[r,n]);return _.default.createElement(LB,null,o)},LB=$.default.div(sB||(sB=H(["\n display: flex;\n justify-content: space-around;\n align-items: center;\n flex-wrap: wrap;\n max-width: fit-content;\n"],["\n display: flex;\n justify-content: space-around;\n align-items: center;\n flex-wrap: wrap;\n max-width: fit-content;\n"]))),zB=function(e){var n=e.date,r=e.changeYear,o=e.yearsDisplayed,i=t.useState(0),a=i[0],l=i[1],u=n.getFullYear();t.useEffect((function(){l(0)}),[n]);var c=t.useCallback((function(){return l((function(e){return e-1}))}),[]),d=t.useCallback((function(){return l((function(e){return e+1}))}),[]),f=function(e,n,r){return t.useMemo((function(){var t=e+r*n,o=t%r-((new Date).getFullYear()%r-~~(r/2)),i=t-(o>=0?o:o+r);return Array.from({length:r}).map((function(e,t){return i+t}))}),[e,n,r])}(u,a,o),p=t.useMemo((function(){return f.map((function(e){return _.default.createElement(IB,{isActive:e===u,key:e,onClick:function(){return r(e)}},e)}))}),[r,u,f]);return _.default.createElement(BB,null,_.default.createElement(HB,null,_.default.createElement(UB,{fixedWidth:!0,icon:s.faAngleLeft,onClick:c}),_.default.createElement(UB,{fixedWidth:!0,icon:s.faAngleRight,onClick:d})),p)},BB=$.default.div(uB||(uB=H(["\n display: flex;\n justify-content: space-around;\n align-items: center;\n flex-wrap: wrap;\n max-width: fit-content;\n"],["\n display: flex;\n justify-content: space-around;\n align-items: center;\n flex-wrap: wrap;\n max-width: fit-content;\n"]))),HB=$.default.div(cB||(cB=H(["\n flex: 1 0 21%;\n\n display: flex;\n justify-content: center;\n"],["\n flex: 1 0 21%;\n\n display: flex;\n justify-content: center;\n"]))),UB=$.default(ie)(dB||(dB=H(["\n color: ",";\n aspect-ratio: 1;\n height: 100%;\n"],["\n color: ",";\n aspect-ratio: 1;\n height: 100%;\n"])),(function(e){return e.theme.palette.black[100]})),WB=function(e){var n=e.date,r=e.allowMonthView,o=e.allowYearView,i=e.yearsDisplayed,a=function(e){var n=e.date,r=e.decreaseMonth,o=e.increaseMonth,i=e.prevMonthButtonDisabled,a=e.nextMonthButtonDisabled,l=e.nextYearButtonDisabled,s=e.prevYearButtonDisabled,u=e.decreaseYear,c=e.increaseYear,d=e.allowYearView,f=e.allowMonthView,p=t.useState("dayPicker"),h=p[0],m=p[1],g=t.useCallback((function(){m("dayPicker"===h&&f?"monthPicker":"monthPicker"===h&&d?"yearPicker":"dayPicker")}),[f,d,h]);return"dayPicker"===h?{status:h,title:ys(n,"MMMM yyyy",{locale:Lc}),leftArrowOnClick:r,leftArrowIsDisabled:i,rightArrowOnClick:o,rightArrowIsDisabled:a,onBottomArrowClick:g,showBottomArrow:f,showLRArrows:!0}:"monthPicker"===h?{status:h,title:ys(n,"yyyy",{locale:Lc}),leftArrowOnClick:u,leftArrowIsDisabled:s,rightArrowOnClick:c,rightArrowIsDisabled:l,onBottomArrowClick:g,showBottomArrow:d,showLRArrows:!0}:{status:h,title:ys(n,"yyyy",{locale:Lc}),leftArrowOnClick:u,leftArrowIsDisabled:s,rightArrowOnClick:c,rightArrowIsDisabled:l,onBottomArrowClick:g,showBottomArrow:!0,showLRArrows:!1}}(I(I({},e),{allowMonthView:r,allowYearView:o})),l=a.status,u=a.title,c=a.leftArrowOnClick,d=a.leftArrowIsDisabled,f=a.rightArrowOnClick,p=a.rightArrowIsDisabled,h=a.onBottomArrowClick,m=a.showBottomArrow,g=a.showLRArrows,y=t.useMemo((function(){return"monthPicker"===l&&r?_.default.createElement(_.default.Fragment,null,_.default.createElement(jB,{changeMonth:function(t){return e.changeMonth(t)},date:n}),_.default.createElement(QB,null)):"yearPicker"===l&&o?_.default.createElement(_.default.Fragment,null,_.default.createElement(zB,{date:n,yearsDisplayed:i,changeYear:function(t){return e.changeYear(t)}}),_.default.createElement(QB,null),_.default.createElement(jB,{changeMonth:function(t){return e.changeMonth(t)},date:n}),_.default.createElement(QB,null)):null}),[r,o,n,e,l,i]);return _.default.createElement(VB,null,_.default.createElement(YB,null,g&&_.default.createElement(GB,{icon:s.faAngleLeft,onClick:c,isDisabled:d,fixedWidth:!0}),_.default.createElement(KB,null,_.default.createElement(XB,null,u),m&&_.default.createElement(ie,{icon:"yearPicker"===l?s.faAngleUp:s.faAngleDown,onClick:h})),g&&_.default.createElement(GB,{icon:s.faAngleRight,onClick:f,isDisabled:p,fixedWidth:!0})),y&&_.default.createElement(qB,null,y))},VB=$.default.div(fB||(fB=H(["\n display: flex;\n flex-flow: column;\n gap: 1em;\n padding: 0 0.3em 0.3em 0.3em;\n"],["\n display: flex;\n flex-flow: column;\n gap: 1em;\n padding: 0 0.3em 0.3em 0.3em;\n"]))),YB=$.default.div(pB||(pB=H(["\n display: flex;\n"],["\n display: flex;\n"]))),qB=$.default.div(hB||(hB=H([""],[""]))),GB=$.default(ie)(mB||(mB=H(["\n color: ",";\n aspect-ratio: 1;\n height: 100%;\n"],["\n color: ",";\n aspect-ratio: 1;\n height: 100%;\n"])),(function(e){return e.theme.palette.black[100]})),KB=$.default.div(gB||(gB=H(["\n flex: 1;\n\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 0.5em;\n"],["\n flex: 1;\n\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 0.5em;\n"]))),XB=$.default.div(yB||(yB=H(["\n text-transform: capitalize;\n text-align: center;\n"],["\n text-transform: capitalize;\n text-align: center;\n"]))),QB=$.default.div(bB||(bB=H(["\n width: 100%;\n height: 0.06em;\n background: ",";\n margin: 0.5em 0;\n"],["\n width: 100%;\n height: 0.06em;\n background: ",";\n margin: 0.5em 0;\n"])),(function(e){return e.theme.palette.grey[100]})),ZB=$.default.div(vB||(vB=H(["\n .react-datepicker {\n box-shadow: 0 0.1875em 0.375em rgb(51 51 51 / 15%), 0 0.125em 0.25em rgb(51 51 51 / 12%);\n border-radius: 0.25em;\n padding: 0 0 0.25em 0;\n\n user-select: none;\n\n background: ",";\n }\n\n .react-datepicker__today-button {\n margin-left: 0.25em;\n width: fit-content;\n display: inline-block;\n }\n\n .react-datepicker__close-icon {\n display: none;\n }\n\n .react-datepicker__month-container {\n margin-top: 0.5em;\n padding: 0.5em;\n }\n\n .react-datepicker__day-names {\n display: flex;\n justify-content: space-around;\n\n .react-datepicker__day-name {\n text-transform: uppercase;\n color: ",";\n font-size: 0.75em;\n font-weight: 500;\n }\n }\n\n .react-datepicker__current-month {\n text-transform: capitalize;\n }\n\n .react-datepicker__week {\n display: flex;\n justify-content: space-around;\n }\n\n .react-datepicker__day {\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 2em;\n height: 2em;\n\n border-radius: ",";\n\n color: ",";\n background: ",";\n\n &:hover {\n cursor: pointer;\n color: ",";\n background: ",";\n }\n\n &.react-datepicker__day--selected {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n\n display: flex;\n flex-flow: column;\n }\n\n &.react-datepicker__day--today {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n\n &.react-datepicker__day--selected {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n }\n\n display: flex;\n flex-flow: column;\n\n > div:first-child {\n line-height: 0.9em;\n }\n\n ::after {\n content: 'OGGI';\n font-weight: 700;\n font-size: 0.375em;\n line-height: 1em;\n }\n }\n\n &.react-datepicker__day--outside-month {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n }\n\n &.react-datepicker__day--disabled {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n }\n }\n"],["\n .react-datepicker {\n box-shadow: 0 0.1875em 0.375em rgb(51 51 51 / 15%), 0 0.125em 0.25em rgb(51 51 51 / 12%);\n border-radius: 0.25em;\n padding: 0 0 0.25em 0;\n\n user-select: none;\n\n background: ",";\n }\n\n .react-datepicker__today-button {\n margin-left: 0.25em;\n width: fit-content;\n display: inline-block;\n }\n\n .react-datepicker__close-icon {\n display: none;\n }\n\n .react-datepicker__month-container {\n margin-top: 0.5em;\n padding: 0.5em;\n }\n\n .react-datepicker__day-names {\n display: flex;\n justify-content: space-around;\n\n .react-datepicker__day-name {\n text-transform: uppercase;\n color: ",";\n font-size: 0.75em;\n font-weight: 500;\n }\n }\n\n .react-datepicker__current-month {\n text-transform: capitalize;\n }\n\n .react-datepicker__week {\n display: flex;\n justify-content: space-around;\n }\n\n .react-datepicker__day {\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 2em;\n height: 2em;\n\n border-radius: ",";\n\n color: ",";\n background: ",";\n\n &:hover {\n cursor: pointer;\n color: ",";\n background: ",";\n }\n\n &.react-datepicker__day--selected {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n\n display: flex;\n flex-flow: column;\n }\n\n &.react-datepicker__day--today {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n\n &.react-datepicker__day--selected {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n }\n\n display: flex;\n flex-flow: column;\n\n > div:first-child {\n line-height: 0.9em;\n }\n\n ::after {\n content: 'OGGI';\n font-weight: 700;\n font-size: 0.375em;\n line-height: 1em;\n }\n }\n\n &.react-datepicker__day--outside-month {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n }\n\n &.react-datepicker__day--disabled {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n }\n }\n"])),(function(e){return e.theme.components.datePicker.background}),(function(e){return e.theme.components.datePicker.weekDaysNames.color}),(function(e){return e.theme.components.datePicker.days.borderRadius}),(function(e){return e.theme.components.datePicker.days.inMonth.normal.color}),(function(e){return e.theme.components.datePicker.days.inMonth.normal.background}),(function(e){return e.theme.components.datePicker.days.inMonth.normalHover.color}),(function(e){return e.theme.components.datePicker.days.inMonth.normalHover.background}),(function(e){return e.theme.components.datePicker.days.inMonth.active.color}),(function(e){return e.theme.components.datePicker.days.inMonth.active.background}),(function(e){return e.theme.components.datePicker.days.inMonth.activeHover.color}),(function(e){return e.theme.components.datePicker.days.inMonth.activeHover.background}),(function(e){return e.theme.components.datePicker.days.today.normal.color}),(function(e){return e.theme.components.datePicker.days.today.normal.background}),(function(e){return e.theme.components.datePicker.days.today.normalHover.color}),(function(e){return e.theme.components.datePicker.days.today.normalHover.background}),(function(e){return e.theme.components.datePicker.days.today.active.color}),(function(e){return e.theme.components.datePicker.days.today.active.background}),(function(e){return e.theme.components.datePicker.days.today.activeHover.color}),(function(e){return e.theme.components.datePicker.days.today.activeHover.background}),(function(e){return e.theme.components.datePicker.days.outMonth.normal.color}),(function(e){return e.theme.components.datePicker.days.outMonth.normal.background}),(function(e){return e.theme.components.datePicker.days.outMonth.normalHover.color}),(function(e){return e.theme.components.datePicker.days.outMonth.normalHover.background}),(function(e){return e.theme.components.datePicker.days.inMonth.disabled.color}),(function(e){return e.theme.components.datePicker.days.inMonth.disabled.background}),(function(e){return e.theme.components.datePicker.days.inMonth.disabled.color}),(function(e){return e.theme.components.datePicker.days.inMonth.disabled.background})),JB=$.default.div(xB||(xB=H(["\n margin: 0 0.25em;\n display: flex;\n justify-content: space-between;\n"],["\n margin: 0 0.25em;\n display: flex;\n justify-content: space-between;\n"]))),eH=$.default.div(wB||(wB=H(["\n display: flex;\n align-items: center;\n color: ",";\n"],["\n display: flex;\n align-items: center;\n color: ",";\n"])),(function(e){return e.theme.palette.primary[500]})),tH=function(e,t){if(!e)return t[0];for(var n=0;n<t.length;n++){var r=dc(e,t[n],new Date);if(r&&pl(r))return t[n]}throw new Error("Date format is invalid or not among the provided valid formats")},nH=function(e){var r=e.inputSize,o=e.status,i=e.isClearable,a=e.date,l=e.setDate,s=e.open,u=void 0!==s&&s,c=e.allowMonthView,d=void 0!==c&&c,f=e.allowYearView,p=void 0!==f&&f,h=e.yearsDisplayed,m=e.hasTodayButton,g=void 0!==m&&m,y=e.customButtons,b=void 0===y?[]:y,v=e.renderCustomFooter,x=e.isPrefilled,w=e.placeholderText,k=e.onChangeManually,C=t.useState(u),S=C[0],$=C[1],E=t.useCallback((function(){return $(!0)}),[]),T=t.useCallback((function(){return $(!1)}),[]),D=t.useState(0),M=D[0],O=D[1];t.useEffect((function(){$(u)}),[u]);var R=t.useRef(null),P=t.useMemo((function(){return _.default.createElement(pa,{ref:R,inputSize:r,status:o,isPrefilled:x})}),[r,x,o]),N=t.useCallback((function(){var e=new Date;l(e),null==k||k(e),T()}),[l,T,k]),A=t.useCallback((function(){l(null),T()}),[T,l]),F=n.useTheme().components.datePicker.defaultYearsDisplayed,j=t.useMemo((function(){return function(e,t,n){return function(r){return _.default.createElement(WB,I({yearsDisplayed:n,allowMonthView:e,allowYearView:t},r))}}(d,p,h||F)}),[d,p,F,h]),L=t.useMemo((function(){return I(I({},e),{isOpen:S,setIsOpen:$})}),[S,e]),z=t.useCallback((function(e,t){var n,r;if(null===(n=null==t?void 0:t.currentTarget)||void 0===n?void 0:n.value)try{var o=null===(r=null==t?void 0:t.currentTarget)||void 0===r?void 0:r.value,i=dc(o,tH(o,zc),new Date);l(i),null==k||k(i)}catch(e){l(null),null==k||k(null)}else try{tH(null==e?void 0:e.toLocaleDateString(),zc),l(e),null==k||k(e)}catch(e){l(null),null==k||k(null)}}),[k,l]);return _.default.createElement(ZB,null,_.default.createElement(DB,I({onInputClick:E,onClickOutside:T,onBlur:T,onFocus:E,onSelect:T,open:S,placeholderText:w||(new Date).toLocaleDateString("it-IT",{month:"2-digit",day:"2-digit",year:"numeric"}),customInput:P,locale:Lc,dateFormat:"dd/MM/yyyy",selected:a,disabledKeyboardNavigation:!0,renderCustomHeader:j,renderDayContents:NB},e,{onChange:z}),_.default.createElement("div",null,_.default.createElement(JB,null,g?_.default.createElement(wn,{type:"text",onClick:N,text:"Oggi"}):1===b.length?_.default.createElement(wn,{type:"text",onClick:function(){return b[0].onClick(L)},text:b[0].text}):b.length>1?_.default.createElement(eH,null,b[M].text):null,i&&_.default.createElement(wn,{type:"text",color:"red",onClick:A,text:"Azzera"})),b.length>1&&_.default.createElement("div",null,b.map((function(e,t){return _.default.createElement(RB,{key:"custom_btn_"+t,text:e.text,selected:M===t,onClick:function(){O(t),e.onClick(L)}})}))),v?v(L):null)))},rH=(J.white[100],J.grey[300],J.blue[700],J.grey[100],J.blue[700],J.blue[700],J.white[100],J.blue[700],J.white[100],J.black[80],J.grey[100],J.black[80],J.blue[700],J.white[100],J.blue[700],J.white[100],J.black[48],J.black[16],J.grey[100],J.black[80],J.black[80],J.grey[100],J.black[80],J.blue[700],J.white[100],J.blue[700],J.white[100],J.black[48],new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]));function oH(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=rH.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var iH=[".DS_Store","Thumbs.db"];function aH(e){return"object"==typeof e&&null!==e}function lH(e){return dH(e.target.files).map((function(e){return oH(e)}))}function sH(e){return j(this,void 0,void 0,(function(){return L(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return oH(e)}))]}}))}))}function uH(e,t){return j(this,void 0,void 0,(function(){var n;return L(this,(function(r){switch(r.label){case 0:return null===e?[2,[]]:e.items?(n=dH(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(fH))]):[3,2];case 1:return[2,cH(pH(r.sent()))];case 2:return[2,cH(dH(e.files).map((function(e){return oH(e)})))]}}))}))}function cH(e){return e.filter((function(e){return-1===iH.indexOf(e.name)}))}function dH(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function fH(e){if("function"!=typeof e.webkitGetAsEntry)return hH(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?gH(t):hH(e)}function pH(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(z(arguments[t]));return e}(e,Array.isArray(t)?pH(t):[t])}),[])}function hH(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=oH(t);return Promise.resolve(n)}function mH(e){return j(this,void 0,void 0,(function(){return L(this,(function(t){return[2,e.isDirectory?gH(e):yH(e)]}))}))}function gH(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return j(i,void 0,void 0,(function(){var i,a,l;return L(this,(function(s){switch(s.label){case 0:if(t.length)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=s.sent(),e(i),[3,4];case 3:return a=s.sent(),n(a),[3,4];case 4:return[3,6];case 5:l=Promise.all(t.map(mH)),r.push(l),o(),s.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function yH(e){return j(this,void 0,void 0,(function(){return L(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=oH(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var bH=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0};function vH(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 xH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vH(Object(n),!0).forEach((function(t){wH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return CH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CH(e,t)}(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 CH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _H=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},SH=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},$H=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},EH={code:"too-many-files",message:"Too many files"};function TH(e,t){var n="application/x-moz-file"===e.type||bH(e,t);return[n,n?null:_H(t)]}function DH(e,t,n){if(MH(e.size))if(MH(t)&&MH(n)){if(e.size>n)return[!1,SH(n)];if(e.size<t)return[!1,$H(t)]}else{if(MH(t)&&e.size<t)return[!1,$H(t)];if(MH(n)&&e.size>n)return[!1,SH(n)]}return[!0,null]}function MH(e){return null!=e}function OH(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function RH(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function PH(e){e.preventDefault()}function NH(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!OH(e)&&t&&t.apply(void 0,[e].concat(r)),OH(e)}))}}function AH(e){return e="string"==typeof e?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter((function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)})).reduce((function(e,t){return xH(xH({},e),{},wH({},t,[]))}),{}):{}}]}var IH=["children"],FH=["open"],jH=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],LH=["refKey","onChange","onClick"];function zH(e){return function(e){if(Array.isArray(e))return UH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||HH(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 BH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||HH(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 HH(e,t){if(e){if("string"==typeof e)return UH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?UH(e,t):void 0}}function UH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WH(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 VH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WH(Object(n),!0).forEach((function(t){YH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qH(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var GH=t.forwardRef((function(e,n){var r=e.children,o=QH(qH(e,IH)),i=o.open,a=qH(o,FH);return t.useImperativeHandle(n,(function(){return{open:i}}),[i]),_.default.createElement(t.Fragment,null,r(VH(VH({},a),{},{open:i})))}));GH.displayName="Dropzone";var KH={disabled:!1,getFilesFromEvent:function(e){return j(this,void 0,void 0,(function(){return L(this,(function(t){return aH(e)&&aH(e.dataTransfer)?[2,uH(e.dataTransfer,e.type)]:function(e){return aH(e)&&aH(e.target)}(e)?[2,lH(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,sH(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};GH.defaultProps=KH,GH.propTypes={children:hf.func,accept:hf.oneOfType([hf.string,hf.arrayOf(hf.string)]),multiple:hf.bool,preventDropOnDocument:hf.bool,noClick:hf.bool,noKeyboard:hf.bool,noDrag:hf.bool,noDragEventsBubbling:hf.bool,minSize:hf.number,maxSize:hf.number,maxFiles:hf.number,disabled:hf.bool,getFilesFromEvent:hf.func,onFileDialogCancel:hf.func,onFileDialogOpen:hf.func,useFsAccessApi:hf.bool,onDragEnter:hf.func,onDragLeave:hf.func,onDragOver:hf.func,onDrop:hf.func,onDropAccepted:hf.func,onDropRejected:hf.func,validator:hf.func};var XH={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function QH(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=VH(VH({},KH),e),r=n.accept,o=n.disabled,i=n.getFilesFromEvent,a=n.maxSize,l=n.minSize,s=n.multiple,u=n.maxFiles,c=n.onDragEnter,d=n.onDragLeave,f=n.onDragOver,p=n.onDrop,h=n.onDropAccepted,m=n.onDropRejected,g=n.onFileDialogCancel,y=n.onFileDialogOpen,b=n.useFsAccessApi,v=n.preventDropOnDocument,x=n.noClick,w=n.noKeyboard,k=n.noDrag,C=n.noDragEventsBubbling,_=n.validator,S=t.useMemo((function(){return"function"==typeof y?y:JH}),[y]),$=t.useMemo((function(){return"function"==typeof g?g:JH}),[g]),E=t.useRef(null),T=t.useRef(null),D=BH(t.useReducer(ZH,XH),2),M=D[0],O=D[1],R=M.isFocused,P=M.isFileDialogActive,N=M.draggedFiles,A=t.useRef("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),I=function(){!A.current&&P&&setTimeout((function(){T.current&&(T.current.files.length||(O({type:"closeDialog"}),$()))}),300)};t.useEffect((function(){return window.addEventListener("focus",I,!1),function(){window.removeEventListener("focus",I,!1)}}),[T,P,$,A]);var F=t.useRef([]),j=function(e){E.current&&E.current.contains(e.target)||(e.preventDefault(),F.current=[])};t.useEffect((function(){return v&&(document.addEventListener("dragover",PH,!1),document.addEventListener("drop",j,!1)),function(){v&&(document.removeEventListener("dragover",PH),document.removeEventListener("drop",j))}}),[E,v]);var L=t.useCallback((function(e){e.preventDefault(),e.persist(),Z(e),F.current=[].concat(zH(F.current),[e.target]),RH(e)&&Promise.resolve(i(e)).then((function(t){OH(e)&&!C||(O({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e))}))}),[i,c,C]),z=t.useCallback((function(e){e.preventDefault(),e.persist(),Z(e);var t=RH(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,C]),B=t.useCallback((function(e){e.preventDefault(),e.persist(),Z(e);var t=F.current.filter((function(e){return E.current&&E.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),F.current=t,t.length>0||(O({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),RH(e)&&d&&d(e))}),[E,d,C]),H=t.useCallback((function(e,t){var n=[],o=[];e.forEach((function(e){var t=BH(TH(e,r),2),i=t[0],s=t[1],u=BH(DH(e,l,a),2),c=u[0],d=u[1],f=_?_(e):null;if(i&&c&&!f)n.push(e);else{var p=[s,d];f&&(p=p.concat(f)),o.push({file:e,errors:p.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&u>=1&&n.length>u)&&(n.forEach((function(e){o.push({file:e,errors:[EH]})})),n.splice(0)),O({acceptedFiles:n,fileRejections:o,type:"setFiles"}),p&&p(n,o,t),o.length>0&&m&&m(o,t),n.length>0&&h&&h(n,t)}),[O,s,r,l,a,u,p,h,m,_]),U=t.useCallback((function(e){e.preventDefault(),e.persist(),Z(e),F.current=[],RH(e)&&Promise.resolve(i(e)).then((function(t){OH(e)&&!C||H(t,e)})),O({type:"reset"})}),[i,H,C]),W=t.useCallback((function(){if(A.current){O({type:"openDialog"}),S();var e={multiple:s,types:AH(r)};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){H(e,null),O({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)&&(A.current=!1,T.current&&(T.current.value=null,T.current.click())):($(e),O({type:"closeDialog"}))}))}else T.current&&(O({type:"openDialog"}),S(),T.current.value=null,T.current.click())}),[O,S,$,b,H,r,s]),V=t.useCallback((function(e){E.current&&E.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),W()))}),[E,W]),Y=t.useCallback((function(){O({type:"focus"})}),[]),q=t.useCallback((function(){O({type:"blur"})}),[]),G=t.useCallback((function(){x||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?W():setTimeout(W,0))}),[x,W]),K=function(e){return o?null:e},X=function(e){return w?null:K(e)},Q=function(e){return k?null:K(e)},Z=function(e){C&&e.stopPropagation()},J=t.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,i=e.onKeyDown,a=e.onFocus,l=e.onBlur,s=e.onClick,u=e.onDragEnter,c=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=qH(e,jH);return VH(VH(YH({onKeyDown:X(NH(i,V)),onFocus:X(NH(a,Y)),onBlur:X(NH(l,q)),onClick:K(NH(s,G)),onDragEnter:Q(NH(u,L)),onDragOver:Q(NH(c,z)),onDragLeave:Q(NH(d,B)),onDrop:Q(NH(f,U)),role:"string"==typeof r&&""!==r?r:"button"},n,E),o||w?{}:{tabIndex:0}),p)}}),[E,V,Y,q,G,L,z,B,U,w,k,o]),ee=t.useCallback((function(e){e.stopPropagation()}),[]),te=t.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.onChange,i=e.onClick,a=qH(e,LH);return VH(VH({},YH({accept:r,multiple:s,type:"file",style:{display:"none"},onChange:K(NH(o,U)),onClick:K(NH(i,ee)),tabIndex:-1},n,T)),a)}}),[T,r,s,U,o]),ne=N.length,re=ne>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=kH(TH(e,n),1)[0],i=kH(DH(e,r,o),1)[0];return t&&i}))}({files:N,accept:r,minSize:l,maxSize:a,multiple:s,maxFiles:u}),oe=ne>0&&!re;return VH(VH({},M),{},{isDragAccept:re,isDragReject:oe,isFocused:R&&!o,getRootProps:J,getInputProps:te,rootRef:E,inputRef:T,open:K(W)})}function ZH(e,t){switch(t.type){case"focus":return VH(VH({},e),{},{isFocused:!0});case"blur":return VH(VH({},e),{},{isFocused:!1});case"openDialog":return VH(VH({},XH),{},{isFileDialogActive:!0});case"closeDialog":return VH(VH({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return VH(VH({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return VH(VH({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return VH({},XH);default:return e}}function JH(){}var eU,tU,nU,rU,oU,iU,aU,lU=$.default.div(eU||(eU=H(["\n border-radius: 0.25em;\n\n background-color: ",";\n border: 1px solid ",";\n\n padding: ",";\n\n display: flex;\n flex-direction: ",";\n justify-content: center;\n align-items: center;\n text-align: center;\n gap: 0.5em;\n\n position: relative;\n cursor: pointer;\n"],["\n border-radius: 0.25em;\n\n background-color: ",";\n border: 1px solid ",";\n\n padding: ",";\n\n display: flex;\n flex-direction: ",";\n justify-content: center;\n align-items: center;\n text-align: center;\n gap: 0.5em;\n\n position: relative;\n cursor: pointer;\n"])),(function(e){return e.backgroundColor}),(function(e){var t=e.status;return e.theme.components.fileUploader[t].borderColor}),(function(e){return e.fixedHeight?"48px 32px":"5.5%"}),(function(e){return"small"===e.size?"row":"column"})),sU=$.default(lU)(tU||(tU=H(["\n position: absolute;\n inset: 0;\n"],["\n position: absolute;\n inset: 0;\n"]))),uU=$.default.div(nU||(nU=H(["\n color: ",";\n font-size: 1.25em;\n font-weight: 500;\n"],["\n color: ",";\n font-size: 1.25em;\n font-weight: 500;\n"])),(function(e){var t=e.theme,n=e.status;return t.components.fileUploader[n].color})),cU=$.default.div(rU||(rU=H(["\n color: ",";\n font-size: 0.875em;\n font-weight: 400;\n"],["\n color: ",";\n font-size: 0.875em;\n font-weight: 400;\n"])),(function(e){var t=e.theme,n=e.status;return t.components.fileUploader[n].secondaryColor})),dU=function(e){var t=e.icon,n=e.status,r=e.text,o=e.caption,i=e.size;return _.default.createElement(_.default.Fragment,null,t&&_.default.createElement(ie,I({size:"2x"},t)),"normal"===i&&r&&_.default.createElement(uU,{status:n},r),o&&_.default.createElement(cU,{status:n},o))},fU=function(e,t){var r,o,i,a,l=n.useTheme().components.fileUploader[e],s=l.text,u=l.caption,c=l.icon,d=l.background,f=null===(r=null==t?void 0:t[e])||void 0===r?void 0:r.text,p=null===(o=null==t?void 0:t[e])||void 0===o?void 0:o.caption,h=null===(i=null==t?void 0:t[e])||void 0===i?void 0:i.icon,m=null===(a=null==t?void 0:t[e])||void 0===a?void 0:a.background;return{text:f||null===f?f:s,caption:p||null===p?p:u,icon:h||null===h?h:c,background:m||null===m?m:d}},pU={unknown:{mimeTypes:["*"],extensions:[]},pdf:{mimeTypes:["application/pdf"],extensions:["pdf"]},image:{mimeTypes:["image/png","image/jpeg","image/gif"],extensions:["png","gif","jpg","jpeg"]},zip:{mimeTypes:["application/zip","application/octet-stream","application/x-zip-compressed","multipart/x-zip"],extensions:["zip"]},archive:{mimeTypes:["application/zip","application/octet-stream","application/x-zip-compressed","multipart/x-zip","application/x-rar-compressed"],extensions:["zip"]},text:{mimeTypes:["text/plain","application/rtf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"],extensions:["doc","docx"]},document:{mimeTypes:["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"],extensions:["doc","docx","docm"]},spreadsheet:{mimeTypes:["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.oasis.opendocument.spreadsheet"],extensions:["xls","xlsx","xlsm"]},presentation:{mimeTypes:["application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.oasis.opendocument.presentation"],extensions:["ppt","pptx","odp"]},xml:{mimeTypes:["text/xml","application/xml"],extensions:["xml"]},p7m:{mimeTypes:["application/pkcs7-mime","application/x-pkcs7-mime"],extensions:["p7m"]},csv:{mimeTypes:["text/csv","text/plain","text/x-csv","application/vnd.ms-excel","application/csv","application/x-csv","text/comma-separated-values","text/x-comma-separated-values","text/tab-separated-values"],extensions:["csv"]}};J.grey[50],J.grey[100],J.black[100],J.blue[500],g.faUpload,J.blue[500],J.white[100],J.white[100],g.faUpload,J.blue[50],J.blue[100],J.blue[500],J.blue[500],o.faCircleNotch,J.green[50],J.green[100],J.green[500],J.green[500],y.faCheckCircle,J.red[50],J.red[100],J.red[500],J.red[500],y.faTimesCircle,J.grey[50],J.grey[200],J.grey[300],g.faUpload;exports.RadioStatus=void 0,(oU=exports.RadioStatus||(exports.RadioStatus={})).CHECKED="checked",oU.UNCHECKED="unchecked",function(e){e.NORMAL="normal",e.ERROR="error"}(iU||(iU={})),function(e){e.BACKGROUNDCOLOR="backgroundColor",e.BORDERCOLOR="borderColor"}(aU||(aU={}));var hU,mU,gU,yU,bU,vU,xU,wU,kU,CU,_U,SU,$U,EU,TU,DU,MU,OU=function(e){return"boolean"==typeof e?e?exports.RadioStatus.CHECKED:exports.RadioStatus.UNCHECKED:e},RU=$.default.span.attrs((function(e){var t=e.theme,n=e.value,r=e.disabled,o=e.large,i=e.hasError,a=t.components.radio.input,l=a.normal,s=a.error,u=o?"20px":"16px",c=(i?s:l)[n],d=c.borderColor;return{backgroundColor:c.backgroundColor,borderColor:d,cursor:r?"not-allowed":"pointer",height:u,width:u,opacity:r?.3:1}}))(hU||(hU=H(["\n font-size: 10px;\n text-align: center;\n width: ",";\n height: ",";\n border: ",";\n cursor: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n opacity: ",";\n display: inline-block;\n border-radius: 20px;\n box-sizing: border-box;\n"],["\n font-size: 10px;\n text-align: center;\n width: ",";\n height: ",";\n border: ",";\n cursor: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n opacity: ",";\n display: inline-block;\n border-radius: 20px;\n box-sizing: border-box;\n"])),(function(e){return e.width}),(function(e){return e.height}),(function(e){var t=e.borderColor;return(e.value===exports.RadioStatus.CHECKED?"5px":"1px")+" solid "+t}),(function(e){return e.cursor}),(function(e){return e.opacity})),PU=function(e){var n=e.disabled,r=e.className,o=e.onClick,i=e.large,a=e.text,l=e.value,s=e.helper,u=e.onChange,c=t.useCallback((function(){var e;return null===(e=f.current)||void 0===e?void 0:e.click()}),[]),d=t.useCallback((function(e){return!n&&o&&o(e)}),[n,o]),f=t.useRef(null);t.useEffect((function(){if(f.current)switch(l){case exports.RadioStatus.CHECKED:f.current.checked=!0;break;case exports.RadioStatus.UNCHECKED:f.current.checked=!1}}),[l]);var p="error"===(null==s?void 0:s.status);return _.default.createElement(ue,null,_.default.createElement(lL,{className:r,onClick:c},_.default.createElement(RU,{value:l,large:i,disabled:n,hasError:p}),_.default.createElement(sL,{ref:f,type:"radio",value:l,onClick:d,onChange:u,disabled:n}),!!a&&_.default.createElement(aL,{large:i,disabled:n,hasError:p},a)),s&&_.default.createElement(ce,I({},s)))},NU=function(e){var t=e.value,n=F(e,["value"]);return _.default.createElement(PU,I({},n,{value:OU(t)}))},AU={backgroundColor:J.blue[500],borderColor:J.blue[500]},IU={backgroundColor:J.red[500],borderColor:J.red[500]},FU=(J.grey[500],J.red[500],J.black[100],J.red[500],$.default.div(bU||(bU=H(["\n display: flex;\n ",";\n ","\n"],["\n display: flex;\n ",";\n ","\n"])),(function(e){return e.inline?n.css(mU||(mU=H(["\n flex-direction: row;\n & > div {\n flex: 0;\n min-width: fit-content;\n }\n "],["\n flex-direction: row;\n & > div {\n flex: 0;\n min-width: fit-content;\n }\n "]))):n.css(gU||(gU=H(["\n flex-direction: column;\n "],["\n flex-direction: column;\n "])))}),(function(e){var t=e.spacing;return t&&n.css(yU||(yU=H(["\n gap: ",";\n "],["\n gap: ",";\n "])),hd[""+t])}))),jU=function(e){var n=e.onChange,r=e.helper,o=e.initialSelection,i=e.options,a=F(e,["onChange","helper","initialSelection","options"]),l=t.useState(o),s=l[0],u=l[1];return _.default.createElement(FU,I({},a),null==i?void 0:i.map((function(e,t){return _.default.createElement(NU,I({key:t},e,{value:s===t,onClick:function(){u(t),null==n||n(t)}}))})),r&&_.default.createElement(ce,I({},r)))},LU=function(e){var n=e.action,r=e.active,o=e.icon,i=e.index,a=e.mouseBlockedProps,l=e.navigable,s=e.onClick,u=e.onMouseHover,c=e.onMouseOut,d=e.placeholder,f=e.showActionOnHover,p=e.title,h=e.wrapperRef,m=a.mouseBlocked,g=a.setMouseBlocked,y=t.useRef(null),b=t.useCallback((function(e){var t;if(l&&(g(!0),"Enter"===e.key&&(e.preventDefault(),null===(t=y.current)||void 0===t||t.click()),["ArrowUp","ArrowDown"].includes(e.key))){e.preventDefault();var n=document.querySelectorAll("[data-grouped-list-item]"),r="ArrowUp"===e.key?"[data-grouped-list-item='"+(i-1)+"']":"[data-grouped-list-item='"+(i+1)+"']",o=document.querySelector(r),a=void 0;if(a=o||("ArrowUp"===e.key?n[n.length-1]:document.querySelector("[data-grouped-list-item='1']")),h.current){var s=h.current;"ArrowUp"===e.key?a.offsetTop<=s.scrollTop&&(s.scrollTop=a.offsetTop):a.offsetTop-(s.offsetHeight-a.offsetHeight)>=s.scrollTop&&(s.scrollTop=a.offsetTop-(s.offsetHeight-a.offsetHeight)),a.focus()}}}),[l,g,i,h]),v=t.useCallback((function(){var e,t=y.current,n=h.current;t&&n&&t.offsetTop<n.offsetHeight+n.scrollTop&&t.offsetTop+t.offsetHeight>n.scrollTop&&(null===(e=y.current)||void 0===e||e.focus())}),[h]),x=t.useCallback((function(){l&&m||(null==u||u(),v())}),[v,m,l,u]),w=t.useCallback((function(){var e;l&&m||(null==c||c(),null===(e=y.current)||void 0===e||e.blur())}),[m,l,c]);return t.useEffect((function(){return function(){return removeEventListener("keydown",b)}}),[b]),_.default.createElement(WU,{ref:y,tabIndex:s?0:-1,onClick:s,active:r,key:p,onMouseLeave:w,onMouseOver:x,onFocus:function(){addEventListener("keydown",b)},onBlur:function(){removeEventListener("keydown",b)},showActionOnHover:f,"data-grouped-list-item":i},o&&_.default.createElement(HU,I({},o,{fixedWidth:!0})),p?_.default.createElement(zU,null,p):_.default.createElement(BU,null,d),n&&_.default.createElement(UU,null,n))},zU=$.default.div(vU||(vU=H(["\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n flex-grow: 1;\n"],["\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n flex-grow: 1;\n"]))),BU=$.default(zU)(xU||(xU=H(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.palette.grey[500]})),HU=$.default(ie)(wU||(wU=H(["\n margin-right: 8px;\n display: inline-flex;\n align-self: center;\n"],["\n margin-right: 8px;\n display: inline-flex;\n align-self: center;\n"]))),UU=$.default.div(kU||(kU=H([""],[""]))),WU=$.default.div(SU||(SU=H(["\n &:focus {\n outline: none !important;\n background-color: ",";\n color: ",";\n cursor: ",";\n }\n\n color: ",";\n font-weight: ",";\n\n line-height: 32px;\n height: 32px;\n left: 0;\n display: flex;\n\n ",";\n"],["\n &:focus {\n outline: none !important;\n background-color: ",";\n color: ",";\n cursor: ",";\n }\n\n color: ",";\n font-weight: ",";\n\n line-height: 32px;\n height: 32px;\n left: 0;\n display: flex;\n\n ",";\n"])),(function(e){return e.theme.palette.blue[50]}),(function(e){return e.theme.palette.blue[500]}),(function(e){return e.onClick?"pointer":"initial"}),(function(e){var t=e.active,n=e.theme;return t?n.palette.blue[500]:"initial"}),(function(e){return e.active?500:"initial"}),(function(e){return e.showActionOnHover?n.css(CU||(CU=H(["\n "," {\n display: none;\n }\n\n &:focus {\n "," {\n display: inherit;\n }\n }\n "],["\n "," {\n display: none;\n }\n\n &:focus {\n "," {\n display: inherit;\n }\n }\n "])),UU,UU):n.css(_U||(_U=H([""],[""])))})),VU=function(e){var t=e.noResults,n=e.title;return _.default.createElement(YU,{noResults:t,key:n},n.toUpperCase(),t&&_.default.createElement(qU,null,"(nessun risultato)"))},YU=$.default.div(EU||(EU=H(["\n &:not(:first-child) {\n margin-top: 16px;\n }\n\n margin-bottom: 1px;\n ",";\n height: 32px;\n padding-left: 8px;\n line-height: 32px;\n font-size: 11px;\n\n color: ",";\n font-weight: 500;\n cursor: initial;\n"],["\n &:not(:first-child) {\n margin-top: 16px;\n }\n\n margin-bottom: 1px;\n ",";\n height: 32px;\n padding-left: 8px;\n line-height: 32px;\n font-size: 11px;\n\n color: ",";\n font-weight: 500;\n cursor: initial;\n"])),(function(e){var t=e.noResults,r=e.theme;return!0===t?n.css($U||($U=H(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r.palette.grey[50]):void 0}),(function(e){return e.theme.palette.grey[700]})),qU=$.default.span(TU||(TU=H(["\n margin-left: 3px;\n color: ",";\n font-weight: 400;\n font-size: 13px;\n"],["\n margin-left: 3px;\n color: ",";\n font-weight: 400;\n font-size: 13px;\n"])),(function(e){return e.theme.palette.grey[700]})),GU=function(e){var t=e.index,n=e.items,r=e.title,o=F(e,["index","items","title"]);return _.default.createElement(_.default.Fragment,null,_.default.createElement(VU,{title:r,noResults:!n.length}),n.map((function(e,n){return _.default.createElement(LU,I({key:n,index:t+n},e,o))})))},KU=$.default.div(DU||(DU=H(["\n cursor: pointer;\n"],["\n cursor: pointer;\n"])));exports.InlineMessageType=void 0,(MU=exports.InlineMessageType||(exports.InlineMessageType={})).STANDARD="standard",MU.ERROR="error",MU.INFO="info",MU.WARNING="warning",MU.SUCCESS="success";var XU,QU,ZU,JU,eW,tW,nW,rW,oW,iW,aW,lW,sW,uW=$.default.div(XU||(XU=H(["\n margin-top: 0;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n margin-bottom: ",";\n"],["\n margin-top: 0;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n margin-bottom: ",";\n"])),hd.xxs),cW=$.default.div(QU||(QU=H(["\n font-weight: normal;\n font-size: 14px;\n line-height: 21px;\n color: ",";\n"],["\n font-weight: normal;\n font-size: 14px;\n line-height: 21px;\n color: ",";\n"])),(function(e){var t=e.theme,n=e.type;return t.components.inlineMessage[n||exports.InlineMessageType.STANDARD].content})),dW=$.default.div(nW||(nW=H(["\n display: flex;\n border: 1px solid rgba(51, 51, 51, 0.08);\n border-color: ",";\n border-radius: 4px;\n color: ",";\n background-color: ",";\n ","\n"],["\n display: flex;\n border: 1px solid rgba(51, 51, 51, 0.08);\n border-color: ",";\n border-radius: 4px;\n color: ",";\n background-color: ",";\n ","\n"])),(function(e){var t=e.theme,n=e.type;return t.components.inlineMessage[n||exports.InlineMessageType.STANDARD].border}),(function(e){var t=e.theme,n=e.type;return t.components.inlineMessage[n||exports.InlineMessageType.STANDARD].title}),(function(e){var t=e.theme,n=e.type;return t.components.inlineMessage[n||exports.InlineMessageType.STANDARD].background}),(function(e){var t=e.size;return n.css(tW||(tW=H(["\n ","\n "],["\n ","\n "])),function(e){switch(e){case"medium":return n.css(ZU||(ZU=H(["\n padding: ",";\n "],["\n padding: ",";\n "])),hd.s);case"large":return n.css(JU||(JU=H(["\n padding: ",";\n "," {\n font-size: 16px;\n line-height: 18px;\n margin-bottom: ",";\n }\n "," {\n font-size: 14px;\n line-height: 21px;\n }\n "],["\n padding: ",";\n "," {\n font-size: 16px;\n line-height: 18px;\n margin-bottom: ",";\n }\n "," {\n font-size: 14px;\n line-height: 21px;\n }\n "])),hd.m,uW,hd.xs,cW);default:return n.css(eW||(eW=H(["\n padding: ",";\n "],["\n padding: ",";\n "])),hd.m)}}(t))})),fW=$.default.div(rW||(rW=H(["\n margin-left: ",";\n flex: 1;\n"],["\n margin-left: ",";\n flex: 1;\n"])),(function(e){return e.margin?hd.s:"0px"})),pW=$.default.div(oW||(oW=H(["\n line-height: 20px;\n display: flex;\n align-items: center;\n"],["\n line-height: 20px;\n display: flex;\n align-items: center;\n"]))),hW=$.default(ie)(iW||(iW=H(["\n cursor: pointer;\n color: ",";\n"],["\n cursor: pointer;\n color: ",";\n"])),(function(e){return e.theme.palette.black[48]})),mW=$.default(wn)(aW||(aW=H(["\n margin: 8px;\n min-width: 100px;\n max-height: 32px;\n align-self: center;\n font-size: 14px;\n"],["\n margin: 8px;\n min-width: 100px;\n max-height: 32px;\n align-self: center;\n font-size: 14px;\n"]))),gW=function(e){switch(e){default:case exports.InlineMessageType.STANDARD:return"grey";case exports.InlineMessageType.ERROR:return"red";case exports.InlineMessageType.WARNING:return"yellow";case exports.InlineMessageType.SUCCESS:return"green";case exports.InlineMessageType.INFO:return"blue"}},yW={icon:s.faTimes},bW={standard:o.faSpinnerThird,error:o.faExclamationCircle,info:o.faInfoCircle,warning:o.faExclamationTriangle,success:o.faCheckCircle},vW=function(e){var t,n,r,o,i,a,l,s,u,c=e.closeIcon,d=e.content,f=e.icon,p=e.onClose,h=e.renderCloseIcon,m=e.renderContent,g=e.renderIcon,y=e.renderTitle,b=e.title,v=e.type,x=e.actionLabel,w=e.onActionClick,k=null!=f?f:{icon:bW[v||exports.InlineMessageType.STANDARD],spin:v===exports.InlineMessageType.STANDARD||void 0===v},C=y?y():b;return _.default.createElement(_.default.Fragment,null,_.default.createElement("div",{style:null!==(n=null===(t=null==e?void 0:e.componentStyle)||void 0===t?void 0:t.icon)&&void 0!==n?n:{}},g?g():k?_.default.createElement(ie,I({},k)):null),_.default.createElement(fW,{style:null!==(o=null===(r=null==e?void 0:e.componentStyle)||void 0===r?void 0:r.contentWrapper)&&void 0!==o?o:{},margin:void 0!==g||void 0!==k},C?_.default.createElement(uW,{style:null!==(a=null===(i=null==e?void 0:e.componentStyle)||void 0===i?void 0:i.title)&&void 0!==a?a:{}},C):null,_.default.createElement(cW,{type:v,style:null!==(s=null===(l=null==e?void 0:e.componentStyle)||void 0===l?void 0:l.content)&&void 0!==s?s:{}},m?m():d)),x&&_.default.createElement(mW,{text:x,onClick:w,type:"primary",size:"medium",color:gW(null!==(u=e.type)&&void 0!==u?u:exports.InlineMessageType.STANDARD)}),p&&_.default.createElement(pW,{onClick:p},h?h():_.default.createElement(hW,I({},c||yW,{fixedWidth:!0}))))},xW=(J.red[50],J.red[500],J.red[400],J.red[100],J.yellow[50],J.red[400],J.red[300],J.yellow[100],J.green[50],J.green[500],J.green[400],J.green[100],J.blue[50],J.blue[500],J.blue[400],J.blue[100],J.grey[100],J.black[100],J.black[80],J.black[8],$.default.div.attrs((function(e){var t=e.theme,n=e.type;return t.components.microTag[n]}))(lW||(lW=H(["\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n display: inline-block;\n padding: 0 4px;\n border-radius: 4px;\n text-transform: uppercase;\n white-space: nowrap;\n color: ",";\n background-color: ",";\n"],["\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n display: inline-block;\n padding: 0 4px;\n border-radius: 4px;\n text-transform: uppercase;\n white-space: nowrap;\n color: ",";\n background-color: ",";\n"])),(function(e){return e.color}),(function(e){return e.backgroundColor}))),wW=function(e){var t=e.text,n=e.type;return _.default.createElement(xW,{type:n},t)};J.red[50],J.red[500],J.blue[50],J.blue[500],J.grey[50],J.grey[500],J.green[50],J.green[500],J.yellow[50],J.yellow[500];exports.BadgeType=void 0,(sW=exports.BadgeType||(exports.BadgeType={})).STANDARD="standard",sW.ERROR="error",sW.INFO="info",sW.WARNING="warning",sW.SUCCESS="success";var kW,CW,_W,SW=$.default.div(kW||(kW=H(["\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 4px;\n margin: 3px 0;\n max-height: 24px;\n\n padding-left: ",";\n padding-right: ",";\n\n color: ",";\n background-color: ",";\n"],["\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 4px;\n margin: 3px 0;\n max-height: 24px;\n\n padding-left: ",";\n padding-right: ",";\n\n color: ",";\n background-color: ",";\n"])),(function(e){var t=e.imageUrl;return e.leftIcon||t?"8px":"0"}),(function(e){return e.rightIcon?"8px":"0"}),(function(e){var t=e.theme,n=e.type;return t.components.badge[null!=n?n:exports.BadgeType.SUCCESS].color}),(function(e){var t=e.theme,n=e.type;return t.components.badge[null!=n?n:exports.BadgeType.SUCCESS].backgroundColor})),$W=$.default.div(CW||(CW=H(["\n padding: "," ",";\n"],["\n padding: "," ",";\n"])),hd.xxs,hd.xs);J.grey[900],J.grey[50],J.yellow[900],J.yellow[50],J.green[900],J.green[50],J.blue[900],J.blue[50],J.red[900],J.red[50];exports.BannerType=void 0,(_W=exports.BannerType||(exports.BannerType={})).STANDARD="standard",_W.ERROR="error",_W.INFO="info",_W.WARNING="warning",_W.SUCCESS="success";var EW,TW,DW,MW,OW,RW=$.default.div(EW||(EW=H(["\n color: ",";\n background-color: ",";\n padding: 10px 20px 10px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n z-index: 11;\n"],["\n color: ",";\n background-color: ",";\n padding: 10px 20px 10px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n z-index: 11;\n"])),(function(e){var t=e.theme,n=e.type;return t.components.banner[null!=n?n:exports.BannerType.STANDARD].color}),(function(e){var t=e.theme,n=e.type;return t.components.banner[null!=n?n:exports.BannerType.STANDARD].backgroundColor})),PW=$.default.div(TW||(TW=H(["\n flex-grow: 1;\n"],["\n flex-grow: 1;\n"])));J.white[100],J.blue[500],J.white[100],J.yellow[500],J.white[100],J.green[500],J.black[100],J.grey[200],J.white[100],J.red[500],J.grey[300],J.grey[300],J.white[100],J.grey[100],J.grey[50],J.grey[50],J.yellow[500],J.yellow[500],J.yellow[50],J.yellow[500],J.red[500],J.red[500],J.red[50],J.red[500],J.blue[500],J.blue[500],J.blue[50],J.blue[500],J.green[500],J.green[500],J.green[50],J.green[500];exports.CardType=void 0,(DW=exports.CardType||(exports.CardType={})).PRIMARY="primary",DW.SECONDARY="secondary",exports.CardColor=void 0,(MW=exports.CardColor||(exports.CardColor={})).BLUE="blue",MW.GREEN="green",MW.GREY="grey",MW.RED="red",MW.TRANSPARENT="transparent",MW.YELLOW="yellow",exports.CardElevation=void 0,(OW=exports.CardElevation||(exports.CardElevation={}))[OW.FLAT=0]="FLAT",OW[OW.LOW=1]="LOW",OW[OW.HIGH=2]="HIGH";var NW,AW,IW,FW,jW=$.default.div(IW||(IW=H(["\n overflow: hidden;\n padding: 16px;\n border-radius: 8px;\n ","\n\n ","\n"],["\n overflow: hidden;\n padding: 16px;\n border-radius: 8px;\n ","\n\n ","\n"])),(function(e){var t=e.color,r=e.theme,o=e.type;return n.css(NW||(NW=H(["\n background-color: ",";\n border: 1px solid ",";\n "],["\n background-color: ",";\n border: 1px solid ",";\n "])),r.components.card[t][o].background,r.components.card[t][o].border)}),(function(e){var t=e.elevation;return t>0&&n.css(AW||(AW=H(["\n border: none;\n box-shadow: 0px ","px ","px rgba(51, 51, 51, 0.12),\n ","px ","px ","px rgba(51, 51, 51, 0.24);\n "],["\n border: none;\n box-shadow: 0px ","px ","px rgba(51, 51, 51, 0.12),\n ","px ","px ","px rgba(51, 51, 51, 0.24);\n "])),1*t,3*t,1*t,2*t,5*t)})),LW=t.forwardRef((function(e,t){var n=e.children,r=e.color,o=void 0===r?exports.CardColor.GREY:r,i=e.elevation,a=void 0===i?0:i,l=e.type,s=void 0===l?exports.CardType.PRIMARY:l,u=F(e,["children","color","elevation","type"]);return _.default.createElement(jW,I({ref:t,color:o,elevation:null!=a?a:0,type:s},u),n)}));exports.ChipType=void 0,(FW=exports.ChipType||(exports.ChipType={})).STANDARD="standard",FW.ERROR="error",FW.INFO="info",FW.WARNING="warning",FW.SUCCESS="success";var zW,BW,HW,UW,WW,VW,YW,qW,GW=$.default(ie)(zW||(zW=H(["\n margin-right: 4px;\n"],["\n margin-right: 4px;\n"]))),KW=$.default(ie)(BW||(BW=H(["\n cursor: pointer;\n margin-left: 4px;\n"],["\n cursor: pointer;\n margin-left: 4px;\n"]))),XW=$.default.div(HW||(HW=H([""],[""]))),QW=$.default.div(VW||(VW=H(["\n border-radius: 100px;\n display: inline-flex;\n align-items: center;\n font-size: 14px;\n line-height: 1em;\n white-space: nowrap;\n padding: 5px ",";\n\n ","\n\n ","\n"],["\n border-radius: 100px;\n display: inline-flex;\n align-items: center;\n font-size: 14px;\n line-height: 1em;\n white-space: nowrap;\n padding: 5px ",";\n\n ","\n\n ","\n"])),hd.xs,(function(e){var t=e.theme,r=e.type,o=void 0===r?exports.ChipType.STANDARD:r;return n.css(UW||(UW=H(["\n background-color: ",";\n color: ",";\n "],["\n background-color: ",";\n color: ",";\n "])),t.components.chip[o].backgroundColor,t.components.chip[o].color)}),(function(e){var t=e.statusEdit,r=e.theme,o=e.type,i=void 0===o?exports.ChipType.STANDARD:o;if(t)return n.css(WW||(WW=H(["\n &:hover {\n background-color: ",";\n }\n &:active {\n background-color: ",";\n }\n "],["\n &:hover {\n background-color: ",";\n }\n &:active {\n background-color: ",";\n }\n "])),r.components.chip[i].hover,r.components.chip[i].active)}));J.black[100],J.grey[100],J.grey[200],J.grey[300],J.green[900],J.green[100],J.green[200],J.green[300],J.blue[900],J.blue[100],J.blue[200],J.blue[300],J.yellow[900],J.yellow[100],J.yellow[200],J.yellow[300],J.red[900],J.red[100],J.red[200],J.red[300],J.white[100],J.grey[500],J.white[100],J.yellow[500],J.white[100],J.green[500],J.white[100],J.blue[500],J.white[100],J.red[500],J.white[100],J.grey[200];exports.BadgeSize=void 0,(YW=exports.BadgeSize||(exports.BadgeSize={})).EXTRA_EXTRA_SMALL="extra-extra-small",YW.EXTRA_SMALL="extra-small",YW.SMALL="small",YW.MEDIUM="medium",YW.LARGE="large",exports.FloatingBadgeType=void 0,(qW=exports.FloatingBadgeType||(exports.FloatingBadgeType={})).STANDARD="standard",qW.ERROR="error",qW.INFO="info",qW.WARNING="warning",qW.SUCCESS="success",qW.DISABLED="disabled";var ZW,JW,eV,tV,nV,rV,oV,iV,aV,lV,sV,uV=$.default.span(rV||(rV=H(["\n display: block;\n text-align: center;\n width: fit-content;\n padding: 2px;\n white-space: nowrap;\n font-style: normal;\n font-weight: 500;\n\n background-color: ",";\n color: ",";\n\n ",";\n"],["\n display: block;\n text-align: center;\n width: fit-content;\n padding: 2px;\n white-space: nowrap;\n font-style: normal;\n font-weight: 500;\n\n background-color: ",";\n color: ",";\n\n ",";\n"])),(function(e){var t=e.theme,n=e.type;return t.components.floatingBadge[null!=n?n:exports.FloatingBadgeType.STANDARD].backgroundColor}),(function(e){var t=e.theme,n=e.type;return t.components.floatingBadge[null!=n?n:exports.FloatingBadgeType.STANDARD].color}),(function(e){return function(e){switch(e){case exports.BadgeSize.EXTRA_EXTRA_SMALL:return n.css(ZW||(ZW=H(["\n height: 4px;\n min-width: 4px;\n border-radius: 4px;\n font-size: 4px;\n line-height: 4px;\n "],["\n height: 4px;\n min-width: 4px;\n border-radius: 4px;\n font-size: 4px;\n line-height: 4px;\n "])));case exports.BadgeSize.EXTRA_SMALL:return n.css(JW||(JW=H(["\n height: 12px;\n min-width: 12px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 12px;\n "],["\n height: 12px;\n min-width: 12px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 12px;\n "])));case exports.BadgeSize.SMALL:return n.css(eV||(eV=H(["\n height: 16px;\n min-width: 16px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 16px;\n "],["\n height: 16px;\n min-width: 16px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 16px;\n "])));case exports.BadgeSize.LARGE:return n.css(tV||(tV=H(["\n height: 24px;\n min-width: 24px;\n border-radius: 14px;\n font-size: 14px;\n line-height: 24px;\n "],["\n height: 24px;\n min-width: 24px;\n border-radius: 14px;\n font-size: 14px;\n line-height: 24px;\n "])));default:return n.css(nV||(nV=H(["\n height: 20px;\n min-width: 20px;\n border-radius: 12px;\n font-size: 12px;\n line-height: 20px;\n "],["\n height: 20px;\n min-width: 20px;\n border-radius: 12px;\n font-size: 12px;\n line-height: 20px;\n "])))}}(e.size)})),cV=$.default(uV)(lV||(lV=H(["\n position: absolute;\n ",";\n top: ",";\n right: ",";\n padding: 0;\n\n &:after {\n content: '","';\n\n position: static;\n margin: 1px 2px;\n display: block;\n text-align: center;\n }\n"],["\n position: absolute;\n ",";\n top: ",";\n right: ",";\n padding: 0;\n\n &:after {\n content: '","';\n\n position: static;\n margin: 1px 2px;\n display: block;\n text-align: center;\n }\n"])),(function(e){return function(e){switch(e){case"small":return n.css(oV||(oV=H(["\n top: 3px;\n right: 3px;\n "],["\n top: 3px;\n right: 3px;\n "])));case"large":return n.css(iV||(iV=H(["\n top: -1px;\n right: -1px;\n "],["\n top: -1px;\n right: -1px;\n "])));default:return n.css(aV||(aV=H(["\n top: 1px;\n right: 1px;\n "],["\n top: 1px;\n right: 1px;\n "])))}}(e.size)}),(function(e){var t=e.top;return void 0!==t?t+"px":void 0}),(function(e){var t=e.right;return void 0!==t?t+"px":void 0}),(function(e){return e.counter})),dV=function(e){var t=e.children,n=F(e,["children"]);return _.default.createElement(fV,null,t,!n.isDisabled&&_.default.createElement(cV,I({},n)))},fV=$.default.div(sV||(sV=H(["\n display: inline-block;\n position: relative;\n"],["\n display: inline-block;\n position: relative;\n"]))),pV={},hV={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",l="string",s="major",u="model",c="name",d="type",f="vendor",p="version",h="architecture",m="console",g="mobile",y="tablet",b="smarttv",v="wearable",x="embedded",w="Amazon",k="Apple",C="ASUS",_="BlackBerry",S="Browser",$="Chrome",E="Firefox",T="Google",D="Huawei",M="LG",O="Microsoft",R="Motorola",P="Opera",N="Samsung",A="Sharp",I="Sony",F="Xiaomi",j="Zebra",L="Facebook",z="Chromium OS",B="Mac OS",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},U=function(e,t){return typeof e===l&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,350)},Y=function(e,t){for(var n,i,l,s,u,c,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(n=i=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(e))for(l=0;l<p.length;l++)c=u[++i],typeof(s=p[l])===a&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):r:this[s[0]]=c?s[1].call(this,c,s[2]):r:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):r):this[s]=c||r;d+=2}},q=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(U(t[n][o],e))return"?"===n?r:n}else if(U(t[n],e))return"?"===n?r:n;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},K={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,p],[/opios[\/ ]+([\w\.]+)/i],[p,[c,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[c,P]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[c,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+S],p],[/\bfocus\/([\w\.]+)/i],[p,[c,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[c,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[c,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[c,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[p,[c,E]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+S]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+S],p],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,L],p],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[c,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[c,$+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,$+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[c,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[p,q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[c,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[c,p],[/(cobalt)\/([\w\.]+)/i],[c,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,W]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",W]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,W]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[f,N],[d,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,N],[d,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[f,k],[d,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,k],[d,y]],[/(macintosh);/i],[u,[f,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,A],[d,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[f,D],[d,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[f,D],[d,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[f,F],[d,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[f,F],[d,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[f,"OPPO"],[d,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[d,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[f,"Realme"],[d,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[f,R],[d,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,R],[d,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,M],[d,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,M],[d,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[f,"Lenovo"],[d,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[f,"Nokia"],[d,g]],[/(pixel c)\b/i],[u,[f,T],[d,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,T],[d,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[f,I],[d,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,I],[d,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,"OnePlus"],[d,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,w],[d,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[f,w],[d,g]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[d,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,_],[d,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,C],[d,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,C],[d,g]],[/(nexus 9)/i],[u,[f,"HTC"],[d,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[d,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[d,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[d,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,u,[d,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,u,[d,y]],[/(surface duo)/i],[u,[f,O],[d,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[d,g]],[/(u304aa)/i],[u,[f,"AT&T"],[d,g]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[d,g]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[d,y]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[d,y]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[d,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[d,y]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[d,y]],[/\b(k88) b/i],[u,[f,"ZTE"],[d,y]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[d,g]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[d,g]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[d,y]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[d,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[d,y]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[d,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[d,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[d,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[d,g]],[/\b(ph-1) /i],[u,[f,"Essential"],[d,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[d,y]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[d,y]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[d,y]],[/(shield[\w ]+) b/i],[u,[f,"Nvidia"],[d,y]],[/(sprint) (\w+)/i],[f,u,[d,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,O],[d,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,j],[d,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,j],[d,g]],[/smart-tv.+(samsung)/i],[f,[d,b]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,N],[d,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,M],[d,b]],[/(apple) ?tv/i],[f,[u,k+" TV"],[d,b]],[/crkey/i],[[u,$+"cast"],[f,T],[d,b]],[/droid.+aft(\w)( bui|\))/i],[u,[f,w],[d,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[f,A],[d,b]],[/(bravia[\w ]+)( bui|\))/i],[u,[f,I],[d,b]],[/(mitv-\w{5}) bui/i],[u,[f,F],[d,b]],[/Hbbtv.*(technisat) (.*);/i],[f,u,[d,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,V],[u,V],[d,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[d,m]],[/droid.+; (shield) bui/i],[u,[f,"Nvidia"],[d,m]],[/(playstation [345portablevi]+)/i],[u,[f,I],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,O],[d,m]],[/((pebble))app/i],[f,u,[d,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[f,k],[d,v]],[/droid.+; (glass) \d/i],[u,[f,T],[d,v]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,j],[d,v]],[/(quest( 2| pro)?)/i],[u,[f,L],[d,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[d,x]],[/(aeobc)\b/i],[u,[f,w],[d,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[d,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[d,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,g]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[p,q,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,"Windows"],[p,q,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,B],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,p],[/\(bb(10);/i],[p,[c,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[c,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[c,$+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,z],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,p],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,p]]},X=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof X))return new X(e,t).getResult();var m=typeof n!==i&&n.navigator?n.navigator:r,b=e||(m&&m.userAgent?m.userAgent:""),v=m&&m.userAgentData?m.userAgentData:r,x=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(K,t):K,w=m&&m.userAgent==b;return this.getBrowser=function(){var e,t={};return t[c]=r,t[p]=r,Y.call(t,b,x.browser),t[s]=typeof(e=t[p])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:r,w&&m&&m.brave&&typeof m.brave.isBrave==o&&(t[c]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,Y.call(e,b,x.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[u]=r,e[d]=r,Y.call(e,b,x.device),w&&!e[d]&&v&&v.mobile&&(e[d]=g),w&&"Macintosh"==e[u]&&m&&typeof m.standalone!==i&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[u]="iPad",e[d]=y),e},this.getEngine=function(){var e={};return e[c]=r,e[p]=r,Y.call(e,b,x.engine),e},this.getOS=function(){var e={};return e[c]=r,e[p]=r,Y.call(e,b,x.os),w&&!e[c]&&v&&"Unknown"!=v.platform&&(e[c]=v.platform.replace(/chrome os/i,z).replace(/macos/i,B)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return b},this.setUA=function(e){return b=typeof e===l&&e.length>350?V(e,350):e,this},this.setUA(b),this};X.VERSION="1.0.35",X.BROWSER=H([c,p,s]),X.CPU=H([h]),X.DEVICE=H([u,f,d,m,g,b,y,v,x]),X.ENGINE=X.OS=H([c,p]),e.exports&&(t=e.exports=X),t.UAParser=X;var Q=typeof n!==i&&(n.jQuery||n.Zepto);if(Q&&!Q.ua){var Z=new X;Q.ua=Z.getResult(),Q.ua.get=function(){return Z.getUA()},Q.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"==typeof window?window:bd)}(hV,hV.exports),Object.defineProperty(pV,"__esModule",{value:!0});var mV,gV=_.default,yV=(mV=gV)&&"object"==typeof mV&&"default"in mV?mV.default:mV,bV=hV.exports,vV=new bV,xV=vV.getBrowser(),wV=vV.getCPU(),kV=vV.getDevice(),CV=vV.getEngine(),_V=vV.getOS(),SV=vV.getUA(),$V=function(e){return vV.setUA(e)},EV=function(e){if(e){var t=new bV(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}console.error("No userAgent string was provided")},TV=Object.freeze({ClientUAInstance:vV,browser:xV,cpu:wV,device:kV,engine:CV,os:_V,ua:SV,setUa:$V,parseUserAgent:EV});function DV(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 MV(e){return MV="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},MV(e)}function OV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function RV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PV(){return PV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PV.apply(this,arguments)}function NV(e){return NV=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},NV(e)}function AV(e,t){return AV=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},AV(e,t)}function IV(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function FV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jV(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return LV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LV(e,t)}(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 LV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zV="mobile",BV="tablet",HV="smarttv",UV="console",WV="wearable",VV="embedded",YV=void 0,qV={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},GV={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},KV={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},XV=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},QV=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},ZV=function(e){var t=QV();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},JV=function(e,t,n,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DV(Object(n),!0).forEach((function(t){RV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{vendor:XV(t.vendor),model:XV(t.model),os:XV(n.name),osVersion:XV(n.version),ua:XV(r)})};var eY=function(e){return e.type===zV},tY=function(e){return e.type===BV},nY=function(e){var t=e.type;return t===zV||t===BV},rY=function(e){return e.type===HV},oY=function(e){return e.type===YV},iY=function(e){return e.type===WV},aY=function(e){return e.type===UV},lY=function(e){return e.type===VV},sY=function(e){var t=e.vendor;return XV(t)},uY=function(e){var t=e.model;return XV(t)},cY=function(e){var t=e.type;return XV(t,"browser")},dY=function(e){return e.name===GV.Android},fY=function(e){return e.name===GV.Windows},pY=function(e){return e.name===GV.MAC_OS},hY=function(e){return e.name===GV.WindowsPhone},mY=function(e){return e.name===GV.IOS},gY=function(e){var t=e.version;return XV(t)},yY=function(e){var t=e.name;return XV(t)},bY=function(e){return e.name===qV.Chrome},vY=function(e){return e.name===qV.Firefox},xY=function(e){return e.name===qV.Chromium},wY=function(e){return e.name===qV.Edge},kY=function(e){return e.name===qV.Yandex},CY=function(e){var t=e.name;return t===qV.Safari||t===qV.MobileSafari},_Y=function(e){return e.name===qV.MobileSafari},SY=function(e){return e.name===qV.Opera},$Y=function(e){var t=e.name;return t===qV.InternetExplorer||t===qV.Ie},EY=function(e){return e.name===qV.MIUI},TY=function(e){return e.name===qV.SamsungBrowser},DY=function(e){var t=e.version;return XV(t)},MY=function(e){var t=e.major;return XV(t)},OY=function(e){var t=e.name;return XV(t)},RY=function(e){var t=e.name;return XV(t)},PY=function(e){var t=e.version;return XV(t)},NY=function(){var e=QV(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},AY=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},IY=function(){var e=QV();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},FY=function(){return ZV("iPad")},jY=function(){return ZV("iPhone")},LY=function(){return ZV("iPod")},zY=function(e){return XV(e)};function BY(e){var t=e||TV,n=t.device,r=t.browser,o=t.os,i=t.engine,a=t.ua;return{isSmartTV:rY(n),isConsole:aY(n),isWearable:iY(n),isEmbedded:lY(n),isMobileSafari:_Y(r)||FY(),isChromium:xY(r),isMobile:nY(n)||FY(),isMobileOnly:eY(n),isTablet:tY(n)||FY(),isBrowser:oY(n),isDesktop:oY(n),isAndroid:dY(o),isWinPhone:hY(o),isIOS:mY(o)||FY(),isChrome:bY(r),isFirefox:vY(r),isSafari:CY(r),isOpera:SY(r),isIE:$Y(r),osVersion:gY(o),osName:yY(o),fullBrowserVersion:DY(r),browserVersion:MY(r),browserName:OY(r),mobileVendor:sY(n),mobileModel:uY(n),engineName:RY(i),engineVersion:PY(i),getUA:zY(a),isEdge:wY(r)||AY(a),isYandex:kY(r),deviceType:cY(n),isIOS13:IY(),isIPad13:FY(),isIPhone13:jY(),isIPod13:LY(),isElectron:NY(),isEdgeChromium:AY(a),isLegacyEdge:wY(r)&&!AY(a),isWindows:fY(o),isMacOs:pY(o),isMIUI:EY(r),isSamsungBrowser:TY(r)}}var HY=rY(kV),UY=aY(kV),WY=iY(kV),VY=lY(kV),YY=_Y(xV)||FY(),qY=xY(xV),GY=nY(kV)||FY(),KY=eY(kV),XY=tY(kV)||FY(),QY=oY(kV),ZY=oY(kV),JY=dY(_V),eq=hY(_V),tq=mY(_V)||FY(),nq=bY(xV),rq=vY(xV),oq=CY(xV),iq=SY(xV),aq=$Y(xV),lq=gY(_V),sq=yY(_V),uq=DY(xV),cq=MY(xV),dq=OY(xV),fq=sY(kV),pq=uY(kV),hq=RY(CV),mq=PY(CV),gq=zY(SV),yq=wY(xV)||AY(SV),bq=kY(xV),vq=cY(kV),xq=IY(),wq=FY(),kq=jY(),Cq=LY(),_q=NY(),Sq=AY(SV),$q=wY(xV)&&!AY(SV),Eq=fY(_V),Tq=pY(_V),Dq=EY(xV),Mq=TY(xV);function Oq(e){var t=e||window.navigator.userAgent;return EV(t)}pV.AndroidView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return JY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.BrowserTypes=qV,pV.BrowserView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return QY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.ConsoleView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return UY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.CustomView=function(e){var t=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var r=e.condition,o=IV(e,["renderWithFragment","children","viewClassName","style","condition"]);return r?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",o,n):null},pV.IEView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return aq?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.IOSView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return tq?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.MobileOnlyView=function(e){var t=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var r=IV(e,["renderWithFragment","children","viewClassName","style"]);return KY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.MobileView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return GY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.OsTypes=GV,pV.SmartTVView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return HY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.TabletView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return XY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.WearableView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return WY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.WinPhoneView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return eq?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.browserName=dq,pV.browserVersion=cq,pV.deviceDetect=function(e){var t=e?EV(e):TV,n=t.device,r=t.browser,o=t.engine,i=t.os,a=t.ua,l=function(e){switch(e){case zV:return{isMobile:!0};case BV:return{isTablet:!0};case HV:return{isSmartTV:!0};case UV:return{isConsole:!0};case WV:return{isWearable:!0};case YV:return{isBrowser:!0};case VV:return{isEmbedded:!0};default:return KV}}(n.type),s=l.isBrowser,u=l.isMobile,c=l.isTablet,d=l.isSmartTV,f=l.isConsole,p=l.isWearable,h=l.isEmbedded;return s?function(e,t,n,r,o){return{isBrowser:e,browserMajorVersion:XV(t.major),browserFullVersion:XV(t.version),browserName:XV(t.name),engineName:XV(n.name),engineVersion:XV(n.version),osName:XV(r.name),osVersion:XV(r.version),userAgent:XV(o)}}(s,r,o,i,a):d?function(e,t,n,r){return{isSmartTV:e,engineName:XV(t.name),engineVersion:XV(t.version),osName:XV(n.name),osVersion:XV(n.version),userAgent:XV(r)}}(d,o,i,a):f?function(e,t,n,r){return{isConsole:e,engineName:XV(t.name),engineVersion:XV(t.version),osName:XV(n.name),osVersion:XV(n.version),userAgent:XV(r)}}(f,o,i,a):u||c?JV(l,n,i,a):p?function(e,t,n,r){return{isWearable:e,engineName:XV(t.name),engineVersion:XV(t.version),osName:XV(n.name),osVersion:XV(n.version),userAgent:XV(r)}}(p,o,i,a):h?function(e,t,n,r,o){return{isEmbedded:e,vendor:XV(t.vendor),model:XV(t.model),engineName:XV(n.name),engineVersion:XV(n.version),osName:XV(r.name),osVersion:XV(r.version),userAgent:XV(o)}}(h,n,o,i,a):void 0},pV.deviceType=vq,pV.engineName=hq,pV.engineVersion=mq,pV.fullBrowserVersion=uq,pV.getSelectorsByUserAgent=function(e){if(e&&"string"==typeof e){var t=EV(e);return BY({device:t.device,browser:t.browser,os:t.os,engine:t.engine,ua:t.ua})}console.error("No valid user agent string was provided")},pV.getUA=gq,pV.isAndroid=JY,pV.isBrowser=QY,pV.isChrome=nq,pV.isChromium=qY,pV.isConsole=UY,pV.isDesktop=ZY,pV.isEdge=yq,pV.isEdgeChromium=Sq,pV.isElectron=_q,pV.isEmbedded=VY,pV.isFirefox=rq,pV.isIE=aq,pV.isIOS=tq,pV.isIOS13=xq,pV.isIPad13=wq,pV.isIPhone13=kq,pV.isIPod13=Cq,pV.isLegacyEdge=$q,pV.isMIUI=Dq;var Rq=pV.isMacOs=Tq;pV.isMobile=GY,pV.isMobileOnly=KY,pV.isMobileSafari=YY,pV.isOpera=iq;var Pq=pV.isSafari=oq;pV.isSamsungBrowser=Mq,pV.isSmartTV=HY,pV.isTablet=XY,pV.isWearable=WY,pV.isWinPhone=eq,pV.isWindows=Eq,pV.isYandex=bq,pV.mobileModel=pq,pV.mobileVendor=fq,pV.osName=sq,pV.osVersion=lq,pV.parseUserAgent=EV,pV.setUserAgent=function(e){return $V(e)},pV.useDeviceData=Oq,pV.useDeviceSelectors=function(e){var t=Oq(e||window.navigator.userAgent);return[BY(t),t]},pV.useMobileOrientation=function(){var e=jV(gV.useState((function(){var e=window.innerWidth>window.innerHeight?90:0;return{isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"}})),2),t=e[0],n=e[1],r=gV.useCallback((function(){var e=window.innerWidth>window.innerHeight?90:0,r={isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"};t.orientation!==r.orientation&&n(r)}),[t.orientation]);return gV.useEffect((function(){return void 0!==("undefined"==typeof window?"undefined":MV(window))&&GY&&(r(),window.addEventListener("load",r,!1),window.addEventListener("resize",r,!1)),function(){window.removeEventListener("resize",r,!1),window.removeEventListener("load",r,!1)}}),[r]),t},pV.withOrientationChange=function(e){return function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t=function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return FV(e)}(this,NV(n).call(this,e)),t.isEventListenerAdded=!1,t.handleOrientationChange=t.handleOrientationChange.bind(FV(t)),t.onOrientationChange=t.onOrientationChange.bind(FV(t)),t.onPageLoad=t.onPageLoad.bind(FV(t)),t.state={isLandscape:!1,isPortrait:!1},t}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&AV(e,t)}(n,yV.Component),r=n,(o=[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var e=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:0===e,isLandscape:90===e})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){void 0!==("undefined"==typeof window?"undefined":MV(window))&&GY&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return yV.createElement(e,PV({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}])&&OV(r.prototype,o),i&&OV(r,i),n}()};var Nq,Aq,Iq,Fq,jq,Lq,zq,Bq,Hq,Uq,Wq,Vq=function(){return _.default.createElement(Yq,{tabIndex:0},_.default.createElement(ie,{icon:o.faEllipsisH,fixedWidth:!0}))},Yq=$.default.div(Nq||(Nq=H(["\n display: flex;\n"],["\n display: flex;\n"]))),qq={margin:"auto",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},Gq=$.default(ie)(Aq||(Aq=H([""],[""]))),Kq=$.default(ie)(Iq||(Iq=H([""],[""]))),Xq=$.default.div(Fq||(Fq=H([""],[""]))),Qq=$.default.div.attrs((function(e){var t=e.tagStyle,n=e.theme,r=e.type;return n.components.tag[t][r]}))(jq||(jq=H(["\n display: inline-flex;\n flex-direction: row;\n border: 4px;\n align-items: center;\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n text-align: center;\n border-radius: 4px;\n padding: 3px 8px;\n color: ",";\n background-color: ",";\n\n "," + "," {\n padding-left: 4px;\n }\n\n "," + "," {\n padding-right: 12px;\n }\n"],["\n display: inline-flex;\n flex-direction: row;\n border: 4px;\n align-items: center;\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n text-align: center;\n border-radius: 4px;\n padding: 3px 8px;\n color: ",";\n background-color: ",";\n\n "," + "," {\n padding-left: 4px;\n }\n\n "," + "," {\n padding-right: 12px;\n }\n"])),(function(e){return e.color}),(function(e){return e.backgroundColor}),Gq,Xq,Xq,Kq),Zq=function(e){var t=e.leftIcon,n=e.rightIcon,r=e.tagStyle,o=e.text,i=e.type,a=e.className;return _.default.createElement(Qq,{className:a,type:i,tagStyle:r},t&&_.default.createElement(Gq,I({},t)),_.default.createElement(Xq,null,o),n&&_.default.createElement(Kq,I({},n)))},Jq=$.default.div(Lq||(Lq=H(["\n transition: transform 250ms ease;\n transform: ",";\n\n visibility: ",";\n"],["\n transition: transform 250ms ease;\n transform: ",";\n\n visibility: ",";\n"])),(function(e){return e.isOpen?"rotate(90deg)":"rotate(0deg)"}),(function(e){return e.isVisible?"visible":"hidden"})),eG=$.default((function(e){var t=e.className,n=e.content,r=e.forceOpen,o=void 0!==r&&r;return _.default.createElement(On,{triggerStyles:qq,className:t,placement:Pq?"bottom-end":"right-start",renderTrigger:Vq,content:n,forceOpen:o})}))(zq||(zq=H(["\n width: 1.5em;\n height: 1.5em;\n\n border-radius: 2px;\n .enter-done {\n z-index: 12;\n }\n"],["\n width: 1.5em;\n height: 1.5em;\n\n border-radius: 2px;\n .enter-done {\n z-index: 12;\n }\n"]))),tG=$.default.a.attrs((function(e){var t=e.isActive,n=e.isDisabled,r=e.theme.components.sidebarItem,o=r.normal,i=r.active,a=r.disabled;return n?a:t?i:o}))(Bq||(Bq=H(["\n height: ","px;\n padding: ",";\n text-decoration: none;\n\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 8px;\n\n cursor: pointer;\n\n transition: background-color 250ms ease;\n\n color: ",";\n background-color: ",";\n\n "," {\n display: none;\n }\n\n &:hover,\n &:focus-within {\n text-decoration: none;\n outline: none;\n color: ",";\n background-color: ",";\n\n "," {\n display: inherit;\n\n &:hover {\n background: ",";\n }\n\n &:focus-within {\n background: ",";\n }\n }\n }\n"],["\n height: ","px;\n padding: ",";\n text-decoration: none;\n\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 8px;\n\n cursor: pointer;\n\n transition: background-color 250ms ease;\n\n color: ",";\n background-color: ",";\n\n "," {\n display: none;\n }\n\n &:hover,\n &:focus-within {\n text-decoration: none;\n outline: none;\n color: ",";\n background-color: ",";\n\n "," {\n display: inherit;\n\n &:hover {\n background: ",";\n }\n\n &:focus-within {\n background: ",";\n }\n }\n }\n"])),44,(function(e){return e.withoutPadding?"0":"0 8px"}),(function(e){var t=e.color;return e.customColor||t}),(function(e){return e.background}),eG,(function(e){return e.hoverColor}),(function(e){return e.hoverBackground}),eG,(function(e){return e.dropdownHover}),(function(e){return e.dropdownActive})),nG=$.default.div(Hq||(Hq=H(["\n flex: 1 1 0%;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n flex: 1 1 0%;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))),rG=$.default(ie)(Uq||(Uq=H(["\n visibility: hidden;\n min-width: 1.5em;\n"],["\n visibility: hidden;\n min-width: 1.5em;\n"])));exports.SidebarBadgeConfigType=void 0,(Wq=exports.SidebarBadgeConfigType||(exports.SidebarBadgeConfigType={}))[Wq.COUNTER=0]="COUNTER",Wq[Wq.ICON=1]="ICON",Wq[Wq.DOT=2]="DOT",Wq[Wq.COUNTER_ICON=3]="COUNTER_ICON";J.black[100],J.black[100],J.grey[100],J.grey[400],J.grey[600],J.white[100],J.blue[500],J.white[100],J.blue[500],J.blue[700],J.grey[300],J.grey[100],J.grey[300],J.grey[100];var oG,iG,aG,lG,sG,uG,cG=function(e){return e.map((function(e){var t;return null!==(t=e.getAttribute("data-key"))&&void 0!==t?t:""}))},dG=function(e){return["Preced.","Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre","Success."][e]},fG=Intl.NumberFormat("it-IT",{style:"currency",currency:"EUR",minimumFractionDigits:0}),pG=$.default.div(oG||(oG=H(["\n width: 100%;\n height: 110px;\n position: relative;\n cursor: pointer;\n"],["\n width: 100%;\n height: 110px;\n position: relative;\n cursor: pointer;\n"]))),hG=$.default(fd)(iG||(iG=H(["\n padding: 6px 0 4px 0;\n text-align: center;\n border-bottom: ",";\n color: ",";\n font-weight: ",";\n"],["\n padding: 6px 0 4px 0;\n text-align: center;\n border-bottom: ",";\n color: ",";\n font-weight: ",";\n"])),(function(e){return"1px solid "+e.theme.components.monthlyTab.border}),(function(e){var t=e.theme;return e.selected?t.components.monthlyTab.selected.headerColor:t.components.monthlyTab.standard.headerColor}),(function(e){return e.selected?500:400})),mG=$.default.div(aG||(aG=H(["\n position: absolute;\n top: 35px;\n left: 0;\n right: 0;\n bottom: 0;\n background: ",";\n"],["\n position: absolute;\n top: 35px;\n left: 0;\n right: 0;\n bottom: 0;\n background: ",";\n"])),(function(e){var t=e.percentage,n=e.theme;return t&&"linear-gradient(180deg, transparent "+(100-t)+"%, "+n.components.monthlyTab.fill+" "+(100-t)+"% 100%)"})),gG=$.default.div(lG||(lG=H(["\n position: absolute;\n bottom: 7px;\n right: 8px;\n left: 8px;\n"],["\n position: absolute;\n bottom: 7px;\n right: 8px;\n left: 8px;\n"]))),yG=$.default(fd)(sG||(sG=H(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.components.monthlyTab.expenseColor})),bG=$.default(fd)(uG||(uG=H(["\n color: ",";\n font-weight: 500;\n"],["\n color: ",";\n font-weight: 500;\n"])),(function(e){return e.theme.components.monthlyTab.amountColor})),vG=function(e){var t=e.monthNumber,n=e.percentage,r=e.selected,o=e.documents,i=e.amount,a=e.monthText;return _.default.createElement(pG,{className:"Month"+(r?" Month--selected":""),selected:r,"data-key":t},_.default.createElement(hG,{selected:r},dG(t)),_.default.createElement(mG,{percentage:n,selected:r},_.default.createElement(gG,null,_.default.createElement(yG,null,o," ",a),_.default.createElement(bG,null,fG.format(i)))))},xG=Object.defineProperty,wG=(e,t,n)=>(((e,t,n)=>{t in e?xG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class kG{constructor(){wG(this,"_listeners",new Map),wG(this,"on",this.addEventListener),wG(this,"off",this.removeEventListener),wG(this,"emit",this.dispatchEvent)}addEventListener(e,t){const n=this._listeners.get(e)||new Set;return this._listeners.set(e,n),n.add(t),this}removeEventListener(e,t){var n;return null==(n=this._listeners.get(e))||n.delete(t),this}dispatchEvent(e,...t){let n=!0;for(const r of this._listeners.get(e)||[])n=!1!==r(...t)&&n;return n}unbindAllListeners(){this._listeners.clear()}}const CG=(e,t="px")=>"number"==typeof e?e+t:e;function _G({style:e},t,n){if("object"==typeof t)for(const[n,r]of Object.entries(t))void 0!==r&&(e[n]=CG(r));else void 0!==n&&(e[t]=CG(n))}function SG(e){return(t,n,r,o={})=>{t instanceof HTMLCollection||t instanceof NodeList?t=Array.from(t):Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);for(const i of t)for(const t of n)i[e](t,r,{capture:!1,...o});return[t,n,r,o]}}const $G=SG("addEventListener"),EG=SG("removeEventListener"),TG=e=>{const{clientX:t,clientY:n,target:r}=e.touches&&e.touches[0]||e;return{x:t,y:n,target:r}};function DG(e,t,n="touch"){switch(n){case"center":{const n=t.left+t.width/2,r=t.top+t.height/2;return n>=e.left&&n<=e.right&&r>=e.top&&r<=e.bottom}case"cover":return t.left>=e.left&&t.top>=e.top&&t.right<=e.right&&t.bottom<=e.bottom;case"touch":return e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom}}function MG(e,t=document){const n=Array.isArray(e)?e:[e];let r=[];for(let e=0,o=n.length;e<o;e++){const o=n[e];"string"==typeof o?r=r.concat(Array.from(t.querySelectorAll(o))):o instanceof Element&&r.push(o)}return r}const{abs:OG,max:RG,min:PG,ceil:NG}=Math;class AG extends kG{constructor(e){var t,n,r,o,i;super(),wG(this,"_options"),wG(this,"_selection",{stored:[],selected:[],touched:[],changed:{added:[],removed:[]}}),wG(this,"_area"),wG(this,"_clippingElement"),wG(this,"_targetElement"),wG(this,"_targetRect"),wG(this,"_selectables",[]),wG(this,"_latestElement"),wG(this,"_areaRect",new DOMRect),wG(this,"_areaLocation",{y1:0,x2:0,y2:0,x1:0}),wG(this,"_singleClick",!0),wG(this,"_frame"),wG(this,"_scrollAvailable",!0),wG(this,"_scrollingActive",!1),wG(this,"_scrollSpeed",{x:0,y:0}),wG(this,"_scrollDelta",{x:0,y:0}),wG(this,"disable",this._bindStartEvents.bind(this,!1)),wG(this,"enable",this._bindStartEvents),this._options={selectionAreaClass:"selection-area",selectionContainerClass:void 0,selectables:[],document:window.document,startAreas:["html"],boundaries:["html"],container:"body",...e,behaviour:{overlap:"invert",intersect:"touch",...e.behaviour,startThreshold:null!=(t=e.behaviour)&&t.startThreshold?"number"==typeof e.behaviour.startThreshold?e.behaviour.startThreshold:{x:10,y:10,...e.behaviour.startThreshold}:{x:10,y:10},scrolling:{speedDivider:10,manualSpeed:750,...null==(n=e.behaviour)?void 0:n.scrolling,startScrollMargins:{x:0,y:0,...null==(o=null==(r=e.behaviour)?void 0:r.scrolling)?void 0:o.startScrollMargins}}},features:{range:!0,touch:!0,...e.features,singleTap:{allow:!0,intersect:"native",...null==(i=e.features)?void 0:i.singleTap}}};for(const e of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))"function"==typeof this[e]&&(this[e]=this[e].bind(this));const{document:a,selectionAreaClass:l,selectionContainerClass:s}=this._options;this._area=a.createElement("div"),this._clippingElement=a.createElement("div"),this._clippingElement.appendChild(this._area),this._area.classList.add(l),s&&this._clippingElement.classList.add(s),_G(this._area,{willChange:"top, left, bottom, right, width, height",top:0,left:0,position:"fixed"}),_G(this._clippingElement,{overflow:"hidden",position:"fixed",transform:"translate3d(0, 0, 0)",pointerEvents:"none",zIndex:"1"}),this._frame=(e=>{let t,n=-1,r=!1;return{next(...o){t=o,r||(r=!0,n=requestAnimationFrame((()=>{e(...t),r=!1})))},cancel(){cancelAnimationFrame(n),r=!1}}})((e=>{this._recalculateSelectionAreaRect(),this._updateElementSelection(),this._emitEvent("move",e),this._redrawSelectionArea()})),this.enable()}_bindStartEvents(e=!0){const{document:t,features:n}=this._options,r=e?$G:EG;r(t,"mousedown",this._onTapStart),n.touch&&r(t,"touchstart",this._onTapStart,{passive:!1})}_onTapStart(e,t=!1){const{x:n,y:r,target:o}=TG(e),{_options:i}=this,{document:a}=this._options,l=o.getBoundingClientRect(),s=MG(i.startAreas,i.document),u=MG(i.boundaries,i.document);this._targetElement=u.find((e=>DG(e.getBoundingClientRect(),l)));const c=e.composedPath();if(!this._targetElement||!s.find((e=>c.includes(e)))||!u.find((e=>c.includes(e)))||!t&&!1===this._emitEvent("beforestart",e))return;this._areaLocation={x1:n,y1:r,x2:0,y2:0};const d=a.scrollingElement||a.body;this._scrollDelta={x:d.scrollLeft,y:d.scrollTop},this._singleClick=!0,this.clearSelection(!1,!0),$G(a,["touchmove","mousemove"],this._delayedTapMove,{passive:!1}),$G(a,["mouseup","touchcancel","touchend"],this._onTapStop),$G(a,"scroll",this._onScroll)}_onSingleTap(e){const{singleTap:{intersect:t},range:n}=this._options.features,r=TG(e);let o;if("native"===t)o=r.target;else if("touch"===t){this.resolveSelectables();const{x:e,y:t}=r;o=this._selectables.find((n=>{const{right:r,left:o,top:i,bottom:a}=n.getBoundingClientRect();return e<r&&e>o&&t<a&&t>i}))}if(!o)return;for(this.resolveSelectables();!this._selectables.includes(o);){if(!o.parentElement)return;o=o.parentElement}const{stored:i}=this._selection;if(this._emitEvent("start",e),e.shiftKey&&n&&this._latestElement){const e=this._latestElement,[t,n]=4&e.compareDocumentPosition(o)?[o,e]:[e,o],r=[...this._selectables.filter((e=>4&e.compareDocumentPosition(t)&&2&e.compareDocumentPosition(n))),t,n];this.select(r),this._latestElement=e}else i.includes(o)&&(1===i.length||e.ctrlKey||i.every((e=>this._selection.stored.includes(e))))?this.deselect(o):(this.select(o),this._latestElement=o);this._emitEvent("stop",e)}_delayedTapMove(e){const{container:t,document:n,behaviour:{startThreshold:r}}=this._options,{x1:o,y1:i}=this._areaLocation,{x:a,y:l}=TG(e);if("number"==typeof r&&OG(a+l-(o+i))>=r||"object"==typeof r&&OG(a-o)>=r.x||OG(l-i)>=r.y){if(EG(n,["mousemove","touchmove"],this._delayedTapMove,{passive:!1}),!1===this._emitEvent("beforedrag",e))return void EG(n,["mouseup","touchcancel","touchend"],this._onTapStop);$G(n,["mousemove","touchmove"],this._onTapMove,{passive:!1}),_G(this._area,"display","block"),MG(t,n)[0].appendChild(this._clippingElement),this.resolveSelectables(),this._singleClick=!1,this._targetRect=this._targetElement.getBoundingClientRect(),this._scrollAvailable=this._targetElement.scrollHeight!==this._targetElement.clientHeight||this._targetElement.scrollWidth!==this._targetElement.clientWidth,this._scrollAvailable&&($G(n,"wheel",this._manualScroll,{passive:!1}),this._selectables=this._selectables.filter((e=>this._targetElement.contains(e)))),this._setupSelectionArea(),this._emitEvent("start",e),this._onTapMove(e)}this._handleMoveEvent(e)}_setupSelectionArea(){const{_clippingElement:e,_targetElement:t,_area:n}=this,r=this._targetRect=t.getBoundingClientRect();this._scrollAvailable?(_G(e,{top:r.top,left:r.left,width:r.width,height:r.height}),_G(n,{marginTop:-r.top,marginLeft:-r.left})):(_G(e,{top:0,left:0,width:"100%",height:"100%"}),_G(n,{marginTop:0,marginLeft:0}))}_onTapMove(e){const{x:t,y:n}=TG(e),{_scrollSpeed:r,_areaLocation:o,_options:i,_frame:a}=this,{speedDivider:l}=i.behaviour.scrolling,s=this._targetElement;if(o.x2=t,o.y2=n,this._scrollAvailable&&!this._scrollingActive&&(r.y||r.x)){this._scrollingActive=!0;const t=()=>{if(!r.x&&!r.y)return void(this._scrollingActive=!1);const{scrollTop:n,scrollLeft:i}=s;r.y&&(s.scrollTop+=NG(r.y/l),o.y1-=s.scrollTop-n),r.x&&(s.scrollLeft+=NG(r.x/l),o.x1-=s.scrollLeft-i),a.next(e),requestAnimationFrame(t)};requestAnimationFrame(t)}else a.next(e);this._handleMoveEvent(e)}_handleMoveEvent(e){const{features:t}=this._options;(t.touch&&matchMedia("(hover: none), (pointer: coarse)").matches||this._scrollAvailable&&"safari"in window)&&e.preventDefault()}_onScroll(){const{_scrollDelta:e,_options:{document:t}}=this,{scrollTop:n,scrollLeft:r}=t.scrollingElement||t.body;this._areaLocation.x1+=e.x-r,this._areaLocation.y1+=e.y-n,e.x=r,e.y=n,this._setupSelectionArea(),this._frame.next(null)}_manualScroll(e){const{manualSpeed:t}=this._options.behaviour.scrolling,n=e.deltaY?e.deltaY>0?1:-1:0,r=e.deltaX?e.deltaX>0?1:-1:0;this._scrollSpeed.y+=n*t,this._scrollSpeed.x+=r*t,this._onTapMove(e),e.preventDefault()}_recalculateSelectionAreaRect(){const{_scrollSpeed:e,_areaLocation:t,_areaRect:n,_targetElement:r,_options:o}=this,{scrollTop:i,scrollHeight:a,clientHeight:l,scrollLeft:s,scrollWidth:u,clientWidth:c}=r,d=this._targetRect,{x1:f,y1:p}=t;let{x2:h,y2:m}=t;const{behaviour:{scrolling:{startScrollMargins:g}}}=o;h<d.left+g.x?(e.x=s?-OG(d.left-h+g.x):0,h=h<d.left?d.left:h):h>d.right-g.x?(e.x=u-s-c?OG(d.left+d.width-h-g.x):0,h=h>d.right?d.right:h):e.x=0,m<d.top+g.y?(e.y=i?-OG(d.top-m+g.y):0,m=m<d.top?d.top:m):m>d.bottom-g.y?(e.y=a-i-l?OG(d.top+d.height-m-g.y):0,m=m>d.bottom?d.bottom:m):e.y=0;const y=PG(f,h),b=PG(p,m),v=RG(f,h),x=RG(p,m);n.x=y,n.y=b,n.width=v-y,n.height=x-b}_redrawSelectionArea(){const{x:e,y:t,width:n,height:r}=this._areaRect,{style:o}=this._area;o.left=`${e}px`,o.top=`${t}px`,o.width=`${n}px`,o.height=`${r}px`}_onTapStop(e,t){var n;const{document:r,features:o}=this._options,{_singleClick:i}=this;EG(r,["mousemove","touchmove"],this._delayedTapMove),EG(r,["touchmove","mousemove"],this._onTapMove),EG(r,["mouseup","touchcancel","touchend"],this._onTapStop),EG(r,"scroll",this._onScroll),this._keepSelection(),e&&i&&o.singleTap.allow?this._onSingleTap(e):!i&&!t&&(this._updateElementSelection(),this._emitEvent("stop",e)),this._scrollSpeed.x=0,this._scrollSpeed.y=0,this._scrollAvailable&&EG(r,"wheel",this._manualScroll,{passive:!0}),this._clippingElement.remove(),null==(n=this._frame)||n.cancel(),_G(this._area,"display","none")}_updateElementSelection(){const{_selectables:e,_options:t,_selection:n,_areaRect:r}=this,{stored:o,selected:i,touched:a}=n,{intersect:l,overlap:s}=t.behaviour,u="invert"===s,c=[],d=[],f=[];for(let t=0;t<e.length;t++){const n=e[t];if(DG(r,n.getBoundingClientRect(),l)){if(i.includes(n))o.includes(n)&&!a.includes(n)&&a.push(n);else{if(u&&o.includes(n)){f.push(n);continue}d.push(n)}c.push(n)}}u&&d.push(...o.filter((e=>!i.includes(e))));const p="keep"===s;for(let e=0;e<i.length;e++){const t=i[e];!c.includes(t)&&(!p||!o.includes(t))&&f.push(t)}n.selected=c,n.changed={added:d,removed:f},this._latestElement=void 0}_emitEvent(e,t){return this.emit(e,{event:t,store:this._selection,selection:this})}_keepSelection(){const{_options:e,_selection:t}=this,{selected:n,changed:r,touched:o,stored:i}=t,a=n.filter((e=>!i.includes(e)));switch(e.behaviour.overlap){case"drop":t.stored=[...a,...i.filter((e=>!o.includes(e)))];break;case"invert":t.stored=[...a,...i.filter((e=>!r.removed.includes(e)))];break;case"keep":t.stored=[...i,...n.filter((e=>!i.includes(e)))]}}trigger(e,t=!0){this._onTapStart(e,t)}resolveSelectables(){this._selectables=MG(this._options.selectables,this._options.document)}clearSelection(e=!0,t=!1){const{selected:n,stored:r,changed:o}=this._selection;o.added=[],o.removed.push(...n,...e?r:[]),t||(this._emitEvent("move",null),this._emitEvent("stop",null)),this._selection={stored:e?[]:r,selected:[],touched:[],changed:{added:[],removed:[]}}}getSelection(){return this._selection.stored}getSelectionArea(){return this._area}cancel(e=!1){this._onTapStop(null,!e)}destroy(){this.cancel(),this.disable(),this._clippingElement.remove(),super.unbindAllListeners()}select(e,t=!1){const{changed:n,selected:r,stored:o}=this._selection,i=MG(e,this._options.document).filter((e=>!r.includes(e)&&!o.includes(e)));return o.push(...i),r.push(...i),n.added.push(...i),n.removed=[],this._latestElement=void 0,t||(this._emitEvent("move",null),this._emitEvent("stop",null)),i}deselect(e,t=!1){const{selected:n,stored:r,changed:o}=this._selection,i=MG(e,this._options.document).filter((e=>n.includes(e)||r.includes(e)));i.length&&(this._selection.stored=r.filter((e=>!i.includes(e))),this._selection.selected=n.filter((e=>!i.includes(e))),this._selection.changed.added=[],this._selection.changed.removed.push(...i.filter((e=>!o.removed.includes(e)))),this._latestElement=void 0,t||(this._emitEvent("move",null),this._emitEvent("stop",null)))}}wG(AG,"version","3.2.7");
20
+ dL=xL,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)n.push(o);else if(Array.isArray(o)){if(o.length){var a=t.apply(null,o);a&&n.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var l in o)e.call(o,l)&&o[l]&&n.push(l)}}}return n.join(" ")}dL.exports?(t.default=t,dL.exports=t):window.classNames=t}();var wL=xL.exports;function kL(e,t){return kL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kL(e,t)}function CL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _L(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var SL,$L,EL=(void 0===SL&&(SL=0),function(){return++SL}),TL={},DL={},ML=["touchstart","touchmove"];function OL(e,t){var n={};return-1!==ML.indexOf(t)&&$L&&(n.passive=!e.props.preventDefault),n}function RL(e,n){var r,o,i=e.displayName||e.name||"Component";return o=r=function(r){var o,a;function l(e){var t;return(t=r.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof t.__clickOutsideHandlerProp){var n=t.getInstance();if("function"!=typeof n.props.handleClickOutside){if("function"!=typeof n.handleClickOutside)throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.");n.handleClickOutside(e)}else n.props.handleClickOutside(e)}else t.__clickOutsideHandlerProp(e)},t.__getComponentNode=function(){var e=t.getInstance();return n&&"function"==typeof n.setClickOutsideRef?n.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():h.findDOMNode(e)},t.enableOnClickOutside=function(){if("undefined"!=typeof document&&!DL[t._uid]){void 0===$L&&($L=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),DL[t._uid]=!0;var e=t.props.eventTypes;e.forEach||(e=[e]),TL[t._uid]=function(e){var n;null!==t.componentNode&&(t.props.preventDefault&&e.preventDefault(),t.props.stopPropagation&&e.stopPropagation(),t.props.excludeScrollbar&&(n=e,document.documentElement.clientWidth<=n.clientX||document.documentElement.clientHeight<=n.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&_L(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,t.componentNode,t.props.outsideClickIgnoreClass)===document&&t.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,TL[t._uid],OL(CL(t),e))}))}},t.disableOnClickOutside=function(){delete DL[t._uid];var e=TL[t._uid];if(e&&"undefined"!=typeof document){var n=t.props.eventTypes;n.forEach||(n=[n]),n.forEach((function(n){return document.removeEventListener(n,e,OL(CL(t),n))})),delete TL[t._uid]}},t.getRef=function(e){return t.instanceRef=e},t._uid=EL(),t}a=r,(o=l).prototype=Object.create(a.prototype),o.prototype.constructor=o,kL(o,a);var s=l.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},s.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(n&&"function"==typeof n.handleClickOutside&&(this.__clickOutsideHandlerProp=n.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var n=this.props;n.excludeScrollbar;var r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?r.ref=this.getRef:r.wrappedRef=this.getRef,r.disableOnClickOutside=this.disableOnClickOutside,r.enableOnClickOutside=this.enableOnClickOutside,t.createElement(e,r)},l}(t.Component),r.displayName="OnClickOutside("+i+")",r.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:n&&n.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},r.getClass=function(){return e.getClass?e.getClass():e},o}function PL(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 NL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PL(Object(n),!0).forEach((function(t){LL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AL(e){return(AL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function IL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GL(r.key),r)}}function jL(e,t,n){return t&&FL(e.prototype,t),n&&FL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function LL(e,t,n){return(t=GL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zL(){return(zL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function BL(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UL(e,t)}function HL(e){return(HL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function UL(e,t){return(UL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function WL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=HL(e);if(t){var o=HL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return WL(e)}(this,n)}}function YL(e){return function(e){if(Array.isArray(e))return qL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return qL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qL(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GL(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function KL(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function XL(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var QL={p:XL,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return KL(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",KL(o,t)).replace("{{time}}",XL(i,t))}},ZL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function JL(e){var t=e?"string"==typeof e||e instanceof String?hc(e):Ha(e):new Date;return ez(t)?t:null}function ez(e,t){return t=t||new Date("1/1/1000"),pl(e)&&!Ts(e,t)}function tz(e,t,n){if("en"===n)return ys(e,t,{awareOfUnicodeTokens:!0});var r=yz(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&gz()&&yz(gz())&&(r=yz(gz())),ys(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function nz(e,t){var n=t.dateFormat,r=t.locale;return e&&tz(e,Array.isArray(n)?n[0]:n,r)||""}function rz(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,i=void 0===o?0:o,a=t.second;return _c(Sc(function(e,t){Ba(2,arguments);var n=Ha(e),r=za(t);return n.setSeconds(r),n}(e,void 0===a?0:a),i),r)}function oz(e,t){var n=t&&yz(t)||gz()&&yz(gz());return function(e){Ba(1,arguments);var t=Ha(e),n=Qa(t).getTime()-Za(t).getTime();return Math.round(n/ws)+1}(e,n?{locale:n}:null)}function iz(e,t,n){return Xa(e,{locale:yz(t||gz()),weekStartsOn:n})}function az(e){return xl(e)}function lz(e){return kl(e)}function sz(e){return vl(e)}function uz(){return el(JL())}function cz(e,t){return e&&t?function(e,t){Ba(2,arguments);var n=Ha(e),r=Ha(t);return n.getFullYear()===r.getFullYear()}(e,t):!e&&!t}function dz(e,t){return e&&t?function(e,t){Ba(2,arguments);var n=Ha(e),r=Ha(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}(e,t):!e&&!t}function fz(e,t){return e&&t?function(e,t){Ba(2,arguments);var n=vl(e),r=vl(t);return n.getTime()===r.getTime()}(e,t):!e&&!t}function pz(e,t){return e&&t?function(e,t){Ba(2,arguments);var n=el(e),r=el(t);return n.getTime()===r.getTime()}(e,t):!e&&!t}function hz(e,t){return e&&t?function(e,t){Ba(2,arguments);var n=Ha(e),r=Ha(t);return n.getTime()===r.getTime()}(e,t):!e&&!t}function mz(e,t,n){var r,o=el(t),i=yl(n);try{r=pc(e,{start:o,end:i})}catch(e){r=!1}return r}function gz(){return("undefined"!=typeof window?window:globalThis).__localeId__}function yz(e){if("string"==typeof e){var t="undefined"!=typeof window?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function bz(e,t){return tz(Cc(JL(),e),"LLLL",t)}function vz(e,t){return tz(Cc(JL(),e),"LLL",t)}function xz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.excludeDateIntervals,a=t.includeDates,l=t.includeDateIntervals,s=t.filterDate;return Ez(e,{minDate:n,maxDate:r})||o&&o.some((function(t){return pz(e,t)}))||i&&i.some((function(t){var n=t.start,r=t.end;return pc(e,{start:n,end:r})}))||a&&!a.some((function(t){return pz(e,t)}))||l&&!l.some((function(t){var n=t.start,r=t.end;return pc(e,{start:n,end:r})}))||s&&!s(JL(e))||!1}function wz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some((function(t){var n=t.start,r=t.end;return pc(e,{start:n,end:r})})):n&&n.some((function(t){return pz(e,t)}))||!1}function kz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return Ez(e,{minDate:xl(n),maxDate:bl(r)})||o&&o.some((function(t){return dz(e,t)}))||i&&!i.some((function(t){return dz(e,t)}))||a&&!a(JL(e))||!1}function Cz(e,t,n,r){var o=$s(e),i=Cs(e),a=$s(t),l=Cs(t),s=$s(r);return o===a&&o===s?i<=n&&n<=l:o<a?s===o&&i<=n||s===a&&l>=n||s<a&&s>o:void 0}function _z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return Ez(e,{minDate:n,maxDate:r})||o&&o.some((function(t){return fz(e,t)}))||i&&!i.some((function(t){return fz(e,t)}))||a&&!a(JL(e))||!1}function Sz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate,l=new Date(e,0,1);return Ez(l,{minDate:kl(n),maxDate:wl(r)})||o&&o.some((function(e){return cz(l,e)}))||i&&!i.some((function(e){return cz(l,e)}))||a&&!a(JL(l))||!1}function $z(e,t,n,r){var o=$s(e),i=ml(e),a=$s(t),l=ml(t),s=$s(r);return o===a&&o===s?i<=n&&n<=l:o<a?s===o&&i<=n||s===a&&l>=n||s<a&&s>o:void 0}function Ez(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&nl(e,n)<0||r&&nl(e,r)>0}function Tz(e,t){return t.some((function(t){return xs(t)===xs(e)&&ks(t)===ks(e)}))}function Dz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,o=t.filterTime;return n&&Tz(e,n)||r&&!Tz(e,r)||o&&!o(e)||!1}function Mz(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var o,i=JL(),a=_c(Sc(i,ks(e)),xs(e)),l=_c(Sc(i,ks(n)),xs(n)),s=_c(Sc(i,ks(r)),xs(r));try{o=!pc(a,{start:l,end:s})}catch(e){o=!1}return o}function Oz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=Tc(e,1);return n&&hl(n,o)>0||r&&r.every((function(e){return hl(e,o)>0}))||!1}function Rz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=Wa(e,1);return n&&hl(o,n)>0||r&&r.every((function(e){return hl(o,e)>0}))||!1}function Pz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=Dc(e,1);return n&&gl(n,o)>0||r&&r.every((function(e){return gl(e,o)>0}))||!1}function Nz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=ll(e,1);return n&&gl(o,n)>0||r&&r.every((function(e){return gl(o,e)>0}))||!1}function Az(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return nl(e,t)>=0}));return ul(r)}return n?ul(n):t}function Iz(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return nl(e,t)<=0}));return sl(r)}return n?sl(n):t}function Fz(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,o=e.length;r<o;r++){var i=e[r];if(fl(i)){var a=tz(i,"MM.dd.yyyy"),l=n.get(a)||[];l.includes(t)||(l.push(t),n.set(a,l))}else if("object"===AL(i)){var s=Object.keys(i),u=s[0],c=i[s[0]];if("string"==typeof u&&c.constructor===Array)for(var d=0,f=c.length;d<f;d++){var p=tz(c[d],"MM.dd.yyyy"),h=n.get(p)||[];h.includes(u)||(h.push(u),n.set(p,h))}}}return n}function jz(e,t,n,r,o){for(var i=o.length,a=[],l=0;l<i;l++){var s=ol(qa(e,xs(o[l])),ks(o[l])),u=ol(e,(n+1)*r);Es(s,t)&&Ts(s,u)&&a.push(o[l])}return a}function Lz(e){return e<10?"0".concat(e):"".concat(e)}function zz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,n=Math.ceil($s(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function Bz(e,t,n,r){for(var o=[],i=0;i<2*t+1;i++){var a=e+t-i,l=!0;n&&(l=$s(n)<=a),r&&l&&(l=$s(r)>=a),l&&o.push(a)}return o}var Hz=RL(function(e){BL(r,_.default.Component);var n=VL(r);function r(e){var o;IL(this,r),LL(WL(o=n.call(this,e)),"renderOptions",(function(){var e=o.props.year,t=o.state.yearsList.map((function(t){return _.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:o.onChange.bind(WL(o),t),"aria-selected":e===t?"true":void 0},e===t?_.default.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)})),n=o.props.minDate?$s(o.props.minDate):null,r=o.props.maxDate?$s(o.props.maxDate):null;return r&&o.state.yearsList.find((function(e){return e===r}))||t.unshift(_.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:o.incrementYears},_.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&o.state.yearsList.find((function(e){return e===n}))||t.push(_.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:o.decrementYears},_.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),LL(WL(o),"onChange",(function(e){o.props.onChange(e)})),LL(WL(o),"handleClickOutside",(function(){o.props.onCancel()})),LL(WL(o),"shiftYears",(function(e){var t=o.state.yearsList.map((function(t){return t+e}));o.setState({yearsList:t})})),LL(WL(o),"incrementYears",(function(){return o.shiftYears(1)})),LL(WL(o),"decrementYears",(function(){return o.shiftYears(-1)}));var i=e.yearDropdownItemNumber,a=e.scrollableYearDropdown,l=i||(a?10:5);return o.state={yearsList:Bz(o.props.year,l,o.props.minDate,o.props.maxDate)},o.dropdownRef=t.createRef(),o}return jL(r,[{key:"componentDidMount",value: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.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}}},{key:"render",value:function(){var e=wL({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return _.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),r}()),Uz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),LL(WL(e),"renderSelectOptions",(function(){for(var t=e.props.minDate?$s(e.props.minDate):1900,n=e.props.maxDate?$s(e.props.maxDate):2100,r=[],o=t;o<=n;o++)r.push(_.default.createElement("option",{key:o,value:o},o));return r})),LL(WL(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),LL(WL(e),"renderSelectMode",(function(){return _.default.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),LL(WL(e),"renderReadView",(function(t){return _.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(t){return e.toggleDropdown(t)}},_.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),_.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))})),LL(WL(e),"renderDropdown",(function(){return _.default.createElement(Hz,{key:"dropdown",year:e.props.year,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})})),LL(WL(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),LL(WL(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)})),LL(WL(e),"toggleDropdown",(function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},(function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)}))})),LL(WL(e),"handleYearChange",(function(t,n){e.onSelect(t,n),e.setOpen()})),LL(WL(e),"onSelect",(function(t,n){e.props.onSelect&&e.props.onSelect(t,n)})),LL(WL(e),"setOpen",(function(){e.props.setOpen&&e.props.setOpen(!0)})),e}return jL(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return _.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(),Wz=RL(function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"isSelectedMonth",(function(t){return e.props.month===t})),LL(WL(e),"renderOptions",(function(){return e.props.monthNames.map((function(t,n){return _.default.createElement("div",{className:e.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(WL(e),n),"aria-selected":e.isSelectedMonth(n)?"true":void 0},e.isSelectedMonth(n)?_.default.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",t)}))})),LL(WL(e),"onChange",(function(t){return e.props.onChange(t)})),LL(WL(e),"handleClickOutside",(function(){return e.props.onCancel()})),e}return jL(n,[{key:"render",value:function(){return _.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}()),Vz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),LL(WL(e),"renderSelectOptions",(function(e){return e.map((function(e,t){return _.default.createElement("option",{key:t,value:t},e)}))})),LL(WL(e),"renderSelectMode",(function(t){return _.default.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(t){return e.onChange(t.target.value)}},e.renderSelectOptions(t))})),LL(WL(e),"renderReadView",(function(t,n){return _.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},_.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),_.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[e.props.month]))})),LL(WL(e),"renderDropdown",(function(t){return _.default.createElement(Wz,{key:"dropdown",month:e.props.month,monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown})})),LL(WL(e),"renderScrollMode",(function(t){var n=e.state.dropdownVisible,r=[e.renderReadView(!n,t)];return n&&r.unshift(e.renderDropdown(t)),r})),LL(WL(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)})),LL(WL(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return jL(n,[{key:"render",value:function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return vz(e,t.props.locale)}:function(e){return bz(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return _.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}();function Yz(e,t){for(var n=[],r=az(e),o=az(t);!Es(r,o);)n.push(JL(r)),r=Wa(r,1);return n}var qz=RL(function(e){BL(n,_.default.Component);var t=VL(n);function n(e){var r;return IL(this,n),LL(WL(r=t.call(this,e)),"renderOptions",(function(){return r.state.monthYearsList.map((function(e){var t=Ss(e),n=cz(r.props.date,e)&&dz(r.props.date,e);return _.default.createElement("div",{className:n?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:r.onChange.bind(WL(r),t),"aria-selected":n?"true":void 0},n?_.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",tz(e,r.props.dateFormat,r.props.locale))}))})),LL(WL(r),"onChange",(function(e){return r.props.onChange(e)})),LL(WL(r),"handleClickOutside",(function(){r.props.onCancel()})),r.state={monthYearsList:Yz(r.props.minDate,r.props.maxDate)},r}return jL(n,[{key:"render",value:function(){var e=wL({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return _.default.createElement("div",{className:e},this.renderOptions())}}]),n}()),Gz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),LL(WL(e),"renderSelectOptions",(function(){for(var t=az(e.props.minDate),n=az(e.props.maxDate),r=[];!Es(t,n);){var o=Ss(t);r.push(_.default.createElement("option",{key:o,value:o},tz(t,e.props.dateFormat,e.props.locale))),t=Wa(t,1)}return r})),LL(WL(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),LL(WL(e),"renderSelectMode",(function(){return _.default.createElement("select",{value:Ss(az(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),LL(WL(e),"renderReadView",(function(t){var n=tz(e.props.date,e.props.dateFormat,e.props.locale);return _.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(t){return e.toggleDropdown(t)}},_.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),_.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))})),LL(WL(e),"renderDropdown",(function(){return _.default.createElement(qz,{key:"dropdown",date:e.props.date,dateFormat:e.props.dateFormat,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,locale:e.props.locale})})),LL(WL(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),LL(WL(e),"onChange",(function(t){e.toggleDropdown();var n=JL(parseInt(t));cz(e.props.date,n)&&dz(e.props.date,n)||e.props.onChange(n)})),LL(WL(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return jL(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return _.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(),Kz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"dayEl",_.default.createRef()),LL(WL(e),"handleClick",(function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)})),LL(WL(e),"handleMouseEnter",(function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)})),LL(WL(e),"handleOnKeyDown",(function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)})),LL(WL(e),"isSameDay",(function(t){return pz(e.props.day,t)})),LL(WL(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!e.isSameDay(e.props.selected)&&e.isSameDay(e.props.preSelection)})),LL(WL(e),"isDisabled",(function(){return xz(e.props.day,e.props)})),LL(WL(e),"isExcluded",(function(){return wz(e.props.day,e.props)})),LL(WL(e),"getHighLightedClass",(function(t){var n=e.props,r=n.day,o=n.highlightDates;if(!o)return!1;var i=tz(r,"MM.dd.yyyy");return o.get(i)})),LL(WL(e),"isInRange",(function(){var t=e.props,n=t.day,r=t.startDate,o=t.endDate;return!(!r||!o)&&mz(n,r,o)})),LL(WL(e),"isInSelectingRange",(function(){var t,n=e.props,r=n.day,o=n.selectsStart,i=n.selectsEnd,a=n.selectsRange,l=n.selectsDisabledDaysInRange,s=n.startDate,u=n.endDate,c=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return!(!(o||i||a)||!c||!l&&e.isDisabled())&&(o&&u&&(Ts(c,u)||hz(c,u))?mz(r,c,u):(i&&s&&(Es(c,s)||hz(c,s))||!(!a||!s||u||!Es(c,s)&&!hz(c,s)))&&mz(r,s,c))})),LL(WL(e),"isSelectingRangeStart",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,o=n.startDate,i=n.selectsStart,a=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return pz(r,i?a:o)})),LL(WL(e),"isSelectingRangeEnd",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,o=n.endDate,i=n.selectsEnd,a=n.selectsRange,l=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return pz(r,i||a?l:o)})),LL(WL(e),"isRangeStart",(function(){var t=e.props,n=t.day,r=t.startDate,o=t.endDate;return!(!r||!o)&&pz(r,n)})),LL(WL(e),"isRangeEnd",(function(){var t=e.props,n=t.day,r=t.startDate,o=t.endDate;return!(!r||!o)&&pz(o,n)})),LL(WL(e),"isWeekend",(function(){var t=function(e){return Ba(1,arguments),Ha(e).getDay()}(e.props.day);return 0===t||6===t})),LL(WL(e),"isAfterMonth",(function(){return void 0!==e.props.month&&(e.props.month+1)%12===Cs(e.props.day)})),LL(WL(e),"isBeforeMonth",(function(){return void 0!==e.props.month&&(Cs(e.props.day)+1)%12===e.props.month})),LL(WL(e),"isCurrentDay",(function(){return e.isSameDay(JL())})),LL(WL(e),"isSelected",(function(){return e.isSameDay(e.props.selected)})),LL(WL(e),"getClassNames",(function(t){var n=e.props.dayClassName?e.props.dayClassName(t):void 0;return wL("react-datepicker__day",n,"react-datepicker__day--"+function(e,t){return tz(e,"ddd",t)}(e.props.day),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"))})),LL(WL(e),"getAriaLabel",(function(){var t=e.props,n=t.day,r=t.ariaLabelPrefixWhenEnabled,o=void 0===r?"Choose":r,i=t.ariaLabelPrefixWhenDisabled,a=void 0===i?"Not available":i,l=e.isDisabled()||e.isExcluded()?a:o;return"".concat(l," ").concat(tz(n,"PPPP",e.props.locale))})),LL(WL(e),"getTabIndex",(function(t,n){var r=t||e.props.selected,o=n||e.props.preSelection;return e.isKeyboardSelected()||e.isSameDay(r)&&pz(o,r)?0:-1})),LL(WL(e),"handleFocusDay",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(n=!0),e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()&&(n=!1),e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()&&(n=!1)),n&&e.dayEl.current.focus({preventScroll:!0})})),LL(WL(e),"renderDayContents",(function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(vs(e.props.day),e.props.day):vs(e.props.day)})),LL(WL(e),"render",(function(){return _.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option","aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()},e.renderDayContents())})),e}return jL(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(),Xz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"handleClick",(function(t){e.props.onClick&&e.props.onClick(t)})),e}return jL(n,[{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,r=void 0===n?"week ":n,o={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick};return _.default.createElement("div",{className:wL(o),"aria-label":"".concat(r," ").concat(this.props.weekNumber),onClick:this.handleClick},t)}}]),n}(),Qz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n)})),LL(WL(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),LL(WL(e),"handleWeekClick",(function(t,n,r){"function"==typeof e.props.onWeekSelect&&e.props.onWeekSelect(t,n,r),e.props.shouldCloseOnSelect&&e.props.setOpen(!1)})),LL(WL(e),"formatWeekNumber",(function(t){return e.props.formatWeekNumber?e.props.formatWeekNumber(t):oz(t)})),LL(WL(e),"renderDays",(function(){var t=iz(e.props.day,e.props.locale,e.props.calendarStartDay),n=[],r=e.formatWeekNumber(t);if(e.props.showWeekNumber){var o=e.props.onWeekSelect?e.handleWeekClick.bind(WL(e),t,r):void 0;n.push(_.default.createElement(Xz,{key:"W",weekNumber:r,onClick:o,ariaLabelPrefix:e.props.ariaLabelPrefix}))}return n.concat([0,1,2,3,4,5,6].map((function(n){var r=Ua(t,n);return _.default.createElement(Kz,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:r.valueOf(),day:r,month:e.props.month,onClick:e.handleDayClick.bind(WL(e),r),onMouseEnter:e.handleDayMouseEnter.bind(WL(e),r),minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,renderDayContents:e.props.renderDayContents,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart,locale:e.props.locale})})))})),e}return jL(n,[{key:"render",value:function(){return _.default.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),Zz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"MONTH_REFS",YL(Array(12)).map((function(){return _.default.createRef()}))),LL(WL(e),"QUARTER_REFS",YL(Array(4)).map((function(){return _.default.createRef()}))),LL(WL(e),"isDisabled",(function(t){return xz(t,e.props)})),LL(WL(e),"isExcluded",(function(t){return wz(t,e.props)})),LL(WL(e),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n,e.props.orderInDisplay)})),LL(WL(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),LL(WL(e),"handleMouseLeave",(function(){e.props.onMouseLeave&&e.props.onMouseLeave()})),LL(WL(e),"isRangeStartMonth",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&dz(Cc(r,t),o)})),LL(WL(e),"isRangeStartQuarter",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&fz($c(r,t),o)})),LL(WL(e),"isRangeEndMonth",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&dz(Cc(r,t),i)})),LL(WL(e),"isRangeEndQuarter",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&fz($c(r,t),i)})),LL(WL(e),"isInSelectingRangeMonth",(function(t){var n,r=e.props,o=r.day,i=r.selectsStart,a=r.selectsEnd,l=r.selectsRange,s=r.startDate,u=r.endDate,c=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(i||a||l)||!c)&&(i&&u?Cz(c,u,t,o):(a&&s||!(!l||!s||u))&&Cz(s,c,t,o))})),LL(WL(e),"isInSelectingRangeQuarter",(function(t){var n,r=e.props,o=r.day,i=r.selectsStart,a=r.selectsEnd,l=r.selectsRange,s=r.startDate,u=r.endDate,c=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(i||a||l)||!c)&&(i&&u?$z(c,u,t,o):(a&&s||!(!l||!s||u))&&$z(s,c,t,o))})),LL(WL(e),"isWeekInMonth",(function(t){var n=e.props.day,r=Ua(t,6);return dz(t,n)||dz(r,n)})),LL(WL(e),"isCurrentMonth",(function(e,t){return $s(e)===$s(JL())&&t===Cs(JL())})),LL(WL(e),"isCurrentQuarter",(function(e,t){return $s(e)===$s(JL())&&t===ml(JL())})),LL(WL(e),"isSelectedMonth",(function(e,t,n){return Cs(e)===t&&$s(e)===$s(n)})),LL(WL(e),"isSelectedQuarter",(function(e,t,n){return ml(e)===t&&$s(e)===$s(n)})),LL(WL(e),"renderWeeks",(function(){for(var t=[],n=e.props.fixedHeight,r=0,o=!1,i=iz(az(e.props.day),e.props.locale,e.props.calendarStartDay);t.push(_.default.createElement(Qz,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,key:r,day:i,month:Cs(e.props.day),onDayClick:e.handleDayClick,onDayMouseEnter:e.handleDayMouseEnter,onWeekSelect:e.props.onWeekSelect,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,showWeekNumber:e.props.showWeekNumbers,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderDayContents:e.props.renderDayContents,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,calendarStartDay:e.props.calendarStartDay,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart})),!o;){r++,i=al(i,1);var a=n&&r>=6,l=!n&&!e.isWeekInMonth(i);if(a||l){if(!e.props.peekNextMonth)break;o=!0}}return t})),LL(WL(e),"onMonthClick",(function(t,n){e.handleDayClick(az(Cc(e.props.day,n)),t)})),LL(WL(e),"onMonthMouseEnter",(function(t){e.handleDayMouseEnter(az(Cc(e.props.day,t)))})),LL(WL(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),LL(WL(e),"onMonthKeyDown",(function(t,n){t.preventDefault();var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onMonthClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,Wa(e.props.preSelection,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,Tc(e.props.preSelection,1));break;case"ArrowUp":e.handleMonthNavigation(n>=0&&n<=2?n+9:n-3,Tc(e.props.preSelection,3));break;case"ArrowDown":e.handleMonthNavigation(n>=9&&n<=11?n-9:n+3,Wa(e.props.preSelection,3))}})),LL(WL(e),"onQuarterClick",(function(t,n){e.handleDayClick(sz($c(e.props.day,n)),t)})),LL(WL(e),"onQuarterMouseEnter",(function(t){e.handleDayMouseEnter(sz($c(e.props.day,t)))})),LL(WL(e),"handleQuarterNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.QUARTER_REFS[t-1].current&&e.QUARTER_REFS[t-1].current.focus())})),LL(WL(e),"onQuarterKeyDown",(function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onQuarterClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(4===n?1:n+1,il(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(1===n?4:n-1,function(e,t){return Ba(2,arguments),il(e,-za(t))}(e.props.preSelection,1))}})),LL(WL(e),"getMonthClassNames",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate,a=n.selected,l=n.minDate,s=n.maxDate,u=n.preSelection,c=n.monthClassName,d=n.excludeDates,f=n.includeDates,p=c?c(Cc(r,t)):void 0,h=Cc(r,t);return wL("react-datepicker__month-text","react-datepicker__month-".concat(t),p,{"react-datepicker__month-text--disabled":(l||s||d||f)&&kz(h,e.props),"react-datepicker__month-text--selected":e.isSelectedMonth(r,t,a),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&Cs(u)===t,"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":Cz(o,i,t,r),"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--today":e.isCurrentMonth(r,t)})})),LL(WL(e),"getTabIndex",(function(t){var n=Cs(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),LL(WL(e),"getQuarterTabIndex",(function(t){var n=ml(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),LL(WL(e),"getAriaLabel",(function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,o=void 0===r?"Choose":r,i=n.disabledDayAriaLabelPrefix,a=void 0===i?"Not available":i,l=Cc(n.day,t),s=e.isDisabled(l)||e.isExcluded(l)?a:o;return"".concat(s," ").concat(tz(l,"MMMM yyyy"))})),LL(WL(e),"getQuarterClassNames",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate,a=n.selected,l=n.minDate,s=n.maxDate,u=n.preSelection;return wL("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":(l||s)&&_z($c(r,t),e.props),"react-datepicker__quarter-text--selected":e.isSelectedQuarter(r,t,a),"react-datepicker__quarter-text--keyboard-selected":ml(u)===t,"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":$z(o,i,t,r),"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t)})})),LL(WL(e),"renderMonths",(function(){var t=e.props,n=t.showFullMonthYearPicker,r=t.showTwoColumnMonthYearPicker,o=t.showFourColumnMonthYearPicker,i=t.locale,a=t.day,l=t.selected;return(o?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:r?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map((function(t,r){return _.default.createElement("div",{className:"react-datepicker__month-wrapper",key:r},t.map((function(t,r){return _.default.createElement("div",{ref:e.MONTH_REFS[t],key:r,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},onMouseEnter:function(){return e.onMonthMouseEnter(t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(a,t)?"date":void 0,"aria-selected":e.isSelectedMonth(a,t,l)},n?bz(t,i):vz(t,i))})))}))})),LL(WL(e),"renderQuarters",(function(){var t=e.props,n=t.day,r=t.selected;return _.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,o){return _.default.createElement("div",{key:o,ref:e.QUARTER_REFS[o],role:"option",onClick:function(n){e.onQuarterClick(n,t)},onKeyDown:function(n){e.onQuarterKeyDown(n,t)},onMouseEnter:function(){return e.onQuarterMouseEnter(t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r),tabIndex:e.getQuarterTabIndex(t),"aria-current":e.isCurrentQuarter(n,t)?"date":void 0},function(e,t){return tz($c(JL(),e),"QQQ",t)}(t,e.props.locale))})))})),LL(WL(e),"getClassNames",(function(){var t=e.props;t.day;var n=t.selectingDate,r=t.selectsStart,o=t.selectsEnd,i=t.showMonthYearPicker,a=t.showQuarterYearPicker;return wL("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||o)},{"react-datepicker__monthPicker":i},{"react-datepicker__quarterPicker":a})})),e}return jL(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,o=e.ariaLabelPrefix,i=void 0===o?"month ":o;return _.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(i," ").concat(tz(r,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(),Jz=function(e){BL(n,_.default.Component);var t=VL(n);function n(){var e;IL(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return LL(WL(e=t.call.apply(t,[this].concat(o))),"state",{height:null}),LL(WL(e),"handleClick",(function(t){(e.props.minTime||e.props.maxTime)&&Mz(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&Dz(t,e.props)||e.props.onChange(t)})),LL(WL(e),"isSelectedTime",(function(t,n,r){return e.props.selected&&n===xs(t)&&r===ks(t)})),LL(WL(e),"liClasses",(function(t,n,r){var o=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t,n,r):void 0];return e.isSelectedTime(t,n,r)&&o.push("react-datepicker__time-list-item--selected"),((e.props.minTime||e.props.maxTime)&&Mz(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&Dz(t,e.props))&&o.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(60*xs(t)+ks(t))%e.props.intervals!=0&&o.push("react-datepicker__time-list-item--injected"),o.join(" ")})),LL(WL(e),"handleOnKeyDown",(function(t,n){" "===t.key&&(t.preventDefault(),t.key="Enter"),"Enter"===t.key&&e.handleClick(n),e.props.handleOnKeyDown(t)})),LL(WL(e),"renderTimes",(function(){for(var t=[],n=e.props.format?e.props.format:"p",r=e.props.intervals,o=function(e){return el(e)}(JL(e.props.selected)),i=1440/r,a=e.props.injectTimes&&e.props.injectTimes.sort((function(e,t){return e-t})),l=e.props.selected||e.props.openToDate||JL(),s=xs(l),u=ks(l),c=_c(Sc(o,u),s),d=0;d<i;d++){var f=ol(o,d*r);if(t.push(f),a){var p=jz(o,f,d,r,a);t=t.concat(p)}}return t.map((function(t,r){return _.default.createElement("li",{key:r,onClick:e.handleClick.bind(WL(e),t),className:e.liClasses(t,s,u),ref:function(n){(Ts(t,c)||hz(t,c))&&(e.centerLi=n)},onKeyDown:function(n){e.handleOnKeyDown(n,t)},tabIndex:"0","aria-selected":e.isSelectedTime(t,s,u)?"true":void 0},tz(t,n,e.props.locale))}))})),e}return jL(n,[{key:"componentDidMount",value:function(){this.list.scrollTop=this.centerLi&&n.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var e=this,t=this.state.height;return _.default.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},_.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(t){e.header=t}},_.default.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),_.default.createElement("div",{className:"react-datepicker__time"},_.default.createElement("div",{className:"react-datepicker__time-box"},_.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{},tabIndex:"0"},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}();LL(Jz,"calcCenterPosition",(function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)}));var eB=function(e){BL(n,_.default.Component);var t=VL(n);function n(e){var r;return IL(this,n),LL(WL(r=t.call(this,e)),"YEAR_REFS",YL(Array(r.props.yearItemNumber)).map((function(){return _.default.createRef()}))),LL(WL(r),"isDisabled",(function(e){return xz(e,r.props)})),LL(WL(r),"isExcluded",(function(e){return wz(e,r.props)})),LL(WL(r),"updateFocusOnPaginate",(function(e){var t=function(){this.YEAR_REFS[e].current.focus()}.bind(WL(r));window.requestAnimationFrame(t)})),LL(WL(r),"handleYearClick",(function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)})),LL(WL(r),"handleYearNavigation",(function(e,t){var n=r.props,o=n.date,i=n.yearItemNumber,a=zz(o,i).startPeriod;r.isDisabled(t)||r.isExcluded(t)||(r.props.setPreSelection(t),e-a==-1?r.updateFocusOnPaginate(i-1):e-a===i?r.updateFocusOnPaginate(0):r.YEAR_REFS[e-a].current.focus())})),LL(WL(r),"isSameDay",(function(e,t){return pz(e,t)})),LL(WL(r),"isCurrentYear",(function(e){return e===$s(JL())})),LL(WL(r),"isKeyboardSelected",(function(e){var t=lz(Ec(r.props.date,e));return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!pz(t,lz(r.props.selected))&&pz(t,lz(r.props.preSelection))})),LL(WL(r),"onYearClick",(function(e,t){var n=r.props.date;r.handleYearClick(lz(Ec(n,t)),e)})),LL(WL(r),"onYearKeyDown",(function(e,t){var n=e.key;if(!r.props.disabledKeyboardNavigation)switch(n){case"Enter":r.onYearClick(e,t),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleYearNavigation(t+1,ll(r.props.preSelection,1));break;case"ArrowLeft":r.handleYearNavigation(t-1,Dc(r.props.preSelection,1))}})),LL(WL(r),"getYearClassNames",(function(e){var t=r.props,n=t.minDate,o=t.maxDate,i=t.selected,a=t.excludeDates,l=t.includeDates,s=t.filterDate;return wL("react-datepicker__year-text",{"react-datepicker__year-text--selected":e===$s(i),"react-datepicker__year-text--disabled":(n||o||a||l||s)&&Sz(e,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(e),"react-datepicker__year-text--today":r.isCurrentYear(e)})})),LL(WL(r),"getYearTabIndex",(function(e){return r.props.disabledKeyboardNavigation?"-1":e===$s(r.props.preSelection)?"0":"-1"})),r}return jL(n,[{key:"render",value:function(){for(var e=this,t=[],n=this.props,r=zz(n.date,n.yearItemNumber),o=r.startPeriod,i=r.endPeriod,a=function(n){t.push(_.default.createElement("div",{ref:e.YEAR_REFS[n-o],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){e.onYearKeyDown(t,n)},tabIndex:e.getYearTabIndex(n),className:e.getYearClassNames(n),key:n,"aria-current":e.isCurrentYear(n)?"date":void 0},n))},l=o;l<=i;l++)a(l);return _.default.createElement("div",{className:"react-datepicker__year"},_.default.createElement("div",{className:"react-datepicker__year-wrapper"},t))}}]),n}(),tB=function(e){BL(n,_.default.Component);var t=VL(n);function n(e){var r;return IL(this,n),LL(WL(r=t.call(this,e)),"onTimeChange",(function(e){r.setState({time:e});var t=new Date;t.setHours(e.split(":")[0]),t.setMinutes(e.split(":")[1]),r.props.onChange(t)})),LL(WL(r),"renderTimeInput",(function(){var e=r.state.time,t=r.props,n=t.date,o=t.timeString,i=t.customTimeInput;return i?_.default.cloneElement(i,{date:n,value:e,onChange:r.onTimeChange}):_.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||o)}})})),r.state={time:r.props.timeString},r}return jL(n,[{key:"render",value:function(){return _.default.createElement("div",{className:"react-datepicker__input-time-container"},_.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),_.default.createElement("div",{className:"react-datepicker-time__input-container"},_.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.timeString!==t.time?{time:e.timeString}:null}}]),n}();function nB(e){var t=e.className,n=e.children,r=e.showPopperArrow,o=e.arrowProps,i=void 0===o?{}:o;return _.default.createElement("div",{className:t},r&&_.default.createElement("div",zL({className:"react-datepicker__triangle"},i)),n)}var rB,oB,iB,aB,lB,sB,uB,cB,dB,fB,pB,hB,mB,gB,yB,bB,vB,xB,wB,kB=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],CB=function(e){BL(n,_.default.Component);var t=VL(n);function n(e){var r;return IL(this,n),LL(WL(r=t.call(this,e)),"handleClickOutside",(function(e){r.props.onClickOutside(e)})),LL(WL(r),"setClickOutsideRef",(function(){return r.containerRef.current})),LL(WL(r),"handleDropdownFocus",(function(e){(function(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return kB.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&r.props.onDropdownFocus()})),LL(WL(r),"getDateInView",(function(){var e=r.props,t=e.preSelection,n=e.selected,o=e.openToDate,i=Az(r.props),a=Iz(r.props),l=JL();return o||n||t||(i&&Ts(l,i)?i:a&&Es(l,a)?a:l)})),LL(WL(r),"increaseMonth",(function(){r.setState((function(e){return{date:Wa(e.date,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),LL(WL(r),"decreaseMonth",(function(){r.setState((function(e){return{date:Tc(e.date,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),LL(WL(r),"handleDayClick",(function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)})),LL(WL(r),"handleDayMouseEnter",(function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)})),LL(WL(r),"handleMonthMouseLeave",(function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()})),LL(WL(r),"handleYearChange",(function(e){r.props.onYearChange&&(r.props.onYearChange(e),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),LL(WL(r),"handleMonthChange",(function(e){r.props.onMonthChange&&(r.props.onMonthChange(e),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),LL(WL(r),"handleMonthYearChange",(function(e){r.handleYearChange(e),r.handleMonthChange(e)})),LL(WL(r),"changeYear",(function(e){r.setState((function(t){return{date:Ec(t.date,e)}}),(function(){return r.handleYearChange(r.state.date)}))})),LL(WL(r),"changeMonth",(function(e){r.setState((function(t){return{date:Cc(t.date,e)}}),(function(){return r.handleMonthChange(r.state.date)}))})),LL(WL(r),"changeMonthYear",(function(e){r.setState((function(t){return{date:Ec(Cc(t.date,Cs(e)),$s(e))}}),(function(){return r.handleMonthYearChange(r.state.date)}))})),LL(WL(r),"header",(function(){var e=iz(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,r.props.locale,r.props.calendarStartDay),t=[];return r.props.showWeekNumbers&&t.push(_.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map((function(t){var n=Ua(e,t),o=r.formatWeekday(n,r.props.locale),i=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return _.default.createElement("div",{key:t,className:wL("react-datepicker__day-name",i)},o)})))})),LL(WL(r),"formatWeekday",(function(e,t){return r.props.formatWeekDay?function(e,t,n){return t(tz(e,"EEEE",n))}(e,r.props.formatWeekDay,t):r.props.useWeekdaysShort?function(e,t){return tz(e,"EEE",t)}(e,t):function(e,t){return tz(e,"EEEEEE",t)}(e,t)})),LL(WL(r),"decreaseYear",(function(){r.setState((function(e){return{date:Dc(e.date,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),LL(WL(r),"renderPreviousButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=Pz(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,o=void 0===r?12:r,i=zz(lz(Dc(e,o)),o).endPeriod,a=n&&$s(n);return a&&a>i||!1}(r.state.date,r.props);break;default:e=Oz(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var o=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,i=r.props,a=i.previousMonthButtonLabel,l=i.previousYearButtonLabel,s=r.props,u=s.previousMonthAriaLabel,c=void 0===u?"string"==typeof a?a:"Previous Month":u,d=s.previousYearAriaLabel,f=void 0===d?"string"==typeof l?l:"Previous Year":d;return _.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":o?f:c},_.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},o?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel))}}})),LL(WL(r),"increaseYear",(function(){r.setState((function(e){return{date:ll(e.date,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),LL(WL(r),"renderNextButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=Nz(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,o=void 0===r?12:r,i=zz(ll(e,o),o).startPeriod,a=n&&$s(n);return a&&a<i||!1}(r.state.date,r.props);break;default:e=Rz(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.increaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null);var o=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,i=r.props,a=i.nextMonthButtonLabel,l=i.nextYearButtonLabel,s=r.props,u=s.nextMonthAriaLabel,c=void 0===u?"string"==typeof a?a:"Next Month":u,d=s.nextYearAriaLabel,f=void 0===d?"string"==typeof l?l:"Next Year":d;return _.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":o?f:c},_.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},o?r.props.nextYearButtonLabel:r.props.nextMonthButtonLabel))}}})),LL(WL(r),"renderCurrentMonth",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),_.default.createElement("div",{className:t.join(" ")},tz(e,r.props.dateFormat,r.props.locale))})),LL(WL(r),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return _.default.createElement(Uz,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:$s(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})})),LL(WL(r),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return _.default.createElement(Vz,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:Cs(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})})),LL(WL(r),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return _.default.createElement(Gz,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})})),LL(WL(r),"handleTodayButtonClick",(function(e){r.props.onSelect(uz(),e),r.props.setPreSelection&&r.props.setPreSelection(uz())})),LL(WL(r),"renderTodayButton",(function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return _.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.handleTodayButtonClick(e)}},r.props.todayButton)})),LL(WL(r),"renderDefaultHeader",(function(e){var t=e.monthDate,n=e.i;return _.default.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),_.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),_.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),LL(WL(r),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var o=Oz(r.state.date,r.props),i=Rz(r.state.date,r.props),a=Pz(r.state.date,r.props),l=Nz(r.state.date,r.props),s=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return _.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(NL(NL({},r.state),{},{customHeaderCount:n,monthDate:t,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:o,nextMonthButtonDisabled:i,prevYearButtonDisabled:a,nextYearButtonDisabled:l})),s&&_.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),LL(WL(r),"renderYearHeader",(function(){var e=r.state.date,t=r.props,n=t.showYearPicker,o=zz(e,t.yearItemNumber),i=o.startPeriod,a=o.endPeriod;return _.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(i," - ").concat(a):$s(e))})),LL(WL(r),"renderHeader",(function(e){switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(e);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(e);default:return r.renderDefaultHeader(e)}})),LL(WL(r),"renderMonths",(function(){if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var e=[],t=r.props.showPreviousMonths?r.props.monthsShown-1:0,n=Tc(r.state.date,t),o=0;o<r.props.monthsShown;++o){var i=Wa(n,o-r.props.monthSelectedIn),a="month-".concat(o),l=o<r.props.monthsShown-1,s=o>0;e.push(_.default.createElement("div",{key:a,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.renderHeader({monthDate:i,i:o}),_.default.createElement(Zz,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,ariaLabelPrefix:r.props.monthAriaLabelPrefix,onChange:r.changeMonthYear,day:i,dayClassName:r.props.dayClassName,calendarStartDay:r.props.calendarStartDay,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:o,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,highlightDates:r.props.highlightDates,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:l,monthShowsDuplicateDaysStart:s})))}return e}})),LL(WL(r),"renderYears",(function(){if(!r.props.showTimeSelectOnly)return r.props.showYearPicker?_.default.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader(),_.default.createElement(eB,zL({onDayClick:r.handleDayClick,date:r.state.date},r.props))):void 0})),LL(WL(r),"renderTimeSection",(function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return _.default.createElement(Jz,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,handleOnKeyDown:r.props.handleOnKeyDown,showTimeSelectOnly:r.props.showTimeSelectOnly})})),LL(WL(r),"renderInputTimeSection",(function(){var e=new Date(r.props.selected),t=ez(e)&&Boolean(r.props.selected)?"".concat(Lz(e.getHours()),":").concat(Lz(e.getMinutes())):"";if(r.props.showTimeInput)return _.default.createElement(tB,{date:e,timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})})),LL(WL(r),"renderAriaLiveRegion",(function(){var e,t=zz(r.state.date,r.props.yearItemNumber),n=t.startPeriod,o=t.endPeriod;return e=r.props.showYearPicker?"".concat(n," - ").concat(o):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?$s(r.state.date):"".concat(bz(Cs(r.state.date),r.props.locale)," ").concat($s(r.state.date)),_.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&e)})),LL(WL(r),"renderChildren",(function(){if(r.props.children)return _.default.createElement("div",{className:"react-datepicker__children-container"},r.props.children)})),r.containerRef=_.default.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},r}return jL(n,[{key:"componentDidMount",value:function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))}},{key:"componentDidUpdate",value:function(e){!this.props.preSelection||pz(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn?this.props.openToDate&&!pz(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate}):this.setState({date:this.props.preSelection})}},{key:"render",value:function(){var e=this.props.container||nB;return _.default.createElement("div",{ref:this.containerRef},_.default.createElement(e,{className:wL("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(),_B=function(e){BL(n,_.default.Component);var t=VL(n);function n(e){var r;return IL(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return jL(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return O.default.createPortal(this.props.children,this.el)}}]),n}(),SB=function(e){return!e.disabled&&-1!==e.tabIndex},$B=function(e){BL(n,_.default.Component);var t=VL(n);function n(e){var r;return IL(this,n),LL(WL(r=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(SB)})),LL(WL(r),"handleFocusStart",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[t.length-1].focus()})),LL(WL(r),"handleFocusEnd",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[0].focus()})),r.tabLoopRef=_.default.createRef(),r}return jL(n,[{key:"render",value:function(){return this.props.enableTabLoop?_.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},_.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,_.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),EB=function(e){BL(n,_.default.Component);var t=VL(n);function n(){return IL(this,n),t.apply(this,arguments)}return jL(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,o=t.hidePopper,a=t.popperComponent,l=t.popperModifiers,s=t.popperPlacement,u=t.popperProps,c=t.targetComponent,d=t.enableTabLoop,f=t.popperOnKeyDown,p=t.portalId,h=t.portalHost;if(!o){var m=wL("react-datepicker-popper",n);e=_.default.createElement(i.Popper,zL({modifiers:l,placement:s},u),(function(e){var t=e.ref,n=e.style,r=e.placement,o=e.arrowProps;return _.default.createElement($B,{enableTabLoop:d},_.default.createElement("div",{ref:t,style:n,className:m,"data-placement":r,onKeyDown:f},_.default.cloneElement(a,{arrowProps:o})))}))}this.props.popperContainer&&(e=_.default.createElement(this.props.popperContainer,{},e)),p&&!o&&(e=_.default.createElement(_B,{portalId:p,portalHost:h},e));var g=wL("react-datepicker-wrapper",r);return _.default.createElement(i.Manager,{className:"react-datepicker-manager"},_.default.createElement(i.Reference,null,(function(e){var t=e.ref;return _.default.createElement("div",{ref:t,className:g},c)})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),TB=RL(CB),DB=function(e){BL(n,_.default.Component);var t=VL(n);function n(e){var r;return IL(this,n),LL(WL(r=t.call(this,e)),"getPreSelection",(function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:JL()})),LL(WL(r),"calcInitialState",(function(){var e,t=r.getPreSelection(),n=Az(r.props),o=Iz(r.props),i=n&&Ts(t,el(n))?n:o&&Es(t,yl(o))?o:t;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:i,highlightDates:Fz(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}})),LL(WL(r),"clearPreventFocusTimeout",(function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)})),LL(WL(r),"setFocus",(function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})})),LL(WL(r),"setBlur",(function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()})),LL(WL(r),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:OB},(function(){e||r.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&r.setBlur(),r.setState({inputValue:null})}))}))})),LL(WL(r),"inputOk",(function(){return fl(r.state.preSelection)})),LL(WL(r),"isCalendarOpen",(function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open})),LL(WL(r),"handleFocus",(function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})})),LL(WL(r),"cancelFocusInput",(function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null})),LL(WL(r),"deferFocusInput",(function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout((function(){return r.setFocus()}),1)})),LL(WL(r),"handleDropdownFocus",(function(){r.cancelFocusInput()})),LL(WL(r),"handleBlur",(function(e){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(e),r.setState({focused:!1})})),LL(WL(r),"handleCalendarClickOutside",(function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()})),LL(WL(r),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0];if(!r.props.onChangeRaw||(r.props.onChangeRaw.apply(WL(r),t),"function"==typeof o.isDefaultPrevented&&!o.isDefaultPrevented())){r.setState({inputValue:o.target.value,lastPreSelectChange:MB});var i=function(e,t,n,r,o){var i=null,a=yz(n)||yz(gz()),l=!0;return Array.isArray(t)?(t.forEach((function(t){var s=dc(e,t,new Date,{locale:a});r&&(l=ez(s,o)&&e===tz(s,t,n)),ez(s,o)&&l&&(i=s)})),i):(i=dc(e,t,new Date,{locale:a}),r?l=ez(i)&&e===tz(i,t,n):ez(i)||(t=t.match(ZL).map((function(e){var t=e[0];return"p"===t||"P"===t?a?(0,QL[t])(e,a.formatLong):t:e})).join(""),e.length>0&&(i=dc(e,t.slice(0,e.length),new Date)),ez(i)||(i=new Date(e))),ez(i)&&l?i:null)}(o.target.value,r.props.dateFormat,r.props.locale,r.props.strictParsing,r.props.minDate);r.props.showTimeSelectOnly&&r.props.selected&&!pz(i,r.props.selected)&&(i=function(e,t){if(Ba(2,arguments),"object"!==La(t)||null===t)throw new RangeError("values parameter must be an object");var n=Ha(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=Cc(n,t.month)),null!=t.date&&n.setDate(za(t.date)),null!=t.hours&&n.setHours(za(t.hours)),null!=t.minutes&&n.setMinutes(za(t.minutes)),null!=t.seconds&&n.setSeconds(za(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(za(t.milliseconds)),n)}(r.props.selected,null==i?{hours:xs(r.props.selected),minutes:ks(r.props.selected),seconds:_s(r.props.selected)}:{hours:xs(i),minutes:ks(i),seconds:_s(i)})),!i&&o.target.value||r.setSelected(i,o,!0)}})),LL(WL(r),"handleSelect",(function(e,t,n){if(r.setState({preventFocus:!0},(function(){return r.preventFocusTimeout=setTimeout((function(){return r.setState({preventFocus:!1})}),50),r.preventFocusTimeout})),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.setSelected(e,t,!1,n),r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(e);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var o=r.props,i=o.startDate,a=o.endDate;!i||a||Ts(e,i)||r.setOpen(!1)}})),LL(WL(r),"setSelected",(function(e,t,n,o){var i=e;if(r.props.showYearPicker){if(null!==i&&Sz($s(i),r.props))return}else if(r.props.showMonthYearPicker){if(null!==i&&kz(i,r.props))return}else if(null!==i&&xz(i,r.props))return;var a=r.props,l=a.onChange,s=a.selectsRange,u=a.startDate,c=a.endDate;if(!hz(r.props.selected,i)||r.props.allowSameDay||s)if(null!==i&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(i=rz(i,{hour:xs(r.props.selected),minute:ks(r.props.selected),second:_s(r.props.selected)})),r.props.inline||r.setState({preSelection:i}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:o})),s){var d=u&&c;u||c?u&&!c&&(Ts(i,u)?l([i,null],t):l([u,i],t)):l([i,null],t),d&&l([i,null],t)}else l(i,t);n||(r.props.onSelect(i,t),r.setState({inputValue:null}))})),LL(WL(r),"setPreSelection",(function(e){var t=void 0!==r.props.minDate,n=void 0!==r.props.maxDate,o=!0;if(e){var i=el(e);if(t&&n)o=mz(e,r.props.minDate,r.props.maxDate);else if(t){var a=el(r.props.minDate);o=Es(e,a)||hz(i,a)}else if(n){var l=yl(r.props.maxDate);o=Ts(e,l)||hz(i,l)}}o&&r.setState({preSelection:e})})),LL(WL(r),"handleTimeChange",(function(e){var t=rz(r.props.selected?r.props.selected:r.getPreSelection(),{hour:xs(e),minute:ks(e)});r.setState({preSelection:t}),r.props.onChange(t),r.props.shouldCloseOnSelect&&r.setOpen(!1),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})})),LL(WL(r),"onInputClick",(function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()})),LL(WL(r),"onInputKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){if(r.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=r.calendar.componentNode&&r.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(n&&n.focus({preventScroll:!0}))}var o=JL(r.state.preSelection);"Enter"===t?(e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===OB?(r.handleSelect(o,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(o)):r.setOpen(!1)):"Escape"===t&&(e.preventDefault(),r.setOpen(!1)),r.inputOk()||r.props.onInputError({code:1,msg:"Date input not valid."})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||r.onInputClick()})),LL(WL(r),"onPortalKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},(function(){r.setOpen(!1),setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))})))})),LL(WL(r),"onDayKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key,n=JL(r.state.preSelection);if("Enter"===t)e.preventDefault(),r.handleSelect(n,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(n);else if("Escape"===t)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:"Date input not valid."});else if(!r.props.disabledKeyboardNavigation){var o;switch(t){case"ArrowLeft":o=function(e,t){return Ba(2,arguments),Ua(e,-za(t))}(n,1);break;case"ArrowRight":o=Ua(n,1);break;case"ArrowUp":o=function(e,t){return Ba(2,arguments),al(e,-za(t))}(n,1);break;case"ArrowDown":o=al(n,1);break;case"PageUp":o=Tc(n,1);break;case"PageDown":o=Wa(n,1);break;case"Home":o=Dc(n,1);break;case"End":o=ll(n,1)}if(!o)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:"Date input not valid."}));if(e.preventDefault(),r.setState({lastPreSelectChange:OB}),r.props.adjustDateOnChange&&r.setSelected(o),r.setPreSelection(o),r.props.inline){var i=Cs(n),a=Cs(o),l=$s(n),s=$s(o);i!==a||l!==s?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}})),LL(WL(r),"onPopperKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},(function(){r.setOpen(!1),setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))})))})),LL(WL(r),"onClearClick",(function(e){e&&e.preventDefault&&e.preventDefault(),r.props.selectsRange?r.props.onChange([null,null],e):r.props.onChange(null,e),r.setState({inputValue:null})})),LL(WL(r),"clear",(function(){r.onClearClick()})),LL(WL(r),"onScroll",(function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)})),LL(WL(r),"renderCalendar",(function(){return r.props.inline||r.isCalendarOpen()?_.default.createElement(TB,{ref:function(e){r.calendar=e},locale:r.props.locale,calendarStartDay:r.props.calendarStartDay,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,monthAriaLabelPrefix:r.props.monthAriaLabelPrefix,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,shouldFocusDayInline:r.state.shouldFocusDayInline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,showPreviousMonths:r.props.showPreviousMonths,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:"react-datepicker-ignore-onclickoutside",fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,weekDayClassName:r.props.weekDayClassName,monthClassName:r.props.monthClassName,timeClassName:r.props.timeClassName,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearItemNumber:r.props.yearItemNumber,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthAriaLabel:r.props.previousMonthAriaLabel,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthAriaLabel:r.props.nextMonthAriaLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,previousYearAriaLabel:r.props.previousYearAriaLabel,previousYearButtonLabel:r.props.previousYearButtonLabel,nextYearAriaLabel:r.props.nextYearAriaLabel,nextYearButtonLabel:r.props.nextYearButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showPopperArrow:r.props.showPopperArrow,excludeScrollbar:r.props.excludeScrollbar,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,isInputFocused:r.state.focused,customTimeInput:r.props.customTimeInput,setPreSelection:r.setPreSelection},r.props.children):null})),LL(WL(r),"renderAriaLiveRegion",(function(){var e,t=r.props,n=t.dateFormat,o=t.locale,i=r.props.showTimeInput||r.props.showTimeSelect?"PPPPp":"PPPP";return e=r.props.selectsRange?"Selected start date: ".concat(nz(r.props.startDate,{dateFormat:i,locale:o}),". ").concat(r.props.endDate?"End date: "+nz(r.props.endDate,{dateFormat:i,locale:o}):""):r.props.showTimeSelectOnly?"Selected time: ".concat(nz(r.props.selected,{dateFormat:n,locale:o})):r.props.showYearPicker?"Selected year: ".concat(nz(r.props.selected,{dateFormat:"yyyy",locale:o})):r.props.showMonthYearPicker?"Selected month: ".concat(nz(r.props.selected,{dateFormat:"MMMM yyyy",locale:o})):r.props.showQuarterYearPicker?"Selected quarter: ".concat(nz(r.props.selected,{dateFormat:"yyyy, QQQ",locale:o})):"Selected date: ".concat(nz(r.props.selected,{dateFormat:i,locale:o})),_.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&e)})),LL(WL(r),"renderDateInput",(function(){var e,t=wL(r.props.className,LL({},"react-datepicker-ignore-onclickoutside",r.state.open)),n=r.props.customInput||_.default.createElement("input",{type:"text"}),o=r.props.customInputRef||"ref",i="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:r.props.selectsRange?function(e,t,n){if(!e)return"";var r=nz(e,n),o=t?nz(t,n):"";return"".concat(r," - ").concat(o)}(r.props.startDate,r.props.endDate,r.props):nz(r.props.selected,r.props);return _.default.cloneElement(n,(LL(e={},o,(function(e){r.input=e})),LL(e,"value",i),LL(e,"onBlur",r.handleBlur),LL(e,"onChange",r.handleChange),LL(e,"onClick",r.onInputClick),LL(e,"onFocus",r.handleFocus),LL(e,"onKeyDown",r.onInputKeyDown),LL(e,"id",r.props.id),LL(e,"name",r.props.name),LL(e,"form",r.props.form),LL(e,"autoFocus",r.props.autoFocus),LL(e,"placeholder",r.props.placeholderText),LL(e,"disabled",r.props.disabled),LL(e,"autoComplete",r.props.autoComplete),LL(e,"className",wL(n.props.className,t)),LL(e,"title",r.props.title),LL(e,"readOnly",r.props.readOnly),LL(e,"required",r.props.required),LL(e,"tabIndex",r.props.tabIndex),LL(e,"aria-describedby",r.props.ariaDescribedBy),LL(e,"aria-invalid",r.props.ariaInvalid),LL(e,"aria-labelledby",r.props.ariaLabelledBy),LL(e,"aria-required",r.props.ariaRequired),e))})),LL(WL(r),"renderClearButton",(function(){var e=r.props,t=e.isClearable,n=e.selected,o=e.startDate,i=e.endDate,a=e.clearButtonTitle,l=e.clearButtonClassName,s=void 0===l?"":l,u=e.ariaLabelClose,c=void 0===u?"Close":u;return!t||null==n&&null==o&&null==i?null:_.default.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(s).trim(),"aria-label":c,onClick:r.onClearClick,title:a,tabIndex:-1})})),r.state=r.calcInitialState(),r}return jL(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?Cs(n)!==Cs(r)||$s(n)!==$s(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Fz(this.props.highlightDates)}),t.focused||hz(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var e=this.props.showIcon;return _.default.createElement("div",{className:"react-datepicker__input-container ".concat(e?"react-datepicker__view-calendar-icon":"")},e&&_.default.createElement("svg",{className:"react-datepicker__calendar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},_.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"})),this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?_.default.createElement($B,{enableTabLoop:this.props.enableTabLoop},_.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=_.default.createElement(_B,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),_.default.createElement("div",null,this.renderInputContainer(),t)}return _.default.createElement(EB,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,renderDayContents:function(e){return e},focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(),MB="input",OB="navigate",RB=function(e){var t=e.onClick,n=e.selected,r=e.text;return _.default.createElement(PB,{onClick:t},n&&_.default.createElement(ie,{icon:o.faCheck,color:"primary"})," ",r)},PB=$.default.div(rB||(rB=H(["\n padding: 0.5em;\n :hover {\n color: ",";\n background-color: ",";\n }\n"],["\n padding: 0.5em;\n :hover {\n color: ",";\n background-color: ",";\n }\n"])),(function(e){return e.theme.palette.primary[800]}),(function(e){return e.theme.palette.primary[50]})),NB=function(e){return _.default.createElement(AB,null,e)},AB=$.default.div(oB||(oB=H([""],[""]))),IB=$.default.div(lB||(lB=H(["\n flex: 1 0 21%;\n\n cursor: pointer;\n\n text-transform: capitalize;\n text-align: center;\n font-size: 0.75em;\n\n border-radius: ",";\n padding: 0.7em 0.5em;\n\n ","\n"],["\n flex: 1 0 21%;\n\n cursor: pointer;\n\n text-transform: capitalize;\n text-align: center;\n font-size: 0.75em;\n\n border-radius: ",";\n padding: 0.7em 0.5em;\n\n ","\n"])),(function(e){return e.theme.components.datePicker.item.borderRadius}),(function(e){return e.isActive?n.css(iB||(iB=H(["\n color: ",";\n background: ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n "],["\n color: ",";\n background: ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n "])),(function(e){return e.theme.components.datePicker.item.active.color}),(function(e){return e.theme.components.datePicker.item.active.background}),(function(e){return e.theme.components.datePicker.item.activeHover.color}),(function(e){return e.theme.components.datePicker.item.activeHover.background})):n.css(aB||(aB=H(["\n color: ",";\n background: ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n "],["\n color: ",";\n background: ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n "])),(function(e){return e.theme.components.datePicker.item.normal.color}),(function(e){return e.theme.components.datePicker.item.normal.background}),(function(e){return e.theme.components.datePicker.item.normalHover.color}),(function(e){return e.theme.components.datePicker.item.normalHover.background}))})),FB=Array.from(Array(12).keys()).map((function(e){var t;return null===(t=Lc.localize)||void 0===t?void 0:t.month(e,{width:"abbreviated"})})),jB=function(e){var n=e.changeMonth,r=e.date.getMonth(),o=t.useMemo((function(){return FB.map((function(e,t){return _.default.createElement(IB,{key:t,onClick:function(){return n(t)},isActive:t===r},e)}))}),[r,n]);return _.default.createElement(LB,null,o)},LB=$.default.div(sB||(sB=H(["\n display: flex;\n justify-content: space-around;\n align-items: center;\n flex-wrap: wrap;\n max-width: fit-content;\n"],["\n display: flex;\n justify-content: space-around;\n align-items: center;\n flex-wrap: wrap;\n max-width: fit-content;\n"]))),zB=function(e){var n=e.date,r=e.changeYear,o=e.yearsDisplayed,i=t.useState(0),a=i[0],l=i[1],u=n.getFullYear();t.useEffect((function(){l(0)}),[n]);var c=t.useCallback((function(){return l((function(e){return e-1}))}),[]),d=t.useCallback((function(){return l((function(e){return e+1}))}),[]),f=function(e,n,r){return t.useMemo((function(){var t=e+r*n,o=t%r-((new Date).getFullYear()%r-~~(r/2)),i=t-(o>=0?o:o+r);return Array.from({length:r}).map((function(e,t){return i+t}))}),[e,n,r])}(u,a,o),p=t.useMemo((function(){return f.map((function(e){return _.default.createElement(IB,{isActive:e===u,key:e,onClick:function(){return r(e)}},e)}))}),[r,u,f]);return _.default.createElement(BB,null,_.default.createElement(HB,null,_.default.createElement(UB,{fixedWidth:!0,icon:s.faAngleLeft,onClick:c}),_.default.createElement(UB,{fixedWidth:!0,icon:s.faAngleRight,onClick:d})),p)},BB=$.default.div(uB||(uB=H(["\n display: flex;\n justify-content: space-around;\n align-items: center;\n flex-wrap: wrap;\n max-width: fit-content;\n"],["\n display: flex;\n justify-content: space-around;\n align-items: center;\n flex-wrap: wrap;\n max-width: fit-content;\n"]))),HB=$.default.div(cB||(cB=H(["\n flex: 1 0 21%;\n\n display: flex;\n justify-content: center;\n"],["\n flex: 1 0 21%;\n\n display: flex;\n justify-content: center;\n"]))),UB=$.default(ie)(dB||(dB=H(["\n color: ",";\n aspect-ratio: 1;\n height: 100%;\n"],["\n color: ",";\n aspect-ratio: 1;\n height: 100%;\n"])),(function(e){return e.theme.palette.black[100]})),WB=function(e){var n=e.date,r=e.allowMonthView,o=e.allowYearView,i=e.yearsDisplayed,a=function(e){var n=e.date,r=e.decreaseMonth,o=e.increaseMonth,i=e.prevMonthButtonDisabled,a=e.nextMonthButtonDisabled,l=e.nextYearButtonDisabled,s=e.prevYearButtonDisabled,u=e.decreaseYear,c=e.increaseYear,d=e.allowYearView,f=e.allowMonthView,p=t.useState("dayPicker"),h=p[0],m=p[1],g=t.useCallback((function(){m("dayPicker"===h&&f?"monthPicker":"monthPicker"===h&&d?"yearPicker":"dayPicker")}),[f,d,h]);return"dayPicker"===h?{status:h,title:ys(n,"MMMM yyyy",{locale:Lc}),leftArrowOnClick:r,leftArrowIsDisabled:i,rightArrowOnClick:o,rightArrowIsDisabled:a,onBottomArrowClick:g,showBottomArrow:f,showLRArrows:!0}:"monthPicker"===h?{status:h,title:ys(n,"yyyy",{locale:Lc}),leftArrowOnClick:u,leftArrowIsDisabled:s,rightArrowOnClick:c,rightArrowIsDisabled:l,onBottomArrowClick:g,showBottomArrow:d,showLRArrows:!0}:{status:h,title:ys(n,"yyyy",{locale:Lc}),leftArrowOnClick:u,leftArrowIsDisabled:s,rightArrowOnClick:c,rightArrowIsDisabled:l,onBottomArrowClick:g,showBottomArrow:!0,showLRArrows:!1}}(I(I({},e),{allowMonthView:r,allowYearView:o})),l=a.status,u=a.title,c=a.leftArrowOnClick,d=a.leftArrowIsDisabled,f=a.rightArrowOnClick,p=a.rightArrowIsDisabled,h=a.onBottomArrowClick,m=a.showBottomArrow,g=a.showLRArrows,y=t.useMemo((function(){return"monthPicker"===l&&r?_.default.createElement(_.default.Fragment,null,_.default.createElement(jB,{changeMonth:function(t){return e.changeMonth(t)},date:n}),_.default.createElement(QB,null)):"yearPicker"===l&&o?_.default.createElement(_.default.Fragment,null,_.default.createElement(zB,{date:n,yearsDisplayed:i,changeYear:function(t){return e.changeYear(t)}}),_.default.createElement(QB,null),_.default.createElement(jB,{changeMonth:function(t){return e.changeMonth(t)},date:n}),_.default.createElement(QB,null)):null}),[r,o,n,e,l,i]);return _.default.createElement(VB,null,_.default.createElement(YB,null,g&&_.default.createElement(GB,{icon:s.faAngleLeft,onClick:c,isDisabled:d,fixedWidth:!0}),_.default.createElement(KB,null,_.default.createElement(XB,null,u),m&&_.default.createElement(ie,{icon:"yearPicker"===l?s.faAngleUp:s.faAngleDown,onClick:h})),g&&_.default.createElement(GB,{icon:s.faAngleRight,onClick:f,isDisabled:p,fixedWidth:!0})),y&&_.default.createElement(qB,null,y))},VB=$.default.div(fB||(fB=H(["\n display: flex;\n flex-flow: column;\n gap: 1em;\n padding: 0 0.3em 0.3em 0.3em;\n"],["\n display: flex;\n flex-flow: column;\n gap: 1em;\n padding: 0 0.3em 0.3em 0.3em;\n"]))),YB=$.default.div(pB||(pB=H(["\n display: flex;\n"],["\n display: flex;\n"]))),qB=$.default.div(hB||(hB=H([""],[""]))),GB=$.default(ie)(mB||(mB=H(["\n color: ",";\n aspect-ratio: 1;\n height: 100%;\n"],["\n color: ",";\n aspect-ratio: 1;\n height: 100%;\n"])),(function(e){return e.theme.palette.black[100]})),KB=$.default.div(gB||(gB=H(["\n flex: 1;\n\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 0.5em;\n"],["\n flex: 1;\n\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 0.5em;\n"]))),XB=$.default.div(yB||(yB=H(["\n text-transform: capitalize;\n text-align: center;\n"],["\n text-transform: capitalize;\n text-align: center;\n"]))),QB=$.default.div(bB||(bB=H(["\n width: 100%;\n height: 0.06em;\n background: ",";\n margin: 0.5em 0;\n"],["\n width: 100%;\n height: 0.06em;\n background: ",";\n margin: 0.5em 0;\n"])),(function(e){return e.theme.palette.grey[100]})),ZB=$.default.div(vB||(vB=H(["\n .react-datepicker {\n box-shadow: 0 0.1875em 0.375em rgb(51 51 51 / 15%), 0 0.125em 0.25em rgb(51 51 51 / 12%);\n border-radius: 0.25em;\n padding: 0 0 0.25em 0;\n\n user-select: none;\n\n background: ",";\n }\n\n .react-datepicker__today-button {\n margin-left: 0.25em;\n width: fit-content;\n display: inline-block;\n }\n\n .react-datepicker__close-icon {\n display: none;\n }\n\n .react-datepicker__month-container {\n margin-top: 0.5em;\n padding: 0.5em;\n }\n\n .react-datepicker__day-names {\n display: flex;\n justify-content: space-around;\n\n .react-datepicker__day-name {\n text-transform: uppercase;\n color: ",";\n font-size: 0.75em;\n font-weight: 500;\n }\n }\n\n .react-datepicker__current-month {\n text-transform: capitalize;\n }\n\n .react-datepicker__week {\n display: flex;\n justify-content: space-around;\n }\n\n .react-datepicker__day {\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 2em;\n height: 2em;\n\n border-radius: ",";\n\n color: ",";\n background: ",";\n\n &:hover {\n cursor: pointer;\n color: ",";\n background: ",";\n }\n\n &.react-datepicker__day--selected {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n\n display: flex;\n flex-flow: column;\n }\n\n &.react-datepicker__day--today {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n\n &.react-datepicker__day--selected {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n }\n\n display: flex;\n flex-flow: column;\n\n > div:first-child {\n line-height: 0.9em;\n }\n\n ::after {\n content: 'OGGI';\n font-weight: 700;\n font-size: 0.375em;\n line-height: 1em;\n }\n }\n\n &.react-datepicker__day--outside-month {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n }\n\n &.react-datepicker__day--disabled {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n }\n }\n"],["\n .react-datepicker {\n box-shadow: 0 0.1875em 0.375em rgb(51 51 51 / 15%), 0 0.125em 0.25em rgb(51 51 51 / 12%);\n border-radius: 0.25em;\n padding: 0 0 0.25em 0;\n\n user-select: none;\n\n background: ",";\n }\n\n .react-datepicker__today-button {\n margin-left: 0.25em;\n width: fit-content;\n display: inline-block;\n }\n\n .react-datepicker__close-icon {\n display: none;\n }\n\n .react-datepicker__month-container {\n margin-top: 0.5em;\n padding: 0.5em;\n }\n\n .react-datepicker__day-names {\n display: flex;\n justify-content: space-around;\n\n .react-datepicker__day-name {\n text-transform: uppercase;\n color: ",";\n font-size: 0.75em;\n font-weight: 500;\n }\n }\n\n .react-datepicker__current-month {\n text-transform: capitalize;\n }\n\n .react-datepicker__week {\n display: flex;\n justify-content: space-around;\n }\n\n .react-datepicker__day {\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 2em;\n height: 2em;\n\n border-radius: ",";\n\n color: ",";\n background: ",";\n\n &:hover {\n cursor: pointer;\n color: ",";\n background: ",";\n }\n\n &.react-datepicker__day--selected {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n\n display: flex;\n flex-flow: column;\n }\n\n &.react-datepicker__day--today {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n\n &.react-datepicker__day--selected {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n }\n\n display: flex;\n flex-flow: column;\n\n > div:first-child {\n line-height: 0.9em;\n }\n\n ::after {\n content: 'OGGI';\n font-weight: 700;\n font-size: 0.375em;\n line-height: 1em;\n }\n }\n\n &.react-datepicker__day--outside-month {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n }\n\n &.react-datepicker__day--disabled {\n color: ",";\n background: ",";\n\n :hover {\n color: ",";\n background: ",";\n }\n }\n }\n"])),(function(e){return e.theme.components.datePicker.background}),(function(e){return e.theme.components.datePicker.weekDaysNames.color}),(function(e){return e.theme.components.datePicker.days.borderRadius}),(function(e){return e.theme.components.datePicker.days.inMonth.normal.color}),(function(e){return e.theme.components.datePicker.days.inMonth.normal.background}),(function(e){return e.theme.components.datePicker.days.inMonth.normalHover.color}),(function(e){return e.theme.components.datePicker.days.inMonth.normalHover.background}),(function(e){return e.theme.components.datePicker.days.inMonth.active.color}),(function(e){return e.theme.components.datePicker.days.inMonth.active.background}),(function(e){return e.theme.components.datePicker.days.inMonth.activeHover.color}),(function(e){return e.theme.components.datePicker.days.inMonth.activeHover.background}),(function(e){return e.theme.components.datePicker.days.today.normal.color}),(function(e){return e.theme.components.datePicker.days.today.normal.background}),(function(e){return e.theme.components.datePicker.days.today.normalHover.color}),(function(e){return e.theme.components.datePicker.days.today.normalHover.background}),(function(e){return e.theme.components.datePicker.days.today.active.color}),(function(e){return e.theme.components.datePicker.days.today.active.background}),(function(e){return e.theme.components.datePicker.days.today.activeHover.color}),(function(e){return e.theme.components.datePicker.days.today.activeHover.background}),(function(e){return e.theme.components.datePicker.days.outMonth.normal.color}),(function(e){return e.theme.components.datePicker.days.outMonth.normal.background}),(function(e){return e.theme.components.datePicker.days.outMonth.normalHover.color}),(function(e){return e.theme.components.datePicker.days.outMonth.normalHover.background}),(function(e){return e.theme.components.datePicker.days.inMonth.disabled.color}),(function(e){return e.theme.components.datePicker.days.inMonth.disabled.background}),(function(e){return e.theme.components.datePicker.days.inMonth.disabled.color}),(function(e){return e.theme.components.datePicker.days.inMonth.disabled.background})),JB=$.default.div(xB||(xB=H(["\n margin: 0 0.25em;\n display: flex;\n justify-content: space-between;\n"],["\n margin: 0 0.25em;\n display: flex;\n justify-content: space-between;\n"]))),eH=$.default.div(wB||(wB=H(["\n display: flex;\n align-items: center;\n color: ",";\n"],["\n display: flex;\n align-items: center;\n color: ",";\n"])),(function(e){return e.theme.palette.primary[500]})),tH=function(e,t){if(!e)return t[0];for(var n=0;n<t.length;n++){var r=dc(e,t[n],new Date);if(r&&pl(r))return t[n]}throw new Error("Date format is invalid or not among the provided valid formats")},nH=function(e){var r=e.inputSize,o=e.status,i=e.isClearable,a=e.date,l=e.setDate,s=e.open,u=void 0!==s&&s,c=e.allowMonthView,d=void 0!==c&&c,f=e.allowYearView,p=void 0!==f&&f,h=e.yearsDisplayed,m=e.hasTodayButton,g=void 0!==m&&m,y=e.customButtons,b=void 0===y?[]:y,v=e.renderCustomFooter,x=e.isPrefilled,w=e.placeholderText,k=e.onChangeManually,C=t.useState(u),S=C[0],$=C[1],E=t.useCallback((function(){return $(!0)}),[]),T=t.useCallback((function(){return $(!1)}),[]),D=t.useState(0),M=D[0],O=D[1];t.useEffect((function(){$(u)}),[u]);var R=t.useRef(null),P=t.useMemo((function(){return _.default.createElement(pa,{ref:R,inputSize:r,status:o,isPrefilled:x})}),[r,x,o]),N=t.useCallback((function(){var e=new Date;l(e),null==k||k(e),T()}),[l,T,k]),A=t.useCallback((function(){l(null),T()}),[T,l]),F=n.useTheme().components.datePicker.defaultYearsDisplayed,j=t.useMemo((function(){return function(e,t,n){return function(r){return _.default.createElement(WB,I({yearsDisplayed:n,allowMonthView:e,allowYearView:t},r))}}(d,p,h||F)}),[d,p,F,h]),L=t.useMemo((function(){return I(I({},e),{isOpen:S,setIsOpen:$})}),[S,e]),z=t.useCallback((function(e,t){var n,r;if(null===(n=null==t?void 0:t.currentTarget)||void 0===n?void 0:n.value)try{var o=null===(r=null==t?void 0:t.currentTarget)||void 0===r?void 0:r.value,i=dc(o,tH(o,zc),new Date);l(i),null==k||k(i)}catch(e){l(null),null==k||k(null)}else try{tH(null==e?void 0:e.toLocaleDateString(),zc),l(e),null==k||k(e)}catch(e){l(null),null==k||k(null)}}),[k,l]);return _.default.createElement(ZB,null,_.default.createElement(DB,I({onInputClick:E,onClickOutside:T,onBlur:T,onFocus:E,onSelect:T,open:S,placeholderText:w||(new Date).toLocaleDateString("it-IT",{month:"2-digit",day:"2-digit",year:"numeric"}),customInput:P,locale:Lc,dateFormat:"dd/MM/yyyy",selected:a,disabledKeyboardNavigation:!0,renderCustomHeader:j,renderDayContents:NB},e,{onChange:z}),_.default.createElement("div",null,_.default.createElement(JB,null,g?_.default.createElement(wn,{type:"text",onClick:N,text:"Oggi"}):1===b.length?_.default.createElement(wn,{type:"text",onClick:function(){return b[0].onClick(L)},text:b[0].text}):b.length>1?_.default.createElement(eH,null,b[M].text):null,i&&_.default.createElement(wn,{type:"text",color:"red",onClick:A,text:"Azzera"})),b.length>1&&_.default.createElement("div",null,b.map((function(e,t){return _.default.createElement(RB,{key:"custom_btn_"+t,text:e.text,selected:M===t,onClick:function(){O(t),e.onClick(L)}})}))),v?v(L):null)))},rH=(J.white[100],J.grey[300],J.blue[700],J.grey[100],J.blue[700],J.blue[700],J.white[100],J.blue[700],J.white[100],J.black[80],J.grey[100],J.black[80],J.blue[700],J.white[100],J.blue[700],J.white[100],J.black[48],J.black[16],J.grey[100],J.black[80],J.black[80],J.grey[100],J.black[80],J.blue[700],J.white[100],J.blue[700],J.white[100],J.black[48],new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]));function oH(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=rH.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var iH=[".DS_Store","Thumbs.db"];function aH(e){return"object"==typeof e&&null!==e}function lH(e){return dH(e.target.files).map((function(e){return oH(e)}))}function sH(e){return j(this,void 0,void 0,(function(){return L(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return oH(e)}))]}}))}))}function uH(e,t){return j(this,void 0,void 0,(function(){var n;return L(this,(function(r){switch(r.label){case 0:return null===e?[2,[]]:e.items?(n=dH(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(fH))]):[3,2];case 1:return[2,cH(pH(r.sent()))];case 2:return[2,cH(dH(e.files).map((function(e){return oH(e)})))]}}))}))}function cH(e){return e.filter((function(e){return-1===iH.indexOf(e.name)}))}function dH(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function fH(e){if("function"!=typeof e.webkitGetAsEntry)return hH(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?gH(t):hH(e)}function pH(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(z(arguments[t]));return e}(e,Array.isArray(t)?pH(t):[t])}),[])}function hH(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=oH(t);return Promise.resolve(n)}function mH(e){return j(this,void 0,void 0,(function(){return L(this,(function(t){return[2,e.isDirectory?gH(e):yH(e)]}))}))}function gH(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return j(i,void 0,void 0,(function(){var i,a,l;return L(this,(function(s){switch(s.label){case 0:if(t.length)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=s.sent(),e(i),[3,4];case 3:return a=s.sent(),n(a),[3,4];case 4:return[3,6];case 5:l=Promise.all(t.map(mH)),r.push(l),o(),s.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function yH(e){return j(this,void 0,void 0,(function(){return L(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=oH(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var bH=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0};function vH(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 xH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vH(Object(n),!0).forEach((function(t){wH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return CH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CH(e,t)}(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 CH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _H=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},SH=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},$H=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},EH={code:"too-many-files",message:"Too many files"};function TH(e,t){var n="application/x-moz-file"===e.type||bH(e,t);return[n,n?null:_H(t)]}function DH(e,t,n){if(MH(e.size))if(MH(t)&&MH(n)){if(e.size>n)return[!1,SH(n)];if(e.size<t)return[!1,$H(t)]}else{if(MH(t)&&e.size<t)return[!1,$H(t)];if(MH(n)&&e.size>n)return[!1,SH(n)]}return[!0,null]}function MH(e){return null!=e}function OH(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function RH(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function PH(e){e.preventDefault()}function NH(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!OH(e)&&t&&t.apply(void 0,[e].concat(r)),OH(e)}))}}function AH(e){return e="string"==typeof e?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter((function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)})).reduce((function(e,t){return xH(xH({},e),{},wH({},t,[]))}),{}):{}}]}var IH=["children"],FH=["open"],jH=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],LH=["refKey","onChange","onClick"];function zH(e){return function(e){if(Array.isArray(e))return UH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||HH(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 BH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||HH(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 HH(e,t){if(e){if("string"==typeof e)return UH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?UH(e,t):void 0}}function UH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WH(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 VH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WH(Object(n),!0).forEach((function(t){YH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qH(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var GH=t.forwardRef((function(e,n){var r=e.children,o=QH(qH(e,IH)),i=o.open,a=qH(o,FH);return t.useImperativeHandle(n,(function(){return{open:i}}),[i]),_.default.createElement(t.Fragment,null,r(VH(VH({},a),{},{open:i})))}));GH.displayName="Dropzone";var KH={disabled:!1,getFilesFromEvent:function(e){return j(this,void 0,void 0,(function(){return L(this,(function(t){return aH(e)&&aH(e.dataTransfer)?[2,uH(e.dataTransfer,e.type)]:function(e){return aH(e)&&aH(e.target)}(e)?[2,lH(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,sH(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};GH.defaultProps=KH,GH.propTypes={children:hf.func,accept:hf.oneOfType([hf.string,hf.arrayOf(hf.string)]),multiple:hf.bool,preventDropOnDocument:hf.bool,noClick:hf.bool,noKeyboard:hf.bool,noDrag:hf.bool,noDragEventsBubbling:hf.bool,minSize:hf.number,maxSize:hf.number,maxFiles:hf.number,disabled:hf.bool,getFilesFromEvent:hf.func,onFileDialogCancel:hf.func,onFileDialogOpen:hf.func,useFsAccessApi:hf.bool,onDragEnter:hf.func,onDragLeave:hf.func,onDragOver:hf.func,onDrop:hf.func,onDropAccepted:hf.func,onDropRejected:hf.func,validator:hf.func};var XH={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function QH(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=VH(VH({},KH),e),r=n.accept,o=n.disabled,i=n.getFilesFromEvent,a=n.maxSize,l=n.minSize,s=n.multiple,u=n.maxFiles,c=n.onDragEnter,d=n.onDragLeave,f=n.onDragOver,p=n.onDrop,h=n.onDropAccepted,m=n.onDropRejected,g=n.onFileDialogCancel,y=n.onFileDialogOpen,b=n.useFsAccessApi,v=n.preventDropOnDocument,x=n.noClick,w=n.noKeyboard,k=n.noDrag,C=n.noDragEventsBubbling,_=n.validator,S=t.useMemo((function(){return"function"==typeof y?y:JH}),[y]),$=t.useMemo((function(){return"function"==typeof g?g:JH}),[g]),E=t.useRef(null),T=t.useRef(null),D=BH(t.useReducer(ZH,XH),2),M=D[0],O=D[1],R=M.isFocused,P=M.isFileDialogActive,N=M.draggedFiles,A=t.useRef("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),I=function(){!A.current&&P&&setTimeout((function(){T.current&&(T.current.files.length||(O({type:"closeDialog"}),$()))}),300)};t.useEffect((function(){return window.addEventListener("focus",I,!1),function(){window.removeEventListener("focus",I,!1)}}),[T,P,$,A]);var F=t.useRef([]),j=function(e){E.current&&E.current.contains(e.target)||(e.preventDefault(),F.current=[])};t.useEffect((function(){return v&&(document.addEventListener("dragover",PH,!1),document.addEventListener("drop",j,!1)),function(){v&&(document.removeEventListener("dragover",PH),document.removeEventListener("drop",j))}}),[E,v]);var L=t.useCallback((function(e){e.preventDefault(),e.persist(),Z(e),F.current=[].concat(zH(F.current),[e.target]),RH(e)&&Promise.resolve(i(e)).then((function(t){OH(e)&&!C||(O({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e))}))}),[i,c,C]),z=t.useCallback((function(e){e.preventDefault(),e.persist(),Z(e);var t=RH(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,C]),B=t.useCallback((function(e){e.preventDefault(),e.persist(),Z(e);var t=F.current.filter((function(e){return E.current&&E.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),F.current=t,t.length>0||(O({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),RH(e)&&d&&d(e))}),[E,d,C]),H=t.useCallback((function(e,t){var n=[],o=[];e.forEach((function(e){var t=BH(TH(e,r),2),i=t[0],s=t[1],u=BH(DH(e,l,a),2),c=u[0],d=u[1],f=_?_(e):null;if(i&&c&&!f)n.push(e);else{var p=[s,d];f&&(p=p.concat(f)),o.push({file:e,errors:p.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&u>=1&&n.length>u)&&(n.forEach((function(e){o.push({file:e,errors:[EH]})})),n.splice(0)),O({acceptedFiles:n,fileRejections:o,type:"setFiles"}),p&&p(n,o,t),o.length>0&&m&&m(o,t),n.length>0&&h&&h(n,t)}),[O,s,r,l,a,u,p,h,m,_]),U=t.useCallback((function(e){e.preventDefault(),e.persist(),Z(e),F.current=[],RH(e)&&Promise.resolve(i(e)).then((function(t){OH(e)&&!C||H(t,e)})),O({type:"reset"})}),[i,H,C]),W=t.useCallback((function(){if(A.current){O({type:"openDialog"}),S();var e={multiple:s,types:AH(r)};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){H(e,null),O({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)&&(A.current=!1,T.current&&(T.current.value=null,T.current.click())):($(e),O({type:"closeDialog"}))}))}else T.current&&(O({type:"openDialog"}),S(),T.current.value=null,T.current.click())}),[O,S,$,b,H,r,s]),V=t.useCallback((function(e){E.current&&E.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),W()))}),[E,W]),Y=t.useCallback((function(){O({type:"focus"})}),[]),q=t.useCallback((function(){O({type:"blur"})}),[]),G=t.useCallback((function(){x||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?W():setTimeout(W,0))}),[x,W]),K=function(e){return o?null:e},X=function(e){return w?null:K(e)},Q=function(e){return k?null:K(e)},Z=function(e){C&&e.stopPropagation()},J=t.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,i=e.onKeyDown,a=e.onFocus,l=e.onBlur,s=e.onClick,u=e.onDragEnter,c=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=qH(e,jH);return VH(VH(YH({onKeyDown:X(NH(i,V)),onFocus:X(NH(a,Y)),onBlur:X(NH(l,q)),onClick:K(NH(s,G)),onDragEnter:Q(NH(u,L)),onDragOver:Q(NH(c,z)),onDragLeave:Q(NH(d,B)),onDrop:Q(NH(f,U)),role:"string"==typeof r&&""!==r?r:"button"},n,E),o||w?{}:{tabIndex:0}),p)}}),[E,V,Y,q,G,L,z,B,U,w,k,o]),ee=t.useCallback((function(e){e.stopPropagation()}),[]),te=t.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.onChange,i=e.onClick,a=qH(e,LH);return VH(VH({},YH({accept:r,multiple:s,type:"file",style:{display:"none"},onChange:K(NH(o,U)),onClick:K(NH(i,ee)),tabIndex:-1},n,T)),a)}}),[T,r,s,U,o]),ne=N.length,re=ne>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=kH(TH(e,n),1)[0],i=kH(DH(e,r,o),1)[0];return t&&i}))}({files:N,accept:r,minSize:l,maxSize:a,multiple:s,maxFiles:u}),oe=ne>0&&!re;return VH(VH({},M),{},{isDragAccept:re,isDragReject:oe,isFocused:R&&!o,getRootProps:J,getInputProps:te,rootRef:E,inputRef:T,open:K(W)})}function ZH(e,t){switch(t.type){case"focus":return VH(VH({},e),{},{isFocused:!0});case"blur":return VH(VH({},e),{},{isFocused:!1});case"openDialog":return VH(VH({},XH),{},{isFileDialogActive:!0});case"closeDialog":return VH(VH({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return VH(VH({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return VH(VH({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return VH({},XH);default:return e}}function JH(){}var eU,tU,nU,rU,oU,iU,aU,lU=$.default.div(eU||(eU=H(["\n border-radius: 0.25em;\n\n background-color: ",";\n border: 1px solid ",";\n\n padding: ",";\n\n display: flex;\n flex-direction: ",";\n justify-content: center;\n align-items: center;\n text-align: center;\n gap: 0.5em;\n\n position: relative;\n cursor: pointer;\n"],["\n border-radius: 0.25em;\n\n background-color: ",";\n border: 1px solid ",";\n\n padding: ",";\n\n display: flex;\n flex-direction: ",";\n justify-content: center;\n align-items: center;\n text-align: center;\n gap: 0.5em;\n\n position: relative;\n cursor: pointer;\n"])),(function(e){return e.backgroundColor}),(function(e){var t=e.status;return e.theme.components.fileUploader[t].borderColor}),(function(e){return e.fixedHeight?"48px 32px":"5.5%"}),(function(e){return"small"===e.size?"row":"column"})),sU=$.default(lU)(tU||(tU=H(["\n position: absolute;\n inset: 0;\n"],["\n position: absolute;\n inset: 0;\n"]))),uU=$.default.div(nU||(nU=H(["\n color: ",";\n font-size: 1.25em;\n font-weight: 500;\n"],["\n color: ",";\n font-size: 1.25em;\n font-weight: 500;\n"])),(function(e){var t=e.theme,n=e.status;return t.components.fileUploader[n].color})),cU=$.default.div(rU||(rU=H(["\n color: ",";\n font-size: 0.875em;\n font-weight: 400;\n"],["\n color: ",";\n font-size: 0.875em;\n font-weight: 400;\n"])),(function(e){var t=e.theme,n=e.status;return t.components.fileUploader[n].secondaryColor})),dU=function(e){var t=e.icon,n=e.status,r=e.text,o=e.caption,i=e.size;return _.default.createElement(_.default.Fragment,null,t&&_.default.createElement(ie,I({size:"2x"},t)),"normal"===i&&r&&_.default.createElement(uU,{status:n},r),o&&_.default.createElement(cU,{status:n},o))},fU=function(e,t){var r,o,i,a,l=n.useTheme().components.fileUploader[e],s=l.text,u=l.caption,c=l.icon,d=l.background,f=null===(r=null==t?void 0:t[e])||void 0===r?void 0:r.text,p=null===(o=null==t?void 0:t[e])||void 0===o?void 0:o.caption,h=null===(i=null==t?void 0:t[e])||void 0===i?void 0:i.icon,m=null===(a=null==t?void 0:t[e])||void 0===a?void 0:a.background;return{text:f||null===f?f:s,caption:p||null===p?p:u,icon:h||null===h?h:c,background:m||null===m?m:d}},pU={unknown:{mimeTypes:["*"],extensions:[]},pdf:{mimeTypes:["application/pdf"],extensions:["pdf"]},image:{mimeTypes:["image/png","image/jpeg","image/gif"],extensions:["png","gif","jpg","jpeg"]},zip:{mimeTypes:["application/zip","application/octet-stream","application/x-zip-compressed","multipart/x-zip"],extensions:["zip"]},archive:{mimeTypes:["application/zip","application/octet-stream","application/x-zip-compressed","multipart/x-zip","application/x-rar-compressed"],extensions:["zip"]},text:{mimeTypes:["text/plain","application/rtf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"],extensions:["doc","docx"]},document:{mimeTypes:["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"],extensions:["doc","docx","docm"]},spreadsheet:{mimeTypes:["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.oasis.opendocument.spreadsheet"],extensions:["xls","xlsx","xlsm"]},presentation:{mimeTypes:["application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.oasis.opendocument.presentation"],extensions:["ppt","pptx","odp"]},xml:{mimeTypes:["text/xml","application/xml"],extensions:["xml"]},p7m:{mimeTypes:["application/pkcs7-mime","application/x-pkcs7-mime"],extensions:["p7m"]},csv:{mimeTypes:["text/csv","text/plain","text/x-csv","application/vnd.ms-excel","application/csv","application/x-csv","text/comma-separated-values","text/x-comma-separated-values","text/tab-separated-values"],extensions:["csv"]}};J.grey[50],J.grey[100],J.black[100],J.blue[500],g.faUpload,J.blue[500],J.white[100],J.white[100],g.faUpload,J.blue[50],J.blue[100],J.blue[500],J.blue[500],o.faCircleNotch,J.green[50],J.green[100],J.green[500],J.green[500],y.faCheckCircle,J.red[50],J.red[100],J.red[500],J.red[500],y.faTimesCircle,J.grey[50],J.grey[200],J.grey[300],g.faUpload;exports.RadioStatus=void 0,(oU=exports.RadioStatus||(exports.RadioStatus={})).CHECKED="checked",oU.UNCHECKED="unchecked",function(e){e.NORMAL="normal",e.ERROR="error"}(iU||(iU={})),function(e){e.BACKGROUNDCOLOR="backgroundColor",e.BORDERCOLOR="borderColor"}(aU||(aU={}));var hU,mU,gU,yU,bU,vU,xU,wU,kU,CU,_U,SU,$U,EU,TU,DU,MU,OU=function(e){return"boolean"==typeof e?e?exports.RadioStatus.CHECKED:exports.RadioStatus.UNCHECKED:e},RU=$.default.span.attrs((function(e){var t=e.theme,n=e.value,r=e.disabled,o=e.large,i=e.hasError,a=t.components.radio.input,l=a.normal,s=a.error,u=o?"20px":"16px",c=(i?s:l)[n],d=c.borderColor;return{backgroundColor:c.backgroundColor,borderColor:d,cursor:r?"not-allowed":"pointer",height:u,width:u,opacity:r?.3:1}}))(hU||(hU=H(["\n font-size: 10px;\n text-align: center;\n width: ",";\n height: ",";\n border: ",";\n cursor: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n opacity: ",";\n display: inline-block;\n border-radius: 20px;\n box-sizing: border-box;\n"],["\n font-size: 10px;\n text-align: center;\n width: ",";\n height: ",";\n border: ",";\n cursor: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n opacity: ",";\n display: inline-block;\n border-radius: 20px;\n box-sizing: border-box;\n"])),(function(e){return e.width}),(function(e){return e.height}),(function(e){var t=e.borderColor;return(e.value===exports.RadioStatus.CHECKED?"5px":"1px")+" solid "+t}),(function(e){return e.cursor}),(function(e){return e.opacity})),PU=function(e){var n=e.disabled,r=e.className,o=e.onClick,i=e.large,a=e.text,l=e.value,s=e.helper,u=e.onChange,c=t.useCallback((function(){var e;return null===(e=f.current)||void 0===e?void 0:e.click()}),[]),d=t.useCallback((function(e){return!n&&o&&o(e)}),[n,o]),f=t.useRef(null);t.useEffect((function(){if(f.current)switch(l){case exports.RadioStatus.CHECKED:f.current.checked=!0;break;case exports.RadioStatus.UNCHECKED:f.current.checked=!1}}),[l]);var p="error"===(null==s?void 0:s.status);return _.default.createElement(ue,null,_.default.createElement(lL,{className:r,onClick:c},_.default.createElement(RU,{value:l,large:i,disabled:n,hasError:p}),_.default.createElement(sL,{ref:f,type:"radio",value:l,onClick:d,onChange:u,disabled:n}),!!a&&_.default.createElement(aL,{large:i,disabled:n,hasError:p},a)),s&&_.default.createElement(ce,I({},s)))},NU=function(e){var t=e.value,n=F(e,["value"]);return _.default.createElement(PU,I({},n,{value:OU(t)}))},AU={backgroundColor:J.blue[500],borderColor:J.blue[500]},IU={backgroundColor:J.red[500],borderColor:J.red[500]},FU=(J.grey[500],J.red[500],J.black[100],J.red[500],$.default.div(bU||(bU=H(["\n display: flex;\n ",";\n ","\n"],["\n display: flex;\n ",";\n ","\n"])),(function(e){return e.inline?n.css(mU||(mU=H(["\n flex-direction: row;\n & > div {\n flex: 0;\n min-width: fit-content;\n }\n "],["\n flex-direction: row;\n & > div {\n flex: 0;\n min-width: fit-content;\n }\n "]))):n.css(gU||(gU=H(["\n flex-direction: column;\n "],["\n flex-direction: column;\n "])))}),(function(e){var t=e.spacing;return t&&n.css(yU||(yU=H(["\n gap: ",";\n "],["\n gap: ",";\n "])),hd[""+t])}))),jU=function(e){var n=e.onChange,r=e.helper,o=e.initialSelection,i=e.options,a=F(e,["onChange","helper","initialSelection","options"]),l=t.useState(o),s=l[0],u=l[1];return _.default.createElement(FU,I({},a),null==i?void 0:i.map((function(e,t){return _.default.createElement(NU,I({key:t},e,{value:s===t,onClick:function(){u(t),null==n||n(t)}}))})),r&&_.default.createElement(ce,I({},r)))},LU=function(e){var n=e.action,r=e.active,o=e.icon,i=e.index,a=e.mouseBlockedProps,l=e.navigable,s=e.onClick,u=e.onMouseHover,c=e.onMouseOut,d=e.placeholder,f=e.showActionOnHover,p=e.title,h=e.wrapperRef,m=a.mouseBlocked,g=a.setMouseBlocked,y=t.useRef(null),b=t.useCallback((function(e){var t;if(l&&(g(!0),"Enter"===e.key&&(e.preventDefault(),null===(t=y.current)||void 0===t||t.click()),["ArrowUp","ArrowDown"].includes(e.key))){e.preventDefault();var n=document.querySelectorAll("[data-grouped-list-item]"),r="ArrowUp"===e.key?"[data-grouped-list-item='"+(i-1)+"']":"[data-grouped-list-item='"+(i+1)+"']",o=document.querySelector(r),a=void 0;if(a=o||("ArrowUp"===e.key?n[n.length-1]:document.querySelector("[data-grouped-list-item='1']")),h.current){var s=h.current;"ArrowUp"===e.key?a.offsetTop<=s.scrollTop&&(s.scrollTop=a.offsetTop):a.offsetTop-(s.offsetHeight-a.offsetHeight)>=s.scrollTop&&(s.scrollTop=a.offsetTop-(s.offsetHeight-a.offsetHeight)),a.focus()}}}),[l,g,i,h]),v=t.useCallback((function(){var e,t=y.current,n=h.current;t&&n&&t.offsetTop<n.offsetHeight+n.scrollTop&&t.offsetTop+t.offsetHeight>n.scrollTop&&(null===(e=y.current)||void 0===e||e.focus())}),[h]),x=t.useCallback((function(){l&&m||(null==u||u(),v())}),[v,m,l,u]),w=t.useCallback((function(){var e;l&&m||(null==c||c(),null===(e=y.current)||void 0===e||e.blur())}),[m,l,c]);return t.useEffect((function(){return function(){return removeEventListener("keydown",b)}}),[b]),_.default.createElement(WU,{ref:y,tabIndex:s?0:-1,onClick:s,active:r,key:p,onMouseLeave:w,onMouseOver:x,onFocus:function(){addEventListener("keydown",b)},onBlur:function(){removeEventListener("keydown",b)},showActionOnHover:f,"data-grouped-list-item":i},o&&_.default.createElement(HU,I({},o,{fixedWidth:!0})),p?_.default.createElement(zU,null,p):_.default.createElement(BU,null,d),n&&_.default.createElement(UU,null,n))},zU=$.default.div(vU||(vU=H(["\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n flex-grow: 1;\n"],["\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n flex-grow: 1;\n"]))),BU=$.default(zU)(xU||(xU=H(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.palette.grey[500]})),HU=$.default(ie)(wU||(wU=H(["\n margin-right: 8px;\n display: inline-flex;\n align-self: center;\n"],["\n margin-right: 8px;\n display: inline-flex;\n align-self: center;\n"]))),UU=$.default.div(kU||(kU=H([""],[""]))),WU=$.default.div(SU||(SU=H(["\n &:focus {\n outline: none !important;\n background-color: ",";\n color: ",";\n cursor: ",";\n }\n\n color: ",";\n font-weight: ",";\n\n line-height: 32px;\n height: 32px;\n left: 0;\n display: flex;\n\n ",";\n"],["\n &:focus {\n outline: none !important;\n background-color: ",";\n color: ",";\n cursor: ",";\n }\n\n color: ",";\n font-weight: ",";\n\n line-height: 32px;\n height: 32px;\n left: 0;\n display: flex;\n\n ",";\n"])),(function(e){return e.theme.palette.blue[50]}),(function(e){return e.theme.palette.blue[500]}),(function(e){return e.onClick?"pointer":"initial"}),(function(e){var t=e.active,n=e.theme;return t?n.palette.blue[500]:"initial"}),(function(e){return e.active?500:"initial"}),(function(e){return e.showActionOnHover?n.css(CU||(CU=H(["\n "," {\n display: none;\n }\n\n &:focus {\n "," {\n display: inherit;\n }\n }\n "],["\n "," {\n display: none;\n }\n\n &:focus {\n "," {\n display: inherit;\n }\n }\n "])),UU,UU):n.css(_U||(_U=H([""],[""])))})),VU=function(e){var t=e.noResults,n=e.title;return _.default.createElement(YU,{noResults:t,key:n},n.toUpperCase(),t&&_.default.createElement(qU,null,"(nessun risultato)"))},YU=$.default.div(EU||(EU=H(["\n &:not(:first-child) {\n margin-top: 16px;\n }\n\n margin-bottom: 1px;\n ",";\n height: 32px;\n padding-left: 8px;\n line-height: 32px;\n font-size: 11px;\n\n color: ",";\n font-weight: 500;\n cursor: initial;\n"],["\n &:not(:first-child) {\n margin-top: 16px;\n }\n\n margin-bottom: 1px;\n ",";\n height: 32px;\n padding-left: 8px;\n line-height: 32px;\n font-size: 11px;\n\n color: ",";\n font-weight: 500;\n cursor: initial;\n"])),(function(e){var t=e.noResults,r=e.theme;return!0===t?n.css($U||($U=H(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r.palette.grey[50]):void 0}),(function(e){return e.theme.palette.grey[700]})),qU=$.default.span(TU||(TU=H(["\n margin-left: 3px;\n color: ",";\n font-weight: 400;\n font-size: 13px;\n"],["\n margin-left: 3px;\n color: ",";\n font-weight: 400;\n font-size: 13px;\n"])),(function(e){return e.theme.palette.grey[700]})),GU=function(e){var t=e.index,n=e.items,r=e.title,o=F(e,["index","items","title"]);return _.default.createElement(_.default.Fragment,null,_.default.createElement(VU,{title:r,noResults:!n.length}),n.map((function(e,n){return _.default.createElement(LU,I({key:n,index:t+n},e,o))})))},KU=$.default.div(DU||(DU=H(["\n cursor: pointer;\n"],["\n cursor: pointer;\n"])));exports.InlineMessageType=void 0,(MU=exports.InlineMessageType||(exports.InlineMessageType={})).STANDARD="standard",MU.ERROR="error",MU.INFO="info",MU.WARNING="warning",MU.SUCCESS="success";var XU,QU,ZU,JU,eW,tW,nW,rW,oW,iW,aW,lW,sW,uW=$.default.div(XU||(XU=H(["\n margin-top: 0;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n margin-bottom: ",";\n"],["\n margin-top: 0;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n margin-bottom: ",";\n"])),hd.xxs),cW=$.default.div(QU||(QU=H(["\n font-weight: normal;\n font-size: 14px;\n line-height: 21px;\n color: ",";\n"],["\n font-weight: normal;\n font-size: 14px;\n line-height: 21px;\n color: ",";\n"])),(function(e){var t=e.theme,n=e.type;return t.components.inlineMessage[n||exports.InlineMessageType.STANDARD].content})),dW=$.default.div(nW||(nW=H(["\n display: flex;\n border: 1px solid rgba(51, 51, 51, 0.08);\n border-color: ",";\n border-radius: 4px;\n color: ",";\n background-color: ",";\n ","\n"],["\n display: flex;\n border: 1px solid rgba(51, 51, 51, 0.08);\n border-color: ",";\n border-radius: 4px;\n color: ",";\n background-color: ",";\n ","\n"])),(function(e){var t=e.theme,n=e.type;return t.components.inlineMessage[n||exports.InlineMessageType.STANDARD].border}),(function(e){var t=e.theme,n=e.type;return t.components.inlineMessage[n||exports.InlineMessageType.STANDARD].title}),(function(e){var t=e.theme,n=e.type;return t.components.inlineMessage[n||exports.InlineMessageType.STANDARD].background}),(function(e){var t=e.size;return n.css(tW||(tW=H(["\n ","\n "],["\n ","\n "])),function(e){switch(e){case"medium":return n.css(ZU||(ZU=H(["\n padding: ",";\n "],["\n padding: ",";\n "])),hd.s);case"large":return n.css(JU||(JU=H(["\n padding: ",";\n "," {\n font-size: 16px;\n line-height: 18px;\n margin-bottom: ",";\n }\n "," {\n font-size: 14px;\n line-height: 21px;\n }\n "],["\n padding: ",";\n "," {\n font-size: 16px;\n line-height: 18px;\n margin-bottom: ",";\n }\n "," {\n font-size: 14px;\n line-height: 21px;\n }\n "])),hd.m,uW,hd.xs,cW);default:return n.css(eW||(eW=H(["\n padding: ",";\n "],["\n padding: ",";\n "])),hd.m)}}(t))})),fW=$.default.div(rW||(rW=H(["\n margin-left: ",";\n flex: 1;\n"],["\n margin-left: ",";\n flex: 1;\n"])),(function(e){return e.margin?hd.s:"0px"})),pW=$.default.div(oW||(oW=H(["\n line-height: 20px;\n display: flex;\n align-items: center;\n"],["\n line-height: 20px;\n display: flex;\n align-items: center;\n"]))),hW=$.default(ie)(iW||(iW=H(["\n cursor: pointer;\n color: ",";\n"],["\n cursor: pointer;\n color: ",";\n"])),(function(e){return e.theme.palette.black[48]})),mW=$.default(wn)(aW||(aW=H(["\n margin: 8px;\n min-width: 100px;\n max-height: 32px;\n align-self: center;\n font-size: 14px;\n"],["\n margin: 8px;\n min-width: 100px;\n max-height: 32px;\n align-self: center;\n font-size: 14px;\n"]))),gW=function(e){switch(e){default:case exports.InlineMessageType.STANDARD:return"grey";case exports.InlineMessageType.ERROR:return"red";case exports.InlineMessageType.WARNING:return"yellow";case exports.InlineMessageType.SUCCESS:return"green";case exports.InlineMessageType.INFO:return"blue"}},yW={icon:s.faTimes},bW={standard:o.faSpinnerThird,error:o.faExclamationCircle,info:o.faInfoCircle,warning:o.faExclamationTriangle,success:o.faCheckCircle},vW=function(e){var t,n,r,o,i,a,l,s,u,c=e.closeIcon,d=e.content,f=e.icon,p=e.onClose,h=e.renderCloseIcon,m=e.renderContent,g=e.renderIcon,y=e.renderTitle,b=e.title,v=e.type,x=e.actionLabel,w=e.onActionClick,k=null!=f?f:{icon:bW[v||exports.InlineMessageType.STANDARD],spin:v===exports.InlineMessageType.STANDARD||void 0===v},C=y?y():b;return _.default.createElement(_.default.Fragment,null,_.default.createElement("div",{style:null!==(n=null===(t=null==e?void 0:e.componentStyle)||void 0===t?void 0:t.icon)&&void 0!==n?n:{}},g?g():k?_.default.createElement(ie,I({},k)):null),_.default.createElement(fW,{style:null!==(o=null===(r=null==e?void 0:e.componentStyle)||void 0===r?void 0:r.contentWrapper)&&void 0!==o?o:{},margin:void 0!==g||void 0!==k},C?_.default.createElement(uW,{style:null!==(a=null===(i=null==e?void 0:e.componentStyle)||void 0===i?void 0:i.title)&&void 0!==a?a:{}},C):null,_.default.createElement(cW,{type:v,style:null!==(s=null===(l=null==e?void 0:e.componentStyle)||void 0===l?void 0:l.content)&&void 0!==s?s:{}},m?m():d)),x&&_.default.createElement(mW,{text:x,onClick:w,type:"primary",size:"medium",color:gW(null!==(u=e.type)&&void 0!==u?u:exports.InlineMessageType.STANDARD)}),p&&_.default.createElement(pW,{onClick:p},h?h():_.default.createElement(hW,I({},c||yW,{fixedWidth:!0}))))},xW=(J.red[50],J.red[500],J.red[400],J.red[100],J.yellow[50],J.red[400],J.red[300],J.yellow[100],J.green[50],J.green[500],J.green[400],J.green[100],J.blue[50],J.blue[500],J.blue[400],J.blue[100],J.grey[100],J.black[100],J.black[80],J.black[8],$.default.div.attrs((function(e){var t=e.theme,n=e.type;return t.components.microTag[n]}))(lW||(lW=H(["\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n display: inline-block;\n padding: 0 4px;\n border-radius: 4px;\n text-transform: uppercase;\n white-space: nowrap;\n color: ",";\n background-color: ",";\n"],["\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n display: inline-block;\n padding: 0 4px;\n border-radius: 4px;\n text-transform: uppercase;\n white-space: nowrap;\n color: ",";\n background-color: ",";\n"])),(function(e){return e.color}),(function(e){return e.backgroundColor}))),wW=function(e){var t=e.text,n=e.type;return _.default.createElement(xW,{type:n},t)};J.red[50],J.red[500],J.blue[50],J.blue[500],J.grey[50],J.grey[500],J.green[50],J.green[500],J.yellow[50],J.yellow[500];exports.BadgeType=void 0,(sW=exports.BadgeType||(exports.BadgeType={})).STANDARD="standard",sW.ERROR="error",sW.INFO="info",sW.WARNING="warning",sW.SUCCESS="success";var kW,CW,_W,SW=$.default.div(kW||(kW=H(["\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 4px;\n margin: 3px 0;\n max-height: 24px;\n\n padding-left: ",";\n padding-right: ",";\n\n color: ",";\n background-color: ",";\n"],["\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 4px;\n margin: 3px 0;\n max-height: 24px;\n\n padding-left: ",";\n padding-right: ",";\n\n color: ",";\n background-color: ",";\n"])),(function(e){var t=e.imageUrl;return e.leftIcon||t?"8px":"0"}),(function(e){return e.rightIcon?"8px":"0"}),(function(e){var t=e.theme,n=e.type;return t.components.badge[null!=n?n:exports.BadgeType.SUCCESS].color}),(function(e){var t=e.theme,n=e.type;return t.components.badge[null!=n?n:exports.BadgeType.SUCCESS].backgroundColor})),$W=$.default.div(CW||(CW=H(["\n padding: "," ",";\n"],["\n padding: "," ",";\n"])),hd.xxs,hd.xs);J.grey[900],J.grey[50],J.yellow[900],J.yellow[50],J.green[900],J.green[50],J.blue[900],J.blue[50],J.red[900],J.red[50];exports.BannerType=void 0,(_W=exports.BannerType||(exports.BannerType={})).STANDARD="standard",_W.ERROR="error",_W.INFO="info",_W.WARNING="warning",_W.SUCCESS="success";var EW,TW,DW,MW,OW,RW=$.default.div(EW||(EW=H(["\n color: ",";\n background-color: ",";\n padding: 10px 20px 10px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n z-index: 11;\n"],["\n color: ",";\n background-color: ",";\n padding: 10px 20px 10px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n z-index: 11;\n"])),(function(e){var t=e.theme,n=e.type;return t.components.banner[null!=n?n:exports.BannerType.STANDARD].color}),(function(e){var t=e.theme,n=e.type;return t.components.banner[null!=n?n:exports.BannerType.STANDARD].backgroundColor})),PW=$.default.div(TW||(TW=H(["\n flex-grow: 1;\n"],["\n flex-grow: 1;\n"])));J.white[100],J.blue[500],J.white[100],J.yellow[500],J.white[100],J.green[500],J.black[100],J.grey[200],J.white[100],J.red[500],J.grey[300],J.grey[300],J.white[100],J.grey[100],J.grey[50],J.grey[50],J.yellow[500],J.yellow[500],J.yellow[50],J.yellow[500],J.red[500],J.red[500],J.red[50],J.red[500],J.blue[500],J.blue[500],J.blue[50],J.blue[500],J.green[500],J.green[500],J.green[50],J.green[500];exports.CardType=void 0,(DW=exports.CardType||(exports.CardType={})).PRIMARY="primary",DW.SECONDARY="secondary",exports.CardColor=void 0,(MW=exports.CardColor||(exports.CardColor={})).BLUE="blue",MW.GREEN="green",MW.GREY="grey",MW.RED="red",MW.TRANSPARENT="transparent",MW.YELLOW="yellow",exports.CardElevation=void 0,(OW=exports.CardElevation||(exports.CardElevation={}))[OW.FLAT=0]="FLAT",OW[OW.LOW=1]="LOW",OW[OW.HIGH=2]="HIGH";var NW,AW,IW,FW,jW=$.default.div(IW||(IW=H(["\n overflow: hidden;\n padding: 16px;\n border-radius: 8px;\n ","\n\n ","\n"],["\n overflow: hidden;\n padding: 16px;\n border-radius: 8px;\n ","\n\n ","\n"])),(function(e){var t=e.color,r=e.theme,o=e.type;return n.css(NW||(NW=H(["\n background-color: ",";\n border: 1px solid ",";\n "],["\n background-color: ",";\n border: 1px solid ",";\n "])),r.components.card[t][o].background,r.components.card[t][o].border)}),(function(e){var t=e.elevation;return t>0&&n.css(AW||(AW=H(["\n border: none;\n box-shadow: 0px ","px ","px rgba(51, 51, 51, 0.12),\n ","px ","px ","px rgba(51, 51, 51, 0.24);\n "],["\n border: none;\n box-shadow: 0px ","px ","px rgba(51, 51, 51, 0.12),\n ","px ","px ","px rgba(51, 51, 51, 0.24);\n "])),1*t,3*t,1*t,2*t,5*t)})),LW=t.forwardRef((function(e,t){var n=e.children,r=e.color,o=void 0===r?exports.CardColor.GREY:r,i=e.elevation,a=void 0===i?0:i,l=e.type,s=void 0===l?exports.CardType.PRIMARY:l,u=F(e,["children","color","elevation","type"]);return _.default.createElement(jW,I({ref:t,color:o,elevation:null!=a?a:0,type:s},u),n)}));exports.ChipType=void 0,(FW=exports.ChipType||(exports.ChipType={})).STANDARD="standard",FW.ERROR="error",FW.INFO="info",FW.WARNING="warning",FW.SUCCESS="success";var zW,BW,HW,UW,WW,VW,YW,qW,GW=$.default(ie)(zW||(zW=H(["\n margin-right: 4px;\n"],["\n margin-right: 4px;\n"]))),KW=$.default(ie)(BW||(BW=H(["\n cursor: pointer;\n margin-left: 4px;\n"],["\n cursor: pointer;\n margin-left: 4px;\n"]))),XW=$.default.div(HW||(HW=H([""],[""]))),QW=$.default.div(VW||(VW=H(["\n border-radius: 100px;\n display: inline-flex;\n align-items: center;\n font-size: 14px;\n line-height: 1em;\n white-space: nowrap;\n padding: 5px ",";\n\n ","\n\n ","\n"],["\n border-radius: 100px;\n display: inline-flex;\n align-items: center;\n font-size: 14px;\n line-height: 1em;\n white-space: nowrap;\n padding: 5px ",";\n\n ","\n\n ","\n"])),hd.xs,(function(e){var t=e.theme,r=e.type,o=void 0===r?exports.ChipType.STANDARD:r;return n.css(UW||(UW=H(["\n background-color: ",";\n color: ",";\n "],["\n background-color: ",";\n color: ",";\n "])),t.components.chip[o].backgroundColor,t.components.chip[o].color)}),(function(e){var t=e.statusEdit,r=e.theme,o=e.type,i=void 0===o?exports.ChipType.STANDARD:o;if(t)return n.css(WW||(WW=H(["\n &:hover {\n background-color: ",";\n }\n &:active {\n background-color: ",";\n }\n "],["\n &:hover {\n background-color: ",";\n }\n &:active {\n background-color: ",";\n }\n "])),r.components.chip[i].hover,r.components.chip[i].active)}));J.black[100],J.grey[100],J.grey[200],J.grey[300],J.green[900],J.green[100],J.green[200],J.green[300],J.blue[900],J.blue[100],J.blue[200],J.blue[300],J.yellow[900],J.yellow[100],J.yellow[200],J.yellow[300],J.red[900],J.red[100],J.red[200],J.red[300],J.white[100],J.grey[500],J.white[100],J.yellow[500],J.white[100],J.green[500],J.white[100],J.blue[500],J.white[100],J.red[500],J.white[100],J.grey[200];exports.BadgeSize=void 0,(YW=exports.BadgeSize||(exports.BadgeSize={})).EXTRA_EXTRA_SMALL="extra-extra-small",YW.EXTRA_SMALL="extra-small",YW.SMALL="small",YW.MEDIUM="medium",YW.LARGE="large",exports.FloatingBadgeType=void 0,(qW=exports.FloatingBadgeType||(exports.FloatingBadgeType={})).STANDARD="standard",qW.ERROR="error",qW.INFO="info",qW.WARNING="warning",qW.SUCCESS="success",qW.DISABLED="disabled";var ZW,JW,eV,tV,nV,rV,oV,iV,aV,lV,sV,uV=$.default.span(rV||(rV=H(["\n display: block;\n text-align: center;\n width: fit-content;\n padding: 2px;\n white-space: nowrap;\n font-style: normal;\n font-weight: 500;\n\n background-color: ",";\n color: ",";\n\n ",";\n"],["\n display: block;\n text-align: center;\n width: fit-content;\n padding: 2px;\n white-space: nowrap;\n font-style: normal;\n font-weight: 500;\n\n background-color: ",";\n color: ",";\n\n ",";\n"])),(function(e){var t=e.theme,n=e.type;return t.components.floatingBadge[null!=n?n:exports.FloatingBadgeType.STANDARD].backgroundColor}),(function(e){var t=e.theme,n=e.type;return t.components.floatingBadge[null!=n?n:exports.FloatingBadgeType.STANDARD].color}),(function(e){return function(e){switch(e){case exports.BadgeSize.EXTRA_EXTRA_SMALL:return n.css(ZW||(ZW=H(["\n height: 4px;\n min-width: 4px;\n border-radius: 4px;\n font-size: 4px;\n line-height: 4px;\n "],["\n height: 4px;\n min-width: 4px;\n border-radius: 4px;\n font-size: 4px;\n line-height: 4px;\n "])));case exports.BadgeSize.EXTRA_SMALL:return n.css(JW||(JW=H(["\n height: 12px;\n min-width: 12px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 12px;\n "],["\n height: 12px;\n min-width: 12px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 12px;\n "])));case exports.BadgeSize.SMALL:return n.css(eV||(eV=H(["\n height: 16px;\n min-width: 16px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 16px;\n "],["\n height: 16px;\n min-width: 16px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 16px;\n "])));case exports.BadgeSize.LARGE:return n.css(tV||(tV=H(["\n height: 24px;\n min-width: 24px;\n border-radius: 14px;\n font-size: 14px;\n line-height: 24px;\n "],["\n height: 24px;\n min-width: 24px;\n border-radius: 14px;\n font-size: 14px;\n line-height: 24px;\n "])));default:return n.css(nV||(nV=H(["\n height: 20px;\n min-width: 20px;\n border-radius: 12px;\n font-size: 12px;\n line-height: 20px;\n "],["\n height: 20px;\n min-width: 20px;\n border-radius: 12px;\n font-size: 12px;\n line-height: 20px;\n "])))}}(e.size)})),cV=$.default(uV)(lV||(lV=H(["\n position: absolute;\n ",";\n top: ",";\n right: ",";\n padding: 0;\n\n &:after {\n content: '","';\n\n position: static;\n margin: 1px 2px;\n display: block;\n text-align: center;\n }\n"],["\n position: absolute;\n ",";\n top: ",";\n right: ",";\n padding: 0;\n\n &:after {\n content: '","';\n\n position: static;\n margin: 1px 2px;\n display: block;\n text-align: center;\n }\n"])),(function(e){return function(e){switch(e){case"small":return n.css(oV||(oV=H(["\n top: 3px;\n right: 3px;\n "],["\n top: 3px;\n right: 3px;\n "])));case"large":return n.css(iV||(iV=H(["\n top: -1px;\n right: -1px;\n "],["\n top: -1px;\n right: -1px;\n "])));default:return n.css(aV||(aV=H(["\n top: 1px;\n right: 1px;\n "],["\n top: 1px;\n right: 1px;\n "])))}}(e.size)}),(function(e){var t=e.top;return void 0!==t?t+"px":void 0}),(function(e){var t=e.right;return void 0!==t?t+"px":void 0}),(function(e){return e.counter})),dV=function(e){var t=e.children,n=F(e,["children"]);return _.default.createElement(fV,null,t,!n.isDisabled&&_.default.createElement(cV,I({},n)))},fV=$.default.div(sV||(sV=H(["\n display: inline-block;\n position: relative;\n"],["\n display: inline-block;\n position: relative;\n"]))),pV={},hV={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",l="string",s="major",u="model",c="name",d="type",f="vendor",p="version",h="architecture",m="console",g="mobile",y="tablet",b="smarttv",v="wearable",x="embedded",w="Amazon",k="Apple",C="ASUS",_="BlackBerry",S="Browser",$="Chrome",E="Firefox",T="Google",D="Huawei",M="LG",O="Microsoft",R="Motorola",P="Opera",N="Samsung",A="Sharp",I="Sony",F="Xiaomi",j="Zebra",L="Facebook",z="Chromium OS",B="Mac OS",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},U=function(e,t){return typeof e===l&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,350)},Y=function(e,t){for(var n,i,l,s,u,c,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(n=i=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(e))for(l=0;l<p.length;l++)c=u[++i],typeof(s=p[l])===a&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):r:this[s[0]]=c?s[1].call(this,c,s[2]):r:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):r):this[s]=c||r;d+=2}},q=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(U(t[n][o],e))return"?"===n?r:n}else if(U(t[n],e))return"?"===n?r:n;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},K={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,p],[/opios[\/ ]+([\w\.]+)/i],[p,[c,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[c,P]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[c,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+S],p],[/\bfocus\/([\w\.]+)/i],[p,[c,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[c,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[c,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[c,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[p,[c,E]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+S]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+S],p],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,L],p],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[c,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[c,$+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,$+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[c,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[p,q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[c,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[c,p],[/(cobalt)\/([\w\.]+)/i],[c,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,W]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",W]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,W]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[f,N],[d,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,N],[d,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[f,k],[d,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,k],[d,y]],[/(macintosh);/i],[u,[f,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,A],[d,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[f,D],[d,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[f,D],[d,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[f,F],[d,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[f,F],[d,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[f,"OPPO"],[d,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[d,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[f,"Realme"],[d,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[f,R],[d,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,R],[d,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,M],[d,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,M],[d,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[f,"Lenovo"],[d,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[f,"Nokia"],[d,g]],[/(pixel c)\b/i],[u,[f,T],[d,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,T],[d,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[f,I],[d,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,I],[d,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,"OnePlus"],[d,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,w],[d,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[f,w],[d,g]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[d,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,_],[d,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,C],[d,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,C],[d,g]],[/(nexus 9)/i],[u,[f,"HTC"],[d,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[d,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[d,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[d,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,u,[d,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,u,[d,y]],[/(surface duo)/i],[u,[f,O],[d,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[d,g]],[/(u304aa)/i],[u,[f,"AT&T"],[d,g]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[d,g]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[d,y]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[d,y]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[d,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[d,y]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[d,y]],[/\b(k88) b/i],[u,[f,"ZTE"],[d,y]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[d,g]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[d,g]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[d,y]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[d,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[d,y]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[d,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[d,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[d,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[d,g]],[/\b(ph-1) /i],[u,[f,"Essential"],[d,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[d,y]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[d,y]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[d,y]],[/(shield[\w ]+) b/i],[u,[f,"Nvidia"],[d,y]],[/(sprint) (\w+)/i],[f,u,[d,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,O],[d,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,j],[d,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,j],[d,g]],[/smart-tv.+(samsung)/i],[f,[d,b]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,N],[d,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,M],[d,b]],[/(apple) ?tv/i],[f,[u,k+" TV"],[d,b]],[/crkey/i],[[u,$+"cast"],[f,T],[d,b]],[/droid.+aft(\w)( bui|\))/i],[u,[f,w],[d,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[f,A],[d,b]],[/(bravia[\w ]+)( bui|\))/i],[u,[f,I],[d,b]],[/(mitv-\w{5}) bui/i],[u,[f,F],[d,b]],[/Hbbtv.*(technisat) (.*);/i],[f,u,[d,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,V],[u,V],[d,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[d,m]],[/droid.+; (shield) bui/i],[u,[f,"Nvidia"],[d,m]],[/(playstation [345portablevi]+)/i],[u,[f,I],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,O],[d,m]],[/((pebble))app/i],[f,u,[d,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[f,k],[d,v]],[/droid.+; (glass) \d/i],[u,[f,T],[d,v]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,j],[d,v]],[/(quest( 2| pro)?)/i],[u,[f,L],[d,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[d,x]],[/(aeobc)\b/i],[u,[f,w],[d,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[d,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[d,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,g]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[p,q,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,"Windows"],[p,q,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,B],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,p],[/\(bb(10);/i],[p,[c,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[c,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[c,$+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,z],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,p],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,p]]},X=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof X))return new X(e,t).getResult();var m=typeof n!==i&&n.navigator?n.navigator:r,b=e||(m&&m.userAgent?m.userAgent:""),v=m&&m.userAgentData?m.userAgentData:r,x=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(K,t):K,w=m&&m.userAgent==b;return this.getBrowser=function(){var e,t={};return t[c]=r,t[p]=r,Y.call(t,b,x.browser),t[s]=typeof(e=t[p])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:r,w&&m&&m.brave&&typeof m.brave.isBrave==o&&(t[c]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,Y.call(e,b,x.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[u]=r,e[d]=r,Y.call(e,b,x.device),w&&!e[d]&&v&&v.mobile&&(e[d]=g),w&&"Macintosh"==e[u]&&m&&typeof m.standalone!==i&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[u]="iPad",e[d]=y),e},this.getEngine=function(){var e={};return e[c]=r,e[p]=r,Y.call(e,b,x.engine),e},this.getOS=function(){var e={};return e[c]=r,e[p]=r,Y.call(e,b,x.os),w&&!e[c]&&v&&"Unknown"!=v.platform&&(e[c]=v.platform.replace(/chrome os/i,z).replace(/macos/i,B)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return b},this.setUA=function(e){return b=typeof e===l&&e.length>350?V(e,350):e,this},this.setUA(b),this};X.VERSION="1.0.35",X.BROWSER=H([c,p,s]),X.CPU=H([h]),X.DEVICE=H([u,f,d,m,g,b,y,v,x]),X.ENGINE=X.OS=H([c,p]),e.exports&&(t=e.exports=X),t.UAParser=X;var Q=typeof n!==i&&(n.jQuery||n.Zepto);if(Q&&!Q.ua){var Z=new X;Q.ua=Z.getResult(),Q.ua.get=function(){return Z.getUA()},Q.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"==typeof window?window:bd)}(hV,hV.exports),Object.defineProperty(pV,"__esModule",{value:!0});var mV,gV=_.default,yV=(mV=gV)&&"object"==typeof mV&&"default"in mV?mV.default:mV,bV=hV.exports,vV=new bV,xV=vV.getBrowser(),wV=vV.getCPU(),kV=vV.getDevice(),CV=vV.getEngine(),_V=vV.getOS(),SV=vV.getUA(),$V=function(e){return vV.setUA(e)},EV=function(e){if(e){var t=new bV(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}console.error("No userAgent string was provided")},TV=Object.freeze({ClientUAInstance:vV,browser:xV,cpu:wV,device:kV,engine:CV,os:_V,ua:SV,setUa:$V,parseUserAgent:EV});function DV(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 MV(e){return MV="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},MV(e)}function OV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function RV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PV(){return PV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PV.apply(this,arguments)}function NV(e){return NV=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},NV(e)}function AV(e,t){return AV=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},AV(e,t)}function IV(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function FV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jV(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return LV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LV(e,t)}(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 LV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zV="mobile",BV="tablet",HV="smarttv",UV="console",WV="wearable",VV="embedded",YV=void 0,qV={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},GV={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},KV={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},XV=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},QV=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},ZV=function(e){var t=QV();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},JV=function(e,t,n,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DV(Object(n),!0).forEach((function(t){RV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{vendor:XV(t.vendor),model:XV(t.model),os:XV(n.name),osVersion:XV(n.version),ua:XV(r)})};var eY=function(e){return e.type===zV},tY=function(e){return e.type===BV},nY=function(e){var t=e.type;return t===zV||t===BV},rY=function(e){return e.type===HV},oY=function(e){return e.type===YV},iY=function(e){return e.type===WV},aY=function(e){return e.type===UV},lY=function(e){return e.type===VV},sY=function(e){var t=e.vendor;return XV(t)},uY=function(e){var t=e.model;return XV(t)},cY=function(e){var t=e.type;return XV(t,"browser")},dY=function(e){return e.name===GV.Android},fY=function(e){return e.name===GV.Windows},pY=function(e){return e.name===GV.MAC_OS},hY=function(e){return e.name===GV.WindowsPhone},mY=function(e){return e.name===GV.IOS},gY=function(e){var t=e.version;return XV(t)},yY=function(e){var t=e.name;return XV(t)},bY=function(e){return e.name===qV.Chrome},vY=function(e){return e.name===qV.Firefox},xY=function(e){return e.name===qV.Chromium},wY=function(e){return e.name===qV.Edge},kY=function(e){return e.name===qV.Yandex},CY=function(e){var t=e.name;return t===qV.Safari||t===qV.MobileSafari},_Y=function(e){return e.name===qV.MobileSafari},SY=function(e){return e.name===qV.Opera},$Y=function(e){var t=e.name;return t===qV.InternetExplorer||t===qV.Ie},EY=function(e){return e.name===qV.MIUI},TY=function(e){return e.name===qV.SamsungBrowser},DY=function(e){var t=e.version;return XV(t)},MY=function(e){var t=e.major;return XV(t)},OY=function(e){var t=e.name;return XV(t)},RY=function(e){var t=e.name;return XV(t)},PY=function(e){var t=e.version;return XV(t)},NY=function(){var e=QV(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},AY=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},IY=function(){var e=QV();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},FY=function(){return ZV("iPad")},jY=function(){return ZV("iPhone")},LY=function(){return ZV("iPod")},zY=function(e){return XV(e)};function BY(e){var t=e||TV,n=t.device,r=t.browser,o=t.os,i=t.engine,a=t.ua;return{isSmartTV:rY(n),isConsole:aY(n),isWearable:iY(n),isEmbedded:lY(n),isMobileSafari:_Y(r)||FY(),isChromium:xY(r),isMobile:nY(n)||FY(),isMobileOnly:eY(n),isTablet:tY(n)||FY(),isBrowser:oY(n),isDesktop:oY(n),isAndroid:dY(o),isWinPhone:hY(o),isIOS:mY(o)||FY(),isChrome:bY(r),isFirefox:vY(r),isSafari:CY(r),isOpera:SY(r),isIE:$Y(r),osVersion:gY(o),osName:yY(o),fullBrowserVersion:DY(r),browserVersion:MY(r),browserName:OY(r),mobileVendor:sY(n),mobileModel:uY(n),engineName:RY(i),engineVersion:PY(i),getUA:zY(a),isEdge:wY(r)||AY(a),isYandex:kY(r),deviceType:cY(n),isIOS13:IY(),isIPad13:FY(),isIPhone13:jY(),isIPod13:LY(),isElectron:NY(),isEdgeChromium:AY(a),isLegacyEdge:wY(r)&&!AY(a),isWindows:fY(o),isMacOs:pY(o),isMIUI:EY(r),isSamsungBrowser:TY(r)}}var HY=rY(kV),UY=aY(kV),WY=iY(kV),VY=lY(kV),YY=_Y(xV)||FY(),qY=xY(xV),GY=nY(kV)||FY(),KY=eY(kV),XY=tY(kV)||FY(),QY=oY(kV),ZY=oY(kV),JY=dY(_V),eq=hY(_V),tq=mY(_V)||FY(),nq=bY(xV),rq=vY(xV),oq=CY(xV),iq=SY(xV),aq=$Y(xV),lq=gY(_V),sq=yY(_V),uq=DY(xV),cq=MY(xV),dq=OY(xV),fq=sY(kV),pq=uY(kV),hq=RY(CV),mq=PY(CV),gq=zY(SV),yq=wY(xV)||AY(SV),bq=kY(xV),vq=cY(kV),xq=IY(),wq=FY(),kq=jY(),Cq=LY(),_q=NY(),Sq=AY(SV),$q=wY(xV)&&!AY(SV),Eq=fY(_V),Tq=pY(_V),Dq=EY(xV),Mq=TY(xV);function Oq(e){var t=e||window.navigator.userAgent;return EV(t)}pV.AndroidView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return JY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.BrowserTypes=qV,pV.BrowserView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return QY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.ConsoleView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return UY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.CustomView=function(e){var t=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var r=e.condition,o=IV(e,["renderWithFragment","children","viewClassName","style","condition"]);return r?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",o,n):null},pV.IEView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return aq?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.IOSView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return tq?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.MobileOnlyView=function(e){var t=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var r=IV(e,["renderWithFragment","children","viewClassName","style"]);return KY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.MobileView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return GY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.OsTypes=GV,pV.SmartTVView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return HY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.TabletView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return XY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.WearableView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return WY?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.WinPhoneView=function(e){var t=e.renderWithFragment,n=e.children,r=IV(e,["renderWithFragment","children"]);return eq?t?yV.createElement(gV.Fragment,null,n):yV.createElement("div",r,n):null},pV.browserName=dq,pV.browserVersion=cq,pV.deviceDetect=function(e){var t=e?EV(e):TV,n=t.device,r=t.browser,o=t.engine,i=t.os,a=t.ua,l=function(e){switch(e){case zV:return{isMobile:!0};case BV:return{isTablet:!0};case HV:return{isSmartTV:!0};case UV:return{isConsole:!0};case WV:return{isWearable:!0};case YV:return{isBrowser:!0};case VV:return{isEmbedded:!0};default:return KV}}(n.type),s=l.isBrowser,u=l.isMobile,c=l.isTablet,d=l.isSmartTV,f=l.isConsole,p=l.isWearable,h=l.isEmbedded;return s?function(e,t,n,r,o){return{isBrowser:e,browserMajorVersion:XV(t.major),browserFullVersion:XV(t.version),browserName:XV(t.name),engineName:XV(n.name),engineVersion:XV(n.version),osName:XV(r.name),osVersion:XV(r.version),userAgent:XV(o)}}(s,r,o,i,a):d?function(e,t,n,r){return{isSmartTV:e,engineName:XV(t.name),engineVersion:XV(t.version),osName:XV(n.name),osVersion:XV(n.version),userAgent:XV(r)}}(d,o,i,a):f?function(e,t,n,r){return{isConsole:e,engineName:XV(t.name),engineVersion:XV(t.version),osName:XV(n.name),osVersion:XV(n.version),userAgent:XV(r)}}(f,o,i,a):u||c?JV(l,n,i,a):p?function(e,t,n,r){return{isWearable:e,engineName:XV(t.name),engineVersion:XV(t.version),osName:XV(n.name),osVersion:XV(n.version),userAgent:XV(r)}}(p,o,i,a):h?function(e,t,n,r,o){return{isEmbedded:e,vendor:XV(t.vendor),model:XV(t.model),engineName:XV(n.name),engineVersion:XV(n.version),osName:XV(r.name),osVersion:XV(r.version),userAgent:XV(o)}}(h,n,o,i,a):void 0},pV.deviceType=vq,pV.engineName=hq,pV.engineVersion=mq,pV.fullBrowserVersion=uq,pV.getSelectorsByUserAgent=function(e){if(e&&"string"==typeof e){var t=EV(e);return BY({device:t.device,browser:t.browser,os:t.os,engine:t.engine,ua:t.ua})}console.error("No valid user agent string was provided")},pV.getUA=gq,pV.isAndroid=JY,pV.isBrowser=QY,pV.isChrome=nq,pV.isChromium=qY,pV.isConsole=UY,pV.isDesktop=ZY,pV.isEdge=yq,pV.isEdgeChromium=Sq,pV.isElectron=_q,pV.isEmbedded=VY,pV.isFirefox=rq,pV.isIE=aq,pV.isIOS=tq,pV.isIOS13=xq,pV.isIPad13=wq,pV.isIPhone13=kq,pV.isIPod13=Cq,pV.isLegacyEdge=$q,pV.isMIUI=Dq;var Rq=pV.isMacOs=Tq;pV.isMobile=GY,pV.isMobileOnly=KY,pV.isMobileSafari=YY,pV.isOpera=iq;var Pq=pV.isSafari=oq;pV.isSamsungBrowser=Mq,pV.isSmartTV=HY,pV.isTablet=XY,pV.isWearable=WY,pV.isWinPhone=eq,pV.isWindows=Eq,pV.isYandex=bq,pV.mobileModel=pq,pV.mobileVendor=fq,pV.osName=sq,pV.osVersion=lq,pV.parseUserAgent=EV,pV.setUserAgent=function(e){return $V(e)},pV.useDeviceData=Oq,pV.useDeviceSelectors=function(e){var t=Oq(e||window.navigator.userAgent);return[BY(t),t]},pV.useMobileOrientation=function(){var e=jV(gV.useState((function(){var e=window.innerWidth>window.innerHeight?90:0;return{isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"}})),2),t=e[0],n=e[1],r=gV.useCallback((function(){var e=window.innerWidth>window.innerHeight?90:0,r={isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"};t.orientation!==r.orientation&&n(r)}),[t.orientation]);return gV.useEffect((function(){return void 0!==("undefined"==typeof window?"undefined":MV(window))&&GY&&(r(),window.addEventListener("load",r,!1),window.addEventListener("resize",r,!1)),function(){window.removeEventListener("resize",r,!1),window.removeEventListener("load",r,!1)}}),[r]),t},pV.withOrientationChange=function(e){return function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t=function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return FV(e)}(this,NV(n).call(this,e)),t.isEventListenerAdded=!1,t.handleOrientationChange=t.handleOrientationChange.bind(FV(t)),t.onOrientationChange=t.onOrientationChange.bind(FV(t)),t.onPageLoad=t.onPageLoad.bind(FV(t)),t.state={isLandscape:!1,isPortrait:!1},t}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&AV(e,t)}(n,yV.Component),r=n,(o=[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var e=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:0===e,isLandscape:90===e})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){void 0!==("undefined"==typeof window?"undefined":MV(window))&&GY&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return yV.createElement(e,PV({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}])&&OV(r.prototype,o),i&&OV(r,i),n}()};var Nq,Aq,Iq,Fq,jq,Lq,zq,Bq,Hq,Uq,Wq,Vq=function(){return _.default.createElement(Yq,{tabIndex:0},_.default.createElement(ie,{icon:o.faEllipsisH,fixedWidth:!0}))},Yq=$.default.div(Nq||(Nq=H(["\n display: flex;\n"],["\n display: flex;\n"]))),qq={margin:"auto",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},Gq=$.default(ie)(Aq||(Aq=H([""],[""]))),Kq=$.default(ie)(Iq||(Iq=H([""],[""]))),Xq=$.default.div(Fq||(Fq=H([""],[""]))),Qq=$.default.div.attrs((function(e){var t=e.tagStyle,n=e.theme,r=e.type;return n.components.tag[t][r]}))(jq||(jq=H(["\n display: inline-flex;\n flex-direction: row;\n border: 4px;\n align-items: center;\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n text-align: center;\n border-radius: 4px;\n padding: 3px 8px;\n color: ",";\n background-color: ",";\n\n "," + "," {\n padding-left: 4px;\n }\n\n "," + "," {\n padding-right: 12px;\n }\n"],["\n display: inline-flex;\n flex-direction: row;\n border: 4px;\n align-items: center;\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n text-align: center;\n border-radius: 4px;\n padding: 3px 8px;\n color: ",";\n background-color: ",";\n\n "," + "," {\n padding-left: 4px;\n }\n\n "," + "," {\n padding-right: 12px;\n }\n"])),(function(e){return e.color}),(function(e){return e.backgroundColor}),Gq,Xq,Xq,Kq),Zq=function(e){var t=e.leftIcon,n=e.rightIcon,r=e.tagStyle,o=e.text,i=e.type,a=e.className;return _.default.createElement(Qq,{className:a,type:i,tagStyle:r},t&&_.default.createElement(Gq,I({},t)),_.default.createElement(Xq,null,o),n&&_.default.createElement(Kq,I({},n)))},Jq=$.default.div(Lq||(Lq=H(["\n transition: transform 250ms ease;\n transform: ",";\n\n visibility: ",";\n"],["\n transition: transform 250ms ease;\n transform: ",";\n\n visibility: ",";\n"])),(function(e){return e.isOpen?"rotate(90deg)":"rotate(0deg)"}),(function(e){return e.isVisible?"visible":"hidden"})),eG=$.default((function(e){var t=e.className,n=e.content,r=e.forceOpen,o=void 0!==r&&r;return _.default.createElement(On,{triggerStyles:qq,className:t,placement:Pq?"bottom-end":"right-start",renderTrigger:Vq,content:n,forceOpen:o})}))(zq||(zq=H(["\n width: 1.5em;\n height: 1.5em;\n border-radius: 2px;\n\n .enter-active {\n z-index: 150;\n }\n\n .enter-done {\n z-index: 150;\n }\n"],["\n width: 1.5em;\n height: 1.5em;\n border-radius: 2px;\n\n .enter-active {\n z-index: 150;\n }\n\n .enter-done {\n z-index: 150;\n }\n"]))),tG=$.default.a.attrs((function(e){var t=e.isActive,n=e.isDisabled,r=e.theme.components.sidebarItem,o=r.normal,i=r.active,a=r.disabled;return n?a:t?i:o}))(Bq||(Bq=H(["\n height: ","px;\n padding: ",";\n text-decoration: none;\n\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 8px;\n\n cursor: pointer;\n\n transition: background-color 250ms ease;\n\n color: ",";\n background-color: ",";\n\n "," {\n display: none;\n }\n\n &:hover,\n &:focus-within {\n text-decoration: none;\n outline: none;\n color: ",";\n background-color: ",";\n\n "," {\n display: inherit;\n\n &:hover {\n background: ",";\n }\n\n &:focus-within {\n background: ",";\n }\n }\n }\n"],["\n height: ","px;\n padding: ",";\n text-decoration: none;\n\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 8px;\n\n cursor: pointer;\n\n transition: background-color 250ms ease;\n\n color: ",";\n background-color: ",";\n\n "," {\n display: none;\n }\n\n &:hover,\n &:focus-within {\n text-decoration: none;\n outline: none;\n color: ",";\n background-color: ",";\n\n "," {\n display: inherit;\n\n &:hover {\n background: ",";\n }\n\n &:focus-within {\n background: ",";\n }\n }\n }\n"])),44,(function(e){return e.withoutPadding?"0":"0 8px"}),(function(e){var t=e.color;return e.customColor||t}),(function(e){return e.background}),eG,(function(e){return e.hoverColor}),(function(e){return e.hoverBackground}),eG,(function(e){return e.dropdownHover}),(function(e){return e.dropdownActive})),nG=$.default.div(Hq||(Hq=H(["\n flex: 1 1 0%;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n flex: 1 1 0%;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))),rG=$.default(ie)(Uq||(Uq=H(["\n visibility: hidden;\n min-width: 1.5em;\n"],["\n visibility: hidden;\n min-width: 1.5em;\n"])));exports.SidebarBadgeConfigType=void 0,(Wq=exports.SidebarBadgeConfigType||(exports.SidebarBadgeConfigType={}))[Wq.COUNTER=0]="COUNTER",Wq[Wq.ICON=1]="ICON",Wq[Wq.DOT=2]="DOT",Wq[Wq.COUNTER_ICON=3]="COUNTER_ICON";J.black[100],J.black[100],J.grey[100],J.grey[400],J.grey[600],J.white[100],J.blue[500],J.white[100],J.blue[500],J.blue[700],J.grey[300],J.grey[100],J.grey[300],J.grey[100];var oG,iG,aG,lG,sG,uG,cG=function(e){return e.map((function(e){var t;return null!==(t=e.getAttribute("data-key"))&&void 0!==t?t:""}))},dG=function(e){return["Preced.","Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre","Success."][e]},fG=Intl.NumberFormat("it-IT",{style:"currency",currency:"EUR",minimumFractionDigits:0}),pG=$.default.div(oG||(oG=H(["\n width: 100%;\n height: 110px;\n position: relative;\n cursor: pointer;\n"],["\n width: 100%;\n height: 110px;\n position: relative;\n cursor: pointer;\n"]))),hG=$.default(fd)(iG||(iG=H(["\n padding: 6px 0 4px 0;\n text-align: center;\n border-bottom: ",";\n color: ",";\n font-weight: ",";\n"],["\n padding: 6px 0 4px 0;\n text-align: center;\n border-bottom: ",";\n color: ",";\n font-weight: ",";\n"])),(function(e){return"1px solid "+e.theme.components.monthlyTab.border}),(function(e){var t=e.theme;return e.selected?t.components.monthlyTab.selected.headerColor:t.components.monthlyTab.standard.headerColor}),(function(e){return e.selected?500:400})),mG=$.default.div(aG||(aG=H(["\n position: absolute;\n top: 35px;\n left: 0;\n right: 0;\n bottom: 0;\n background: ",";\n"],["\n position: absolute;\n top: 35px;\n left: 0;\n right: 0;\n bottom: 0;\n background: ",";\n"])),(function(e){var t=e.percentage,n=e.theme;return t&&"linear-gradient(180deg, transparent "+(100-t)+"%, "+n.components.monthlyTab.fill+" "+(100-t)+"% 100%)"})),gG=$.default.div(lG||(lG=H(["\n position: absolute;\n bottom: 7px;\n right: 8px;\n left: 8px;\n"],["\n position: absolute;\n bottom: 7px;\n right: 8px;\n left: 8px;\n"]))),yG=$.default(fd)(sG||(sG=H(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.components.monthlyTab.expenseColor})),bG=$.default(fd)(uG||(uG=H(["\n color: ",";\n font-weight: 500;\n"],["\n color: ",";\n font-weight: 500;\n"])),(function(e){return e.theme.components.monthlyTab.amountColor})),vG=function(e){var t=e.monthNumber,n=e.percentage,r=e.selected,o=e.documents,i=e.amount,a=e.monthText;return _.default.createElement(pG,{className:"Month"+(r?" Month--selected":""),selected:r,"data-key":t},_.default.createElement(hG,{selected:r},dG(t)),_.default.createElement(mG,{percentage:n,selected:r},_.default.createElement(gG,null,_.default.createElement(yG,null,o," ",a),_.default.createElement(bG,null,fG.format(i)))))},xG=Object.defineProperty,wG=(e,t,n)=>(((e,t,n)=>{t in e?xG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class kG{constructor(){wG(this,"_listeners",new Map),wG(this,"on",this.addEventListener),wG(this,"off",this.removeEventListener),wG(this,"emit",this.dispatchEvent)}addEventListener(e,t){const n=this._listeners.get(e)||new Set;return this._listeners.set(e,n),n.add(t),this}removeEventListener(e,t){var n;return null==(n=this._listeners.get(e))||n.delete(t),this}dispatchEvent(e,...t){let n=!0;for(const r of this._listeners.get(e)||[])n=!1!==r(...t)&&n;return n}unbindAllListeners(){this._listeners.clear()}}const CG=(e,t="px")=>"number"==typeof e?e+t:e;function _G({style:e},t,n){if("object"==typeof t)for(const[n,r]of Object.entries(t))void 0!==r&&(e[n]=CG(r));else void 0!==n&&(e[t]=CG(n))}function SG(e){return(t,n,r,o={})=>{t instanceof HTMLCollection||t instanceof NodeList?t=Array.from(t):Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);for(const i of t)for(const t of n)i[e](t,r,{capture:!1,...o});return[t,n,r,o]}}const $G=SG("addEventListener"),EG=SG("removeEventListener"),TG=e=>{const{clientX:t,clientY:n,target:r}=e.touches&&e.touches[0]||e;return{x:t,y:n,target:r}};function DG(e,t,n="touch"){switch(n){case"center":{const n=t.left+t.width/2,r=t.top+t.height/2;return n>=e.left&&n<=e.right&&r>=e.top&&r<=e.bottom}case"cover":return t.left>=e.left&&t.top>=e.top&&t.right<=e.right&&t.bottom<=e.bottom;case"touch":return e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom}}function MG(e,t=document){const n=Array.isArray(e)?e:[e];let r=[];for(let e=0,o=n.length;e<o;e++){const o=n[e];"string"==typeof o?r=r.concat(Array.from(t.querySelectorAll(o))):o instanceof Element&&r.push(o)}return r}const{abs:OG,max:RG,min:PG,ceil:NG}=Math;class AG extends kG{constructor(e){var t,n,r,o,i;super(),wG(this,"_options"),wG(this,"_selection",{stored:[],selected:[],touched:[],changed:{added:[],removed:[]}}),wG(this,"_area"),wG(this,"_clippingElement"),wG(this,"_targetElement"),wG(this,"_targetRect"),wG(this,"_selectables",[]),wG(this,"_latestElement"),wG(this,"_areaRect",new DOMRect),wG(this,"_areaLocation",{y1:0,x2:0,y2:0,x1:0}),wG(this,"_singleClick",!0),wG(this,"_frame"),wG(this,"_scrollAvailable",!0),wG(this,"_scrollingActive",!1),wG(this,"_scrollSpeed",{x:0,y:0}),wG(this,"_scrollDelta",{x:0,y:0}),wG(this,"disable",this._bindStartEvents.bind(this,!1)),wG(this,"enable",this._bindStartEvents),this._options={selectionAreaClass:"selection-area",selectionContainerClass:void 0,selectables:[],document:window.document,startAreas:["html"],boundaries:["html"],container:"body",...e,behaviour:{overlap:"invert",intersect:"touch",...e.behaviour,startThreshold:null!=(t=e.behaviour)&&t.startThreshold?"number"==typeof e.behaviour.startThreshold?e.behaviour.startThreshold:{x:10,y:10,...e.behaviour.startThreshold}:{x:10,y:10},scrolling:{speedDivider:10,manualSpeed:750,...null==(n=e.behaviour)?void 0:n.scrolling,startScrollMargins:{x:0,y:0,...null==(o=null==(r=e.behaviour)?void 0:r.scrolling)?void 0:o.startScrollMargins}}},features:{range:!0,touch:!0,...e.features,singleTap:{allow:!0,intersect:"native",...null==(i=e.features)?void 0:i.singleTap}}};for(const e of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))"function"==typeof this[e]&&(this[e]=this[e].bind(this));const{document:a,selectionAreaClass:l,selectionContainerClass:s}=this._options;this._area=a.createElement("div"),this._clippingElement=a.createElement("div"),this._clippingElement.appendChild(this._area),this._area.classList.add(l),s&&this._clippingElement.classList.add(s),_G(this._area,{willChange:"top, left, bottom, right, width, height",top:0,left:0,position:"fixed"}),_G(this._clippingElement,{overflow:"hidden",position:"fixed",transform:"translate3d(0, 0, 0)",pointerEvents:"none",zIndex:"1"}),this._frame=(e=>{let t,n=-1,r=!1;return{next(...o){t=o,r||(r=!0,n=requestAnimationFrame((()=>{e(...t),r=!1})))},cancel(){cancelAnimationFrame(n),r=!1}}})((e=>{this._recalculateSelectionAreaRect(),this._updateElementSelection(),this._emitEvent("move",e),this._redrawSelectionArea()})),this.enable()}_bindStartEvents(e=!0){const{document:t,features:n}=this._options,r=e?$G:EG;r(t,"mousedown",this._onTapStart),n.touch&&r(t,"touchstart",this._onTapStart,{passive:!1})}_onTapStart(e,t=!1){const{x:n,y:r,target:o}=TG(e),{_options:i}=this,{document:a}=this._options,l=o.getBoundingClientRect(),s=MG(i.startAreas,i.document),u=MG(i.boundaries,i.document);this._targetElement=u.find((e=>DG(e.getBoundingClientRect(),l)));const c=e.composedPath();if(!this._targetElement||!s.find((e=>c.includes(e)))||!u.find((e=>c.includes(e)))||!t&&!1===this._emitEvent("beforestart",e))return;this._areaLocation={x1:n,y1:r,x2:0,y2:0};const d=a.scrollingElement||a.body;this._scrollDelta={x:d.scrollLeft,y:d.scrollTop},this._singleClick=!0,this.clearSelection(!1,!0),$G(a,["touchmove","mousemove"],this._delayedTapMove,{passive:!1}),$G(a,["mouseup","touchcancel","touchend"],this._onTapStop),$G(a,"scroll",this._onScroll)}_onSingleTap(e){const{singleTap:{intersect:t},range:n}=this._options.features,r=TG(e);let o;if("native"===t)o=r.target;else if("touch"===t){this.resolveSelectables();const{x:e,y:t}=r;o=this._selectables.find((n=>{const{right:r,left:o,top:i,bottom:a}=n.getBoundingClientRect();return e<r&&e>o&&t<a&&t>i}))}if(!o)return;for(this.resolveSelectables();!this._selectables.includes(o);){if(!o.parentElement)return;o=o.parentElement}const{stored:i}=this._selection;if(this._emitEvent("start",e),e.shiftKey&&n&&this._latestElement){const e=this._latestElement,[t,n]=4&e.compareDocumentPosition(o)?[o,e]:[e,o],r=[...this._selectables.filter((e=>4&e.compareDocumentPosition(t)&&2&e.compareDocumentPosition(n))),t,n];this.select(r),this._latestElement=e}else i.includes(o)&&(1===i.length||e.ctrlKey||i.every((e=>this._selection.stored.includes(e))))?this.deselect(o):(this.select(o),this._latestElement=o);this._emitEvent("stop",e)}_delayedTapMove(e){const{container:t,document:n,behaviour:{startThreshold:r}}=this._options,{x1:o,y1:i}=this._areaLocation,{x:a,y:l}=TG(e);if("number"==typeof r&&OG(a+l-(o+i))>=r||"object"==typeof r&&OG(a-o)>=r.x||OG(l-i)>=r.y){if(EG(n,["mousemove","touchmove"],this._delayedTapMove,{passive:!1}),!1===this._emitEvent("beforedrag",e))return void EG(n,["mouseup","touchcancel","touchend"],this._onTapStop);$G(n,["mousemove","touchmove"],this._onTapMove,{passive:!1}),_G(this._area,"display","block"),MG(t,n)[0].appendChild(this._clippingElement),this.resolveSelectables(),this._singleClick=!1,this._targetRect=this._targetElement.getBoundingClientRect(),this._scrollAvailable=this._targetElement.scrollHeight!==this._targetElement.clientHeight||this._targetElement.scrollWidth!==this._targetElement.clientWidth,this._scrollAvailable&&($G(n,"wheel",this._manualScroll,{passive:!1}),this._selectables=this._selectables.filter((e=>this._targetElement.contains(e)))),this._setupSelectionArea(),this._emitEvent("start",e),this._onTapMove(e)}this._handleMoveEvent(e)}_setupSelectionArea(){const{_clippingElement:e,_targetElement:t,_area:n}=this,r=this._targetRect=t.getBoundingClientRect();this._scrollAvailable?(_G(e,{top:r.top,left:r.left,width:r.width,height:r.height}),_G(n,{marginTop:-r.top,marginLeft:-r.left})):(_G(e,{top:0,left:0,width:"100%",height:"100%"}),_G(n,{marginTop:0,marginLeft:0}))}_onTapMove(e){const{x:t,y:n}=TG(e),{_scrollSpeed:r,_areaLocation:o,_options:i,_frame:a}=this,{speedDivider:l}=i.behaviour.scrolling,s=this._targetElement;if(o.x2=t,o.y2=n,this._scrollAvailable&&!this._scrollingActive&&(r.y||r.x)){this._scrollingActive=!0;const t=()=>{if(!r.x&&!r.y)return void(this._scrollingActive=!1);const{scrollTop:n,scrollLeft:i}=s;r.y&&(s.scrollTop+=NG(r.y/l),o.y1-=s.scrollTop-n),r.x&&(s.scrollLeft+=NG(r.x/l),o.x1-=s.scrollLeft-i),a.next(e),requestAnimationFrame(t)};requestAnimationFrame(t)}else a.next(e);this._handleMoveEvent(e)}_handleMoveEvent(e){const{features:t}=this._options;(t.touch&&matchMedia("(hover: none), (pointer: coarse)").matches||this._scrollAvailable&&"safari"in window)&&e.preventDefault()}_onScroll(){const{_scrollDelta:e,_options:{document:t}}=this,{scrollTop:n,scrollLeft:r}=t.scrollingElement||t.body;this._areaLocation.x1+=e.x-r,this._areaLocation.y1+=e.y-n,e.x=r,e.y=n,this._setupSelectionArea(),this._frame.next(null)}_manualScroll(e){const{manualSpeed:t}=this._options.behaviour.scrolling,n=e.deltaY?e.deltaY>0?1:-1:0,r=e.deltaX?e.deltaX>0?1:-1:0;this._scrollSpeed.y+=n*t,this._scrollSpeed.x+=r*t,this._onTapMove(e),e.preventDefault()}_recalculateSelectionAreaRect(){const{_scrollSpeed:e,_areaLocation:t,_areaRect:n,_targetElement:r,_options:o}=this,{scrollTop:i,scrollHeight:a,clientHeight:l,scrollLeft:s,scrollWidth:u,clientWidth:c}=r,d=this._targetRect,{x1:f,y1:p}=t;let{x2:h,y2:m}=t;const{behaviour:{scrolling:{startScrollMargins:g}}}=o;h<d.left+g.x?(e.x=s?-OG(d.left-h+g.x):0,h=h<d.left?d.left:h):h>d.right-g.x?(e.x=u-s-c?OG(d.left+d.width-h-g.x):0,h=h>d.right?d.right:h):e.x=0,m<d.top+g.y?(e.y=i?-OG(d.top-m+g.y):0,m=m<d.top?d.top:m):m>d.bottom-g.y?(e.y=a-i-l?OG(d.top+d.height-m-g.y):0,m=m>d.bottom?d.bottom:m):e.y=0;const y=PG(f,h),b=PG(p,m),v=RG(f,h),x=RG(p,m);n.x=y,n.y=b,n.width=v-y,n.height=x-b}_redrawSelectionArea(){const{x:e,y:t,width:n,height:r}=this._areaRect,{style:o}=this._area;o.left=`${e}px`,o.top=`${t}px`,o.width=`${n}px`,o.height=`${r}px`}_onTapStop(e,t){var n;const{document:r,features:o}=this._options,{_singleClick:i}=this;EG(r,["mousemove","touchmove"],this._delayedTapMove),EG(r,["touchmove","mousemove"],this._onTapMove),EG(r,["mouseup","touchcancel","touchend"],this._onTapStop),EG(r,"scroll",this._onScroll),this._keepSelection(),e&&i&&o.singleTap.allow?this._onSingleTap(e):!i&&!t&&(this._updateElementSelection(),this._emitEvent("stop",e)),this._scrollSpeed.x=0,this._scrollSpeed.y=0,this._scrollAvailable&&EG(r,"wheel",this._manualScroll,{passive:!0}),this._clippingElement.remove(),null==(n=this._frame)||n.cancel(),_G(this._area,"display","none")}_updateElementSelection(){const{_selectables:e,_options:t,_selection:n,_areaRect:r}=this,{stored:o,selected:i,touched:a}=n,{intersect:l,overlap:s}=t.behaviour,u="invert"===s,c=[],d=[],f=[];for(let t=0;t<e.length;t++){const n=e[t];if(DG(r,n.getBoundingClientRect(),l)){if(i.includes(n))o.includes(n)&&!a.includes(n)&&a.push(n);else{if(u&&o.includes(n)){f.push(n);continue}d.push(n)}c.push(n)}}u&&d.push(...o.filter((e=>!i.includes(e))));const p="keep"===s;for(let e=0;e<i.length;e++){const t=i[e];!c.includes(t)&&(!p||!o.includes(t))&&f.push(t)}n.selected=c,n.changed={added:d,removed:f},this._latestElement=void 0}_emitEvent(e,t){return this.emit(e,{event:t,store:this._selection,selection:this})}_keepSelection(){const{_options:e,_selection:t}=this,{selected:n,changed:r,touched:o,stored:i}=t,a=n.filter((e=>!i.includes(e)));switch(e.behaviour.overlap){case"drop":t.stored=[...a,...i.filter((e=>!o.includes(e)))];break;case"invert":t.stored=[...a,...i.filter((e=>!r.removed.includes(e)))];break;case"keep":t.stored=[...i,...n.filter((e=>!i.includes(e)))]}}trigger(e,t=!0){this._onTapStart(e,t)}resolveSelectables(){this._selectables=MG(this._options.selectables,this._options.document)}clearSelection(e=!0,t=!1){const{selected:n,stored:r,changed:o}=this._selection;o.added=[],o.removed.push(...n,...e?r:[]),t||(this._emitEvent("move",null),this._emitEvent("stop",null)),this._selection={stored:e?[]:r,selected:[],touched:[],changed:{added:[],removed:[]}}}getSelection(){return this._selection.stored}getSelectionArea(){return this._area}cancel(e=!1){this._onTapStop(null,!e)}destroy(){this.cancel(),this.disable(),this._clippingElement.remove(),super.unbindAllListeners()}select(e,t=!1){const{changed:n,selected:r,stored:o}=this._selection,i=MG(e,this._options.document).filter((e=>!r.includes(e)&&!o.includes(e)));return o.push(...i),r.push(...i),n.added.push(...i),n.removed=[],this._latestElement=void 0,t||(this._emitEvent("move",null),this._emitEvent("stop",null)),i}deselect(e,t=!1){const{selected:n,stored:r,changed:o}=this._selection,i=MG(e,this._options.document).filter((e=>n.includes(e)||r.includes(e)));i.length&&(this._selection.stored=r.filter((e=>!i.includes(e))),this._selection.selected=n.filter((e=>!i.includes(e))),this._selection.changed.added=[],this._selection.changed.removed.push(...i.filter((e=>!o.removed.includes(e)))),this._latestElement=void 0,t||(this._emitEvent("move",null),this._emitEvent("stop",null)))}}wG(AG,"version","3.2.7");
21
21
  /*! @viselect/react v3.2.7 MIT | https://github.com/Simonwep/selection/tree/master/packages/react */
22
22
  var IG,FG={},jG={get exports(){return FG},set exports(e){FG=e}},LG={};
23
23
  /**