tocco-admin 1.0.185 → 1.0.187
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +7 -0
- package/dist/{chunk-531.b7d43f6e3a512bd0e249.js → chunk-531.b9fd7d86f2322fa1ecab.js} +1 -1
- package/dist/chunk-568.54572f6347f8fca4aa68.js +1 -0
- package/dist/chunk-actions.8b132ecaaa2a2b46c804.js +1 -0
- package/dist/chunk-docs-actions.0b6ae00107e9048fbb30.js +1 -0
- package/dist/{chunk-vendor-icons.929f5e7c14c1e5c968f7.js → chunk-vendor-icons.ee5f04dd263d993ea12e.js} +6 -1
- package/dist/index.js +8 -12
- package/package.json +1 -1
- package/dist/chunk-568.09d529fa6c2f048c5087.js +0 -1
- package/dist/chunk-actions.0e5c131600b46ca2a96c.js +0 -1
- package/dist/chunk-docs-actions.8b05c03d94be236c4445.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[141],{69100:(e,t,n)=>{var r=n(99489),i=n(57067);function o(t,n,s){return i()?e.exports=o=Reflect.construct:e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},o.apply(null,arguments)}e.exports=o},57067:e=>{e.exports=function(){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}}},57387:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(27361),i=n.n(r),o=n(74806),s=n(50558),a=n(29785),l=n(59713),c=n.n(l),u=n(17563),d=n(73183),h=n(6699),f=n(90169),p=n(85893);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=e.entityName,n=e.entityKeys,r=e.children,i=n.map((function(e){return{entityName:t,key:e}}));return(0,p.jsx)(h.Z,{to:"/docs?rootNodes=".concat(JSON.stringify(i)),target:"_blank",children:r})};const b=function(e){var t=u.parse(e.history.location.search);return(0,p.jsx)(d.default,m(m(m({},e),{},{routerType:"inherit",navigationStrategy:{ListLink:v,DetailLink:f.z2}},t.rootNodes&&{rootNodes:JSON.parse(t.rootNodes)}),{},{searchFormCollapsed:e.searchFormCollapsed,onSearchFormCollapsedChange:function(t){var n=t.collapsed;e.saveUserPreferences({"admin.list.searchFormCollapsed":n})},scrollBehaviour:"inline"}))};var y={saveUserPreferences:a.RK};const w={container:(0,s.connect)((function(e,t){return{searchFormCollapsed:i()(e.preferences.userPreferences,"admin.list.searchFormCollapsed",null)}}),y)((0,o.ZP)(b))}},84007:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>In});var r=n(15857),i=n(74806),o=n(50558),s=n(54675),a=n(1024),l=n.n(a),c=n(56746),u=n(19743),d=n(5303),h=n(59713),f=n.n(h),p=n(27361),g=n.n(p),m=n(70696),v=n(75354),b=n(87467),y=n(90169),w=n(13442),E=function(e){var t=w.Z.extractParamsFromPath("/e/:entity/:key?/:relation*/:view(list|detail|edit|create|relations|action)/:actionId?",e),n=w.Z.extractParamsFromPath("/e/action/:actionId",e);return t||n},S=n(46054),C=n(85893);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R=function(e){var t=e.history,n=e.match,r=e.setCurrentViewTitle,i=e.currentViewInfo,o=e.intl,s=t.location;if((0,a.useEffect)((function(){return i&&r(o.formatMessage({id:"client.actions.".concat(i.actionId,".title")})),function(){r(null)}}),[i,r,o]),!i)return null;var l=v.Z.fromQueryString(s.search),c=g()(s,"state.selection",l.selection),u=g()(s,"state.definition.properties",l.actionProperties),d=function(){var e=E(n.url).key?(0,b.H)(n.url):(0,b.H)(n.url,2);t.replace(e)};return(0,C.jsx)(S.Z,D(D({history:t,match:n,appId:i.actionId},l),{},{selection:c,actionProperties:u,navigationStrategy:(0,y.ZP)(t,n),onSuccess:d,onError:d,onCancel:d}))},x=function(e,t){return 0===Object.keys(m.Z.difference(e,t)).length};const _=l().memo(R,x);var T={setCurrentViewTitle:s.Wk};const k=(0,o.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}),T)((0,i.ZP)(_));var O=n(50600),I=n(91073),M=n(88757),P=n(319),N=n.n(P),z=n(63038),H=n.n(z),j=n(28655),L=n.n(j),B=n(38205),U=n(73183),W=n(35923),V=n(12568),F=n(88601),Z=n(7281),Y=n(24688);const G=function(e){var t=e.when,n=e.message;return(0,a.useEffect)((function(){return t&&Y.Z.activatePreventFromLeaving(),function(){Y.Z.deactivatePreventFromLeaving()}}),[t]),(0,C.jsx)(c.NL,{when:t,message:n})},q=G;var Q,X=B.ZP.div.withConfig({displayName:"StyledEntityDetailAppWrapper"})(Q||(Q=L()(["\n margin: 0;\n background-color: ",";\n padding: 0 0 0 ",";\n overflow: hidden;\n height: 100%;\n"])),F.Z.color("paper"),Z.Z.space(0));const $=function(e){var t=e.currentViewInfo,n=e.history,r=e.match,i=e.intl,o=e.chooseDocument,s=e.dispatchEmittedAction,l=e.setPendingChanges,c=n.location,u=g()(c,"state.defaultValues",[]),d=(0,a.useState)(!1),h=H()(d,2),f=h[0],p=h[1];if((0,a.useEffect)((function(){return function(){return l(!1)}}),[l]),!t)return null;var m,v=t.model,b=t.reverseRelation,w=t.parentKey,E=v.name,S=g()(v,"paths.".concat(b,".multi"),!1),A=[].concat(N()(b&&w?[{id:b,value:S?[w]:w}]:[]),N()(u));return(0,C.jsxs)(X,{children:[(0,C.jsx)(q,{when:f,message:(m="client.entity-browser.detail.confirmTouchedFormLeave",i.formatMessage({id:m}))}),(0,C.jsx)(W.ZP,{entityName:E,formName:E,mode:"create",defaultValues:A,emitAction:function(e){s(e)},navigationStrategy:(0,y.ZP)(n,r),chooseDocument:o,onEntityCreated:function(e){var t=e.id;p(!1),n.push(r.url.replace(/create$/,t))},onTouchedChange:function(e){var t=e.touched;p(t),l(t)},listApp:V.ZP,docsApp:U.default})]})};var J={chooseDocument:I.Z.actions.chooseDocument,dispatchEmittedAction:O.Z.dispatchEmittedAction,setPendingChanges:M.c0};const K=(0,o.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}),J)((0,i.ZP)($));var ee=n(29785),te=n(17563),ne=n(29441),re=n(48926),ie=n.n(re),oe=n(87757),se=n.n(oe),ae=n(81719);function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ue=function(e){var t=e.entityName,n=e.entityKey,r=e.showActions,i=e.noLeftPadding,o=e.openResource,s=e.initialLocation,l=e.sortable,c=(0,a.useState)(null),u=H()(c,2),d=u[0],h=u[1],f=(0,a.useCallback)(ie()(se().mark((function e(){return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ae.Z.simpleRequest("entities/2.0/"+t+"/"+n+"/entitydocs/folder").then((function(e){h(e.body.key)}));case 1:case"end":return e.stop()}}),e)}))),[t,n]);return(0,a.useEffect)((function(){f()}),[f]),d&&(0,C.jsx)(U.default,ce(ce(ce({routerType:"routerless",initialLocation:s,noLeftPadding:i,sortable:l,searchFormType:"none",rootNodes:[{key:d,entityName:"Folder"}],embedded:!0,showActions:r},!1===r?{selectionStyle:"none"}:{}),{},{disableViewPersistor:!0},o?{openResource:o}:{}),{},{scrollBehaviour:"inline"}))};const de=function(e){var t=e.currentViewInfo,n=e.initialLocation;return(0,C.jsx)(ue,{noLeftPadding:!1,entityName:t.parentModel.name,entityKey:t.parentKey,showActions:!0,initialLocation:n})};function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const pe=function(e){var t=e.match,n=e.history,r=e.currentViewInfo,i=e.emitAction,o=e.searchFormCollapsed,s=e.saveUserPreferences;if(!r)return null;var a=te.parse(n.location.search),l=n.location.hash?n.location.hash.substring(1):null;return"Resource"===r.model.name?(0,C.jsx)(de,{currentViewInfo:r,initialLocation:l}):(0,C.jsx)(V.ZP,fe(fe({emitAction:i,limit:25,id:"".concat(r.model.name,"_list"),entityName:r.model.name,formName:a.formName||r.model.name,onRowClick:function(e){var r=e.id;n.push(t.url.replace(/list$/,"")+r)}},r.reverseRelation&&{parent:{key:r.parentKey,reverseRelationName:r.reverseRelation,model:r.parentModel.name}}),{},{showLink:!0,navigationStrategy:(0,y.ZP)(n,t),searchFormPosition:"left",searchFormType:"admin",scrollBehaviour:"inline",store:ne.Z.viewInfoSelector(n.location.pathname).store,onStoreCreate:function(e){ne.Z.persistViewInfo(n.location.pathname,{store:e},r.level)},actionAppComponent:S.Z,tql:a.tql,searchFormCollapsed:o,onSearchFormCollapsedChange:function(e){var t=e.collapsed;s({"admin.list.searchFormCollapsed":t})}}))};var ge={emitAction:function(e){return O.Z.dispatchEmittedAction(e)},saveUserPreferences:ee.RK};const me=(0,o.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname],searchFormCollapsed:g()(e.preferences.userPreferences,"admin.list.searchFormCollapsed",!1)}}),ge)((0,i.ZP)(pe));var ve,be=n(4975);function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ee=B.ZP.div.withConfig({displayName:"StyledEntityDetailAppWrapper"})(ve||(ve=L()(["\n margin: 0;\n background-color: ",";\n padding: 0 0 0 ",";\n overflow: hidden;\n height: 100%;\n"])),F.Z.color("paper"),Z.Z.space(0));const Se=function(e){var t=e.currentViewInfo,n=e.history,r=e.match,i=e.intl,o=e.chooseDocument,s=e.emitAction,l=e.propagateRefresh,c=e.invalidateLastBreadcrumb,u=e.setPendingChanges,d=(0,a.useState)(!1),h=H()(d,2),f=h[0],p=h[1];if((0,a.useEffect)((function(){return function(){return u(!1)}}),[u]),!t||t.pathname!==n.location.pathname)return null;var g=te.parse(location.search).formName,m=t.model.name;return(0,C.jsxs)(Ee,{children:[(0,C.jsx)(q,{when:f,message:function(e){return n.location.pathname!==e.pathname&&(t="client.entity-browser.detail.confirmTouchedFormLeave",i.formatMessage({id:t}));var t}}),(0,C.jsx)(W.ZP,{entityName:m,entityId:t.key,formName:g||m,mode:"update",emitAction:s,onTouchedChange:function(e){var t=e.touched;p(t),u(t)},navigationStrategy:we(we({},(0,y.ZP)(n,r)),{},{navigateToCreateRelative:function(e,t){if(e){var i=(0,b.H)(r.url,1);n.push({pathname:"".concat(i,"/").concat(e,"/create"),state:t})}else{var o=(0,b.H)(r.url,2);n.push({pathname:o+"/create",state:t})}}}),chooseDocument:o,onEntityDeleted:function(){var e=(0,b.H)(r.url,2);n.push(e)},onEntityUpdated:function(){var e=n.location;c(e)},onRefresh:function(){var e=n.location;l(e)},actionAppComponent:S.Z,onSubGridRowClick:function(e){var t=e.id,i=e.relationName,o=(0,b.H)(r.url);n.push("".concat(o,"/").concat(i,"/").concat(t))},listApp:V.ZP,docsApp:U.default})]})};var Ce={chooseDocument:I.Z.actions.chooseDocument,emitAction:function(e){return O.Z.dispatchEmittedAction(e)},propagateRefresh:s.Ld,invalidateLastBreadcrumb:s._m,setPendingChanges:M.c0};const Ae=(0,o.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}),Ce)((0,i.ZP)(Se));var De=n(34206),Re=n(88162),xe={};const _e=function(e){var t=e.currentViewInfo,n=e.history,r=e.selectedRelation,i=e.sortable;return(0,C.jsx)(ue,{entityName:t.model.name,entityKey:t.key,showActions:!1,noLeftPadding:!0,history:n,openResource:function(e){n.push("".concat(r.relationName,"/list#").concat(e))},sortable:i})};var Te=function(e){var t=e.selectedRelation,n=e.currentViewInfo,r=e.match,i=e.history,o=e.emitAction,s="".concat(t.reverseRelationName).concat(t.relationName);return(0,C.jsx)(V.ZP,{id:"preview"+t.reverseRelationName+t.targetEntity,entityName:t.targetEntity,formName:t.targetEntity,parent:{key:n.key,reverseRelationName:t.reverseRelationName,model:n.model.name,relationName:t.relationName},showLink:!0,navigationStrategy:(0,y.ZP)(i,r),onRowClick:function(e){var n=e.id,o=r.url.replace(/detail$/,"");i.push("".concat(o).concat(t.relationName,"/").concat(n))},onNavigateToCreate:function(){var e=(0,b.H)(r.url);i.push(e+"/"+t.relationName+"/create")},searchFormType:"fulltext",selectionStyle:"none",store:ne.Z.viewInfoSelector(i.location.pathname)["store-".concat(s)],onStoreCreate:function(e){ne.Z.persistViewInfo(n.pathname,f()({},"store-".concat(s),e),n.level)},showActions:!1,limit:15,emitAction:o,scrollBehaviour:"inline"},t.reverseRelationName+t.targetEntity)};const ke=l().memo(Te);var Oe,Ie,Me,Pe,Ne,ze,He,je,Le,Be,Ue,We,Ve,Fe,Ze=n(6699),Ye=n(65035),Ge=n(11347),qe=n(84647),Qe=n(69829),Xe=n(30759),$e=B.ZP.div.withConfig({displayName:"StyledRelationsViewWrapper"})(Oe||(Oe=L()(["\n display: ",";\n height: 100%;\n flex-direction: column;\n"])),(function(e){return e.isRightPaneCollapsed?"none":"flex"})),Je=B.ZP.div.withConfig({displayName:"StyledPlaceHolder"})(Ie||(Ie=L()(["\n display: ",";\n flex: 1;\n height: 100%;\n width: 25px;\n background: ",";\n padding-top: ",";\n padding-left: ",";\n align-items: flex-start;\n\n &:hover {\n cursor: pointer;\n }\n"])),(function(e){return e.isRightPaneCollapsed?"flex":"none"}),F.Z.color("paper"),Z.Z.space(-1.5),Z.Z.space(-2.5)),Ke=B.ZP.div.withConfig({displayName:"StyledToggleCollapse"})(Me||(Me=L()(["\n display: flex;\n background-color: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),F.Z.color("paper"),Z.Z.space(-1.5),Z.Z.space(-1.5)),et=(0,B.ZP)(Ye.Z).withConfig({displayName:"StyledToggleCollapseButton"})(Pe||(Pe=L()(["\n font-size: ",";\n padding: 0;\n margin-left: auto;\n\n &:hover,\n ",":hover & {\n background-color: transparent;\n color: ",";\n }\n"])),Z.Z.font(0),Je,F.Z.color("secondaryLight")),tt=B.ZP.div.withConfig({displayName:"StyledPreviewBox"})(Ne||(Ne=L()(["\n background-color: ",";\n padding: ",";\n margin-top: 3px;\n display: flex;\n flex-direction: column;\n flex: 1;\n"])),F.Z.color("paper"),Z.Z.space(-1)),nt=B.ZP.div.withConfig({displayName:"StyledRelationBoxes"})(ze||(ze=L()(["\n background-color: ",";\n padding: ",";\n display: grid;\n grid-template-columns: repeat(auto-fit, 170px);\n grid-gap: ",";\n justify-content: space-between;\n overflow-y: auto;\n align-content: flex-start;\n height: fit-content;\n min-height: 150px;\n max-height: 20%;\n ","\n"])),F.Z.color("paper"),Z.Z.space(-1),Z.Z.space(-2),Ge.C),rt=(0,B.ZP)(Ze.Z).withConfig({displayName:"StyledPreviewLink"})(He||(He=L()(["\n padding-left: ",";\n\n &:nth-child(2) {\n padding-left: 0;\n }\n"])),Z.Z.space(-.5)),it=B.ZP.div.withConfig({displayName:"StyledRelationLinks"})(je||(je=L()(["\n display: none;\n margin-left: auto;\n\n * {\n color: ",";\n padding-left: ",";\n }\n"])),F.Z.color("text"),Z.Z.space(-4.5)),ot=B.ZP.div.withConfig({displayName:"StyledRelationBox"})(Le||(Le=L()(["\n border-radius: ",";\n padding: "," ",";\n display: flex;\n background-color: ",";\n height: fit-content;\n\n &&& {\n * {\n color: ",";\n box-sizing: initial;\n }\n }\n ",";\n\n /* allow hover styles only on non-touch devices */\n ","\n"])),F.Z.radii("button"),Z.Z.space(-2.7),Z.Z.space(-1),(function(e){return e.selected&&F.Z.color("secondary")}),(function(e){return e.selected&&F.Z.color("paper")}),(function(e){return e.selected&&"\n ".concat(it," {\n display: flex;\n }\n ")}),!qe.b&&(0,B.iv)(Be||(Be=L()(["\n &:hover "," {\n display: flex;\n }\n\n && {\n :hover {\n background-color: ",";\n\n * {\n color: ",";\n }\n cursor: pointer;\n }\n }\n\n ",":hover * {\n color: ",";\n }\n "])),it,F.Z.color("secondaryLight"),F.Z.color("paper"),Ze.Z,F.Z.color("secondary"))),st=(0,B.ZP)(Qe.Fe).withConfig({displayName:"StyledRelationLabel"})(Ue||(Ue=L()(["\n && {\n max-width: 110px;\n }\n"]))),at=B.ZP.span.withConfig({displayName:"StyledCountLabel"})(We||(We=L()(["\n ","\n"])),(0,Xe.Z)());const lt=function(e){var t,n,r=e.relation,i=e.history,o=e.match,s=e.relationsInfo,a=e.selectRelation,l=e.selectedRelation,c=e.intl,u=e.entityName,d=r.relationName,h=r.targetEntity,f=r.relationDisplay,p=function(e){return c.formatMessage({id:e})},g=o.url.replace(/(relations|detail)$/,d),m=o.url.replace(/(relations|detail)$/,d)+"/create";return(0,C.jsxs)(ot,{selected:(null==l?void 0:l.relationName)===d,onClick:function(){a(r),i.replace({search:"?relation=".concat(d)}),function(e,t){xe[e]=t}(u,d)},children:[(0,C.jsx)(st,{title:f.label,children:f.label}),(null===(n=s[d])||void 0===n?void 0:n.count)>0?(0,C.jsxs)(at,{children:[" (",s[d].count,")"]}):null,(0,C.jsxs)(it,{children:[(0,C.jsx)(Ze.Z,{"aria-label":p("client.admin.entities.relationsView.relationLinkView"),to:g,children:Ve||(Ve=(0,C.jsx)(Re.Z,{icon:"arrow-right"}))}),(null===(t=s[d])||void 0===t?void 0:t.createPermission)&&"Resource"!==h&&(0,C.jsx)(Ze.Z,{"aria-label":p("client.admin.entities.relationsView.relationLinkCreate"),to:m,children:Fe||(Fe=(0,C.jsx)(Re.Z,{icon:"plus"}))})]})]})};var ct,ut,dt;function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ft=function(e){var t=e.history,n=e.match,r=e.currentViewInfo,i=e.relations,o=e.relationsInfo,s=e.emitAction,c=e.intl,u=e.isRightPaneCollapsed,d=e.toggleCollapse,h=e.selectedRelation,p=e.selectRelation,m=g()(r,"model.name"),v=(0,a.useCallback)((function(){if((null==i?void 0:i.length)>0){var e=te.parse(t.location.search).relation;if(e)p(i.find((function(t){return t.relationName===e})));else{var n=xe[m];p(n?i.find((function(e){return e.relationName===n})):i[0])}}}),[i,m,t.location.search,p]);if((0,a.useEffect)(v,[v]),(0,a.useEffect)((function(){h||v()}),[h,v]),!i||0===i.length||!r)return null;var b,y,w=function(e){return c.formatMessage({id:e})},E=h?"Resource"===h.targetEntity?_e:ke:function(){return ct||(ct=(0,C.jsx)(l().Fragment,{}))},S=i.map((function(t){return(0,C.jsx)(lt,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({relation:t,entityName:m},e),"relation-".concat(t.relationName))}));return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)($e,{isRightPaneCollapsed:u,children:[(0,C.jsx)(Ke,{children:(0,C.jsx)(et,{icon:"chevron-right",onClick:d})}),(0,C.jsx)(nt,{children:S}),h&&(0,C.jsxs)(tt,{children:[(0,C.jsxs)(De.ZP.H4,{children:[h.relationDisplay.label,(0,C.jsx)(rt,{"aria-label":w("client.admin.entities.relationsView.relationLinkView"),to:n.url.replace(/(relations|detail)$/,h.relationName),children:ut||(ut=(0,C.jsx)(Re.Z,{icon:"arrow-right"}))}),(b=h.relationName,(null===(y=o[b])||void 0===y?void 0:y.createPermission)&&"Resource"!==h.targetEntity&&(0,C.jsx)(rt,{"aria-label":w("client.admin.entities.relationsView.relationLinkCreate"),to:n.url.replace(/(relations|detail)$/,h.relationName)+"/create",children:dt||(dt=(0,C.jsx)(Re.Z,{icon:"plus"}))}))]}),(0,C.jsx)(E,{selectedRelation:h,match:n,history:t,currentViewInfo:r,emitAction:s,sortable:!0})]})]}),(0,C.jsx)(Je,{onClick:d,isRightPaneCollapsed:u,children:(0,C.jsx)(et,{icon:"chevron-left",isRightPaneCollapsed:u})})]})},pt=function(e,t){return 0===Object.keys(m.Z.difference(e,t)).length};const gt=l().memo(ft,pt);var mt={emitAction:function(e){return O.Z.dispatchEmittedAction(e)},selectRelation:s.lM};const vt=(0,o.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname],relations:e.entities.path.relations,relationsInfo:e.entities.path.relationsInfo,selectedRelation:e.entities.path.selectedRelation}}),mt)((0,i.ZP)(gt));var bt,yt,wt,Et=B.ZP.div.withConfig({displayName:"StyledDetailViewContainer"})(bt||(bt=L()(["\n display: flex;\n flex-direction: row;\n height: 100%;\n\n .react-bs-container-body {\n height: auto !important;\n }\n"]))),St=B.ZP.div.withConfig({displayName:"StyledDetailViewLeft"})(yt||(yt=L()(["\n flex: 1;\n margin-right: 1rem;\n /* Only show one panel at a time on screens <= 500px */\n display: ",";\n"])),(function(e){var t=e.windowWidth,n=e.isRightPaneCollapsed;return t<=500&&!n&&"none"})),Ct=B.ZP.div.withConfig({displayName:"StyledDetailViewRight"})(wt||(wt=L()(["\n flex: ",";\n"])),(function(e){return e.isRightPaneCollapsed?"0":"1"}));const At=function(e){var t=e.match,n=e.history,r=(e.currentViewInfo,e.relationViewCollapsed),i=e.saveUserPreferences,o=(0,be.K)(r,(function(e){i({"admin.detail.relationViewCollapsed":e})})),s=o.isCollapsed,a=o.toggleCollapse;return(0,C.jsxs)(Et,{children:[(0,C.jsx)(St,{isRightPaneCollapsed:s,windowWidth:window.innerWidth,children:(0,C.jsx)(u.Z.ErrorBoundary,{children:(0,C.jsx)(Ae,{match:t,history:n})})}),(0,C.jsx)(Ct,{isRightPaneCollapsed:s,children:(0,C.jsx)(u.Z.ErrorBoundary,{children:(0,C.jsx)(vt,{match:t,history:n,isRightPaneCollapsed:s,toggleCollapse:a})})})]})};var Dt={saveUserPreferences:ee.RK};const Rt=(0,o.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname],relationViewCollapsed:g()(e.preferences.userPreferences,"admin.detail.relationViewCollapsed",!1)}}),Dt)((0,i.ZP)(At));const xt=function(e){var t,n,r=e.match,i=(t=r.path,n=":relation",t.split(n).length-1);return(0,C.jsxs)(c.rs,{children:[(0,C.jsx)(c.AW,{exact:!0,path:"".concat(r.url),render:function(e){return(0,C.jsx)(c.l_,{to:"".concat(e.match.url.replace(/\/$/,""),"/detail")})}}),(0,C.jsx)(c.AW,{path:"".concat(r.path,"/detail"),component:Rt}),(0,C.jsx)(c.AW,{path:"".concat(r.path,"/edit"),component:Ae}),(0,C.jsx)(c.AW,{path:"".concat(r.path,"/relations"),component:vt}),(0,C.jsx)(c.AW,{path:"".concat(r.path,"/action"),component:k}),(0,C.jsx)(c.AW,{path:"".concat(r.path,"/:relation_").concat(i),component:_t})]})};const _t=function(e){var t=e.match;return(0,C.jsxs)(c.rs,{children:[(0,C.jsx)(c.AW,{exact:!0,path:t.url,render:function(e){return(0,C.jsx)(c.l_,{to:"".concat(e.match.url.replace(/\/$/,""),"/list")})}}),(0,C.jsx)(c.AW,{path:"".concat(t.path,"/action/:id"),component:k}),(0,C.jsx)(c.AW,{path:"".concat(t.path,"/list"),component:me}),(0,C.jsx)(c.AW,{path:"".concat(t.path,"/create"),component:K}),(0,C.jsx)(c.AW,{path:"".concat(t.path,"/:key"),component:xt})]})};var Tt=n(54680);const kt=(0,o.connect)((function(e,t){return{pathPrefix:"/e",breadcrumbsInfo:e.entities.path.breadcrumbsInfo,currentView:e.entities.path.currentViewTitle?{display:e.entities.path.currentViewTitle,title:e.entities.path.currentViewTitle}:null}}),{})((0,i.ZP)(Tt.Z));var Ot=n(44012),It=n(39233);const Mt=function(e){var t=e.currentViewInfo,n="client.admin.entity.errorView.",r="detail"===t.type?"detailTitle":"defaultTitle",i="listDescription";return"detail"===t.type?i="detailDescription":"list"===t.type&&t.error.relationName&&(i="relationDescription"),(0,C.jsx)(It.Z,{title:(0,C.jsx)(Ot.Z,{id:n+r}),message:(0,C.jsx)(Ot.Z,{id:n+i,values:t.error})})};const Pt=(0,o.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}))((0,i.ZP)(Mt));var Nt,zt,Ht,jt,Lt=B.ZP.div.withConfig({displayName:"StyledWrapper"})(Nt||(Nt=L()(["\n display: grid;\n grid-template-rows: auto 1fr;\n grid-template-areas:\n 'breadcrumbs'\n 'content';\n height: 100%;\n width: 100%;\n"]))),Bt=B.ZP.div.withConfig({displayName:"StyledContent"})(zt||(zt=L()(["\n grid-area: content;\n overflow: hidden;\n"]))),Ut=B.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(Ht||(Ht=L()(["\n grid-area: breadcrumbs;\n"])));const Wt=function(e){var t=e.match,n=e.history,r=e.loadCurrentRoute,i=e.currentViewInfo,o=n.location;(0,a.useEffect)((function(){r(o)}),[o,r]);var s=null!=i&&i.error?(0,C.jsx)(Pt,{history:n}):(0,C.jsxs)(c.rs,{children:[(0,C.jsx)(c.AW,{path:"".concat(t.url,"/action/:actionId"),component:k}),(0,C.jsx)(c.AW,{path:"".concat(t.url,"/:entity"),component:_t}),(0,C.jsx)(c.AW,{exact:!0,path:t.url,component:d.Z})]});return(0,C.jsxs)(Lt,{children:[jt||(jt=(0,C.jsx)(u.Z.ErrorBoundary,{children:(0,C.jsx)(Ut,{children:(0,C.jsx)(kt,{})})})),(0,C.jsx)(Bt,{children:s})]})};var Vt={loadCurrentRoute:s.jw};const Ft=(0,o.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}),Vt)((0,i.ZP)(Wt));var Zt,Yt=n(34857),Gt=n(81770);function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xt=(Zt={},f()(Zt,s.p3,(function(e){return Qt(Qt({},e),{},{currentViewInfos:{},breadcrumbsInfo:[]})})),f()(Zt,s.Xk,(function(e,t){var n=t.payload,r=n.location,i=n.currentViewInfo;return Qt(Qt({},e),{},{currentViewInfos:Qt(Qt({},e.currentViewInfos),{},f()({},r,Qt(Qt({},e.currentViewInfos[r]),i)))})})),f()(Zt,s.CM,Gt.Z.singleTransferReducer("breadcrumbsInfo")),f()(Zt,s.PF,(function(e,t){var n=t.payload,r=n.path,i=n.breadcrumbsInfo;return Qt(Qt({},e),{},{breadcrumbsInfo:e.breadcrumbsInfo.map((function(e){return e.path===r?Qt(Qt({},e),i):e}))})})),f()(Zt,s.oO,Gt.Z.singleTransferReducer("relations")),f()(Zt,s.dF,Gt.Z.singleTransferReducer("relationsInfo")),f()(Zt,s.l3,Gt.Z.singleTransferReducer("currentViewTitle")),f()(Zt,s.OJ,Gt.Z.singleTransferReducer("selectedRelation")),Zt),$t={currentViewInfos:{},breadcrumbsInfo:[],relations:null,relationsInfo:{},selectedRelation:null};var Jt=n(57557),Kt=n.n(Jt),en=n(78718),tn=n.n(en),nn=n(35937),rn=n.n(nn),on=n(44759);function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ln=se().mark(bn),cn=se().mark(wn),un=se().mark(En),dn=se().mark(Sn),hn=se().mark(Dn),fn=se().mark(_n),pn=se().mark(Tn),gn=se().mark(kn),mn=function(e){return e.entities.path},vn=/[^/]+\/?[^/]+/g;function bn(){return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yt.$6)([(0,Yt.Fm)(s.hc,yn),(0,Yt.Fm)(s.eZ,Rn),(0,Yt.Fm)(s.Mu,xn)]);case 2:case"end":return e.stop()}}),ln)}function yn(e){var t=e.payload.location;return se().mark((function e(){var n,r,i;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.pathname,e.next=3,(0,Yt.RE)(Sn,n);case 3:if(!((r=e.sent).length>0)){e.next=15;break}return e.next=7,(0,Yt.RE)(wn,n,r);case 7:if("detail"!==(i=e.sent).type||i.error){e.next=11;break}return e.next=11,(0,Yt.RE)(Dn,i.model,i.key);case 11:return e.next=13,(0,Yt.RE)(En,r);case 13:return e.next=15,(0,Yt.RE)(ne.Z.clearPersistedViews,i.level+1);case 15:case"end":return e.stop()}}),e)}))()}function wn(e,t){var n;return se().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Yt.RE)(Cn,e,t);case 2:return n=r.sent,r.next=5,(0,Yt.gz)(s.Hn(e,n));case 5:return r.abrupt("return",n);case 6:case"end":return r.stop()}}),cn)}function En(e){var t;return se().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Yt.RE)(An,e);case 2:return t=n.sent,n.next=5,(0,Yt.gz)(s.rt(t));case 5:return n.abrupt("return",t);case 6:case"end":return n.stop()}}),un)}function Sn(e){var t,n,r,i,o,s,a,l,c,u,d,h,f,p,g,m,v;return se().wrap((function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,(0,Yt.RE)(E,e);case 2:if(t=b.sent,n=[],null!==t){b.next=6;break}return b.abrupt("return",n);case 6:if(!t.entity){b.next=70;break}return b.prev=7,b.next=10,(0,Yt.RE)(ae.Z.fetchModel,t.entity);case 10:r=b.sent,n.push({type:"list",model:r}),b.next=18;break;case 14:return b.prev=14,b.t0=b.catch(7),n.push({type:"list",error:{entityName:t.entity}}),b.abrupt("return",n);case 18:if(!t.key){b.next=67;break}return b.next=21,(0,Yt.RE)(ae.Z.entityExists,r.name,t.key);case 21:if(!b.sent){b.next=29;break}return b.next=25,(0,Yt.RE)(ae.Z.fetchDisplay,r.name,t.key);case 25:i=b.sent,n.push({type:"detail",key:t.key,model:r,display:i}),b.next=31;break;case 29:return n.push({type:"detail",error:{entityName:r.label,key:t.key}}),b.abrupt("return",n);case 31:if(!t.relation){b.next=67;break}o=t.relation.split("/"),s=0;case 34:if(!(s<o.length)){b.next=67;break}if(a=o[s],l=n[n.length-1],s%2!=0){b.next=50;break}if(c=a,u=l.model.paths[c]){b.next=43;break}return n.push({type:"list",error:{relationName:c,entityName:l.model.name}}),b.abrupt("return",n);case 43:return d=u.targetEntity,b.next=46,(0,Yt.RE)(ae.Z.fetchModel,d);case 46:h=b.sent,n.push({type:"list",model:h,relationName:c,parent:l}),b.next=64;break;case 50:return f=a,p=l.model,b.next=54,(0,Yt.RE)(ae.Z.entityExists,p.name,f);case 54:if(!b.sent){b.next=62;break}return b.next=58,(0,Yt.RE)(ae.Z.fetchDisplay,p.name,f);case 58:g=b.sent,n.push({type:"detail",model:p,key:f,display:g,relationName:l.relationName,parent:l.parent}),b.next=64;break;case 62:return n.push({type:"detail",error:{entityName:p.name,key:f}}),b.abrupt("return",n);case 64:s++,b.next=34;break;case 67:"create"===t.view?(m=n[n.length-1],v=n[n.length-2],n.push({type:"create",model:m.model,parent:v,relationName:m.relationName})):t.actionId&&n.push({type:"action",actionId:t.actionId}),b.next=71;break;case 70:t.actionId&&n.push({type:"action",actionId:t.actionId});case 71:return b.abrupt("return",n);case 72:case"end":return b.stop()}}),dn,null,[[7,14]])}var Cn=function(e,t){var n=t[t.length-1],r=n.parent;return an(an({},Kt()(n,["parent"])),{},{pathname:e,level:t.length-1},r&&n.relationName&&{parentKey:r.key,reverseRelation:r.model.paths[n.relationName].reverseRelationName,parentModel:r.model})},An=function(e){var t="";return e.map((function(e){return e.error?{type:"error"}:"action"===e.type?null:(t=(t?t+"/":"")+(e.key?e.key:e.relationName||e.model.name),{type:e.type,display:e.display||e.model.label,path:t+"/"+e.type})})).filter((function(e){return e}))};function Dn(e,t){var n,r;return se().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=rn()(e.paths,(function(e){return e.relationDisplay&&e.relationDisplay.show})),r=Object.keys(n).map((function(e){return tn()(n[e],["relationName","reverseRelationName","targetEntity","relationDisplay.label","relationDisplay.order"])})).sort((function(e,t){return e.relationDisplay.order>t.relationDisplay.order?1:-1})),i.next=4,(0,Yt.gz)(s.lM(null));case 4:return i.next=6,(0,Yt.gz)(s.zB(r));case 6:return i.next=8,(0,Yt.RE)(kn,e.name,t);case 8:case"end":return i.stop()}}),hn)}function Rn(e){var t=e.payload.location;return se().mark((function e(){var n,r,i,o;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.pathname,e.next=3,(0,Yt.Ys)(mn);case 3:if(r=e.sent,i=r.currentViewInfos,"detail"!==(o=i[n]).type||o.error){e.next=11;break}return e.next=9,(0,Yt.Cs)(kn,o.model.name,o.key);case 9:return e.next=11,(0,Yt.gz)(s.lM(null));case 11:case"end":return e.stop()}}),e)}))()}function xn(e){var t=e.payload.location;return se().mark((function e(){var n,r,i,o,a,l,c;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.pathname,e.next=3,(0,Yt.RE)(E,n);case 3:if(null==(r=e.sent)||!r.entity||null==r||!r.key){e.next=28;break}return e.prev=5,e.next=8,(0,Yt.RE)(Tn,r);case 8:if(!(i=e.sent)){e.next=23;break}return o=i.entityName,a=i.key,e.next=13,(0,Yt.RE)(ae.Z.invalidateDisplay,o,a);case 13:return e.next=15,(0,Yt.RE)(ae.Z.fetchDisplay,o,a);case 15:return l=e.sent,e.next=18,(0,Yt.gz)(s.Hn(n,{display:l}));case 18:return e.next=20,(0,Yt.RE)(_n,n);case 20:return c=e.sent,e.next=23,(0,Yt.gz)(s.Ss(c,{display:l}));case 23:e.next=28;break;case 25:e.prev=25,e.t0=e.catch(5),on.Z.logError("breadcrumbs invalidation failed",e.t0);case 28:case"end":return e.stop()}}),e,null,[[5,25]])}))()}function _n(e){var t;return se().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Yt.RE)(E,e);case 2:if(null!==(t=n.sent)&&t.entity){n.next=5;break}return n.abrupt("return","");case 5:return n.abrupt("return",[t.entity,t.key,t.relation,t.view].filter(Boolean).join("/"));case 6:case"end":return n.stop()}}),fn)}function Tn(e){var t,n,r,i,o,s,a,l,c,u;return se().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:if(e&&e.entity&&e.key&&"action"!==e.view){d.next=2;break}return d.abrupt("return",null);case 2:return d.next=4,(0,Yt.RE)(ae.Z.fetchModel,e.entity);case 4:if(t=d.sent,e.relation){d.next=7;break}return d.abrupt("return",{entityName:t.name,key:e.key});case 7:if(!((n=e.relation.match(vn)).length<1)){d.next=10;break}return d.abrupt("return",null);case 10:r=t,i=null,o=0;case 13:if(!(o<n.length)){d.next=25;break}if(s=n[o].split("/"),a=H()(s,2),l=a[0],c=a[1],(u=r.paths[l])&&c){d.next=18;break}return d.abrupt("return",null);case 18:return d.next=20,(0,Yt.RE)(ae.Z.fetchModel,u.targetEntity);case 20:r=d.sent,i={entityName:r.name,key:c};case 22:o++,d.next=13;break;case 25:return d.abrupt("return",i);case 26:case"end":return d.stop()}}),pn)}function kn(e,t){var n,r,i;return se().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n="client/entities/".concat(e,"/").concat(t,"/relations"),o.next=3,(0,Yt.RE)(ae.Z.requestSaga,n);case 3:return r=o.sent,i=r.body.relations,o.next=7,(0,Yt.gz)(s.Fp(i));case 7:case"end":return o.stop()}}),gn)}const On=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$t,t=arguments.length>1?arguments[1]:void 0,n=Xt[t.type];return n?n(e,t):e},In={container:Ft,reducers:{entities:(0,r.UY)({path:On})},sagas:[bn]}},67210:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(74806),i=n(35923),o=n(12568),s=n(73183),a=n(25660),l=n(80722),c=n(20247),u=n(85893);const d=(0,c.U)((0,r.ZP)((function(e){var t=e.path,n=e.context,r=e.onSuccess,c=e.intl,d=e.locale,h=e.emitAction,f=(0,l.Z)(t),p=f?[{id:"rel".concat(f.model),value:f.key}]:[],g=(0,a.Z)(n,"Domain");return(0,u.jsx)(i.ZP,{entityName:"Domain",formName:g,mode:"create",defaultValues:p,locale:d,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Domain/".concat(t)}]}}];r({title:c.formatMessage({id:"client.docs-browser.createDomainSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||h(e)},listApp:o.ZP,docsApp:s.default})})))},36340:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(74806),i=n(35923),o=n(12568),s=n(73183),a=n(25660),l=n(80722),c=n(20247),u=n(85893);const d=(0,c.U)((0,r.ZP)((function(e){var t=e.context,n=e.path,r=e.onSuccess,c=e.intl,d=e.locale,h=e.emitAction,f=(0,l.Z)(n),p=f?[{id:"rel".concat(f.model),value:f.key}]:[],g=(0,a.Z)(t,"Folder");return(0,u.jsx)(i.ZP,{entityName:"Folder",formName:g,mode:"create",defaultValues:p,locale:d,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Folder/".concat(t)}]}}];r({title:c.formatMessage({id:"client.docs-browser.createFolderSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||h(e)},listApp:o.ZP,docsApp:s.default})})))},96954:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(59713),i=n.n(r),o=n(78788),s=n(85893);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const c=function(e){return(0,s.jsx)(o.Z,l(l({},e),{},{customDeleteEndpoint:"documents/delete"}))}},90100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(63038),i=n.n(r),o=n(35923),s=n(12568),a=n(73183),l=n(25660),c=n(20247),u=n(85893);const d=(0,c.U)((function(e){var t=e.selection,n=e.onSuccess,r=e.onCancel,c=e.locale,d=e.context,h=e.emitAction,f=e.navigate,p=t.ids[0].split("/"),g=i()(p,2),m=g[0],v=g[1];"Resource"===m&&(f("/docs/doc/".concat(v,"/detail")),r());var b=(0,l.Z)(d,m);return(0,u.jsx)(o.ZP,{entityName:m,formName:b,entityId:v,mode:"update",locale:c,onEntityUpdated:function(){var e=[{type:"entity-update-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},onEntityDeleted:function(){var e=[{type:"entity-delete-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||h(e)},listApp:s.ZP,docsApp:a.default})}))},4505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r,i,o,s=n(74806),a=n(50558),l=n(30081),c=n(20247),u=n(63038),d=n.n(u),h=n(28655),f=n.n(h),p=n(18446),g=n.n(p),m=n(1024),v=n(44012),b=n(38205),y=n(36589),w=n(50258),E=n(65035),S=n(73183),C=n(80722),A=n(85893),D=b.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(r||(r=f()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),y.Z),R=(0,b.ZP)(w.Z).withConfig({displayName:"StyledLoadMask"})(i||(i=f()(["\n height: auto;\n"]))),x=function(e,t){return null!==e?"Move_docs_list_item":null!==t?"Move_root_docs_list_item_specific":"Move_root_docs_list_item"},_={initialize:l.j2,moveElements:l.w6};const T=(0,c.U)((0,a.connect)((function(e){return{isWaiting:e.docs.move.isWaiting,domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,businessUnit:e.input.businessUnit,locale:e.intl.locale}}),_)((0,s.ZP)((function(e){var t=e.selection,n=e.onSuccess,r=e.onError,i=e.path,s=e.initialize,a=e.moveElements,l=e.isWaiting,c=e.domainTypes,u=e.rootNodes,h=e.businessUnit,f=e.locale,p=e.emitAction,b=(0,C.Z)(i),y={model:"Docs_list_item",key:"".concat(b.model,"/").concat(b.key)},w=(0,m.useState)(y),_=d()(w,2),T=_[0],k=_[1];(0,m.useEffect)((function(){s(t,n,r)}),[]);var O=function(e,t){switch(e){case"Domain":return"/docs/domain/".concat(t,"/list");case"Folder":return"/docs/folder/".concat(t,"/list");case"Resource":return;default:throw new Error("Unexpected model: ".concat(e))}};return(0,A.jsxs)(R,{required:[!l],children:[(0,A.jsx)(S.default,{routerType:"routerless",initialLocation:function(){if(null===T)return null;var e=T.key.split("/"),t=d()(e,2),n=t[0],r=t[1];return O(n,r)}(),listLimit:10,selectionStyle:"none",searchFormType:"none",disableViewPersistor:!0,getListFormName:x,onListParentChange:k,getCustomLocation:O,navigationStrategy:{},embedded:!0,emitAction:p,noLeftPadding:!0,domainTypes:c,rootNodes:u,businessUnit:h,sortable:!1,scrollBehaviour:"none",locale:f}),(0,A.jsx)(D,{children:(0,A.jsx)(E.Z,{onClick:function(){return a(T.key,t.ids)},look:"raised",ink:"primary",disabled:null===T||g()(T,y),children:o||(o=(0,A.jsx)(v.Z,{id:"client.actions.dms-move.button"}))})})]})}))))},82445:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(59713),i=n.n(r),o=n(35923),s=n(12568),a=n(73183),l=n(85893);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const d=function(e){return(0,l.jsx)(o.ZP,u(u({},e),{},{listApp:s.ZP,docsApp:a.default}))}},25660:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return e.detailFormNames&&e.detailFormNames[t]?e.detailFormNames[t]:"Dms".concat(t)}},86461:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(19013),i=n(91857),o=n(13882);function s(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t),s=n.getTime()-i.getTime();return s<0?-1:s>0?1:s}function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t),l=s(n,a),c=Math.abs((0,i.default)(n,a));n.setFullYear(1584),a.setFullYear(1584);var u=s(n,a)===-l,d=l*(c-Number(u));return 0===d?0:d}},67092:(e,t)=>{"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},88536:(e,t,n)=>{"use strict";t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=a(n(14149)),o=a(n(54545)),s=n(3074);function a(e){return e&&e.__esModule?e:{default:e}}t.createLocation=function(e,t,n,o){var a=void 0;"string"==typeof e?(a=(0,s.parsePath)(e)).state=t:(void 0===(a=r({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=(0,i.default)(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a},t.locationsAreEqual=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,o.default)(e.state,t.state)}},3074:(e,t)=>{"use strict";t.__esModule=!0;t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e};var n=t.hasBasename=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};t.stripBasename=function(e,t){return n(e,t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},t.createPath=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}},52540:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=u(n(30670)),o=u(n(41143)),s=n(88536),a=n(3074),l=u(n(3405)),c=n(67092);function u(e){return e&&e.__esModule?e:{default:e}}var d="hashchange",h={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+(0,a.stripLeadingSlash)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:a.stripLeadingSlash,decodePath:a.addLeadingSlash},slash:{encodePath:a.addLeadingSlash,decodePath:a.addLeadingSlash}},f=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},p=function(e){return window.location.hash=e},g=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)};t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.default)(c.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,c.supportsGoWithoutReloadUsingHash)(),u=e.getUserConfirmation,m=void 0===u?c.getConfirmation:u,v=e.hashType,b=void 0===v?"slash":v,y=e.basename?(0,a.stripTrailingSlash)((0,a.addLeadingSlash)(e.basename)):"",w=h[b],E=w.encodePath,S=w.decodePath,C=function(){var e=S(f());return(0,i.default)(!y||(0,a.hasBasename)(e,y),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+y+'".'),y&&(e=(0,a.stripBasename)(e,y)),(0,s.createLocation)(e)},A=(0,l.default)(),D=function(e){r(Y,e),Y.length=t.length,A.notifyListeners(Y.location,Y.action)},R=!1,x=null,_=function(){var e=f(),t=E(e);if(e!==t)g(t);else{var n=C(),r=Y.location;if(!R&&(0,s.locationsAreEqual)(r,n))return;if(x===(0,a.createPath)(n))return;x=null,T(n)}},T=function(e){if(R)R=!1,D();else{A.confirmTransitionTo(e,"POP",m,(function(t){t?D({action:"POP",location:e}):k(e)}))}},k=function(e){var t=Y.location,n=P.lastIndexOf((0,a.createPath)(t));-1===n&&(n=0);var r=P.lastIndexOf((0,a.createPath)(e));-1===r&&(r=0);var i=n-r;i&&(R=!0,j(i))},O=f(),I=E(O);O!==I&&g(I);var M=C(),P=[(0,a.createPath)(M)],N=function(e){return"#"+E(y+(0,a.createPath)(e))},z=function(e,t){(0,i.default)(void 0===t,"Hash history cannot push state; it is ignored");var n="PUSH",r=(0,s.createLocation)(e,void 0,void 0,Y.location);A.confirmTransitionTo(r,n,m,(function(e){if(e){var t=(0,a.createPath)(r),o=E(y+t);if(f()!==o){x=t,p(o);var s=P.lastIndexOf((0,a.createPath)(Y.location)),l=P.slice(0,-1===s?0:s+1);l.push(t),P=l,D({action:n,location:r})}else(0,i.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),D()}}))},H=function(e,t){(0,i.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n="REPLACE",r=(0,s.createLocation)(e,void 0,void 0,Y.location);A.confirmTransitionTo(r,n,m,(function(e){if(e){var t=(0,a.createPath)(r),i=E(y+t);f()!==i&&(x=t,g(i));var o=P.indexOf((0,a.createPath)(Y.location));-1!==o&&(P[o]=t),D({action:n,location:r})}}))},j=function(e){(0,i.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},L=function(){return j(-1)},B=function(){return j(1)},U=0,W=function(e){1===(U+=e)?(0,c.addEventListener)(window,d,_):0===U&&(0,c.removeEventListener)(window,d,_)},V=!1,F=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=A.setPrompt(e);return V||(W(1),V=!0),function(){return V&&(V=!1,W(-1)),t()}},Z=function(e){var t=A.appendListener(e);return W(1),function(){W(-1),t()}},Y={length:t.length,action:"POP",location:M,createHref:N,push:z,replace:H,go:j,goBack:L,goForward:B,block:F,listen:Z};return Y}},3405:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=n(30670),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(){var e=null,t=[];return{setPrompt:function(t){return(0,o.default)(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var s="function"==typeof e?e(t,n):e;"string"==typeof s?"function"==typeof r?r(s,i):((0,o.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==s)}else i(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}},47556:(e,t,n)=>{var r=n(88668),i=n(47443),o=n(1196),s=n(29932),a=n(7518),l=n(74757),c=Math.min;e.exports=function(e,t,n){for(var u=n?o:i,d=e[0].length,h=e.length,f=h,p=Array(h),g=1/0,m=[];f--;){var v=e[f];f&&t&&(v=s(v,a(t))),g=c(v.length,g),p[f]=!n&&(t||d>=120&&v.length>=120)?new r(f&&v):void 0}v=e[0];var b=-1,y=p[0];e:for(;++b<d&&m.length<g;){var w=v[b],E=t?t(w):w;if(w=n||0!==w?w:0,!(y?l(y,E):u(m,E,n))){for(f=h;--f;){var S=p[f];if(!(S?l(S,E):u(e[f],E,n)))continue e}y&&y.push(E),m.push(w)}}return m}},24387:(e,t,n)=>{var r=n(29246);e.exports=function(e){return r(e)?e:[]}},71843:(e,t,n)=>{var r=n(29932),i=n(47556),o=n(67206),s=n(5976),a=n(24387),l=n(10928),c=s((function(e){var t=l(e),n=r(e,a);return t===l(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?i(n,o(t,2)):[]}));e.exports=c},31921:(e,t,n)=>{var r=n(10611);e.exports=function(e,t,n,i){return i="function"==typeof i?i:void 0,null==e?e:r(e,t,n,i)}},77043:(e,t,n)=>{var r=n(21078),i=n(67206),o=n(5976),s=n(45652),a=n(29246),l=n(10928),c=o((function(e){var t=l(e);return a(t)&&(t=void 0),s(r(e,1,a,!0),i(t,2))}));e.exports=c},59748:(e,t,n)=>{"use strict";n.d(t,{jz:()=>P});var r,i,o,s=n(6400),a=[],l=[],c=s.YM.__b,u=s.YM.__r,d=s.YM.diffed,h=s.YM.__c,f=s.YM.unmount;function p(){for(var e;e=a.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(v),e.__H.__h.forEach(b),e.__H.__h=[]}catch(t){e.__H.__h=[],s.YM.__e(t,e.__v)}}s.YM.__b=function(e){r=null,c&&c(e)},s.YM.__r=function(e){u&&u(e),0;var t=(r=e.__c).__H;t&&(i===r?(t.__h=[],r.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=l,e.__N=e.i=void 0}))):(t.__h.forEach(v),t.__h.forEach(b),t.__h=[])),i=r},s.YM.diffed=function(e){d&&d(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==a.push(t)&&o===s.YM.requestAnimationFrame||((o=s.YM.requestAnimationFrame)||m)(p)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==l&&(e.__=e.__V),e.i=void 0,e.__V=l}))),i=r=null},s.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(v),e.__h=e.__h.filter((function(e){return!e.__||b(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],s.YM.__e(n,e.__v)}})),h&&h(e,t)},s.YM.unmount=function(e){f&&f(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{v(e)}catch(e){t=e}})),n.__H=void 0,t&&s.YM.__e(t,n.__v))};var g="function"==typeof requestAnimationFrame;function m(e){var t,n=function(){clearTimeout(r),g&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);g&&(t=requestAnimationFrame(n))}function v(e){var t=r,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),r=t}function b(e){var t=r;e.__c=e.__(),r=t}function y(e,t){for(var n in t)e[n]=t[n];return e}function w(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function E(e){this.props=e}(E.prototype=new s.wA).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(e,t){return w(this.props,e)||w(this.state,t)};var S=s.YM.__b;s.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 C=function(e,t){return null==e?null:(0,s.bR)((0,s.bR)(e).map(t))},A=(s.bR,s.YM.__e);s.YM.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);A(e,t,n,r)};var D=s.YM.unmount;function R(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=y({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return R(e,t,n)}))),e}function x(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return x(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 _(){this.__u=0,this.t=null,this.__b=null}function T(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function k(){this.u=null,this.o=null}s.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),D&&D(e)},(_.prototype=new s.wA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=T(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=x(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},_.prototype.componentWillUnmount=function(){this.t=[]},_.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=R(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&(0,s.az)(s.HY,null,e.fallback);return i&&(i.__h=null),[(0,s.az)(s.HY,null,t.__a?null:e.children),i]};var O=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 I(e){return this.getChildContext=function(){return e.context},e.children}function M(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,s.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,s.sY)((0,s.az)(I,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function P(e,t){var n=(0,s.az)(M,{__v:e,i:t});return n.containerInfo=t,n}(k.prototype=new s.wA).__a=function(e){var t=this,n=T(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),O(t,e,r)):i()};n?n(o):o()}},k.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,s.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){O(e,n,t)}))};var N="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,z=/^(?: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]/,H="undefined"!=typeof document,j=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};s.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(s.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 L=s.YM.event;function B(){}function U(){return this.cancelBubble}function W(){return this.defaultPrevented}s.YM.event=function(e){return L&&(e=L(e)),e.persist=B,e.isPropagationStopped=U,e.isDefaultPrevented=W,e.nativeEvent=e};var V={configurable:!0,get:function(){return this.class}},F=s.YM.vnode;s.YM.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var o in r={},n){var a=n[o];H&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in n&&null==a||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===a?a="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!j(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&z.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),r[o]&&(o="oninputCapture")),r[o]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,s.bR)(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=(0,s.bR)(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(V.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",V))}e.$$typeof=N,F&&F(e)};var Z=s.YM.__r;s.YM.__r=function(e){Z&&Z(e),e.__c};s.HY;s.az,s.kr,s.Vf,s.HY,s.wA},6400:(e,t,n)=>{"use strict";n.d(t,{HY:()=>v,Tm:()=>L,Vf:()=>m,YM:()=>i,ZB:()=>j,az:()=>p,bR:()=>D,kr:()=>B,sY:()=>H,wA:()=>b});var r,i,o,s,a,l,c={},u=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(e,t){for(var n in t)e[n]=t[n];return e}function f(e){var t=e.parentNode;t&&t.removeChild(e)}function p(e,t,n){var i,o,s,a={};for(s in t)"key"==s?i=t[s]:"ref"==s?o=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return g(e,a,i,o,null)}function g(e,t,n,r,s){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++o:s};return null==s&&null!=i.vnode&&i.vnode(a),a}function m(){return{current:null}}function v(e){return e.children}function b(e,t){this.props=e,this.context=t}function y(e,t){if(null==t)return e.__?y(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?y(e):null}function w(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 w(e)}}function E(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!S.__r++||a!==i.debounceRendering)&&((a=i.debounceRendering)||setTimeout)(S)}function S(){for(var e;S.__r=s.length;)e=s.sort((function(e,t){return e.__v.__b-t.__v.__b})),s=[],e.some((function(e){var t,n,r,i,o,s;e.__d&&(o=(i=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=h({},i)).__v=i.__v+1,O(s,i,r,t.__n,void 0!==s.ownerSVGElement,null!=i.__h?[o]:null,n,null==o?y(i):o,i.__h),I(n,i),i.__e!=o&&w(i)))}))}function C(e,t,n,r,i,o,s,a,l,d){var h,f,p,m,b,w,E,S=r&&r.__k||u,C=S.length;for(n.__k=[],h=0;h<t.length;h++)if(null!=(m=n.__k[h]=null==(m=t[h])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?g(null,m,null,null,m):Array.isArray(m)?g(v,{children:m},null,null,null):m.__b>0?g(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)){if(m.__=n,m.__b=n.__b+1,null===(p=S[h])||p&&m.key==p.key&&m.type===p.type)S[h]=void 0;else for(f=0;f<C;f++){if((p=S[f])&&m.key==p.key&&m.type===p.type){S[f]=void 0;break}p=null}O(e,m,p=p||c,i,o,s,a,l,d),b=m.__e,(f=m.ref)&&p.ref!=f&&(E||(E=[]),p.ref&&E.push(p.ref,null,m),E.push(f,m.__c||b,m)),null!=b?(null==w&&(w=b),"function"==typeof m.type&&m.__k===p.__k?m.__d=l=A(m,l,e):l=R(e,m,p,S,b,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=y(p))}for(n.__e=w,h=C;h--;)null!=S[h]&&N(S[h],S[h]);if(E)for(h=0;h<E.length;h++)P(E[h],E[++h],E[++h])}function A(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t="function"==typeof r.type?A(r,t,n):R(n,r,r,i,r.__e,t));return t}function D(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){D(e,t)})):t.push(e)),t}function R(e,t,n,r,i,o){var s,a,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||i!=o||null==i.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(i),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==i)break e;e.insertBefore(i,o),s=o}return void 0!==s?s:i.nextSibling}function x(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function _(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||x(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||x(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?k:T,o):e.removeEventListener(t,o?k:T,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("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 T(e){this.l[e.type+!1](i.event?i.event(e):e)}function k(e){this.l[e.type+!0](i.event?i.event(e):e)}function O(e,t,n,r,o,s,a,l,c){var u,d,f,p,g,m,y,w,E,S,A,D,R,x,_,T=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,l=t.__e=n.__e,t.__h=null,s=[l]),(u=i.__b)&&u(t);try{e:if("function"==typeof T){if(w=t.props,E=(u=T.contextType)&&r[u.__c],S=u?E?E.props.value:u.__:r,n.__c?y=(d=t.__c=n.__c).__=d.__E:("prototype"in T&&T.prototype.render?t.__c=d=new T(w,S):(t.__c=d=new b(w,S),d.constructor=T,d.render=z),E&&E.sub(d),d.props=w,d.state||(d.state={}),d.context=S,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=T.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=h({},d.__s)),h(d.__s,T.getDerivedStateFromProps(w,d.__s))),p=d.props,g=d.state,f)null==T.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==T.getDerivedStateFromProps&&w!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(w,S),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(w,d.__s,S)||t.__v===n.__v){for(d.props=w,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),A=0;A<d._sb.length;A++)d.__h.push(d._sb[A]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(w,d.__s,S),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,g,m)}))}if(d.context=S,d.props=w,d.__v=t,d.__P=e,D=i.__r,R=0,"prototype"in T&&T.prototype.render){for(d.state=d.__s,d.__d=!1,D&&D(t),u=d.render(d.props,d.state,d.context),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[]}else do{d.__d=!1,D&&D(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++R<25);d.state=d.__s,null!=d.getChildContext&&(r=h(h({},r),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(p,g)),_=null!=u&&u.type===v&&null==u.key?u.props.children:u,C(e,Array.isArray(_)?_:[_],t,n,r,o,s,a,l,c),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),y&&(d.__E=d.__=null),d.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=M(n.__e,t,n,r,o,s,a,c);(u=i.diffed)&&u(t)}catch(e){t.__v=null,(c||null!=s)&&(t.__e=l,t.__h=!!c,s[s.indexOf(l)]=null),i.__e(e,t,n)}}function I(e,t){i.__c&&i.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){i.__e(e,t.__v)}}))}function M(e,t,n,i,o,s,a,l){var u,d,h,p=n.props,g=t.props,m=t.type,v=0;if("svg"===m&&(o=!0),null!=s)for(;v<s.length;v++)if((u=s[v])&&"setAttribute"in u==!!m&&(m?u.localName===m:3===u.nodeType)){e=u,s[v]=null;break}if(null==e){if(null===m)return document.createTextNode(g);e=o?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,g.is&&g),s=null,l=!1}if(null===m)p===g||l&&e.data===g||(e.data=g);else{if(s=s&&r.call(e.childNodes),d=(p=n.props||c).dangerouslySetInnerHTML,h=g.dangerouslySetInnerHTML,!l){if(null!=s)for(p={},v=0;v<e.attributes.length;v++)p[e.attributes[v].name]=e.attributes[v].value;(h||d)&&(h&&(d&&h.__html==d.__html||h.__html===e.innerHTML)||(e.innerHTML=h&&h.__html||""))}if(function(e,t,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in t||_(e,o,null,n[o],r);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||_(e,o,t[o],n[o],r)}(e,g,p,o,l),h)t.__k=[];else if(v=t.props.children,C(e,Array.isArray(v)?v:[v],t,n,i,o&&"foreignObject"!==m,s,a,s?s[0]:n.__k&&y(n,0),l),null!=s)for(v=s.length;v--;)null!=s[v]&&f(s[v]);l||("value"in g&&void 0!==(v=g.value)&&(v!==e.value||"progress"===m&&!v||"option"===m&&v!==p.value)&&_(e,"value",v,p.value,!1),"checked"in g&&void 0!==(v=g.checked)&&v!==e.checked&&_(e,"checked",v,p.checked,!1))}return e}function P(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){i.__e(e,n)}}function N(e,t,n){var r,o;if(i.unmount&&i.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||P(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){i.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&N(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||f(e.__e),e.__=e.__e=e.__d=void 0}function z(e,t,n){return this.constructor(e,n)}function H(e,t,n){var o,s,a;i.__&&i.__(e,t),s=(o="function"==typeof n)?null:n&&n.__k||t.__k,a=[],O(t,e=(!o&&n||t).__k=p(v,null,[e]),s||c,c,void 0!==t.ownerSVGElement,!o&&n?[n]:s?null:t.firstChild?r.call(t.childNodes):null,a,!o&&n?n:s?s.__e:t.firstChild,o),I(a,e)}function j(e,t){H(e,t,j)}function L(e,t,n){var i,o,s,a=h({},e.props);for(s in t)"key"==s?i=t[s]:"ref"==s?o=t[s]:a[s]=t[s];return arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),g(e.type,a,i||e.key,o||e.ref,null)}function B(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(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}r=u.slice,i={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(t){e=t}throw e}},o=0,b.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},n),this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),E(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},b.prototype.render=v,s=[],S.__r=0,l=0},44049:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(14892);const i=(o=r.Z,s=o.getIn,function(e,t){return function(n){var r=t||function(e){return s(e,"form")};return s(r(n),e+".initial")}});var o,s},17431:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(38636),i=n(20902),o=n(17920);o.bJ.COLLAPSIBLE_WIDTH_THRESHOLD=1200;let s=[],a=[];function l(){let e=(0,o.aN)(document.body,".fc-scroller-harness > .fc-scroller"),t=e.map((e=>{let t=window.getComputedStyle(e);return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,overflowX:t.overflowX,overflowY:t.overflowY,marginBottom:t.marginBottom}}));for(let e of s)e.emitter.trigger("_beforeprint");(0,o.ab)((()=>{!function(e,t){e.forEach(((e,n)=>{e.style.overflowX="visible",e.style.overflowY="visible",e.style.marginBottom="",e.style.left=-t[n].scrollLeft+"px"}))}(e,t),a.push((()=>function(e,t){e.forEach(((e,n)=>{let r=t[n];e.style.overflowX=r.overflowX,e.style.overflowY=r.overflowY,e.style.marginBottom=r.marginBottom,e.style.left="",e.scrollLeft=r.scrollLeft,e.scrollTop=r.scrollTop}))}(e,t))),a.push(function(){let e=(0,o.aN)(document.body,".fc-scrollgrid");return e.forEach(u),()=>e.forEach(d)}())}))}function c(){for(let e of s)e.emitter.trigger("_afterprint");(0,o.ab)((()=>{for(;a.length;)a.shift()()}))}function u(e){let t=e.getBoundingClientRect().width;(!e.classList.contains("fc-scrollgrid-collapsible")||t<o.bJ.COLLAPSIBLE_WIDTH_THRESHOLD)&&(e.style.width=t+"px")}function d(e){e.style.width=""}(0,o.i)(".fc .fc-event,.fc .fc-scrollgrid table tr{-moz-column-break-inside:avoid;break-inside:avoid}.fc-media-print{display:block;max-width:100%}.fc-media-print .fc-bg-event,.fc-media-print .fc-non-business,.fc-media-print .fc-timegrid-axis-chunk,.fc-media-print .fc-timegrid-slots,.fc-media-print .fc-timeline-slots{display:none}.fc-media-print .fc-h-event,.fc-media-print .fc-toolbar button,.fc-media-print .fc-v-event{background:#fff!important;color:#000!important}.fc-media-print .fc-event,.fc-media-print .fc-event-main{color:#000!important}.fc-media-print .fc-timegrid-event{margin:.5em 0}");var h=(0,r.rx)({name:"@fullcalendar/adaptive",premiumReleaseDate:"2023-02-07",deps:[i.Z],contextInit:function(e){s.length||(window.addEventListener("beforeprint",l),window.addEventListener("afterprint",c)),s.push(e),e.calendarApi.on("_unmount",(()=>{(0,o.aC)(s,e),s.length||(window.removeEventListener("beforeprint",l),window.removeEventListener("afterprint",c))}))}})},38636:(e,t,n)=>{"use strict";n.d(t,{f:()=>se,rx:()=>d});var r=n(17920),i=n(6400);n(59748);(0,r.i)(':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-unselectable{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:none;user-select:none}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button::-moz-focus-inner{border-style:none;padding:0}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}');const o=[],s={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"},a=Object.assign(Object.assign({},s),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":`This ${e}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function l(e){let t=e.length>0?e[0].code:"en",n=o.concat(e),r={en:a};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function c(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){let n=[].concat(e||[]),r=function(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}(n,t)||a;return u(e,n,r)}(e,t):u(e.code,[e.code],e)}function u(e,t,n){let i=(0,r.m)([s,n],["buttonText"]);delete i.code;let{week:o}=i;return delete i.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:i}}function d(e){return{id:(0,r.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,o)=>(e&&(0,r.a)(i,t)&&(0,r.a)(o,n)||(e=function(e,t){let n={},r={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 i(e){for(let s of e){const e=s.name,a=n[e];void 0===a?(n[e]=s.id,i(s.deps),o=s,r={premiumReleaseDate:f((t=r).premiumReleaseDate,o.premiumReleaseDate),reducers:t.reducers.concat(o.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(o.isLoadingFuncs),contextInit:t.contextInit.concat(o.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),o.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(o.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),o.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(o.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(o.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(o.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(o.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(o.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(o.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),o.views),viewPropsTransformers:t.viewPropsTransformers.concat(o.viewPropsTransformers),isPropsValid:o.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(o.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(o.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(o.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(o.calendarInteractions),componentInteractions:t.componentInteractions.concat(o.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),o.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(o.eventSourceDefs),cmdFormatter:o.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(o.recurringTypes),namedTimeZonedImpl:o.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||o.initialView,elementDraggingImpl:t.elementDraggingImpl||o.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),o.optionChangeHandlers),scrollGridImpl:o.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),o.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),o.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),o.propSetHandlers)}):a!==s.id&&console.warn(`Duplicate plugin '${e}'`)}var t,o}return e&&i(e),i(t),r}(i,o)),t=i,n=o,e)}function f(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class p extends r.T{}function g(e,t,n,r){if(t[e])return t[e];let i=function(e,t,n,r){let i=n[e],o=r[e],s=e=>i&&null!==i[e]?i[e]:o&&null!==o[e]?o[e]:null,a=s("component"),l=s("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=g(l,t,n,r)}!a&&c&&(a=c.component);if(!a)return null;return{type:e,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),o?o.rawOptions:{})}}(e,t,n,r);return i&&(t[e]=i),i}function m(e){return(0,r.b)(e,v)}function v(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;var o;return t.content&&(o=t,n=e=>(0,i.az)(r.V.Consumer,null,(t=>(0,i.az)(r.C,{elTag:"div",elClasses:(0,r.c)(t.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:t.options.nextDayThreshold}),generatorName:void 0,customGenerator:o.content,classNameGenerator:o.classNames,didMount:o.didMount,willUnmount:o.willUnmount})))),{superType:t.type,component:n,rawOptions:t}}function b(e,t,n,i){let o=m(e),s=m(t.views),a=function(e,t){let n,r={};for(n in e)g(n,r,e,t);for(n in t)g(n,r,e,t);return r}(o,s);return(0,r.b)(a,(e=>function(e,t,n,i,o){let s=e.overrides.duration||e.defaults.duration||i.duration||n.duration,a=null,l="",c="",u={};if(s&&(a=function(e){let t=JSON.stringify(e),n=y[t];void 0===n&&(n=(0,r.e)(e),y[t]=n);return n}(s),a)){let e=(0,r.d)(a);l=e.unit,1===e.value&&(c=l,u=t[l]?t[l].rawOptions:{})}let d=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[c]?n[c]:null},h=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[c]?n[c]:null};return{type:e.type,component:e.component,duration:a,durationUnit:l,singleUnit:c,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},u),e.overrides),buttonTextOverride:d(i)||d(n)||e.overrides.buttonText,buttonTextDefault:d(o)||e.defaults.buttonText||d(r.B)||e.type,buttonTitleOverride:h(i)||h(n)||e.overrides.buttonHint,buttonTitleDefault:h(o)||e.defaults.buttonHint||h(r.B)}}(e,s,t,n,i)))}p.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},p.prototype.baseIconClass="fc-icon",p.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"},p.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},p.prototype.iconOverrideOption="buttonIcons",p.prototype.iconOverrideCustomButtonOption="icon",p.prototype.iconOverridePrefix="fc-icon-";let y={};function w(e,t,n){let i=t?t.activeRange:null;return C({},function(e,t){let n=(0,r.j)(t),i=[].concat(e.eventSources||[]),o=[];e.initialEvents&&i.unshift(e.initialEvents);e.events&&i.unshift(e.events);for(let e of i){let i=(0,r.p)(e,t,n);i&&o.push(i)}return o}(e,n),i,n)}function E(e,t,n,i){let o=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return C(e,t.sources,o,i);case"REMOVE_EVENT_SOURCE":return s=e,a=t.sourceId,(0,r.h)(s,(e=>e.sourceId!==a));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?A(e,o,i):e;case"FETCH_EVENT_SOURCES":return D(e,t.sourceIds?(0,r.f)(t.sourceIds):x(e,i),o,t.isRefetch||!1,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){let i=e[t];if(i&&n===i.latestFetchId)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})});return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var s,a}function S(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function C(e,t,n,r){let i={};for(let e of t)i[e.sourceId]=e;return n&&(i=A(i,n,r)),Object.assign(Object.assign({},e),i)}function A(e,t,n){return D(e,(0,r.h)(e,(e=>function(e,t,n){if(!_(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 D(e,t,n,r,i){let o={};for(let s in e){let a=e[s];t[s]?o[s]=R(a,n,r,i):o[s]=a}return o}function R(e,t,n,i){let{options:o,calendarApi:s}=i,a=i.pluginHooks.eventSourceDefs[e.sourceDefId],l=(0,r.g)();return a.fetch({eventSource:e,range:t,isRefetch:n,context:i},(n=>{let{rawEvents:r}=n;o.eventSourceSuccess&&(r=o.eventSourceSuccess.call(s,r,n.response)||r),e.success&&(r=e.success.call(s,r,n.response)||r),i.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:l,fetchRange:t,rawEvents:r})}),(n=>{let r=!1;o.eventSourceFailure&&(o.eventSourceFailure.call(s,n),r=!0),e.failure&&(e.failure(n),r=!0),r||console.warn(n.message,n),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:l,fetchRange:t,error:n})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:l})}function x(e,t){return(0,r.h)(e,(e=>_(e,t)))}function _(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function T(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function k(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function O(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 I(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 M(e,t,n,r,i){return{header:e.headerToolbar?P(e.headerToolbar,e,t,n,r,i):null,footer:e.footerToolbar?P(e.footerToolbar,e,t,n,r,i):null}}function P(e,t,n,r,i,o){let s={},a=[],l=!1;for(let c in e){let u=N(e[c],t,n,r,i,o);s[c]=u.widgets,a.push(...u.viewsWithButtons),l=l||u.hasTitle}return{sectionWidgets:s,viewsWithButtons:a,hasTitle:l}}function N(e,t,n,i,o,s){let a="rtl"===t.direction,l=t.customButtons||{},c=n.buttonText||{},u=t.buttonText||{},d=n.buttonHints||{},h=t.buttonHints||{},f=e?e.split(" "):[],p=[],g=!1;return{widgets:f.map((e=>e.split(",").map((e=>{if("title"===e)return g=!0,{buttonName:e};let n,f,m,v,b,y;if(n=l[e])m=e=>{n.click&&n.click.call(e.target,e,e.target)},(v=i.getCustomButtonIconClass(n))||(v=i.getIconClass(e,a))||(b=n.text),y=n.hint||n.text;else if(f=o[e]){p.push(e),m=()=>{s.changeView(e)},(b=f.buttonTextOverride)||(v=i.getIconClass(e,a))||(b=f.buttonTextDefault);let n=f.buttonTextOverride||f.buttonTextDefault;y=(0,r.k)(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[n,e],n)}else if(s[e])if(m=()=>{s[e]()},(b=c[e])||(v=i.getIconClass(e,a))||(b=u[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";y=(0,r.k)(d[t]||h[t],[u.year||"year","year"],u[e])}else y=t=>(0,r.k)(d[e]||h[e],[u[t]||t,t],u[e]);return{buttonName:e,buttonClick:m,buttonIcon:v,buttonText:b,buttonHint:y}})))),viewsWithButtons:p,hasTitle:g}}class z{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 H(e,t){let n=(0,r.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 t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||i.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of i)t.calendarApi.addEventSource(e)}const j=[d({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),d({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){const{dateEnv:i}=e.context,o=e.eventSource.meta;(0,r.u)(o.bind(null,(0,r.l)(e.range,i)),(e=>t({rawEvents:e})),n)}}]}),d({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:r.n,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:e=>!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,o=function(e,t,n){let r,i,o,s,{dateEnv:a,options:l}=n,c={};r=e.startParam,null==r&&(r=l.startParam);i=e.endParam,null==i&&(i=l.endParam);o=e.timeZoneParam,null==o&&(o=l.timeZoneParam);s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Object.assign(c,s),c[r]=a.formatIso(t.start),c[i]=a.formatIso(t.end),"local"!==a.timeZone&&(c[o]=a.timeZone);return c}(i,e.range,e.context);(0,r.r)(i.method,i.url,o).then((([e,n])=>{t({rawEvents:e,response:n})}),n)}}]}),d({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,r.s)(e.endTime,e.startTime)),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:n,typeData:i}}return null},expand(e,t,n){let i=(0,r.o)(t,{start:e.startRecur,end:e.endRecur});return i?function(e,t,n,i){let o=e?(0,r.f)(e):null,s=(0,r.q)(n.start),a=n.end,l=[];for(;s<a;){let e;o&&!o[s.getUTCDay()]||(e=t?i.add(s,t):s,l.push(e)),s=(0,r.t)(s,1)}return l}(e.daysOfWeek,e.startTime,i,n):[]}}],eventRefiners:{daysOfWeek:r.n,startTime:r.e,endTime:r.e,duration:r.e,startRecur:r.n,endRecur:r.n}}),d({name:"change-handler",optionChangeHandlers:{events(e,t){H([e],t)},eventSources:H}}),d({name:"misc",isLoadingFuncs:[e=>S(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},(0,r.l)(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",(0,r.w)(e,t))}}})];class L{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new r.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 B(e,t,n){let i;return i=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(i.start,i.end,(0,r.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,r.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 U{constructor(e){this.computeCurrentViewData=(0,r.z)(this._computeCurrentViewData),this.organizeRawLocales=(0,r.z)(l),this.buildLocale=(0,r.z)(c),this.buildPluginHooks=h(),this.buildDateEnv=(0,r.z)(W),this.buildTheme=(0,r.z)(V),this.parseToolbars=(0,r.z)(M),this.buildViewSpecs=(0,r.z)(b),this.buildDateProfileGenerator=(0,r.A)(F),this.buildViewApi=(0,r.z)(Z),this.buildViewUiProps=(0,r.A)(q),this.buildEventUiBySource=(0,r.z)(Y,r.E),this.buildEventUiBases=(0,r.z)(G),this.parseContextBusinessHours=(0,r.A)(X),this.buildTitle=(0,r.z)(B),this.emitter=new r.F,this.actionRunner=new L(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,o=this.computeCurrentViewData(i,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(o.options);let s=(0,r.G)(n.calendarOptions,n.dateEnv),a=o.dateProfileGenerator.build(s);(0,r.H)(a.activeRange,s)||(s=a.currentRange.start);let u={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let e of n.pluginHooks.contextInit)e(u);let d=w(n.calendarOptions,a,u),f={dynamicOptionOverrides:t,currentViewType:i,currentDate:s,dateProfile:a,businessHours:this.parseContextBusinessHours(u),eventSources:d,eventUiBases:{},eventStore:(0,r.I)(),renderableEventStore:(0,r.I)(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(u).selectionConfig},p=Object.assign(Object.assign({},u),f);for(let e of n.pluginHooks.reducers)Object.assign(f,e(null,null,p));Q(f,u)&&this.emitter.trigger("loading",!0),this.state=f,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,o=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,o,t.calendarApi),a=function(e,t){"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType);return e}(n.currentViewType,e),l=this.computeCurrentViewData(a,s,t.optionOverrides,o);t.calendarApi.currentDataManager=this,i.setThisContext(t.calendarApi),i.setOptions(l.options);let c={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:d}=n;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(d=l.dateProfileGenerator.build(u)),u=(0,r.J)(u,e),d=function(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i}return e}(d,e,u,l.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&(0,r.H)(d.currentRange,u)||(u=d.currentRange.start);let h=E(n.eventSources,e,d,c),f=(0,r.K)(n.eventStore,e,h,d,c),p=S(h)&&!l.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:g,selectionConfig:m}=this.buildViewUiProps(c),v=this.buildEventUiBySource(h),b={dynamicOptionOverrides:o,currentViewType:a,currentDate:u,dateProfile:d,eventSources:h,eventStore:f,renderableEventStore:p,selectionConfig:m,eventUiBases:this.buildEventUiBases(p.defs,g,v),businessHours:this.parseContextBusinessHours(c),dateSelection:T(n.dateSelection,e),eventSelection:k(n.eventSelection,e),eventDrag:O(n.eventDrag,e),eventResize:I(n.eventResize,e)},y=Object.assign(Object.assign({},c),b);for(let t of s.pluginHooks.reducers)Object.assign(b,t(n,e,y));let w=Q(n,c),C=Q(b,c);!w&&C?i.trigger("loading",!0):w&&!C&&i.trigger("loading",!1),this.state=b,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,i=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),o=this.computeCurrentViewData(t.currentViewType,i,e.optionOverrides,t.dynamicOptionOverrides),s=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,o.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),o),t),a=i.pluginHooks.optionChangeHandlers,l=n&&n.calendarOptions,c=i.calendarOptions;if(l&&l!==c){l.timeZone!==c.timeZone&&(t.eventSources=s.eventSources=function(e,t,n){let r=t?t.activeRange:null;return D(e,x(e,n),r,!0,n)}(s.eventSources,t.dateProfile,s),t.eventStore=s.eventStore=(0,r.L)(s.eventStore,n.dateEnv,s.dateEnv));for(let e in a)-1===this.optionsForHandling.indexOf(e)&&l[e]===c[e]||a[e](c[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:r,pluginHooks:i,localeDefaults:o,availableLocaleData:s,extra:a}=this.processRawCalendarOptions(e,t);$(a);let l=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,i,s,r.defaultRangeSeparator),c=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,o),u=this.buildTheme(r,i),d=this.parseToolbars(r,this.stableOptionOverrides,u,c,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:i,dateEnv:l,viewSpecs:c,theme:u,toolbarConfig:d,localeDefaults:o,availableRawLocales:s.map}}processRawCalendarOptions(e,t){let{locales:n,locale:i}=(0,r.M)([r.B,e,t]),o=this.organizeRawLocales(n),s=o.map,a=this.buildLocale(i||o.defaultCode,s).options,l=this.buildPluginHooks(e.plugins||[],j),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r.N),r.O),r.P),l.listenerRefiners),l.optionRefiners),u={},d=(0,r.M)([r.B,a,e,t]),h={},f=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,g=!1;for(let e in d)-1===this.optionsForRefining.indexOf(e)&&(d[e]===f[e]||r.Q[e]&&e in f&&r.Q[e](f[e],d[e]))?h[e]=p[e]:c[e]?(h[e]=c[e](d[e]),g=!0):u[e]=f[e];return g&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:o,localeDefaults:a,extra:u}}_computeCurrentViewData(e,t,n,r){let i=t.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:o,extra:s}=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r);return $(s),{viewSpec:i,options:o,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,showNonCurrentDates:o.showNonCurrentDates,dayCount:o.dayCount,dateAlignment:o.dateAlignment,dateIncrement:o.dateIncrement,hiddenDays:o.hiddenDays,weekends:o.weekends,nowInput:o.now,validRangeInput:o.validRange,visibleRangeInput:o.visibleRange,fixedWeekCount:o.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,i,o){let s=(0,r.M)([r.B,e.optionDefaults,n,i,e.optionOverrides,o]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r.N),r.O),r.P),r.R),t.listenerRefiners),t.optionRefiners),l={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,d=!1,h={};for(let e in s)s[e]===c[e]||r.Q[e]&&r.Q[e](s[e],c[e])?l[e]=u[e]:(s[e]===this.currentCalendarOptionsInput[e]||r.Q[e]&&r.Q[e](s[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(l[e]=this.currentCalendarOptionsRefined[e]):a[e]?l[e]=a[e](s[e]):h[e]=s[e],d=!0);return d&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function W(e,t,n,i,o,s,a,l){let u=c(t||a.defaultCode,a.map);return new r.S({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:u,weekNumberCalculation:n,firstDay:i,weekText:o,cmdFormatter:s.cmdFormatter,defaultSeparator:l})}function V(e,t){return new(t.themeClasses[e.themeSystem]||p)(e)}function F(e){return new(e.dateProfileGeneratorClass||r.U)(e)}function Z(e,t,n){return new z(e,t,n)}function Y(e){return(0,r.b)(e,(e=>e.ui))}function G(e,t,n){let r={"":t};for(let t in e){let i=e[t];i.sourceId&&n[i.sourceId]&&(r[t]=n[i.sourceId])}return r}function q(e){let{options:t}=e;return{eventUiSingleBase:(0,r.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.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:(0,r.W)({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Q(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function X(e){return(0,r.X)(e.options.businessHours,e)}function $(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class J extends r.Y{render(){let e=this.props.widgetGroups.map((e=>this.renderWidgetGroup(e)));return(0,i.az)("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],o=!0;for(let s of e){let{buttonName:e,buttonClick:a,buttonText:l,buttonIcon:c,buttonHint:u}=s;if("title"===e)o=!1,r.push((0,i.az)("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let o=e===t.activeButton,s=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,d=[`fc-${e}-button`,n.getClass("button")];o&&d.push(n.getClass("buttonActive")),r.push((0,i.az)("button",{type:"button",title:"function"==typeof u?u(t.navUnit):u,disabled:s,"aria-pressed":o,className:d.join(" "),onClick:a},l||(c?(0,i.az)("span",{className:c}):"")))}}if(r.length>1){let e=o&&n.getClass("buttonGroup")||"";return(0,i.az)("div",{className:e},...r)}return r[0]}}class K extends r.Y{render(){let e,t,{model:n,extraClassName:r}=this.props,o=!1,s=n.sectionWidgets,a=s.center;s.left?(o=!0,e=s.left):e=s.start,s.right?(o=!0,t=s.right):t=s.end;let l=[r||"","fc-toolbar",o?"fc-toolbar-ltr":""];return(0,i.az)("div",{className:l.join(" ")},this.renderSection("start",e||[]),this.renderSection("center",a||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return(0,i.az)(J,{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 ee extends r.Y{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,(0,r.Z)(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",s="";return n?null!==t.availableWidth?o=t.availableWidth/n:s=1/n*100+"%":o=e.height||"",(0,i.az)("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:o,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 r._{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:i}=n,o=(0,r.$)(t);if(o&&n.isValidSegDownEl(e.target)){let s=(0,r.a0)(e.target,".fc-event-forced-url"),a=s?s.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:t,event:new r.a1(n.context,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:i.viewApi}),a&&!e.defaultPrevented&&(window.location.href=a)}},this.destroy=(0,r.a2)(e.el,"click",".fc-event",this.handleSegClick)}}class ne extends r._{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{(0,r.$)(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,r.a3)(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:i}=this,{context:o}=i,s=(0,r.$)(n);t&&!i.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new r.a1(o,s.eventRange.def,s.eventRange.instance),jsEvent:t,view:o.viewApi})}}class re extends r.a4{constructor(){super(...arguments),this.buildViewContext=(0,r.z)(r.a5),this.buildViewPropTransformers=(0,r.z)(oe),this.buildToolbarProps=(0,r.z)(ie),this.headerRef=(0,i.Vf)(),this.footerRef=(0,i.Vf)(),this.interactionsStore={},this.state={viewLabelId:(0,r.a6)()},this.registerInteractiveComponent=(e,t)=>{let n=(0,r.a7)(e,t),i=[te,ne].concat(this.props.pluginHooks.componentInteractions).map((e=>new e(n)));this.interactionsStore[e.uid]=i,r.a8[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 r.a8[e.uid]},this.resizeRunner=new r.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:o}=t,s=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,(0,r.a9)(t.options.now,t.dateEnv),t.viewTitle),a=!1,l="";t.isHeightAuto||t.forPrint?l="":null!=o.height?a=!0:null!=o.contentHeight?l=o.contentHeight:e=Math.max(o.aspectRatio,.5);let c=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),u=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return(0,i.az)(r.V.Provider,{value:c},n.header&&(0,i.az)(K,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:u},s)),(0,i.az)(ee,{liquid:a,height:l,aspectRatio:e,labeledById:u},this.renderView(t),this.buildAppendContent()),n.footer&&(0,i.az)(K,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},s)))}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 r in n)t[r]!==e[r]&&n[r](t[r],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,i.az)(i.HY,{},...t)}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={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},o=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of o)Object.assign(r,t.transform(r,e));let s=n.component;return(0,i.az)(s,Object.assign({},r))}}function ie(e,t,n,i,o,s){let a=n.build(o,void 0,!1),l=n.buildPrev(t,i,!1),c=n.buildNext(t,i,!1);return{title:s,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:a.isValid&&!(0,r.H)(t.currentRange,o),isPrevEnabled:l.isValid,isNextEnabled:c.isValid}}function oe(e){return e.map((e=>new e))}class se extends r.aa{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,r.ab)((()=>{(0,i.sY)((0,i.az)(r.ac,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},((t,n,o,s)=>(this.setClassNames(t),this.setHeight(n),(0,i.az)(r.ad.Provider,{value:this.customContentRenderId},(0,i.az)(re,Object.assign({isHeightAuto:o,forPrint:s},e)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,(0,i.sY)(null,this.el),this.setClassNames([]),this.setHeight(""))},(0,r.ae)(e),this.el=e,this.renderRunner=new r.D(this.handleRenderRequest),new U({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,r.ab)((()=>{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,r.a)(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){(0,r.af)(this.el,"height",e)}}},17920:(e,t,n)=>{"use strict";n.d(t,{$:()=>Wn,A:()=>Re,B:()=>Fe,C:()=>It,D:()=>d,E:()=>st,F:()=>xn,G:()=>Gt,H:()=>Wt,I:()=>un,J:()=>Yt,K:()=>Sn,L:()=>Dn,M:()=>$e,N:()=>Ve,O:()=>Ze,P:()=>Ye,Q:()=>Ge,R:()=>Xe,S:()=>mt,T:()=>vt,U:()=>Qt,V:()=>St,W:()=>mn,X:()=>Tn,Y:()=>Dt,Z:()=>Rt,_:()=>dr,a:()=>ae,a$:()=>Dr,a0:()=>f,a1:()=>Hn,a2:()=>A,a3:()=>D,a4:()=>At,a5:()=>Ct,a6:()=>S,a7:()=>hr,a8:()=>pr,a9:()=>qt,aB:()=>Zt,aC:()=>se,aD:()=>xe,aE:()=>_e,aF:()=>vr,aG:()=>mr,aH:()=>yr,aI:()=>wr,aJ:()=>Er,aK:()=>br,aL:()=>ct,aM:()=>dt,aN:()=>g,aO:()=>m,aP:()=>h,aQ:()=>b,aS:()=>w,aT:()=>fn,aU:()=>cr,aV:()=>dn,aW:()=>cn,aY:()=>vn,aZ:()=>Cr,a_:()=>Rr,aa:()=>gr,ab:()=>bt,ac:()=>ur,ad:()=>Ot,ae:()=>l,af:()=>y,aj:()=>Je,an:()=>W,ao:()=>Z,ap:()=>j,aq:()=>L,ar:()=>U,as:()=>P,at:()=>N,au:()=>z,av:()=>H,aw:()=>F,ax:()=>M,ay:()=>I,az:()=>Ft,b:()=>rt,b$:()=>si,b0:()=>xr,b1:()=>kr,b3:()=>x,b4:()=>Hr,b5:()=>zr,b6:()=>Lr,b7:()=>jr,b8:()=>Lt,b9:()=>Bt,bB:()=>Yr,bF:()=>Qr,bH:()=>fr,bI:()=>Kr,bJ:()=>ei,bS:()=>Zn,bT:()=>Xn,bU:()=>Jn,bX:()=>ri,bY:()=>Mn,bZ:()=>li,b_:()=>oi,ba:()=>Ut,bb:()=>Br,bc:()=>Wr,bd:()=>Vr,be:()=>Fr,bf:()=>Zr,bg:()=>nr,bh:()=>ue,bn:()=>we,bo:()=>$,bp:()=>K,br:()=>te,bs:()=>ne,bt:()=>re,bu:()=>ie,bx:()=>Se,c:()=>Nt,c1:()=>Ci,c2:()=>Ei,c3:()=>Ai,c4:()=>Di,c5:()=>vi,c6:()=>bi,c7:()=>yi,c8:()=>mi,c9:()=>Si,ca:()=>wi,cb:()=>Ri,cc:()=>_i,cd:()=>xi,ce:()=>pi,cf:()=>Pr,cg:()=>gi,ch:()=>Mr,ci:()=>ti,ck:()=>ki,cl:()=>Ii,cp:()=>ji,cq:()=>zi,cs:()=>Ui,ct:()=>Fi,cu:()=>Pt,cv:()=>kn,cy:()=>Gi,d:()=>oe,e:()=>Q,f:()=>it,g:()=>O,h:()=>nt,i:()=>a,j:()=>En,k:()=>V,l:()=>rr,m:()=>tt,n:()=>Ke,o:()=>jt,p:()=>wn,q:()=>fe,r:()=>ar,s:()=>J,t:()=>ce,u:()=>or,v:()=>ot,w:()=>Ln,x:()=>We,y:()=>he,z:()=>De});var r=n(6400),i=n(59748);const o=[],s=new WeakMap;function a(e){e&&"undefined"!=typeof document&&o.push(c(document.head,e))}function l(e){const t=e.getRootNode();if(!s.get(t)){s.set(t,!0);for(const e of o)c(t,e.innerText)}}function c(e,t){const n=document.createElement("style"),r=function(){void 0===u&&(u=function(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");if(t)return t.nonce||"";return""}());return u}();return r&&(n.nonce=r),n.innerText=t,e.appendChild(n),n}let u;"undefined"!=typeof document&&s.set(document,!0);class d{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;if(e in n){if(t)delete n[e];else{n[e]-=1,n[e]<=0&&delete n[e]}this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function h(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(p(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function p(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function g(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let i=n[e].querySelectorAll(t);for(let e=0;e<i.length;e+=1)r.push(i[e])}return r}function m(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let i=n[e].children;for(let e=0;e<i.length;e+=1){let n=i[e];t&&!p(n,t)||r.push(n)}}return r}const v=/(top|left|right|bottom|width|height)$/i;function b(e,t){for(let n in t)y(e,n,t[n])}function y(e,t,n){null==n?e.style[t]="":"number"==typeof n&&v.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function w(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}let E=0;function S(){return E+=1,"fc-dom-"+E}function C(e){e.preventDefault()}function A(e,t,n,r){let i=function(e,t){return n=>{let r=f(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}function D(e,t,n,r){let i;return A(e,"mouseover",t,((e,t)=>{if(t!==i){i=t,n(e,t);let o=e=>{i=null,r(e,t),t.removeEventListener("mouseleave",o)};t.addEventListener("mouseleave",o)}}))}const R=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function x(e,t){let n=r=>{t(r),R.forEach((t=>{e.removeEventListener(t,n)}))};R.forEach((t=>{e.addEventListener(t,n)}))}function _(e){return Object.assign({onClick:e},T(e))}function T(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let k=0;function O(){return k+=1,String(k)}function I(){document.body.classList.add("fc-not-allowed")}function M(){document.body.classList.remove("fc-not-allowed")}function P(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",C)}function N(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",C)}function z(e){e.addEventListener("contextmenu",C)}function H(e){e.removeEventListener("contextmenu",C)}function j(e){let t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t+=1)n=i[t],"string"==typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function L(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=B(e,t,n[r]),i)return i;return 0}function B(e,t,n){return n.func?n.func(e,t):U(e[n.field],t[n.field])*(n.order||1)}function U(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function W(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function V(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce(((e,t,n)=>e.replace("$"+n,t||"")),e):n}function F(e,t){return e-t}function Z(e){return e%1==0}function Y(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const G=["years","months","days","milliseconds"],q=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Q(e,t){return"string"==typeof e?function(e){let t=q.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?X(e):"number"==typeof e?X({[t||"milliseconds"]:e}):null}function X(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function $(e){return e.years||e.months||e.milliseconds?0:e.days}function J(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function K(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function ee(e){return re(e)/864e5}function te(e){return re(e)/6e4}function ne(e){return re(e)/1e3}function re(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function ie(e,t){let n=null;for(let r=0;r<G.length;r+=1){let i=G[r];if(t[i]){let r=e[i]/t[i];if(!Z(r)||null!==n&&n!==r)return null;n=r}else if(e[i])return null}return n}function oe(e){let t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function se(e,t){let n=0,r=0;for(;r<e.length;)e[r]===t?(e.splice(r,1),n+=1):r+=1;return n}function ae(e,t,n){if(e===t)return!0;let r,i=e.length;if(i!==t.length)return!1;for(r=0;r<i;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}const le=["sun","mon","tue","wed","thu","fri","sat"];function ce(e,t){let n=be(e);return n[2]+=t,ye(n)}function ue(e,t){let n=be(e);return n[6]+=t,ye(n)}function de(e,t){return(t.valueOf()-e.valueOf())/864e5}function he(e,t){return Ee(e)===Ee(t)?Math.round(de(e,t)):null}function fe(e){return ye([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function pe(e,t,n,r){let i=ye([t,0,1+ge(t,n,r)]),o=fe(e),s=Math.round(de(i,o));return Math.floor(s/7)+1}function ge(e,t,n){let r=7+t-n;return-((7+ye([e,0,r]).getUTCDay()-t)%7)+r-1}function me(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function ve(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function be(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function ye(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function we(e){return!isNaN(e.valueOf())}function Ee(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function Se(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Ae(t,!0)))),r}function Ce(e){return e.toISOString().replace(/T.*$/,"")}function Ae(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);return t?`${n+W(i,2)}:${W(o,2)}`:`GMT${n}${i}${o?`:${W(o,2)}`:""}`}function De(e,t,n){let r,i;return function(...o){if(r){if(!ae(r,o)){n&&n(i);let r=e.apply(this,o);t&&t(r,i)||(i=r)}}else i=e.apply(this,o);return r=o,i}}function Re(e,t,n){let r,i;return o=>{if(r){if(!st(r,o)){n&&n(i);let r=e.call(this,o);t&&t(r,i)||(i=r)}}else i=e.call(this,o);return r=o,i}}function xe(e,t,n){let r=[],i=[];return o=>{let s=r.length,a=o.length,l=0;for(;l<s;l+=1)if(o[l]){if(!ae(r[l],o[l])){n&&n(i[l]);let r=e.apply(this,o[l]);t&&t(r,i[l])||(i[l]=r)}}else n&&n(i[l]);for(;l<a;l+=1)i[l]=e.apply(this,o[l]);return r=o,i.splice(a),i}}function _e(e,t,n){let r={},i={};return o=>{let s={};for(let a in o)if(i[a])if(ae(r[a],o[a]))s[a]=i[a];else{n&&n(i[a]);let r=e.apply(this,o[a]);s[a]=t&&t(r,i[a])?i[a]:r}else s[a]=e.apply(this,o[a]);return r=o,i=s,s}}const Te={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},ke={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Oe=/\s*([ap])\.?m\.?/i,Ie=/,/g,Me=/\s+/g,Pe=/\u200e/g,Ne=/UTC|GMT/;class ze{constructor(e){let t={},n={},r=0;for(let i in e)i in Te?(n[i]=e[i],r=Math.max(Te[i],r)):(t[i]=e[i],i in ke&&(r=Math.max(ke[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=De(He)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:i,extendedSettings:o}=this,s=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(Ee(e)!==Ee(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!s)return this.format(e,n);let a=s;!(a>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(a=1);let l=this.format(e,n),c=this.format(t,n);if(l===c)return l;let u=He(function(e,t){let n={};for(let r in e)(!(r in ke)||ke[r]<=t)&&(n[r]=e[r]);return n}(i,a),o,n),d=u(e),h=u(t),f=function(e,t,n,r){let i=0;for(;i<e.length;){let o=e.indexOf(t,i);if(-1===o)break;let s=e.substr(0,o);i=o+t.length;let a=e.substr(i),l=0;for(;l<n.length;){let e=n.indexOf(r,l);if(-1===e)break;let t=n.substr(0,e);l=e+r.length;let i=n.substr(l);if(s===t&&a===i)return{before:s,after:a}}}return null}(l,d,c,h),p=o.separator||r||n.defaultSeparator||"";return f?f.before+d+p+h+f.after:l+p+c}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function He(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>Ae(e.timeZoneOffset):0===r&&t.week?e=>function(e,t,n,r,i){let o=[];"long"===i?o.push(n):"short"!==i&&"narrow"!==i||o.push(t);"long"!==i&&"short"!==i||o.push(" ");o.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&o.reverse();return o.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):function(e,t,n){e=Object.assign({},e),t=Object.assign({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";let r,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return o=>{let s,{marker:a}=o;return s=r&&!a.getUTCMinutes()?r:i,function(e,t,n,r,i){e=e.replace(Pe,""),"short"===n.timeZoneName&&(e=function(e,t){let n=!1;e=e.replace(Ne,(()=>(n=!0,t))),n||(e+=` ${t}`);return e}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":Ae(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Ie,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(Oe,"").trim():"narrow"===r.meridiem?e=e.replace(Oe,((e,t)=>t.toLocaleLowerCase())):"short"===r.meridiem?e=e.replace(Oe,((e,t)=>`${t.toLocaleLowerCase()}m`)):"lowercase"===r.meridiem&&(e=e.replace(Oe,(e=>e.toLocaleLowerCase())));return e=(e=e.replace(Me," ")).trim()}(s.format(a),o,e,t,n)}}(e,t,n)}function je(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function Le(e,t,n,r){let i=je(e,n.calendarSystem);return{date:i,start:i,end:t?je(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class Be{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,Le(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,Le(e,t,n,r))}}class Ue{constructor(e){this.func=e}format(e,t,n){return this.func(Le(e,null,t,n))}formatRange(e,t,n,r){return this.func(Le(e,t,n,r))}}function We(e){return"object"==typeof e&&e?new ze(e):"string"==typeof e?new Be(e):"function"==typeof e?new Ue(e):null}const Ve={navLinkDayClick:Ke,navLinkWeekClick:Ke,duration:Q,bootstrapFontAwesome:Ke,buttonIcons:Ke,customButtons:Ke,defaultAllDayEventDuration:Q,defaultTimedEventDuration:Q,nextDayThreshold:Q,scrollTime:Q,scrollTimeReset:Boolean,slotMinTime:Q,slotMaxTime:Q,dayPopoverFormat:We,slotDuration:Q,snapDuration:Q,headerToolbar:Ke,footerToolbar:Ke,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:We,dayHeaderClassNames:Ke,dayHeaderContent:Ke,dayHeaderDidMount:Ke,dayHeaderWillUnmount:Ke,dayCellClassNames:Ke,dayCellContent:Ke,dayCellDidMount:Ke,dayCellWillUnmount:Ke,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Ke,weekNumbers:Boolean,weekNumberClassNames:Ke,weekNumberContent:Ke,weekNumberDidMount:Ke,weekNumberWillUnmount:Ke,editable:Boolean,viewClassNames:Ke,viewDidMount:Ke,viewWillUnmount:Ke,nowIndicator:Boolean,nowIndicatorClassNames:Ke,nowIndicatorContent:Ke,nowIndicatorDidMount:Ke,nowIndicatorWillUnmount:Ke,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Ke,locale:Ke,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Ke,eventOrder:j,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Ke,contentHeight:Ke,direction:String,weekNumberFormat:We,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:Ke,initialDate:Ke,now:Ke,eventDataTransform:Ke,stickyHeaderDates:Ke,stickyFooterScrollbar:Ke,viewHeight:Ke,defaultAllDay:Boolean,eventSourceFailure:Ke,eventSourceSuccess:Ke,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Ke,eventConstraint:Ke,eventAllow:Ke,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Ke,eventContent:Ke,eventDidMount:Ke,eventWillUnmount:Ke,selectConstraint:Ke,selectOverlap:Ke,selectAllow:Ke,droppable:Boolean,unselectCancel:String,slotLabelFormat:Ke,slotLaneClassNames:Ke,slotLaneContent:Ke,slotLaneDidMount:Ke,slotLaneWillUnmount:Ke,slotLabelClassNames:Ke,slotLabelContent:Ke,slotLabelDidMount:Ke,slotLabelWillUnmount:Ke,dayMaxEvents:Ke,dayMaxEventRows:Ke,dayMinWidth:Number,slotLabelInterval:Q,allDayText:String,allDayClassNames:Ke,allDayContent:Ke,allDayDidMount:Ke,allDayWillUnmount:Ke,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:We,rerenderDelay:Number,moreLinkText:Ke,moreLinkHint:Ke,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Ke,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Q,hiddenDays:Ke,fixedWeekCount:Boolean,validRange:Ke,visibleRange:Ke,titleFormat:Ke,eventInteractive:Boolean,noEventsText:String,viewHint:Ke,navLinkHint:Ke,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:Ke,moreLinkClassNames:Ke,moreLinkContent:Ke,moreLinkDidMount:Ke,moreLinkWillUnmount:Ke,monthStartFormat:We,handleCustomRendering:Ke,customRenderingMetaMap:Ke,customRenderingReplacesEl:Boolean},Fe={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},Ze={datesSet:Ke,eventsSet:Ke,eventAdd:Ke,eventChange:Ke,eventRemove:Ke,windowResize:Ke,eventClick:Ke,eventMouseEnter:Ke,eventMouseLeave:Ke,select:Ke,unselect:Ke,loading:Ke,_unmount:Ke,_beforeprint:Ke,_afterprint:Ke,_noEventDrop:Ke,_noEventResize:Ke,_resize:Ke,_scrollRequest:Ke},Ye={buttonText:Ke,buttonHints:Ke,views:Ke,plugins:Ke,initialEvents:Ke,events:Ke,eventSources:Ke},Ge={headerToolbar:qe,footerToolbar:qe,buttonText:qe,buttonHints:qe,buttonIcons:qe,dateIncrement:qe,plugins:Qe,events:Qe,eventSources:Qe,resources:Qe};function qe(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?st(e,t):e===t}function Qe(e,t){return Array.isArray(e)&&Array.isArray(t)?ae(e,t):e===t}const Xe={type:String,component:Ke,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Ke,usesMinMaxTime:Boolean,classNames:Ke,content:Ke,didMount:Ke,willUnmount:Ke};function $e(e){return tt(e,Ge)}function Je(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function Ke(e){return e}const{hasOwnProperty:et}=Object.prototype;function tt(e,t){let n={};if(t)for(let r in t)if(t[r]===qe){let t=[];for(let i=e.length-1;i>=0;i-=1){let o=e[i][r];if("object"==typeof o&&o)t.unshift(o);else if(void 0!==o){n[r]=o;break}}t.length&&(n[r]=tt(t))}for(let t=e.length-1;t>=0;t-=1){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function nt(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function rt(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function it(e){let t={};for(let n of e)t[n]=!0;return t}function ot(e){let t=[];for(let n in e)t.push(e[n]);return t}function st(e,t){if(e===t)return!0;for(let n in e)if(et.call(e,n)&&!(n in t))return!1;for(let n in t)if(et.call(t,n)&&e[n]!==t[n])return!1;return!0}const at=/^on[A-Z]/;function lt(e,t){let n=[];for(let r in e)et.call(e,r)&&(r in t||n.push(r));for(let r in t)et.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function ct(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e)||!ut(e[r],t[r],n[r]))return!1;for(let n in e)if(!(n in t))return!1;return!0}function ut(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function dt(e,t=0,n,r=1){let i=[];null==n&&(n=Object.keys(e).length);for(let o=t;o<n;o+=r){let t=e[o];void 0!==t&&i.push(t)}return i}let ht={};var ft,pt;ft="gregory",pt=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return ye(e)}markerToArray(e){return be(e)}},ht[ft]=pt;const gt=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class mt{constructor(e){let t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new ht[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return null===t?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):ye(me(new Date))}createMarkerMeta(e){if("string"==typeof e)return this.parse(e);let t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=ye(e)),null!==t&&we(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=function(e){let t=gt.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number(`0.${t[12]}`):0));if(we(e)){let n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}(e);if(null===t)return null;let{marker:n}=t,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return Ee(e)===Ee(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return Ee(e)===Ee(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=function(e,t){let n=he(e,t);return null!==n&&n%7==0?n/7:null}(e,t),null!==n?{unit:"week",value:n}:(n=he(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),Z(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),Z(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),Z(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/(ee(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/function(e){return ee(e)/30}(n):n.days&&(r=he(e,t),null!==r)?r/ee(n):(t.valueOf()-e.valueOf())/re(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?fe(e):"hour"===t?function(e){return ye([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return ye([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return ye([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){let r=e.getUTCFullYear(),i=pe(e,r,t,n);if(i<1)return pe(e,r-1,t,n);let o=pe(e,r+1,t,n);return o>=1?Math.min(i,o):i}(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=ue(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),Se(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?ye(me(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?ye(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-ve(be(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(be(e)):null}toDate(e,t){return"local"===this.timeZone?ve(be(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(be(e))*60):new Date(e.valueOf()-(t||0))}}class vt{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"==typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}function bt(e){e();let t=r.YM.debounceRendering,n=[];for(r.YM.debounceRendering=function(e){n.push(e)},r.sY(r.az(yt,{}),document.createElement("div"));n.length;)n.shift()();r.YM.debounceRendering=t}vt.prototype.classes={},vt.prototype.iconClasses={},vt.prototype.baseIconClass="",vt.prototype.iconOverridePrefix="";class yt extends r.wA{render(){return r.az("div",{})}componentDidMount(){this.setState({})}}function wt(e){let t=r.kr(e),n=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{this.props.value!==t.value&&e.forEach((e=>{e.context=t.value,e.forceUpdate()}))},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}class Et{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const St=wt({});function Ct(e,t,n,r,i,o,s,a,l,c,u,d,h){return{dateEnv:i,options:n,pluginHooks:s,emitter:c,dispatch:a,getCurrentData:l,calendarApi:u,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:o,isRtl:"rtl"===n.direction,addResizeHandler(e){c.on("_resize",e)},removeResizeHandler(e){c.off("_resize",e)},createScrollResponder:e=>new Et(e,c,Q(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:d,unregisterInteractiveComponent:h}}class At extends r.wA{shouldComponentUpdate(e,t){return this.debug&&console.log(lt(e,this.props),lt(t,this.state)),!ct(this.props,e,this.propEquality)||!ct(this.state,t,this.stateEquality)}safeSetState(e){ct(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}At.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},At.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},At.contextType=St,At.prototype.propEquality={},At.prototype.stateEquality={};class Dt extends At{}function Rt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}Dt.contextType=St;class xt extends Dt{constructor(){super(...arguments),this.id=O(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{this.props.elRef&&Rt(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:i,defaultGenerator:o,renderProps:s}=e,a=Tt(e);let l,c,u=!1,d=[];if(null!=i){const e="function"==typeof i?i(s,r.az):i;if(!0===e)u=!0;else{const t=e&&"object"==typeof e;t&&"html"in e?a.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?d=Array.prototype.slice.call(e.domNodes):t||"function"==typeof e?c=e:l=e}}else u=!_t(e.generatorName,n);return u&&o&&(l=o(s)),this.queuedDomNodes=d,this.currentGeneratorMeta=c,(0,r.az)(e.elTag,a,l)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:r}=this,{handleCustomRendering:i,customRenderingMetaMap:o}=r.options;if(i){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==o?void 0:o[n.generatorName];r&&i(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.handleEl,generatorMeta:r},n),{elClasses:n.elClasses.filter(kt)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!ae(e,t)){t.forEach(h);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function _t(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function Tt(e,t){const n=Object.assign(Object.assign({},e.elAttrs),{ref:e.elRef});return(e.elClasses||t)&&(n.className=(e.elClasses||[]).concat(t||[]).concat(n.className||[]).filter(Boolean).join(" ")),e.elStyle&&(n.style=e.elStyle),n}function kt(e){return Boolean(e)}xt.addPropsEquality({elClasses:ae,elStyle:st,elAttrs:function(e,t){const n=lt(e,t);for(let e of n)if(!at.test(e))return!1;return!0},renderProps:st});const Ot=wt(0);class It extends r.wA{constructor(){super(...arguments),this.InnerContent=Mt.bind(void 0,this)}render(){const{props:e}=this,t=function(e,t){const n="function"==typeof e?e(t):e||[];return"string"==typeof n?[n]:n}(e.classNameGenerator,e.renderProps);if(e.children){const n=Tt(e,t),i=e.children(this.InnerContent,e.renderProps,n);return e.elTag?(0,r.az)(e.elTag,n,i):i}return(0,r.az)(xt,Object.assign(Object.assign({},e),{elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}}function Mt(e,t){const n=e.props;return(0,r.az)(xt,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}It.contextType=Ot;class Pt extends Dt{render(){let{props:e,context:t}=this,{options:n}=t,i={view:t.viewApi};return(0,r.az)(It,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Nt(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),(()=>e.children))}}function Nt(e){return[`fc-${e.type}-view`,"fc-view"]}function zt(e,t){let n,r,i=[],{start:o}=t;for(e.sort(Ht),n=0;n<e.length;n+=1)r=e[n],r.start>o&&i.push({start:o,end:r.start}),r.end>o&&(o=r.end);return o<t.end&&i.push({start:o,end:t.end}),i}function Ht(e,t){return e.start.valueOf()-t.start.valueOf()}function jt(e,t){let{start:n,end:r}=e,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function Lt(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function Bt(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Ut(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Wt(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Vt(e){let t=Math.floor(de(e.start,e.end))||1,n=fe(e.start);return{start:n,end:ce(n,t)}}function Ft(e,t=Q(0)){let n=null,r=null;if(e.end){r=fe(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=re(t)&&(r=ce(r,1))}return e.start&&(n=fe(e.start),r&&r<=n&&(r=ce(n,1))),{start:n,end:r}}function Zt(e,t,n,r){return"year"===r?Q(n.diffWholeYears(e,t),"year"):"month"===r?Q(n.diffWholeMonths(e,t),"month"):function(e,t){let n=fe(e),r=fe(t);return{years:0,months:0,days:Math.round(de(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}(e,t)}function Yt(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}function Gt(e,t){let n=e.initialDate;return null!=n?t.createMarker(n):qt(e.now,t)}function qt(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}class Qt{constructor(e){this.props=e,this.nowDate=qt(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)}build(e,t,n=!0){let r,i,o,s,a,l,{props:c}=this;var u,d;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(u=e,e=null!=(d=r).start&&u<d.start?d.start:null!=d.end&&u>=d.end?new Date(d.end.valueOf()-1):u),i=this.buildCurrentRangeInfo(e,t),o=/^(year|month|week|day)$/.test(i.unit),s=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,o),s=this.trimHiddenDays(s),a=s,c.showNonCurrentDates||(a=jt(a,i.range)),a=this.adjustActiveRange(a),a=jt(a,r),l=Bt(i.range,r),Wt(s,e)||(e=s.start),{currentDate:e,validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:o,activeRange:a,renderRange:s,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(i.duration)}}buildValidRange(){let e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,i=null,o=null,s=null;return r.duration?(i=r.duration,o=r.durationUnit,s=this.buildRangeFromDuration(e,t,i,o)):(n=this.props.dayCount)?(o="day",s=this.buildRangeFromDayCount(e,t,n)):(s=this.buildCustomVisibleRange(e))?o=r.dateEnv.greatestWholeUnit(s.start,s.end).unit:(i=this.getFallbackDuration(),o=oe(i).unit,s=this.buildRangeFromDuration(e,t,i,o)),{duration:i,unit:o,range:s}}getFallbackDuration(){return Q({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:i}=this.props,{start:o,end:s}=e;return n&&(ee(r)<0&&(o=fe(o),o=t.add(o,r)),ee(i)>1&&(s=fe(s),s=ce(s,-1),s=t.add(s,i))),{start:o,end:s}}buildRangeFromDuration(e,t,n,r){let i,o,s,{dateEnv:a,dateAlignment:l}=this.props;if(!l){let{dateIncrement:e}=this.props;l=e&&re(e)<re(n)?oe(e).unit:r}function c(){i=a.startOf(e,l),o=a.add(i,n),s={start:i,end:o}}return ee(n)<=1&&this.isHiddenDay(i)&&(i=this.skipHiddenDays(i,t),i=fe(i)),c(),this.trimHiddenDays(s)||(e=this.skipHiddenDays(e,t),c()),s}buildRangeFromDayCount(e,t,n){let r,{dateEnv:i,dateAlignment:o}=this.props,s=0,a=e;o&&(a=i.startOf(a,o)),a=fe(a),a=this.skipHiddenDays(a,t),r=a;do{r=ce(r,1),this.isHiddenDay(r)||(s+=1)}while(s<n);return{start:a,end:r}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);return!i||null!=i.start&&null!=i.end?i:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?Q(1,t):e||Q({days:1}))}refineRange(e){if(e){let t=function(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}(e,this.props.dateEnv);return t&&(t=Ft(t)),t}return null}initHiddenDays(){let e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:t,end:n}=e;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=ce(e,t);return e}}function Xt(e,t,n,r){return{instanceId:O(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function $t(e,t,n){let{dateEnv:r,pluginHooks:i,options:o}=n,{defs:s,instances:a}=e;a=nt(a,(e=>!s[e.defId].recurringDef));for(let e in s){let n=s[e];if(n.recurringDef){let{duration:s}=n.recurringDef;s||(s=n.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);let l=Jt(n,s,t,r,i.recurringTypes);for(let t of l){let n=Xt(e,{start:t,end:r.add(t,s)});a[n.instanceId]=n}}}return{defs:s,instances:a}}function Jt(e,t,n,r,i){let o=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(o=o.map(fe)),o}const Kt={id:String,groupId:String,title:String,url:String,interactive:Boolean},en={start:Ke,end:Ke,date:Ke,allDay:Boolean},tn=Object.assign(Object.assign(Object.assign({},Kt),en),{extendedProps:Ke});function nn(e,t,n,r,i=on(n),o,s){let{refined:a,extra:l}=rn(e,n,i),c=function(e,t){let n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),u=function(e,t,n,r){for(let i=0;i<r.length;i+=1){let o=r[i].parse(e,n);if(o){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=o.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:o.duration,typeData:o.typeData,typeId:i}}}return null}(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let e=sn(a,l,t?t.sourceId:"",u.allDay,Boolean(u.duration),n,o);return e.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:e,instance:null}}let d=function(e,t,n,r){let i,o,{allDay:s}=e,a=null,l=!1,c=null,u=null!=e.start?e.start:e.date;if(i=n.dateEnv.createMarkerMeta(u),i)a=i.marker;else if(!r)return null;null!=e.end&&(o=n.dateEnv.createMarkerMeta(e.end));null==s&&(s=null!=t?t:(!i||i.isTimeUnspecified)&&(!o||o.isTimeUnspecified));s&&a&&(a=fe(a));o&&(c=o.marker,s&&(c=fe(c)),a&&c<=a&&(c=null));c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(a,s?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:s,hasEnd:l,range:{start:a,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}(a,c,n,r);if(d){let e=sn(a,l,t?t.sourceId:"",d.allDay,d.hasEnd,n,o),r=Xt(e.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return s&&e.publicId&&s[e.publicId]&&(r.instanceId=s[e.publicId]),{def:e,instance:r}}return null}function rn(e,t,n=on(t)){return Je(e,n)}function on(e){return Object.assign(Object.assign(Object.assign({},pn),tn),e.pluginHooks.eventRefiners)}function sn(e,t,n,r,i,o,s){let a={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(s&&e.id?s[e.id]:"")||O(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:mn(e,o),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of o.pluginHooks.eventDefMemberAdders)Object.assign(a,t(e));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function an(e,t,n,r,i,o){let s={defs:{},instances:{}},a=on(n);for(let l of e){let e=nn(l,t,n,r,a,i,o);e&&ln(e,s)}return s}function ln(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function cn(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=hn(e,(e=>{return n=t,r=e,Boolean(n.groupId&&n.groupId===r.groupId);var n,r}));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return{defs:{},instances:{}}}function un(){return{defs:{},instances:{}}}function dn(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function hn(e,t){let n=nt(e.defs,t),r=nt(e.instances,(e=>n[e.defId]));return{defs:n,instances:r}}function fn(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}const pn={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Ke,overlap:Ke,allow:Ke,className:fn,classNames:fn,color:String,backgroundColor:String,borderColor:String,textColor:String},gn={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function mn(e,t){let n=function(e,t){return Array.isArray(e)?an(e,null,t,!0):"object"==typeof e&&e?an([e],null,t,!0):null!=e?String(e):null}(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function vn(e){return e.reduce(bn,gn)}function bn(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const yn={id:String,defaultAllDay:Boolean,url:String,format:String,events:Ke,eventDataTransform:Ke,success:Ke,failure:Ke};function wn(e,t,n=En(t)){let r;if("string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){let{refined:i,extra:o}=Je(r,n),s=function(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}(i,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:O(),sourceDefId:s.sourceDefId,meta:s.meta,ui:mn(i,t),extendedProps:o}}return null}function En(e){return Object.assign(Object.assign(Object.assign({},pn),yn),e.pluginHooks.eventSourceRefiners)}function Sn(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,i,o){if(t&&n===t.latestFetchId){let n=an(Cn(i,t,o),t,o);return r&&(n=$t(n,r,o)),dn(Rn(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return function(e,t,n,r){const{defIdMap:i,instanceIdMap:o}=function(e){const{defs:t,instances:n}=e,r={},i={};for(let e in t){const n=t[e],{publicId:i}=n;i&&(r[i]=e)}for(let e in n){const r=t[n[e].defId],{publicId:o}=r;o&&(i[o]=e)}return{defIdMap:r,instanceIdMap:i}}(e);let s=an(Cn(n,t,r),t,r,!1,i,o);t.fetchRange&&(s=$t(s,t.fetchRange,r));return s}(e,n[t.sourceId],t.rawEvents,i);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=$t(t,n,r));return dn(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return dn(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?$t(e,r.activeRange,i):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,i={},o={};for(let e in n)t.defs[e]||(i[e]=n[e]);for(let e in r)!t.instances[e]&&i[r[e].defId]&&(o[e]=r[e]);return{defs:i,instances:o}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return Rn(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return hn(e,(e=>!e.sourceId));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Cn(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=An(e,i)),r&&(e=An(e,r)),e}function An(e,t){let n;if(t){n=[];for(let r of e){let e=t(r);e?n.push(e):null==e&&n.push(r)}}else n=e;return n}function Dn(e,t,n){let{defs:r}=e,i=rt(e.instances,(e=>{let i=r[e.defId];return i.allDay||i.recurringDef?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:r,instances:i}}function Rn(e,t){return hn(e,(e=>e.sourceId!==t))}class xn{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)}off(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((e=>e!==n))):delete e[t]}(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],i=[].concat(r||[],n);for(let e of i)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}const _n={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Tn(e,t){return an(function(e){let t;t=!0===e?[{}]:Array.isArray(e)?e.filter((e=>e.daysOfWeek)):"object"==typeof e&&e?[e]:[];return t=t.map((e=>Object.assign(Object.assign({},_n),e))),t}(e),null,t)}function kn(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},On(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function On(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,i;return Object.assign(n,(r=e,i=t.dateEnv,Object.assign(Object.assign({},ir(r.range,i,r.allDay)),{allDay:r.allDay}))),n}function In(e,t,n){let{dateEnv:r,options:i}=n,o=t;return e?(o=fe(o),o=r.add(o,i.defaultAllDayEventDuration)):o=r.add(o,i.defaultTimedEventDuration),o}function Mn(e,t,n,r){let i=Vn(e.defs,t),o={defs:{},instances:{}};for(let t in e.defs){let s=e.defs[t];o.defs[t]=Pn(s,i[t],n,r)}for(let t in e.instances){let s=e.instances[t],a=o.defs[s.defId];o.instances[t]=Nn(s,a,i[s.defId],n,r)}return o}function Pn(e,t,n,r){let i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let o=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(o.extendedProps=Object.assign(Object.assign({},o.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(o,n,r);return!o.hasEnd&&r.options.forceEventDuration&&(o.hasEnd=!0),o}function Nn(e,t,n,r,i){let{dateEnv:o}=i,s=r.standardProps&&!0===r.standardProps.allDay,a=r.standardProps&&!1===r.standardProps.hasEnd,l=Object.assign({},e);return s&&(l.range=Vt(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:o.add(l.range.start,r.datesDelta),end:o.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:o.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:o.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:In(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:fe(l.range.start),end:fe(l.range.end)}),l.range.end<l.range.start&&(l.range.end=In(t.allDay,l.range.start,i)),l}class zn{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class Hn{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in en)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=Kt[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Kt)t=Kt[e](t),this.mutate({standardProps:{[e]:t}});else if(e in pn){let n=pn[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=Zt(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:e}):this.mutate({startDelta:e})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=Zt(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:i}=this._context,o={allDay:n.allDay},s=i.createMarker(e);var a,l;if(s&&((null==t||(r=i.createMarker(t),r))&&this._instance)){let e=this._instance.range;!0===n.allDay&&(e=Vt(e));let t=Zt(e.start,s,i,n.granularity);if(r){let s=Zt(e.end,r,i,n.granularity);l=s,(a=t).years===l.years&&a.months===l.months&&a.days===l.days&&a.milliseconds===l.milliseconds?this.mutate({datesDelta:t,standardProps:o}):this.mutate({startDelta:t,endDelta:s,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:t,standardProps:o})}}moveStart(e){let t=Q(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=Q(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=Q(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=We(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:i}=r.getCurrentData(),o=cn(i,t.instanceId);o=Mn(o,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let s=new Hn(r,n,t);this._def=o.defs[n.defId],this._instance=o.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:o}),r.emitter.trigger("eventChange",{oldEvent:s,event:this,relatedEvents:Ln(o,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,t=jn(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new zn(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:i}=this,o={allDay:t.allDay};return t.title&&(o.title=t.title),r&&(o.start=r),i&&(o.end=i),t.publicId&&(o.id=t.publicId),t.groupId&&(o.groupId=t.groupId),t.url&&(o.url=t.url),n.display&&"auto"!==n.display&&(o.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?o.color=n.backgroundColor:(n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.borderColor&&(o.borderColor=n.borderColor)),n.textColor&&(o.textColor=n.textColor),n.classNames.length&&(o.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(o,t.extendedProps):o.extendedProps=t.extendedProps),o}toJSON(){return this.toPlainObject()}}function jn(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function Ln(e,t,n){let{defs:r,instances:i}=e,o=[],s=n?n.instanceId:"";for(let e in i){let n=i[e],a=r[n.defId];n.instanceId!==s&&o.push(new Hn(t,a,n))}return o}function Bn(e,t,n,r){let i={},o={},s={},a=[],l=[],c=Vn(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===c[n.defId].display&&(n.groupId?(i[n.groupId]=[],s[n.groupId]||(s[n.groupId]=n)):o[t]=[])}for(let t in e.instances){let s=e.instances[t],u=e.defs[s.defId],d=c[u.defId],h=s.range,f=!u.allDay&&r?Ft(h,r):h,p=jt(f,n);p&&("inverse-background"===d.display?u.groupId?i[u.groupId].push(p):o[s.defId].push(p):"none"!==d.display&&("background"===d.display?a:l).push({def:u,ui:d,instance:s,range:p,isStart:f.start&&f.start.valueOf()===p.start.valueOf(),isEnd:f.end&&f.end.valueOf()===p.end.valueOf()}))}for(let e in i){let t=zt(i[e],n);for(let n of t){let t=s[e],r=c[t.defId];a.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in o){let r=zt(o[t],n);for(let n of r)a.push({def:e.defs[t],ui:c[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function Un(e,t){e.fcSeg=t}function Wn(e){return e.fcSeg||e.parentNode.fcSeg||null}function Vn(e,t){return rt(e,(e=>Fn(e,t)))}function Fn(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),vn(n)}function Zn(e,t){let n=e.map(Yn);return n.sort(((e,n)=>L(e,n,t))),n.map((e=>e._seg))}function Yn(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,o=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:o,duration:o-i,allDay:Number(n.allDay),_seg:e})}function Gn(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:o}=e.eventRange,s=o.startEditable;for(let e of r)s=e(s,i,o,t);return s}function qn(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Qn(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Xn(e,t,n){let r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Wt(t,r.start)}}function $n(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function Jn(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Kn(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:o,options:s}=t,{eventInteractive:a}=s;return null==a&&(a=n.interactive,null==a&&(a=Boolean(o.hasHandlers("eventClick")))),a?T((e=>{o.trigger("eventClick",{el:e.target,event:new Hn(t,n,r),jsEvent:e,view:t.viewApi})})):{}}const er={start:Ke,end:Ke,allDay:Boolean};function tr(e,t,n){let r=function(e,t){let{refined:n,extra:r}=Je(e,er),i=n.start?t.createMarkerMeta(n.start):null,o=n.end?t.createMarkerMeta(n.end):null,{allDay:s}=n;null==s&&(s=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified));return Object.assign({range:{start:i?i.marker:null,end:o?o.marker:null},allDay:s},r)}(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function nr(e,t){return Lt(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(let n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}(e,t)}function rr(e,t,n){return Object.assign(Object.assign({},ir(e,t,n)),{timeZone:t.timeZone})}function ir(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function or(e,t,n){let r=!1,i=function(e){r||(r=!0,t(e))},o=function(e){r||(r=!0,n(e))},s=e(i,o);s&&"function"==typeof s.then&&s.then(i,o)}class sr extends Error{constructor(e,t){super(e),this.response=t}}function ar(e,t,n){const r={method:e=e.toUpperCase()};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then((e=>{if(e.ok)return e.json().then((t=>[t,e]),(()=>{throw new sr("Failure parsing JSON",e)}));throw new sr("Request failed",e)}))}let lr;function cr(){return null==lr&&(lr=function(){if("undefined"==typeof document)return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),lr}class ur extends Dt{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||"auto"===t.height||"auto"===t.contentHeight,i=r||null==t.height?"":t.height,o=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return cr()||o.push("fc-liquid-hack"),e.children(o,i,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class dr{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function hr(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function fr(e){return{[e.component.uid]:e}}const pr={};class gr{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering((()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))}zoomTo(e,t){let n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:i}=this.getCurrentData(),o=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]);for(let e in r)o.push(e);for(t=0;t<o.length;t+=1)if(n=r[o[t]],n&&n.singleUnit===e)return n;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:qt(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=Q(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),We(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),We(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};let r=this.getCurrentData(),i=tr(n,r.dateEnv,Q({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),kn(i,null,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))}addEvent(e,t){if(e instanceof Hn){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:ln({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof zn)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=ot(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let i=nn(e,n,r,!1);if(i){let e=new Hn(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:ln(i)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:jn(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let i in n){let o=n[i];if(o.publicId===e){if(o.recurringDef)return new Hn(t,o,null);for(let e in r){let n=r[e];if(n.defId===o.defId)return new Hn(t,o,n)}}}return null}getEvents(){let e=this.getCurrentData();return Ln(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new zn(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new zn(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof zn)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=wn(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new zn(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=Q(e);t&&this.trigger("_scrollRequest",{time:t})}}function mr(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function vr(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function br(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}function yr(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function wr(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function Er(e,t){return{left:e.left-t.left,top:e.top-t.top}}const Sr={defs:{},instances:{}};class Cr{constructor(){this.getKeysForEventDefs=De(this._getKeysForEventDefs),this.splitDateSelection=De(this._splitDateSpan),this.splitEventStore=De(this._splitEventStore),this.splitIndividualUi=De(this._splitIndividualUi),this.splitEventDrag=De(this._splitInteraction),this.splitEventResize=De(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,n),o=this.splitEventStore(e.eventStore,n),s=this.splitEventDrag(e.eventDrag),a=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=rt(t,((e,t)=>this.eventUiBuilders[t]||De(Ar)));for(let n in t){let c=t[n],u=o[n]||Sr,d=this.eventUiBuilders[n];l[n]={businessHours:c.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:u,eventUiBases:d(e.eventUiBases[""],c.ui,i[n]),eventSelection:u.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[n]||null,eventResize:a[n]||null}}return l}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return rt(e.defs,(e=>this.getKeysForEventDef(e)))}_splitEventStore(e,t){let{defs:n,instances:r}=e,i={};for(let e in n)for(let r of t[e])i[r]||(i[r]={defs:{},instances:{}}),i[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])i[r]&&(i[r].instances[e]=n)}return i}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let i of t[r])n[i]||(n[i]={}),n[i][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),o=r=>{t[r]||(t[r]={affectedEvents:n[r]||Sr,mutatedEvents:i[r]||Sr,isEvent:e.isEvent})};for(let e in n)o(e);for(let e in i)o(e)}return t}}function Ar(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":vn(r)};return n&&Object.assign(i,n),i}function Dr(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!Wt(r.activeRange,e)),isOther:Boolean(r&&!Wt(r.currentRange,e)),isToday:Boolean(t&&Wt(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Rr(e,t){let n=["fc-day",`fc-day-${le[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}function xr(e,t){let n=["fc-slot",`fc-slot-${le[e.dow]}`];return e.isDisabled?n.push("fc-slot-disabled"):(e.isToday&&(n.push("fc-slot-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-slot-past"),e.isFuture&&n.push("fc-slot-future")),n}const _r=We({year:"numeric",month:"long",day:"numeric"}),Tr=We({week:"long"});function kr(e,t,n="day",r=!0){const{dateEnv:i,options:o,calendarApi:s}=e;let a=i.format(t,"week"===n?Tr:_r);if(o.navLinks){let e=i.toDate(t);const l=e=>{let r="day"===n?o.navLinkDayClick:"week"===n?o.navLinkWeekClick:null;"function"==typeof r?r.call(s,i.toDate(t),e):("string"==typeof r&&(n=r),s.zoomTo(t,n))};return Object.assign({title:V(o.navLinkHint,[a,e],a),"data-navlink":""},r?_(l):{onClick:l})}return{"aria-label":a}}let Or,Ir=null;function Mr(){return null===Ir&&(Ir=function(){let e=document.createElement("div");b(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);let t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return h(e),t}()),Ir}function Pr(){return Or||(Or=function(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=Nr(e);return document.body.removeChild(e),t}()),Or}function Nr(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function zr(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,s=parseInt(n.borderBottomWidth,10)||0,a=Nr(e),l=a.y-r-i,c={borderLeft:r,borderRight:i,borderTop:o,borderBottom:s,scrollbarBottom:a.x-o-s,scrollbarLeft:0,scrollbarRight:0};return Mr()&&"rtl"===n.direction?c.scrollbarLeft=l:c.scrollbarRight=l,t&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function Hr(e,t=!1,n){let r=n?e.getBoundingClientRect():jr(e),i=zr(e,t),o={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return t&&(o.left+=i.paddingLeft,o.right-=i.paddingRight,o.top+=i.paddingTop,o.bottom-=i.paddingBottom),o}function jr(e){let t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function Lr(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}class Br{constructor(e,t,n,r){this.els=t;let i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Ur(this.tops||[],e.tops||[])&&Ur(this.bottoms||[],e.bottoms||[])&&Ur(this.lefts||[],e.lefts||[])&&Ur(this.rights||[],e.rights||[])}}function Ur(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class Wr{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class Vr extends Wr{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Fr extends Wr{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(e){window.scroll(window.pageXOffset,e)}setScrollLeft(e){window.scroll(e,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Zr extends Dt{constructor(){super(...arguments),this.uid=O()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!f(e,".fc-event-mirror")}isValidDateDownEl(e){return!(f(e,".fc-event:not(.fc-bg-event)")||f(e,".fc-more-link")||f(e,"a[data-navlink]")||f(e,".fc-popover"))}}class Yr{constructor(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(-1===this.maxCoord||e.levelCoord+t.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)}splitEntry(e,t,n){let r=0,i=[],o=e.span,s=t.span;return o.start<s.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.start,end:s.start}},i)),o.end>s.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:o.end}},i)),r?(n.push({index:e.index,thickness:e.thickness,span:Xr(s,o)},...i),r):(n.push(e),0)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?($r(r,t.level,t.levelCoord),$r(n,t.level,[e])):$r(n[t.level],t.lateral,e),this.stackCnts[qr(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:i}=this,o=t.length,s=0,a=-1,l=-1,c=null,u=0;for(let d=0;d<o;d+=1){let o=t[d];if(!r&&o>=s+e.thickness)break;let h,f=n[d],p=Jr(f,e.span.start,Gr),g=p[0]+p[1];for(;(h=f[g])&&h.span.start<e.span.end;){let e=o+h.thickness;e>s&&(s=e,c=h,a=d,l=g),e===s&&(u=Math.max(u,i[qr(h)]+1)),g+=1}}let d=0;if(c)for(d=a+1;d<o&&t[d]<s;)d+=1;let h=-1;return d<o&&t[d]===s&&(h=Jr(n[d],e.span.end,Gr)[0]),{touchingLevel:a,touchingLateral:l,touchingEntry:c,stackCnt:u,levelCoord:s,level:d,lateral:h}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let i=0;i<n;i+=1){let n=e[i],o=t[i];for(let e of n)r.push(Object.assign(Object.assign({},e),{levelCoord:o}))}return r}}function Gr(e){return e.span.end}function qr(e){return e.index+":"+e.span.start}function Qr(e){let t=[];for(let i of e){let e=[],o={span:i.span,entries:[i]};for(let i of t)Xr(i.span,o.span)?o={entries:i.entries.concat(o.entries),span:(n=i.span,r=o.span,{start:Math.min(n.start,r.start),end:Math.max(n.end,r.end)})}:e.push(i);e.push(o),t=e}var n,r;return t}function Xr(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function $r(e,t,n){e.splice(t,0,n)}function Jr(e,t,n){let r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){let o=Math.floor(r+(i-r)/2),s=n(e[o]);if(t<s)i=o;else{if(!(t>s))return[o,1];r=o+1}}return[r,0]}class Kr{constructor(e,t){this.emitter=new xn}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const ei={};Boolean;We({weekday:"long"});class ti extends r.wA{constructor(e,t){super(e,t),this.initialNowDate=qt(t.options.now,t.dateEnv),this.initialNowQueriedMs=(new Date).valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this,n=ue(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,Q(1,e.unit)),o=i.valueOf()-n.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:r,todayRange:ni(r)},nextState:{nowDate:i,todayRange:ni(i)},waitMs:o}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout((()=>{this.setState(e,(()=>{this.setTimeout()}))}),t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function ni(e){let t=fe(e);return{start:t,end:ce(t,1)}}ti.contextType=St;class ri{constructor(){this.sliceBusinessHours=De(this._sliceBusinessHours),this.sliceDateSelection=De(this._sliceDateSpan),this.sliceEventStore=De(this._sliceEventStore),this.sliceEventDrag=De(this._sliceInteraction),this.sliceEventResize=De(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...i){let{eventUiBases:o}=e,s=this.sliceEventStore(e.eventStore,o,t,n,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,o,r,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...i),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(e.eventDrag,o,t,n,...i),eventResize:this.sliceEventResize(e.eventResize,o,t,n,...i),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...i){return this._sliceDateSpan({range:{start:e,end:ue(e,1)},allDay:!1},t,n,{},r,...i)}_sliceBusinessHours(e,t,n,r,...i){return e?this._sliceEventStore($t(e,ii(t,Boolean(n)),r),{},t,n,...i).bg:[]}_sliceEventStore(e,t,n,r,...i){if(e){let o=Bn(e,t,ii(n,Boolean(r)),r);return{bg:this.sliceEventRanges(o.bg,i),fg:this.sliceEventRanges(o.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...i){if(!e)return null;let o=Bn(e.mutatedEvents,t,ii(n,Boolean(r)),r);return{segs:this.sliceEventRanges(o.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,i,...o){if(!e)return[];let s=ii(t,Boolean(n)),a=jt(e.range,s);if(a){let t=function(e,t,n){let r=rn({editable:!1},n),i=sn(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:Fn(i,t),instance:Xt(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:a}),r,i),n=this.sliceRange(e.range,...o);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:ce(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}}function ii(e,t){let n=e.activeRange;return t?n:{start:ue(n.start,e.slotMinTime.milliseconds),end:ue(n.end,e.slotMaxTime.milliseconds-864e5)}}function oi(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!Ut(t.validRange,r[e].range))return!1;return ai({eventDrag:e},n)}function si(e,t,n){return!!Ut(t.validRange,e.range)&&ai({dateSelection:e},n)}function ai(e,t){let n=t.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||li)(r,t)}function li(e,t,n={},r){return!(e.eventDrag&&!function(e,t,n,r){let i=t.getCurrentData(),o=e.eventDrag,s=o.mutatedEvents,a=s.defs,l=s.instances,c=Vn(a,o.isEvent?e.eventUiBases:{"":i.selectionConfig});r&&(c=rt(c,r));let u=(p=e.eventStore,g=o.affectedEvents.instances,{defs:p.defs,instances:nt(p.instances,(e=>!g[e.instanceId]))}),d=u.defs,h=u.instances,f=Vn(d,e.eventUiBases);var p,g;for(let r in l){let s=l[r],p=s.range,g=c[s.defId],m=a[s.defId];if(!ci(g.constraints,p,u,e.businessHours,t))return!1;let{eventOverlap:v}=t.options,b="function"==typeof v?v:null;for(let e in h){let n=h[e];if(Bt(p,n.range)){if(!1===f[n.defId].overlap&&o.isEvent)return!1;if(!1===g.overlap)return!1;if(b&&!b(new Hn(t,d[n.defId],n),new Hn(t,m,s)))return!1}}let y=i.eventStore;for(let e of g.allows){let i,o=Object.assign(Object.assign({},n),{range:s.range,allDay:m.allDay}),a=y.defs[m.defId],l=y.instances[r];if(i=a?new Hn(t,a,l):new Hn(t,m),!e(On(o,t),i))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){let i=e.eventStore,o=i.defs,s=i.instances,a=e.dateSelection,l=a.range,{selectionConfig:c}=t.getCurrentData();r&&(c=r(c));if(!ci(c.constraints,l,i,e.businessHours,t))return!1;let{selectOverlap:u}=t.options,d="function"==typeof u?u:null;for(let e in s){let n=s[e];if(Bt(l,n.range)){if(!1===c.overlap)return!1;if(d&&!d(new Hn(t,o[n.defId],n),null))return!1}}for(let e of c.allows){if(!e(On(Object.assign(Object.assign({},n),a),t),null))return!1}return!0}(e,t,n,r))}function ci(e,t,n,r,i){for(let o of e)if(!hi(ui(o,t,n,r,i),t))return!1;return!0}function ui(e,t,n,r,i){return"businessHours"===e?di($t(r,t,i)):"string"==typeof e?di(hn(n,(t=>t.groupId===e))):"object"==typeof e&&e?di($t(e,t,i)):[]}function di(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}function hi(e,t){for(let n of e)if(Ut(n,t))return!0;return!1}const fi=/^(visible|hidden)$/;class pi extends Dt{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,Rt(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,i=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),(0,r.az)("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:i&&-(e.overcomeLeft||0)||"",right:i&&-(e.overcomeRight||0)||"",bottom:i&&-(e.overcomeBottom||0)||"",marginLeft:!i&&-(e.overcomeLeft||0)||"",marginRight:!i&&-(e.overcomeRight||0)||"",marginBottom:!i&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(fi.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1){if(n[e].getBoundingClientRect().width>t)return!0}return!1}needsYScrolling(){if(fi.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1){if(n[e].getBoundingClientRect().height>t)return!0}return!1}getXScrollbarWidth(){return fi.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return fi.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class gi{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,i=!1,o=!1;null!==e?(i=t in r,r[t]=e,n[t]=(n[t]||0)+1,o=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],i=!0)),this.masterCallback&&(i&&this.masterCallback(null,String(t)),o&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return dt(this.currentMap,e,t,n)}getAll(){return ot(this.currentMap)}}function mi(e){let t=g(e,".fc-scrollgrid-shrink"),n=0;for(let e of t)n=Math.max(n,Y(e));return Math.ceil(n)}function vi(e,t){return e.liquid&&t.liquid}function bi(e,t){return null!=t.maxHeight||vi(e,t)}function yi(e,t,n,i){let{expandRows:o}=n;return"function"==typeof t.content?t.content(n):(0,r.az)("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:o?n.clientHeight:""}},n.tableColGroupNode,(0,r.az)(i?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}function wi(e,t){return ae(e,t,st)}function Ei(e,t){let n=[];for(let i of e){let e=i.span||1;for(let o=0;o<e;o+=1)n.push((0,r.az)("col",{style:{width:"shrink"===i.width?Si(t):i.width||"",minWidth:i.minWidth||""}}))}return(0,r.az)("colgroup",{},...n)}function Si(e){return null==e?4:e}function Ci(e){for(let t of e)if("shrink"===t.width)return!0;return!1}function Ai(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function Di(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Ri(e){return(0,r.az)("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function xi(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function _i(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}(class extends Dt{constructor(){super(...arguments),this.processCols=De((e=>e),wi),this.renderMicroColGroup=De(Ei),this.scrollerRefs=new gi,this.scrollerElRefs=new gi(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,i=e.sections||[],o=this.processCols(e.cols),s=this.renderMicroColGroup(o,t.shrinkWidth),a=Ai(e.liquid,n);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let l,c=i.length,u=0,d=[],h=[],f=[];for(;u<c&&"header"===(l=i[u]).type;)d.push(this.renderSection(l,s,!0)),u+=1;for(;u<c&&"body"===(l=i[u]).type;)h.push(this.renderSection(l,s,!1)),u+=1;for(;u<c&&"footer"===(l=i[u]).type;)f.push(this.renderSection(l,s,!0)),u+=1;let p=!cr();const g={role:"rowgroup"};return(0,r.az)("table",{role:"grid",className:a.join(" "),style:{height:e.height}},Boolean(!p&&d.length)&&(0,r.az)("thead",g,...d),Boolean(!p&&h.length)&&(0,r.az)("tbody",g,...h),Boolean(!p&&f.length)&&(0,r.az)("tfoot",g,...f),p&&(0,r.az)("tbody",g,...d,...h,...f))}renderSection(e,t,n){return"outerContent"in e?(0,r.az)(r.HY,{key:e.key},e.outerContent):(0,r.az)("tr",{key:e.key,role:"presentation",className:Di(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,i){if("outerContent"in n)return n.outerContent;let{props:o}=this,{forceYScrollbars:s,scrollerClientWidths:a,scrollerClientHeights:l}=this.state,c=bi(o,e),u=vi(o,e),d=o.liquid?s?"scroll":c?"auto":"hidden":"visible",h=e.key,f=yi(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:o.collapsibleWidth||void 0===a[h]?null:a[h],clientHeight:void 0!==l[h]?l[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return(0,r.az)(i?"th":"td",{ref:n.elRef,role:"presentation"},(0,r.az)("div",{className:"fc-scroller-harness"+(u?" fc-scroller-harness-liquid":"")},(0,r.az)(pi,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:d,overflowX:o.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let n=function(e,t){for(let n of e)if(n.key===t)return n;return null}(this.props.sections,t);n&&Rt(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Ci(this.props.cols)?mi(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Pr(),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,i={},o={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){r=!0;break}}for(let t of this.props.sections){let s=t.key,a=n.currentMap[s];if(a){let t=a.parentNode;i[s]=Math.floor(t.getBoundingClientRect().width-(r?e.y:0)),o[s]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:o}}}).addStateEquality({scrollerClientWidths:st,scrollerClientHeights:st});class Ti extends Dt{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Un(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:i}=e,{eventRange:o}=i,{ui:s}=o,a={event:new Hn(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!e.disableDragging&&Gn(i,t),isStartResizable:!e.disableResizing&&qn(i,t),isEndResizable:!e.disableResizing&&Qn(i),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(i.isStart),isEnd:Boolean(i.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return(0,r.az)(It,Object.assign({},e,{elRef:this.handleEl,elClasses:[...$n(a),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:a,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Un(this.el,this.props.seg)}}class ki extends Dt{render(){let{props:e,context:t}=this,{options:n}=t,{seg:i}=e,{ui:o}=i.eventRange,s=function(e,t,n,r,i,o,s){let{dateEnv:a,options:l}=n,{displayEventTime:c,displayEventEnd:u}=l,d=e.eventRange.def,h=e.eventRange.instance;null==c&&(c=!1!==r),null==u&&(u=!1!==i);let f=h.range.start,p=h.range.end,g=o||e.start||e.eventRange.range.start,m=s||e.end||e.eventRange.range.end,v=fe(f).valueOf()===fe(g).valueOf(),b=fe(ue(p,-1)).valueOf()===fe(ue(m,-1)).valueOf();return c&&!d.allDay&&(v||b)?(g=v?f:g,m=b?p:m,u&&d.hasEnd?a.formatRange(g,m,t,{forcedStartTzo:o?null:h.forcedStartTzo,forcedEndTzo:s?null:h.forcedEndTzo}):a.format(g,t,{forcedTzo:o?null:h.forcedStartTzo})):""}(i,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return(0,r.az)(Ti,Object.assign({},e,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:Kn(i,t),defaultGenerator:Oi,timeText:s}),((e,t)=>(0,r.az)(r.HY,null,(0,r.az)(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&(0,r.az)("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&(0,r.az)("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function Oi(e){return(0,r.az)("div",{className:"fc-event-main-frame"},e.timeText&&(0,r.az)("div",{className:"fc-event-time"},e.timeText),(0,r.az)("div",{className:"fc-event-title-container"},(0,r.az)("div",{className:"fc-event-title fc-sticky"},e.event.title||(0,r.az)(r.HY,null," "))))}const Ii=e=>(0,r.az)(St.Consumer,null,(t=>{let{options:n}=t,i={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return(0,r.az)(It,Object.assign({},e,{elTag:e.elTag||"div",renderProps:i,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))})),Mi=We({day:"numeric"});class Pi extends Dt{constructor(){super(...arguments),this.refineRenderProps=Re(Ni)}render(){let{props:e,context:t}=this,{options:n}=t,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return(0,r.az)(It,Object.assign({},e,{elClasses:[...Rr(i,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":Ce(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function Ni(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,o=Dr(t,e.todayRange,null,r),s=e.showDayNumber?n.format(t,i?e.monthStartFormat:Mi):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},o),{isMonthStart:i,dayNumberText:s}),e.extraRenderProps)}class zi extends Dt{render(){let{props:e}=this,{seg:t}=e;return(0,r.az)(Ti,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:Hi,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function Hi(e){let{title:t}=e.event;return t&&(0,r.az)("div",{className:"fc-event-title"},e.event.title)}function ji(e){return(0,r.az)("div",{className:`fc-${e}`})}class Li extends Dt{constructor(){super(...arguments),this.state={titleId:S()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&Rt(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=w(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:o}=this,s=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return(0,i.jz)((0,r.az)("div",Object.assign({},n.extraAttrs,{id:n.id,className:s.join(" "),"aria-labelledby":o.titleId,ref:this.handleRootEl}),(0,r.az)("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},(0,r.az)("span",{className:"fc-popover-title",id:o.titleId},n.title),(0,r.az)("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),(0,r.az)("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,i=function(e){let t=Lr(e),n=e.getBoundingClientRect();for(let e of t){let t=vr(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(t);if(i){let o=r.getBoundingClientRect(),s=n?f(t,".fc-scrollgrid").getBoundingClientRect().top:i.top,a=e?i.right-o.width:i.left;s=Math.max(s,10),a=Math.min(a,document.documentElement.clientWidth-10-o.width),a=Math.max(a,10);let l=r.offsetParent.getBoundingClientRect();b(r,{top:s-l.top,left:a-l.left})}}}class Bi extends Zr{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:i,todayRange:o,dateProfile:s}=n,a=t.format(i,e.dayPopoverFormat);return(0,r.az)(Pi,{elRef:this.handleRootEl,date:i,dateProfile:s,todayRange:o},((t,i,o)=>(0,r.az)(Li,{elRef:o.ref,id:n.id,title:a,extraClassNames:["fc-more-popover"].concat(o.className||[]),extraAttrs:o,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},function(e){return Boolean(e.dayCellContent||_t("dayCellContent",e))}(e)&&(0,r.az)(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(e,t,n,r){let{rootEl:i,props:o}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:o.dateProfile,dateSpan:Object.assign({allDay:!0,range:{start:o.startDate,end:o.endDate}},o.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}}class Ui extends Dt{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:S()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&Rt(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,i=Vi(t).start;function o(e){let{def:t,instance:r,range:i}=e.eventRange;return{event:new Hn(n,t,r),start:n.dateEnv.toDate(i.start),end:n.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof r&&(r=r({date:i,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(o),hiddenSegs:t.hiddenSegs.map(o),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"==typeof r&&n.calendarApi.zoomTo(i,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return(0,r.az)(St.Consumer,null,(n=>{let{viewApi:i,options:o,calendarApi:s}=n,{moreLinkText:a}=o,{moreCnt:l}=e,c=Vi(e),u="function"==typeof a?a.call(s,l):`+${l} ${a}`,d=V(o.moreLinkHint,[l],u),h={num:l,shortText:`+${l}`,text:u,view:i};return(0,r.az)(r.HY,null,Boolean(e.moreCnt)&&(0,r.az)(It,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),_(this.handleClick)),{title:d,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:e.defaultGenerator||Wi,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},e.children),t.isPopoverOpen&&(0,r.az)(Bi,{id:t.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,onClose:this.handlePopoverClose},e.popoverContent()))}))}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=f(this.linkEl,".fc-view-harness"))}}function Wi(e){return e.text}function Vi(e){if(e.allDayDate)return{start:e.allDayDate,end:ce(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:Fi(t),end:(n=t,n.reduce(Yi).eventRange.range.end)};var n}function Fi(e){return e.reduce(Zi).eventRange.range.start}function Zi(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Yi(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class Gi extends class{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}}},39897:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>_});var r=n(38636),i=n(17920);i.bJ.touchMouseIgnoreWait=500;let o=0,s=0,a=!1;class l{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,o+=1,setTimeout((()=>{o-=1}),i.bJ.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 i.F,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),s+=1,1===s&&window.addEventListener("touchmove",c,{passive:!1})}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),s-=1,s||window.removeEventListener("touchmove",c,{passive:!1})}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!(0,i.a0)(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)}cleanup(){a=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?(0,i.a0)(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return o||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(a=!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,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}}createEventFromTouch(e,t){let n,r,i=e.touches,o=0,s=0;return i&&i.length?(n=i[0].pageX,r=i[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(o=n-this.origPageX,s=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:o,deltaY:s}}}function c(e){a&&e.preventDefault()}class u{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,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",(0,i.aQ)(n,{left:r.left,top:r.top}),(0,i.b3)(n,(()=>{n.style.transition="",e()}))}cleanup(){this.mirrorEl&&((0,i.aP)(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&(0,i.aQ)(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.classList.add("fc-unselectable"),t.classList.add("fc-event-dragging"),(0,i.aQ)(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 d extends i.bc{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 h extends d{constructor(e,t){super(new i.bd(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return(0,i.b4)(this.scrollController.el)}}class f extends d{constructor(e){super(new i.be,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const p="function"==typeof performance?performance.now:Date.now;class g{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=p();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,r=t-window.pageYOffset,i=null===this.pointerScreenY?0:r-this.pointerScreenY,o=null===this.pointerScreenX?0:n-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),o<0?this.everMovedLeft=!0:o>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(p()))}}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:r}=this,i=r-e.distance,o=i*i/(r*r)*this.maxVelocity*t,s=1;switch(e.name){case"left":s=-1;case"right":n.setScrollLeft(n.getScrollLeft()+o*s);break;case"top":s=-1;case"bottom":n.setScrollTop(n.getScrollTop()+o*s)}}computeBestEdge(e,t){let{edgeThreshold:n}=this,r=null,i=this.scrollCaches||[];for(let o of i){let i=o.clientRect,s=e-i.left,a=i.right-e,l=t-i.top,c=i.bottom-t;s>=0&&a>=0&&l>=0&&c>=0&&(l<=n&&this.everMovedUp&&o.canScrollUp()&&(!r||r.distance>l)&&(r={scrollCache:o,name:"top",distance:l}),c<=n&&this.everMovedDown&&o.canScrollDown()&&(!r||r.distance>c)&&(r={scrollCache:o,name:"bottom",distance:c}),s<=n&&this.everMovedLeft&&o.canScrollLeft()&&(!r||r.distance>s)&&(r={scrollCache:o,name:"left",distance:s}),a<=n&&this.everMovedRight&&o.canScrollRight()&&(!r||r.distance>a)&&(r={scrollCache:o,name:"right",distance:a}))}return r}buildCaches(e){return this.queryScrollEls(e).map((e=>e===window?new f(!1):new h(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 m extends i.bI{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,i.as)(document.body),(0,i.au)(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:r,deltaY:i}=e;t=r*r+i*i,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,i.at)(document.body),(0,i.av)(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 l(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 u,this.autoScroller=new g}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 v{constructor(e){this.origRect=(0,i.b7)(e),this.scrollCaches=(0,i.b6)(e).map((e=>new h(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 e of this.scrollCaches)if(!b(e.getEventTarget())&&!(0,i.aG)(n,e.clientRect))return!1;return!0}}function b(e){let t=e.tagName;return"HTML"===t||"BODY"===t}class y{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 i.F}processFirstCoord(e){let t,n={left:e.pageX,top:e.pageY},r=n,o=e.subjectEl;o instanceof HTMLElement&&(t=(0,i.b7)(o),r=(0,i.aH)(r,t));let s=this.initialHit=this.queryHitForOffset(r.left,r.top);if(s){if(this.useSubjectCenter&&t){let e=(0,i.aF)(t,s.rect);e&&(r=(0,i.aI)(e))}this.coordAdjust=(0,i.aJ)(r,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&&w(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=(0,i.b)(this.droppableStore,(e=>(e.component.prepareHits(),new v(e.el))))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:r}=this,o=null;for(let s in n){let a=n[s].component,l=r[s];if(l&&l.isWithinClipping(e,t)){let n=l.computeLeft(),r=l.computeTop(),c=e-n,u=t-r,{origRect:d}=l,h=d.right-d.left,f=d.bottom-d.top;if(c>=0&&c<h&&u>=0&&u<f){let e=a.queryHit(c,u,h,f);e&&(0,i.ba)(e.dateProfile.activeRange,e.dateSpan.range)&&(!o||e.layer>o.layer)&&(e.componentId=s,e.context=a.context,e.rect.left+=n,e.rect.right+=n,e.rect.top+=r,e.rect.bottom+=r,o=e)}}}return o}}function w(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&(0,i.bg)(e.dateSpan,t.dateSpan)}function E(e,t){let n={};for(let r of t.pluginHooks.datePointTransforms)Object.assign(n,r(e,t));var r,i;return Object.assign(n,(r=e,{date:(i=t.dateEnv).toDate(r.range.start),dateStr:i.formatIso(r.range.start,{omitTime:r.allDay}),allDay:r.allDay})),n}class S extends i._{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:r}=this.hitDragging;if(n&&r&&w(n,r)){let{context:r}=t,i=Object.assign(Object.assign({},E(n.dateSpan,r)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view});r.emitter.trigger("dateClick",i)}}},this.dragging=new m(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new y(this.dragging,(0,i.bH)(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class C extends i._{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:r}=t.context,i=r.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!i),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)=>{let{context:n}=this.component,r=null,o=!1;if(e){let t=this.hitDragging.initialHit;e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e)||(r=function(e,t,n){let r=e.dateSpan,o=t.dateSpan,s=[r.range.start,r.range.end,o.range.start,o.range.end];s.sort(i.aw);let a={};for(let r of n){let n=r(e,t);if(!1===n)return null;n&&Object.assign(a,n)}return a.range={start:s[0],end:s[3]},a.allDay=r.allDay,a}(t,e,n.pluginHooks.dateSelectionTransformers)),r&&(0,i.b$)(r,e.dateProfile,n)||(o=!0,r=null)}r?n.dispatch({type:"SELECT_DATES",selection:r}):t||n.dispatch({type:"UNSELECT_DATES"}),o?(0,i.ay)():(0,i.ax)(),t||(this.dragSelection=r)},this.handlePointerUp=e=>{this.dragSelection&&((0,i.cv)(this.dragSelection,e,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,r=this.dragging=new m(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let o=this.hitDragging=new y(this.dragging,(0,i.bH)(e));o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}class A extends i._{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:r}=this,{mirror:o}=r,{options:s}=n.context,a=n.context;this.subjectEl=e.subjectEl;let l=this.subjectSeg=(0,i.$)(e.subjectEl),c=(this.eventRange=l.eventRange).instance.instanceId;this.relevantEvents=(0,i.aW)(a.getCurrentData().eventStore,c),r.minDistance=e.isTouch?0:s.eventDragMinDistance,r.delay=e.isTouch&&c!==n.props.eventSelection?function(e){let{options:t}=e.context,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(n):null,s.fixedMirrorParent?o.parentNode=s.fixedMirrorParent:o.parentNode=(0,i.a0)(t,".fc"),o.revertDuration=s.dragRevertDuration;let u=n.isValidSegDownEl(t)&&!(0,i.a0)(t,".fc-event-resizer");r.setIgnoreMove(!u),this.isDragging=u&&e.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=e=>{let t=this.component.context,n=this.eventRange,r=n.instance.instanceId;e.isTouch?r!==this.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new i.a1(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},this.handleHitUpdate=(e,t)=>{if(!this.isDragging)return;let n=this.relevantEvents,r=this.hitDragging.initialHit,o=this.component.context,s=null,a=null,l=null,c=!1,u={affectedEvents:n,mutatedEvents:(0,i.I)(),isEvent:!0};if(e){s=e.context;let t=s.options;o===s||t.editable&&t.droppable?(a=function(e,t,n){let r=e.dateSpan,o=t.dateSpan,s=r.range.start,a=o.range.start,l={};r.allDay!==o.allDay&&(l.allDay=o.allDay,l.hasEnd=t.context.options.allDayMaintainDuration,o.allDay&&(s=(0,i.q)(s)));let c=(0,i.aB)(s,a,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);c.milliseconds&&(l.allDay=!1);let u={datesDelta:c,standardProps:l};for(let r of n)r(u,e,t);return u}(r,e,s.getCurrentData().pluginHooks.eventDragMutationMassagers),a&&(l=(0,i.bY)(n,s.getCurrentData().eventUiBases,a,s),u.mutatedEvents=l,(0,i.b_)(u,e.dateProfile,s)||(c=!0,a=null,l=null,u.mutatedEvents=(0,i.I)()))):s=null}this.displayDrag(s,u),c?(0,i.ay)():(0,i.ax)(),t||(o===s&&w(r,e)&&(a=null),this.dragging.setMirrorNeedsRevert(!a),this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=s,this.validMutation=a,this.mutatedRelevantEvents=l)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=e=>{if(this.isDragging){let t=this.component.context,n=t.viewApi,{receivingContext:r,validMutation:o}=this,s=this.eventRange.def,a=this.eventRange.instance,l=new i.a1(t,s,a),c=this.relevantEvents,u=this.mutatedRelevantEvents,{finalHit:d}=this.hitDragging;if(this.clearDrag(),t.emitter.trigger("eventDragStop",{el:this.subjectEl,event:l,jsEvent:e.origEvent,view:n}),o){if(r===t){let r=new i.a1(t,u.defs[s.defId],a?u.instances[a.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:u});let d={oldEvent:l,event:r,relatedEvents:(0,i.w)(u,t,a),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:c})}},h={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(h,e(o,t));t.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},d),h),{el:e.subjectEl,delta:o.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",d)}else if(r){let o={event:l,relatedEvents:(0,i.w)(c,t,a),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:c})}};t.emitter.trigger("eventLeave",Object.assign(Object.assign({},o),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:"REMOVE_EVENTS",eventStore:c}),t.emitter.trigger("eventRemove",o);let h=u.defs[s.defId],f=u.instances[a.instanceId],p=new i.a1(r,h,f);r.dispatch({type:"MERGE_EVENTS",eventStore:u});let g={event:p,relatedEvents:(0,i.w)(u,r,f),revert(){r.dispatch({type:"REMOVE_EVENTS",eventStore:u})}};r.emitter.trigger("eventAdd",g),e.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:a.instanceId}),r.emitter.trigger("drop",Object.assign(Object.assign({},E(d.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:d.context.viewApi})),r.emitter.trigger("eventReceive",Object.assign(Object.assign({},g),{draggedEl:e.subjectEl,view:d.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:n}=t.context,r=this.dragging=new m(e.el);r.pointer.selector=A.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.dragScroll;let o=this.hitDragging=new y(this.dragging,i.a8);o.useSubjectCenter=e.useEventCenter,o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("pointerup",this.handlePointerUp),o.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:(0,i.I)(),isEvent:!0}}):r.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}}A.SELECTOR=".fc-event-draggable, .fc-event-resizable";class D extends i._{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),r=(0,i.$)(n),o=this.eventRange=r.eventRange;this.dragging.minDistance=t.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==o.instance.instanceId)},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=(0,i.aW)(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let r=this.querySegEl(e);this.draggingSegEl=r,this.draggingSeg=(0,i.$)(r),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:r,event:new i.a1(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},this.handleHitUpdate=(e,t,n)=>{let{context:r}=this.component,o=this.relevantEvents,s=this.hitDragging.initialHit,a=this.eventRange.instance,l=null,c=null,u=!1,d={affectedEvents:o,mutatedEvents:(0,i.I)(),isEvent:!0};if(e){e.componentId===s.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(s,e)||(l=function(e,t,n,r){let o=e.context.dateEnv,s=e.dateSpan.range.start,a=t.dateSpan.range.start,l=(0,i.aB)(s,a,o,e.largeUnit);if(n){if(o.add(r.start,l)<r.end)return{startDelta:l}}else if(o.add(r.end,l)>r.start)return{endDelta:l};return null}(s,e,n.subjectEl.classList.contains("fc-event-resizer-start"),a.range))}l&&(c=(0,i.bY)(o,r.getCurrentData().eventUiBases,l,r),d.mutatedEvents=c,(0,i.b_)(d,e.dateProfile,r)||(u=!0,l=null,c=null,d.mutatedEvents=null)),c?r.dispatch({type:"SET_EVENT_RESIZE",state:d}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),u?(0,i.ay)():(0,i.ax)(),t||(l&&w(s,e)&&(l=null),this.validMutation=l,this.mutatedRelevantEvents=c)},this.handleDragEnd=e=>{let{context:t}=this.component,n=this.eventRange.def,r=this.eventRange.instance,o=new i.a1(t,n,r),s=this.relevantEvents,a=this.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:o,jsEvent:e.origEvent,view:t.viewApi}),this.validMutation){let l=new i.a1(t,a.defs[n.defId],r?a.instances[r.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:a});let c={oldEvent:o,event:l,relatedEvents:(0,i.w)(a,t,r),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:s})}};t.emitter.trigger("eventResize",Object.assign(Object.assign({},c),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||(0,i.e)(0),endDelta:this.validMutation.endDelta||(0,i.e)(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",c)}else t.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new m(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new y(this.dragging,(0,i.bH)(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return(0,i.a0)(e.subjectEl,".fc-event")}}const R={fixedMirrorParent:i.n},x={dateClick:i.n,eventDragStart:i.n,eventDragStop:i.n,eventDrop:i.n,eventResizeStart:i.n,eventResizeStop:i.n,eventResize:i.n,drop:i.n,eventReceive:i.n,eventLeave:i.n};i.bJ.dataAttrPrefix="";var _=(0,r.rx)({name:"@fullcalendar/interaction",componentInteractions:[S,C,A,D],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,i.aS)(e.origEvent);this.matchesCancel=!!(0,i.a0)(n,t),this.matchesEvent=!!(0,i.a0)(n,A.SELECTOR)},this.onDocumentPointerUp=e=>{let{context:t}=this,{documentPointer:n}=this,r=t.getCurrentData();if(!n.wasTouchScroll){if(r.dateSelection&&!this.isRecentPointerDateSelect){let n=t.options.unselectAuto;!n||n&&this.matchesCancel||t.calendarApi.unselect(e)}r.eventSelection&&!this.matchesEvent&&t.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new l(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:m,optionRefiners:R,listenerRefiners:x})},20902:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(38636),i=n(17920),o=n(6400);const s=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],a={position:"absolute",zIndex:99999,bottom:"1px",left:"1px",background:"#eee",borderColor:"#ddd",borderStyle:"solid",borderWidth:"1px 1px 0 0",padding:"2px 4px",fontSize:"12px",borderTopRightRadius:"3px"};const l={schedulerLicenseKey:String};var c=(0,r.rx)({name:"@fullcalendar/premium-common",premiumReleaseDate:"2023-02-07",optionRefiners:l,viewContainerAppends:[function(e){let t=e.options.schedulerLicenseKey,n="undefined"!=typeof window?window.location.href:"";if(!/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(n)){let n=function(e,t){if(-1!==s.indexOf(e))return"valid";const n=(e||"").match(/^(\d+)-fcs-(\d+)$/);if(n&&10===n[1].length){const e=new Date(1e3*parseInt(n[2],10)),r=i.bJ.mockSchedulerReleaseDate||t;if((0,i.bn)(r)){return(0,i.t)(r,-372)<e?"valid":"outdated"}}return"invalid"}(t,e.pluginHooks.premiumReleaseDate);if("valid"!==n)return(0,o.az)("div",{className:"fc-license-message",style:a},"outdated"===n?(0,o.az)(o.HY,null,"Your license key is too old to work with this version. ",(0,o.az)("a",{href:"https://fullcalendar.io/docs/schedulerLicenseKey#outdated"},"More Info")):(0,o.az)(o.HY,null,"Your license key is invalid. ",(0,o.az)("a",{href:"https://fullcalendar.io/docs/schedulerLicenseKey#invalid"},"More Info")))}return null}]})},43907:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(1024),i=n(30314),o=n(38636),s=n(17920);class a extends r.Component{constructor(){super(...arguments),this.elRef=(0,r.createRef)(),this.needsCustomRenderingResize=!1,this.isInitialRender=!0,this.state={customRenderingMap:new Map}}render(){const e=[];for(const t of this.state.customRenderingMap.values()){const{generatorMeta:n}=t,r="function"==typeof n?n(t.renderProps):n;e.push((0,i.createPortal)(r,t.containerEl,t.id))}return r.createElement("div",{ref:this.elRef},e)}componentDidMount(){const e=new s.cy;this.handleCustomRendering=e.handle.bind(e),this.calendar=new o.f(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),e.subscribe((e=>{this.isInitialRender?this.doCustomRendering(e):this.requestCustomRendering(e)}))}requestCustomRendering(e){this.cancelCustomRendering(),this.customRenderingRequestId=requestAnimationFrame((()=>{a.act((()=>{this.doCustomRendering(e)}))}))}doCustomRendering(e){this.needsCustomRenderingResize=!0,this.setState({customRenderingMap:e})}cancelCustomRendering(){this.customRenderingRequestId&&(cancelAnimationFrame(this.customRenderingRequestId),this.customRenderingRequestId=void 0)}componentDidUpdate(){this.isInitialRender=!1,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.needsCustomRenderingResize&&(this.needsCustomRenderingResize=!1,this.calendar.updateSize())}componentWillUnmount(){this.calendar.destroy(),this.cancelCustomRendering()}getApi(){return this.calendar}}a.act=e=>{e()}},40101:(e,t,n)=>{"use strict";n.d(t,{Z:()=>st});var r=n(38636),i=n(20902),o=n(17920),s=n(6400);function a(e){let t=e.scrollLeft;if("rtl"===window.getComputedStyle(e).direction)switch(u()){case"negative":t*=-1;case"reverse":t=e.scrollWidth-t-e.clientWidth}return t}function l(e,t){if("rtl"===window.getComputedStyle(e).direction)switch(u()){case"reverse":t=e.scrollWidth-t;break;case"negative":t=-(e.scrollWidth-t)}e.scrollLeft=t}let c;function u(){return c||(c=function(){let e,t=document.createElement("div");t.style.position="absolute",t.style.top="-1000px",t.style.width="1px",t.style.height="1px",t.style.overflow="scroll",t.style.direction="rtl",t.style.fontSize="100px",t.innerHTML="A",document.body.appendChild(t),t.scrollLeft>0?e="positive":(t.scrollLeft=1,e=t.scrollLeft>0?"reverse":"negative");return(0,o.aP)(t),e}())}class d{constructor(e,t){this.scrollEl=e,this.isRtl=t,this.updateSize=()=>{let{scrollEl:e}=this,t=(0,o.aN)(e,".fc-sticky");!function(e,t,n){e.forEach(((e,r)=>{let i,{textAlign:s,elWidth:a,parentBound:l}=t[r],c=l.right-l.left;i="center"===s&&c>n?(n-a)/2:"",(0,o.aQ)(e,{left:i,right:i,top:0})}))}(t,this.queryElGeoms(t),e.clientWidth)}}queryElGeoms(e){let{scrollEl:t,isRtl:n}=this,r=function(e){let t=e.getBoundingClientRect(),n=(0,o.b5)(e);return{left:t.left+n.borderLeft+n.scrollbarLeft-a(e),top:t.top+n.borderTop-e.scrollTop}}(t),i=[];for(let t of e){let e=(0,o.aK)((0,o.b4)(t.parentNode,!0,!0),-r.left,-r.top),s=t.getBoundingClientRect(),a=window.getComputedStyle(t),l=window.getComputedStyle(t.parentNode).textAlign,c=null;"start"===l?l=n?"right":"left":"end"===l&&(l=n?"left":"right"),"sticky"!==a.position&&(c=(0,o.aK)(s,-r.left-(parseFloat(a.left)||0),-r.top-(parseFloat(a.top)||0))),i.push({parentBound:e,naturalBound:c,elWidth:s.width,elHeight:s.height,textAlign:l})}return i}}class h extends o.Y{constructor(){super(...arguments),this.elRef=(0,s.Vf)(),this.state={xScrollbarWidth:0,yScrollbarWidth:0},this.handleScroller=e=>{this.scroller=e,(0,o.Z)(this.props.scrollerRef,e)},this.handleSizing=()=>{let{props:e}=this;"scroll-hidden"===e.overflowY&&this.setState({yScrollbarWidth:this.scroller.getYScrollbarWidth()}),"scroll-hidden"===e.overflowX&&this.setState({xScrollbarWidth:this.scroller.getXScrollbarWidth()})}}render(){let{props:e,state:t,context:n}=this,r=n.isRtl&&(0,o.ch)(),i=0,a=0,l=0;return"scroll-hidden"===e.overflowX&&(l=t.xScrollbarWidth),"scroll-hidden"===e.overflowY&&null!=t.yScrollbarWidth&&(r?i=t.yScrollbarWidth:a=t.yScrollbarWidth),(0,s.az)("div",{ref:this.elRef,className:"fc-scroller-harness"+(e.liquid?" fc-scroller-harness-liquid":"")},(0,s.az)(o.ce,{ref:this.handleScroller,elRef:this.props.scrollerElRef,overflowX:"scroll-hidden"===e.overflowX?"scroll":e.overflowX,overflowY:"scroll-hidden"===e.overflowY?"scroll":e.overflowY,overcomeLeft:i,overcomeRight:a,overcomeBottom:l,maxHeight:"number"==typeof e.maxHeight?e.maxHeight+("scroll-hidden"===e.overflowX?t.xScrollbarWidth:0):"",liquid:e.liquid,liquidIsAbsolute:!0},e.children))}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(e){(0,o.E)(e,this.props)||this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}needsXScrolling(){return this.scroller.needsXScrolling()}needsYScrolling(){return this.scroller.needsYScrolling()}}const f="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" ");class p{constructor(e){this.el=e,this.emitter=new o.F,this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new o.D(this._handleWheelWaited.bind(this)),this.scrollWaiter=new o.D(this._handleScrollWaited.bind(this)),this.handleScroll=()=>{this.startScroll(),this.emitter.trigger("scroll",this.isRecentlyWheeled,this.isTouching),this.isRecentlyScrolled=!0,this.scrollWaiter.request(500)},this.handleWheel=()=>{this.isRecentlyWheeled=!0,this.wheelWaiter.request(500)},this.handleTouchStart=()=>{this.isTouching=!0},this.handleTouchEnd=()=>{this.isTouching=!1,this.isRecentlyScrolled||this.endScroll()},e.addEventListener("scroll",this.handleScroll),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd);for(let t of f)e.addEventListener(t,this.handleWheel)}destroy(){let{el:e}=this;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd);for(let t of f)e.removeEventListener(t,this.handleWheel)}startScroll(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))}endScroll(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())}_handleScrollWaited(){this.isRecentlyScrolled=!1,this.isTouching||this.endScroll()}_handleWheelWaited(){this.isRecentlyWheeled=!1}}class g{constructor(e,t){this.isVertical=e,this.scrollEls=t,this.isPaused=!1,this.scrollListeners=t.map((e=>this.bindScroller(e)))}destroy(){for(let e of this.scrollListeners)e.destroy()}bindScroller(e){let{scrollEls:t,isVertical:n}=this,r=new p(e);return r.emitter.on("scroll",((r,i)=>{if(!this.isPaused&&((!this.masterEl||this.masterEl!==e&&(r||i))&&this.assignMaster(e),this.masterEl===e))for(let r of t)r!==e&&(n?r.scrollTop=e.scrollTop:r.scrollLeft=e.scrollLeft)})),r.emitter.on("scrollEnd",(()=>{this.masterEl===e&&(this.masterEl=null)})),r}assignMaster(e){this.masterEl=e;for(let t of this.scrollListeners)t.el!==e&&t.endScroll()}forceScrollLeft(e){this.isPaused=!0;for(let t of this.scrollListeners)l(t.el,e);this.isPaused=!1}forceScrollTop(e){this.isPaused=!0;for(let t of this.scrollListeners)t.el.scrollTop=e;this.isPaused=!1}}o.bJ.SCROLLGRID_RESIZE_INTERVAL=500;class m extends o.Y{constructor(){super(...arguments),this.compileColGroupStats=(0,o.aD)(w,C),this.renderMicroColGroups=(0,o.aD)(o.c2),this.clippedScrollerRefs=new o.cg,this.scrollerElRefs=new o.cg(this._handleScrollerEl.bind(this)),this.chunkElRefs=new o.cg(this._handleChunkEl.bind(this)),this.scrollSyncersBySection={},this.scrollSyncersByColumn={},this.rowUnstableMap=new Map,this.rowInnerMaxHeightMap=new Map,this.anyRowHeightsChanged=!1,this.recentSizingCnt=0,this.state={shrinkWidths:[],forceYScrollbars:!1,forceXScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{},sectionRowMaxHeights:[]},this.handleSizing=(e,t)=>{if(!this.allowSizing())return;t||(this.anyRowHeightsChanged=!0);let n={};(e||!t&&!this.rowUnstableMap.size)&&(n.sectionRowMaxHeights=this.computeSectionRowMaxHeights()),this.setState(Object.assign(Object.assign({shrinkWidths:this.computeShrinkWidths()},this.computeScrollerDims()),n),(()=>{this.rowUnstableMap.size||this.updateStickyScrolling()}))},this.handleRowHeightChange=(e,t)=>{let{rowUnstableMap:n,rowInnerMaxHeightMap:r}=this;if(t){n.delete(e);let t=b(e);r.has(e)&&r.get(e)===t||(r.set(e,t),this.anyRowHeightsChanged=!0),!n.size&&this.anyRowHeightsChanged&&(this.anyRowHeightsChanged=!1,this.setState({sectionRowMaxHeights:this.computeSectionRowMaxHeights()}))}else n.set(e,!0)}}render(){let{props:e,state:t,context:n}=this,{shrinkWidths:r}=t,i=this.compileColGroupStats(e.colGroups.map((e=>[e]))),a=this.renderMicroColGroups(i.map(((e,t)=>[e.cols,r[t]]))),l=(0,o.c3)(e.liquid,n);this.getDims();let c,u=e.sections,d=u.length,h=0,f=[],p=[],g=[];for(;h<d&&"header"===(c=u[h]).type;)f.push(this.renderSection(c,h,i,a,t.sectionRowMaxHeights,!0)),h+=1;for(;h<d&&"body"===(c=u[h]).type;)p.push(this.renderSection(c,h,i,a,t.sectionRowMaxHeights,!1)),h+=1;for(;h<d&&"footer"===(c=u[h]).type;)g.push(this.renderSection(c,h,i,a,t.sectionRowMaxHeights,!0)),h+=1;const m=!(0,o.aU)(),v={role:"rowgroup"};return(0,s.az)("table",{ref:e.elRef,role:"grid",className:l.join(" ")},function(e,t){let n=e.map(((e,n)=>{let r=e.width;return"shrink"===r&&(r=e.totalColWidth+(0,o.c9)(t[n])+1),(0,s.az)("col",{style:{width:r}})}));return(0,s.az)("colgroup",{},...n)}(i,r),Boolean(!m&&f.length)&&(0,s.az)("thead",v,...f),Boolean(!m&&p.length)&&(0,s.az)("tbody",v,...p),Boolean(!m&&g.length)&&(0,s.az)("tfoot",v,...g),m&&(0,s.az)("tbody",v,...f,...p,...g))}renderSection(e,t,n,r,i,a){return"outerContent"in e?(0,s.az)(s.HY,{key:e.key},e.outerContent):(0,s.az)("tr",{key:e.key,role:"presentation",className:(0,o.c4)(e,this.props.liquid).join(" ")},e.chunks.map(((o,s)=>this.renderChunk(e,t,n[s],r[s],o,s,(i[t]||[])[s]||[],a))))}renderChunk(e,t,n,r,i,a,l,c){if("outerContent"in i)return(0,s.az)(s.HY,{key:i.key},i.outerContent);let{state:u}=this,{scrollerClientWidths:d,scrollerClientHeights:f}=u,[p,g]=this.getDims(),m=t*g+a,v=a===(!this.context.isRtl||(0,o.ch)()?g-1:0),b=t===p-1,y=b&&u.forceXScrollbars,w=v&&u.forceYScrollbars,E=n&&n.allowXScrolling,S=(0,o.c6)(this.props,e),C=(0,o.c5)(this.props,e),A=e.expandRows&&C,D=n&&n.totalColMinWidth||"",R=(0,o.c7)(e,i,{tableColGroupNode:r,tableMinWidth:D,clientWidth:void 0!==d[m]?d[m]:null,clientHeight:void 0!==f[m]?f[m]:null,expandRows:A,syncRowHeights:Boolean(e.syncRowHeights),rowSyncHeights:l,reportRowHeightChange:this.handleRowHeightChange},c),x=y?b?"scroll":"scroll-hidden":E?b?"auto":"scroll-hidden":"hidden",_=w?v?"scroll":"scroll-hidden":S?v?"auto":"scroll-hidden":"hidden";return R=(0,s.az)(h,{ref:this.clippedScrollerRefs.createRef(m),scrollerElRef:this.scrollerElRefs.createRef(m),overflowX:x,overflowY:_,liquid:C,maxHeight:e.maxHeight},R),(0,s.az)(c?"th":"td",{key:i.key,ref:this.chunkElRefs.createRef(m),role:"presentation"},R)}componentDidMount(){this.getStickyScrolling=(0,o.aD)(R),this.getScrollSyncersBySection=(0,o.aE)(A.bind(this,!0),null,D),this.getScrollSyncersByColumn=(0,o.aE)(A.bind(this,!1),null,D),this.updateScrollSyncers(),this.handleSizing(!1),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(e,t){this.updateScrollSyncers(),this.handleSizing(!1,t.sectionRowMaxHeights!==this.state.sectionRowMaxHeights)}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing),this.destroyScrollSyncers()}allowSizing(){let e=new Date;return!this.lastSizingDate||e.valueOf()>this.lastSizingDate.valueOf()+o.bJ.SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=e,this.recentSizingCnt=0,!0):(this.recentSizingCnt+=1)<=10}computeShrinkWidths(){let e=this.compileColGroupStats(this.props.colGroups.map((e=>[e]))),[t,n]=this.getDims(),r=t*n,i=[];return e.forEach(((e,t)=>{if(e.hasShrinkCol){let e=this.chunkElRefs.collect(t,r,n);i[t]=(0,o.c8)(e)}})),i}computeSectionRowMaxHeights(){let e=new Map,[t,n]=this.getDims(),r=[];for(let i=0;i<t;i+=1){let t=this.props.sections[i],s=[];if(t&&t.syncRowHeights){let r=[];for(let t=0;t<n;t+=1){let s=i*n+t,a=[],l=this.chunkElRefs.currentMap[s];a=l?(0,o.aN)(l,".fc-scrollgrid-sync-table tr").map((t=>{let n=b(t);return e.set(t,n),n})):[],r.push(a)}let a=r[0].length,l=!0;for(let e=1;e<n;e+=1){if(!(t.chunks[e]&&void 0!==t.chunks[e].outerContent)&&r[e].length!==a){l=!1;break}}if(l){for(let e=0;e<n;e+=1)s.push([]);for(let e=0;e<a;e+=1){let t=[];for(let i=0;i<n;i+=1){let n=r[i][e];null!=n&&t.push(n)}let i=Math.max(...t);for(let e=0;e<n;e+=1)s[e].push(i)}}else{let e=[];for(let t=0;t<n;t+=1)e.push(v(r[t])+r[t].length);let t=Math.max(...e);for(let e=0;e<n;e+=1){let n=r[e].length,i=t-n,o=Math.floor(i/n),a=i-o*(n-1),l=[],c=0;for(c<n&&(l.push(a),c+=1);c<n;)l.push(o),c+=1;s.push(l)}}}r.push(s)}return this.rowInnerMaxHeightMap=e,r}computeScrollerDims(){let e=(0,o.cf)(),[t,n]=this.getDims(),r=!this.context.isRtl||(0,o.ch)()?n-1:0,i=t-1,s=this.clippedScrollerRefs.currentMap,a=this.scrollerElRefs.currentMap,l=!1,c=!1,u={},d={};for(let e=0;e<t;e+=1){let t=s[e*n+r];if(t&&t.needsYScrolling()){l=!0;break}}for(let e=0;e<n;e+=1){let t=s[i*n+e];if(t&&t.needsXScrolling()){c=!0;break}}for(let o=0;o<t;o+=1)for(let t=0;t<n;t+=1){let s=o*n+t,h=a[s];if(h){let n=h.parentNode;u[s]=Math.floor(n.getBoundingClientRect().width-(t===r&&l?e.y:0)),d[s]=Math.floor(n.getBoundingClientRect().height-(o===i&&c?e.x:0))}}return{forceYScrollbars:l,forceXScrollbars:c,scrollerClientWidths:u,scrollerClientHeights:d}}updateStickyScrolling(){let{isRtl:e}=this.context,t=this.scrollerElRefs.getAll().map((t=>[t,e]));this.getStickyScrolling(t).forEach((e=>e.updateSize()))}updateScrollSyncers(){let[e,t]=this.getDims(),n=e*t,r={},i={},s=this.scrollerElRefs.currentMap;for(let n=0;n<e;n+=1){let e=n*t,i=e+t;r[n]=(0,o.aM)(s,e,i,1)}for(let e=0;e<t;e+=1)i[e]=this.scrollerElRefs.collect(e,n,t);this.scrollSyncersBySection=this.getScrollSyncersBySection(r),this.scrollSyncersByColumn=this.getScrollSyncersByColumn(i)}destroyScrollSyncers(){(0,o.b)(this.scrollSyncersBySection,D),(0,o.b)(this.scrollSyncersByColumn,D)}getChunkConfigByIndex(e){let t=this.getDims()[1],n=Math.floor(e/t),r=e%t,i=this.props.sections[n];return i&&i.chunks[r]}forceScrollLeft(e,t){let n=this.scrollSyncersByColumn[e];n&&n.forceScrollLeft(t)}forceScrollTop(e,t){let n=this.scrollSyncersBySection[e];n&&n.forceScrollTop(t)}_handleChunkEl(e,t){let n=this.getChunkConfigByIndex(parseInt(t,10));n&&(0,o.Z)(n.elRef,e)}_handleScrollerEl(e,t){let n=this.getChunkConfigByIndex(parseInt(t,10));n&&(0,o.Z)(n.scrollerElRef,e)}getDims(){let e=this.props.sections.length;return[e,e?this.props.sections[0].chunks.length:0]}}function v(e){let t=0;for(let n of e)t+=n;return t}function b(e){let t=(0,o.aN)(e,".fc-scrollgrid-sync-inner").map(y);return t.length?Math.max(...t):0}function y(e){return e.offsetHeight}function w(e){let t=E(e.cols,"width"),n=E(e.cols,"minWidth"),r=(0,o.c1)(e.cols);return{hasShrinkCol:r,totalColWidth:t,totalColMinWidth:n,allowXScrolling:"shrink"!==e.width&&Boolean(t||n||r),cols:e.cols,width:e.width}}function E(e,t){let n=0;for(let r of e){let e=r[t];"number"==typeof e&&(n+=e*(r.span||1))}return n}m.addStateEquality({shrinkWidths:o.a,scrollerClientWidths:o.E,scrollerClientHeights:o.E});const S={cols:o.ca};function C(e,t){return(0,o.aL)(e,t,S)}function A(e,...t){return new g(e,t)}function D(e){e.destroy()}function R(e,t){return new d(e,t)}o.bJ.MAX_TIMELINE_SLOTS=1e3;const x=[{years:1},{months:1},{days:1},{hours:1},{minutes:30},{minutes:15},{minutes:10},{minutes:5},{minutes:1},{seconds:30},{seconds:15},{seconds:10},{seconds:5},{seconds:1},{milliseconds:500},{milliseconds:100},{milliseconds:10},{milliseconds:1}];function _(e,t,n,r){let i={labelInterval:n.slotLabelInterval,slotDuration:n.slotDuration};!function(e,t,n){const{currentRange:r}=t;if(e.labelInterval){n.countDurationsBetween(r.start,r.end,e.labelInterval)>o.bJ.MAX_TIMELINE_SLOTS&&(console.warn("slotLabelInterval results in too many cells"),e.labelInterval=null)}if(e.slotDuration){n.countDurationsBetween(r.start,r.end,e.slotDuration)>o.bJ.MAX_TIMELINE_SLOTS&&(console.warn("slotDuration results in too many cells"),e.slotDuration=null)}if(e.labelInterval&&e.slotDuration){const t=(0,o.bu)(e.labelInterval,e.slotDuration);(null===t||t<1)&&(console.warn("slotLabelInterval must be a multiple of slotDuration"),e.slotDuration=null)}}(i,e,t),O(i,e,t),function(e,t,n){const{currentRange:r}=t;let{slotDuration:i}=e;if(!i){const s=O(e,t,n);for(let e of x){const t=(0,o.e)(e),n=(0,o.bu)(s,t);if(null!==n&&n>1&&n<=6){i=t;break}}if(i){n.countDurationsBetween(r.start,r.end,i)>200&&(i=null)}i||(i=s),e.slotDuration=i}}(i,e,t);let s=n.slotLabelFormat,a=Array.isArray(s)?s:null!=s?[s]:function(e,t,n,r){let i,s;const{labelInterval:a}=e;let l=(0,o.d)(a).unit;const c=r.weekNumbers;let u=i=s=null;"week"!==l||c||(l="day");switch(l){case"year":u={year:"numeric"};break;case"month":I("years",t,n)>1&&(u={year:"numeric"}),i={month:"short"};break;case"week":I("years",t,n)>1&&(u={year:"numeric"}),i={week:"narrow"};break;case"day":I("years",t,n)>1?u={year:"numeric",month:"long"}:I("months",t,n)>1&&(u={month:"long"}),c&&(i={week:"short"}),s={weekday:"narrow",day:"numeric"};break;case"hour":c&&(u={week:"short"}),I("days",t,n)>1&&(i={weekday:"short",day:"numeric",month:"numeric",omitCommas:!0}),s={hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"};break;case"minute":(0,o.br)(a)/60>=6?(u={hour:"numeric",meridiem:"short"},i=e=>":"+(0,o.an)(e.date.minute,2)):u={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":(0,o.bs)(a)/60>=6?(u={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},i=e=>":"+(0,o.an)(e.date.second,2)):u={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};break;case"millisecond":u={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"},i=e=>"."+(0,o.an)(e.millisecond,3)}return[].concat(u||[],i||[],s||[])}(i,e,t,n);i.headerFormats=a.map((e=>(0,o.x)(e))),i.isTimeScale=Boolean(i.slotDuration.milliseconds);let l=null;if(!i.isTimeScale){const e=(0,o.d)(i.slotDuration).unit;/year|month|week/.test(e)&&(l=e)}i.largeUnit=l,i.emphasizeWeeks=1===(0,o.bo)(i.slotDuration)&&I("weeks",e,t)>=2&&!n.businessHours;let c,u,d=n.snapDuration;d&&(c=(0,o.e)(d),u=(0,o.bu)(i.slotDuration,c)),null==u&&(c=i.slotDuration,u=1),i.snapDuration=c,i.snapsPerSlot=u;let h=(0,o.bt)(e.slotMaxTime)-(0,o.bt)(e.slotMinTime),f=T(e.renderRange.start,i,t),p=T(e.renderRange.end,i,t);i.isTimeScale&&(f=t.add(f,e.slotMinTime),p=t.add((0,o.t)(p,-1),e.slotMaxTime)),i.timeWindowMs=h,i.normalizedRange={start:f,end:p};let g=[],m=f;for(;m<p;)k(m,i,e,r)&&g.push(m),m=t.add(m,i.slotDuration);i.slotDates=g;let v=-1,b=0;const y=[],w=[];for(m=f;m<p;)k(m,i,e,r)?(v+=1,y.push(v),w.push(b)):y.push(v+.5),m=t.add(m,i.snapDuration),b+=1;return i.snapDiffToIndex=y,i.snapIndexToDiff=w,i.snapCnt=v+1,i.slotCnt=i.snapCnt/i.snapsPerSlot,i.isWeekStarts=function(e,t){let{slotDates:n,emphasizeWeeks:r}=e,i=null,o=[];for(let e of n){let n=t.computeWeekNumber(e),s=r&&null!==i&&i!==n;i=n,o.push(s)}return o}(i,t),i.cellRows=function(e,t){let n=e.slotDates,r=e.headerFormats,i=r.map((()=>[])),s=(0,o.bo)(e.slotDuration),a=7===s?"week":1===s?"day":null,l=r.map((e=>e.getLargestUnit?e.getLargestUnit():null));for(let s=0;s<n.length;s+=1){let c=n[s],u=e.isWeekStarts[s];for(let n=0;n<r.length;n+=1){let s=r[n],d=i[n],h=d[d.length-1],f=n===r.length-1,p=r.length>1&&!f,g=null,m=l[n]||(f?a:null);if(p){let e=t.format(c,s);h&&h.text===e?h.colspan+=1:g=M(c,e,m)}else if(!h||(0,o.ao)(t.countDurationsBetween(e.normalizedRange.start,c,e.labelInterval))){g=M(c,t.format(c,s),m)}else h.colspan+=1;g&&(g.weekStart=u,d.push(g))}}return i}(i,t),i.slotsPerLabel=(0,o.bu)(i.labelInterval,i.slotDuration),i}function T(e,t,n){let r=e;return t.isTimeScale||(r=(0,o.q)(r),t.largeUnit&&(r=n.startOf(r,t.largeUnit))),r}function k(e,t,n,r){if(r.isHiddenDay(e))return!1;if(t.isTimeScale){let r=(0,o.q)(e),i=e.valueOf()-r.valueOf()-(0,o.bt)(n.slotMinTime);return i=(i%864e5+864e5)%864e5,i<t.timeWindowMs}return!0}function O(e,t,n){const{currentRange:r}=t;let{labelInterval:i}=e;if(!i){let t;if(e.slotDuration){for(t of x){const n=(0,o.e)(t),r=(0,o.bu)(n,e.slotDuration);if(null!==r&&r<=6){i=n;break}}i||(i=e.slotDuration)}else for(t of x){i=(0,o.e)(t);if(n.countDurationsBetween(r.start,r.end,i)>=18)break}e.labelInterval=i}return i}function I(e,t,n){let r=t.currentRange,i=null;return"years"===e?i=n.diffWholeYears(r.start,r.end):"months"===e||"weeks"===e?i=n.diffWholeMonths(r.start,r.end):"days"===e&&(i=(0,o.y)(r.start,r.end)),i||0}function M(e,t,n){return{date:e,text:t,rowUnit:n,colspan:1,isWeekStart:!1}}class P extends o.Y{constructor(){super(...arguments),this.refineRenderProps=(0,o.A)(H),this.buildCellNavLinkAttrs=(0,o.z)(N)}render(){let{props:e,context:t}=this,{dateEnv:n,options:r}=t,{cell:i,dateProfile:a,tDateProfile:l}=e,c=(0,o.a$)(i.date,e.todayRange,e.nowDate,a),u=this.refineRenderProps({level:e.rowLevel,dateMarker:i.date,text:i.text,dateEnv:t.dateEnv,viewApi:t.viewApi});return(0,s.az)(o.C,{elTag:"th",elClasses:["fc-timeline-slot","fc-timeline-slot-label",i.isWeekStart&&"fc-timeline-slot-em",..."time"===i.rowUnit?(0,o.b0)(c,t.theme):(0,o.a_)(c,t.theme)],elAttrs:{colSpan:i.colspan,"data-date":n.formatIso(i.date,{omitTime:!l.isTimeScale,omitTimeZoneOffset:!0})},renderProps:u,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:z,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},(n=>(0,s.az)("div",{className:"fc-timeline-slot-frame",style:{height:e.rowInnerHeight}},(0,s.az)(n,{elTag:"a",elClasses:["fc-timeline-slot-cushion","fc-scrollgrid-sync-inner",e.isSticky&&"fc-sticky"],elAttrs:this.buildCellNavLinkAttrs(t,i.date,i.rowUnit)}))))}}function N(e,t,n){return n&&"time"!==n?(0,o.b1)(e,t,n):{}}function z(e){return e.text}function H(e){return{level:e.level,date:e.dateEnv.toDate(e.dateMarker),view:e.viewApi,text:e.text}}class j extends o.Y{render(){let{dateProfile:e,tDateProfile:t,rowInnerHeights:n,todayRange:r,nowDate:i}=this.props,{cellRows:o}=t;return(0,s.az)(s.HY,null,o.map(((a,l)=>{let c=l===o.length-1,u=["fc-timeline-header-row",t.isTimeScale&&c?"fc-timeline-header-row-chrono":""];return(0,s.az)("tr",{key:l,className:u.join(" ")},a.map((o=>(0,s.az)(P,{key:o.date.toISOString(),cell:o,rowLevel:l,dateProfile:e,tDateProfile:t,todayRange:r,nowDate:i,rowInnerHeight:n&&n[l],isSticky:!c}))))})))}}class L{constructor(e,t,n,r,i,s){this.slatRootEl=e,this.dateProfile=n,this.tDateProfile=r,this.dateEnv=i,this.isRtl=s,this.outerCoordCache=new o.bb(e,t,!0,!1),this.innerCoordCache=new o.bb(e,(0,o.aO)(t,"div"),!0,!1)}isDateInRange(e){return(0,o.H)(this.dateProfile.currentRange,e)}dateToCoord(e){let{tDateProfile:t}=this,n=this.computeDateSnapCoverage(e)/t.snapsPerSlot,r=Math.floor(n);r=Math.min(r,t.slotCnt-1);let i=n-r,{innerCoordCache:o,outerCoordCache:s}=this;return this.isRtl?s.originClientRect.width-(s.rights[r]-o.getWidth(r)*i):s.lefts[r]+o.getWidth(r)*i}rangeToCoords(e){return{start:this.dateToCoord(e.start),end:this.dateToCoord(e.end)}}durationToCoord(e){let{dateProfile:t,tDateProfile:n,dateEnv:r,isRtl:i}=this,s=0;if(t){let a=r.add(t.activeRange.start,e);n.isTimeScale||(a=(0,o.q)(a)),s=this.dateToCoord(a),!i&&s&&(s+=1)}return s}coordFromLeft(e){return this.isRtl?this.outerCoordCache.originClientRect.width-e:e}computeDateSnapCoverage(e){return B(e,this.tDateProfile,this.dateEnv)}}function B(e,t,n){let r=n.countDurationsBetween(t.normalizedRange.start,e,t.snapDuration);if(r<0)return 0;if(r>=t.snapDiffToIndex.length)return t.snapCnt;let i=Math.floor(r),s=t.snapDiffToIndex[i];return(0,o.ao)(s)?s+=r-i:s=Math.ceil(s),s}function U(e,t){return null===e?{left:"",right:""}:t?{right:e,left:""}:{left:e,right:""}}function W(e,t){return e?t?{right:e.start,left:-e.end}:{left:e.start,right:-e.end}:{left:"",right:""}}class V extends o.Y{constructor(){super(...arguments),this.rootElRef=(0,s.Vf)()}render(){let{props:e,context:t}=this,n=(0,o.d)(e.tDateProfile.slotDuration).unit,r=e.slatCoords&&e.slatCoords.dateProfile===e.dateProfile?e.slatCoords:null;return(0,s.az)(o.ci,{unit:n},((n,i)=>(0,s.az)("div",{className:"fc-timeline-header",ref:this.rootElRef},(0,s.az)("table",{"aria-hidden":!0,className:"fc-scrollgrid-sync-table",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,(0,s.az)("tbody",null,(0,s.az)(j,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:n,todayRange:i,rowInnerHeights:e.rowInnerHeights}))),t.options.nowIndicator&&(0,s.az)("div",{className:"fc-timeline-now-indicator-container"},r&&r.isDateInRange(n)&&(0,s.az)(o.cl,{elClasses:["fc-timeline-now-indicator-arrow"],elStyle:U(r.dateToCoord(n),t.isRtl),isAxis:!0,date:n})))))}componentDidMount(){this.updateSize()}componentDidUpdate(){this.updateSize()}updateSize(){this.props.onMaxCushionWidth&&this.props.onMaxCushionWidth(this.computeMaxCushionWidth())}computeMaxCushionWidth(){return Math.max(...(0,o.aN)(this.rootElRef.current,".fc-timeline-header-row:last-child .fc-timeline-slot-cushion").map((e=>e.getBoundingClientRect().width)))}}class F extends o.Y{render(){let{props:e,context:t}=this,{dateEnv:n,options:r,theme:i}=t,{date:a,tDateProfile:l,isEm:c}=e,u=(0,o.a$)(e.date,e.todayRange,e.nowDate,e.dateProfile),d=Object.assign(Object.assign({date:n.toDate(e.date)},u),{view:t.viewApi});return(0,s.az)(o.C,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-slot","fc-timeline-slot-lane",c&&"fc-timeline-slot-em",l.isTimeScale?(0,o.ao)(n.countDurationsBetween(l.normalizedRange.start,e.date,l.labelInterval))?"fc-timeline-slot-major":"fc-timeline-slot-minor":"",...e.isDay?(0,o.a_)(u,i):(0,o.b0)(u,i)],elAttrs:{"data-date":n.formatIso(a,{omitTimeZoneOffset:!0,omitTime:!l.isTimeScale})},renderProps:d,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount},(e=>(0,s.az)(e,{elTag:"div"})))}}class Z extends o.Y{render(){let{props:e}=this,{tDateProfile:t,cellElRefs:n}=e,{slotDates:r,isWeekStarts:i}=t,o=!t.isTimeScale&&!t.largeUnit;return(0,s.az)("tbody",null,(0,s.az)("tr",null,r.map(((r,a)=>{let l=r.toISOString();return(0,s.az)(F,{key:l,elRef:n.createRef(l),date:r,dateProfile:e.dateProfile,tDateProfile:t,nowDate:e.nowDate,todayRange:e.todayRange,isEm:i[a],isDay:o})}))))}}class Y extends o.Y{constructor(){super(...arguments),this.rootElRef=(0,s.Vf)(),this.cellElRefs=new o.cg,this.handleScrollRequest=e=>{let{onScrollLeftRequest:t}=this.props,{coords:n}=this;if(t&&n){if(e.time){t(n.coordFromLeft(n.durationToCoord(e.time)))}return!0}return null}}render(){let{props:e,context:t}=this;return(0,s.az)("div",{className:"fc-timeline-slots",ref:this.rootElRef},(0,s.az)("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,(0,s.az)(Z,{cellElRefs:this.cellElRefs,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange})))}componentDidMount(){this.updateSizing(),this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.updateSizing(),this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach(),this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{props:e,context:t}=this;if(null!==e.clientWidth&&this.scrollResponder){this.rootElRef.current.offsetWidth&&(this.coords=new L(this.rootElRef.current,(n=this.cellElRefs.currentMap,e.tDateProfile.slotDates.map((e=>{let t=e.toISOString();return n[t]}))),e.dateProfile,e.tDateProfile,t.dateEnv,t.isRtl),e.onCoords&&e.onCoords(this.coords),this.scrollResponder.update(!1))}var n}positionToHit(e){let{outerCoordCache:t}=this.coords,{dateEnv:n,isRtl:r}=this.context,{tDateProfile:i}=this.props,s=t.leftToIndex(e);if(null!=s){let a=t.getWidth(s),l=r?(t.rights[s]-e)/a:(e-t.lefts[s])/a,c=Math.floor(l*i.snapsPerSlot),u=n.add(i.slotDates[s],(0,o.bp)(i.snapDuration,c));return{dateSpan:{range:{start:u,end:n.add(u,i.snapDuration)},allDay:!this.props.tDateProfile.isTimeScale},dayEl:this.cellElRefs.currentMap[s],left:t.lefts[s],right:t.rights[s]}}return null}}function G(e,t,n){let r=[];if(n)for(let i of e){let e=n.rangeToCoords(i),o=Math.round(e.start),s=Math.round(e.end);s-o<t&&(s=o+t),r.push({start:o,end:s})}return r}class q extends o.Y{render(){let{props:e}=this,t=[].concat(e.eventResizeSegs,e.dateSelectionSegs);return e.timelineCoords&&(0,s.az)("div",{className:"fc-timeline-bg"},this.renderSegs(e.businessHourSegs||[],e.timelineCoords,"non-business"),this.renderSegs(e.bgEventSegs||[],e.timelineCoords,"bg-event"),this.renderSegs(t,e.timelineCoords,"highlight"))}renderSegs(e,t,n){let{todayRange:r,nowDate:i}=this.props,{isRtl:a}=this.context,l=G(e,0,t),c=e.map(((e,t)=>{let c=W(l[t],a);return(0,s.az)("div",{key:(0,o.bU)(e.eventRange),className:"fc-timeline-bg-harness",style:c},"bg-event"===n?(0,s.az)(o.cq,Object.assign({seg:e},(0,o.bT)(e,r,i))):(0,o.cp)(n))}));return(0,s.az)(s.HY,null,c)}}class Q extends o.bX{sliceRange(e,t,n,r,i){let s=function(e,t,n){if(!t.isTimeScale&&(e=(0,o.az)(e),t.largeUnit)){let r=e;((e={start:n.startOf(e.start,t.largeUnit),end:n.startOf(e.end,t.largeUnit)}).end.valueOf()!==r.end.valueOf()||e.end<=e.start)&&(e={start:e.start,end:n.add(e.end,t.slotDuration)})}return e}(e,r,i),a=[];if(B(s.start,r,i)<B(s.end,r,i)){let e=(0,o.o)(s,r.normalizedRange);e&&a.push({start:e.start,end:e.end,isStart:e.start.valueOf()===s.start.valueOf()&&k(e.start,r,t,n),isEnd:e.end.valueOf()===s.end.valueOf()&&k((0,o.bh)(e.end,-1),r,t,n)})}return a}}const X=(0,o.x)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});class $ extends o.Y{render(){let{props:e}=this;return(0,s.az)(o.ck,Object.assign({},e,{elClasses:["fc-timeline-event","fc-h-event"],defaultTimeFormat:X,defaultDisplayEventTime:!e.isTimeScale}))}}class J extends o.Y{render(){let{props:e,context:t}=this,{hiddenSegs:n,placement:r,resourceId:i}=e,{top:a,hcoords:l}=r,c=l&&null!==a,u=W(l,t.isRtl),d=i?{resourceId:i}:{};return(0,s.az)(o.cs,{elRef:e.elRef,elClasses:["fc-timeline-more-link"],elStyle:Object.assign({visibility:c?"":"hidden",top:a||0},u),allDayDate:null,moreCnt:n.length,allSegs:n,hiddenSegs:n,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:d,popoverContent:()=>(0,s.az)(s.HY,null,n.map((t=>{let n=t.eventRange.instance.instanceId;return(0,s.az)("div",{key:n,style:{visibility:e.isForcedInvisible[n]?"hidden":""}},(0,s.az)($,Object.assign({isTimeScale:e.isTimeScale,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:n===e.eventSelection},(0,o.bT)(t,e.todayRange,e.nowDate))))})))},(e=>(0,s.az)(e,{elTag:"div",elClasses:["fc-timeline-more-link-inner","fc-sticky"]})))}}class K extends o.Y{constructor(){super(...arguments),this.slicer=new Q,this.sortEventSegs=(0,o.z)(o.bS),this.harnessElRefs=new o.cg,this.moreElRefs=new o.cg,this.innerElRef=(0,s.Vf)(),this.state={eventInstanceHeights:{},moreLinkHeights:{}},this.handleResize=e=>{e&&this.updateSize()}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,{dateProfile:i,tDateProfile:a}=e,l=this.slicer.sliceProps(e,i,a.isTimeScale?null:e.nextDayThreshold,n,i,n.dateProfileGenerator,a,n.dateEnv),c=(l.eventDrag?l.eventDrag.segs:null)||(l.eventResize?l.eventResize.segs:null)||[],u=this.sortEventSegs(l.fgEventSegs,r.eventOrder),d=G(u,r.eventMinWidth,e.timelineCoords),[h,f]=function(e,t,n,r,i,s){let a=[],l=[];for(let r=0;r<e.length;r+=1){let i=e[r],o=n[i.eventRange.instance.instanceId],s=t[r];o&&s?a.push({index:r,span:s,thickness:o}):l.push({seg:i,hcoords:s,top:null})}let c=new o.bB;null!=i&&(c.strictOrder=i),null!=s&&(c.maxStackCnt=s);let u=c.addSegs(a),d=u.map((t=>({seg:e[t.index],hcoords:t.span,top:null}))),h=(0,o.bF)(u),f=[],p=[];const g=t=>e[t.index];for(let t=0;t<h.length;t+=1){let n=h[t],i=n.entries.map(g),s=r[(0,o.bx)((0,o.ct)(i))];null!=s?f.push({index:e.length+t,thickness:s,span:n.span}):p.push({seg:i,hcoords:n.span,top:null})}c.maxStackCnt=-1,c.addSegs(f);let m=c.toRects(),v=[],b=0;for(let t of m){let n=t.index;v.push({seg:n<e.length?e[n]:h[n-e.length].entries.map(g),hcoords:t.span,top:t.levelCoord}),b=Math.max(b,t.levelCoord+t.thickness)}return[v.concat(l,d,p),b]}(u,d,t.eventInstanceHeights,t.moreLinkHeights,r.eventOrderStrict,r.eventMaxStack),p=(l.eventDrag?l.eventDrag.affectedInstances:null)||(l.eventResize?l.eventResize.affectedInstances:null)||{};return(0,s.az)(s.HY,null,(0,s.az)(q,{businessHourSegs:l.businessHourSegs,bgEventSegs:l.bgEventSegs,timelineCoords:e.timelineCoords,eventResizeSegs:l.eventResize?l.eventResize.segs:[],dateSelectionSegs:l.dateSelectionSegs,nowDate:e.nowDate,todayRange:e.todayRange}),(0,s.az)("div",{className:"fc-timeline-events fc-scrollgrid-sync-inner",ref:this.innerElRef,style:{height:f}},this.renderFgSegs(h,p,!1,!1,!1),this.renderFgSegs(function(e,t,n){if(!e.length||!t)return[];let r=function(e){let t={};for(let n of e){let{seg:e}=n;Array.isArray(e)||(t[e.eventRange.instance.instanceId]=n.top)}return t}(n);return e.map((e=>({seg:e,hcoords:t.rangeToCoords(e),top:r[e.eventRange.instance.instanceId]})))}(c,e.timelineCoords,h),{},Boolean(l.eventDrag),Boolean(l.eventResize),!1)))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){e.eventStore===this.props.eventStore&&e.timelineCoords===this.props.timelineCoords&&t.moreLinkHeights===this.state.moreLinkHeights||this.updateSize()}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateSize(){let{props:e}=this,{timelineCoords:t}=e;const n=this.innerElRef.current;e.onHeightChange&&e.onHeightChange(n,!1),t&&this.setState({eventInstanceHeights:(0,o.b)(this.harnessElRefs.currentMap,(e=>Math.round(e.getBoundingClientRect().height))),moreLinkHeights:(0,o.b)(this.moreElRefs.currentMap,(e=>Math.round(e.getBoundingClientRect().height)))},(()=>{e.onHeightChange&&e.onHeightChange(n,!0)})),e.syncParentMinHeight&&(n.parentElement.style.minHeight=n.style.height)}renderFgSegs(e,t,n,r,i){let{harnessElRefs:a,moreElRefs:l,props:c,context:u}=this,d=n||r||i;return(0,s.az)(s.HY,null,e.map((e=>{let{seg:h,hcoords:f,top:p}=e;if(Array.isArray(h)){let n=(0,o.bx)((0,o.ct)(h));return(0,s.az)(J,{key:"m:"+n,elRef:l.createRef(n),hiddenSegs:h,placement:e,dateProfile:c.dateProfile,nowDate:c.nowDate,todayRange:c.todayRange,isTimeScale:c.tDateProfile.isTimeScale,eventSelection:c.eventSelection,resourceId:c.resourceId,isForcedInvisible:t})}let g=h.eventRange.instance.instanceId,m=d||Boolean(!t[g]&&f&&null!==p),v=W(f,u.isRtl);return(0,s.az)("div",{key:"e:"+g,ref:d?null:a.createRef(g),className:"fc-timeline-event-harness",style:Object.assign({visibility:m?"":"hidden",top:p||0},v)},(0,s.az)($,Object.assign({isTimeScale:c.tDateProfile.isTimeScale,seg:h,isDragging:n,isResizing:r,isDateSelecting:i,isSelected:g===c.eventSelection},(0,o.bT)(h,c.todayRange,c.nowDate))))})))}}K.addStateEquality({eventInstanceHeights:o.E,moreLinkHeights:o.E});class ee extends o.bf{constructor(){super(...arguments),this.slatsRef=(0,s.Vf)(),this.state={coords:null},this.handeEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleCoords=e=>{this.setState({coords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,{dateProfile:i,tDateProfile:a}=e,l=(0,o.d)(a.slotDuration).unit;return(0,s.az)("div",{className:"fc-timeline-body",ref:this.handeEl,style:{minWidth:e.tableMinWidth,height:e.clientHeight,width:e.clientWidth}},(0,s.az)(o.ci,{unit:l},((l,c)=>(0,s.az)(s.HY,null,(0,s.az)(Y,{ref:this.slatsRef,dateProfile:i,tDateProfile:a,nowDate:l,todayRange:c,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleCoords,onScrollLeftRequest:e.onScrollLeftRequest}),(0,s.az)(K,{dateProfile:i,tDateProfile:e.tDateProfile,nowDate:l,todayRange:c,nextDayThreshold:r.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:t.coords,syncParentMinHeight:!0}),r.nowIndicator&&t.coords&&t.coords.isDateInRange(l)&&(0,s.az)("div",{className:"fc-timeline-now-indicator-container"},(0,s.az)(o.cl,{elClasses:["fc-timeline-now-indicator-line"],elStyle:U(t.coords.dateToCoord(l),n.isRtl),isAxis:!1,date:l}))))))}queryHit(e,t,n,r){let i=this.slatsRef.current.positionToHit(e);return i?{dateProfile:this.props.dateProfile,dateSpan:i.dateSpan,rect:{left:i.left,right:i.right,top:0,bottom:r},dayEl:i.dayEl,layer:0}:null}}class te extends o.bf{constructor(){super(...arguments),this.buildTimelineDateProfile=(0,o.z)(_),this.scrollGridRef=(0,s.Vf)(),this.state={slatCoords:null,slotCushionMaxWidth:null},this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleScrollLeftRequest=e=>{this.scrollGridRef.current.forceScrollLeft(0,e)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,i=!e.forPrint&&(0,o.cd)(r),a=!e.forPrint&&(0,o.cc)(r),l=this.buildTimelineDateProfile(e.dateProfile,n.dateEnv,r,n.dateProfileGenerator),{slotMinWidth:c}=r,u=ne(l,c||this.computeFallbackSlotMinWidth(l)),d=[{type:"header",key:"header",isSticky:i,chunks:[{key:"timeline",content:n=>(0,s.az)(V,{dateProfile:e.dateProfile,clientWidth:n.clientWidth,clientHeight:n.clientHeight,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,tDateProfile:l,slatCoords:t.slatCoords,onMaxCushionWidth:c?null:this.handleMaxCushionWidth})}]},{type:"body",key:"body",liquid:!0,chunks:[{key:"timeline",content:t=>(0,s.az)(ee,Object.assign({},e,{clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,tDateProfile:l,onSlatCoords:this.handleSlatCoords,onScrollLeftRequest:this.handleScrollLeftRequest}))}]}];return a&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"timeline",content:o.cb}]}),(0,s.az)(o.cu,{elClasses:["fc-timeline",!1===r.eventOverlap?"fc-timeline-overlap-disabled":""],viewSpec:n.viewSpec},(0,s.az)(m,{ref:this.scrollGridRef,liquid:!e.isHeightAuto&&!e.forPrint,collapsibleWidth:!1,colGroups:[{cols:u}],sections:d}))}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}}function ne(e,t){return[{span:e.slotCnt,minWidth:t||1}]}(0,o.i)('.fc .fc-timeline-body{min-height:100%;position:relative;z-index:1}.fc .fc-timeline-slots{bottom:0;position:absolute;top:0;z-index:1}.fc .fc-timeline-slots>table{height:100%}.fc .fc-timeline-slot-minor{border-style:dotted}.fc .fc-timeline-slot-frame{align-items:center;display:flex;justify-content:center}.fc .fc-timeline-header-row-chrono .fc-timeline-slot-frame{justify-content:flex-start}.fc .fc-timeline-header-row:last-child .fc-timeline-slot-frame{overflow:hidden}.fc .fc-timeline-slot-cushion{padding:4px 5px;white-space:nowrap}.fc-direction-ltr .fc-timeline-slot{border-right:0!important}.fc-direction-rtl .fc-timeline-slot{border-left:0!important}.fc .fc-timeline-now-indicator-container{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:4}.fc .fc-timeline-now-indicator-arrow,.fc .fc-timeline-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;position:absolute;top:0}.fc .fc-timeline-now-indicator-arrow{border-left-color:transparent;border-right-color:transparent;border-width:6px 5px 0;margin:0 -6px}.fc .fc-timeline-now-indicator-line{border-width:0 0 0 1px;bottom:0;margin:0 -1px}.fc .fc-timeline-events{position:relative;width:0;z-index:3}.fc .fc-timeline-event-harness,.fc .fc-timeline-more-link{position:absolute;top:0}.fc-timeline-event{z-index:1}.fc-timeline-event.fc-event-mirror{z-index:2}.fc-timeline-event{align-items:center;border-radius:0;display:flex;font-size:var(--fc-small-font-size);margin-bottom:1px;padding:2px 1px;position:relative}.fc-timeline-event .fc-event-main{flex-grow:1;flex-shrink:1;min-width:0}.fc-timeline-event .fc-event-time{font-weight:700}.fc-timeline-event .fc-event-time,.fc-timeline-event .fc-event-title{padding:0 2px;white-space:nowrap}.fc-direction-ltr .fc-timeline-event.fc-event-end,.fc-direction-ltr .fc-timeline-more-link{margin-right:1px}.fc-direction-rtl .fc-timeline-event.fc-event-end,.fc-direction-rtl .fc-timeline-more-link{margin-left:1px}.fc-timeline-overlap-disabled .fc-timeline-event{margin-bottom:0;padding-bottom:5px;padding-top:5px}.fc-timeline-event:not(.fc-event-end):after,.fc-timeline-event:not(.fc-event-start):before{border-color:transparent #000;border-style:solid;border-width:5px;content:"";flex-grow:0;flex-shrink:0;height:0;margin:0 1px;opacity:.5;width:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-start):before,.fc-direction-rtl .fc-timeline-event:not(.fc-event-end):after{border-left:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-end):after,.fc-direction-rtl .fc-timeline-event:not(.fc-event-start):before{border-right:0}.fc-timeline-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;font-size:var(--fc-small-font-size);padding:1px}.fc-timeline-more-link-inner{display:inline-block;left:0;padding:2px;right:0}.fc .fc-timeline-bg{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:2}.fc .fc-timeline-bg .fc-non-business{z-index:1}.fc .fc-timeline-bg .fc-bg-event{z-index:2}.fc .fc-timeline-bg .fc-highlight{z-index:3}.fc .fc-timeline-bg-harness{bottom:0;position:absolute;top:0}');var re=(0,r.rx)({name:"@fullcalendar/timeline",premiumReleaseDate:"2023-02-07",deps:[i.Z],initialView:"timelineDay",views:{timeline:{component:te,usesMinMaxTime:!0,eventResizableFromStart:!0},timelineDay:{type:"timeline",duration:{days:1}},timelineWeek:{type:"timeline",duration:{weeks:1}},timelineMonth:{type:"timeline",duration:{months:1}},timelineYear:{type:"timeline",duration:{years:1}}}});const ie="_fc:",oe={id:String,parentId:String,children:o.n,title:String,businessHours:o.n,extendedProps:o.n,eventEditable:Boolean,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventConstraint:o.n,eventOverlap:Boolean,eventAllow:o.n,eventClassNames:o.aT,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String};function se(e,t="",n,r){let{refined:i,extra:s}=(0,o.aj)(e,oe),a={id:i.id||ie+(0,o.g)(),parentId:i.parentId||t,title:i.title||"",businessHours:i.businessHours?(0,o.X)(i.businessHours,r):null,ui:(0,o.W)({editable:i.eventEditable,startEditable:i.eventStartEditable,durationEditable:i.eventDurationEditable,constraint:i.eventConstraint,overlap:i.eventOverlap,allow:i.eventAllow,classNames:i.eventClassNames,backgroundColor:i.eventBackgroundColor,borderColor:i.eventBorderColor,textColor:i.eventTextColor,color:i.eventColor},r),extendedProps:Object.assign(Object.assign({},s),i.extendedProps)};if(Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),n[a.id]);else if(n[a.id]=a,i.children)for(let e of i.children)se(e,a.id,n,r);return a}function ae(e){return 0===e.indexOf(ie)?"":e}class le{constructor(e,t){this._context=e,this._resource=t}setProp(e,t){let n=this._resource;this._context.dispatch({type:"SET_RESOURCE_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)}setExtendedProp(e,t){let n=this._resource;this._context.dispatch({type:"SET_RESOURCE_EXTENDED_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)}sync(e){let t=this._context,n=e.id;this._resource=t.getCurrentData().resourceStore[n],t.emitter.trigger("resourceChange",{oldResource:new le(t,e),resource:this,revert(){t.dispatch({type:"ADD_RESOURCE",resourceHash:{[n]:e}})}})}remove(){let e=this._context,t=this._resource,n=t.id;e.dispatch({type:"REMOVE_RESOURCE",resourceId:n}),e.emitter.trigger("resourceRemove",{resource:this,revert(){e.dispatch({type:"ADD_RESOURCE",resourceHash:{[n]:t}})}})}getParent(){let e=this._context,t=this._resource.parentId;return t?new le(e,e.getCurrentData().resourceSource[t]):null}getChildren(){let e=this._resource.id,t=this._context,{resourceStore:n}=t.getCurrentData(),r=[];for(let i in n)n[i].parentId===e&&r.push(new le(t,n[i]));return r}getEvents(){let e=this._resource.id,t=this._context,{defs:n,instances:r}=t.getCurrentData().eventStore,i=[];for(let s in r){let a=r[s],l=n[a.defId];-1!==l.resourceIds.indexOf(e)&&i.push(new o.a1(t,l,a))}return i}get id(){return ae(this._resource.id)}get title(){return this._resource.title}get eventConstraint(){return this._resource.ui.constraints[0]||null}get eventOverlap(){return this._resource.ui.overlap}get eventAllow(){return this._resource.ui.allows[0]||null}get eventBackgroundColor(){return this._resource.ui.backgroundColor}get eventBorderColor(){return this._resource.ui.borderColor}get eventTextColor(){return this._resource.ui.textColor}get eventClassNames(){return this._resource.ui.classNames}get extendedProps(){return this._resource.extendedProps}toPlainObject(e={}){let t=this._resource,{ui:n}=t,r=this.id,i={};return r&&(i.id=r),t.title&&(i.title=t.title),e.collapseEventColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?i.eventColor=n.backgroundColor:(n.backgroundColor&&(i.eventBackgroundColor=n.backgroundColor),n.borderColor&&(i.eventBorderColor=n.borderColor)),n.textColor&&(i.eventTextColor=n.textColor),n.classNames.length&&(i.eventClassNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(i,t.extendedProps):i.extendedProps=t.extendedProps),i}toJSON(){return this.toPlainObject()}}class ce extends o.aZ{getKeyInfo(e){return Object.assign({"":{}},e.resourceStore)}getKeysForDateSpan(e){return[e.resourceId||""]}getKeysForEventDef(e){let t=e.resourceIds;return t.length?t:[""]}}const ue=(0,o.ap)("id,title");function de(e){return{resource:new le(e.context,e.resource)}}function he(e,t,n,r,i,o){let s=function(e,t,n,r){let i=function(e,t){let n={};for(let t in e){let r=e[t];n[t]={resource:r,resourceFields:me(r),children:[]}}for(let r in e){let i=e[r];if(i.parentId){let e=n[i.parentId];e&&ge(n[r],e.children,t)}}return n}(e,r),o=[];for(let e in i){let s=i[e];s.resource.parentId||pe(s,o,n,0,t,r)}return o}(e,r?-1:1,t,n),a=[];return fe(s,a,r,[],0,i,o),a}function fe(e,t,n,r,i,o,s){for(let a=0;a<e.length;a+=1){let l=e[a],c=l.group;if(c)if(n){let e=t.length,a=r.length;if(fe(l.children,t,n,r.concat(0),i,o,s),e<t.length){let n=t[e];(n.rowSpans=n.rowSpans.slice())[a]=t.length-e}}else{let e=c.spec.field+":"+c.value,a=null!=o[e]?o[e]:s;t.push({id:e,group:c,isExpanded:a}),a&&fe(l.children,t,n,r,i+1,o,s)}else if(l.resource){let e=l.resource.id,a=null!=o[e]?o[e]:s;t.push({id:e,rowSpans:r,depth:i,isExpanded:a,hasChildren:Boolean(l.children.length),resource:l.resource,resourceFields:l.resourceFields}),a&&fe(l.children,t,n,r,i+1,o,s)}}}function pe(e,t,n,r,i,s){if(n.length&&(-1===i||r<=i)){let a=function(e,t,n){let r,i,s=e.resourceFields[n.field];if(n.order)for(i=0;i<t.length;i+=1){let e=t[i];if(e.group){let t=(0,o.ar)(s,e.group.value)*n.order;if(0===t){r=e;break}if(t<0)break}}else for(i=0;i<t.length;i+=1){let e=t[i];if(e.group&&s===e.group.value){r=e;break}}r||(r={group:{value:s,spec:n},children:[]},t.splice(i,0,r));return r}(e,t,n[0]);pe(e,a.children,n.slice(1),r+1,i,s)}else ge(e,t,s)}function ge(e,t,n){let r;for(r=0;r<t.length;r+=1){if((0,o.aq)(t[r].resourceFields,e.resourceFields,n)>0)break}t.splice(r,0,e)}function me(e){let t=Object.assign(Object.assign(Object.assign({},e.extendedProps),e.ui),e);return delete t.ui,delete t.extendedProps,t}function ve(e,t){let{resourceEditable:n}=e;if(null==n){let r=e.sourceId&&t.getCurrentData().eventSources[e.sourceId];r&&(n=r.extendedProps.resourceEditable),null==n&&(n=t.options.eventResourceEditable,null==n&&(n=t.options.editable))}return n}function be(e,t,n,r){if(t){let t=function(e,t){return(0,o.h)(e,(e=>(0,o.b9)(e.range,t)))}(n.instances,r),i=function(e,t){let n={};for(let r in e){let i=e[r];for(let e of t[i.defId].resourceIds)n[e]=!0}return n}(t,n.defs);return Object.assign(i,function(e,t){let n={};for(let r in e){let e;for(;(e=t[r])&&(r=e.parentId,r);)n[r]=!0}return n}(i,e)),(0,o.h)(e,((e,t)=>i[t]))}return e}function ye(e){return(0,o.b)(e,(e=>e.ui))}function we(e,t,n){return(0,o.b)(e,((e,r)=>r?function(e,t,n){let r=[];for(let e of t.resourceIds)n[e]&&r.unshift(n[e]);return r.unshift(e),(0,o.aY)(r)}(e,t[r],n):e))}let Ee=[];function Se(e){Ee.push(e)}function Ce(e){return Ee[e]}function Ae(){return Ee}const De={id:String,resources:o.n,url:String,method:String,startParam:String,endParam:String,timeZoneParam:String,extraParams:o.n};function Re(e){let t;if("string"==typeof e?t={url:e}:"function"==typeof e||Array.isArray(e)?t={resources:e}:"object"==typeof e&&e&&(t=e),t){let{refined:n,extra:r}=(0,o.aj)(t,De);!function(e){for(let t in e)console.warn(`Unknown resource prop '${t}'`)}(r);let i=function(e){let t=Ae();for(let n=t.length-1;n>=0;n-=1){let r=t[n].parseMeta(e);if(r)return{meta:r,sourceDefId:n}}return null}(n);if(i)return{_raw:e,sourceId:(0,o.g)(),sourceDefId:i.sourceDefId,meta:i.meta,publicId:n.id||"",isFetching:!1,latestFetchId:"",fetchRange:null}}return null}function xe(e,t,n){let{options:r,dateProfile:i}=n;if(!e||!t)return _e(r.initialResources||r.resources,i.activeRange,r.refetchResourcesOnNavigate,n);switch(t.type){case"RESET_RESOURCE_SOURCE":return _e(t.resourceSourceInput,i.activeRange,r.refetchResourcesOnNavigate,n);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return function(e,t,n,r){if(n&&!function(e){return Boolean(Ce(e.sourceDefId).ignoreRange)}(e)&&(!e.fetchRange||!(0,o.b8)(e.fetchRange,t)))return Te(e,t,r);return e}(e,i.activeRange,r.refetchResourcesOnNavigate,n);case"RECEIVE_RESOURCES":case"RECEIVE_RESOURCE_ERROR":return function(e,t,n){if(t===e.latestFetchId)return Object.assign(Object.assign({},e),{isFetching:!1,fetchRange:n});return e}(e,t.fetchId,t.fetchRange);case"REFETCH_RESOURCES":return Te(e,i.activeRange,n);default:return e}}function _e(e,t,n,r){if(e){let i=Re(e);return i=Te(i,n?t:null,r),i}return null}function Te(e,t,n){let r=Ce(e.sourceDefId),i=(0,o.g)();return r.fetch({resourceSource:e,range:t,context:n},(e=>{n.dispatch({type:"RECEIVE_RESOURCES",fetchId:i,fetchRange:t,rawResources:e.rawResources})}),(e=>{n.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:i,fetchRange:t,error:e})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:i})}function ke(e,t,n,r){if(!e||!t)return{};switch(t.type){case"RECEIVE_RESOURCES":return function(e,t,n,r,i){if(r.latestFetchId===n){let e={};for(let n of t)se(n,"",e,i);return e}return e}(e,t.rawResources,t.fetchId,n,r);case"ADD_RESOURCE":return i=e,o=t.resourceHash,Object.assign(Object.assign({},i),o);case"REMOVE_RESOURCE":return function(e,t){let n=Object.assign({},e);delete n[t];for(let e in n)n[e].parentId===t&&(n[e]=Object.assign(Object.assign({},n[e]),{parentId:""}));return n}(e,t.resourceId);case"SET_RESOURCE_PROP":return function(e,t,n,r){let i=e[t];if(i)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{[n]:r})});return e}(e,t.resourceId,t.propName,t.propValue);case"SET_RESOURCE_EXTENDED_PROP":return function(e,t,n,r){let i=e[t];if(i)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{extendedProps:Object.assign(Object.assign({},i.extendedProps),{[n]:r})})});return e}(e,t.resourceId,t.propName,t.propValue);default:return e}var i,o}const Oe={resourceId:String,resourceIds:o.n,resourceEditable:Boolean};function Ie(e,t){return Object.assign(Object.assign({},t),{constraints:Me(e,t.constraints)})}function Me(e,t){return t.map((t=>{let n=t.defs;if(n)for(let t in n){let r=n[t].resourceIds;if(r.length&&-1===r.indexOf(e))return!1}return t}))}o.aa.prototype.addResource=function(e,t=!0){let n,r,i=this.getCurrentData();e instanceof le?(r=e._resource,n={[r.id]:r}):(n={},r=se(e,"",n,i)),this.dispatch({type:"ADD_RESOURCE",resourceHash:n}),t&&this.trigger("_scrollRequest",{resourceId:r.id});let o=new le(i,r);return i.emitter.trigger("resourceAdd",{resource:o,revert:()=>{this.dispatch({type:"REMOVE_RESOURCE",resourceId:r.id})}}),o},o.aa.prototype.getResourceById=function(e){e=String(e);let t=this.getCurrentData();if(t.resourceStore){let n=t.resourceStore[e];if(n)return new le(t,n)}return null},o.aa.prototype.getResources=function(){let e=this.getCurrentData(),{resourceStore:t}=e,n=[];if(t)for(let r in t)n.push(new le(e,t[r]));return n},o.aa.prototype.getTopLevelResources=function(){let e=this.getCurrentData(),{resourceStore:t}=e,n=[];if(t)for(let r in t)t[r].parentId||n.push(new le(e,t[r]));return n},o.aa.prototype.refetchResources=function(){this.dispatch({type:"REFETCH_RESOURCES"})};const Pe={resources:function(e,t){t.getCurrentData().resourceSource._raw!==e&&t.dispatch({type:"RESET_RESOURCE_SOURCE",resourceSourceInput:e})}};const Ne={initialResources:o.n,resources:o.n,eventResourceEditable:Boolean,refetchResourcesOnNavigate:Boolean,resourceOrder:o.ap,filterResourcesWithEvents:Boolean,resourceGroupField:String,resourceAreaWidth:o.n,resourceAreaColumns:o.n,resourcesInitiallyExpanded:Boolean,datesAboveResources:Boolean,needsResourceData:Boolean,resourceAreaHeaderClassNames:o.n,resourceAreaHeaderContent:o.n,resourceAreaHeaderDidMount:o.n,resourceAreaHeaderWillUnmount:o.n,resourceGroupLabelClassNames:o.n,resourceGroupLabelContent:o.n,resourceGroupLabelDidMount:o.n,resourceGroupLabelWillUnmount:o.n,resourceLabelClassNames:o.n,resourceLabelContent:o.n,resourceLabelDidMount:o.n,resourceLabelWillUnmount:o.n,resourceLaneClassNames:o.n,resourceLaneContent:o.n,resourceLaneDidMount:o.n,resourceLaneWillUnmount:o.n,resourceGroupLaneClassNames:o.n,resourceGroupLaneContent:o.n,resourceGroupLaneDidMount:o.n,resourceGroupLaneWillUnmount:o.n},ze={resourcesSet:o.n,resourceAdd:o.n,resourceChange:o.n,resourceRemove:o.n};o.a1.prototype.getResources=function(){let{calendarApi:e}=this._context;return this._def.resourceIds.map((t=>e.getResourceById(t)))},o.a1.prototype.setResources=function(e){let t=[];for(let n of e){let e=null;"string"==typeof n?e=n:"number"==typeof n?e=String(n):n instanceof le?e=n.id:console.warn("unknown resource type: "+n),e&&t.push(e)}this.mutate({standardProps:{resourceIds:t}})},Se({ignoreRange:!0,parseMeta:e=>Array.isArray(e.resources)?e.resources:null,fetch(e,t){t({rawResources:e.resourceSource.meta})}}),Se({parseMeta:e=>"function"==typeof e.resources?e.resources:null,fetch(e,t,n){const r=e.context.dateEnv,i=e.resourceSource.meta,s=e.range?{start:r.toDate(e.range.start),end:r.toDate(e.range.end),startStr:r.formatIso(e.range.start),endStr:r.formatIso(e.range.end),timeZone:r.timeZone}:{};(0,o.u)(i.bind(null,s),(e=>t({rawResources:e})),n)}}),Se({parseMeta:e=>e.url?{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams}:null,fetch(e,t,n){const r=e.resourceSource.meta,i=function(e,t,n){let r,i,o,s,{dateEnv:a,options:l}=n,c={};t&&(r=e.startParam,null==r&&(r=l.startParam),i=e.endParam,null==i&&(i=l.endParam),o=e.timeZoneParam,null==o&&(o=l.timeZoneParam),c[r]=a.formatIso(t.start),c[i]=a.formatIso(t.end),"local"!==a.timeZone&&(c[o]=a.timeZone));s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};return Object.assign(c,s),c}(r,e.range,e.context);(0,o.r)(r.method,r.url,i).then((([e,n])=>{t({rawResources:e,response:n})}),n)}});var He=(0,r.rx)({name:"@fullcalendar/resource",premiumReleaseDate:"2023-02-07",deps:[i.Z],reducers:[function(e,t,n){let r=xe(e&&e.resourceSource,t,n),i=ke(e&&e.resourceStore,t,r,n),o=function(e,t){return e&&t?"SET_RESOURCE_ENTITY_EXPANDED"===t.type?Object.assign(Object.assign({},e),{[t.id]:t.isExpanded}):e:{}}(e&&e.resourceEntityExpansions,t);return{resourceSource:r,resourceStore:i,resourceEntityExpansions:o}}],isLoadingFuncs:[e=>e.resourceSource&&e.resourceSource.isFetching],eventRefiners:Oe,eventDefMemberAdders:[function(e){return{resourceIds:(t=e.resourceIds,(t||[]).map((e=>String(e)))).concat(e.resourceId?[e.resourceId]:[]),resourceEditable:e.resourceEditable};var t}],isDraggableTransformers:[function(e,t,n,r){if(!e){let e=r.getCurrentData();if(e.viewSpecs[e.currentViewType].optionDefaults.needsResourceData&&ve(t,r))return!0}return e}],eventDragMutationMassagers:[function(e,t,n){let r=t.dateSpan.resourceId,i=n.dateSpan.resourceId;r&&i&&r!==i&&(e.resourceMutation={matchResourceId:r,setResourceId:i})}],eventDefMutationAppliers:[function(e,t,n){let r=t.resourceMutation;if(r&&ve(e,n)){let t=e.resourceIds.indexOf(r.matchResourceId);if(-1!==t){let n=e.resourceIds.slice();n.splice(t,1),-1===n.indexOf(r.setResourceId)&&n.push(r.setResourceId),e.resourceIds=n}}}],dateSelectionTransformers:[function(e,t){let n=e.dateSpan.resourceId,r=t.dateSpan.resourceId;return n&&r?{resourceId:n}:null}],datePointTransforms:[function(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}],dateSpanTransforms:[function(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}],viewPropsTransformers:[class{constructor(){this.filterResources=(0,o.z)(be)}transform(e,t){return t.viewSpec.optionDefaults.needsResourceData?{resourceStore:this.filterResources(t.resourceStore,t.options.filterResourcesWithEvents,t.eventStore,t.dateProfile.activeRange),resourceEntityExpansions:t.resourceEntityExpansions}:null}},class{constructor(){this.buildResourceEventUis=(0,o.z)(ye,o.E),this.injectResourceEventUis=(0,o.z)(we)}transform(e,t){return t.viewSpec.optionDefaults.needsResourceData?null:{eventUiBases:this.injectResourceEventUis(e.eventUiBases,e.eventStore.defs,this.buildResourceEventUis(t.resourceStore))}}}],isPropsValid:function(e,t){let n=(new ce).splitProps(Object.assign(Object.assign({},e),{resourceStore:t.getCurrentData().resourceStore}));for(let e in n){let r=n[e];if(e&&n[""]&&(r=Object.assign(Object.assign({},r),{eventStore:(0,o.aV)(n[""].eventStore,r.eventStore),eventUiBases:Object.assign(Object.assign({},n[""].eventUiBases),r.eventUiBases)})),!(0,o.bZ)(r,t,{resourceId:e},Ie.bind(null,e)))return!1}return!0},externalDefTransforms:[function(e){return e.resourceId?{resourceId:e.resourceId}:{}}],eventDropTransformers:[function(e,t){let{resourceMutation:n}=e;if(n){let{calendarApi:e}=t;return{oldResource:e.getResourceById(n.matchResourceId),newResource:e.getResourceById(n.setResourceId)}}return{oldResource:null,newResource:null}}],optionChangeHandlers:Pe,optionRefiners:Ne,listenerRefiners:ze,propSetHandlers:{resourceStore:function(e,t){let{emitter:n}=t;n.hasHandlers("resourcesSet")&&n.trigger("resourcesSet",function(e,t){let n=[];for(let r in e)n.push(new le(t,e[r]));return n}(e,t))}}});function je({depth:e,hasChildren:t,isExpanded:n,onExpanderClick:r}){let i=[];for(let t=0;t<e;t+=1)i.push((0,s.az)("span",{className:"fc-icon"}));let o=["fc-icon"];return t&&(n?o.push("fc-icon-minus-square"):o.push("fc-icon-plus-square")),i.push((0,s.az)("span",{className:"fc-datagrid-expander"+(t?"":" fc-datagrid-expander-placeholder"),onClick:r},(0,s.az)("span",{className:o.join(" ")}))),(0,s.az)(s.HY,{},...i)}class Le extends o.Y{constructor(){super(...arguments),this.refineRenderProps=(0,o.A)(Ue),this.onExpanderClick=e=>{let{props:t}=this;t.hasChildren&&this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:t.resource.id,isExpanded:!t.isExpanded})}}render(){let{props:e,context:t}=this,{colSpec:n}=e,r=this.refineRenderProps({resource:e.resource,fieldValue:e.fieldValue,context:t});return(0,s.az)(o.C,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource"],elAttrs:{role:"gridcell","data-resource-id":e.resource.id},renderProps:r,generatorName:n.isMain?"resourceLabelContent":void 0,customGenerator:n.cellContent,defaultGenerator:Be,classNameGenerator:n.cellClassNames,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},(t=>(0,s.az)("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},(0,s.az)("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},n.isMain&&(0,s.az)(je,{depth:e.depth,hasChildren:e.hasChildren,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),(0,s.az)(t,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})))))}}function Be(e){return e.fieldValue||(0,s.az)(s.HY,null," ")}function Ue(e){return{resource:new le(e.context,e.resource),fieldValue:e.fieldValue,view:e.context.viewApi}}class We extends o.Y{render(){let{props:e,context:t}=this,{colSpec:n}=e,r={groupValue:e.fieldValue,view:t.viewApi};return(0,s.az)(o.C,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource-group"],elAttrs:{role:"gridcell",rowSpan:e.rowSpan},renderProps:r,generatorName:"resourceGroupLabelContent",customGenerator:n.cellContent,defaultGenerator:Ve,classNameGenerator:n.cellClassNames,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},(e=>(0,s.az)("div",{className:"fc-datagrid-cell-frame fc-datagrid-cell-frame-liquid"},(0,s.az)(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-sticky"]}))))}}function Ve(e){return e.groupValue||(0,s.az)(s.HY,null," ")}class Fe extends o.Y{render(){let{props:e}=this,{resource:t,rowSpans:n,depth:r}=e,i=me(t);return(0,s.az)("tr",{role:"row"},e.colSpecs.map(((o,a)=>{let l=n[a];if(0===l)return null;null==l&&(l=1);let c=o.field?i[o.field]:t.title||ae(t.id);return l>1?(0,s.az)(We,{key:a,colSpec:o,fieldValue:c,rowSpan:l}):(0,s.az)(Le,{key:a,colSpec:o,resource:t,fieldValue:c,depth:r,hasChildren:e.hasChildren,isExpanded:e.isExpanded,innerHeight:e.innerHeight})})))}}Fe.addPropsEquality({rowSpans:o.a});class Ze extends o.Y{constructor(){super(...arguments),this.innerInnerRef=(0,s.Vf)(),this.onExpanderClick=()=>{let{props:e}=this;this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:e.id,isExpanded:!e.isExpanded})}}render(){let{props:e,context:t}=this,n={groupValue:e.group.value,view:t.viewApi},r=e.group.spec;return(0,s.az)("tr",{role:"row"},(0,s.az)(o.C,{elTag:"th",elClasses:["fc-datagrid-cell","fc-resource-group",t.theme.getClass("tableCellShaded")],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.spreadsheetColCnt},renderProps:n,generatorName:"resourceGroupLabelContent",customGenerator:r.labelContent,defaultGenerator:Ye,classNameGenerator:r.labelClassNames,didMount:r.labelDidMount,willUnmount:r.labelWillUnmount},(t=>(0,s.az)("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},(0,s.az)("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:this.innerInnerRef},(0,s.az)(je,{depth:0,hasChildren:!0,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),(0,s.az)(t,{elTag:"span",elClasses:["fc-datagrid-cell-main"]}))))))}}function Ye(e){return e.groupValue||(0,s.az)(s.HY,null," ")}Ze.addPropsEquality({group:function(e,t){return e.spec===t.spec&&e.value===t.value}});class Ge extends o.Y{constructor(){super(...arguments),this.resizerElRefs=new o.cg(this._handleColResizerEl.bind(this)),this.colDraggings={}}render(){let{colSpecs:e,superHeaderRendering:t,rowInnerHeights:n}=this.props,r={view:this.context.viewApi},i=[];if(n=n.slice(),t){let a=n.shift();i.push((0,s.az)("tr",{key:"row-super",role:"row"},(0,s.az)(o.C,{elTag:"th",elClasses:["fc-datagrid-cell","fc-datagrid-cell-super"],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.length},renderProps:r,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},(e=>(0,s.az)("div",{className:"fc-datagrid-cell-frame",style:{height:a}},(0,s.az)(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-scrollgrid-sync-inner"]}))))))}let a=n.shift();return i.push((0,s.az)("tr",{key:"row",role:"row"},e.map(((t,n)=>{let i=n===e.length-1;return(0,s.az)(o.C,{key:n,elTag:"th",elClasses:["fc-datagrid-cell"],elAttrs:{role:"columnheader"},renderProps:r,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},(e=>(0,s.az)("div",{className:"fc-datagrid-cell-frame",style:{height:a}},(0,s.az)("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},t.isMain&&(0,s.az)("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},(0,s.az)("span",{className:"fc-icon"})),(0,s.az)(e,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})),!i&&(0,s.az)("div",{className:"fc-datagrid-cell-resizer",ref:this.resizerElRefs.createRef(n)}))))})))),(0,s.az)(s.HY,null,i)}_handleColResizerEl(e,t){let{colDraggings:n}=this;if(e){let r=this.initColResizing(e,parseInt(t,10));r&&(n[t]=r)}else{let e=n[t];e&&(e.destroy(),delete n[t])}}initColResizing(e,t){let{pluginHooks:n,isRtl:r}=this.context,{onColWidthChange:i}=this.props,s=n.elementDraggingImpl;if(s){let n,a,l=new s(e);return l.emitter.on("dragstart",(()=>{let r=(0,o.aN)((0,o.a0)(e,"tr"),"th");a=r.map((e=>e.getBoundingClientRect().width)),n=a[t]})),l.emitter.on("dragmove",(e=>{a[t]=Math.max(n+e.deltaX*(r?-1:1),20),i&&i(a.slice())})),l.setAutoScrollEnabled(!1),l}return null}}class qe extends o.Y{constructor(){super(...arguments),this.refineRenderProps=(0,o.A)(de),this.handleHeightChange=(e,t)=>{this.props.onHeightChange&&this.props.onHeightChange((0,o.a0)(e,"tr"),t)}}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({resource:e.resource,context:t});return(0,s.az)("tr",{ref:e.elRef},(0,s.az)(o.C,{elTag:"td",elClasses:["fc-timeline-lane","fc-resource"],elAttrs:{"data-resource-id":e.resource.id},renderProps:r,generatorName:"resourceLaneContent",customGenerator:n.resourceLaneContent,classNameGenerator:n.resourceLaneClassNames,didMount:n.resourceLaneDidMount,willUnmount:n.resourceLaneWillUnmount},(t=>(0,s.az)("div",{className:"fc-timeline-lane-frame",style:{height:e.innerHeight}},(0,s.az)(t,{elTag:"div",elClasses:["fc-timeline-lane-misc"]}),(0,s.az)(K,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:e.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:e.timelineCoords,onHeightChange:this.handleHeightChange,resourceId:e.resource.id})))))}}class Qe extends o.Y{render(){let{props:e,context:t}=this,{renderHooks:n}=e,r={groupValue:e.groupValue,view:t.viewApi};return(0,s.az)("tr",{ref:e.elRef},(0,s.az)(o.C,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-lane","fc-resource-group",t.theme.getClass("tableCellShaded")],renderProps:r,generatorName:"resourceGroupLaneContent",customGenerator:n.laneContent,classNameGenerator:n.laneClassNames,didMount:n.laneDidMount,willUnmount:n.laneWillUnmount},(t=>(0,s.az)(t,{elTag:"div",elStyle:{height:e.innerHeight}}))))}}class Xe extends o.Y{render(){let{props:e,context:t}=this,{rowElRefs:n,innerHeights:r}=e;return(0,s.az)("tbody",null,e.rowNodes.map(((i,o)=>{if(i.group)return(0,s.az)(Qe,{key:i.id,elRef:n.createRef(i.id),groupValue:i.group.value,renderHooks:i.group.spec,innerHeight:r[o]||""});if(i.resource){let a=i.resource;return(0,s.az)(qe,Object.assign({key:i.id,elRef:n.createRef(i.id)},e.splitProps[a.id],{resource:a,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:t.options.nextDayThreshold,businessHours:a.businessHours||e.fallbackBusinessHours,innerHeight:r[o]||"",timelineCoords:e.slatCoords,onHeightChange:e.onRowHeightChange}))}return null})))}}class $e extends o.Y{constructor(){super(...arguments),this.rootElRef=(0,s.Vf)(),this.rowElRefs=new o.cg}render(){let{props:e,context:t}=this;return(0,s.az)("table",{ref:this.rootElRef,"aria-hidden":!0,className:"fc-scrollgrid-sync-table "+t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},(0,s.az)(Xe,{rowElRefs:this.rowElRefs,rowNodes:e.rowNodes,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,splitProps:e.splitProps,fallbackBusinessHours:e.fallbackBusinessHours,slatCoords:e.slatCoords,innerHeights:e.innerHeights,onRowHeightChange:e.onRowHeightChange}))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}componentWillUnmount(){this.props.onRowCoords&&this.props.onRowCoords(null)}updateCoords(){let{props:e}=this;var t;e.onRowCoords&&null!==e.clientWidth&&this.props.onRowCoords(new o.bb(this.rootElRef.current,(t=this.rowElRefs.currentMap,e.rowNodes.map((e=>t[e.id]))),!1,!0))}}class Je extends o.bf{constructor(){super(...arguments),this.computeHasResourceBusinessHours=(0,o.z)(Ke),this.resourceSplitter=new ce,this.bgSlicer=new Q,this.slatsRef=(0,s.Vf)(),this.state={slatCoords:null},this.handleEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)},this.handleRowCoords=e=>{this.rowCoords=e,this.props.onRowCoords&&this.props.onRowCoords(e)}}render(){let{props:e,state:t,context:n}=this,{dateProfile:r,tDateProfile:i}=e,a=(0,o.d)(i.slotDuration).unit,l=this.computeHasResourceBusinessHours(e.rowNodes),c=this.resourceSplitter.splitProps(e),u=c[""],d=this.bgSlicer.sliceProps(u,r,i.isTimeScale?null:e.nextDayThreshold,n,r,n.dateProfileGenerator,i,n.dateEnv),h=t.slatCoords&&t.slatCoords.dateProfile===e.dateProfile?t.slatCoords:null;return(0,s.az)("div",{ref:this.handleEl,className:["fc-timeline-body",e.expandRows?"fc-timeline-body-expandrows":""].join(" "),style:{minWidth:e.tableMinWidth}},(0,s.az)(o.ci,{unit:a},((t,a)=>(0,s.az)(s.HY,null,(0,s.az)(Y,{ref:this.slatsRef,dateProfile:r,tDateProfile:i,nowDate:t,todayRange:a,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleSlatCoords,onScrollLeftRequest:e.onScrollLeftRequest}),(0,s.az)(q,{businessHourSegs:l?null:d.businessHourSegs,bgEventSegs:d.bgEventSegs,timelineCoords:h,eventResizeSegs:d.eventResize?d.eventResize.segs:[],dateSelectionSegs:d.dateSelectionSegs,nowDate:t,todayRange:a}),(0,s.az)($e,{rowNodes:e.rowNodes,dateProfile:r,tDateProfile:e.tDateProfile,nowDate:t,todayRange:a,splitProps:c,fallbackBusinessHours:l?e.businessHours:null,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,innerHeights:e.rowInnerHeights,slatCoords:h,onRowCoords:this.handleRowCoords,onRowHeightChange:e.onRowHeightChange}),n.options.nowIndicator&&h&&h.isDateInRange(t)&&(0,s.az)("div",{className:"fc-timeline-now-indicator-container"},(0,s.az)(o.cl,{elClasses:["fc-timeline-now-indicator-line"],elStyle:U(h.dateToCoord(t),n.isRtl),isAxis:!1,date:t}))))))}queryHit(e,t){let n=this.rowCoords,r=n.topToIndex(t);if(null!=r){let t=this.props.rowNodes[r].resource;if(t){let i=this.slatsRef.current.positionToHit(e);if(i)return{dateProfile:this.props.dateProfile,dateSpan:{range:i.dateSpan.range,allDay:i.dateSpan.allDay,resourceId:t.id},rect:{left:i.left,right:i.right,top:n.tops[r],bottom:n.bottoms[r]},dayEl:i.dayEl,layer:0}}}return null}}function Ke(e){for(let t of e){let e=t.resource;if(e&&e.businessHours)return!0}return!1}class et extends o.Y{constructor(){super(...arguments),this.scrollGridRef=(0,s.Vf)(),this.timeBodyScrollerElRef=(0,s.Vf)(),this.spreadsheetHeaderChunkElRef=(0,s.Vf)(),this.rootElRef=(0,s.Vf)(),this.ensureScrollGridResizeId=0,this.state={resourceAreaWidthOverride:null},this.ensureScrollGridResize=()=>{this.ensureScrollGridResizeId&&clearTimeout(this.ensureScrollGridResizeId),this.ensureScrollGridResizeId=setTimeout((()=>{this.scrollGridRef.current.handleSizing(!1)}),o.bJ.SCROLLGRID_RESIZE_INTERVAL+1)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,i=!e.forPrint&&(0,o.cd)(r),a=!e.forPrint&&(0,o.cc)(r),l=[{type:"header",key:"header",syncRowHeights:!0,isSticky:i,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:e.spreadsheetHeaderRows},{key:"divider",outerContent:(0,s.az)("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:e.timeHeaderContent}]},{type:"body",key:"body",syncRowHeights:!0,liquid:!0,expandRows:Boolean(r.expandRows),chunks:[{key:"datagrid",tableClassName:"fc-datagrid-body",rowContent:e.spreadsheetBodyRows},{key:"divider",outerContent:(0,s.az)("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:e.timeBodyContent}]}];a&&l.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:o.cb},{key:"divider",outerContent:(0,s.az)("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:o.cb}]});let c=null!=t.resourceAreaWidthOverride?t.resourceAreaWidthOverride:r.resourceAreaWidth;return(0,s.az)(m,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!e.isHeightAuto&&!e.forPrint,collapsibleWidth:!1,colGroups:[{cols:e.spreadsheetCols,width:c},{cols:[]},{cols:e.timeCols}],sections:l})}forceTimeScroll(e){this.scrollGridRef.current.forceScrollLeft(2,e)}forceResourceScroll(e){this.scrollGridRef.current.forceScrollTop(1,e)}getResourceScroll(){return this.timeBodyScrollerElRef.current.scrollTop}componentDidMount(){this.initSpreadsheetResizing()}componentWillUnmount(){this.destroySpreadsheetResizing()}initSpreadsheetResizing(){let{isRtl:e,pluginHooks:t}=this.context,n=t.elementDraggingImpl,r=this.spreadsheetHeaderChunkElRef.current;if(n){let t,i,o=this.rootElRef.current,s=this.spreadsheetResizerDragging=new n(o,".fc-resource-timeline-divider");s.emitter.on("dragstart",(()=>{t=r.getBoundingClientRect().width,i=o.getBoundingClientRect().width})),s.emitter.on("dragmove",(n=>{let r=t+n.deltaX*(e?-1:1);r=Math.max(r,30),r=Math.min(r,i-30),this.setState({resourceAreaWidthOverride:r},this.ensureScrollGridResize)})),s.setAutoScrollEnabled(!1)}}destroySpreadsheetResizing(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()}}class tt extends o.Y{constructor(e,t){super(e,t),this.processColOptions=(0,o.z)(ot),this.buildTimelineDateProfile=(0,o.z)(_),this.hasNesting=(0,o.z)(it),this.buildRowNodes=(0,o.z)(he),this.layoutRef=(0,s.Vf)(),this.rowNodes=[],this.renderedRowNodes=[],this.buildRowIndex=(0,o.z)(nt),this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleRowCoords=e=>{this.rowCoords=e,this.scrollResponder.update(!1)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})},this.handleScrollLeftRequest=e=>{this.layoutRef.current.forceTimeScroll(e)},this.handleScrollRequest=e=>{let{rowCoords:t}=this,n=this.layoutRef.current,r=e.rowId||e.resourceId;if(t){if(r){let i=this.buildRowIndex(this.renderedRowNodes)[r];if(null!=i){let r=null!=e.fromBottom?t.bottoms[i]-e.fromBottom:t.tops[i];n.forceResourceScroll(r)}}return!0}return null},this.handleColWidthChange=e=>{this.setState({spreadsheetColWidths:e})},this.state={resourceAreaWidth:t.options.resourceAreaWidth,spreadsheetColWidths:[]}}render(){let{props:e,state:t,context:n}=this,{options:r,viewSpec:i}=n,{superHeaderRendering:a,groupSpecs:l,orderSpecs:c,isVGrouping:u,colSpecs:d}=this.processColOptions(n.options),h=this.buildTimelineDateProfile(e.dateProfile,n.dateEnv,r,n.dateProfileGenerator),f=this.rowNodes=this.buildRowNodes(e.resourceStore,l,c,u,e.resourceEntityExpansions,r.resourcesInitiallyExpanded),{slotMinWidth:p}=r,g=ne(h,p||this.computeFallbackSlotMinWidth(h));return(0,s.az)(o.cu,{elClasses:["fc-resource-timeline",!this.hasNesting(f)&&"fc-resource-timeline-flat","fc-timeline",!1===r.eventOverlap?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled"],viewSpec:i},(0,s.az)(et,{ref:this.layoutRef,forPrint:e.forPrint,isHeightAuto:e.isHeightAuto,spreadsheetCols:rt(d,t.spreadsheetColWidths,""),spreadsheetHeaderRows:e=>(0,s.az)(Ge,{superHeaderRendering:a,colSpecs:d,onColWidthChange:this.handleColWidthChange,rowInnerHeights:e.rowSyncHeights}),spreadsheetBodyRows:e=>(0,s.az)(s.HY,null,this.renderSpreadsheetRows(f,d,e.rowSyncHeights)),timeCols:g,timeHeaderContent:n=>(0,s.az)(V,{clientWidth:n.clientWidth,clientHeight:n.clientHeight,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,dateProfile:e.dateProfile,tDateProfile:h,slatCoords:t.slatCoords,rowInnerHeights:n.rowSyncHeights,onMaxCushionWidth:p?null:this.handleMaxCushionWidth}),timeBodyContent:t=>(0,s.az)(Je,{dateProfile:e.dateProfile,clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,expandRows:t.expandRows,tDateProfile:h,rowNodes:f,businessHours:e.businessHours,dateSelection:e.dateSelection,eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,resourceStore:e.resourceStore,nextDayThreshold:n.options.nextDayThreshold,rowInnerHeights:t.rowSyncHeights,onSlatCoords:this.handleSlatCoords,onRowCoords:this.handleRowCoords,onScrollLeftRequest:this.handleScrollLeftRequest,onRowHeightChange:t.reportRowHeightChange})}))}renderSpreadsheetRows(e,t,n){return e.map(((e,r)=>e.group?(0,s.az)(Ze,{key:e.id,id:e.id,spreadsheetColCnt:t.length,isExpanded:e.isExpanded,group:e.group,innerHeight:n[r]||""}):e.resource?(0,s.az)(Fe,{key:e.id,colSpecs:t,rowSpans:e.rowSpans,depth:e.depth,isExpanded:e.isExpanded,hasChildren:e.hasChildren,resource:e.resource,innerHeight:n[r]||""}):null))}componentDidMount(){this.renderedRowNodes=this.rowNodes,this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}getSnapshotBeforeUpdate(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}}componentDidUpdate(e,t,n){this.renderedRowNodes=this.rowNodes,this.scrollResponder.update(e.dateProfile!==this.props.dateProfile),n.resourceScroll&&this.handleScrollRequest(n.resourceScroll)}componentWillUnmount(){this.scrollResponder.detach()}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}queryResourceScroll(){let{rowCoords:e,renderedRowNodes:t}=this;if(e){let n=this.layoutRef.current,r=e.bottoms,i=n.getResourceScroll(),o={};for(let e=0;e<r.length;e+=1){let n=t[e],s=r[e]-i;if(s>0){o.rowId=n.id,o.fromBottom=s;break}}return o}return null}}function nt(e){let t={};for(let n=0;n<e.length;n+=1)t[e[n].id]=n;return t}function rt(e,t,n=""){return e.map(((e,r)=>({className:e.isMain?"fc-main-col":"",width:t[r]||e.width||n})))}function it(e){for(let t of e){if(t.group)return!0;if(t.resource&&t.hasChildren)return!0}return!1}function ot(e){let t=e.resourceAreaColumns||[],n=null;t.length?e.resourceAreaHeaderContent&&(n={headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent,headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount}):t.push({headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent,headerDefault:()=>"Resources",headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount});let r=[],i=[],o=[],s=!1;for(let n of t)n.group?i.push(Object.assign(Object.assign({},n),{cellClassNames:n.cellClassNames||e.resourceGroupLabelClassNames,cellContent:n.cellContent||e.resourceGroupLabelContent,cellDidMount:n.cellDidMount||e.resourceGroupLabelDidMount,cellWillUnmount:n.cellWillUnmount||e.resourceGroupLaneWillUnmount})):r.push(n);let a=r[0];if(a.isMain=!0,a.cellClassNames=a.cellClassNames||e.resourceLabelClassNames,a.cellContent=a.cellContent||e.resourceLabelContent,a.cellDidMount=a.cellDidMount||e.resourceLabelDidMount,a.cellWillUnmount=a.cellWillUnmount||e.resourceLabelWillUnmount,i.length)o=i,s=!0;else{let t=e.resourceGroupField;t&&o.push({field:t,labelClassNames:e.resourceGroupLabelClassNames,labelContent:e.resourceGroupLabelContent,labelDidMount:e.resourceGroupLabelDidMount,labelWillUnmount:e.resourceGroupLabelWillUnmount,laneClassNames:e.resourceGroupLaneClassNames,laneContent:e.resourceGroupLaneContent,laneDidMount:e.resourceGroupLaneDidMount,laneWillUnmount:e.resourceGroupLaneWillUnmount})}let l=e.resourceOrder||ue,c=[];for(let e of l){let t=!1;for(let n of o)if(n.field===e.field){n.order=e.order,t=!0;break}t||c.push(e)}return{superHeaderRendering:n,isVGrouping:s,groupSpecs:o,colSpecs:i.concat(r),orderSpecs:c}}tt.addStateEquality({spreadsheetColWidths:o.a});(0,o.i)(".fc .fc-resource-timeline-divider{cursor:col-resize;width:3px}.fc .fc-resource-group{font-weight:inherit;text-align:inherit}.fc .fc-resource-timeline .fc-resource-group:not([rowspan]){background:var(--fc-neutral-bg-color)}.fc .fc-timeline-lane-frame{position:relative}.fc .fc-timeline-overlap-enabled .fc-timeline-lane-frame .fc-timeline-events{box-sizing:content-box;padding-bottom:10px}.fc-timeline-body-expandrows td.fc-timeline-lane{position:relative}.fc-timeline-body-expandrows .fc-timeline-lane-frame{position:static}.fc-datagrid-cell-frame-liquid{height:100%}.fc-liquid-hack .fc-datagrid-cell-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-datagrid-header .fc-datagrid-cell-frame{align-items:center;display:flex;justify-content:flex-start;position:relative}.fc .fc-datagrid-cell-resizer{bottom:0;cursor:col-resize;position:absolute;top:0;width:5px;z-index:1}.fc .fc-datagrid-cell-cushion{overflow:hidden;padding:8px;white-space:nowrap}.fc .fc-datagrid-expander{cursor:pointer;opacity:.65}.fc .fc-datagrid-expander .fc-icon{display:inline-block;width:1em}.fc .fc-datagrid-expander-placeholder{cursor:auto}.fc .fc-resource-timeline-flat .fc-datagrid-expander-placeholder{display:none}.fc-direction-ltr .fc-datagrid-cell-resizer{right:-3px}.fc-direction-rtl .fc-datagrid-cell-resizer{left:-3px}.fc-direction-ltr .fc-datagrid-expander{margin-right:3px}.fc-direction-rtl .fc-datagrid-expander{margin-left:3px}");var st=(0,r.rx)({name:"@fullcalendar/resource-timeline",premiumReleaseDate:"2023-02-07",deps:[i.Z,He,re],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:tt,needsResourceData:!0,resourceAreaWidth:"30%",resourcesInitiallyExpanded:!0,eventResizableFromStart:!0},resourceTimelineDay:{type:"resourceTimeline",duration:{days:1}},resourceTimelineWeek:{type:"resourceTimeline",duration:{weeks:1}},resourceTimelineMonth:{type:"resourceTimeline",duration:{months:1}},resourceTimelineYear:{type:"resourceTimeline",duration:{years:1}}}})}}]);
|