react-big-calendar
Version:
Calendar! with events
9 lines • 304 kB
JavaScript
!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 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 r(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||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function o(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function u(e,t){if(null==e)return{};var n,r,o=l(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}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 n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}function f(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function v(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 h(e,t,n){return t=d(t),v(e,p()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function g(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&&m(e,t)}function y(e){if(Array.isArray(e))return e}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function k(){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 E(e,t){return y(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||w(e,t)||k()}function S(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=S(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function D(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=S(e))&&(r&&(r+=" "),r+=t);return r}var _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O={},M={get exports(){return O},set exports(e){O=e}},C={},T=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var N=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var i in n=Object(arguments[a]))P.call(n,i)&&(o[i]=n[i]);if(T){r=T(n);for(var l=0;l<r.length;l++)R.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o},z=N,L=60103,A=60106;
/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/C.Fragment=60107,C.StrictMode=60108,C.Profiler=60114;var j=60109,F=60110,I=60112;C.Suspense=60113;var U=60115,W=60116;if("function"==typeof Symbol&&Symbol.for){var H=Symbol.for;L=H("react.element"),A=H("react.portal"),C.Fragment=H("react.fragment"),C.StrictMode=H("react.strict_mode"),C.Profiler=H("react.profiler"),j=H("react.provider"),F=H("react.context"),I=H("react.forward_ref"),C.Suspense=H("react.suspense"),U=H("react.memo"),W=H("react.lazy")}var V="function"==typeof Symbol&&Symbol.iterator;function B(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y={};function q(e,t,n){this.props=e,this.context=t,this.refs=Y,this.updater=n||$}function K(){}function Q(e,t,n){this.props=e,this.context=t,this.refs=Y,this.updater=n||$}q.prototype.isReactComponent={},q.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(B(85));this.updater.enqueueSetState(this,e,t,"setState")},q.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},K.prototype=q.prototype;var G=Q.prototype=new K;G.constructor=Q,z(G,q.prototype),G.isPureReactComponent=!0;var X={current:null},J=Object.prototype.hasOwnProperty,Z={key:!0,ref:!0,__self:!0,__source:!0};function ee(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)J.call(t,r)&&!Z.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),s=0;s<l;s++)u[s]=arguments[s+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:L,type:e,key:a,ref:i,props:o,_owner:X.current}}function te(e){return"object"==typeof e&&null!==e&&e.$$typeof===L}var ne=/\/+/g;function re(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function oe(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case L:case A:i=!0}}if(i)return o=o(i=e),e=""===r?"."+re(i,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(ne,"$&/")+"/"),oe(o,t,n,"",(function(e){return e}))):null!=o&&(te(o)&&(o=function(e,t){return{$$typeof:L,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(ne,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var u=r+re(a=e[l],l);i+=oe(a,t,n,u,o)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),l=0;!(a=e.next()).done;)i+=oe(a=a.value,t,n,u=r+re(a,l++),o);else if("object"===a)throw t=""+e,Error(B(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return i}function ae(e,t,n){if(null==e)return e;var r=[],o=0;return oe(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function ie(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var le={current:null};function ue(){var e=le.current;if(null===e)throw Error(B(321));return e}var se={ReactCurrentDispatcher:le,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:X,IsSomeRendererActing:{current:!1},assign:z};C.Children={map:ae,forEach:function(e,t,n){ae(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return ae(e,(function(){t++})),t},toArray:function(e){return ae(e,(function(e){return e}))||[]},only:function(e){if(!te(e))throw Error(B(143));return e}},C.Component=q,C.PureComponent=Q,C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=se,C.cloneElement=function(e,t,n){if(null==e)throw Error(B(267,e));var r=z({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=X.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)J.call(t,u)&&!Z.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){l=Array(u);for(var s=0;s<u;s++)l[s]=arguments[s+2];r.children=l}return{$$typeof:L,type:e.type,key:o,ref:a,props:r,_owner:i}},C.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:F,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:j,_context:e},e.Consumer=e},C.createElement=ee,C.createFactory=function(e){var t=ee.bind(null,e);return t.type=e,t},C.createRef=function(){return{current:null}},C.forwardRef=function(e){return{$$typeof:I,render:e}},C.isValidElement=te,C.lazy=function(e){return{$$typeof:W,_payload:{_status:-1,_result:e},_init:ie}},C.memo=function(e,t){return{$$typeof:U,type:e,compare:void 0===t?null:t}},C.useCallback=function(e,t){return ue().useCallback(e,t)},C.useContext=function(e,t){return ue().useContext(e,t)},C.useDebugValue=function(){},C.useEffect=function(e,t){return ue().useEffect(e,t)},C.useImperativeHandle=function(e,t,n){return ue().useImperativeHandle(e,t,n)},C.useLayoutEffect=function(e,t){return ue().useLayoutEffect(e,t)},C.useMemo=function(e,t){return ue().useMemo(e,t)},C.useReducer=function(e,t,n){return ue().useReducer(e,t,n)},C.useRef=function(e){return ue().useRef(e)},C.useState=function(e){return ue().useState(e)},C.version="17.0.2",function(e){e.exports=C}(M);var ce=x(O);function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fe.apply(null,arguments)}var de=function(e,t,n,r,o,a,i,l){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,a,i,l],c=0;(u=new Error(t.replace(/%s/g,(function(){return s[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}},pe=function(){};function ve(e,t){return void 0!==e[t]}function he(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function me(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function ge(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function ye(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}me.__suppressDeprecationWarning=!0,ge.__suppressDeprecationWarning=!0,ye.__suppressDeprecationWarning=!0;var be={},we={get exports(){return be},set exports(e){be=e}};function ke(){}function Ee(){}Ee.resetWarningCache=ke;we.exports=function(){function e(e,t,n,r,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var i=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 i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ee,resetWarningCache:ke};return n.PropTypes=n,n}();var Se={PREVIOUS:"PREV",NEXT:"NEXT",TODAY:"TODAY",DATE:"DATE"},De={MONTH:"month",WEEK:"week",WORK_WEEK:"work_week",DAY:"day",AGENDA:"agenda"},_e=Object.keys(De).map((function(e){return De[e]}));be.oneOfType([be.string,be.func]),be.any,be.func,be.oneOfType([be.arrayOf(be.oneOf(_e)),be.objectOf((function(e,t){if(-1!==_e.indexOf(t)&&"boolean"==typeof e[t])return null;for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return be.elementType.apply(be,[e,t].concat(r))}))]),be.oneOfType([be.oneOf(["overlap","no-overlap"]),be.func]);var xe="milliseconds",Oe="seconds",Me="minutes",Ce="hours",Te="day",Pe="week",Re="month",Ne="year",ze="decade",Le="century",Ae={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,day:864e5,week:6048e5},je={month:1,year:12,decade:120,century:1200};function Fe(e){return e%4==0&&e%100!=0||e%400==0?29:28}function Ie(e,t,n){switch(e=new Date(e),n){case xe:case Oe:case Me:case Ce:case Te:case Pe:return function(e,t){var n=new Date(+e+t);return function(e,t){var n=e.getTimezoneOffset(),r=t.getTimezoneOffset();return new Date(+t+(r-n)*Ae.minutes)}(e,n)}(e,t*Ae[n]);case Re:case Ne:case ze:case Le:return function(e,t){var n=e.getFullYear(),r=e.getMonth(),o=e.getDate(),a=12*n+r+t,i=Math.trunc(a/12),l=a%12,u=Math.min(o,function(e){return[31,Fe(e),31,30,31,30,31,31,30,31,30,31]}(i)[l]),s=new Date(e);return s.setFullYear(i),s.setDate(1),s.setMonth(l),s.setDate(u),s}(e,t*je[n])}throw new TypeError('Invalid units: "'+n+'"')}function Ue(e,t,n){return Ie(e,-t,n)}function We(e,t,n){switch(e=new Date(e),t){case Le:case ze:case Ne:e=ot(e,0);case Re:e=rt(e,1);case Pe:case Te:e=tt(e,0);case Ce:e=et(e,0);case Me:e=Ze(e,0);case Oe:e=Je(e,0)}return t===ze&&(e=Ue(e,at(e)%10,"year")),t===Le&&(e=Ue(e,at(e)%100,"year")),t===Pe&&(e=it(e,0,n)),e}function He(e,t,n){switch(e=We(e=new Date(e),t,n),t){case Le:case ze:case Ne:case Re:case Pe:(e=Ue(e=Ie(e,1,t),1,Te)).setHours(23,59,59,999);break;case Te:e.setHours(23,59,59,999);break;case Ce:case Me:case Oe:e=Ue(e=Ie(e,1,t),1,xe)}return e}var Ve=ut((function(e,t){return e===t})),Be=ut((function(e,t){return e!==t})),$e=ut((function(e,t){return e>t})),Ye=ut((function(e,t){return e>=t})),qe=ut((function(e,t){return e<t})),Ke=ut((function(e,t){return e<=t}));function Qe(){return new Date(Math.min.apply(Math,arguments))}function Ge(){return new Date(Math.max.apply(Math,arguments))}function Xe(e,t,n,r){return r=r||"day",(!t||Ye(e,t,r))&&(!n||Ke(e,n,r))}var Je=lt("Milliseconds"),Ze=lt("Seconds"),et=lt("Minutes"),tt=lt("Hours"),nt=lt("Day"),rt=lt("Date"),ot=lt("Month"),at=lt("FullYear");function it(e,t,n){var r=(nt(e)+7-(n||0))%7;return void 0===t?r:Ie(e,t-r,Te)}function lt(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(n,r){if(void 0===r)return n["get"+e]();var o=new Date(n);return o["set"+e](r),t&&o["get"+e]()!=r&&("Hours"===e||r>=t&&o.getHours()-n.getHours()<Math.floor(r/t))&&o["set"+e](r+t),o}}function ut(e){return function(t,n,r){return e(+We(t,r),+We(n,r))}}var st=Object.freeze({__proto__:null,add:Ie,century:function(e,t){return void 0===t?at(We(e,Le)):Ie(e,t+100,Ne)},date:rt,day:nt,decade:function(e,t){return void 0===t?at(We(e,ze)):Ie(e,t+10,Ne)},diff:function(e,t,n,r){var o,a,i;switch(n){case xe:case Oe:case Me:case Ce:case Te:case Pe:o=t.getTime()-e.getTime();break;case Re:case Ne:case ze:case Le:o=12*(at(t)-at(e))+ot(t)-ot(e);break;default:throw new TypeError('Invalid units: "'+n+'"')}switch(n){case xe:a=1;break;case Oe:a=1e3;break;case Me:a=6e4;break;case Ce:a=36e5;break;case Te:a=864e5;break;case Pe:a=6048e5;break;case Re:a=1;break;case Ne:a=12;break;case ze:a=120;break;case Le:a=1200;break;default:throw new TypeError('Invalid units: "'+n+'"')}return i=o/a,r?i:Math.round(i)},endOf:He,eq:Ve,gt:$e,gte:Ye,hours:tt,inRange:Xe,lt:qe,lte:Ke,max:Ge,milliseconds:Je,min:Qe,minutes:et,month:ot,neq:Be,seconds:Ze,startOf:We,subtract:Ue,weekday:it,year:at}),ct={seconds:1e3,minutes:6e4,hours:36e5,day:864e5};function ft(e,t){var n=We(e,"month");return We(n,"week",t.startOfWeek())}function dt(e,t){var n=He(e,"month");return He(n,"week",t.startOfWeek())}function pt(e,t){for(var n=ft(e,t),r=dt(e,t),o=[];Ke(n,r,"day");)o.push(n),n=Ie(n,1,"day");return o}function vt(e,t){var n=We(e,t);return Ve(n,e)?n:Ie(n,1,t)}function ht(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day",r=e,o=[];Ke(r,t,n);)o.push(r),r=Ie(r,1,n);return o}function mt(e,t){return null==t&&null==e?null:(null==t&&(t=new Date),null==e&&(e=new Date),e=We(e,"day"),e=tt(e,tt(t)),e=et(e,et(t)),e=Ze(e,Ze(t)),Je(e,Je(t)))}function gt(e){return 0===tt(e)&&0===et(e)&&0===Ze(e)&&0===Je(e)}function yt(e,t,n){return n&&"milliseconds"!==n?Math.round(Math.abs(+We(e,n)/ct[n]-+We(t,n)/ct[n])):Math.abs(+e-+t)}var bt=be.oneOfType([be.string,be.func]);function wt(e,t,n,r,o){var a="function"==typeof r?r(n,o,e):t.call(e,n,r,o);return de(null==a||"string"==typeof a,"`localizer format(..)` must return a string, null, or undefined"),a}function kt(e,t,n){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,t+n,0,0)}function Et(e,t){return e.getTimezoneOffset()-t.getTimezoneOffset()}function St(e,t){return yt(e,t,"minutes")+Et(e,t)}function Dt(e){var t=We(e,"day");return yt(t,e,"minutes")+Et(t,e)}function _t(e,t){return qe(e,t,"day")}function xt(e,t,n){return Ve(e,t,"minutes")?Ye(t,n,"minutes"):$e(t,n,"minutes")}function Ot(e,t){return function(e,t,n,r){return"day"===n&&(n="date"),Math.abs(st[n](e,void 0,r)-st[n](t,void 0,r))}(e,t,"day")}function Mt(e){var t=e.evtA,n=t.start,r=t.end,o=t.allDay,a=e.evtB,i=a.start,l=a.end,u=a.allDay,s=+We(n,"day")-+We(i,"day"),c=Ot(n,r),f=Ot(i,l);return s||f-c||!!u-!!o||+n-+i||+r-+l}function Ct(e){var t=e.event,n=t.start,r=t.end,o=e.range,a=o.start,i=o.end,l=We(n,"day"),u=Ke(l,i,"day"),s=Be(l,r,"minutes")?$e(r,a,"minutes"):Ye(r,a,"minutes");return u&&s}function Tt(e,t){return Ve(e,t,"day")}function Pt(e,t){return gt(e)&>(t)}var Rt=f((function e(t){var n=this;s(this,e),de("function"==typeof t.format,"date localizer `format(..)` must be a function"),de("function"==typeof t.firstOfWeek,"date localizer `firstOfWeek(..)` must be a function"),this.propType=t.propType||bt,this.formats=t.formats,this.format=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return wt.apply(void 0,[n,t.format].concat(r))},this.startOfWeek=t.firstOfWeek,this.merge=t.merge||mt,this.inRange=t.inRange||Xe,this.lt=t.lt||qe,this.lte=t.lte||Ke,this.gt=t.gt||$e,this.gte=t.gte||Ye,this.eq=t.eq||Ve,this.neq=t.neq||Be,this.startOf=t.startOf||We,this.endOf=t.endOf||He,this.add=t.add||Ie,this.range=t.range||ht,this.diff=t.diff||yt,this.ceil=t.ceil||vt,this.min=t.min||Qe,this.max=t.max||Ge,this.minutes=t.minutes||et,this.daySpan=t.daySpan||Ot,this.firstVisibleDay=t.firstVisibleDay||ft,this.lastVisibleDay=t.lastVisibleDay||dt,this.visibleDays=t.visibleDays||pt,this.getSlotDate=t.getSlotDate||kt,this.getTimezoneOffset=t.getTimezoneOffset||function(e){return e.getTimezoneOffset()},this.getDstOffset=t.getDstOffset||Et,this.getTotalMin=t.getTotalMin||St,this.getMinutesFromMidnight=t.getMinutesFromMidnight||Dt,this.continuesPrior=t.continuesPrior||_t,this.continuesAfter=t.continuesAfter||xt,this.sortEvents=t.sortEvents||Mt,this.inEventRange=t.inEventRange||Ct,this.isSameDate=t.isSameDate||Tt,this.startAndEndAreDateOnly=t.startAndEndAreDateOnly||Pt,this.segmentOffset=t.browserTZOffset?t.browserTZOffset():0}));function Nt(e,t,n,r){var o=i(i({},e.formats),n);return i(i({},e),{},{messages:r,startOfWeek:function(){return e.startOfWeek(t)},format:function(n,r){return e.format(n,o[r]||r,t)}})}var zt=function(e){function t(){var e;s(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=h(this,t,[].concat(r))).navigate=function(t){e.props.onNavigate(t)},e.view=function(t){e.props.onView(t)},e}return g(t,e),f(t,[{key:"render",value:function(){var e=this.props,t=e.localizer.messages,n=e.label;return ce.createElement("div",{className:"rbc-toolbar"},ce.createElement("span",{className:"rbc-btn-group"},ce.createElement("button",{type:"button",onClick:this.navigate.bind(null,Se.TODAY)},t.today),ce.createElement("button",{type:"button",onClick:this.navigate.bind(null,Se.PREVIOUS)},t.previous),ce.createElement("button",{type:"button",onClick:this.navigate.bind(null,Se.NEXT)},t.next)),ce.createElement("span",{className:"rbc-toolbar-label"},n),ce.createElement("span",{className:"rbc-btn-group"},this.viewNamesGroup(t)))}},{key:"viewNamesGroup",value:function(e){var t=this,n=this.props.views,r=this.props.view;if(n.length>1)return n.map((function(n){return ce.createElement("button",{type:"button",key:n,className:D({"rbc-active":r===n}),onClick:t.view.bind(null,n)},e[n])}))}}])}(ce.Component);function Lt(e,t){e&&e.apply(null,[].concat(t))}var At={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 jt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ft(e){return function(e){if(Array.isArray(e))return b(e)}(e)||jt(e)||w(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.")}()}var It=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a};var Ut=function(e,t){return e===t||e!=e&&t!=t},Wt="object"==typeof _&&_&&_.Object===Object&&_,Ht=Wt,Vt="object"==typeof self&&self&&self.Object===Object&&self,Bt=Ht||Vt||Function("return this")(),$t=Bt.Symbol,Yt=$t,qt=Object.prototype,Kt=qt.hasOwnProperty,Qt=qt.toString,Gt=Yt?Yt.toStringTag:void 0;var Xt=function(e){var t=Kt.call(e,Gt),n=e[Gt];try{e[Gt]=void 0;var r=!0}catch(e){}var o=Qt.call(e);return r&&(t?e[Gt]=n:delete e[Gt]),o},Jt=Object.prototype.toString;var Zt=Xt,en=function(e){return Jt.call(e)},tn=$t?$t.toStringTag:void 0;var nn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":tn&&tn in Object(e)?Zt(e):en(e)};var rn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},on=nn,an=rn;var ln=function(e){if(!an(e))return!1;var t=on(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var un=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},sn=ln,cn=un;var fn=function(e){return null!=e&&cn(e.length)&&!sn(e)},dn=/^(?:0|[1-9]\d*)$/;var pn=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&dn.test(e))&&e>-1&&e%1==0&&e<t},vn=Ut,hn=fn,mn=pn,gn=rn;var yn=function(e,t,n){if(!gn(n))return!1;var r=typeof t;return!!("number"==r?hn(n)&&mn(t,n.length):"string"==r&&t in n)&&vn(n[t],e)},bn=/\s/;var wn=function(e){for(var t=e.length;t--&&bn.test(e.charAt(t)););return t},kn=/^\s+/;var En=function(e){return null!=e&&"object"==typeof e},Sn=nn,Dn=En;var _n=function(e){return"symbol"==typeof e||Dn(e)&&"[object Symbol]"==Sn(e)},xn=function(e){return e?e.slice(0,wn(e)+1).replace(kn,""):e},On=rn,Mn=_n,Cn=/^[-+]0x[0-9a-f]+$/i,Tn=/^0b[01]+$/i,Pn=/^0o[0-7]+$/i,Rn=parseInt;var Nn=function(e){if("number"==typeof e)return e;if(Mn(e))return NaN;if(On(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=On(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=xn(e);var n=Tn.test(e);return n||Pn.test(e)?Rn(e.slice(2),n?2:8):Cn.test(e)?NaN:+e},zn=1/0;var Ln=function(e){return e?(e=Nn(e))===zn||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},An=Ln;var jn=function(e){var t=An(e),n=t%1;return t==t?n?t-n:t:0},Fn=It,In=yn,Un=jn,Wn=Math.ceil,Hn=Math.max;var Vn=function(e,t,n){t=(n?In(e,t,n):void 0===t)?1:Hn(Un(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,a=0,i=Array(Wn(r/t));o<r;)i[a++]=Fn(e,o,o+=t);return i};function Bn(e){return e&&e.ownerDocument||document}function $n(e,t){return function(e){var t=Bn(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}var Yn=/([A-Z])/g;var qn=/^ms-/;function Kn(e){return function(e){return e.replace(Yn,"-$1").toLowerCase()}(e).replace(qn,"-ms-")}var Qn=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Gn(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Kn(t))||$n(e).getPropertyValue(Kn(t));Object.keys(t).forEach((function(o){var a=t[o];a||0===a?!function(e){return!(!e||!Qn.test(e))}(o)?n+=Kn(o)+": "+a+";":r+=o+"("+a+") ":e.style.removeProperty(Kn(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}function Xn(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function Jn(e){return"window"in e&&e.window===e?e:"nodeType"in(t=e)&&t.nodeType===document.DOCUMENT_NODE&&e.defaultView||!1;var t}function Zn(e){var t="pageXOffset"===e?"scrollLeft":"scrollTop";return function(n,r){var o=Jn(n);if(void 0===r)return o?o[e]:n[t];o?o.scrollTo(o[e],r):n[t]=r}}var er=Zn("pageXOffset"),tr=Zn("pageYOffset");function nr(e){var t=Bn(e),n={top:0,left:0,height:0,width:0},r=t&&t.documentElement;return r&&Xn(r,e)?(void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),n={top:n.top+tr(r)-(r.clientTop||0),left:n.left+er(r)-(r.clientLeft||0),width:n.width,height:n.height}):n}var rr=function(e){return!!e&&"offsetParent"in e};function or(e,t){var n,r={top:0,left:0};if("fixed"===Gn(e,"position"))n=e.getBoundingClientRect();else{var o=t||function(e){for(var t=Bn(e),n=e&&e.offsetParent;rr(n)&&"HTML"!==n.nodeName&&"static"===Gn(n,"position");)n=n.offsetParent;return n||t.documentElement}(e);n=nr(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(o)&&(r=nr(o));var a=String(Gn(o,"borderTopWidth")||0);r.top+=parseInt(a,10)-tr(o)||0;var i=String(Gn(o,"borderLeftWidth")||0);r.left+=parseInt(i,10)-er(o)||0}var l=String(Gn(e,"marginTop")||0),u=String(Gn(e,"marginLeft")||0);return fe({},n,{top:n.top-r.top-(parseInt(l,10)||0),left:n.left-r.left-(parseInt(u,10)||0)})}var ar=!("undefined"==typeof window||!window.document||!window.document.createElement),ir=(new Date).getTime();var lr="clearTimeout",ur=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-ir)),r=setTimeout(e,n);return ir=t,r},sr=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};ar&&["","webkit","moz","o","ms"].some((function(e){var t=sr(e,"request");return t in window&&(lr=sr(e,"cancel"),ur=function(e){return window[t](e)}),!!ur}));var cr,fr=function(e){"function"==typeof window[lr]&&window[lr](e)},dr=ur;function pr(e,t){if(!cr){var n=document.body,r=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;cr=function(e,t){return r.call(e,t)}}return cr(e,t)}var vr=Function.prototype.bind.call(Function.prototype.call,[].slice);var hr=!1,mr=!1;try{var gr={get passive(){return hr=!0},get once(){return mr=hr=!0}};ar&&(window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,!0))}catch(e){}function yr(e){const t=function(e){const t=O.useRef(e);return O.useEffect((()=>{t.current=e}),[e]),t}(e);return O.useCallback((function(...e){return t.current&&t.current(...e)}),[t])}function br(){return O.useState(null)}function wr(e){const t=function(){const e=O.useRef(!0),t=O.useRef((()=>e.current));return O.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t.current}();return[e[0],O.useCallback((n=>{if(t())return e[1](n)}),[t,e[1]])]}var kr="top",Er="bottom",Sr="right",Dr="left",_r="auto",xr=[kr,Er,Sr,Dr],Or="start",Mr="end",Cr="clippingParents",Tr="viewport",Pr="popper",Rr="reference",Nr=xr.reduce((function(e,t){return e.concat([t+"-"+Or,t+"-"+Mr])}),[]),zr=[].concat(xr,[_r]).reduce((function(e,t){return e.concat([t,t+"-"+Or,t+"-"+Mr])}),[]),Lr=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ar(e){return e.split("-")[0]}function jr(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fr(e){return e instanceof jr(e).Element||e instanceof Element}function Ir(e){return e instanceof jr(e).HTMLElement||e instanceof HTMLElement}function Ur(e){return"undefined"!=typeof ShadowRoot&&(e instanceof jr(e).ShadowRoot||e instanceof ShadowRoot)}var Wr=Math.max,Hr=Math.min,Vr=Math.round;function Br(){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 $r(){return!/^((?!chrome|android).)*safari/i.test(Br())}function Yr(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Ir(e)&&(o=e.offsetWidth>0&&Vr(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Vr(r.height)/e.offsetHeight||1);var i=(Fr(e)?jr(e):window).visualViewport,l=!$r()&&n,u=(r.left+(l&&i?i.offsetLeft:0))/o,s=(r.top+(l&&i?i.offsetTop:0))/a,c=r.width/o,f=r.height/a;return{width:c,height:f,top:s,right:u+c,bottom:s+f,left:u,x:u,y:s}}function qr(e){var t=Yr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Kr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ur(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qr(e){return e?(e.nodeName||"").toLowerCase():null}function Gr(e){return jr(e).getComputedStyle(e)}function Xr(e){return["table","td","th"].indexOf(Qr(e))>=0}function Jr(e){return((Fr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zr(e){return"html"===Qr(e)?e:e.assignedSlot||e.parentNode||(Ur(e)?e.host:null)||Jr(e)}function eo(e){return Ir(e)&&"fixed"!==Gr(e).position?e.offsetParent:null}function to(e){for(var t=jr(e),n=eo(e);n&&Xr(n)&&"static"===Gr(n).position;)n=eo(n);return n&&("html"===Qr(n)||"body"===Qr(n)&&"static"===Gr(n).position)?t:n||function(e){var t=/firefox/i.test(Br());if(/Trident/i.test(Br())&&Ir(e)&&"fixed"===Gr(e).position)return null;var n=Zr(e);for(Ur(n)&&(n=n.host);Ir(n)&&["html","body"].indexOf(Qr(n))<0;){var r=Gr(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function no(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ro(e,t,n){return Wr(e,Hr(t,n))}function oo(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ao(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var io={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Ar(n.placement),u=no(l),s=[Dr,Sr].indexOf(l)>=0?"height":"width";if(a&&i){var c=function(e,t){return oo("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ao(e,xr))}(o.padding,n),f=qr(a),d="y"===u?kr:Dr,p="y"===u?Er:Sr,v=n.rects.reference[s]+n.rects.reference[u]-i[u]-n.rects.popper[s],h=i[u]-n.rects.reference[u],m=to(a),g=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,y=v/2-h/2,b=c[d],w=g-f[s]-c[p],k=g/2-f[s]/2+y,E=ro(b,k,w),S=u;n.modifiersData[r]=((t={})[S]=E,t.centerOffset=E-k,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Kr(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function lo(e){return e.split("-")[1]}var uo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function so(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,u=e.gpuAcceleration,s=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=i.x,p=void 0===d?0:d,v=i.y,h=void 0===v?0:v,m="function"==typeof c?c({x:p,y:h}):{x:p,y:h};p=m.x,h=m.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=Dr,w=kr,k=window;if(s){var E=to(n),S="clientHeight",D="clientWidth";if(E===jr(n)&&"static"!==Gr(E=Jr(n)).position&&"absolute"===l&&(S="scrollHeight",D="scrollWidth"),o===kr||(o===Dr||o===Sr)&&a===Mr)w=Er,h-=(f&&E===k&&k.visualViewport?k.visualViewport.height:E[S])-r.height,h*=u?1:-1;if(o===Dr||(o===kr||o===Er)&&a===Mr)b=Sr,p-=(f&&E===k&&k.visualViewport?k.visualViewport.width:E[D])-r.width,p*=u?1:-1}var _,x=Object.assign({position:l},s&&uo),O=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Vr(n*o)/o||0,y:Vr(r*o)/o||0}}({x:p,y:h},jr(n)):{x:p,y:h};return p=O.x,h=O.y,u?Object.assign({},x,((_={})[w]=y?"0":"",_[b]=g?"0":"",_.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",_)):Object.assign({},x,((t={})[w]=y?h+"px":"",t[b]=g?p+"px":"",t.transform="",t))}var co={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,u=void 0===l||l,s={placement:Ar(t.placement),variation:lo(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,so(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,so(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},fo={passive:!0};var po={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,u=jr(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&s.forEach((function(e){e.addEventListener("scroll",n.update,fo)})),l&&u.addEventListener("resize",n.update,fo),function(){a&&s.forEach((function(e){e.removeEventListener("scroll",n.update,fo)})),l&&u.removeEventListener("resize",n.update,fo)}},data:{}},vo={left:"right",right:"left",bottom:"top",top:"bottom"};function ho(e){return e.replace(/left|right|bottom|top/g,(function(e){return vo[e]}))}var mo={start:"end",end:"start"};function go(e){return e.replace(/start|end/g,(function(e){return mo[e]}))}function yo(e){var t=jr(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function bo(e){return Yr(Jr(e)).left+yo(e).scrollLeft}function wo(e){var t=Gr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ko(e){return["html","body","#document"].indexOf(Qr(e))>=0?e.ownerDocument.body:Ir(e)&&wo(e)?e:ko(Zr(e))}function Eo(e,t){var n;void 0===t&&(t=[]);var r=ko(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=jr(r),i=o?[a].concat(a.visualViewport||[],wo(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Eo(Zr(i)))}function So(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Do(e,t,n){return t===Tr?So(function(e,t){var n=jr(e),r=Jr(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;var s=$r();(s||!s&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l+bo(e),y:u}}(e,n)):Fr(t)?function(e,t){var n=Yr(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):So(function(e){var t,n=Jr(e),r=yo(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Wr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Wr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+bo(e),u=-r.scrollTop;return"rtl"===Gr(o||n).direction&&(l+=Wr(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:u}}(Jr(e)))}function _o(e,t,n,r){var o="clippingParents"===t?function(e){var t=Eo(Zr(e)),n=["absolute","fixed"].indexOf(Gr(e).position)>=0&&Ir(e)?to(e):e;return Fr(n)?t.filter((function(e){return Fr(e)&&Kr(e,n)&&"body"!==Qr(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=Do(e,n,r);return t.top=Wr(o.top,t.top),t.right=Hr(o.right,t.right),t.bottom=Hr(o.bottom,t.bottom),t.left=Wr(o.left,t.left),t}),Do(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function xo(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Ar(o):null,i=o?lo(o):null,l=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(a){case kr:t={x:l,y:n.y-r.height};break;case Er:t={x:l,y:n.y+n.height};break;case Sr:t={x:n.x+n.width,y:u};break;case Dr:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var s=a?no(a):null;if(null!=s){var c="y"===s?"height":"width";switch(i){case Or:t[s]=t[s]-(n[c]/2-r[c]/2);break;case Mr:t[s]=t[s]+(n[c]/2-r[c]/2)}}return t}function Oo(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,u=void 0===l?Cr:l,s=n.rootBoundary,c=void 0===s?Tr:s,f=n.elementContext,d=void 0===f?Pr:f,p=n.altBoundary,v=void 0!==p&&p,h=n.padding,m=void 0===h?0:h,g=oo("number"!=typeof m?m:ao(m,xr)),y=d===Pr?Rr:Pr,b=e.rects.popper,w=e.elements[v?y:d],k=_o(Fr(w)?w:w.contextElement||Jr(e.elements.popper),u,c,i),E=Yr(e.elements.reference),S=xo({reference:E,element:b,strategy:"absolute",placement:o}),D=So(Object.assign({},b,S)),_=d===Pr?D:E,x={top:k.top-_.top+g.top,bottom:_.bottom-k.bottom+g.bottom,left:k.left-_.left+g.left,right:_.right-k.right+g.right},O=e.modifiersData.offset;if(d===Pr&&O){var M=O[o];Object.keys(x).forEach((function(e){var t=[Sr,Er].indexOf(e)>=0?1:-1,n=[kr,Er].indexOf(e)>=0?"y":"x";x[e]+=M[n]*t}))}return x}function Mo(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,s=void 0===u?zr:u,c=lo(r),f=c?l?Nr:Nr.filter((function(e){return lo(e)===c})):xr,d=f.filter((function(e){return s.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=Oo(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Ar(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var Co={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,u=n.fallbackPlacements,s=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,v=void 0===p||p,h=n.allowedAutoPlacements,m=t.options.placement,g=Ar(m),y=u||(g===m||!v?[ho(m)]:function(e){if(Ar(e)===_r)return[];var t=ho(e);return[go(e),t,go(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(Ar(n)===_r?Mo(t,{placement:n,boundary:c,rootBoundary:f,padding:s,flipVariations:v,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,k=t.rects.popper,E=new Map,S=!0,D=b[0],_=0;_<b.length;_++){var x=b[_],O=Ar(x),M=lo(x)===Or,C=[kr,Er].indexOf(O)>=0,T=C?"width":"height",P=Oo(t,{placement:x,boundary:c,rootBoundary:f,altBoundary:d,padding:s}),R=C?M?Sr:Dr:M?Er:kr;w[T]>k[T]&&(R=ho(R));var N=ho(R),z=[];if(a&&z.push(P[O]<=0),l&&z.push(P[R]<=0,P[N]<=0),z.every((function(e){return e}))){D=x,S=!1;break}E.set(x,z)}if(S)for(var L=function(e){var t=b.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return D=t,"break"},A=v?3:1;A>0;A--){if("break"===L(A))break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function To(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Po(e){return[kr,Sr,Er,Dr].some((function(t){return e[t]>=0}))}var Ro={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=zr.reduce((function(e,n){return e[n]=function(e,t,n){var r=Ar(e),o=[Dr,kr].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Dr,Sr].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],u=l.x,s=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=i}};var No={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,u=n.boundary,s=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,v=n.tetherOffset,h=void 0===v?0:v,m=Oo(t,{boundary:u,rootBoundary:s,padding:f,altBoundary:c}),g=Ar(t.placement),y=lo(t.placement),b=!y,w=no(g),k="x"===w?"y":"x",E=t.modifiersData.popperOffsets,S=t.rects.reference,D=t.rects.popper,_="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,x="number"==typeof _?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(E){if(a){var C,T="y"===w?kr:Dr,P="y"===w?Er:Sr,R="y"===w?"height":"width",N=E[w],z=N+m[T],L=N-m[P],A=p?-D[R]/2:0,j=y===Or?S[R]:D[R],F=y===Or?-D[R]:-S[R],I=t.elements.arrow,U=p&&I?qr(I):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=W[T],V=W[P],B=ro(0,S[R],U[R]),$=b?S[R]/2-A-B-H-x.mainAxis:j-B-H-x.mainAxis,Y=b?-S[R]/2+A+B+V+x.mainAxis:F+B+V+x.mainAxis,q=t.elements.arrow&&to(t.elements.arrow),K=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Q=null!=(C=null==O?void 0:O[w])?C:0,G=N+Y-Q,X=ro(p?Hr(z,N+$-Q-K):z,N,p?Wr(L,G):L);E[w]=X,M[w]=X-N}if(l){var J,Z="x"===w?kr:Dr,ee="x"===w?Er:Sr,te=E[k],ne="y"===k?"height":"width",re=te+m[Z],oe=te-m[ee],ae=-1!==[kr,Dr].indexOf(g),ie=null!=(J=null==O?void 0:O[k])?J:0,le=ae?re:te-S[ne]-D[ne]-ie+x.altAxis,ue=ae?te+S[ne]+D[ne]-ie-x.altAxis:oe,se=p&&ae?function(e,t,n){var r=ro(e,t,n);return r>n?n:r}(le,te,ue):ro(p?le:re,te,p?ue:oe);E[k]=se,M[k]=se-te}t.modifiersData[r]=M}},requiresIfExists:["offset"]};function zo(e,t,n){void 0===n&&(n=!1);var r,o,a=Ir(t),i=Ir(t)&&function(e){var t=e.getBoundingClientRect(),n=Vr(t.width)/e.offsetWidth||1,r=Vr(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=Jr(t),u=Yr(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&(("body"!==Qr(t)||wo(l))&&(s=(r=t)!==jr(r)&&Ir(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:yo(r)),Ir(t)?((c=Yr(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=bo(l))),{x:u.left+s.scrollLeft-c.x,y:u.top+s.scrollTop-c.y,width:u.width,height:u.height}}function Lo(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Ao={placement:"bottom",modifiers:[],strategy:"absolute"};function jo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}var Fo=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Ao:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ao,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],s=!1,c={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;f(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:Fr(e)?Eo(e):e.contextElement?Eo(e.contextElement):[],popper:Eo(t)};var i,s,d=function(e){var t=Lo(e);return Lr.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),s=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(s).map((function(e){return s[e]}))));return l.orderedModifiers=d.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:c,options:r}),i=function(){};u.push(a||i)}})),c.update()},forceUpdate:function(){if(!s){var e=l.elements,t=e.reference,n=e.popper;if(jo(t,n)){l.rects={reference:zo(t,to(n),"fixed"===l.options.strategy),popper:qr(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,u=void 0===i?{}:i,f=o.name;"function"==typeof a&&(l=a({state:l,options:u,name:f,instance:c})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){f(),s=!0}};if(!jo(e,t))return c;function f(){u.forEach((function(e){return e()})),u=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Oo(t,{elementContext:"reference"}),l=Oo(t,{altBoundary:!0}),u=To(i,r),s=To(l,o,a),c=Po(u),f=Po(s);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=xo({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},co,po,Ro,Co,No,io]}),Io=function(e){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}},Uo={name:"applyStyles",enabled:!1},Wo={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:function(e){var t=e.state;return function(){var e=t.elements,n=e.reference,r=e.popper;if("removeAttribute"in n){var o=(n.getAttribute("aria-describedby")||"").split(",").filter((function(e){return e.trim()!==r.id}));o.length?n.setAttribute("aria-describedby",o.join(",")):n.removeAttribute("aria-describedby")}}},fn:function(e){var t,n=e.state.elements,r=n.popper,o=n.reference,a=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===a&&"setAttribute"in o){var i=o.getAttribute("aria-describedby");if(i&&-1!==i.split(",").indexOf(r.id))return;o.setAttribute("aria-describedby",i?i+","+r.id:r.id)}}},Ho=[];function Vo(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!mr){var o=r.once,a=r.capture,i=n;!mr&&o&&(i=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=i),e.addEventListener(t,i,hr?r:a)}e.addEventListener(t,n,r)}(e,t,n,r),function(){!function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}(e,t,n,r)}}var Bo={},$o={get exports(){return Bo},set exports(e){Bo=e}},Yo={},qo={},Ko={get exports(){return qo},set