1"use strict";(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[390],{1404:function(e,t,n){n.d(t,{S:function(){return s}});var i=n(7294),r=n(2788);const s=e=>{let{children:t,type:n="violet",container:r,clip:s="70%",sectionContainer:u=!1}=e;return i.createElement(o,{sectionContainer:u,container:r},i.createElement(l,null,i.createElement(a,{clip:s,type:n})),i.createElement(c,null,t))},o=r.default.div.withConfig({componentId:"sc-1moua8z-0"})` 2 padding-top: ${e=>{let{container:t,sectionContainer:n}=e;return n?"40px":t?"70px":"40px"}}; 3 padding-bottom: ${e=>{let{container:t,sectionContainer:n}=e;return n?"40px":t?"0":"50"}}; 4 position: relative; 5 @media (min-width: ${e=>{let{theme:t}=e;return t.media.desktop_min}}) { 6 padding-top: ${e=>{let{container:t,sectionContainer:n}=e;return n?"40px":t?"135px":"185px"}}; 7 } 8 9 .header-bg { 10 position: absolute; 11 top: 0; 12 left: 0; 13 width: 100%; 14 height: 100%; 15 } 16`,a=r.default.div.withConfig({componentId:"sc-1moua8z-1"})` 17 position: absolute; 18 top: 0; 19 left: 0; 20 width: 100%; 21 height: 100%; 22 &:before { 23 content: ""; 24 position: absolute; 25 width: 100%; 26 height: 100%; 27 top: 0; 28 left: 0; 29 background-color: ${e=>"violet"===e.type?"#473974":"#005475"}; 30 } 31`,l=r.default.div.withConfig({componentId:"sc-1moua8z-2"})` 32 img { 33 z-index: -1; 34 width: 40% !important; 35 left: auto !important; 36 right: 0; 37 } 38`,c=r.default.div.withConfig({componentId:"sc-1moua8z-3"})` 39 position: relative; 40 z-index: 50; 41`},8350:function(e,t,n){n.r(t),n.d(t,{default:function(){return $n}});var i=n(7294),r=n.t(i,2),s=n(5195),o=n(7582),a=n(9672),l=n(320),c=!1,u=r.useSyncExternalStore||function(e,t,n){var r=t();!1===globalThis.__DEV__||c||r===t()||(c=!0,!1!==globalThis.__DEV__&&a.kG.error(56));var s=i.useState({inst:{value:r,getSnapshot:t}}),o=s[0].inst,u=s[1];return l.JC?i.useLayoutEffect((function(){Object.assign(o,{value:r,getSnapshot:t}),d(o)&&u({inst:o})}),[e,r,t]):Object.assign(o,{value:r,getSnapshot:t}),i.useEffect((function(){return d(o)&&u({inst:o}),e((function(){d(o)&&u({inst:o})}))}),[e]),r};function d(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch(i){return!0}}var h,p=n(20),f=n(4012),g=n(5317),v=n(990),m=n(1644);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(h||(h={}));var y=new Map;function _(e){var t;switch(e){case h.Query:t="Query";break;case h.Mutation:t="Mutation";break;case h.Subscription:t="Subscription"}return t}function b(e,t){var n=function(e){var t,n,i=y.get(e);if(i)return i;(0,a.kG)(!!e&&!!e.kind,57,e);for(var r=[],s=[],o=[],l=[],c=0,u=e.definitions;c<u.length;c++){var d=u[c];if("FragmentDefinition"!==d.kind){if("OperationDefinition"===d.kind)switch(d.operation){case"query":s.push(d);break;case"mutation":o.push(d);break;case"subscription":l.push(d)}}else r.push(d)}(0,a.kG)(!r.length||s.length||o.length||l.length,58),(0,a.kG)(s.length+o.length+l.length<=1,59,e,s.length,l.length,o.length),n=s.length?h.Query:h.Mutation,s.length||o.length||(n=h.Subscription);var p=s.length?s:o.length?o:l;(0,a.kG)(1===p.length,60,e,p.length);var f=p[0];t=f.variableDefinitions||[];var g={name:f.name&&"Name"===f.name.kind?f.name.value:"data",type:n,variables:t};return y.set(e,g),g}(e),i=_(t),r=_(n.type);(0,a.kG)(n.type===t,61,i,i,r)}var E=n(8702),S=n(3712),w=n(1436),R=Object.prototype.hasOwnProperty;function D(e,t){return void 0===t&&(t=Object.create(null)),function(e,t){var n=i.useRef();n.current&&e===n.current.client&&t===n.current.query||(n.current=new T(e,t,n.current));var r=n.current;return r.forceUpdateState=i.useReducer((function(e){return e+1}),0)[1],r}((n=t.client,r=i.useContext((0,g.K)()),s=n||r.client,(0,a.kG)(!!s,47),s),e).useQuery(t);var n,r,s}var T=function(){function e(e,t,n){var i=this;this.client=e,this.query=t,this.forceUpdate=function(){return i.forceUpdateState()},this.ssrDisabledResult=(0,E.J)({loading:!0,data:void 0,error:void 0,networkStatus:m.Ie.loading}),this.skipStandbyResult=(0,E.J)({loading:!1,data:void 0,error:void 0,networkStatus:m.Ie.ready}),this.toQueryResultCache=new(l.mr?WeakMap:Map),b(t,h.Query);var r=n&&n.result,s=r&&r.data;s&&(this.previousData=s)}return e.prototype.forceUpdateState=function(){!1!==globalThis.__DEV__&&a.kG.warn(48)},e.prototype.executeQuery=function(e){var t,n=this;e.query&&Object.assign(this,{query:e.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=e);var i=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(t=this.result)||void 0===t?void 0:t.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise((function(e){var t;i.subscribe({next:function(e){t=e},error:function(){e(n.toQueryResult(n.observable.getCurrentResult()))},complete:function(){e(n.toQueryResult(t))}})}))},e.prototype.useQuery=function(e){var t=this;this.renderPromises=i.useContext((0,g.K)()).renderPromises,this.useOptions(e);var n=this.useObservableQuery(),r=u(i.useCallback((function(e){if(t.renderPromises)return function(){};t.forceUpdate=e;var i=function(){var e=t.result,i=n.getCurrentResult();e&&e.loading===i.loading&&e.networkStatus===i.networkStatus&&(0,p.D)(e.data,i.data)||t.setResult(i)},r=function(e){var o=n.last;s.unsubscribe();try{n.resetLastResults(),s=n.subscribe(i,r)}finally{n.last=o}if(!R.call(e,"graphQLErrors"))throw e;var a=t.result;(!a||a&&a.loading||!(0,p.D)(e,a.error))&&t.setResult({data:a&&a.data,error:e,loading:!1,networkStatus:m.Ie.error})},s=n.subscribe(i,r);return function(){setTimeout((function(){return s.unsubscribe()})),t.forceUpdate=function(){return t.forceUpdateState()}}}),[n,this.renderPromises,this.client.disableNetworkFetches]),(function(){return t.getCurrentResult()}),(function(){return t.getCurrentResult()}));return this.unsafeHandlePartialRefetch(r),this.toQueryResult(r)},e.prototype.useOptions=function(t){var n,i=this.createWatchQueryOptions(this.queryHookOptions=t),r=this.watchQueryOptions;(0,p.D)(i,r)||(this.watchQueryOptions=i,r&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(n=this.result)||void 0===n?void 0:n.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,!this.renderPromises&&!this.client.disableNetworkFetches||!1!==this.queryHookOptions.ssr||this.queryHookOptions.skip?this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:this.result!==this.ssrDisabledResult&&this.result!==this.skipStandbyResult||(this.result=void 0):this.result=this.ssrDisabledResult},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push((0,S.o)(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(f.J)},e.prototype.createWatchQueryOptions=function(e){var t;void 0===e&&(e={});var n=e.skip,i=(e.ssr,e.onCompleted,e.onError,e.defaultOptions,(0,o._T)(e,["skip","ssr","onCompleted","onError","defaultOptions"])),r=Object.assign(i,{query:this.query});if(!this.renderPromises||"network-only"!==r.fetchPolicy&&"cache-and-network"!==r.fetchPolicy||(r.fetchPolicy="cache-first"),r.variables||(r.variables={}),n){var s=r.fetchPolicy,a=void 0===s?this.getDefaultFetchPolicy():s,l=r.initialFetchPolicy,c=void 0===l?a:l;Object.assign(r,{initialFetchPolicy:c,fetchPolicy:"standby"})}else r.fetchPolicy||(r.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return r},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cac
41he-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=i.useMemo((function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}),[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e,t)},e.prototype.handleErrorOrCompleted=function(e,t){var n=this;if(!e.loading){var i=this.toApolloError(e);Promise.resolve().then((function(){i?n.onError(i):e.data&&(null==t?void 0:t.networkStatus)!==e.networkStatus&&e.networkStatus===m.Ie.ready&&n.onCompleted(e.data)})).catch((function(e){!1!==globalThis.__DEV__&&a.kG.warn(e)}))}},e.prototype.toApolloError=function(e){return(0,w.O)(e.errors)?new v.cA({graphQLErrors:e.errors}):e.error},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var n=e.data,i=(e.partial,(0,o._T)(e,["data","partial"]));return this.toQueryResultCache.set(e,t=(0,o.pi)((0,o.pi)((0,o.pi)({data:n},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&(0,w.O)(e.errors)&&(t.error=new v.cA({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){!e.partial||!this.queryHookOptions.partialRefetch||e.loading||e.data&&0!==Object.keys(e.data).length||"cache-only"===this.observable.options.fetchPolicy||(Object.assign(e,{loading:!0,networkStatus:m.Ie.refetch}),this.observable.refetch())},e}(),O=n(7920),x=n(6400);n(9748);const C=[],k={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},I=Object.assign(Object.assign({},k),{buttonHints:{prev:"Previous $0",next:"Next $0",today(e,t){return"day"===t?"Today":`This ${e}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${1===e?"":"s"}`}});function N(e){let t=e.length>0?e[0].code:"en",n=C.concat(e),i={en:I};for(let r of n)i[r.code]=r;return{map:i,defaultCode:t}}function A(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){let n=[].concat(e||[]),i=function(e,t){for(let n=0;n<e.length;n+=1){let i=e[n].toLocaleLowerCase().split("-");for(let e=i.length;e>0;e-=1){let n=i.slice(0,e).join("-");if(t[n])return t[n]}}return null}(n,t)||I;return P(e,n,i)}(e,t):P(e.code,[e.code],e)}function P(e,t,n){let i=(0,O.m)([k,n],["buttonText"]);delete i.code;let{week:r}=i;return delete i.week,{codeArg:e,codes:t,week:r,simpleNumberFormat:new Intl.NumberFormat(e),options:i}}function M(e){return{id:(0,O.g)(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function H(){let e,t=[],n=[];return(i,r)=>(e&&(0,O.i)(i,t)&&(0,O.i)(r,n)||(e=function(e,t){let n={},i={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function r(e){for(let o of e){const e=o.name,a=n[e];void 0===a?(n[e]=o.id,r(o.deps),s=o,i={premiumReleaseDate:L((t=i).premiumReleaseDate,s.premiumReleaseDate),reducers:t.reducers.concat(s.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(s.isLoadingFuncs),contextInit:t.contextInit.concat(s.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),s.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(s.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),s.eventSourceRefiners),isDraggableTransformers:t.
41isDraggableTransformers.concat(s.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(s.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(s.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(s.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(s.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(s.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),s.views),viewPropsTransformers:t.viewPropsTransformers.concat(s.viewPropsTransformers),isPropsValid:s.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(s.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(s.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(s.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(s.calendarInteractions),componentInteractions:t.componentInteractions.concat(s.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),s.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(s.eventSourceDefs),cmdFormatter:s.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(s.recurringTypes),namedTimeZonedImpl:s.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||s.initialView,elementDraggingImpl:t.elementDraggingImpl||s.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),s.optionChangeHandlers),scrollGridImpl:s.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),s.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),s.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),s.propSetHandlers)}):a!==o.id&&console.warn(`Duplicate plugin '${e}'`)}var t,s}return e&&r(e),r(t),i}(i,r)),t=i,n=r,e)}function L(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class j extends O.T{}function z(e,t,n,i){if(t[e])return t[e];let r=function(e,t,n,i){let r=n[e],s=i[e],o=e=>r&&null!==r[e]?r[e]:s&&null!==s[e]?s[e]:null,a=o("component"),l=o("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=z(l,t,n,i)}!a&&c&&(a=c.component);if(!a)return null;return{type:e,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),r?r.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}}(e,t,n,i);return r&&(t[e]=r),r}function U(e){return(0,O.a)(e,V)}function V(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=F(t):!n||n.prototype instanceof O.B||(n=F(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function F(e){return t=>(0,x.az)(O.V.Consumer,null,(n=>(0,x.az)(O.C,{elTag:"div",elClasses:(0,O.b)(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount})))}function W(e,t,n,i){let r=U(e),s=U(t.views),o=function(e,t){let n,i={};for(n in e)z(n,i,e,t);for(n in t)z(n,i,e,t);return i}(r,s);return(0,O.a)(o,(e=>function(e,t,n,i,r){let s=e.overrides.duration||e.defaults.duration||i.duration||n.duration,o=null,a="",l="",c={};if(s&&(o=function(e){let t=JSON.stringify(e),n=B[t];void 0===n&&(n=(0,O.d)(e),B[t]=n);return n}(s),o)){let e=(0,O.c)(o);a=e.unit,1===e.value&&(l=a,c=t[a]?t[a].rawOptions:{})}let u=t=>{let n=t.buttonText||{},i=e.defaults.buttonTextKey;return null!=i&&null!=n[i]?n[i]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null},d=t=>{let n=t.buttonHints||{},i=e.defaults.buttonTextKey;return null!=i&&null!=n[i]?n[i]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null};return{type:e.type,component:e.component,duration:o,durationUnit:a,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:u(i)||u(n)||e.overrides.buttonText,buttonTextDefault:u(r)||e.defaults.buttonText||u(O.e)||e.type,buttonTitleOverride:d(i)||d(n)||e.overrides.buttonHint,buttonTitleDefault:d(r)||e.defaults.buttonHint||d(O.e)}}(e,s,t,n,i)))}j.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},j.prototype.baseIconClass="fc-icon",j.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},j.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},j.prototype.iconOverrideOption="buttonIcons",j.prototype.iconOverrideCustomButtonOption="icon",j.prototype.iconOverridePrefix="fc-icon-";let B={};function Y(e,t,n){let i=t?t.activeRange:null;return Q({},function(e,t){let n=(0,O.j)(t),i=[].concat(e.eventSources||[]),r=[];e.initialEvents&&i.unshift(e.initialEvents);e.events&&i.unshift(e.events);for(let s of i){let e=(0,O.p)(s,t,n);e&&r.push(e)}return r}(e,n),i,n)}function G(e,t,n,i){let r=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Q(e,t.sources,r,i);
41case"REMOVE_EVENT_SOURCE":return s=e,o=t.sourceId,(0,O.h)(s,(e=>e.sourceId!==o));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?X(e,r,i):e;case"FETCH_EVENT_SOURCES":return K(e,t.sourceIds?(0,O.f)(t.sourceIds):Z(e,i),r,t.isRefetch||!1,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,i){let r=e[t];if(r&&n===r.latestFetchId)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},r),{isFetching:!1,fetchRange:i})});return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var s,o}function q(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function Q(e,t,n,i){let r={};for(let s of t)r[s.sourceId]=s;return n&&(r=X(r,n,i)),Object.assign(Object.assign({},e),r)}function X(e,t,n){return K(e,(0,O.h)(e,(e=>function(e,t,n){if(!J(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}(e,t,n))),t,!1,n)}function K(e,t,n,i,r){let s={};for(let o in e){let a=e[o];t[o]?s[o]=$(a,n,i,r):s[o]=a}return s}function $(e,t,n,i){let{options:r,calendarApi:s}=i,o=i.pluginHooks.eventSourceDefs[e.sourceDefId],a=(0,O.g)();return o.fetch({eventSource:e,range:t,isRefetch:n,context:i},(n=>{let{rawEvents:o}=n;r.eventSourceSuccess&&(o=r.eventSourceSuccess.call(s,o,n.response)||o),e.success&&(o=e.success.call(s,o,n.response)||o),i.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:a,fetchRange:t,rawEvents:o})}),(n=>{let o=!1;r.eventSourceFailure&&(r.eventSourceFailure.call(s,n),o=!0),e.failure&&(e.failure(n),o=!0),o||console.warn(n.message,n),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:a,fetchRange:t,error:n})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:a})}function Z(e,t){return(0,O.h)(e,(e=>J(e,t)))}function J(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function ee(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function te(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function ne(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function ie(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function re(e,t,n,i,r){return{header:e.headerToolbar?se(e.headerToolbar,e,t,n,i,r):null,footer:e.footerToolbar?se(e.footerToolbar,e,t,n,i,r):null}}function se(e,t,n,i,r,s){let o={},a=[],l=!1;for(let c in e){let u=oe(e[c],t,n,i,r,s);o[c]=u.widgets,a.push(...u.viewsWithButtons),l=l||u.hasTitle}return{sectionWidgets:o,viewsWithButtons:a,hasTitle:l}}function oe(e,t,n,i,r,s){let o="rtl"===t.direction,a=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},u=n.buttonHints||{},d=t.buttonHints||{},h=e?e.split(" "):[],p=[],f=!1;return{widgets:h.map((e=>e.split(",").map((e=>{if("title"===e)return f=!0,{buttonName:e};let n,h,g,v,m,y;if(n=a[e])g=e=>{n.click&&n.click.call(e.target,e,e.target)},(v=i.getCustomButtonIconClass(n))||(v=i.getIconClass(e,o))||(m=n.text),y=n.hint||n.text;else if(h=r[e]){p.push(e),g=()=>{s.changeView(e)},(m=h.buttonTextOverride)||(v=i.getIconClass(e,o))||(m=h.buttonTextDefault);let n=h.buttonTextOverride||h.buttonTextDefault;y=(0,O.k)(h.buttonTitleOverride||h.buttonTitleDefault||t.viewHint,[n,e],n)}else if(s[e])if(g=()=>{s[e]()},(m=l[e])||(v=i.getIconClass(e,o))||(m=c[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";y=(0,O.k)(u[t]||d[t],[c.year||"year","year"],c[e])}else y=t=>(0,O.k)(u[e]||d[e],[c[t]||t,t],c[e]);return{buttonName:e,buttonClick:g,buttonIcon:v,buttonText:m,buttonHint:y}})))),viewsWithButtons:p,hasTitle:f}}class ae{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}function le(e,t){let n=(0,O.v)(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let i=[];for(let r of e){let e=!1;for(let t=0;t<n.length;t+=1)if(n[t]._raw===r){n.splice(t,1),e=!0;break}e||i.push(r)}for(let r of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:r.sourceId});for(let r of i)t.calendarApi.addEventSource(r)}const ce=[M({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(e){return Array.isArray(e.events)?e.events:null},fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),M({name:"func-event-source",eventSourceDefs:[{parseMeta(e){return"function"==typeof e.events?e.events:null}
41,fetch(e,t,n){const{dateEnv:i}=e.context,r=e.eventSource.meta;(0,O.u)(r.bind(null,(0,O.l)(e.range,i)),(e=>t({rawEvents:e})),n)}}]}),M({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:O.n,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch(e,t,n){const{meta:i}=e.eventSource,r=function(e,t,n){let i,r,s,o,{dateEnv:a,options:l}=n,c={};i=e.startParam,null==i&&(i=l.startParam);r=e.endParam,null==r&&(r=l.endParam);s=e.timeZoneParam,null==s&&(s=l.timeZoneParam);o="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Object.assign(c,o),c[i]=a.formatIso(t.start),c[r]=a.formatIso(t.end),"local"!==a.timeZone&&(c[s]=a.timeZone);return c}(i,e.range,e.context);(0,O.r)(i.method,i.url,r).then((([e,n])=>{t({rawEvents:e,response:n})}),n)}}]}),M({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n,i={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null};return e.duration&&(n=e.duration),!n&&e.startTime&&e.endTime&&(n=(0,O.s)(e.endTime,e.startTime)),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:n,typeData:i}}return null},expand(e,t,n){let i=(0,O.o)(t,{start:e.startRecur,end:e.endRecur});return i?function(e,t,n,i){let r=e?(0,O.f)(e):null,s=(0,O.q)(n.start),o=n.end,a=[];for(;s<o;){let e;r&&!r[s.getUTCDay()]||(e=t?i.add(s,t):s,a.push(e)),s=(0,O.t)(s,1)}return a}(e.daysOfWeek,e.startTime,i,n):[]}}],eventRefiners:{daysOfWeek:O.n,startTime:O.d,endTime:O.d,duration:O.d,startRecur:O.n,endRecur:O.n}}),M({name:"change-handler",optionChangeHandlers:{events(e,t){le([e],t)},eventSources:le}}),M({name:"misc",isLoadingFuncs:[e=>q(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},(0,O.l)(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",(0,O.w)(e,t))}}})];class ue{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new O.D(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t,n=[];for(;t=e.shift();)this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function de(e,t,n){let i;return i=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(i.start,i.end,(0,O.x)(t.titleFormat||function(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=(0,O.y)(e.currentRange.start,e.currentRange.end);if(null!==n&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class he{constructor(e){this.computeCurrentViewData=(0,O.z)(this._computeCurrentViewData),this.organizeRawLocales=(0,O.z)(N),this.buildLocale=(0,O.z)(A),this.buildPluginHooks=H(),this.buildDateEnv=(0,O.z)(pe),this.buildTheme=(0,O.z)(fe),this.parseToolbars=(0,O.z)(re),this.buildViewSpecs=(0,O.z)(W),this.buildDateProfileGenerator=(0,O.A)(ge),this.buildViewApi=(0,O.z)(ve),this.buildViewUiProps=(0,O.A)(_e),this.buildEventUiBySource=(0,O.z)(me,O.E),this.buildEventUiBases=(0,O.z)(ye),this.parseContextBusinessHours=(0,O.A)(Ee),this.buildTitle=(0,O.z)(de),this.emitter=new O.F,this.actionRunner=new ue(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause();let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),i=n.calendarOptions.initialView||n.pluginHooks.initialView,r=this.computeCurrentViewData(i,n,e.o
41ptionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(r.options);let s=(0,O.G)(n.calendarOptions,n.dateEnv),o=r.dateProfileGenerator.build(s);(0,O.H)(o.activeRange,s)||(s=o.currentRange.start);let a={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let d of n.pluginHooks.contextInit)d(a);let l=Y(n.calendarOptions,o,a),c={dynamicOptionOverrides:t,currentViewType:i,currentDate:s,dateProfile:o,businessHours:this.parseContextBusinessHours(a),eventSources:l,eventUiBases:{},eventStore:(0,O.I)(),renderableEventStore:(0,O.I)(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},u=Object.assign(Object.assign({},a),c);for(let d of n.pluginHooks.reducers)Object.assign(c,d(null,null,u));be(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:i}=this,r=function(e,t){return"SET_OPTION"===t.type?Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue}):e}(n.dynamicOptionOverrides,e),s=this.computeOptionsData(t.optionOverrides,r,t.calendarApi),o=function(e,t){"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType);return e}(n.currentViewType,e),a=this.computeCurrentViewData(o,s,t.optionOverrides,r);t.calendarApi.currentDataManager=this,i.setThisContext(t.calendarApi),i.setOptions(a.options);let l={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:u}=n;this.data&&this.data.dateProfileGenerator!==a.dateProfileGenerator&&(u=a.dateProfileGenerator.build(c)),c=(0,O.J)(c,e),u=function(e,t,n,i){let r;switch(t.type){case"CHANGE_VIEW_TYPE":return i.build(t.dateMarker||n);case"CHANGE_DATE":return i.build(t.dateMarker);case"PREV":if(r=i.buildPrev(e,n),r.isValid)return r;break;case"NEXT":if(r=i.buildNext(e,n),r.isValid)return r}return e}(u,e,c,a.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&(0,O.H)(u.currentRange,c)||(c=u.currentRange.start);let d=G(n.eventSources,e,u,l),h=(0,O.K)(n.eventStore,e,d,u,l),p=q(d)&&!a.options.progressiveEventRendering&&n.renderableEventStore||h,{eventUiSingleBase:f,selectionConfig:g}=this.buildViewUiProps(l),v=this.buildEventUiBySource(d),m={dynamicOptionOverrides:r,currentViewType:o,currentDate:c,dateProfile:u,eventSources:d,eventStore:h,renderableEventStore:p,selectionConfig:g,eventUiBases:this.buildEventUiBases(p.defs,f,v),businessHours:this.parseContextBusinessHours(l),dateSelection:ee(n.dateSelection,e),eventSelection:te(n.eventSelection,e),eventDrag:ne(n.eventDrag,e),eventResize:ie(n.eventResize,e)},y=Object.assign(Object.assign({},l),m);for(let E of s.pluginHooks.reducers)Object.assign(m,E(n,e,y));let _=be(n,l),b=be(m,l);!_&&b?i.trigger("loading",!0):_&&!b&&i.trigger("loading",!1),this.state=m,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,i=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),r=this.computeCurrentViewData(t.currentViewType,i,e.optionOverrides,t.dynamicOptionOverrides),s=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,r.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),r),t),o=i.pluginHooks.optionChangeHandlers,a=n&&n.calendarOptions,l=i.calendarOptions;if(a&&a!==l){a.timeZone!==l.timeZone&&(t.eventSources=s.eventSources=function(e,t,n){let i=t?t.activeRange:null;return K(e,Z(e,n),i,!0,n)}(s.eventSources,t.dateProfile,s),t.eventStore=s.eventStore=(0,O.L)(s.eventStore,n.dateEnv,s.dateEnv),t.renderableEventStore=s.renderableEventStore=(0,O.L)(s.renderableEventStore,
41n.dateEnv,s.dateEnv));for(let e in o)-1===this.optionsForHandling.indexOf(e)&&a[e]===l[e]||o[e](l[e],s)}this.optionsForHandling=[],e.onData&&e.onData(s)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:r,localeDefaults:s,availableLocaleData:o,extra:a}=this.processRawCalendarOptions(e,t);Se(a);let l=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,r,o,i.defaultRangeSeparator),c=this.buildViewSpecs(r.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,s),u=this.buildTheme(i,r),d=this.parseToolbars(i,this.stableOptionOverrides,u,c,n);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:r,dateEnv:l,viewSpecs:c,theme:u,toolbarConfig:d,localeDefaults:s,availableRawLocales:o.map}}processRawCalendarOptions(e,t){let{locales:n,locale:i}=(0,O.M)([O.e,e,t]),r=this.organizeRawLocales(n),s=r.map,o=this.buildLocale(i||r.defaultCode,s).options,a=this.buildPluginHooks(e.plugins||[],ce),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},O.N),O.O),O.P),a.listenerRefiners),a.optionRefiners),c={},u=(0,O.M)([O.e,o,e,t]),d={},h=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,f=!1;for(let g in u)-1===this.optionsForRefining.indexOf(g)&&(u[g]===h[g]||O.Q[g]&&g in h&&O.Q[g](h[g],u[g]))?d[g]=p[g]:l[g]?(d[g]=l[g](u[g]),f=!0):c[g]=h[g];return f&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=d,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:a,availableLocaleData:r,localeDefaults:o,extra:c}}_computeCurrentViewData(e,t,n,i){let r=t.viewSpecs[e];if(!r)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s,extra:o}=this.processRawViewOptions(r,t.pluginHooks,t.localeDefaults,n,i);return Se(o),{viewSpec:r,options:s,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:r.optionDefaults.dateProfileGeneratorClass,duration:r.duration,durationUnit:r.durationUnit,usesMinMaxTime:r.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,fixedWeekCount:s.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,i,r){let s=(0,O.M)([O.e,e.optionDefaults,n,i,e.optionOverrides,r]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},O.N),O.O),O.P),O.R),t.listenerRefiners),t.optionRefiners),a={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,u=!1,d={};for(let h in s)s[h]===l[h]||O.Q[h]&&O.Q[h](s[h],l[h])?a[h]=c[h]:(s[h]===this.currentCalendarOptionsInput[h]||O.Q[h]&&O.Q[h](s[h],this.currentCalendarOptionsInput[h])?h in this.currentCalendarOptionsRefined&&(a[h]=this.currentCalendarOptionsRefined[h]):o[h]?a[h]=o[h](s[h]):d[h]=s[h],u=!0);return u&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=a),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}}}function pe(e,t,n,i,r,s,o,a){let l=A(t||o.defaultCode,o.map);return new O.S({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:i,weekText:r,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function fe(e,t){return new(t.themeClasses[e.themeSystem]||j)(e)}function ge(e){return new(e.dateProfileGeneratorClass||O.U)(e)}function ve(e,t,n){return new ae(e,t,n)}function me(e){return(0,O.a)(e,(e=>e.ui))}function ye(e,t,n){let i={"":t};for(let r in e){let t=e[r];t.sourceId&&n[t.sourceId]&&(i[r]=n[t.sourceId])}return i}function _e(e){let{options:t}=e;return{eventUiSingleBase:(0,O.W)({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroun
41dColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:(0,O.W)({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function be(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function Ee(e){return(0,O.X)(e.options.businessHours,e)}function Se(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class we extends O.B{render(){let e=this.props.widgetGroups.map((e=>this.renderWidgetGroup(e)));return(0,x.az)("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,i=[],r=!0;for(let s of e){let{buttonName:e,buttonClick:o,buttonText:a,buttonIcon:l,buttonHint:c}=s;if("title"===e)r=!1,i.push((0,x.az)("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let r=e===t.activeButton,s=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,u=[`fc-${e}-button`,n.getClass("button")];r&&u.push(n.getClass("buttonActive")),i.push((0,x.az)("button",{type:"button",title:"function"==typeof c?c(t.navUnit):c,disabled:s,"aria-pressed":r,className:u.join(" "),onClick:o},a||(l?(0,x.az)("span",{className:l}):"")))}}if(i.length>1){let e=r&&n.getClass("buttonGroup")||"";return(0,x.az)("div",{className:e},...i)}return i[0]}}class Re extends O.B{render(){let e,t,{model:n,extraClassName:i}=this.props,r=!1,s=n.sectionWidgets,o=s.center;s.left?(r=!0,e=s.left):e=s.start,s.right?(r=!0,t=s.right):t=s.end;let a=[i||"","fc-toolbar",r?"fc-toolbar-ltr":""];return(0,x.az)("div",{className:a.join(" ")},this.renderSection("start",e||[]),this.renderSection("center",o||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return(0,x.az)(we,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class De extends O.B{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,(0,O.Y)(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,i=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],r="",s="";return n?null!==t.availableWidth?r=t.availableWidth/n:s=1/n*100+"%":r=e.height||"",(0,x.az)("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:r,paddingBottom:s}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class Te extends O.Z{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:i}=n,r=(0,O._)(t);if(r&&n.isValidSegDownEl(e.target)){let s=(0,O.$)(e.target,".fc-event-forced-url"),o=s?s.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:t,event:new O.a0(n.context,r.eventRange.def,r.eventRange.instance),jsEvent:e,view:i.viewApi}),o&&!e.defaultPrevented&&(window.location.href=o)}},this.destroy=(0,O.a1)(e.el,"click",".fc-event",this.handleSegClick)}}class Oe extends O.Z{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{(0,O._)(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=(0,O.a2)(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:i}=this,{context:r}=i,s=(0,O._)(n);t&&!i.isValidSegDownEl(t.target)||r.emitter.trigger(e,{el:n,event:new O.a0(r,s.eventRange.def,s.eventRange.instance),jsEvent:t,view:r.viewApi})}}class xe extends O.a3{constructor(){super(...arguments),this.buildViewContext=(0,O.z)(O.a4),this.buildViewPropTransformers=(0,O.z)(ke),this.buildToolbarProps=(0,O.z)(Ce),this.headerRef=(0,x.Vf)(),this.footerRef=(0,x.Vf)(),this.interactionsStore={},this.state={viewLabelId:(0,O.a5)()},this.registerInteractiveComponent=(e,t)=>
41{let n=(0,O.a6)(e,t),i=[Te,Oe].concat(this.props.pluginHooks.componentInteractions).map((e=>new e(n)));this.interactionsStore[e.uid]=i,O.a7[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete O.a7[e.uid]},this.resizeRunner=new O.D((()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})})),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:i}=t,r=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,(0,O.a8)(t.options.now,t.dateEnv),t.viewTitle),s=!1,o="";t.isHeightAuto||t.forPrint?o="":null!=i.height?s=!0:null!=i.contentHeight?o=i.contentHeight:e=Math.max(i.aspectRatio,.5);let a=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return(0,x.az)(O.V.Provider,{value:a},n.header&&(0,x.az)(Re,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},r)),(0,x.az)(De,{liquid:s,height:o,aspectRatio:e,labeledById:l},this.renderView(t),this.buildAppendContent()),n.footer&&(0,x.az)(Re,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},r)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((t=>new t(e))),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let i in n)t[i]!==e[i]&&n[i](t[i],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,t=e.pluginHooks.viewContainerAppends.map((t=>t(e)));return(0,x.az)(x.HY,{},...t)}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,i={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},r=this.buildViewPropTransformers(t.viewPropsTransformers);for(let o of r)Object.assign(i,o.transform(i,e));let s=n.component;return(0,x.az)(s,Object.assign({},i))}}function Ce(e,t,n,i,r,s){let o=n.build(r,void 0,!1),a=n.buildPrev(t,i,!1),l=n.buildNext(t,i,!1);return{title:s,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:o.isValid&&!(0,O.H)(t.currentRange,r),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function ke(e){return e.map((e=>new e))}class Ie extends O.a9{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;(0,O.aa)((()=>{(0,x.sY)((0,x.az)(O.ab,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},((t,n,i,r)=>(this.setClassNames(t),this.setHeight(n),(0,x.az)(O.ac.Provider,{value:this.customContentRenderId},(0,x.az)(xe,Object.assign({isHeightAuto:i,forPrint:r},e)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,(0,x.sY)(null,this.el),this.setClassNames([]),this.setHeight(""))},(0,O.ad)(e),this.el=e,this.renderRunner=new O.D(this.handleRenderRequest),new he({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){(0,O.aa)((()=>{super.updateSize()}))}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!(0,O.i)(e,this.currentClassNames)){let{classList:t}=this.el;
41for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){(0,O.ae)(this.el,"height",e)}}function Ne(e,t){let n=[];for(let i=0;i<t;i+=1)n[i]=[];for(let i of e)n[i.row].push(i);return n}function Ae(e,t){let n=[];for(let i=0;i<t;i+=1)n[i]=[];for(let i of e)n[i.firstCol].push(i);return n}function Pe(e,t){let n=[];if(e){for(let i=0;i<t;i+=1)n[i]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.row].segs.push(t)}else for(let i=0;i<t;i+=1)n[i]=null;return n}(0,O.cw)(':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}
41.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}
41.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}');const Me=(0,O.x)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function He(e){let{display:t}=e.eventRange.ui;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class Le extends O.B{render(){let{props:e}=this;return(0,x.az)(O.cj,Object.assign({}
41,e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Me,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class je extends O.B{render(){let{props:e,context:t}=this,{options:n}=t,{seg:i}=e,r=n.eventTimeFormat||Me,s=(0,O.bQ)(i,r,t,!0,e.defaultDisplayEventEnd);return(0,x.az)(O.cn,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:(0,O.bU)(e.seg,t),defaultGenerator:ze,timeText:s,isResizing:!1,isDateSelecting:!1}))}}function ze(e){return(0,x.az)(x.HY,null,(0,x.az)("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&(0,x.az)("div",{className:"fc-event-time"},e.timeText),(0,x.az)("div",{className:"fc-event-title"},e.event.title||(0,x.az)(x.HY,null," ")))}class Ue extends O.B{constructor(){super(...arguments),this.compileSegs=(0,O.z)(Ve)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return(0,x.az)(O.cr,{elClasses:["fc-daygri
41d-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return(0,x.az)(x.HY,null,t.map((t=>{let i=t.eventRange.instance.instanceId;return(0,x.az)("div",{className:"fc-daygrid-event-harness",key:i,style:{visibility:n[i]?"hidden":""}},He(t)?(0,x.az)(je,Object.assign({seg:t,isDragging:!1,isSelected:i===e.eventSelection,defaultDisplayEventEnd:!1},(0,O.bS)(t,e.todayRange))):(0,x.az)(Le,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:i===e.eventSelection,defaultDisplayEventEnd:!1},(0,O.bS)(t,e.todayRange))))})))}})}}function Ve(e){let t=[],n=[];for(let i of e)t.push(i.seg),i.isVisible||n.push(i.seg);return{allSegs:t,invisibleSegs:n}}const Fe=(0,O.x)({week:"narrow"});class We extends O.be{constructor(){super(...arguments),this.rootElRef=(0,x.Vf)(),this.state={dayNumberId:(0,O.a5)()},this.handleRootEl=e=>{(0,O.Y)(this.rootElRef,e),(0,O.Y)(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:i}=this,{options:r,dateEnv:s}=e,{date:o,dateProfile:a}=t;const l=t.showDayNumber&&function(e,t,n){const{start:i,end:r}=t,s=(0,O.bg)(r,-1),o=n.getYear(i),a=n.getMonth(i),l=n.getYear(s),c=n.getMonth(s);return!(o===l&&a===c)&&Boolean(e.valueOf()===i.valueOf()||1===n.getDay(e)&&e.valueOf()<r.valueOf())}(o,a.currentRange,s);return(0,x.az)(O.cl,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygri
41d-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Be,date:o,dateProfile:a,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:l,extraRenderProps:t.extraRenderProps},((s,a)=>(0,x.az)("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&(0,x.az)(O.cq,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:(0,O.b0)(e,o,"week"),date:o,defaultFormat:Fe}),!a.isDisabled&&(t.showDayNumber||(0,O.cm)(r)||t.forceDayTop)?(0,x.az)("div",{className:"fc-daygrid-day-top"},(0,x.az)(s,{elTag:"a",elClasses:["fc-daygrid-day-number",l&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},(0,O.b0)(e,o)),{id:n.dayNumberId})})):t.showDayNumber?(0,x.az)("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},(0,x.az)("a",{className:"fc-daygrid-day-number"}," ")):void 0,(0,x.az)("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,(0,x.az)("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},(0,x.az)(Ue,{allDayDate:o,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:i,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),(0,x.az)("div",{className:"fc-daygrid-day-bg"},t.bgContent))))}}function Be(e){return e.dayNumberText||(0,x.az)(x.HY,null," ")}function Ye(e,t,n,i,r,s,o){let a=new qe;a.allowReslicing=!0,a.strictOrder=i,!0===t||!0===n?(a.maxCoord=s,a.hiddenConsumes=!0):"number"==typeof t?a.maxStackCnt=t:"number"==typeof n&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let l=[],c=[];for(let m=0;m<e.length;m+=1){let t=e[m],{instanceId:n}=t.eventRange.instance,i=r[n];null!=i?l.push({index:m,thickness:i,span:{start:t.firstCol,end:t.lastCol+1}}):c.push(t)}let u=a.addSegs(l),d=a.toRects(),{singleColPlacements:h,multiColPlacements:p,leftoverMargins:f}=function(e,t,n){let i=function(e,t){let n=[];for(let i=0;i<t;i+=1)n.push([]);for(let i of e)for(let e=i.span.start;e<i.span.end;e+=1)n[e].push(i);return n}(e,n.length),r=[],s=[],o=[];for(let a=0;a<n.length;a+=1){let e=i[a],l=[],c=0,u=0;for(let i of e){let e=t[i.index];l.push({seg:Ge(e,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:i.levelCoord,marginTop:i.levelCoord-c}),c=i.levelCoord+i.thickness}let d=[];c=0,u=0;for(let i of e){let e=t[i.index],r=i.span.end-i.span.start>1,s=i.span.start===a;u+=i.levelCoord-c,c=i.levelCoord+i.thickness,r?(u+=i.thickness,s&&d.push({seg:Ge(e,i.span.start,i.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:i.levelCoord,marginTop:0})):s&&(d.push({seg:Ge(e,i.span.start,i.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:i.levelCoord,marginTop:u}),u=0)}r.push(l),s.push(d),o.push(u)}return{singleColPlacements:r,multiColPlacements:s,leftoverMargins:o}}(d,e,o),g=[],v=[];for(let m of c){p[m.firstCol].push({seg:m,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=m.firstCol;e<=m.lastCol;e+=1)h[e].push({seg:Ge(m,e,e+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let m=0;m<o.length;m+=1)g.push(0);for(let m of u){let t=e[m.index],n=m.span;p[n.start].push({seg:Ge(t,n.start,n.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=n.start;e<n.end;e+=1)g[e]+=1,h[e].push({seg:Ge(t,e,e+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let m=0;m<o.length;m+=1)v.push(f[m]);return{singleColPlacements:h,multiColPlacements:p,moreCnts:g,moreMarginTops:v}}function Ge(e,t,n,i){if(e.firstCol===t&&e.lastCol===n-1)return e;let r=e.eventRange,s=r.range,o=(0,O.o)(s,{start:i[t].date,end:(0,O.t)(i[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:r.def,ui:Object.assign(Object.assign({},r.ui),{durationEditable:!1}),instance:r.instance,range:o},isStart:e.isStart&&o.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===s.end.valueOf()})}class qe extends O.bA{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const t=super.addSegs(e),{entriesByLevel:n}=this,i=e=>!this.forceHidden[(0,O.bB)(e)];for(let r=0;r<n.length;r+=1)n[r]=n[r].filter(i);return t}handleInvalidInsertion(e,t,n){const{entriesByLevel:i,forceHidden:r}=this,{touchingEntry:s,touchingLevel:o,touchingLateral:a}=e;if(this.hiddenConsumes&&s){const e=(0,O.bB)(s);if(!r[e])if(this.allowReslicing){const e=Object.assign(Object.assign({},s),{span:(0,O.bF)(s.span,t.span)});r[(0,O.bB)(e)]=!0,i[o][a]=e,this.splitEntry(s,t,n)}else r[e]=!0,n.push(s)}return super.handleInvalidInsertion(e,t,n)}}class Qe extends O.be{constructor(){super(...arguments),this.cellElRefs=new O.cf,this.frameElRefs=new O.cf,this.fgElRefs=new O.cf,this.segHarnessRefs=new O.cf,this.rootElRef=(0,x.Vf)(),this.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:i}=n,r=e.cells.length,s=Ae(e.businessHourSegs,r),o=Ae(e.bgEventSegs,r),a=Ae(this.getHighlightSegs(),r),l=Ae(this.getMirrorSegs(),r),{singleColPlacements:c,multiColPlacements:u,moreCnts:d,moreMarginTops:h}=Ye((0,O.bR)(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,t.eventInstanceHeights,t.maxContentHeight,e.cells),p=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return(0,x.az)("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map(((t,n)=>{let i=this.renderFgSegs(n,e.forPrint?c[n]:u[n],e.todayRange,p),r=this.renderFgSegs(n,function(e,t){if(!e.length)return[];let n=function(e){let t={};for(let n of e)for(let e of n)t[e.seg.eventRange.instance.instanceId]=e.absoluteTop;return t}(t);return e.map((e=>({seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0})))}(l[n],u),e.todayRange,{},Boolean(e.eventDrag),Boolean(e.eventResize),!1);return(0,x.az)(We,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&0===n,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:d[n],moreMarginTop:h[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:(0,x.az)(x.HY,null,(0,x.az)(x.HY,null,i),(0,x.az)(x.HY,null,r)),bgContent:(0,x.az)(x.HY,null,this.renderFillSegs(a[n],"highlight"),this.renderFillSegs(s[n],"non-business"),this.renderFillSegs(o[n],"bg-event")),minHeight:e.cellMinHeight})})))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!(0,O.E)(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,i,r,s,o){let{context:a}=this,{eventSelection:l}=this.props,{framePositions:c}=this.state,u=1===this.props.cells.length,d=r||s||o,h=[];if(c)for(let p of t){let{seg:t}=p,{instanceId:f}=t.eventRange.instance,g=f+":"+e,v=p.isVisible&&!i[f],m=p.isAbsolute,y="",_="";
41m&&(a.isRtl?(_=0,y=c.lefts[t.lastCol]-c.lefts[t.firstCol]):(y=0,_=c.rights[t.firstCol]-c.rights[t.lastCol])),h.push((0,x.az)("div",{className:"fc-daygrid-event-harness"+(m?" fc-daygrid-event-harness-abs":""),key:g,ref:d?null:this.segHarnessRefs.createRef(g),style:{visibility:v?"":"hidden",marginTop:m?"":p.marginTop,top:m?p.absoluteTop:"",left:y,right:_}},He(t)?(0,x.az)(je,Object.assign({seg:t,isDragging:r,isSelected:f===l,defaultDisplayEventEnd:u},(0,O.bS)(t,n))):(0,x.az)(Le,Object.assign({seg:t,isDragging:r,isResizing:s,isDateSelecting:o,isSelected:f===l,defaultDisplayEventEnd:u},(0,O.bS)(t,n)))))}return h}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:i}=this.props,{framePositions:r}=this.state,s=[];if(r)for(let o of e){let e=n?{right:0,left:r.lefts[o.lastCol]-r.lefts[o.firstCol]}:{left:0,right:r.rights[o.firstCol]-r.rights[o.lastCol]};s.push((0,x.az)("div",{key:(0,O.bT)(o.eventRange),className:"fc-daygrid-bg-harness",style:e},"bg-event"===t?(0,x.az)(O.cp,Object.assign({seg:o},(0,O.bS)(o,i))):(0,O.co)(t)))}return(0,x.az)(x.HY,{},...s)}updateSizing(e){let{props:t,state:n,frameElRefs:i}=this;if(!t.forPrint&&null!==t.clientWidth){if(e){let e=t.cells.map((e=>i.currentMap[e.key]));if(e.length){let t=this.rootElRef.current,i=new O.ba(t,e,!0,!1);n.framePositions&&n.framePositions.similarTo(i)||this.setState({framePositions:new O.ba(t,e,!0,!1)})}}const r=this.state.eventInstanceHeights,s=this.queryEventInstanceHeights(),o=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({eventInstanceHeights:Object.assign(Object.assign({},r),s),maxContentHeight:o?this.computeMaxContentHeight():null})}}queryEventInstanceHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let i=Math.round(e[n].getBoundingClientRect().height),r=n.split(":")[0];t[r]=Math.max(t[r]||0,i)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map((t=>e[t.key]))}}Qe.addStateEquality({eventInstanceHeights:O.E});class Xe extends O.be{constructor(){super(...arguments),this.splitBusinessHourSegs=(0,O.z)(Ne),this.splitBgEventSegs=(0,O.z)(Ne),this.splitFgEventSegs=(0,O.z)(Ne),this.splitDateSelectionSegs=(0,O.z)(Ne),this.splitEventDrag=(0,O.z)(Pe),this.splitEventResize=(0,O.z)(Pe),this.rowRefs=new O.cf}render(){let{props:e,context:t}=this,n=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,n),r=this.splitBgEventSegs(e.bgEventSegs,n),s=this.splitFgEventSegs(e.fgEventSegs,n),o=this.splitDateSelectionSegs(e.dateSelectionSegs,n),a=this.splitEventDrag(e.eventDrag,n),l=this.splitEventResize(e.eventResize,n),c=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return(0,x.az)(O.ch,{unit:"day"},((t,u)=>(0,x.az)(x.HY,null,e.cells.map(((t,d)=>(0,x.az)(Qe,{ref:this.rowRefs.createRef(d),key:t.length?t[0].date.toISOString():d,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:u,dateProfile:e.dateProfile,cells:t,renderIntro:e.renderRowIntro,businessHourSegs:i[d],eventSelection:e.eventSelection,bgEventSegs:r[d].filter(Ke),fgEventSegs:s[d],dateSelectionSegs:o[d],eventDrag:a[d],eventResize:l[d],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))))}componentDidMount(){const e=this.rowRefs.currentMap[0].getCellEls()[0];this.rootEl=e?e.closest(".fc-daygrid-body"):null,this.rootEl&&this.context.registerInteractiveComponent(this,{el:this.rootEl,isHitComboAllowed:this.props.isHitComboAllowed})}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new O.ba(this.rootEl,this.rowRefs.collect().map((e=>e.getCellEls()[0])),!1,!0),this.colPositions=new O.ba(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:i}=this,r=n.leftToIndex(e),s=i.topToIndex(t);if(null!=s&&null!=r){let e=this.props.cells[s][r];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(s,r),allDay:!0},e.extraDateSpan),dayEl:this.getCellEl(s,r),rect:{left:n.lefts[r],right:n.rights[r],top:i.tops[s],bottom:i.bottoms[s]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date;return{start:n,end:(0,O.t)(n,1)}}}function Ke(e){return e.eventRange.def.allDay}class $e extends O.be{constructor(){super(...arguments),this.elRef=(0,x.Vf)(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:n,expandRows:i}=e,r=!0===n||!0===t;r&&!i&&(r=!1,t=null,n=null);
41let s=["fc-daygrid-body",r?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return(0,x.az)("div",{ref:this.elRef,className:s.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},(0,x.az)("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,(0,x.az)("tbody",{role:"presentation"},(0,x.az)(Xe,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=function(e,t){let n;t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${(0,O.bx)(t.currentDate)}-01"]`));n||(n=e.querySelector(`[data-date="${(0,O.bv)(t.currentDate)}"]`));return n}(this.elRef.current,this.props.dateProfile);if(e){const t=e.closest(".fc-daygrid-body"),n=t.closest(".fc-scroller"),i=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}class Ze extends O.bW{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class Je extends O.be{constructor(){super(...arguments),this.slicer=new Ze,this.tableRef=(0,x.Vf)()}render(){let{props:e,context:t}=this;return(0,x.az)($e,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class et extends O.U{buildRenderRange(e,t,n){let i=super.buildRenderRange(e,t,n),{props:r}=this;return function(e){let t,{dateEnv:n,currentRange:i}=e,{start:r,end:s}=i;e.snapToWeek&&(r=n.startOfWeek(r),t=n.startOfWeek(s),t.valueOf()!==s.valueOf()&&(s=(0,O.bh)(t,1)));if(e.fixedWeekCount){let e=n.startOfWeek(n.startOfMonth((0,O.t)(i.end,-1))),t=Math.ceil((0,O.bi)(e,s));s=(0,O.bh)(s,6-t)}return{start:r,end:s}}({currentRange:i,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:r.fixedWeekCount,dateEnv:r.dateEnv})}}class tt extends O.be{constructor(){super(...arguments),this.headerElRef=(0,x.Vf)()}renderSimpleLayout(e,t){let{props:n,context:i}=this,r=[],s=(0,O.cc)(i.options);return e&&r.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),r.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}
41),(0,x.az)(O.ct,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},(0,x.az)(O.b$,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:r}))}renderHScrollLayout(e,t,n,i){let r=this.context.pluginHooks.scrollGridImpl;if(!r)throw new Error("No ScrollGrid implementation");let{props:s,context:o}=this,a=!s.forPrint&&(0,O.cc)(o.options),l=!s.forPrint&&(0,O.cb)(o.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:a,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:O.ca}]}),(0,x.az)(O.ct,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},(0,x.az)(r,{liquid:!s.isHeightAuto&&!s.forPrint,forPrint:s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:n,minWidth:i}]}],sections:c}))}}function nt(e,t){let n=new O.bO(e.renderRange,t);return new O.bV(n,/year|month|week/.test(e.currentRangeUnit))}var it=M({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:class extends tt{constructor(){super(...arguments),this.buildDayTableModel=(0,O.z)(nt),this.headerRef=(0,x.Vf)(),this.tableRef=(0,x.Vf)()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,i=this.buildDayTableModel(n.dateProfile,t),r=e.dayHeaders&&(0,x.az)(O.bK,{ref:this.headerRef,dateProfile:n.dateProfile,dates:i.headerDates,datesRepDistinctDays:1===i.rowCnt}),s=t=>(0,x.az)(Je,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:i,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(r,s,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(r,s)}},dateProfileGeneratorClass:et},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});O.bI.touchMouseIgnoreWait=500;let rt=0,st=0,ot=!1;class at{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=e=>{if(!this.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&this.tryStart(e)){let t=this.createEventFromMouse(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=e=>{let t=this.createEventFromMouse(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleMouseUp=e=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(e)),this.cleanup()},this.handleTouchStart=e=>{if(this.tryStart(e)){this.isTouchDragging=!0;let t=this.createEventFromTouch(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t);let n=e.target;this.shouldIgnoreMove||n.addEventListener("touchmove",this.handleTouchMove),n.addEventListener("touchend",this.handleTouchEnd),n.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=e=>{let t=this.createEventFromTouch(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleTouchEnd=e=>{if(this.isDragging){let t=e.target;t.removeEventListener("touchmove",this.handleTouchMove),t.removeEventListener("touchend",this.handleTouchEnd),t.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(e)),this.cleanup(),this.isTouchDragging=!1,rt+=1,setTimeout((()=>{rt-=1}),O.bI.touchMouseIgnoreWait)}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=e=>{if(!this.shouldIgnoreMove){let t=window.pageXOffset-this.prevScrollX+this.prevPageX,n=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:e,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:t,pageY:n,deltaX:t-this.origPageX,deltaY:n-this.origPageY})}},this.containerEl=e,this.emitter=new O.F,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),st+=1,1===st&&window.addEventListener("touchmove",lt,{passive:!1})}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),st-=1,st||window.removeEventListener("touchmove",lt,{passive:!1})}
41tryStart(e){let t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!(0,O.$)(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)}cleanup(){ot=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?(0,O.$)(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return rt||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(ot=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let n=0,i=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:i}}createEventFromTouch(e,t){let n,i,r=e.touches,s=0,o=0;return r&&r.length?(n=r[0].pageX,i=r[0].pageY):(n=e.pageX,i=e.pageY),t?(this.origPageX=n,this.origPageY=i):(s=n-this.origPageX,o=i-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:i,deltaX:s,deltaY:o}}}function lt(e){ot&&e.preventDefault()}class ct{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,t){let n=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(e,t){let n=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",(0,O.aP)(n,{left:i.left,top:i.top}),(0,O.b2)(n,(()=>{n.style.transition="",e()}))}cleanup(){this.mirrorEl&&((0,O.aO)(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&(0,O.aP)(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.style.userSelect="none",t.classList.add("fc-event-dragging"),(0,O.aP)(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t}}class ut extends O.bb{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class dt extends ut{constructor(e,t){super(new O.bc(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return(0,O.b3)(this.scrollController.el)}}class ht extends ut{constructor(e){super(new O.bd,e)}getEventTarget(){return window}
vendor: 9,948 bytes, line 41
41computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const pt="function"==typeof performance?performance.now:Date.now;class ft{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let t=pt();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let n=e-window.pageXOffset,i=t-window.pageYOffset,r=null===this.pointerScreenY?0:i-this.pointerScreenY,s=null===this.pointerScreenX?0:n-this.pointerScreenX;r<0?this.everMovedUp=!0:r>0&&(this.everMovedDown=!0),s<0?this.everMovedLeft=!0:s>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(pt()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e,{edgeThreshold:i}=this,r=i-e.distance,s=r*r/(i*i)*this.maxVelocity*t,o=1;switch(e.name){case"left":o=-1;case"right":n.setScrollLeft(n.getScrollLeft()+s*o);break;case"top":o=-1;case"bottom":n.setScrollTop(n.getScrollTop()+s*o)}}computeBestEdge(e,t){let{edgeThreshold:n}=this,i=null,r=this.scrollCaches||[];for(let s of r){let r=s.clientRect,o=e-r.left,a=r.right-e,l=t-r.top,c=r.bottom-t;o>=0&&a>=0&&l>=0&&c>=0&&(l<=n&&this.everMovedUp&&s.canScrollUp()&&(!i||i.distance>l)&&(i={scrollCache:s,name:"top",distance:l}),c<=n&&this.everMovedDown&&s.canScrollDown()&&(!i||i.distance>c)&&(i={scrollCache:s,name:"bottom",distance:c}),o<=n&&this.everMovedLeft&&s.canScrollLeft()&&(!i||i.distance>o)&&(i={scrollCache:s,name:"left",distance:o}),a<=n&&this.everMovedRight&&s.canScrollRight()&&(!i||i.distance>a)&&(i={scrollCache:s,name:"right",distance:a}))}return i}buildCaches(e){return this.queryScrollEls(e).map((e=>e===window?new ht(!1):new dt(e,!1)))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery)"object"==typeof n?t.push(n):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)));return t}}class gt extends O.bH{constructor(e,t){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=e=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,(0,O.ar)(document.body),(0,O.at)(document.body),e.isTouch||e.origEvent.preventDefault(),this.emitter.trigger("pointerdown",e),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(e.subjectEl,e.pageX,e.pageY),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e)))},this.onPointerMove=e=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",e),!this.isDistanceSurpassed){let t,n=this.minDistance,{deltaX:i,deltaY:r}=e;t=i*i+r*r,t>=n*n&&this.handleDistanceSurpassed(e)}this.isDragging&&("scroll"!==e.origEvent.type&&(this.mirror.handleMove(e.pageX,e.pageY),this.autoScroller.handleMove(e.pageX,e.pageY)),this.emitter.trigger("dragmove",e))}},this.onPointerUp=e=>{this.isInteracting&&(this.isInteracting=!1,(0,O.as)(document.body),(0,O.au)(document.body),this.emitter.trigger("pointerup",e),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(e)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let n=this.pointer=new at(e);n.emitter.on("pointerdown",this.onPointerDown),n.emitter.on("pointermove",this.onPointerMove),n.emitter.on("pointerup",this.onPointerUp),t&&(n.selector=t),this.mirror=new ct,this.autoScroller=new ft}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){"number"==typeof this.delay?this.delayTimeoutId=setTimeout((()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)}),this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class vt{constructor(e){this.origRect=(0,O.b6)(e),this.scrollCaches=(0,O.b5)(e).map((e=>new dt(e,!0)))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let n={left:e,top:t};for(let i of this.scrollCaches)if(!mt(i.getEventTarget())&&!(0,O.aF)(n,i.clientRect))return!1;return!0}}function mt(e){let t=e.tagName;return"HTML"===t||"BODY"===t}class yt{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=e=>{let{dragging:t}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(e),this.initialHit||!this.requireInitial?(t.setIgnoreMove(!1),this.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=e=>{this.emitter.trigger("dragstart",e),this.handleMove(e,!0)},this.handleDragMove=e=>{this.emitter.trigger("dragmove",e),this.handleMove(e)},this.handlePointerUp=e=>{this.releaseHits(),this.emitter.trigger("pointerup",e)},this.handleDragEnd=e=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,e),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new O.F}processFirstCoord(e){let t,n={left:e.pageX,top:e.pageY},i=n,r=e.subjectEl;r instanceof HTMLElement&&(t=(0,O.b6)(r),i=(0,O.aG)(i,t));let s=this.initialHit=this.queryHitForOffset(i.left,i.top);if(s){if(this.useSubjectCenter&&t){let e=(0,O.aE)(t,s.rect);e&&(i=(0,O.aH)(e))}this.coordAdjust=(0,O.aI)(i,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&_t(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=(0,O.a)(this.droppableStore,(e=>(e.component.prepareHits(),new vt(e.el))))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:i}=this,r=null;for(let s in n){let o=n[s].component,a=i[s];if(a&&a.isWithinClipping(e,t)){let n=a.computeLeft(),i=a.computeTop(),l=e-n,c=t-i,{origRect:u}=a,d=u.right-u.left,h=u.bottom-u.top;if(l>=0&&l<d&&c>=0&&c<h){let e=o.queryHit(l,c,d,h);e&&(0,O.b9)(e.dateProfile.activeRange,e.dateSpan.range)&&(!r||e.layer>r.layer)&&(e.componentId=s,e.context=o.context,e.rect.left+=n,e.rect.right+=n,e.rect.top+=i,e.rect.bottom+=i,r=e)}}}return r}}function _t(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&(0,O.bf)(e.dateSpan,t.dateSpan)}function bt(e,t){let n={};for(let s of t.pluginHooks.datePointTransforms)Object.assign(n,s(e,t));var i,r;return Object.assign(n,(i=e,{date:(r=t.dateEnv).toDate(i.range.start),dateStr:r.formatIso(i.range.start,{omitTime:i.allDay}),allDay:i.allDay})),n}class Et extends O.Z{constructor(e){super(e),this.handlePointerDown=e=>{let{dragging:t}=this,n=e.origEvent.target;t.setIgnoreMove(!this.component.isValidDateDownEl(n))},this.handleDragEnd=e=>{let{component:t}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:i}=this.hitDragging;if(n&&i&&_t(n,i)){let{context:i}=t,r=Object.assign(Object.assign({},bt(n.dateSpan,i)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:i.viewApi||i.calendarApi.view});i.emitter.trigger("dateClick",r)}}},this.dragging=new gt(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new yt(this.dragging,(0,O.bG)(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class St extends O.Z{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:i}=t.context,r=i.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!r),n.delay=e.isTouch?function(e){let{options:t}=e.context,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(t):null},this.handleDragStart=e=>{this.component.context.calendarApi.unselect(e)},this.handleHitUpdate=(e,t)=>
41{let{context:n}=this.component,i=null,r=!1;if(e){let t=this.hitDragging.initialHit;e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e)||(i=function(e,t,n){let i=e.dateSpan,r=t.dateSpan,s=[i.range.start,i.range.end,r.range.start,r.range.end];s.sort(O.av);let o={};for(let a of n){let n=a(e,t);if(!1===n)return null;n&&Object.assign(o,n)}return o.range={start:s[0],end:s[3]},o.allDay=i.allDay,o}(t,e,n.pluginHooks.dateSelectionTransformers)),i&&(0,O.b_)(i,e.dateProfile,n)||(r=!0,i=null)}i?n.dispatch({type:"SELECT_DATES",selection:i}):t||n.dispatch({type:"UNSELECT_DATES"}),r?(0,O.ax)():(0,O.aw)(),t||(this.dragSelection=i)},this.handlePointerUp=e=>{this.dragSelection&&((0,O.cu)(this.dragSelection,e,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,i=this.dragging=new gt(e.el);i.touchScrollAllowed=!1,i.minDistance=n.selectMinDistance||0,i.autoScroller.isEnabled=n.dragScroll;let r=this.hitDragging=new yt(this.dragging,(0,O.bG)(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}class wt extends O.Z{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let t=e.origEvent.target,{component:n,dragging:i}=this,{mirror:r}=i,{options:s}=n.context,o=n.context;this.subjectEl=e.subjectEl;let a=this.subjectSeg=(0,O._)(e.subjectEl),l=(this.eventRange=a.eventRange).instance.instanceId;this.relevantEvents=(0,O.aV)(o.getCurrentData().eventStore,l),i.minDistance=e.isTouch?0:s.eventDragMinDistance,i.delay=e.isTouch&&l!==n.props.eventSelection?function(e){let{options:t}=e.context,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(n):null,s.fixedMirrorParent?r.parentNode=s.fixedMirrorParent:r.parentNode=(0,O.$)(t,".fc"),r.revertDuration=s.dragRevertDuration;let c=n.isValidSegDownEl(t)&&!(0,O.$)(t,".fc-event-resizer");i.setIgnoreMove(!c),this.isDragging=c&&e.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=e=>{let t=this.component.context,n=this.eventRange,i=n.instance.instanceId;e.isTouch?i!==this.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:i}):t.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new O.a0(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},this.handleHitUpdate=(e,t)=>{if(!this.isDragging)return;let n=this.relevantEvents,i=this.hitDragging.initialHit,r=this.component.context,s=null,o=null,a=null,l=!1,c={affectedEvents:n,mutatedEvents:(0,O.I)(),isEvent:!0};if(e){s=e.context;let t=s.options;r===s||t.editable&&t.droppable?(o=function(e,t,n){let i=e.dateSpan,r=t.dateSpan,s=i.range.start,o=r.range.start,a={};i.allDay!==r.allDay&&(a.allDay=r.allDay,a.hasEnd=t.context.options.allDayMaintainDuration,r.allDay&&(s=(0,O.q)(s)));let l=(0,O.aA)(s,o,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);l.milliseconds&&(a.allDay=!1);let c={datesDelta:l,standardProps:a};for(let u of n)u(c,e,t);return c}(i,e,s.getCurrentData().pluginHooks.eventDragMutationMassagers),o&&(a=(0,O.bX)(n,s.getCurrentData().eventUiBases,o,s),c.mutatedEvents=a,(0,O.bZ)(c,e.dateProfile,s)||(l=!0,o=null,a=null,c.mutatedEvents=(0,O.I)()))):s=null}this.displayDrag(s,c),l?(0,O.ax)():(0,O.aw)(),t||(r===s&&_t(i,e)&&(o=null),this.dragging.setMirrorNeedsRevert(!o),this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=s,this.validMutation=o,this.mutatedRelevantEvents=a)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=e=>{if(this.isDragging){let t=this.component.context,n=t.viewApi,{receivingContext:i,validMutation:r}=this,s=this.eventRange.def,o=this.eventRange.instance,a=new O.a0(t,s,o),l=this.relevantEvents,c=this.mutatedRelevantEvents,{finalHit:u}=this.hitDragging;if(this.clearDrag(),t.emitter.trigger("eventDragStop",{el:this.subjectEl,event:a,jsEvent:e.origEvent,view:n}),r){if(i===t){let i=new O.a0(t,c.defs[s.defId],o?c.instances[o.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:c});let u={oldEvent:a,event:i,relatedEvents:(0,O.w)(c,t,o),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}},d={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(d,e(r,t));t.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},u),d),{el:e.subjectEl,delta:r.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",u)}else if(i){let r={event:a,relatedEvents:(0,O.w)(l,t,o),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}};t.emitter.trigger("eventLeave",Object.assign(Object.assign({},r),{draggedEl:e.subjectEl,view:n}
41)),t.dispatch({type:"REMOVE_EVENTS",eventStore:l}),t.emitter.trigger("eventRemove",r);let d=c.defs[s.defId],h=c.instances[o.instanceId],p=new O.a0(i,d,h);i.dispatch({type:"MERGE_EVENTS",eventStore:c});let f={event:p,relatedEvents:(0,O.w)(c,i,h),revert(){i.dispatch({type:"REMOVE_EVENTS",eventStore:c})}};i.emitter.trigger("eventAdd",f),e.isTouch&&i.dispatch({type:"SELECT_EVENT",eventInstanceId:o.instanceId}),i.emitter.trigger("drop",Object.assign(Object.assign({},bt(u.dateSpan,i)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:u.context.viewApi})),i.emitter.trigger("eventReceive",Object.assign(Object.assign({},f),{draggedEl:e.subjectEl,view:u.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:n}=t.context,i=this.dragging=new gt(e.el);i.pointer.selector=wt.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=n.dragScroll;let r=this.hitDragging=new yt(this.dragging,O.a7);r.useSubjectCenter=e.useEventCenter,r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("pointerup",this.handlePointerUp),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context,i=this.receivingContext;i&&i!==e&&(i===n?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:(0,O.I)(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}wt.SELECTOR=".fc-event-draggable, .fc-event-resizable";class Rt extends O.Z{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let{component:t}=this,n=this.querySegEl(e),i=(0,O._)(n),r=this.eventRange=i.eventRange;this.dragging.minDistance=t.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==r.instance.instanceId)},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=(0,O.aV)(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let i=this.querySegEl(e);this.draggingSegEl=i,this.draggingSeg=(0,O._)(i),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:i,event:new O.a0(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},this.handleHitUpdate=(e,t,n)=>{let{context:i}=this.component,r=this.relevantEvents,s=this.hitDragging.initialHit,o=this.eventRange.instance,a=null,l=null,c=!1,u={affectedEvents:r,mutatedEvents:(0,O.I)(),isEvent:!0};if(e){e.componentId===s.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(s,e)||(a=function(e,t,n,i){let r=e.context.dateEnv,s=e.dateSpan.range.start,o=t.dateSpan.range.start,a=(0,O.aA)(s,o,r,e.largeUnit);if(n){if(r.add(i.start,a)<i.end)return{startDelta:a}}else if(r.add(i.end,a)>i.start)return{endDelta:a};return null}(s,e,n.subjectEl.classList.contains("fc-event-resizer-start"),o.range))}a&&(l=(0,O.bX)(r,i.getCurrentData().eventUiBases,a,i),u.mutatedEvents=l,(0,O.bZ)(u,e.dateProfile,i)||(c=!0,a=null,l=null,u.mutatedEvents=null)),l?i.dispatch({type:"SET_EVENT_RESIZE",state:u}):i.dispatch({type:"UNSET_EVENT_RESIZE"}),c?(0,O.ax)():(0,O.aw)(),t||(a&&_t(s,e)&&(a=null),this.validMutation=a,this.mutatedRelevantEvents=l)},this.handleDragEnd=e=>{let{context:t}=this.component,n=this.eventRange.def,i=this.eventRange.instance,r=new O.a0(t,n,i),s=this.relevantEvents,o=this.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:r,jsEvent:e.origEvent,view:t.viewApi}),this.validMutation){let a=new O.a0(t,o.defs[n.defId],i?o.instances[i.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:o});let l={oldEvent:r,event:a,relatedEvents:(0,O.w)(o,t,i),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:s})}};t.emitter.trigger("eventResize",Object.assign(Object.assign({},l),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||(0,O.d)(0),endDelta:this.validMutation.endDelta||(0,O.d)(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",l)}else t.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new gt(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let i=this.hitDragging=new yt(this.dragging,(0,O.bG)(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return(0,O.$)(e.subjectEl,".fc-event")}}const Dt={fixedMirrorParent:O.n},Tt={dateClick:O.n,eventDragStart:O.n,eventDragStop:O.n,eventDrop:O.n,eventResizeStart:O.n,eventResizeStop:O.n,eventResize:O.n,drop:O.n,eventReceive:O.n,eventLeave:O.n};O.bI.dataAttrPrefix="";var Ot=M({name:"@fullcalendar/interaction",componentInteractions:[Et,St,wt,Rt],calendarInteractions:[class{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=e=>{e.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=e=>{let t=this.context.options.unselectCancel,n=(0,O.aR)(e.origEvent);this.matchesCancel=!!(0,O.$)(n,t),this.matchesEvent=!!(0,O.$)(n,wt.SELECTOR)},this.onDocumentPointerUp=e=>{let{context:t}=this,{documentPointer:n}=this,i=t.getCurrentData();if(!n.wasTouchScroll){if(i.dateSelection&&!this.isRecentPointerDateSelect){let n=t.options.unselectAuto;!n||n&&this.matchesCancel||t.calendarApi.unselect(e)}
41i.eventSelection&&!this.matchesEvent&&t.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new at(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}],elementDraggingImpl:gt,optionRefiners:Dt,listenerRefiners:Tt}),xt=n(3935);class Ct extends i.Component{constructor(){super(...arguments),this.elRef=(0,i.createRef)(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame((()=>{this.doResize()})))}}render(){const e=[];for(const t of this.state.customRenderingMap.values())e.push(i.createElement(kt,{key:t.id,customRendering:t}));return i.createElement("div",{ref:this.elRef},e)}componentDidMount(){const e=new O.cy;let t;this.handleCustomRendering=e.handle.bind(e),this.calendar=new Ie(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),e.subscribe((e=>{const n=Date.now(),i=!t;(i||this.isUpdating||this.isUnmounting||n-t<100?It:xt.flushSync)((()=>{this.setState({customRenderingMap:e},(()=>{t=n,i?this.doResize():this.requestResize()}))}))}))}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){void 0!==this.resizeId&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}Ct.act=It;class kt extends i.PureComponent{render(){const{customRendering:e}=this.props,{generatorMeta:t}=e,n="function"==typeof t?t(e.renderProps):t;return(0,xt.createPortal)(n,e.containerEl)}}function It(e){e()}var Nt={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function At(e){var t=function(e){if("number"==typeof e)return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);var i=(e.match(/[^0-9]*$/)||"").toString();return Nt[i]?{value:t,unit:i}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}(e);return"".concat(t.value).concat(t.unit)}var Pt=function(){return Pt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Pt.apply(this,arguments)},Mt=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},Ht=function(e,t,n){var i="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return i;var r=document.createElement("style");document.head.appendChild(r);var s=r.sheet,o="\n @keyframes ".concat(i," {\n ").concat(t,"\n }\n ");return s&&s.insertRule(o,0),i}("BounceLoader","0% {transform: scale(0)} 50% {transform: scale(1.0)} 100% {transform: scale(0)}","bounce");var Lt=function(e){var t=e.loading,n=void 0===t||t,r=e.color,s=void 0===r?"#000000":r,o=e.speedMultiplier,a=void 0===o?1:o,l=e.cssOverride,c=void 0===l?{}:l,u=e.size,d=void 0===u?60:u,h=Mt(e,["loading","color","speedMultiplier","cssOverride","size"]),p=function(e){var t=1===e?"".concat(1/a,"s"):"0s";return{position:"absolute",height:At(d),width:At(d),backgroundColor:s,borderRadius:"100%",opacity:.6,top:0,left:0,animationFillMode:"both",animation:"".concat(Ht," ").concat(2.1/a,"s ").concat(t," infinite ease-in-out")}},f=Pt({display:"inherit",position:"relative",width:At(d),height:At(d)},c);return n?i.createElement("span",Pt({style:f},h),i.createElement("span",{style:p(1)}),i.createElement("span",{style:p(2)})):null};function jt(e){return jt="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},jt(e)}"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var zt="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function Ut(e,t){for(var n,i=/\r\n|[\n\r]/g,r=1,s=t+1;(n=i.exec(e.body))&&n.index<t;)r+=1,s=t+1-(n.index+n[0].length);return{line:r,column:s}}function Vt(e){return Ft(e.source,Ut(e.source,e.start))}function Ft(e,t){var n=e.locationOffset.column-1,i=Bt(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=1===t.line?n:0,l=t.column+a,c="".concat(e.name,":").concat(o,":").concat(l,"\n"),u=i.split(/\r\n|[\n\r]/g),d=u[r];if(d.length>120){for(var h=Math.floor(l/80),p=l%80,f=[],g=0;g<d.length;g+=80)f.push(d.slice(g,g+80));return c+Wt([["".concat(o),f[0]]].concat(f.slice(1,h+1).map((function(e){return["",e]})),[[" ",Bt(p-1)+"^"],["",f[h+1]]]))}return c+Wt([["".concat(o-1),u[r-1]],["".concat(o),d],["",Bt(l-1)+"^"],["".concat(o+1),u[r+1]]])}function Wt(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,i=e[0],r=e[1];return Bt(n-(t=i).length)+t+(r?" | "+r:" |")})).join("\n")}function Bt(e){return Array(e+1).join(" ")}function Yt(e){return Yt="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},Yt(e)}function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Xt(e,t){return!t||"object"!==Yt(t)&&"function"!=typeof t?Kt(e):t}function Kt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $t(e){var t="function"==typeof Map?new Map:void 0;return $t=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return Zt(e,arguments,tn(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),en(i,e)},$t(e)}function Zt(e,t,n){return Zt=Jt()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&en(r,n.prototype),r},Zt.apply(null,arguments)}
41function Jt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function en(e,t){return en=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},en(e,t)}function tn(e){return tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tn(e)}var nn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&en(e,t)}(a,e);var t,n,i,r,s,o=(t=a,n=Jt(),function(){var e,i=tn(t);if(n){var r=tn(this).constructor;e=Reflect.construct(i,arguments,r)}else e=i.apply(this,arguments);return Xt(this,e)});function a(e,t,n,i,r,s,l){var c,u,d,h;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(h=o.call(this,e)).name="GraphQLError",h.originalError=null!=s?s:void 0,h.nodes=rn(Array.isArray(t)?t:t?[t]:void 0);for(var p=[],f=0,g=null!==(v=h.nodes)&&void 0!==v?v:[];f<g.length;f++){var v,m=g[f].loc;null!=m&&p.push(m)}p=rn(p),h.source=null!=n?n:null===(c=p)||void 0===c?void 0:c[0].source,h.positions=null!=i?i:null===(u=p)||void 0===u?void 0:u.map((function(e){return e.start})),h.locations=i&&n?i.map((function(e){return Ut(n,e)})):null===(d=p)||void 0===d?void 0:d.map((function(e){return Ut(e.source,e.start)})),h.path=null!=r?r:void 0;var y,_=null==s?void 0:s.extensions;return null==l&&("object"==jt(y=_)&&null!==y)?h.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){qt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},_):h.extensions=null!=l?l:{},Object.defineProperties(Kt(h),{message:{enumerable:!0},locations:{enumerable:null!=h.locations},path:{enumerable:null!=h.path},extensions:{enumerable:null!=h.extensions&&Object.keys(h.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(Kt(h),"stack",{value:s.stack,writable:!0,configurable:!0}),Xt(h)):(Error.captureStackTrace?Error.captureStackTrace(Kt(h),a):Object.defineProperty(Kt(h),"stack",{value:Error().stack,writable:!0,configurable:!0}),h)}return i=a,(r=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,i=e.nodes;n<i.length;n++){var r=i[n];r.loc&&(t+="\n\n"+Vt(r.loc))}else if(e.source&&e.locations)for(var s=0,o=e.locations;s<o.length;s++){var a=o[s];t+="\n\n"+Ft(e.source,a)}return t}(this)}},{key:zt,get:function(){return"Object"}}])&&Qt(i.prototype,r),s&&Qt(i,s),a}($t(Error));function rn(e){return void 0===e||0===e.length?void 0:e}function sn(e,t,n){return new nn("Syntax Error: ".concat(n),void 0,e,[t])}var on=n(7359),an=n(5217),ln=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),cn=n(5821);function un(e,t){if(!Boolean(e))throw new Error(t)}var dn=function(e,t){return e instanceof t};function hn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var pn=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||un(0,"Body must be a string. Received: ".concat((0,cn.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||un(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||un(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,i;return t=e,(n=[{key:zt,get:function(){return"Source"}}])&&hn(t.prototype,n),i&&hn(t,i),e}();var fn=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",
41ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),gn=n(7392),vn=function(){function e(e){var t=new an.WU(ln.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==ln.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=yn(this,e)}while(e.kind===ln.COMMENT);return e},e}();function mn(e){return isNaN(e)?ln.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function yn(e,t){for(var n=e.source,i=n.body,r=i.length,s=t.end;s<r;){var o=i.charCodeAt(s),a=e.line,l=1+s-e.lineStart;switch(o){case 65279:case 9:case 32:case 44:++s;continue;case 10:++s,++e.line,e.lineStart=s;continue;case 13:10===i.charCodeAt(s+1)?s+=2:++s,++e.line,e.lineStart=s;continue;case 33:return new an.WU(ln.BANG,s,s+1,a,l,t);case 35:return bn(n,s,a,l,t);case 36:return new an.WU(ln.DOLLAR,s,s+1,a,l,t);case 38:return new an.WU(ln.AMP,s,s+1,a,l,t);case 40:return new an.WU(ln.PAREN_L,s,s+1,a,l,t);case 41:return new an.WU(ln.PAREN_R,s,s+1,a,l,t);case 46:if(46===i.charCodeAt(s+1)&&46===i.charCodeAt(s+2))return new an.WU(ln.SPREAD,s,s+3,a,l,t);break;case 58:return new an.WU(ln.COLON,s,s+1,a,l,t);case 61:return new an.WU(ln.EQUALS,s,s+1,a,l,t);case 64:return new an.WU(ln.AT,s,s+1,a,l,t);case 91:return new an.WU(ln.BRACKET_L,s,s+1,a,l,t);case 93:return new an.WU(ln.BRACKET_R,s,s+1,a,l,t);case 123:return new an.WU(ln.BRACE_L,s,s+1,a,l,t);case 124:return new an.WU(ln.PIPE,s,s+1,a,l,t);case 125:return new an.WU(ln.BRACE_R,s,s+1,a,l,t);case 34:return 34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)?Rn(n,s,a,l,t,e):wn(n,s,a,l,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return En(n,s,o,a,l,t);
41case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Tn(n,s,a,l,t)}throw sn(n,s,_n(o))}var c=e.line,u=1+s-e.lineStart;return new an.WU(ln.EOF,r,r,c,u,t)}function _n(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(mn(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(mn(e),".")}function bn(e,t,n,i,r){var s,o=e.body,a=t;do{s=o.charCodeAt(++a)}while(!isNaN(s)&&(s>31||9===s));return new an.WU(ln.COMMENT,t,a,n,i,r,o.slice(t+1,a))}function En(e,t,n,i,r,s){var o=e.body,a=n,l=t,c=!1;if(45===a&&(a=o.charCodeAt(++l)),48===a){if((a=o.charCodeAt(++l))>=48&&a<=57)throw sn(e,l,"Invalid number, unexpected digit after 0: ".concat(mn(a),"."))}else l=Sn(e,l,a),a=o.charCodeAt(l);if(46===a&&(c=!0,a=o.charCodeAt(++l),l=Sn(e,l,a),a=o.charCodeAt(l)),69!==a&&101!==a||(c=!0,43!==(a=o.charCodeAt(++l))&&45!==a||(a=o.charCodeAt(++l)),l=Sn(e,l,a),a=o.charCodeAt(l)),46===a||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(a))throw sn(e,l,"Invalid number, expected digit but got: ".concat(mn(a),"."));return new an.WU(c?ln.FLOAT:ln.INT,t,l,i,r,s,o.slice(t,l))}function Sn(e,t,n){var i=e.body,r=t,s=n;if(s>=48&&s<=57){do{s=i.charCodeAt(++r)}while(s>=48&&s<=57);return r}throw sn(e,r,"Invalid number, expected digit but got: ".concat(mn(s),"."))}function wn(e,t,n,i,r){for(var s,o,a,l,c=e.body,u=t+1,d=u,h=0,p="";u<c.length&&!isNaN(h=c.charCodeAt(u))&&10!==h&&13!==h;){if(34===h)return p+=c.slice(d,u),new an.WU(ln.STRING,t,u+1,n,i,r,p);if(h<32&&9!==h)throw sn(e,u,"Invalid character within String: ".concat(mn(h),"."));if(++u,92===h){switch(p+=c.slice(d,u-1),h=c.charCodeAt(u)){case 34:p+='"';break;case 47:p+="/";break;case 92:p+="\\";break;case 98:p+="\b";break;case 102:p+="\f";break;case 110:p+="\n";break;case 114:p+="\r";break;case 116:p+="\t";break;case 117:var f=(s=c.charCodeAt(u+1),o=c.charCodeAt(u+2),a=c.charCodeAt(u+3),l=c.charCodeAt(u+4),Dn(s)<<12|Dn(o)<<8|Dn(a)<<4|Dn(l));if(f<0){var g=c.slice(u+1,u+5);throw sn(e,u,"Invalid character escape sequence: \\u".concat(g,"."))}p+=String.fromCharCode(f),u+=4;break;default:throw sn(e,u,"Invalid character escape sequence: \\".concat(String.fromCharCode(h),"."))}d=++u}}throw sn(e,u,"Unterminated string.")}function Rn(e,t,n,i,r,s){for(var o=e.body,a=t+3,l=a,c=0,u="";a<o.length&&!isNaN(c=o.charCodeAt(a));){if(34===c&&34===o.charCodeAt(a+1)&&34===o.charCodeAt(a+2))return u+=o.slice(l,a),new an.WU(ln.BLOCK_STRING,t,a+3,n,i,r,(0,gn.W7)(u));if(c<32&&9!==c&&10!==c&&13!==c)throw sn(e,a,"Invalid character within String: ".concat(mn(c),"."));10===c?(++a,++s.line,s.lineStart=a):13===c?(10===o.charCodeAt(a+1)?a+=2:++a,++s.line,s.lineStart=a):92===c&&34===o.charCodeAt(a+1)&&34===o.charCodeAt(a+2)&&34===o.charCodeAt(a+3)?(u+=o.slice(l,a)+'"""',l=a+=4):++a}throw sn(e,a,"Unterminated string.")}function Dn(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Tn(e,t,n,i,r){for(var s=e.body,o=s.length,a=t+1,l=0;a!==o&&!isNaN(l=s.charCodeAt(a))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++a;return new an.WU(ln.NAME,t,a,n,i,r,s.slice(t,a))}var On=function(){function e(e,t){var n=function(e){return dn(e,pn)}(e)?e:new pn(e);this._lexer=new vn(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(ln.NAME);return{kind:on.h.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:on.h.DOCUMENT,definitions:this.many(ln.SOF,this.parseDefinition,ln.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(ln.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(ln.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(ln.BRACE_L))return{kind:on.h.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(ln.NAME)&&(t=this.parseName()),{kind:on.h.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(ln.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(ln.PAREN_L,this.parseVariableDefinition,ln.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:on.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(ln.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(l
41n.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(ln.DOLLAR),{kind:on.h.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:on.h.SELECTION_SET,selections:this.many(ln.BRACE_L,this.parseSelection,ln.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(ln.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(ln.COLON)?(e=i,t=this.parseName()):t=i,{kind:on.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ln.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(ln.PAREN_L,t,ln.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(ln.COLON),{kind:on.h.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:on.h.ARGUMENT,name:this.parseName(),value:(this.expectToken(ln.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(ln.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(ln.NAME)?{kind:on.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:on.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:on.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:on.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case ln.BRACKET_L:return this.parseList(e);case ln.BRACE_L:return this.parseObject(e);case ln.INT:return this._lexer.advance(),{kind:on.h.INT,value:t.value,loc:this.loc(t)};case ln.FLOAT:return this._lexer.advance(),{kind:on.h.FLOAT,value:t.value,loc:this.loc(t)};case ln.STRING:case ln.BLOCK_STRING:return this.parseStringLiteral();case ln.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:on.h.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:on.h.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:on.h.NULL,loc:this.loc(t)};default:return{kind:on.h.ENUM,value:t.value,loc:this.loc(t)}}case ln.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:on.h.STRING,value:e.value,block:e.kind===ln.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:on.h.LIST,values:this.any(ln.BRACKET_L,(function(){return t.parseValueLiteral(e)}),ln.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:on.h.OBJECT,fields:this.any(ln.BRACE_L,(function(){return t.parseObjectField(e)}),ln.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(ln.COLON),{kind:on.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(ln.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(ln.AT),{kind:on.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;
vendor: 4,522 bytes, line 41
41return this.expectOptionalToken(ln.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(ln.BRACKET_R),e={kind:on.h.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(ln.BANG)?{kind:on.h.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:on.h.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===ln.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(ln.STRING)||this.peek(ln.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),i=this.many(ln.BRACE_L,this.parseOperationTypeDefinition,ln.BRACE_R);return{kind:on.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(ln.COLON);var n=this.parseNamedType();return{kind:on.h.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),i=this.parseDirectives(!0);return{kind:on.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),s=this.parseFieldsDefinition();return{kind:on.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(ln.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(ln.AMP)||this.peek(ln.NAME));return t}return this.delimitedMany(ln.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(ln.BRACE_L)&&this._lexer.lookahead().kind===ln.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(ln.BRACE_L,this.parseFieldDefinition,ln.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(ln.COLON);var r=this.parseTypeReference(),s=this.parseDirectives(!0);return{kind:on.h.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(ln.PAREN_L,this.parseInputValueDef,ln.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(ln.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(ln.EQUALS)&&(i=this.parseValueLiteral(!0));var s=this.parseDirectives(!0);return{kind:on.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:s,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),s=this.parseFieldsDefinition();return{kind:on.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:on.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(l
41n.EQUALS)?this.delimitedMany(ln.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:on.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(ln.BRACE_L,this.parseEnumValueDefinition,ln.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseDirectives(!0);return{kind:on.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:on.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(ln.BRACE_L,this.parseInputValueDef,ln.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===ln.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(ln.BRACE_L,this.parseOperationTypeDefinition,ln.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:on.h.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:on.h.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:on.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:on.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:on.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:i,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:on.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:on.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ln.AT);var n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var s=this.parseDirectiveLocations();return{kind:on.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(ln.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==fn[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new an.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw sn(this._lexer.source,t.start,"Expected ".concat(Cn(e),", found ").concat(xn(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==ln.NAME||t.value!==e)throw sn(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(xn(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===ln.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return sn(this._lexer.source,t.start,"Unexpected ".concat(xn(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var i=[];!this.expectOptionalToken(n);)i.push(t.call(this));return i},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}return[]},t.many=function(e,t,n){this.expectToken(e);var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function xn(e){var t=e.value;return Cn(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Cn(e){return function(e){return e===ln.BANG||e===ln.DOLLAR||e===ln.AMP||e===ln.PAREN_L||e===ln.PAREN_R||e===ln.SPREAD||e===ln.COLON||e===ln.EQUALS||e===ln.AT||e===ln.BRACKET_L||e===ln.BRACKET_R||e===ln.BRACE_L||e===ln.PIPE||e===ln.BRACE_R}(e)?'"'.concat(e,'"'):e}var kn=new Map,In=new Map,Nn=!0,An=!1;function Pn(e){return e.replace(/[\s,]+/g," ").trim()}function Mn(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var i=e.name.value,r=Pn((o=e.loc).source.body.substring(o.start,o.end)),s=In.get(i);s&&!s.has(r)?Nn&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||In.set(i,s=new Set),s.add(r),t.has(r)||(t.add(r),n.push(e))}else n.push(e);var o})),(0,o.pi)((0,o.pi)({},e),{definitions:n})}function Hn(e){var t=Pn(e);if(!kn.has(t)){var n=function(e,t){return new On(e,t).parseDocument()}(e,{experimentalFragmentVariables:An,allowLegacyFragmentVariables:An});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");kn.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var i=e[n];i&&"object"==typeof i&&t.add(i)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(Mn(n)))}return kn.get(t)}function Ln(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[n+1]})),Hn(i)}var jn,zn=Ln,Un=function(){kn.clear(),In.clear()},Vn=function(){Nn=!1},Fn=function(){An=!0},Wn=function(){An=!1};(jn=Ln||(Ln={})).gql=zn,jn.resetCaches=Un,jn.disableFragmentWarnings=Vn,jn.enableExperimentalFragmentVariables=Fn,jn.disableExperimentalFragmentVariables=Wn,Ln.default=Ln;const Bn=Ln` 42 query FetchEvents($startDateAfter: DateTime!, $startDateBefore: DateTime!) { 43 allEvents( 44 where: { 45 start_date_after: $startDateAfter
46 start_date_before: $startDateBefore 47 } 48 ) { 49 edges { 50 node { 51 title 52 start_date 53 end_date 54 organiser 55 category { 56 ... on Category { 57 name 58 color 59 } 60 } 61 _meta { 62 uid 63 } 64 } 65 } 66 } 67 } 68`,Yn={"#44aa99":"video_in_retail","#117733":"food_waste","#aa4499":"ecommerce_loss","#882255":"inventory_accuracy","#999999":"on_shelf_availability","#999933":"self_checkout","#cc6677":"rfid_in_retail","#ddcc77":"retail_loss_safety_and_security"};var Gn=n(381),qn=n.n(Gn);const Qn=()=>{var e;const{0:t,1:n}=(0,i.useState)(null),{0:r,1:o}=(0,i.useState)(null),{loading:a,error:l,data:c}=D(Bn,{variables:{startDateAfter:t,startDateBefore:r},skip:!t||!r}),u=null==c||null===(e=c.allEvents)||void 0===e?void 0:e.edges.map((e=>{let{node:t}=e;return(e=>{var t;const{_meta:n}=e;return{title:null==e||null===(t=e.title[0])||void 0===t?void 0:t.text,organiser:null==e?void 0:e.organiser,city:null==e?void 0:e.city,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date,category:null==e?void 0:e.category,meta:n}})(t)})),d=null==u?void 0:u.map((e=>{const{title:t,startDate:n,endDate:i,category:r,meta:s,organiser:o}=e,a=qn().utc(n).format("h:mm A");return{title:`${r.name.toUpperCase()} | ${t}`,organiser:o,time:a,start:n,end:i,backgroundColor:r.color,url:`/event/${s.uid}`}}));return i.createElement(s.W,null,i.createElement("div",{className:"calendar-module--wrapper--95846"},l?i.createElement("div",null,"Something was wrong..."):i.createElement("div",{className:[a?"calendar-module--calendarWrapper--121fa":"show"].join(" ")},i.createElement("div",{className:"calendar-module--loader--56c26"},i.createElement(Lt,{color:"#473974",loading:a})),i.createElement(Ct,{timeZone:"local",height:"100vh",plugins:[it,Ot],initialView:"dayGridMonth",events:d,datesSet:e=>{let{startStr:t,endStr:i}=e;n(t),o(i)},eventClassNames:e=>{const{isPast:t,backgroundColor:n}=e;return t?["past-event"]:n?[Yn[n]]:[]},weekends:!1,eventContent:e=>{const{time:t,organiser:n}=e.event._def.extendedProps;return{html:`<div class="calendarInfo">\n <div class="time">Time: ${t} (UK time)</div>\n <div class="title">${window.screen.width>640?e.event._def.title:e.event._def.title.split(" | ")[0]}</div>\n <div class="organiser">Organiser: ${n}</div>\n </div>`}}}))))};var Xn=n(3864),Kn=n(1404);var $n=e=>{let{location:t}=e;return i.createElement(Xn.Z,{location:t},i.createElement(Kn.S,{type:"blue",container:!0},i.createElement(Qn,null)))}},9748:function(e,t,n){n.d(t,{jz:function(){return P}});var i,r,s,o=n(6400),a=[],l=[],c=o.YM.__b,u=o.YM.__r,d=o.YM.diffed,h=o.YM.__c,p=o.YM.unmount;function f(){for(var e;e=a.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(m),e.__H.__h.forEach(y),e.__H.__h=[]}catch(i){e.__H.__h=[],o.YM.__e(i,e.__v)}}o.YM.__b=function(e){i=null,c&&c(e)},o.YM.__r=function(e){u&&u(e),0;var t=(i=e.__c).__H;t&&(r===i?(t.__h=[],i.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=l,e.__N=e.i=void 0}))):(t.__h.forEach(m),t.__h.forEach(y),t.__h=[])),r=i},o.YM.diffed=function(e){d&&d(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==a.push(t)&&s===o.YM.requestAnimationFrame||((s=o.YM.requestAnimationFrame)||v)(f)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==l&&(e.__=e.__V),e.i=void 0,e.__V=l}))),r=i=null},o.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(m),e.__h=e.__h.filter((function(e){return!e.__||y(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],o.YM.__e(r,e.__v)}})),h&&h(e,t)},o.YM.unmount=function(e){p&&p(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{m(e)}catch(e){t=e}})),n.__H=void 0,t&&o.YM.__e(t,n.__v))};var g="function"==typeof requestAnimationFrame;function v(e){var t,n=function(){clearTimeout(i),g&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);g&&(t=requestAnimationFrame(n))}function m(e){var t=i,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),i=t}function y(e){var t=i;e.__c=e.__(),i=t}function _(e,t){for(var n in t)e[n]=t[n];return e}function b(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function E(e){this.props=e}(E.prototype=new o.wA).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(e,t){return b(this.props,e)||b(this.state,t)};var S=o.YM.__b;o.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),S&&S(e)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var w=function(e,t){return null==e?null:(0,o.bR)((0,o.bR)(e).map(t))},R=(o.bR,o.YM.__e);o.YM.__e=function(e,t,n,i){if(e.then)for(var r,s=t;s=s.__;)if((r=s.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);R(e,t,n,i)};var D=o.YM.unmount;function T(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=_({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return T(e,t,n)}))),e}function O(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return O(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function x(){this.__u=0,this.t=null,this.__b=null}function C(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function k(){this.u=null,this.o=null}o.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),D&&D(e)},(x.prototype=new o.wA).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=C(i.__v),s=!1,o=function(){s||(s=!0,n.__R=null,r?r(a):a())};n.__R=o;var a=function(){if(!--i.__u){if(i.state.__a){var e=i.state.__a;i.__v.__k[0]=O(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__a:i.__b=null});t=i.t.pop();)t.forceUpdate()}},l=!0===t.__h;i.__u++||l||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(o,o)},x.prototype.componentWillUnmount=function(){this.t=[]},x.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;
68this.__v.__k[0]=T(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__a&&(0,o.az)(o.HY,null,e.fallback);return r&&(r.__h=null),[(0,o.az)(o.HY,null,t.__a?null:e.children),r]};var I=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function N(e){return this.getChildContext=function(){return e.context},e.children}function A(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,o.sY)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,o.sY)((0,o.az)(N,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function P(e,t){var n=(0,o.az)(A,{__v:e,i:t});return n.containerInfo=t,n}(k.prototype=new o.wA).__a=function(e){var t=this,n=C(t.__v),i=t.o.get(e);return i[0]++,function(r){var s=function(){t.props.revealOrder?(i.push(r),I(t,e,i)):r()};n?n(s):s()}},k.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,o.bR)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},k.prototype.componentDidUpdate=k.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){I(e,n,t)}))};var M="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,H=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,L="undefined"!=typeof document,j=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};o.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(o.wA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var z=o.YM.event;function U(){}function V(){return this.cancelBubble}function F(){return this.defaultPrevented}o.YM.event=function(e){return z&&(e=z(e)),e.persist=U,e.isPropagationStopped=V,e.isDefaultPrevented=F,e.nativeEvent=e};var W={configurable:!0,get:function(){return this.class}},B=o.YM.vnode;o.YM.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var r=-1===t.indexOf("-");for(var s in i={},n){var a=n[s];L&&"children"===s&&"noscript"===t||"value"===s&&"defaultValue"in n&&null==a||("defaultValue"===s&&"value"in n&&null==n.value?s="value":"download"===s&&!0===a?a="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+t)&&!j(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():r&&H.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),i[s]&&(s="oninputCapture")),i[s]=a)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=(0,o.bR)(n.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==t&&null!=i.defaultValue&&(i.value=(0,o.bR)(n.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),e.props=i,n.class!=n.className&&(W.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",W))}e.$$typeof=M,B&&B(e)};var Y=o.YM.__r;o.YM.__r=function(e){Y&&Y(e),e.__c};o.HY;o.az,o.kr,o.Vf,o.HY,o.wA},6400:function(e,t,n){n.d(t,{HY:function(){return _},Tm:function(){return W},Vf:function(){return y},YM:function(){return r},ZB:function(){return F},az:function(){return v},bR:function(){return N},kr:function(){return B},sY:function(){return V},wA:function(){return R}});var i,r,s,o,a,l,c,u,d={},h=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,t){for(var n in t)e[n]=t[n];return e}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var r,s,o,a={};for(o in t)"key"==o?r=t[o]:"ref"==o?s=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return m(e,a,r,s,null)}function m(e,t,n,i,o){var a={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++s:o};return null==o&&null!=r.vnode&&r.vnode(a),a}function y(){return{current:null}}function _(e){return e.children}function b(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function E(e,t,n,i,r){var s;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||b(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||b(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?i||e.addEventListener(t,s?w:S,s):e.removeEventListener(t,s?w:S,s);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function S(e){o=!0;
vendor: 8,725 bytes, line 68
68try{return this.l[e.type+!1](r.event?r.event(e):e)}finally{o=!1}}function w(e){o=!0;try{return this.l[e.type+!0](r.event?r.event(e):e)}finally{o=!1}}function R(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?D(e):null}function T(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return T(e)}}function O(e){o?setTimeout(e):c(e)}function x(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!C.__r++||l!==r.debounceRendering)&&((l=r.debounceRendering)||O)(C)}function C(){var e,t,n,i,r,s,o,l;for(a.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=a.shift();)e.__d&&(t=a.length,i=void 0,r=void 0,o=(s=(n=e).__v).__e,(l=n.__P)&&(i=[],(r=f({},s)).__v=s.__v+1,M(l,s,r,n.__n,void 0!==l.ownerSVGElement,null!=s.__h?[o]:null,i,null==o?D(s):o,s.__h),H(i,s),s.__e!=o&&T(s)),a.length>t&&a.sort((function(e,t){return e.__v.__b-t.__v.__b})));C.__r=0}function k(e,t,n,i,r,s,o,a,l,c){var u,p,f,g,v,y,b,E=i&&i.__k||h,S=E.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(g=n.__k[u]=null==(g=t[u])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?m(null,g,null,null,g):Array.isArray(g)?m(_,{children:g},null,null,null):g.__b>0?m(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(f=E[u])||f&&g.key==f.key&&g.type===f.type)E[u]=void 0;else for(p=0;p<S;p++){if((f=E[p])&&g.key==f.key&&g.type===f.type){E[p]=void 0;break}f=null}M(e,g,f=f||d,r,s,o,a,l,c),v=g.__e,(p=g.ref)&&f.ref!=p&&(b||(b=[]),f.ref&&b.push(f.ref,null,g),b.push(p,g.__c||v,g)),null!=v?(null==y&&(y=v),"function"==typeof g.type&&g.__k===f.__k?g.__d=l=I(g,l,e):l=A(e,g,f,E,v,l),"function"==typeof n.type&&(n.__d=l)):l&&f.__e==l&&l.parentNode!=e&&(l=D(f))}for(n.__e=y,u=S;u--;)null!=E[u]&&("function"==typeof n.type&&null!=E[u].__e&&E[u].__e==n.__d&&(n.__d=P(i).nextSibling),z(E[u],E[u]));if(b)for(u=0;u<b.length;u++)j(b[u],b[++u],b[++u])}function I(e,t,n){for(var i,r=e.__k,s=0;r&&s<r.length;s++)(i=r[s])&&(i.__=e,t="function"==typeof i.type?I(i,t,n):A(n,i,i,r,i.__e,t));return t}function N(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){N(e,t)})):t.push(e)),t}function A(e,t,n,i,r,s){var o,a,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||r!=s||null==r.parentNode)e:if(null==s||s.parentNode!==e)e.appendChild(r),o=null;else{for(a=s,l=0;(a=a.nextSibling)&&l<i.length;l+=1)if(a==r)break e;e.insertBefore(r,s),o=s}return void 0!==o?o:r.nextSibling}function P(e){var t,n,i;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(i=P(n)))return i;return null}function M(e,t,n,i,s,o,a,l,c){var u,d,h,p,g,v,m,y,b,E,S,w,D,T,O,x=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,l=t.__e=n.__e,t.__h=null,o=[l]),(u=r.__b)&&u(t);try{e:if("function"==typeof x){if(y=t.props,b=(u=x.contextType)&&i[u.__c],E=u?b?b.props.value:u.__:i,n.__c?m=(d=t.__c=n.__c).__=d.__E:("prototype"in x&&x.prototype.render?t.__c=d=new x(y,E):(t.__c=d=new R(y,E),d.constructor=x,d.render=U),b&&b.sub(d),d.props=y,d.state||(d.state={}),d.context=E,d.__n=i,h=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=x.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=f({},d.__s)),f(d.__s,x.getDerivedStateFromProps(y,d.__s))),p=d.props,g=d.state,d.__v=t,h)null==x.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==x.getDerivedStateFromProps&&y!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,E),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,E)||t.__v===n.__v){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,E),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,g,v)}))}if(d.context=E,d.props=y,d.__P=e,w=r.__r,D=0,"prototype"in x&&x.prototype.render){for(d.state=d.__s,d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[]}else do{d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++D<25);d.state=d.__s,null!=d.getChildContext&&(i=f(f({},i),d.getChildContext())),h||null==d.getSnapshotBeforeUpdate||(v=d.getSnapshotBeforeUpdate(p,g)),O=null!=u&&u.type===_&&null==u.key?u.props.children:u,k(e,Array.isArray(O)?O:[O],t,n,i,s,o,a,l,c),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),m&&(d.__E=d.__=null),d.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=L(n.__e,t,n,i,s,o,a,c);(u=r.diffed)&&u(t)}catch(e){t.__v=null,(c||null!=o)&&(t.__e=l,t.__h=!!c,o[o.indexOf(l)]=null),r.__e(e,t,n)}}function H(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function L(e,t,n,r,s,o,a,l){var c,u,h,p=n.props,f=t.props,v=t.type,m=0;if("svg"===v&&(s=!0),null!=o)for(;m<o.length;m++)if((c=o[m])&&"setAttribute"in c==!!v&&(v?c.localName===v:3===c.nodeType)){e=c,o[m]=null;break}if(null==e){if(null===v)return document.createTextNode(f);e=s?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,f.is&&f),o=null,l=!1}if(null===v)p===f||l&&e.data===f||(e.data=f);else{if(o=o&&i.call(e.childNodes),u=(p=n.props||d).dangerouslySetInnerHTML,h=f.dangerouslySetInnerHTML,!l){if(null!=o)for(p={},m=0;m<e.attributes.length;m++)p[e.attributes[m].name]=e.attributes[m].value;(h||u)&&(h&&(u&&h.__html==u.__html||h.__html===e.innerHTML)||(e.innerHTML=h&&h.__html||""))}if(function(e,t,n,i,r){var s;for(s in n)"children"===s||"key"===s||s in t||E(e,s,null,n[s],i);for(s in t)r&&"function"!=typeof t[s]||"children"===s||"key"===s||"value"===s||"checked"===s||n[s]===t[s]||E(e,s,t[s],n[s],i)}(e,f,p,s,l),h)t.__k=[];else if(m=t.props.children,k(e,Array.isArray(m)?m:[m],t,n,r,s&&"foreignObject"!==v,o,a,o?o[0]:n.__k&&D(n,0),l),null!=o)for(m=o.length;m--;)null!=o[m]&&g(o[m]);l||("value"in f&&void 0!==(m=f.value)&&(m!==e.value||"progress"===v&&!m||"option"===v&&m!==p.value)&&E(e,"value",m,p.value,!1),"checked"in f&&void 0!==(m=f.checked)&&m!==e.checked&&E(e,"checked",m,p.checked,!1))}return e}function j(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function z(e,t,n){var i,s;if(r.unmount&&r.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||j(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){r.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(s=0;s<i.length;s++)i[s]&&z(i[s],t,n||"function"!=typeof e.type);n||null==e.__e||g(e.__e),e.__=e.__e=e.__d=void 0}function U(e,t,n){return this.constructor(e,n)}function V(e,t,n){var s,o,a;r.__&&r.__(e,t),o=(s="function"==typeof n)?null:n&&n.__k||t.__k,a=[],M(t,e=(!s&&n||t).__k=v(_,null,[e]),o||d,d,void 0!==t.ownerSVGElement,!s&&n?[n]:o?null:t.firstChild?i.call(t.childNodes):null,a,!s&&n?n:o?o.__e:t.firstChild,s),H(a,e)}function F(e,t){V(e,t,F)}function W(e,t,n){var r,s,o,a=f({},e.props);for(o in t)"key"==o?r=t[o]:"ref"==o?s=t[o]:a[o]=t[o];return arguments.length>2&&(a.children=arguments.length>3?i.call(arguments,2):n),m(e.type,a,r||e.key,s||e.ref,null)}function B(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,x(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}i=h.slice,r={__e:function(e,t,n,i){for(var r,s,o;t=t.__;)if((r=t.__c)&&!r.__)try{if((s=r.constructor)&&null!=s.getDerivedStateFromError&&(r.setState(s.getDerivedStateFromError(e)),o=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),o=r.__d),o)return r.__E=r}catch(t){e=t}throw e}},s=0,o=!1,R.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),x(this))},R.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},R.prototype.render=_,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Prom
68ise.resolve()):setTimeout,C.__r=0,u=0}}]); 69//# sourceMappingURL=component---src-pages-calendar-js-318aec1d04082e126301.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.