UNPKG

react-big-calendar

Version:
1 lines 204 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactBigCalendar={})}(this,function(e){"use strict";function t(e){return e.children}function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(null,arguments)}function n(e){return n="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},n(e)}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t);if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==n(t)?t:t+""}function i(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function u(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(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&&d(e,t)}function v(e){if(Array.isArray(e))return e}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t){if(e){if("string"==typeof e)return h(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}function y(){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 g(e,t){return v(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||m(e,t)||y()}function b(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=b(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function w(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=b(e))&&(n&&(n+=" "),n+=t);return n}var O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function D(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var E,S,_,M,k,j={exports:{}};function x(){if(S)return E;S=1;return E="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function R(){if(M)return _;M=1;var e=x();function t(){}function r(){}return r.resetWarningCache=t,_=function(){function n(t,r,n,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i}}function T(){return k||(k=1,j.exports=R()()),j.exports}var P,A,C=D(T()),N={exports:{}},F={};function L(){if(P)return F;P=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,h={};function m(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||p}function y(){}function g(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var b=g.prototype=new y;b.constructor=g,v(b,m.prototype),b.isPureReactComponent=!0;var w=Array.isArray;function O(){}var D={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function S(t,r,n){var o=n.ref;return{$$typeof:e,type:t,key:r,ref:void 0!==o?o:null,props:n}}function _(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var M=/\/+/g;function k(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var r,n}function j(r,n,o,i,a){var s=typeof r;"undefined"!==s&&"boolean"!==s||(r=null);var c,u,f=!1;if(null===r)f=!0;else switch(s){case"bigint":case"string":case"number":f=!0;break;case"object":switch(r.$$typeof){case e:case t:f=!0;break;case l:return j((f=r._init)(r._payload),n,o,i,a)}}if(f)return a=a(r),f=""===i?"."+k(r,0):i,w(a)?(o="",null!=f&&(o=f.replace(M,"$&/")+"/"),j(a,n,o,"",function(e){return e})):null!=a&&(_(a)&&(c=a,u=o+(null==a.key||r&&r.key===a.key?"":(""+a.key).replace(M,"$&/")+"/")+f,a=S(c.type,u,c.props)),n.push(a)),1;f=0;var p,v=""===i?".":i+":";if(w(r))for(var h=0;h<r.length;h++)f+=j(i=r[h],n,o,s=v+k(i,h),a);else if("function"==typeof(h=null===(p=r)||"object"!=typeof p?null:"function"==typeof(p=d&&p[d]||p["@@iterator"])?p:null))for(r=h.call(r),h=0;!(i=r.next()).done;)f+=j(i=i.value,n,o,s=v+k(i,h++),a);else if("object"===s){if("function"==typeof r.then)return j(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(O,O):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(r),n,o,i,a);throw n=String(r),Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(r).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return f}function x(e,t,r){if(null==e)return e;var n=[],o=0;return j(e,n,"","",function(e){return t.call(r,e,o++)}),n}function R(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},A={map:x,forEach:function(e,t,r){x(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return x(e,function(){t++}),t},toArray:function(e){return x(e,function(e){return e})||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return F.Activity=f,F.Children=A,F.Component=m,F.Fragment=r,F.Profiler=o,F.PureComponent=g,F.StrictMode=n,F.Suspense=c,F.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,F.__COMPILER_RUNTIME={__proto__:null,c:function(e){return D.H.useMemoCache(e)}},F.cache=function(e){return function(){return e.apply(null,arguments)}},F.cacheSignal=function(){return null},F.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=v({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(n[i]=t[i]);var i=arguments.length-2;if(1===i)n.children=r;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];n.children=a}return S(e.type,o,n)},F.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},F.createElement=function(e,t,r){var n,o={},i=null;if(null!=t)for(n in void 0!==t.key&&(i=""+t.key),t)E.call(t,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&(o[n]=t[n]);var a=arguments.length-2;if(1===a)o.children=r;else if(1<a){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===o[n]&&(o[n]=a[n]);return S(e,i,o)},F.createRef=function(){return{current:null}},F.forwardRef=function(e){return{$$typeof:s,render:e}},F.isValidElement=_,F.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:R}},F.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},F.startTransition=function(e){var t=D.T,r={};D.T=r;try{var n=e(),o=D.S;null!==o&&o(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then(O,T)}catch(e){T(e)}finally{null!==t&&null!==r.types&&(t.types=r.types),D.T=t}},F.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},F.use=function(e){return D.H.use(e)},F.useActionState=function(e,t,r){return D.H.useActionState(e,t,r)},F.useCallback=function(e,t){return D.H.useCallback(e,t)},F.useContext=function(e){return D.H.useContext(e)},F.useDebugValue=function(){},F.useDeferredValue=function(e,t){return D.H.useDeferredValue(e,t)},F.useEffect=function(e,t){return D.H.useEffect(e,t)},F.useEffectEvent=function(e){return D.H.useEffectEvent(e)},F.useId=function(){return D.H.useId()},F.useImperativeHandle=function(e,t,r){return D.H.useImperativeHandle(e,t,r)},F.useInsertionEffect=function(e,t){return D.H.useInsertionEffect(e,t)},F.useLayoutEffect=function(e,t){return D.H.useLayoutEffect(e,t)},F.useMemo=function(e,t){return D.H.useMemo(e,t)},F.useOptimistic=function(e,t){return D.H.useOptimistic(e,t)},F.useReducer=function(e,t,r){return D.H.useReducer(e,t,r)},F.useRef=function(e){return D.H.useRef(e)},F.useState=function(e){return D.H.useState(e)},F.useSyncExternalStore=function(e,t,r){return D.H.useSyncExternalStore(e,t,r)},F.useTransition=function(){return D.H.useTransition()},F.version="19.2.6",F}function z(){return A||(A=1,N.exports=L()),N.exports}var I,H,W=z(),B=D(W);function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(null,arguments)}var U=D(H?I:(H=1,I=function(e,t,r,n,o,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,s],l=0;(c=new Error(t.replace(/%s/g,function(){return u[l++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}})),Y=function(){};function V(e,t){return void 0!==e[t]}function q(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}function G(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function X(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function J(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}G.__suppressDeprecationWarning=!0,X.__suppressDeprecationWarning=!0,J.__suppressDeprecationWarning=!0;var Z={PREVIOUS:"PREV",NEXT:"NEXT",TODAY:"TODAY",DATE:"DATE"},Q={MONTH:"month",WEEK:"week",WORK_WEEK:"work_week",DAY:"day",AGENDA:"agenda"},ee=Object.keys(Q).map(function(e){return Q[e]}),te=(C.oneOfType([C.string,C.func]),C.any,C.func,C.oneOfType([C.arrayOf(C.oneOf(ee)),C.objectOf(function(e,t){if(-1!==ee.indexOf(t)&&"boolean"==typeof e[t])return null;for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return C.elementType.apply(C,[e,t].concat(n))})]),C.oneOfType([C.oneOf(["overlap","no-overlap"]),C.func]),"milliseconds"),re="seconds",ne="minutes",oe="hours",ie="day",ae="week",se="month",ce="year",ue="decade",le="century",fe={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,day:864e5,week:6048e5},de={month:1,year:12,decade:120,century:1200};function pe(e){return e%4==0&&e%100!=0||e%400==0?29:28}function ve(e,t,r){switch(e=new Date(e),r){case te:case re:case ne:case oe:case ie:case ae:return function(e,t){var r=new Date(+e+t);return function(e,t){var r=e.getTimezoneOffset(),n=t.getTimezoneOffset();return new Date(+t+(n-r)*fe.minutes)}(e,r)}(e,t*fe[r]);case se:case ce:case ue:case le:return function(e,t){var r=e.getFullYear(),n=e.getMonth(),o=e.getDate(),i=12*r+n+t,a=Math.trunc(i/12),s=i%12,c=Math.min(o,function(e){return[31,pe(e),31,30,31,30,31,31,30,31,30,31]}(a)[s]),u=new Date(e);return u.setFullYear(a),u.setDate(1),u.setMonth(s),u.setDate(c),u}(e,t*de[r])}throw new TypeError('Invalid units: "'+r+'"')}function he(e,t,r){return ve(e,-t,r)}function me(e,t,r){switch(e=new Date(e),t){case le:case ue:case ce:e=Ae(e,0);case se:e=Pe(e,1);case ae:case ie:e=Re(e,0);case oe:e=xe(e,0);case ne:e=je(e,0);case re:e=ke(e,0)}return t===ue&&(e=he(e,Ce(e)%10,"year")),t===le&&(e=he(e,Ce(e)%100,"year")),t===ae&&(e=Ne(e,0,r)),e}function ye(e,t,r){switch(e=me(e=new Date(e),t,r),t){case le:case ue:case ce:case se:case ae:(e=he(e=ve(e,1,t),1,ie)).setHours(23,59,59,999);break;case ie:e.setHours(23,59,59,999);break;case oe:case ne:case re:e=he(e=ve(e,1,t),1,te)}return e}var ge=Le(function(e,t){return e===t}),be=Le(function(e,t){return e!==t}),we=Le(function(e,t){return e>t}),Oe=Le(function(e,t){return e>=t}),De=Le(function(e,t){return e<t}),Ee=Le(function(e,t){return e<=t});function Se(){return new Date(Math.min.apply(Math,arguments))}function _e(){return new Date(Math.max.apply(Math,arguments))}function Me(e,t,r,n){return n=n||"day",(!t||Oe(e,t,n))&&(!r||Ee(e,r,n))}var ke=Fe("Milliseconds"),je=Fe("Seconds"),xe=Fe("Minutes"),Re=Fe("Hours"),Te=Fe("Day"),Pe=Fe("Date"),Ae=Fe("Month"),Ce=Fe("FullYear");function Ne(e,t,r){var n=(Te(e)+7-(r||0))%7;return void 0===t?n:ve(e,t-n,ie)}function Fe(e){var t=function(e){switch(e){case"Milliseconds":return 36e5;case"Seconds":return 3600;case"Minutes":return 60;case"Hours":return 1;default:return null}}(e);return function(r,n){if(void 0===n)return r["get"+e]();var o=new Date(r);return o["set"+e](n),t&&o["get"+e]()!=n&&("Hours"===e||n>=t&&o.getHours()-r.getHours()<Math.floor(n/t))&&o["set"+e](n+t),o}}function Le(e){return function(t,r,n){return e(+me(t,n),+me(r,n))}}var ze=Object.freeze({__proto__:null,add:ve,century:function(e,t){return void 0===t?Ce(me(e,le)):ve(e,t+100,ce)},date:Pe,day:Te,decade:function(e,t){return void 0===t?Ce(me(e,ue)):ve(e,t+10,ce)},diff:function(e,t,r,n){var o,i,a;switch(r){case te:case re:case ne:case oe:case ie:case ae:o=t.getTime()-e.getTime();break;case se:case ce:case ue:case le:o=12*(Ce(t)-Ce(e))+Ae(t)-Ae(e);break;default:throw new TypeError('Invalid units: "'+r+'"')}switch(r){case te:i=1;break;case re:i=1e3;break;case ne:i=6e4;break;case oe:i=36e5;break;case ie:i=864e5;break;case ae:i=6048e5;break;case se:i=1;break;case ce:i=12;break;case ue:i=120;break;case le:i=1200;break;default:throw new TypeError('Invalid units: "'+r+'"')}return a=o/i,n?a:Math.round(a)},endOf:ye,eq:ge,gt:we,gte:Oe,hours:Re,inRange:Me,lt:De,lte:Ee,max:_e,milliseconds:ke,min:Se,minutes:xe,month:Ae,neq:be,seconds:je,startOf:me,subtract:he,weekday:Ne,year:Ce}),Ie={seconds:1e3,minutes:6e4,hours:36e5,day:864e5};function He(e,t){var r=me(e,"month");return me(r,"week",t.startOfWeek())}function We(e,t){var r=ye(e,"month");return ye(r,"week",t.startOfWeek())}function Be(e,t){for(var r=He(e,t),n=We(e,t),o=[];Ee(r,n,"day");)o.push(r),r=ve(r,1,"day");return o}function $e(e,t){var r=me(e,t);return ge(r,e)?r:ve(r,1,t)}function Ue(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day",n=e,o=[];Ee(n,t,r);)o.push(n),n=ve(n,1,r);return o}function Ye(e,t){return null==t&&null==e?null:(null==t&&(t=new Date),null==e&&(e=new Date),e=me(e,"day"),e=Re(e,Re(t)),e=xe(e,xe(t)),e=je(e,je(t)),ke(e,ke(t)))}function Ve(e){return 0===Re(e)&&0===xe(e)&&0===je(e)&&0===ke(e)}function qe(e,t,r){return r&&"milliseconds"!==r?Math.round(Math.abs(+me(e,r)/Ie[r]-+me(t,r)/Ie[r])):Math.abs(+e-+t)}function Ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Xe=C.oneOfType([C.string,C.func]);function Je(e,t,r,n,o){var i="function"==typeof n?n(r,o,e):t.call(e,r,n,o);return U(null==i||"string"==typeof i,"`localizer format(..)` must return a string, null, or undefined"),i}function Ze(e,t,r){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,t+r,0,0)}function Qe(e,t){return e.getTimezoneOffset()-t.getTimezoneOffset()}function et(e,t){return qe(e,t,"minutes")+Qe(e,t)}function tt(e){var t=me(e,"day");return qe(t,e,"minutes")+Qe(t,e)}function rt(e,t){return De(e,t,"day")}function nt(e,t,r){return ge(e,t,"minutes")?Oe(t,r,"minutes"):we(t,r,"minutes")}function ot(e,t){return function(e,t,r,n){return"day"===r&&(r="date"),Math.abs(ze[r](e,void 0,n)-ze[r](t,void 0,n))}(e,t,"day")}function it(e){var t=e.evtA,r=t.start,n=t.end,o=t.allDay,i=e.evtB,a=i.start,s=i.end,c=i.allDay,u=+me(r,"day")-+me(a,"day"),l=ot(r,n),f=ot(a,s);return u||f-l||!!c-!!o||+r-+a||+n-+s}function at(e){var t=e.event,r=t.start,n=t.end,o=e.range,i=o.start,a=o.end,s=me(r,"day"),c=Ee(s,a,"day"),u=be(s,n,"minutes")?we(n,i,"minutes"):Oe(n,i,"minutes");return c&&u}function st(e,t){return ge(e,t,"day")}function ct(e,t){return Ve(e)&&Ve(t)}var ut=u(function e(t){var r=this;s(this,e),U("function"==typeof t.format,"date localizer `format(..)` must be a function"),U("function"==typeof t.firstOfWeek,"date localizer `firstOfWeek(..)` must be a function"),this.propType=t.propType||Xe,this.formats=t.formats,this.format=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Je.apply(void 0,[r,t.format].concat(n))},this.startOfWeek=t.firstOfWeek,this.merge=t.merge||Ye,this.inRange=t.inRange||Me,this.lt=t.lt||De,this.lte=t.lte||Ee,this.gt=t.gt||we,this.gte=t.gte||Oe,this.eq=t.eq||ge,this.neq=t.neq||be,this.startOf=t.startOf||me,this.endOf=t.endOf||ye,this.add=t.add||ve,this.range=t.range||Ue,this.diff=t.diff||qe,this.ceil=t.ceil||$e,this.min=t.min||Se,this.max=t.max||_e,this.minutes=t.minutes||xe,this.daySpan=t.daySpan||ot,this.firstVisibleDay=t.firstVisibleDay||He,this.lastVisibleDay=t.lastVisibleDay||We,this.visibleDays=t.visibleDays||Be,this.getSlotDate=t.getSlotDate||Ze,this.getTimezoneOffset=t.getTimezoneOffset||function(e){return e.getTimezoneOffset()},this.getDstOffset=t.getDstOffset||Qe,this.getTotalMin=t.getTotalMin||et,this.getMinutesFromMidnight=t.getMinutesFromMidnight||tt,this.continuesPrior=t.continuesPrior||rt,this.continuesAfter=t.continuesAfter||nt,this.sortEvents=t.sortEvents||it,this.inEventRange=t.inEventRange||at,this.isSameDate=t.isSameDate||st,this.startAndEndAreDateOnly=t.startAndEndAreDateOnly||ct,this.segmentOffset=t.browserTZOffset?t.browserTZOffset():0});function lt(e,t,r,n){var o=Ge(Ge({},e.formats),r);return Ge(Ge({},e),{},{messages:n,startOfWeek:function(){return e.startOfWeek(t)},format:function(r,n){return e.format(r,o[n]||n,t)}})}function ft(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ft=function(){return!!e})()}var dt=function(e){function t(){var e,r,n,o;s(this,t);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return r=this,n=t,o=[].concat(a),n=f(n),(e=l(r,ft()?Reflect.construct(n,o||[],f(r).constructor):n.apply(r,o))).navigate=function(t){e.props.onNavigate(t)},e.view=function(t){e.props.onView(t)},e}return p(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.localizer.messages,r=e.label;return B.createElement("div",{className:"rbc-toolbar"},B.createElement("span",{className:"rbc-btn-group"},B.createElement("button",{type:"button",onClick:this.navigate.bind(null,Z.TODAY)},t.today),B.createElement("button",{type:"button",onClick:this.navigate.bind(null,Z.PREVIOUS)},t.previous),B.createElement("button",{type:"button",onClick:this.navigate.bind(null,Z.NEXT)},t.next)),B.createElement("span",{className:"rbc-toolbar-label"},r),B.createElement("span",{className:"rbc-btn-group"},this.viewNamesGroup(t)))}},{key:"viewNamesGroup",value:function(e){var t=this,r=this.props.views,n=this.props.view;if(r.length>1)return r.map(function(r){return B.createElement("button",{type:"button",key:r,className:w({"rbc-active":n===r}),onClick:t.view.bind(null,r)},e[r])})}}])}(B.Component);function pt(e,t){e&&e.apply(null,[].concat(t))}function vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}dt.propTypes={};var mt,yt,gt,bt,wt,Ot,Dt,Et,St,_t,Mt,kt,jt,xt,Rt,Tt,Pt,At,Ct,Nt,Ft,Lt,zt,It,Ht,Wt,Bt,$t,Ut,Yt,Vt,qt,Kt,Gt,Xt,Jt,Zt,Qt,er,tr,rr,nr,or,ir,ar={date:"Date",time:"Time",event:"Event",allDay:"All Day",week:"Week",work_week:"Work Week",day:"Day",month:"Month",previous:"Back",next:"Next",yesterday:"Yesterday",tomorrow:"Tomorrow",today:"Today",agenda:"Agenda",noEventsInRange:"There are no events in this range.",showMore:function(e){return"+".concat(e," more")}};function sr(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function cr(e){return function(e){if(Array.isArray(e))return h(e)}(e)||sr(e)||m(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 ur(){if(yt)return mt;return yt=1,mt=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i},mt}function lr(){if(bt)return gt;return bt=1,gt=function(e,t){return e===t||e!=e&&t!=t}}function fr(){if(Ot)return wt;Ot=1;var e="object"==typeof O&&O&&O.Object===Object&&O;return wt=e}function dr(){if(Et)return Dt;Et=1;var e=fr(),t="object"==typeof self&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Dt=r}function pr(){if(_t)return St;_t=1;var e=dr().Symbol;return St=e}function vr(){if(Tt)return Rt;Tt=1;var e=pr(),t=function(){if(kt)return Mt;kt=1;var e=pr(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;return Mt=function(e){var t=r.call(e,o),i=e[o];try{e[o]=void 0;var a=!0}catch(e){}var s=n.call(e);return a&&(t?e[o]=i:delete e[o]),s}}(),r=function(){if(xt)return jt;xt=1;var e=Object.prototype.toString;return jt=function(t){return e.call(t)}}(),n=e?e.toStringTag:void 0;return Rt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":n&&n in Object(e)?t(e):r(e)}}function hr(){if(At)return Pt;return At=1,Pt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function mr(){if(Nt)return Ct;Nt=1;var e=vr(),t=hr();return Ct=function(r){if(!t(r))return!1;var n=e(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function yr(){if(Lt)return Ft;Lt=1;return Ft=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function gr(){if(It)return zt;It=1;var e=mr(),t=yr();return zt=function(r){return null!=r&&t(r.length)&&!e(r)}}function br(){if(Wt)return Ht;Wt=1;var e=/^(?:0|[1-9]\d*)$/;return Ht=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}}function wr(){if($t)return Bt;$t=1;var e=lr(),t=gr(),r=br(),n=hr();return Bt=function(o,i,a){if(!n(a))return!1;var s=typeof i;return!!("number"==s?t(a)&&r(i,a.length):"string"==s&&i in a)&&e(a[i],o)}}function Or(){if(qt)return Vt;qt=1;var e=function(){if(Yt)return Ut;Yt=1;var e=/\s/;return Ut=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}}(),t=/^\s+/;return Vt=function(r){return r?r.slice(0,e(r)+1).replace(t,""):r}}function Dr(){if(Gt)return Kt;return Gt=1,Kt=function(e){return null!=e&&"object"==typeof e}}function Er(){if(Jt)return Xt;Jt=1;var e=vr(),t=Dr();return Xt=function(r){return"symbol"==typeof r||t(r)&&"[object Symbol]"==e(r)}}function Sr(){if(tr)return er;tr=1;var e=function(){if(Qt)return Zt;Qt=1;var e=Or(),t=hr(),r=Er(),n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt;return Zt=function(s){if("number"==typeof s)return s;if(r(s))return NaN;if(t(s)){var c="function"==typeof s.valueOf?s.valueOf():s;s=t(c)?c+"":c}if("string"!=typeof s)return 0===s?s:+s;s=e(s);var u=o.test(s);return u||i.test(s)?a(s.slice(2),u?2:8):n.test(s)?NaN:+s}}(),t=1/0;return er=function(r){return r?(r=e(r))===t||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:0===r?r:0}}function _r(){if(nr)return rr;nr=1;var e=Sr();return rr=function(t){var r=e(t),n=r%1;return r==r?n?r-n:r:0}}var Mr=function(){if(ir)return or;ir=1;var e=ur(),t=wr(),r=_r(),n=Math.ceil,o=Math.max;return or=function(i,a,s){a=(s?t(i,a,s):void 0===a)?1:o(r(a),0);var c=null==i?0:i.length;if(!c||a<1)return[];for(var u=0,l=0,f=Array(n(c/a));u<c;)f[l++]=e(i,u,u+=a);return f},or}(),kr=D(Mr);function jr(e){return e&&e.ownerDocument||document}function xr(e,t){return function(e){const t=jr(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}const Rr=/([A-Z])/g;const Tr=/^ms-/;function Pr(e){return function(e){return e.replace(Rr,"-$1").toLowerCase()}(e).replace(Tr,"-ms-")}const Ar=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Cr(e,t){let r="",n="";if("string"==typeof t)return e.style.getPropertyValue(Pr(t))||xr(e).getPropertyValue(Pr(t));Object.keys(t).forEach(o=>{const i=t[o];i||0===i?!function(e){return!(!e||!Ar.test(e))}(o)?r+=`${Pr(o)}: ${i};`:n+=`${o}(${i}) `:e.style.removeProperty(Pr(o))}),n&&(r+=`transform: ${n};`),e.style.cssText+=`;${r}`}function Nr(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function Fr(e){return"window"in e&&e.window===e?e:"nodeType"in(t=e)&&t.nodeType===document.DOCUMENT_NODE&&e.defaultView||!1;var t}function Lr(e){const t="pageXOffset"===e?"scrollLeft":"scrollTop";return function(r,n){const o=Fr(r);if(void 0===n)return o?o[e]:r[t];o?o.scrollTo(o[e],n):r[t]=n}}var zr=Lr("pageXOffset"),Ir=Lr("pageYOffset");function Hr(e){const t=jr(e);let r={top:0,left:0,height:0,width:0};const n=t&&t.documentElement;return n&&Nr(n,e)?(void 0!==e.getBoundingClientRect&&(r=e.getBoundingClientRect()),r={top:r.top+Ir(n)-(n.clientTop||0),left:r.left+zr(n)-(n.clientLeft||0),width:r.width,height:r.height},r):r}const Wr=e=>!!e&&"offsetParent"in e;function Br(e,t){let r,n={top:0,left:0};if("fixed"===Cr(e,"position"))r=e.getBoundingClientRect();else{const o=t||function(e){const t=jr(e);let r=e&&e.offsetParent;for(;Wr(r)&&"HTML"!==r.nodeName&&"static"===Cr(r,"position");)r=r.offsetParent;return r||t.documentElement}(e);r=Hr(e),"html"!==(e=>e.nodeName&&e.nodeName.toLowerCase())(o)&&(n=Hr(o));const i=String(Cr(o,"borderTopWidth")||0);n.top+=parseInt(i,10)-Ir(o)||0;const a=String(Cr(o,"borderLeftWidth")||0);n.left+=parseInt(a,10)-zr(o)||0}const o=String(Cr(e,"marginTop")||0),i=String(Cr(e,"marginLeft")||0);return{...r,top:r.top-n.top-(parseInt(o,10)||0),left:r.left-n.left-(parseInt(i,10)||0)}}var $r=!("undefined"==typeof window||!window.document||!window.document.createElement);let Ur=(new Date).getTime();let Yr="clearTimeout",Vr=function(e){const t=(new Date).getTime(),r=Math.max(0,16-(t-Ur)),n=setTimeout(e,r);return Ur=t,n};const qr=(e,t)=>`${e+(e?t[0].toUpperCase()+t.substr(1):t)}AnimationFrame`;$r&&["","webkit","moz","o","ms"].some(e=>{const t=qr(e,"request");return t in window&&(Yr=qr(e,"cancel"),Vr=e=>window[t](e)),!!Vr});const Kr=e=>{"function"==typeof window[Yr]&&window[Yr](e)},Gr=Vr;var Xr=!("undefined"==typeof window||!window.document||!window.document.createElement),Jr=!1,Zr=!1;try{var Qr={get passive(){return Jr=!0},get once(){return Zr=Jr=!0}};Xr&&(window.addEventListener("test",Qr,Qr),window.removeEventListener("test",Qr,!0))}catch(e){}function en(e){const t=function(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}(e);return W.useCallback(function(...e){return t.current&&t.current(...e)},[t])}function tn(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rn(){return rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rn.apply(null,arguments)}function nn(){return W.useState(null)}function on(e){const t=function(){const e=W.useRef(!0),t=W.useRef(()=>e.current);return W.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}();return[e[0],W.useCallback(r=>{if(t())return e[1](r)},[t,e[1]])]}var an="top",sn="bottom",cn="right",un="left",ln="auto",fn=[an,sn,cn,un],dn="start",pn="end",vn="viewport",hn="popper",mn=fn.reduce(function(e,t){return e.concat([t+"-"+dn,t+"-"+pn])},[]),yn=[].concat(fn,[ln]).reduce(function(e,t){return e.concat([t,t+"-"+dn,t+"-"+pn])},[]),gn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function bn(e){return e.split("-")[0]}function wn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function On(e){return e instanceof wn(e).Element||e instanceof Element}function Dn(e){return e instanceof wn(e).HTMLElement||e instanceof HTMLElement}function En(e){return"undefined"!=typeof ShadowRoot&&(e instanceof wn(e).ShadowRoot||e instanceof ShadowRoot)}var Sn=Math.max,_n=Math.min,Mn=Math.round;function kn(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function jn(){return!/^((?!chrome|android).)*safari/i.test(kn())}function xn(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Dn(e)&&(o=e.offsetWidth>0&&Mn(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Mn(n.height)/e.offsetHeight||1);var a=(On(e)?wn(e):window).visualViewport,s=!jn()&&r,c=(n.left+(s&&a?a.offsetLeft:0))/o,u=(n.top+(s&&a?a.offsetTop:0))/i,l=n.width/o,f=n.height/i;return{width:l,height:f,top:u,right:c+l,bottom:u+f,left:c,x:c,y:u}}function Rn(e){var t=xn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Tn(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&En(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Pn(e){return e?(e.nodeName||"").toLowerCase():null}function An(e){return wn(e).getComputedStyle(e)}function Cn(e){return["table","td","th"].indexOf(Pn(e))>=0}function Nn(e){return((On(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fn(e){return"html"===Pn(e)?e:e.assignedSlot||e.parentNode||(En(e)?e.host:null)||Nn(e)}function Ln(e){return Dn(e)&&"fixed"!==An(e).position?e.offsetParent:null}function zn(e){for(var t=wn(e),r=Ln(e);r&&Cn(r)&&"static"===An(r).position;)r=Ln(r);return r&&("html"===Pn(r)||"body"===Pn(r)&&"static"===An(r).position)?t:r||function(e){var t=/firefox/i.test(kn());if(/Trident/i.test(kn())&&Dn(e)&&"fixed"===An(e).position)return null;var r=Fn(e);for(En(r)&&(r=r.host);Dn(r)&&["html","body"].indexOf(Pn(r))<0;){var n=An(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function In(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hn(e,t,r){return Sn(e,_n(t,r))}function Wn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Bn(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}var $n={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=bn(r.placement),c=In(s),u=[un,cn].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return Wn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Bn(e,fn))}(o.padding,r),f=Rn(i),d="y"===c?an:un,p="y"===c?sn:cn,v=r.rects.reference[u]+r.rects.reference[c]-a[c]-r.rects.popper[u],h=a[c]-r.rects.reference[c],m=zn(i),y=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,g=v/2-h/2,b=l[d],w=y-f[u]-l[p],O=y/2-f[u]/2+g,D=Hn(b,O,w),E=c;r.modifiersData[n]=((t={})[E]=D,t.centerOffset=D-O,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Tn(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Un(e){return e.split("-")[1]}var Yn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vn(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,f=e.isFixed,d=a.x,p=void 0===d?0:d,v=a.y,h=void 0===v?0:v,m="function"==typeof l?l({x:p,y:h}):{x:p,y:h};p=m.x,h=m.y;var y=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),b=un,w=an,O=window;if(u){var D=zn(r),E="clientHeight",S="clientWidth";if(D===wn(r)&&"static"!==An(D=Nn(r)).position&&"absolute"===s&&(E="scrollHeight",S="scrollWidth"),o===an||(o===un||o===cn)&&i===pn)w=sn,h-=(f&&D===O&&O.visualViewport?O.visualViewport.height:D[E])-n.height,h*=c?1:-1;if(o===un||(o===an||o===sn)&&i===pn)b=cn,p-=(f&&D===O&&O.visualViewport?O.visualViewport.width:D[S])-n.width,p*=c?1:-1}var _,M=Object.assign({position:s},u&&Yn),k=!0===l?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Mn(r*o)/o||0,y:Mn(n*o)/o||0}}({x:p,y:h},wn(r)):{x:p,y:h};return p=k.x,h=k.y,c?Object.assign({},M,((_={})[w]=g?"0":"",_[b]=y?"0":"",_.transform=(O.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",_)):Object.assign({},M,((t={})[w]=g?h+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var qn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,c=void 0===s||s,u={placement:bn(t.placement),variation:Un(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Vn(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Vn(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Kn={passive:!0};var Gn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,c=wn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(e){e.addEventListener("scroll",r.update,Kn)}),s&&c.addEventListener("resize",r.update,Kn),function(){i&&u.forEach(function(e){e.removeEventListener("scroll",r.update,Kn)}),s&&c.removeEventListener("resize",r.update,Kn)}},data:{}},Xn={left:"right",right:"left",bottom:"top",top:"bottom"};function Jn(e){return e.replace(/left|right|bottom|top/g,function(e){return Xn[e]})}var Zn={start:"end",end:"start"};function Qn(e){return e.replace(/start|end/g,function(e){return Zn[e]})}function eo(e){var t=wn(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function to(e){return xn(Nn(e)).left+eo(e).scrollLeft}function ro(e){var t=An(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function no(e){return["html","body","#document"].indexOf(Pn(e))>=0?e.ownerDocument.body:Dn(e)&&ro(e)?e:no(Fn(e))}function oo(e,t){var r;void 0===t&&(t=[]);var n=no(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=wn(n),a=o?[i].concat(i.visualViewport||[],ro(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(oo(Fn(a)))}function io(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ao(e,t,r){return t===vn?io(function(e,t){var r=wn(e),n=Nn(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var u=jn();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+to(e),y:c}}(e,r)):On(t)?function(e,t){var r=xn(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):io(function(e){var t,r=Nn(e),n=eo(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Sn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Sn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+to(e),c=-n.scrollTop;return"rtl"===An(o||r).direction&&(s+=Sn(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(Nn(e)))}function so(e,t,r,n){var o="clippingParents"===t?function(e){var t=oo(Fn(e)),r=["absolute","fixed"].indexOf(An(e).position)>=0&&Dn(e)?zn(e):e;return On(r)?t.filter(function(e){return On(e)&&Tn(e,r)&&"body"!==Pn(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(t,r){var o=ao(e,r,n);return t.top=Sn(o.top,t.top),t.right=_n(o.right,t.right),t.bottom=_n(o.bottom,t.bottom),t.left=Sn(o.left,t.left),t},ao(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function co(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?bn(o):null,a=o?Un(o):null,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(i){case an:t={x:s,y:r.y-n.height};break;case sn:t={x:s,y:r.y+r.height};break;case cn:t={x:r.x+r.width,y:c};break;case un:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var u=i?In(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case dn:t[u]=t[u]-(r[l]/2-n[l]/2);break;case pn:t[u]=t[u]+(r[l]/2-n[l]/2)}}return t}function uo(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,c=void 0===s?"clippingParents":s,u=r.rootBoundary,l=void 0===u?vn:u,f=r.elementContext,d=void 0===f?hn:f,p=r.altBoundary,v=void 0!==p&&p,h=r.padding,m=void 0===h?0:h,y=Wn("number"!=typeof m?m:Bn(m,fn)),g=d===hn?"reference":hn,b=e.rects.popper,w=e.elements[v?g:d],O=so(On(w)?w:w.contextElement||Nn(e.elements.popper),c,l,a),D=xn(e.elements.reference),E=co({reference:D,element:b,placement:o}),S=io(Object.assign({},b,E)),_=d===hn?S:D,M={top:O.top-_.top+y.top,bottom:_.bottom-O.bottom+y.bottom,left:O.left-_.left+y.left,right:_.right-O.right+y.right},k=e.modifiersData.offset;if(d===hn&&k){var j=k[o];Object.keys(M).forEach(function(e){var t=[cn,sn].indexOf(e)>=0?1:-1,r=[an,sn].indexOf(e)>=0?"y":"x";M[e]+=j[r]*t})}return M}function lo(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=void 0===c?yn:c,l=Un(n),f=l?s?mn:mn.filter(function(e){return Un(e)===l}):fn,d=f.filter(function(e){return u.indexOf(e)>=0});0===d.length&&(d=f);var p=d.reduce(function(t,r){return t[r]=uo(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[bn(r)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var fo={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,c=r.fallbackPlacements,u=r.padding,l=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,v=void 0===p||p,h=r.allowedAutoPlacements,m=t.options.placement,y=bn(m),g=c||(y===m||!v?[Jn(m)]:function(e){if(bn(e)===ln)return[];var t=Jn(e);return[Qn(e),t,Qn(t)]}(m)),b=[m].concat(g).reduce(function(e,r){return e.concat(bn(r)===ln?lo(t,{placement:r,boundary:l,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:h}):r)},[]),w=t.rects.reference,O=t.rects.popper,D=new Map,E=!0,S=b[0],_=0;_<b.length;_++){var M=b[_],k=bn(M),j=Un(M)===dn,x=[an,sn].indexOf(k)>=0,R=x?"width":"height",T=uo(t,{placement:M,boundary:l,rootBoundary:f,altBoundary:d,padding:u}),P=x?j?cn:un:j?sn:an;w[R]>O[R]&&(P=Jn(P));var A=Jn(P),C=[];if(i&&C.push(T[k]<=0),s&&C.push(T[P]<=0,T[A]<=0),C.every(function(e){return e})){S=M,E=!1;break}D.set(M,C)}if(E)for(var N=function(e){var t=b.find(function(t){var r=D.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},F=v?3:1;F>0;F--){if("break"===N(F))break}t.placement!==S&&(t.modifiersData[n]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function po(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function vo(e){return[an,cn,sn,un].some(function(t){return e[t]>=0})}var ho={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=yn.reduce(function(e,r){return e[r]=function(e,t,r){var n=bn(e),o=[un,an].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[un,cn].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e},{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}};var mo={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,c=r.boundary,u=r.rootBoundary,l=r.altBoundary,f=r.padding,d=r.tether,p=void 0===d||d,v=r.tetherOffset,h=void 0===v?0:v,m=uo(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:l}),y=bn(t.placement),g=Un(t.placement),b=!g,w=In(y),O="x"===w?"y":"x",D=t.modifiersData.popperOffsets,E=t.rects.reference,S=t.rects.popper,_="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,M="number"==typeof _?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(D){if(i){var x,R="y"===w?an:un,T="y"===w?sn:cn,P="y"===w?"height":"width",A=D[w],C=A+m[R],N=A-m[T],F=p?-S[P]/2:0,L=g===dn?E[P]:S[P],z=g===dn?-S[P]:-E[P],I=t.elements.arrow,H=p&&I?Rn(I):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=W[R],$=W[T],U=Hn(0,E[P],H[P]),Y=b?E[P]/2-F-U-B-M.mainAxis:L-U-B-M.mainAxis,V=b?-E[P]/2+F+U+$+M.mainAxis:z+U+$+M.mainAxis,q=t.elements.arrow&&zn(t.elements.arrow),K=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,G=null!=(x=null==k?void 0:k[w])?x:0,X=A+V-G,J=Hn(p?_n(C,A+Y-G-K):C,A,p?Sn(N,X):N);D[w]=J,j[w]=J-A}if(s){var Z,Q="x"===w?an:un,ee="x"===w?sn:cn,te=D[O],re="y"===O?"height":"width",ne=te+m[Q],oe=te-m[ee],ie=-1!==[an,un].indexOf(y),ae=null!=(Z=null==k?void 0:k[O])?Z:0,se=ie?ne:te-E[re]-S[re]-ae+M.altAxis,ce=ie?te+E[re]+S[re]-ae-M.altAxis:oe,ue=p&&ie?function(e,t,r){var n=Hn(e,t,r);return n>r?r:n}(se,te,ce):Hn(p?se:ne,te,p?ce:oe);D[O]=ue,j[O]=ue-te}t.modifiersData[n]=j}},requiresIfExists:["offset"]};function yo(e,t,r){void 0===r&&(r=!1);var n,o,i=Dn(t),a=Dn(t)&&function(e){var t=e.getBoundingClientRect(),r=Mn(t.width)/e.offsetWidth||1,n=Mn(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=Nn(t),c=xn(e,a,r),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!r)&&(("body"!==Pn(t)||ro(s))&&(u=(n=t)!==wn(n)&&Dn(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:eo(n)),Dn(t)?((l=xn(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=to(s))),{x:c.left+u.scrollLeft-l.x,y:c.top+u.scrollTop-l.y,width:c.width,height:c.height}}function go(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}var bo={placement:"bottom",modifiers:[],strategy:"absolute"};function wo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var Oo,Do,Eo=function(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?bo:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},bo,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,l={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;f(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:On(e)?oo(e):e.contextElement?oo(e.contextElement):[],popper:oo(t)};var a,u,d=function(e){var t=go(e);return gn.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}((a=[].concat(n,s.options.modifiers),u=a.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{}),Object.keys(u).map(function(e){return u[e]})));return s.orderedModifiers=d.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:l,options:n}),a=function(){};c.push(i||a)}}),l.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,r=e.popper;if(wo(t,r)){s.rects={reference:yo(t,zn(r),"fixed"===s.options.strategy),popper:Rn(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,c=void 0===a?{}:a,f=o.name;"function"==typeof i&&(s=i({state:s,options:c,name:f,instance:l})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise(function(e){l.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(