@sme.up/ketchup 11.0.0-SNAPSHOT-20250108105921 → 11.0.0-SNAPSHOT-20250108163941
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/dist/cjs/{f-cell-f696873f.js → f-cell-837acc01.js} +4 -4
- package/dist/cjs/{f-chip-fbe1aa9a.js → f-chip-a1a38005.js} +1 -1
- package/dist/cjs/{f-object-field-a461f929.js → f-object-field-a6c12a08.js} +2 -2
- package/dist/cjs/{f-paginator-utils-89982628.js → f-paginator-utils-39ded702.js} +1 -1
- package/dist/cjs/{f-text-field-81ed712b.js → f-text-field-700b8ec5.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_28.cjs.entry.js +7 -7
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-4421e218.js → kup-data-table-helper-eb507104.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +5 -5
- package/dist/cjs/kup-input-panel.cjs.entry.js +10 -9
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
- package/dist/cjs/{kup-manager-43374f94.js → kup-manager-8623e363.js} +41 -41
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-object-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/kup-txt.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +2 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +4 -3
- package/dist/collection/managers/kup-math/kup-math-helper.js +9 -8
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +2 -2
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +3 -3
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-htm.js +2 -2
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +2 -2
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +8 -7
- package/dist/components/kup-lazy.js +2 -2
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-nav-bar.js +2 -2
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-object-field.js +2 -2
- package/dist/components/kup-pdf.js +2 -2
- package/dist/components/kup-photo-frame.js +2 -2
- package/dist/components/kup-planner.js +2 -2
- package/dist/components/kup-probe.js +2 -2
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +2 -2
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +2 -2
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +2 -2
- package/dist/components/kup-typography-list.js +2 -2
- package/dist/components/kup-typography.js +2 -2
- package/dist/components/{p-333db0bd.js → p-0e384530.js} +2 -2
- package/dist/components/{p-ef279eeb.js → p-24075bd0.js} +2 -2
- package/dist/components/{p-34b54cab.js → p-87432d08.js} +2 -2
- package/dist/components/{p-6c868f83.js → p-94fc3c00.js} +2 -2
- package/dist/components/{p-d0917b1c.js → p-c8389c1a.js} +41 -41
- package/dist/components/{p-7242a21e.js → p-f1ee3ada.js} +1 -1
- package/dist/esm/{f-cell-bebbd73f.js → f-cell-3b999c1c.js} +4 -4
- package/dist/esm/{f-chip-448d9abb.js → f-chip-207d4e6a.js} +1 -1
- package/dist/esm/{f-object-field-db1de9c8.js → f-object-field-fc05da83.js} +2 -2
- package/dist/esm/{f-paginator-utils-99b7bf6e.js → f-paginator-utils-e5824c9d.js} +1 -1
- package/dist/esm/{f-text-field-32f39382.js → f-text-field-ae84246a.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_28.entry.js +7 -7
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +2 -2
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-c8984498.js → kup-data-table-helper-814e63ca.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +1 -1
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +5 -5
- package/dist/esm/kup-input-panel.entry.js +10 -9
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-3aea2269.js → kup-manager-69018613.js} +41 -41
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-object-field.entry.js +3 -3
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- package/dist/esm/kup-planner.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +1 -1
- package/dist/esm/kup-txt.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-07541fac.entry.js +1 -0
- package/dist/ketchup/{p-34eb7555.entry.js → p-1de5af30.entry.js} +1 -1
- package/dist/ketchup/{p-dcfcf2bb.js → p-1e73ea04.js} +1 -1
- package/dist/ketchup/{p-b6974faa.entry.js → p-217ae85c.entry.js} +1 -1
- package/dist/ketchup/{p-04627efe.js → p-2252ad30.js} +1 -1
- package/dist/ketchup/{p-099af1ea.entry.js → p-24015160.entry.js} +1 -1
- package/dist/ketchup/{p-cadec395.entry.js → p-24dddc23.entry.js} +1 -1
- package/dist/ketchup/{p-6d0bb440.entry.js → p-3f5ee4c7.entry.js} +1 -1
- package/dist/ketchup/{p-454c3167.entry.js → p-3fcc6d1d.entry.js} +1 -1
- package/dist/ketchup/{p-7f7061d6.entry.js → p-41830b0d.entry.js} +1 -1
- package/dist/ketchup/{p-14647515.entry.js → p-474e978a.entry.js} +1 -1
- package/dist/ketchup/{p-e34d2a82.entry.js → p-5275f671.entry.js} +1 -1
- package/dist/ketchup/{p-cfb1092e.entry.js → p-556e06eb.entry.js} +1 -1
- package/dist/ketchup/{p-da2a7217.js → p-59ea2e16.js} +1 -1
- package/dist/ketchup/{p-4732b472.entry.js → p-5c2ac15a.entry.js} +1 -1
- package/dist/ketchup/{p-a4fbced2.entry.js → p-5d98bad4.entry.js} +1 -1
- package/dist/ketchup/{p-a010e98f.entry.js → p-613e2c59.entry.js} +1 -1
- package/dist/ketchup/{p-35f176a0.js → p-6954ad12.js} +1 -1
- package/dist/ketchup/{p-90205959.entry.js → p-7029eb59.entry.js} +1 -1
- package/dist/ketchup/{p-8f8eb625.entry.js → p-7982cbcf.entry.js} +1 -1
- package/dist/ketchup/{p-d6041b53.entry.js → p-8270992b.entry.js} +1 -1
- package/dist/ketchup/{p-d87e7f83.entry.js → p-8667f590.entry.js} +1 -1
- package/dist/ketchup/{p-3f44c485.js → p-8ddd83f1.js} +1 -1
- package/dist/ketchup/{p-7f6265c2.entry.js → p-9fb64fa4.entry.js} +1 -1
- package/dist/ketchup/{p-5b2529dc.entry.js → p-a29926c9.entry.js} +1 -1
- package/dist/ketchup/{p-07961f6e.entry.js → p-a3247374.entry.js} +1 -1
- package/dist/ketchup/{p-a4ba457a.entry.js → p-b15208a3.entry.js} +1 -1
- package/dist/ketchup/{p-737e3900.js → p-b9094df4.js} +2 -2
- package/dist/ketchup/{p-38a5b272.entry.js → p-ba661cef.entry.js} +1 -1
- package/dist/ketchup/{p-6044750e.entry.js → p-ca700b27.entry.js} +1 -1
- package/dist/ketchup/{p-42719275.entry.js → p-d3dec47b.entry.js} +1 -1
- package/dist/ketchup/{p-672ec5b8.entry.js → p-d7991871.entry.js} +1 -1
- package/dist/ketchup/{p-e40dbf91.entry.js → p-e2d84f0b.entry.js} +1 -1
- package/dist/ketchup/{p-74d2a50e.js → p-f1d16d73.js} +1 -1
- package/dist/ketchup/{p-302f557b.entry.js → p-f4372c3c.entry.js} +1 -1
- package/dist/ketchup/{p-66dcd76c.entry.js → p-f7136e2e.entry.js} +1 -1
- package/dist/ketchup/{p-6fd7c0f6.entry.js → p-f943d857.entry.js} +1 -1
- package/dist/ketchup/{p-5b5adaf1.entry.js → p-fd091486.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/ketchup/p-84f06bca.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,g as n,f as i,h as r,H as s,d as o}from"./p-b0368f88.js";import{k as l,g as a,s as c,h as u,v as d,e as h}from"./p-737e3900.js";import{c as f}from"./p-635bb4b3.js";import{F as p}from"./p-504fe614.js";import{c as g,F as v}from"./p-04627efe.js";import{b as m,K as b}from"./p-1ee561ba.js";import"./p-e3062c19.js";import"./p-f2213e00.js";var y,A,w,E,x,k,S,D,C,T={},N=[],M=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function R(t,e){for(var n in e)t[n]=e[n];return t}function O(t){var e=t.parentNode;e&&e.removeChild(t)}function _(t,e,n){var i,r,s,o={};for(s in e)"key"==s?i=e[s]:"ref"==s?r=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?y.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===o[s]&&(o[s]=t.defaultProps[s]);return j(t,o,i,r,null)}function j(t,e,n,i,r){var s={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++w:r};return null==r&&null!=A.vnode&&A.vnode(s),s}function I(t){return t.children}function B(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||M.test(e)?n:n+"px"}function z(t,e,n,i,r){var s;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||B(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||B(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?i||t.addEventListener(e,s?P:H,s):t.removeEventListener(e,s?P:H,s);else if("dangerouslySetInnerHTML"!==e){if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&-1==e.indexOf("-")?t.removeAttribute(e):t.setAttribute(e,n))}}function H(t){x=!0;try{return this.l[t.type+!1](A.event?A.event(t):t)}finally{x=!1}}function P(t){x=!0;try{return this.l[t.type+!0](A.event?A.event(t):t)}finally{x=!1}}function G(t,e){this.props=t,this.context=e}function U(t,e){if(null==e)return t.__?U(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?U(t):null}function Q(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return Q(t)}}function L(t){x?setTimeout(t):D(t)}function V(t){(!t.__d&&(t.__d=!0)&&k.push(t)&&!W.__r++||S!==A.debounceRendering)&&((S=A.debounceRendering)||L)(W)}function W(){var t,e,n,i,r,s,o,l;for(k.sort((function(t,e){return t.__v.__b-e.__v.__b}));t=k.shift();)t.__d&&(e=k.length,i=void 0,r=void 0,o=(s=(n=t).__v).__e,(l=n.__P)&&(i=[],(r=R({},s)).__v=s.__v+1,J(l,s,r,n.__n,void 0!==l.ownerSVGElement,null!=s.__h?[o]:null,i,null==o?U(s):o,s.__h),X(i,s),s.__e!=o&&Q(s)),k.length>e&&k.sort((function(t,e){return t.__v.__b-e.__v.__b})));W.__r=0}function F(t,e,n,i,r,s,o,l,a,c){var u,d,h,f,p,g,v,m=i&&i.__k||N,b=m.length;for(n.__k=[],u=0;u<e.length;u++)if(null!=(f=n.__k[u]=null==(f=e[u])||"boolean"==typeof f?null:"string"==typeof f||"number"==typeof f||"bigint"==typeof f?j(null,f,null,null,f):Array.isArray(f)?j(I,{children:f},null,null,null):f.__b>0?j(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(h=m[u])||h&&f.key==h.key&&f.type===h.type)m[u]=void 0;else for(d=0;d<b;d++){if((h=m[d])&&f.key==h.key&&f.type===h.type){m[d]=void 0;break}h=null}J(t,f,h=h||T,r,s,o,l,a,c),p=f.__e,(d=f.ref)&&h.ref!=d&&(v||(v=[]),h.ref&&v.push(h.ref,null,f),v.push(d,f.__c||p,f)),null!=p?(null==g&&(g=p),"function"==typeof f.type&&f.__k===h.__k?f.__d=a=Y(f,a,t):a=q(t,f,h,m,p,a),"function"==typeof n.type&&(n.__d=a)):a&&h.__e==a&&a.parentNode!=t&&(a=U(h))}for(n.__e=g,u=b;u--;)null!=m[u]&&("function"==typeof n.type&&null!=m[u].__e&&m[u].__e==n.__d&&(n.__d=Z(i).nextSibling),et(m[u],m[u]));if(v)for(u=0;u<v.length;u++)tt(v[u],v[++u],v[++u])}function Y(t,e,n){for(var i,r=t.__k,s=0;r&&s<r.length;s++)(i=r[s])&&(i.__=t,e="function"==typeof i.type?Y(i,e,n):q(n,i,i,r,i.__e,e));return e}function $(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){$(t,e)})):e.push(t)),e}function q(t,e,n,i,r,s){var o,l,a;if(void 0!==e.__d)o=e.__d,e.__d=void 0;else if(null==n||r!=s||null==r.parentNode)t:if(null==s||s.parentNode!==t)t.appendChild(r),o=null;else{for(l=s,a=0;(l=l.nextSibling)&&a<i.length;a+=1)if(l==r)break t;t.insertBefore(r,s),o=s}return void 0!==o?o:r.nextSibling}function Z(t){var e,n,i;if(null==t.type||"string"==typeof t.type)return t.__e;if(t.__k)for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(i=Z(n)))return i;return null}function J(t,e,n,i,r,s,o,l,a){var c,u,d,h,f,p,g,v,m,b,y,w,E,x,k,S=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(a=n.__h,l=e.__e=n.__e,e.__h=null,s=[l]),(c=A.__b)&&c(e);try{t:if("function"==typeof S){if(v=e.props,m=(c=S.contextType)&&i[c.__c],b=c?m?m.props.value:c.__:i,n.__c?g=(u=e.__c=n.__c).__=u.__E:("prototype"in S&&S.prototype.render?e.__c=u=new S(v,b):(e.__c=u=new G(v,b),u.constructor=S,u.render=nt),m&&m.sub(u),u.props=v,u.state||(u.state={}),u.context=b,u.__n=i,d=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=S.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=R({},u.__s)),R(u.__s,S.getDerivedStateFromProps(v,u.__s))),h=u.props,f=u.state,u.__v=e,d)null==S.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==S.getDerivedStateFromProps&&v!==h&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(v,b),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(v,u.__s,b)||e.__v===n.__v){for(e.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),y=0;y<u._sb.length;y++)u.__h.push(u._sb[y]);u._sb=[],u.__h.length&&o.push(u);break t}null!=u.componentWillUpdate&&u.componentWillUpdate(v,u.__s,b),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(h,f,p)}))}if(u.context=b,u.props=v,u.__P=t,w=A.__r,E=0,"prototype"in S&&S.prototype.render){for(u.state=u.__s,u.__d=!1,w&&w(e),c=u.render(u.props,u.state,u.context),x=0;x<u._sb.length;x++)u.__h.push(u._sb[x]);u._sb=[]}else do{u.__d=!1,w&&w(e),c=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++E<25);u.state=u.__s,null!=u.getChildContext&&(i=R(R({},i),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(p=u.getSnapshotBeforeUpdate(h,f)),k=null!=c&&c.type===I&&null==c.key?c.props.children:c,F(t,Array.isArray(k)?k:[k],e,n,i,r,s,o,l,a),u.base=e.__e,e.__h=null,u.__h.length&&o.push(u),g&&(u.__E=u.__=null),u.__e=!1}else null==s&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=K(n.__e,e,n,i,r,s,o,a);(c=A.diffed)&&c(e)}catch(t){e.__v=null,(a||null!=s)&&(e.__e=l,e.__h=!!a,s[s.indexOf(l)]=null),A.__e(t,e,n)}}function X(t,e){A.__c&&A.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){A.__e(t,e.__v)}}))}function K(t,e,n,i,r,s,o,l){var a,c,u,d=n.props,h=e.props,f=e.type,p=0;if("svg"===f&&(r=!0),null!=s)for(;p<s.length;p++)if((a=s[p])&&"setAttribute"in a==!!f&&(f?a.localName===f:3===a.nodeType)){t=a,s[p]=null;break}if(null==t){if(null===f)return document.createTextNode(h);t=r?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,h.is&&h),s=null,l=!1}if(null===f)d===h||l&&t.data===h||(t.data=h);else{if(s=s&&y.call(t.childNodes),c=(d=n.props||T).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!l){if(null!=s)for(d={},p=0;p<t.attributes.length;p++)d[t.attributes[p].name]=t.attributes[p].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(function(t,e,n,i,r){var s;for(s in n)"children"===s||"key"===s||s in e||z(t,s,null,n[s],i);for(s in e)r&&"function"!=typeof e[s]||"children"===s||"key"===s||"value"===s||"checked"===s||n[s]===e[s]||z(t,s,e[s],n[s],i)}(t,h,d,r,l),u)e.__k=[];else if(p=e.props.children,F(t,Array.isArray(p)?p:[p],e,n,i,r&&"foreignObject"!==f,s,o,s?s[0]:n.__k&&U(n,0),l),null!=s)for(p=s.length;p--;)null!=s[p]&&O(s[p]);l||("value"in h&&void 0!==(p=h.value)&&(p!==t.value||"progress"===f&&!p||"option"===f&&p!==d.value)&&z(t,"value",p,d.value,!1),"checked"in h&&void 0!==(p=h.checked)&&p!==t.checked&&z(t,"checked",p,d.checked,!1))}return t}function tt(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){A.__e(t,n)}}function et(t,e,n){var i,r;if(A.unmount&&A.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||tt(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){A.__e(t,e)}i.base=i.__P=null,t.__c=void 0}if(i=t.__k)for(r=0;r<i.length;r++)i[r]&&et(i[r],e,n||"function"!=typeof t.type);n||null==t.__e||O(t.__e),t.__=t.__e=t.__d=void 0}function nt(t,e,n){return this.constructor(t,n)}function it(t,e,n){var i,r,s;A.__&&A.__(t,e),r=(i="function"==typeof n)?null:n&&n.__k||e.__k,s=[],J(e,t=(!i&&n||e).__k=_(I,null,[t]),r||T,T,void 0!==e.ownerSVGElement,!i&&n?[n]:r?null:e.firstChild?y.call(e.childNodes):null,s,!i&&n?n:r?r.__e:e.firstChild,i),X(s,t)}y=N.slice,A={__e:function(t,e,n,i){for(var r,s,o;e=e.__;)if((r=e.__c)&&!r.__)try{if((s=r.constructor)&&null!=s.getDerivedStateFromError&&(r.setState(s.getDerivedStateFromError(t)),o=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,i||{}),o=r.__d),o)return r.__E=r}catch(e){t=e}throw t}},w=0,E=function(t){return null!=t&&void 0===t.constructor},x=!1,G.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=R({},this.state),"function"==typeof t&&(t=t(R({},n),this.props)),t&&R(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),V(this))},G.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),V(this))},G.prototype.render=I,k=[],D="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,W.__r=0,C=0;var rt,st,ot,lt=[],at=[],ct=A.__b,ut=A.__r,dt=A.diffed,ht=A.__c,ft=A.unmount;function pt(){for(var t;t=lt.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(mt),t.__H.__h.forEach(bt),t.__H.__h=[]}catch(e){t.__H.__h=[],A.__e(e,t.__v)}}A.__b=function(t){rt=null,ct&&ct(t)},A.__r=function(t){ut&&ut(t);var e=(rt=t.__c).__H;e&&(st===rt?(e.__h=[],rt.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=at,t.__N=t.i=void 0}))):(e.__h.forEach(mt),e.__h.forEach(bt),e.__h=[])),st=rt},A.diffed=function(t){dt&&dt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==lt.push(e)&&ot===A.requestAnimationFrame||((ot=A.requestAnimationFrame)||vt)(pt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==at&&(t.__=t.__V),t.i=void 0,t.__V=at}))),st=rt=null},A.__c=function(t,e){e.some((function(t){try{t.__h.forEach(mt),t.__h=t.__h.filter((function(t){return!t.__||bt(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],A.__e(n,t.__v)}})),ht&&ht(t,e)},A.unmount=function(t){ft&&ft(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{mt(t)}catch(t){e=t}})),n.__H=void 0,e&&A.__e(e,n.__v))};var gt="function"==typeof requestAnimationFrame;function vt(t){var e,n=function(){clearTimeout(i),gt&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);gt&&(e=requestAnimationFrame(n))}function mt(t){var e=rt,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),rt=e}function bt(t){var e=rt;t.__c=t.__(),rt=e}function yt(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var i in e)if("__source"!==i&&t[i]!==e[i])return!0;return!1}function At(t){this.props=t}(At.prototype=new G).isPureReactComponent=!0,At.prototype.shouldComponentUpdate=function(t,e){return yt(this.props,t)||yt(this.state,e)};var wt=A.__b;A.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),wt&&wt(t)};var Et=A.__e;A.__e=function(t,e,n,i){if(t.then)for(var r,s=e;s=s.__;)if((r=s.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);Et(t,e,n,i)};var xt=A.unmount;function kt(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=function(t,e){for(var n in e)t[n]=e[n];return t}({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return kt(t,e,n)}))),t}function St(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return St(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function Dt(){this.__u=0,this.t=null,this.__b=null}function Ct(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Tt(){this.u=null,this.o=null}A.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),xt&&xt(t)},(Dt.prototype=new G).__c=function(t,e){var n=e.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=Ct(i.__v),s=!1,o=function(){s||(s=!0,n.__R=null,r?r(l):l())};n.__R=o;var l=function(){if(! --i.__u){if(i.state.__a){var t=i.state.__a;i.__v.__k[0]=St(t,t.__c.__P,t.__c.__O)}var e;for(i.setState({__a:i.__b=null});e=i.t.pop();)e.forceUpdate()}},a=!0===e.__h;i.__u++||a||i.setState({__a:i.__b=i.__v.__k[0]}),t.then(o,o)},Dt.prototype.componentWillUnmount=function(){this.t=[]},Dt.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=kt(this.__b,n,i.__O=i.__P)}this.__b=null}var r=e.__a&&_(I,null,t.fallback);return r&&(r.__h=null),[_(I,null,e.__a?null:t.children),r]};var Nt=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Mt(t){return this.getChildContext=function(){return t.context},t.children}function Rt(t){var e=this,n=t.i;e.componentWillUnmount=function(){it(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),it(_(Mt,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}(Tt.prototype=new G).__a=function(t){var e=this,n=Ct(e.__v),i=e.o.get(t);return i[0]++,function(r){var s=function(){e.props.revealOrder?(i.push(r),Nt(e,t,i)):r()};n?n(s):s()}},Tt.prototype.render=function(t){this.u=null,this.o=new Map;var e=$(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Tt.prototype.componentDidUpdate=Tt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){Nt(t,n,e)}))};var Ot="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,_t=/^(?: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]/,jt="undefined"!=typeof document,It=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};G.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(G.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var Bt=A.event;function zt(){}function Ht(){return this.cancelBubble}function Pt(){return this.defaultPrevented}A.event=function(t){return Bt&&(t=Bt(t)),t.persist=zt,t.isPropagationStopped=Ht,t.isDefaultPrevented=Pt,t.nativeEvent=t};var Gt={configurable:!0,get:function(){return this.class}},Ut=A.vnode;A.vnode=function(t){var e=t.type,n=t.props,i=n;if("string"==typeof e){var r=-1===e.indexOf("-");for(var s in i={},n){var o=n[s];jt&&"children"===s&&"noscript"===e||"value"===s&&"defaultValue"in n&&null==o||("defaultValue"===s&&"value"in n&&null==n.value?s="value":"download"===s&&!0===o?o="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!It(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():r&&_t.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===o&&(o=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),i[s]&&(s="oninputCapture")),i[s]=o)}"select"==e&&i.multiple&&Array.isArray(i.value)&&(i.value=$(n.children).forEach((function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)}))),"select"==e&&null!=i.defaultValue&&(i.value=$(n.children).forEach((function(t){t.props.selected=i.multiple?-1!=i.defaultValue.indexOf(t.props.value):i.defaultValue==t.props.value}))),t.props=i,n.class!=n.className&&(Gt.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Gt))}t.$$typeof=Ot,Ut&&Ut(t)};var Qt=A.__r;A.__r=function(t){Qt&&Qt(t)};const Lt=[],Vt=new Map;function Wt(t){Lt.push(t),Vt.forEach((e=>{Yt(e,t)}))}function Ft(t){let e=Vt.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=(void 0===$t&&($t=function(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}()),$t);n&&(e.nonce=n);const i=t===document?document.head:t,r=t===document?i.querySelector("script,link[rel=stylesheet],link[as=style],style"):i.firstChild;i.insertBefore(e,r)}Vt.set(t,e),function(t){for(const e of Lt)Yt(t,e)}(e)}}function Yt(t,e){const{sheet:n}=t,i=n.cssRules.length;e.split("}").forEach(((t,e)=>{(t=t.trim())&&n.insertRule(t+"}",i+e)}))}let $t;"undefined"!=typeof document&&Ft(document),Wt(':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{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;-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{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;-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)}');class qt{constructor(t){this.drainedOption=t,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(t){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==t?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),t))}pause(t=""){let{pauseDepths:e}=this;e[t]=(e[t]||0)+1,this.clearTimeout()}resume(t="",e){let{pauseDepths:n}=this;t in n&&(e?delete n[t]:(n[t]-=1,n[t]<=0&&delete n[t]),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 Zt(t){t.parentNode&&t.parentNode.removeChild(t)}function Jt(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(Xt(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}function Xt(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}const Kt=/(top|left|right|bottom|width|height)$/i;function te(t,e){for(let n in e)ee(t,n,e[n])}function ee(t,e,n){t.style[e]=null==n?"":"number"==typeof n&&Kt.test(e)?`${n}px`:n}function ne(t){var e,n;return null!==(n=null===(e=t.composedPath)||void 0===e?void 0:e.call(t)[0])&&void 0!==n?n:t.target}let ie=0;function re(){return ie+=1,"fc-dom-"+ie}function se(t){t.preventDefault()}function oe(t,e,n,i){let r=function(t,e){return n=>{let i=Jt(n.target,t);i&&e.call(i,n,i)}}(n,i);return t.addEventListener(e,r),()=>{t.removeEventListener(e,r)}}const le=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function ae(t){return Object.assign({onClick:t},ce(t))}function ce(t){return{tabIndex:0,onKeyDown(e){"Enter"!==e.key&&" "!==e.key||(t(e),e.preventDefault())}}}let ue=0;function de(){return ue+=1,String(ue)}function he(){document.body.classList.add("fc-not-allowed")}function fe(){document.body.classList.remove("fc-not-allowed")}function pe(t,e,n){return n.func?n.func(t,e):function(t,e){return t||e?null==e?-1:null==t?1:"string"==typeof t||"string"==typeof e?String(t).localeCompare(String(e)):t-e:0}(t[n.field],e[n.field])*(n.order||1)}function ge(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function ve(t,e,n){return"function"==typeof t?t(...e):"string"==typeof t?e.reduce(((t,e,n)=>t.replace("$"+n,e||"")),t):n}function me(t,e){return t-e}function be(t){return t%1==0}function ye(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const Ae=["years","months","days","milliseconds"],we=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Ee(t,e){return"string"==typeof t?function(t){let e=we.exec(t);if(e){let t=e[1]?-1:1;return{years:0,months:0,days:t*(e[2]?parseInt(e[2],10):0),milliseconds:t*(60*(e[3]?parseInt(e[3],10):0)*60*1e3+60*(e[4]?parseInt(e[4],10):0)*1e3+1e3*(e[5]?parseInt(e[5],10):0)+(e[6]?parseInt(e[6],10):0))}}return null}(t):"object"==typeof t&&t?xe(t):"number"==typeof t?xe({[e||"milliseconds"]:t}):null}function xe(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:60*(t.hours||t.hour||0)*60*1e3+60*(t.minutes||t.minute||0)*1e3+1e3*(t.seconds||t.second||0)+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=7*n,e.specifiedWeeks=!0),e}function ke(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function Se(t){return De(t)/864e5}function De(t){return 31536e6*t.years+2592e6*t.months+864e5*t.days+t.milliseconds}function Ce(t,e){let n=null;for(let i=0;i<Ae.length;i+=1){let r=Ae[i];if(e[r]){let i=t[r]/e[r];if(!be(i)||null!==n&&n!==i)return null;n=i}else if(t[r])return null}return n}function Te(t){let e=t.milliseconds;if(e){if(e%1e3!=0)return{unit:"millisecond",value:e};if(e%6e4!=0)return{unit:"second",value:e/1e3};if(e%36e5!=0)return{unit:"minute",value:e/6e4};if(e)return{unit:"hour",value:e/36e5}}return t.days?t.specifiedWeeks&&t.days%7==0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function Ne(t,e,n){if(t===e)return!0;let i,r=t.length;if(r!==e.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(t[i],e[i]):t[i]===e[i]))return!1;return!0}const Me=["sun","mon","tue","wed","thu","fri","sat"];function Re(t,e){let n=Ue(t);return n[2]+=7*e,Qe(n)}function Oe(t,e){let n=Ue(t);return n[2]+=e,Qe(n)}function _e(t,e){let n=Ue(t);return n[6]+=e,Qe(n)}function je(t,e){return(e.valueOf()-t.valueOf())/864e5}function Ie(t,e){return Ve(t)===Ve(e)?Math.round(je(t,e)):null}function Be(t){return Qe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function ze(t,e,n,i){let r=Qe([e,0,1+He(e,n,i)]),s=Be(t),o=Math.round(je(r,s));return Math.floor(o/7)+1}function He(t,e,n){let i=7+e-n;return-(7+Qe([t,0,i]).getUTCDay()-e)%7+i-1}function Pe(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Ge(t){return new Date(t[0],t[1]||0,null==t[2]?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function Ue(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Qe(t){return 1===t.length&&(t=t.concat([0])),new Date(Date.UTC(...t))}function Le(t){return!isNaN(t.valueOf())}function Ve(t){return 1e3*t.getUTCHours()*60*60+1e3*t.getUTCMinutes()*60+1e3*t.getUTCSeconds()+t.getUTCMilliseconds()}function We(t,e,n=!1){let i=t.toISOString();return i=i.replace(".000",""),n&&(i=i.replace("T00:00:00Z","")),i.length>10&&(null==e?i=i.replace("Z",""):0!==e&&(i=i.replace("Z",Ye(e,!0)))),i}function Fe(t){return t.toISOString().replace(/T.*$/,"")}function Ye(t,e=!1){let n=t<0?"-":"+",i=Math.abs(t),r=Math.floor(i/60),s=Math.round(i%60);return e?`${n+ge(r,2)}:${ge(s,2)}`:`GMT${n}${r}${s?`:${ge(s,2)}`:""}`}function $e(t,e,n){let i,r;return function(...s){if(i){if(!Ne(i,s)){n&&n(r);let i=t.apply(this,s);e&&e(i,r)||(r=i)}}else r=t.apply(this,s);return i=s,r}}function qe(t,e,n){let i,r;return s=>{if(i){if(!Tn(i,s)){n&&n(r);let i=t.call(this,s);e&&e(i,r)||(r=i)}}else r=t.call(this,s);return i=s,r}}const Ze={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Je={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Xe=/\s*([ap])\.?m\.?/i,Ke=/,/g,tn=/\s+/g,en=/\u200e/g,nn=/UTC|GMT/;class rn{constructor(t){let e={},n={},i=0;for(let r in t)r in Ze?(n[r]=t[r],i=Math.max(Ze[r],i)):(e[r]=t[r],r in Je&&(i=Math.max(Je[r],i)));this.standardDateProps=e,this.extendedSettings=n,this.severity=i,this.buildFormattingFunc=$e(sn)}format(t,e){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,e)(t)}formatRange(t,e,n,i){let{standardDateProps:r,extendedSettings:s}=this,o=(a=e.marker,(c=n.calendarSystem).getMarkerYear(l=t.marker)!==c.getMarkerYear(a)?5:c.getMarkerMonth(l)!==c.getMarkerMonth(a)?4:c.getMarkerDay(l)!==c.getMarkerDay(a)?2:Ve(l)!==Ve(a)?1:0);var l,a,c;if(!o)return this.format(t,n);let u=o;!(u>1)||"numeric"!==r.year&&"2-digit"!==r.year||"numeric"!==r.month&&"2-digit"!==r.month||"numeric"!==r.day&&"2-digit"!==r.day||(u=1);let d=this.format(t,n),h=this.format(e,n);if(d===h)return d;let f=sn(function(t,e){let n={};for(let i in t)(!(i in Je)||Je[i]<=e)&&(n[i]=t[i]);return n}(r,u),s,n),p=f(t),g=f(e),v=function(t,e,n,i){let r=0;for(;r<t.length;){let s=t.indexOf(e,r);if(-1===s)break;let o=t.substr(0,s);r=s+e.length;let l=t.substr(r),a=0;for(;a<n.length;){let t=n.indexOf(i,a);if(-1===t)break;let e=n.substr(0,t);a=t+i.length;let r=n.substr(a);if(o===e&&l===r)return{before:o,after:l}}}return null}(d,p,h,g),m=s.separator||i||n.defaultSeparator||"";return v?v.before+p+m+g+v.after:d+m+h}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 sn(t,e,n){let i=Object.keys(t).length;return 1===i&&"short"===t.timeZoneName?t=>Ye(t.timeZoneOffset):0===i&&e.week?t=>function(t,e,n,i,r){let s=[];return"long"===r?s.push(n):"short"!==r&&"narrow"!==r||s.push(e),"long"!==r&&"short"!==r||s.push(" "),s.push(i.simpleNumberFormat.format(t)),"rtl"===i.options.direction&&s.reverse(),s.join("")}(n.computeWeekNumber(t.marker),n.weekText,n.weekTextLong,n.locale,e.week):function(t,e,n){t=Object.assign({},t),e=Object.assign({},e),function(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),"long"===t.timeZoneName&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}(t,e),t.timeZone="UTC";let i,r=new Intl.DateTimeFormat(n.locale.codes,t);if(e.omitZeroMinute){let e=Object.assign({},t);delete e.minute,i=new Intl.DateTimeFormat(n.locale.codes,e)}return s=>{let o,{marker:l}=s;return o=i&&!l.getUTCMinutes()?i:r,function(t,e,n,i,r){return t=t.replace(en,""),"short"===n.timeZoneName&&(t=function(t,e){let n=!1;return t=t.replace(nn,(()=>(n=!0,e))),n||(t+=` ${e}`),t}(t,"UTC"===r.timeZone||null==e.timeZoneOffset?"UTC":Ye(e.timeZoneOffset))),i.omitCommas&&(t=t.replace(Ke,"").trim()),i.omitZeroMinute&&(t=t.replace(":00","")),!1===i.meridiem?t=t.replace(Xe,"").trim():"narrow"===i.meridiem?t=t.replace(Xe,((t,e)=>e.toLocaleLowerCase())):"short"===i.meridiem?t=t.replace(Xe,((t,e)=>`${e.toLocaleLowerCase()}m`)):"lowercase"===i.meridiem&&(t=t.replace(Xe,(t=>t.toLocaleLowerCase()))),t=(t=t.replace(tn," ")).trim()}(o.format(l),s,t,e,n)}}(t,e,n)}function on(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.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 ln(t,e,n,i){let r=on(t,n.calendarSystem);return{date:r,start:r,end:e?on(e,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:i||n.defaultSeparator}}class an{constructor(t){this.cmdStr=t}format(t,e,n){return e.cmdFormatter(this.cmdStr,ln(t,null,e,n))}formatRange(t,e,n,i){return n.cmdFormatter(this.cmdStr,ln(t,e,n,i))}}class cn{constructor(t){this.func=t}format(t,e,n){return this.func(ln(t,null,e,n))}formatRange(t,e,n,i){return this.func(ln(t,e,n,i))}}function un(t){return"object"==typeof t&&t?new rn(t):"string"==typeof t?new an(t):"function"==typeof t?new cn(t):null}const dn={navLinkDayClick:wn,navLinkWeekClick:wn,duration:Ee,bootstrapFontAwesome:wn,buttonIcons:wn,customButtons:wn,defaultAllDayEventDuration:Ee,defaultTimedEventDuration:Ee,nextDayThreshold:Ee,scrollTime:Ee,scrollTimeReset:Boolean,slotMinTime:Ee,slotMaxTime:Ee,dayPopoverFormat:un,slotDuration:Ee,snapDuration:Ee,headerToolbar:wn,footerToolbar:wn,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:un,dayHeaderClassNames:wn,dayHeaderContent:wn,dayHeaderDidMount:wn,dayHeaderWillUnmount:wn,dayCellClassNames:wn,dayCellContent:wn,dayCellDidMount:wn,dayCellWillUnmount:wn,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:wn,weekNumbers:Boolean,weekNumberClassNames:wn,weekNumberContent:wn,weekNumberDidMount:wn,weekNumberWillUnmount:wn,editable:Boolean,viewClassNames:wn,viewDidMount:wn,viewWillUnmount:wn,nowIndicator:Boolean,nowIndicatorClassNames:wn,nowIndicatorContent:wn,nowIndicatorDidMount:wn,nowIndicatorWillUnmount:wn,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:wn,locale:wn,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:wn,eventOrder:function(t){let e,n,i=[],r=[];for("string"==typeof t?r=t.split(/\s*,\s*/):"function"==typeof t?r=[t]:Array.isArray(t)&&(r=t),e=0;e<r.length;e+=1)n=r[e],"string"==typeof n?i.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&i.push({func:n});return i},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:wn,contentHeight:wn,direction:String,weekNumberFormat:un,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:wn,initialDate:wn,now:wn,eventDataTransform:wn,stickyHeaderDates:wn,stickyFooterScrollbar:wn,viewHeight:wn,defaultAllDay:Boolean,eventSourceFailure:wn,eventSourceSuccess:wn,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:wn,eventConstraint:wn,eventAllow:wn,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:wn,eventContent:wn,eventDidMount:wn,eventWillUnmount:wn,selectConstraint:wn,selectOverlap:wn,selectAllow:wn,droppable:Boolean,unselectCancel:String,slotLabelFormat:wn,slotLaneClassNames:wn,slotLaneContent:wn,slotLaneDidMount:wn,slotLaneWillUnmount:wn,slotLabelClassNames:wn,slotLabelContent:wn,slotLabelDidMount:wn,slotLabelWillUnmount:wn,dayMaxEvents:wn,dayMaxEventRows:wn,dayMinWidth:Number,slotLabelInterval:Ee,allDayText:String,allDayClassNames:wn,allDayContent:wn,allDayDidMount:wn,allDayWillUnmount:wn,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:un,rerenderDelay:Number,moreLinkText:wn,moreLinkHint:wn,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:wn,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Ee,hiddenDays:wn,fixedWeekCount:Boolean,validRange:wn,visibleRange:wn,titleFormat:wn,eventInteractive:Boolean,noEventsText:String,viewHint:wn,navLinkHint:wn,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:wn,moreLinkClassNames:wn,moreLinkContent:wn,moreLinkDidMount:wn,moreLinkWillUnmount:wn,monthStartFormat:un,handleCustomRendering:wn,customRenderingMetaMap:wn,customRenderingReplaces:Boolean},hn={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"}},fn={datesSet:wn,eventsSet:wn,eventAdd:wn,eventChange:wn,eventRemove:wn,windowResize:wn,eventClick:wn,eventMouseEnter:wn,eventMouseLeave:wn,select:wn,unselect:wn,loading:wn,_unmount:wn,_beforeprint:wn,_afterprint:wn,_noEventDrop:wn,_noEventResize:wn,_resize:wn,_scrollRequest:wn},pn={buttonText:wn,buttonHints:wn,views:wn,plugins:wn,initialEvents:wn,events:wn,eventSources:wn},gn={headerToolbar:vn,footerToolbar:vn,buttonText:vn,buttonHints:vn,buttonIcons:vn,dateIncrement:vn,plugins:mn,events:mn,eventSources:mn,resources:mn};function vn(t,e){return"object"==typeof t&&"object"==typeof e&&t&&e?Tn(t,e):t===e}function mn(t,e){return Array.isArray(t)&&Array.isArray(e)?Ne(t,e):t===e}const bn={type:String,component:wn,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:wn,usesMinMaxTime:Boolean,classNames:wn,content:wn,didMount:wn,willUnmount:wn};function yn(t){return xn(t,gn)}function An(t,e){let n={},i={};for(let i in e)i in t&&(n[i]=e[i](t[i]));for(let n in t)n in e||(i[n]=t[n]);return{refined:n,extra:i}}function wn(t){return t}const{hasOwnProperty:En}=Object.prototype;function xn(t,e){let n={};if(e)for(let i in e)if(e[i]===vn){let e=[];for(let r=t.length-1;r>=0;r-=1){let s=t[r][i];if("object"==typeof s&&s)e.unshift(s);else if(void 0!==s){n[i]=s;break}}e.length&&(n[i]=xn(e))}for(let e=t.length-1;e>=0;e-=1){let i=t[e];for(let t in i)t in n||(n[t]=i[t])}return n}function kn(t,e){let n={};for(let i in t)e(t[i],i)&&(n[i]=t[i]);return n}function Sn(t,e){let n={};for(let i in t)n[i]=e(t[i],i);return n}function Dn(t){let e={};for(let n of t)e[n]=!0;return e}function Cn(t){let e=[];for(let n in t)e.push(t[n]);return e}function Tn(t,e){if(t===e)return!0;for(let n in t)if(En.call(t,n)&&!(n in e))return!1;for(let n in e)if(En.call(e,n)&&t[n]!==e[n])return!1;return!0}const Nn=/^on[A-Z]/;function Mn(t,e){let n=[];for(let i in t)En.call(t,i)&&(i in e||n.push(i));for(let i in e)En.call(e,i)&&t[i]!==e[i]&&n.push(i);return n}function Rn(t,e,n={}){if(t===e)return!0;for(let o in e)if(!(o in t&&(i=t[o],r=e[o],s=n[o],i===r||!0===s||s&&s(i,r))))return!1;var i,r,s;for(let n in t)if(!(n in e))return!1;return!0}let On={};On.gregory=class{getMarkerYear(t){return t.getUTCFullYear()}getMarkerMonth(t){return t.getUTCMonth()}getMarkerDay(t){return t.getUTCDate()}arrayToMarker(t){return Qe(t)}markerToArray(t){return Ue(t)}};const _n=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class jn{constructor(t){let e=this.timeZone=t.timeZone,n="local"!==e&&"UTC"!==e;t.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new t.namedTimeZoneImpl(e)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(t){return new On[t]}(t.calendarSystem),this.locale=t.locale,this.weekDow=t.locale.week.dow,this.weekDoy=t.locale.week.doy,"ISO"===t.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof t.firstDay&&(this.weekDow=t.firstDay),"function"==typeof t.weekNumberCalculation&&(this.weekNumberFunc=t.weekNumberCalculation),this.weekText=null!=t.weekText?t.weekText:t.locale.options.weekText,this.weekTextLong=(null!=t.weekTextLong?t.weekTextLong:t.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=t.cmdFormatter,this.defaultSeparator=t.defaultSeparator}createMarker(t){let e=this.createMarkerMeta(t);return null===e?null:e.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):Qe(Pe(new Date))}createMarkerMeta(t){if("string"==typeof t)return this.parse(t);let e=null;return"number"==typeof t?e=this.timestampToMarker(t):t instanceof Date?(t=t.valueOf(),isNaN(t)||(e=this.timestampToMarker(t))):Array.isArray(t)&&(e=Qe(t)),null!==e&&Le(e)?{marker:e,isTimeUnspecified:!1,forcedTzo:null}:null}parse(t){let e=function(t){let e=_n.exec(t);if(e){let t=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?1e3*Number(`0.${e[12]}`):0));if(Le(t)){let n=null;return e[13]&&(n=("-"===e[15]?-1:1)*(60*Number(e[16]||0)+Number(e[18]||0))),{marker:t,isTimeUnspecified:!e[6],timeZoneOffset:n}}}return null}(t);if(null===e)return null;let{marker:n}=e,i=null;return null!==e.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*e.timeZoneOffset*1e3):i=e.timeZoneOffset),{marker:n,isTimeUnspecified:e.isTimeUnspecified,forcedTzo:i}}getYear(t){return this.calendarSystem.getMarkerYear(t)}getMonth(t){return this.calendarSystem.getMarkerMonth(t)}getDay(t){return this.calendarSystem.getMarkerDay(t)}add(t,e){let n=this.calendarSystem.markerToArray(t);return n[0]+=e.years,n[1]+=e.months,n[2]+=e.days,n[6]+=e.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(t,e){let n=this.calendarSystem.markerToArray(t);return n[0]-=e.years,n[1]-=e.months,n[2]-=e.days,n[6]-=e.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(t,e){let n=this.calendarSystem.markerToArray(t);return n[0]+=e,this.calendarSystem.arrayToMarker(n)}addMonths(t,e){let n=this.calendarSystem.markerToArray(t);return n[1]+=e,this.calendarSystem.arrayToMarker(n)}diffWholeYears(t,e){let{calendarSystem:n}=this;return Ve(t)===Ve(e)&&n.getMarkerDay(t)===n.getMarkerDay(e)&&n.getMarkerMonth(t)===n.getMarkerMonth(e)?n.getMarkerYear(e)-n.getMarkerYear(t):null}diffWholeMonths(t,e){let{calendarSystem:n}=this;return Ve(t)===Ve(e)&&n.getMarkerDay(t)===n.getMarkerDay(e)?n.getMarkerMonth(e)-n.getMarkerMonth(t)+12*(n.getMarkerYear(e)-n.getMarkerYear(t)):null}greatestWholeUnit(t,e){let n=this.diffWholeYears(t,e);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(t,e),null!==n?{unit:"month",value:n}:(n=function(t,e){let n=Ie(t,e);return null!==n&&n%7==0?n/7:null}(t,e),null!==n?{unit:"week",value:n}:(n=Ie(t,e),null!==n?{unit:"day",value:n}:(n=function(t,e){return(e.valueOf()-t.valueOf())/36e5}(t,e),be(n)?{unit:"hour",value:n}:(n=function(t,e){return(e.valueOf()-t.valueOf())/6e4}(t,e),be(n)?{unit:"minute",value:n}:(n=function(t,e){return(e.valueOf()-t.valueOf())/1e3}(t,e),be(n)?{unit:"second",value:n}:{unit:"millisecond",value:e.valueOf()-t.valueOf()}))))))}countDurationsBetween(t,e,n){let i;return n.years&&(i=this.diffWholeYears(t,e),null!==i)?i/(Se(n)/365):n.months&&(i=this.diffWholeMonths(t,e),null!==i)?i/(Se(n)/30):n.days&&(i=Ie(t,e),null!==i)?i/Se(n):(e.valueOf()-t.valueOf())/De(n)}startOf(t,e){return"year"===e?this.startOfYear(t):"month"===e?this.startOfMonth(t):"week"===e?this.startOfWeek(t):"day"===e?Be(t):"hour"===e?function(t){return Qe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}(t):"minute"===e?function(t){return Qe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}(t):"second"===e?function(t){return Qe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}(t):null}startOfYear(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t)])}startOfMonth(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t)])}startOfWeek(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t),t.getUTCDate()-(t.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(t){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(t)):function(t,e,n){let i=t.getUTCFullYear(),r=ze(t,i,e,n);if(r<1)return ze(t,i-1,e,n);let s=ze(t,i+1,e,n);return s>=1?Math.min(r,s):r}(t,this.weekDow,this.weekDoy)}format(t,e,n={}){return e.format({marker:t,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(t)},this)}formatRange(t,e,n,i={}){return i.isEndExclusive&&(e=_e(e,-1)),n.formatRange({marker:t,timeZoneOffset:null!=i.forcedStartTzo?i.forcedStartTzo:this.offsetForMarker(t)},{marker:e,timeZoneOffset:null!=i.forcedEndTzo?i.forcedEndTzo:this.offsetForMarker(e)},this,i.defaultSeparator)}formatIso(t,e={}){let n=null;return e.omitTimeZoneOffset||(n=null!=e.forcedTzo?e.forcedTzo:this.offsetForMarker(t)),We(t,n,e.omitTime)}timestampToMarker(t){return"local"===this.timeZone?Qe(Pe(new Date(t))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Qe(this.namedTimeZoneImpl.timestampToArray(t)):new Date(t)}offsetForMarker(t){return"local"===this.timeZone?-Ge(Ue(t)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Ue(t)):null}toDate(t,e){return"local"===this.timeZone?Ge(Ue(t)):"UTC"===this.timeZone?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Ue(t))*60):new Date(t.valueOf()-(e||0))}}class In{constructor(t){this.iconOverrideOption&&this.setIconOverride(t[this.iconOverrideOption])}setIconOverride(t){let e,n;if("object"==typeof t&&t){for(n in e=Object.assign({},this.iconClasses),t)e[n]=this.applyIconOverridePrefix(t[n]);this.iconClasses=e}else!1===t&&(this.iconClasses={})}applyIconOverridePrefix(t){let e=this.iconOverridePrefix;return e&&0!==t.indexOf(e)&&(t=e+t),t}getClass(t){return this.classes[t]||""}getIconClass(t,e){let n;return n=e&&this.rtlIconClasses&&this.rtlIconClasses[t]||this.iconClasses[t],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(t){let e;return this.iconOverrideCustomButtonOption&&(e=t[this.iconOverrideCustomButtonOption],e)?`${this.baseIconClass} ${this.applyIconOverridePrefix(e)}`:""}}function Bn(t){t();let e=A.debounceRendering,n=[];for(A.debounceRendering=function(t){n.push(t)},it(_(zn,{}),document.createElement("div"));n.length;)n.shift()();A.debounceRendering=e}In.prototype.classes={},In.prototype.iconClasses={},In.prototype.baseIconClass="",In.prototype.iconOverridePrefix="";class zn extends G{render(){return _("div",{})}componentDidMount(){this.setState({})}}function Hn(t){let e=function(t,e){var n={__c:e="__cC"+C++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,i;return this.getChildContext||(n=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,V(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}(t),n=e.Provider;return e.Provider=function(){let t=!this.getChildContext,e=n.apply(this,arguments);if(t){let t=[];this.shouldComponentUpdate=e=>{this.props.value!==e.value&&t.forEach((t=>{t.context=e.value,t.forceUpdate()}))},this.sub=e=>{t.push(e);let n=e.componentWillUnmount;e.componentWillUnmount=()=>{t.splice(t.indexOf(e),1),n&&n.call(e)}}}return e},e}class Pn{constructor(t,e,n,i){this.execFunc=t,this.emitter=e,this.scrollTime=n,this.scrollTimeReset=i,this.handleScrollRequest=t=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},t),this.drain()},e.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(t){t&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const Gn=Hn({});function Un(t,e,n,i,r,s,o,l,a,c,u,d,h){return{dateEnv:r,options:n,pluginHooks:o,emitter:c,dispatch:l,getCurrentData:a,calendarApi:u,viewSpec:t,viewApi:e,dateProfileGenerator:i,theme:s,isRtl:"rtl"===n.direction,addResizeHandler(t){c.on("_resize",t)},removeResizeHandler(t){c.off("_resize",t)},createScrollResponder:t=>new Pn(t,c,Ee(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:d,unregisterInteractiveComponent:h}}class Qn extends G{shouldComponentUpdate(t,e){return this.debug&&console.log(Mn(t,this.props),Mn(e,this.state)),!Rn(this.props,t,this.propEquality)||!Rn(this.state,e,this.stateEquality)}safeSetState(t){Rn(this.state,Object.assign(Object.assign({},this.state),t),this.stateEquality)||this.setState(t)}}Qn.addPropsEquality=function(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e},Qn.addStateEquality=function(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e},Qn.contextType=Gn,Qn.prototype.propEquality={},Qn.prototype.stateEquality={};class Ln extends Qn{}function Vn(t,e){"function"==typeof t?t(e):t&&(t.current=e)}Ln.contextType=Gn;class Wn extends Ln{constructor(){super(...arguments),this.id=de(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=t=>{const{options:e}=this.context,{generatorName:n}=this.props;e.customRenderingReplaces&&Fn(n,e)||this.updateElRef(t)},this.updateElRef=t=>{this.props.elRef&&Vn(this.props.elRef,t)}}render(){const{props:t,context:e}=this,{options:n}=e,{customGenerator:i,defaultGenerator:r,renderProps:s}=t,o=Yn(t,[],this.handleEl);let l,a,c=!1,u=[];if(null!=i){const t="function"==typeof i?i(s,_):i;if(!0===t)c=!0;else{const e=t&&"object"==typeof t;e&&"html"in t?o.dangerouslySetInnerHTML={__html:t.html}:e&&"domNodes"in t?u=Array.prototype.slice.call(t.domNodes):(e?E(t):"function"!=typeof t)?l=t:a=t}}else c=!Fn(t.generatorName,n);return c&&r&&(l=r(s)),this.queuedDomNodes=u,this.currentGeneratorMeta=a,_(t.elTag,o,l)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(t){var e;const{props:n,context:i}=this,{handleCustomRendering:r,customRenderingMetaMap:s}=i.options;if(r){const i=null!==(e=this.currentGeneratorMeta)&&void 0!==e?e:null==s?void 0:s[n.generatorName];i&&r(Object.assign(Object.assign({id:this.id,isActive:t,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:i},n),{elClasses:(n.elClasses||[]).filter($n)}))}}applyQueueudDomNodes(){const{queuedDomNodes:t,currentDomNodes:e}=this,n=this.base;if(!Ne(t,e)){e.forEach(Zt);for(let e of t)n.appendChild(e);this.currentDomNodes=t}}}function Fn(t,e){var n;return Boolean(e.handleCustomRendering&&t&&(null===(n=e.customRenderingMetaMap)||void 0===n?void 0:n[t]))}function Yn(t,e,n){const i=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(i.className=(t.elClasses||[]).concat(e||[]).concat(i.className||[]).filter(Boolean).join(" ")),t.elStyle&&(i.style=t.elStyle),i}function $n(t){return Boolean(t)}Wn.addPropsEquality({elClasses:Ne,elStyle:Tn,elAttrs:function(t,e){const n=Mn(t,e);for(let t of n)if(!Nn.test(t))return!1;return!0},renderProps:Tn});const qn=Hn(0);class Zn extends G{constructor(){super(...arguments),this.InnerContent=Jn.bind(void 0,this),this.handleEl=t=>{this.el=t,this.props.elRef&&(Vn(this.props.elRef,t),t&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:t}=this,e=function(t,e){const n="function"==typeof t?t(e):t||[];return"string"==typeof n?[n]:n}(t.classNameGenerator,t.renderProps);if(t.children){const n=Yn(t,e,this.handleEl),i=t.children(this.InnerContent,t.renderProps,n);return t.elTag?_(t.elTag,n,i):i}return _(Wn,Object.assign(Object.assign({},t),{elRef:this.handleEl,elTag:t.elTag||"div",elClasses:(t.elClasses||[]).concat(e),renderId:this.context}))}componentDidMount(){var t,e;this.el?null===(e=(t=this.props).didMount)||void 0===e||e.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var t,e;null===(e=(t=this.props).willUnmount)||void 0===e||e.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}function Jn(t,e){const n=t.props;return _(Wn,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}Zn.contextType=qn;class Xn extends Ln{render(){let{props:t,context:e}=this,{options:n}=e,i={view:e.viewApi};return _(Zn,Object.assign({},t,{elTag:t.elTag||"div",elClasses:[...Kn(t.viewSpec),...t.elClasses||[]],renderProps:i,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),(()=>t.children))}}function Kn(t){return[`fc-${t.type}-view`,"fc-view"]}function ti(t,e){let n,i,r=[],{start:s}=e;for(t.sort(ei),n=0;n<t.length;n+=1)i=t[n],i.start>s&&r.push({start:s,end:i.start}),i.end>s&&(s=i.end);return s<e.end&&r.push({start:s,end:e.end}),r}function ei(t,e){return t.start.valueOf()-e.start.valueOf()}function ni(t,e){let{start:n,end:i}=t,r=null;return null!==e.start&&(n=null===n?e.start:new Date(Math.max(n.valueOf(),e.start.valueOf()))),null!=e.end&&(i=null===i?e.end:new Date(Math.min(i.valueOf(),e.end.valueOf()))),(null===n||null===i||n<i)&&(r={start:n,end:i}),r}function ii(t,e){return(null===t.end||null===e.start||t.end>e.start)&&(null===t.start||null===e.end||t.start<e.end)}function ri(t,e){return(null===t.start||null!==e.start&&e.start>=t.start)&&(null===t.end||null!==e.end&&e.end<=t.end)}function si(t,e){return(null===t.start||e>=t.start)&&(null===t.end||e<t.end)}function oi(t){let e=Math.floor(je(t.start,t.end))||1,n=Be(t.start);return{start:n,end:Oe(n,e)}}function li(t,e=Ee(0)){let n=null,i=null;if(t.end){i=Be(t.end);let n=t.end.valueOf()-i.valueOf();n&&n>=De(e)&&(i=Oe(i,1))}return t.start&&(n=Be(t.start),i&&i<=n&&(i=Oe(n,1))),{start:n,end:i}}function ai(t,e,n,i){return"year"===i?Ee(n.diffWholeYears(t,e),"year"):"month"===i?Ee(n.diffWholeMonths(t,e),"month"):function(t,e){let n=Be(t),i=Be(e);return{years:0,months:0,days:Math.round(je(n,i)),milliseconds:e.valueOf()-i.valueOf()-(t.valueOf()-n.valueOf())}}(t,e)}function ci(t,e){return"function"==typeof t&&(t=t()),null==t?e.createNowMarker():e.createMarker(t)}class ui{constructor(t){this.props=t,this.nowDate=ci(t.nowInput,t.dateEnv),this.initHiddenDays()}buildPrev(t,e,n){let{dateEnv:i}=this.props,r=i.subtract(i.startOf(e,t.currentRangeUnit),t.dateIncrement);return this.build(r,-1,n)}buildNext(t,e,n){let{dateEnv:i}=this.props,r=i.add(i.startOf(e,t.currentRangeUnit),t.dateIncrement);return this.build(r,1,n)}build(t,e,n=!0){let i,r,s,o,l,a,{props:c}=this;var u,d;return i=this.buildValidRange(),i=this.trimHiddenDays(i),n&&(u=t,t=null!=(d=i).start&&u<d.start?d.start:null!=d.end&&u>=d.end?new Date(d.end.valueOf()-1):u),r=this.buildCurrentRangeInfo(t,e),s=/^(year|month|week|day)$/.test(r.unit),o=this.buildRenderRange(this.trimHiddenDays(r.range),r.unit,s),o=this.trimHiddenDays(o),l=o,c.showNonCurrentDates||(l=ni(l,r.range)),l=this.adjustActiveRange(l),l=ni(l,i),a=ii(r.range,i),si(o,t)||(t=o.start),{currentDate:t,validRange:i,currentRange:r.range,currentRangeUnit:r.unit,isRangeAllDay:s,activeRange:l,renderRange:o,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:a,dateIncrement:this.buildDateIncrement(r.duration)}}buildValidRange(){let t=this.props.validRangeInput,e="function"==typeof t?t.call(this.props.calendarApi,this.nowDate):t;return this.refineRange(e)||{start:null,end:null}}buildCurrentRangeInfo(t,e){let n,{props:i}=this,r=null,s=null,o=null;return i.duration?(r=i.duration,s=i.durationUnit,o=this.buildRangeFromDuration(t,e,r,s)):(n=this.props.dayCount)?(s="day",o=this.buildRangeFromDayCount(t,e,n)):(o=this.buildCustomVisibleRange(t))?s=i.dateEnv.greatestWholeUnit(o.start,o.end).unit:(r=this.getFallbackDuration(),s=Te(r).unit,o=this.buildRangeFromDuration(t,e,r,s)),{duration:r,unit:s,range:o}}getFallbackDuration(){return Ee({day:1})}adjustActiveRange(t){let{dateEnv:e,usesMinMaxTime:n,slotMinTime:i,slotMaxTime:r}=this.props,{start:s,end:o}=t;return n&&(Se(i)<0&&(s=Be(s),s=e.add(s,i)),Se(r)>1&&(o=Be(o),o=Oe(o,-1),o=e.add(o,r))),{start:s,end:o}}buildRangeFromDuration(t,e,n,i){let r,s,o,{dateEnv:l,dateAlignment:a}=this.props;if(!a){let{dateIncrement:t}=this.props;a=t&&De(t)<De(n)?Te(t).unit:i}function c(){r=l.startOf(t,a),s=l.add(r,n),o={start:r,end:s}}return Se(n)<=1&&this.isHiddenDay(r)&&(r=this.skipHiddenDays(r,e),r=Be(r)),c(),this.trimHiddenDays(o)||(t=this.skipHiddenDays(t,e),c()),o}buildRangeFromDayCount(t,e,n){let i,{dateEnv:r,dateAlignment:s}=this.props,o=0,l=t;s&&(l=r.startOf(l,s)),l=Be(l),l=this.skipHiddenDays(l,e),i=l;do{i=Oe(i,1),this.isHiddenDay(i)||(o+=1)}while(o<n);return{start:l,end:i}}buildCustomVisibleRange(t){let{props:e}=this,n=e.visibleRangeInput,i="function"==typeof n?n.call(e.calendarApi,e.dateEnv.toDate(t)):n,r=this.refineRange(i);return!r||null!=r.start&&null!=r.end?r:null}buildRenderRange(t,e,n){return t}buildDateIncrement(t){let e,{dateIncrement:n}=this.props;return n||((e=this.props.dateAlignment)?Ee(1,e):t||Ee({days:1}))}refineRange(t){if(t){let e=function(t,e){let n=null,i=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(i=e.createMarker(t.end)),n||i?n&&i&&i<n?null:{start:n,end:i}:null}(t,this.props.dateEnv);return e&&(e=li(e)),e}return null}initHiddenDays(){let t,e=this.props.hiddenDays||[],n=[],i=0;for(!1===this.props.weekends&&e.push(0,6),t=0;t<7;t+=1)(n[t]=-1!==e.indexOf(t))||(i+=1);if(!i)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(t){let{start:e,end:n}=t;return e&&(e=this.skipHiddenDays(e)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==e||null==n||e<n?{start:e,end:n}:null}isHiddenDay(t){return t instanceof Date&&(t=t.getUTCDay()),this.isHiddenDayHash[t]}skipHiddenDays(t,e=1,n=!1){for(;this.isHiddenDayHash[(t.getUTCDay()+(n?e:0)+7)%7];)t=Oe(t,e);return t}}function di(t,e,n,i){return{instanceId:de(),defId:t,range:e,forcedStartTzo:null==n?null:n,forcedEndTzo:null==i?null:i}}function hi(t,e,n){let{dateEnv:i,pluginHooks:r,options:s}=n,{defs:o,instances:l}=t;l=kn(l,(t=>!o[t.defId].recurringDef));for(let t in o){let n=o[t];if(n.recurringDef){let{duration:o}=n.recurringDef;o||(o=n.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let a=fi(n,o,e,i,r.recurringTypes);for(let e of a){let n=di(t,{start:e,end:i.add(e,o)});l[n.instanceId]=n}}}return{defs:o,instances:l}}function fi(t,e,n,i,r){let s=r[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:i.subtract(n.start,e),end:n.end},i);return t.allDay&&(s=s.map(Be)),s}const pi={id:String,groupId:String,title:String,url:String,interactive:Boolean},gi={start:wn,end:wn,date:wn,allDay:Boolean},vi=Object.assign(Object.assign(Object.assign({},pi),gi),{extendedProps:wn});function mi(t,e,n,i,r=yi(n),s,o){let{refined:l,extra:a}=bi(t,n,r),c=function(t,e){let n=null;return t&&(n=t.defaultAllDay),null==n&&(n=e.options.defaultAllDay),n}(e,n),u=function(t,e,n,i){for(let r=0;r<i.length;r+=1){let s=i[r].parse(t,n);if(s){let{allDay:n}=t;return null==n&&(n=e,null==n&&(n=s.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:s.duration,typeData:s.typeData,typeId:r}}}return null}(l,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let t=Ai(l,a,e?e.sourceId:"",u.allDay,Boolean(u.duration),n,s);return t.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:t,instance:null}}let d=function(t,e,n,i){let r,s,{allDay:o}=t,l=null,a=!1,c=null;if(r=n.dateEnv.createMarkerMeta(null!=t.start?t.start:t.date),r)l=r.marker;else if(!i)return null;return null!=t.end&&(s=n.dateEnv.createMarkerMeta(t.end)),null==o&&(o=null!=e?e:(!r||r.isTimeUnspecified)&&(!s||s.isTimeUnspecified)),o&&l&&(l=Be(l)),s&&(c=s.marker,o&&(c=Be(c)),l&&c<=l&&(c=null)),c?a=!0:i||(a=n.options.forceEventDuration||!1,c=n.dateEnv.add(l,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:o,hasEnd:a,range:{start:l,end:c},forcedStartTzo:r?r.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}(l,c,n,i);if(d){let t=Ai(l,a,e?e.sourceId:"",d.allDay,d.hasEnd,n,s),i=di(t.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return o&&t.publicId&&o[t.publicId]&&(i.instanceId=o[t.publicId]),{def:t,instance:i}}return null}function bi(t,e,n=yi(e)){return An(t,n)}function yi(t){return Object.assign(Object.assign(Object.assign({},Ci),vi),t.pluginHooks.eventRefiners)}function Ai(t,e,n,i,r,s,o){let l={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(o&&t.id?o[t.id]:"")||de(),sourceId:n,allDay:i,hasEnd:r,interactive:t.interactive,ui:Ni(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let e of s.pluginHooks.eventDefMemberAdders)Object.assign(l,e(t));return Object.freeze(l.ui.classNames),Object.freeze(l.extendedProps),l}function wi(t,e,n,i,r,s){let o={defs:{},instances:{}},l=yi(n);for(let a of t){let t=mi(a,e,n,i,l,r,s);t&&Ei(t,o)}return o}function Ei(t,e={defs:{},instances:{}}){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function xi(t,e){let n=t.instances[e];if(n){let e=t.defs[n.defId],i=Si(t,(t=>{return n=e,Boolean(n.groupId&&n.groupId===t.groupId);var n}));return i.defs[e.defId]=e,i.instances[n.instanceId]=n,i}return{defs:{},instances:{}}}function ki(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Si(t,e){let n=kn(t.defs,e),i=kn(t.instances,(t=>n[t.defId]));return{defs:n,instances:i}}function Di(t){return Array.isArray(t)?t:"string"==typeof t?t.split(/\s+/):[]}const Ci={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:wn,overlap:wn,allow:wn,className:Di,classNames:Di,color:String,backgroundColor:String,borderColor:String,textColor:String},Ti={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Ni(t,e){let n=function(t,e){return Array.isArray(t)?wi(t,null,e,!0):"object"==typeof t&&t?wi([t],null,e,!0):null!=t?String(t):null}(t.constraint,e);return{display:t.display||null,startEditable:null!=t.startEditable?t.startEditable:t.editable,durationEditable:null!=t.durationEditable?t.durationEditable:t.editable,constraints:null!=n?[n]:[],overlap:null!=t.overlap?t.overlap:null,allows:null!=t.allow?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Mi(t){return t.reduce(Ri,Ti)}function Ri(t,e){return{display:null!=e.display?e.display:t.display,startEditable:null!=e.startEditable?e.startEditable:t.startEditable,durationEditable:null!=e.durationEditable?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:"boolean"==typeof e.overlap?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const Oi={id:String,defaultAllDay:Boolean,url:String,format:String,events:wn,eventDataTransform:wn,success:wn,failure:wn};function _i(t,e,n=ji(e)){let i;if("string"==typeof t?i={url:t}:"function"==typeof t||Array.isArray(t)?i={events:t}:"object"==typeof t&&t&&(i=t),i){let{refined:r,extra:s}=An(i,n),o=function(t,e){let n=e.pluginHooks.eventSourceDefs;for(let e=n.length-1;e>=0;e-=1){let i=n[e].parseMeta(t);if(i)return{sourceDefId:e,meta:i}}return null}(r,e);if(o)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:r.defaultAllDay,eventDataTransform:r.eventDataTransform,success:r.success,failure:r.failure,publicId:r.id||"",sourceId:de(),sourceDefId:o.sourceDefId,meta:o.meta,ui:Ni(r,e),extendedProps:s}}return null}function ji(t){return Object.assign(Object.assign(Object.assign({},Ci),Oi),t.pluginHooks.eventSourceRefiners)}function Ii(t,e,n){let i=n.options.eventDataTransform,r=e?e.eventDataTransform:null;return r&&(t=Bi(t,r)),i&&(t=Bi(t,i)),t}function Bi(t,e){let n;if(e){n=[];for(let i of t){let t=e(i);t?n.push(t):null==t&&n.push(i)}}else n=t;return n}function zi(t,e,n){let{defs:i}=t,r=Sn(t.instances,(t=>i[t.defId].allDay?t:Object.assign(Object.assign({},t),{range:{start:n.createMarker(e.toDate(t.range.start,t.forcedStartTzo)),end:n.createMarker(e.toDate(t.range.end,t.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:t.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:t.forcedEndTzo})));return{defs:i,instances:r}}function Hi(t,e){return Si(t,(t=>t.sourceId!==e))}class Pi{constructor(){this.handlers={},this.thisContext=null}setThisContext(t){this.thisContext=t}setOptions(t){this.options=t}on(t,e){!function(t,e,n){(t[e]||(t[e]=[])).push(n)}(this.handlers,t,e)}off(t,e){!function(t,e,n){n?t[e]&&(t[e]=t[e].filter((t=>t!==n))):delete t[e]}(this.handlers,t,e)}trigger(t,...e){let n=[].concat(this.options&&this.options[t]||[],this.handlers[t]||[]);for(let t of n)t.apply(this.thisContext,e)}hasHandlers(t){return Boolean(this.handlers[t]&&this.handlers[t].length||this.options&&this.options[t])}}const Gi={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Ui(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},Qi(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Qi(t,e){let n={};for(let i of e.pluginHooks.dateSpanTransforms)Object.assign(n,i(t,e));var i;return Object.assign(n,(i=t,Object.assign(Object.assign({},pr(i.range,e.dateEnv,i.allDay)),{allDay:i.allDay}))),n}function Li(t,e,n){let{dateEnv:i,options:r}=n,s=e;return t?(s=Be(s),s=i.add(s,r.defaultAllDayEventDuration)):s=i.add(s,r.defaultTimedEventDuration),s}function Vi(t,e,n,i){let r=tr(t.defs,e),s={defs:{},instances:{}};for(let e in t.defs)s.defs[e]=Wi(t.defs[e],r[e],n,i);for(let e in t.instances){let o=t.instances[e];s.instances[e]=Fi(o,s.defs[o.defId],r[o.defId],n,i)}return s}function Wi(t,e,n,i){let r=n.standardProps||{};null==r.hasEnd&&e.durationEditable&&(n.startDelta||n.endDelta)&&(r.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),r),{ui:Object.assign(Object.assign({},t.ui),r.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let t of i.pluginHooks.eventDefMutationAppliers)t(s,n,i);return!s.hasEnd&&i.options.forceEventDuration&&(s.hasEnd=!0),s}function Fi(t,e,n,i,r){let{dateEnv:s}=r,o=i.standardProps&&!0===i.standardProps.allDay,l=i.standardProps&&!1===i.standardProps.hasEnd,a=Object.assign({},t);return o&&(a.range=oi(a.range)),i.datesDelta&&n.startEditable&&(a.range={start:s.add(a.range.start,i.datesDelta),end:s.add(a.range.end,i.datesDelta)}),i.startDelta&&n.durationEditable&&(a.range={start:s.add(a.range.start,i.startDelta),end:a.range.end}),i.endDelta&&n.durationEditable&&(a.range={start:a.range.start,end:s.add(a.range.end,i.endDelta)}),l&&(a.range={start:a.range.start,end:Li(e.allDay,a.range.start,r)}),e.allDay&&(a.range={start:Be(a.range.start),end:Be(a.range.end)}),a.range.end<a.range.start&&(a.range.end=Li(e.allDay,a.range.start,r)),a}class Yi{constructor(t,e){this.context=t,this.internalEventSource=e}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 $i{constructor(t,e,n){this._context=t,this._def=e,this._instance=n||null}setProp(t,e){if(t in gi)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===t)e=pi[t](e),this.mutate({standardProps:{publicId:e}});else if(t in pi)e=pi[t](e),this.mutate({standardProps:{[t]:e}});else if(t in Ci){let n=Ci[t](e);n="color"===t?{backgroundColor:e,borderColor:e}:"editable"===t?{startEditable:e,durationEditable:e}:{[t]:e},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${t}'. Use setExtendedProp instead.`)}setExtendedProp(t,e){this.mutate({extendedProps:{[t]:e}})}setStart(t,e={}){let{dateEnv:n}=this._context,i=n.createMarker(t);if(i&&this._instance){let t=ai(this._instance.range.start,i,n,e.granularity);this.mutate(e.maintainDuration?{datesDelta:t}:{startDelta:t})}}setEnd(t,e={}){let n,{dateEnv:i}=this._context;if((null==t||(n=i.createMarker(t),n))&&this._instance)if(n){let t=ai(this._instance.range.end,n,i,e.granularity);this.mutate({endDelta:t})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(t,e,n={}){let i,{dateEnv:r}=this._context,s={allDay:n.allDay},o=r.createMarker(t);var l,a;if(o&&(null==e||(i=r.createMarker(e),i))&&this._instance){let t=this._instance.range;!0===n.allDay&&(t=oi(t));let e=ai(t.start,o,r,n.granularity);if(i){let o=ai(t.end,i,r,n.granularity);this.mutate((l=e).years===(a=o).years&&l.months===a.months&&l.days===a.days&&l.milliseconds===a.milliseconds?{datesDelta:e,standardProps:s}:{startDelta:e,endDelta:o,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:e,standardProps:s})}}moveStart(t){let e=Ee(t);e&&this.mutate({startDelta:e})}moveEnd(t){let e=Ee(t);e&&this.mutate({endDelta:e})}moveDates(t){let e=Ee(t);e&&this.mutate({datesDelta:e})}setAllDay(t,e={}){let n={allDay:t},{maintainDuration:i}=e;null==i&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==t&&(n.hasEnd=i),this.mutate({standardProps:n})}formatRange(t){let{dateEnv:e}=this._context,n=this._instance,i=un(t);return this._def.hasEnd?e.formatRange(n.range.start,n.range.end,i,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):e.format(n.range.start,i,{forcedTzo:n.forcedStartTzo})}mutate(t){let e=this._instance;if(e){let n=this._def,i=this._context,{eventStore:r}=i.getCurrentData(),s=xi(r,e.instanceId);s=Vi(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,i);let o=new $i(i,n,e);this._def=s.defs[n.defId],this._instance=s.instances[e.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:s}),i.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:Zi(s,i,e),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:r})}})}}remove(){let t=this._context,e=qi(this);t.dispatch({type:"REMOVE_EVENTS",eventStore:e}),t.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:e})}})}get source(){let{sourceId:t}=this._def;return t?new Yi(this._context,this._context.getCurrentData().eventSources[t]):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 t=this._instance;return t?this._context.dateEnv.formatIso(t.range.start,{omitTime:this._def.allDay,forcedTzo:t.forcedStartTzo}):""}get endStr(){let t=this._instance;return t&&this._def.hasEnd?this._context.dateEnv.formatIso(t.range.end,{omitTime:this._def.allDay,forcedTzo:t.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(t={}){let e=this._def,{ui:n}=e,{startStr:i,endStr:r}=this,s={allDay:e.allDay};return e.title&&(s.title=e.title),i&&(s.start=i),r&&(s.end=r),e.publicId&&(s.id=e.publicId),e.groupId&&(s.groupId=e.groupId),e.url&&(s.url=e.url),n.display&&"auto"!==n.display&&(s.display=n.display),t.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?s.color=n.backgroundColor:(n.backgroundColor&&(s.backgroundColor=n.backgroundColor),n.borderColor&&(s.borderColor=n.borderColor)),n.textColor&&(s.textColor=n.textColor),n.classNames.length&&(s.classNames=n.classNames),Object.keys(e.extendedProps).length&&(t.collapseExtendedProps?Object.assign(s,e.extendedProps):s.extendedProps=e.extendedProps),s}toJSON(){return this.toPlainObject()}}function qi(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function Zi(t,e,n){let{defs:i,instances:r}=t,s=[],o=n?n.instanceId:"";for(let t in r){let n=r[t];n.instanceId!==o&&s.push(new $i(e,i[n.defId],n))}return s}function Ji(t,e,n,i){let r={},s={},o={},l=[],a=[],c=tr(t.defs,e);for(let e in t.defs){let n=t.defs[e];"inverse-background"===c[n.defId].display&&(n.groupId?(r[n.groupId]=[],o[n.groupId]||(o[n.groupId]=n)):s[e]=[])}for(let e in t.instances){let o=t.instances[e],u=t.defs[o.defId],d=c[u.defId],h=o.range,f=!u.allDay&&i?li(h,i):h,p=ni(f,n);p&&("inverse-background"===d.display?u.groupId?r[u.groupId].push(p):s[o.defId].push(p):"none"!==d.display&&("background"===d.display?l:a).push({def:u,ui:d,instance:o,range:p,isStart:f.start&&f.start.valueOf()===p.start.valueOf(),isEnd:f.end&&f.end.valueOf()===p.end.valueOf()}))}for(let t in r){let e=ti(r[t],n);for(let n of e){let e=o[t];l.push({def:e,ui:c[e.defId],instance:null,range:n,isStart:!1,isEnd:!1})}}for(let e in s){let i=ti(s[e],n);for(let n of i)l.push({def:t.defs[e],ui:c[e],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:l,fg:a}}function Xi(t,e){t.fcSeg=e}function Ki(t){return t.fcSeg||t.parentNode.fcSeg||null}function tr(t,e){return Sn(t,(t=>er(t,e)))}function er(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Mi(n)}function nr(t,e){let n=t.map(ir);return n.sort(((t,n)=>function(t,e,n){let i,r;for(i=0;i<n.length;i+=1)if(r=pe(t,e,n[i]),r)return r;return 0}(t,n,e))),n.map((t=>t._seg))}function ir(t){let{eventRange:e}=t,n=e.def,i=e.instance?e.instance.range:e.range,r=i.start?i.start.valueOf():0,s=i.end?i.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:r,end:s,duration:s-r,allDay:Number(n.allDay),_seg:t})}function rr(t,e){let{pluginHooks:n}=e,i=n.isDraggableTransformers,{def:r,ui:s}=t.eventRange,o=s.startEditable;for(let t of i)o=t(o,r,s,e);return o}function sr(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function or(t){return t.isEnd&&t.eventRange.ui.durationEditable}function lr(t,e,n,i,r,s,o){let{dateEnv:l,options:a}=n,{displayEventTime:c,displayEventEnd:u}=a,d=t.eventRange.def,h=t.eventRange.instance;null==c&&(c=!1!==i),null==u&&(u=!1!==r);let f=h.range.start,p=h.range.end,g=s||t.start||t.eventRange.range.start,v=o||t.end||t.eventRange.range.end,m=Be(f).valueOf()===Be(g).valueOf(),b=Be(_e(p,-1)).valueOf()===Be(_e(v,-1)).valueOf();return c&&!d.allDay&&(m||b)?(g=m?f:g,v=b?p:v,u&&d.hasEnd?l.formatRange(g,v,e,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:o?null:h.forcedEndTzo}):l.format(g,e,{forcedTzo:s?null:h.forcedStartTzo})):""}function ar(t,e,n){let i=t.eventRange.range;return{isPast:i.end<=(n||e.start),isFuture:i.start>=(n||e.end),isToday:e&&si(e,i.start)}}function cr(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function ur(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function dr(t,e){let{def:n,instance:i}=t.eventRange,{url:r}=n;if(r)return{href:r};let{emitter:s,options:o}=e,{eventInteractive:l}=o;return null==l&&(l=n.interactive,null==l&&(l=Boolean(s.hasHandlers("eventClick")))),l?ce((t=>{s.trigger("eventClick",{el:t.target,event:new $i(e,n,i),jsEvent:t,view:e.viewApi})})):{}}const hr={start:wn,end:wn,allDay:Boolean};function fr(t,e,n){return Object.assign(Object.assign({},pr(t,e,n)),{timeZone:e.timeZone})}function pr(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}class gr extends Error{constructor(t,e){super(t),this.response=e}}let vr;function mr(){return null==vr&&(vr=function(){if("undefined"==typeof document)return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let e=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),e}()),vr}class br extends Ln{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{Bn((()=>{this.setState({forPrint:!0})}))},this.handleAfterPrint=()=>{Bn((()=>{this.setState({forPrint:!1})}))}}render(){let{props:t}=this,{options:e}=t,{forPrint:n}=this.state,i=n||"auto"===e.height||"auto"===e.contentHeight,r=i||null==e.height?"":e.height,s=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${e.direction}`,t.theme.getClass("root")];return mr()||s.push("fc-liquid-hack"),t.children(s,r,i,n)}componentDidMount(){let{emitter:t}=this.props;t.on("_beforeprint",this.handleBeforePrint),t.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:t}=this.props;t.off("_beforeprint",this.handleBeforePrint),t.off("_afterprint",this.handleAfterPrint)}}class yr{constructor(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}destroy(){}}function Ar(t){return{[t.component.uid]:t}}const wr={};class Er{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(t){this.currentDataManager.dispatch(t)}get view(){return this.getCurrentData().viewApi}batchRendering(t){t()}updateSize(){this.trigger("_resize",!0)}setOption(t,e){this.dispatch({type:"SET_OPTION",optionName:t,rawOptionValue:e})}getOption(t){return this.currentDataManager.currentCalendarOptionsInput[t]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(t,e){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[t]?n.emitter.on(t,e):console.warn(`Unknown listener name '${t}'`)}off(t,e){this.currentDataManager.emitter.off(t,e)}trigger(t,...e){this.currentDataManager.emitter.trigger(t,...e)}changeView(t,e){this.batchRendering((()=>{if(this.unselect(),e)if(e.start&&e.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:e});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t,dateMarker:n.createMarker(e)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t})}))}zoomTo(t,e){let n;n=this.getCurrentData().viewSpecs[e=e||"day"]||this.getUnitViewSpec(e),this.unselect(),this.dispatch(n?{type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:t}:{type:"CHANGE_DATE",dateMarker:t})}getUnitViewSpec(t){let e,n,{viewSpecs:i,toolbarConfig:r}=this.getCurrentData(),s=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]);for(let t in i)s.push(t);for(e=0;e<s.length;e+=1)if(n=i[s[e]],n&&n.singleUnit===t)return n;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,-1)})}nextYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,1)})}today(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:ci(t.calendarOptions.now,t.dateEnv)})}gotoDate(t){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.createMarker(t)})}incrementDate(t){let e=this.getCurrentData(),n=Ee(t);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.add(e.currentDate,n)}))}getDate(){let t=this.getCurrentData();return t.dateEnv.toDate(t.currentDate)}formatDate(t,e){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(t),un(e))}formatRange(t,e,n){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(t),i.createMarker(e),un(n),n)}formatIso(t,e){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(t),{omitTime:e})}select(t,e){let n;n=null==e?null!=t.start?t:{start:t,end:null}:{start:t,end:e};let i=this.getCurrentData(),r=function(t,e,n){let i=function(t,e){let{refined:n,extra:i}=An(t,hr),r=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:o}=n;return null==o&&(o=r&&r.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:r?r.marker:null,end:s?s.marker:null},allDay:o},i)}(t,e),{range:r}=i;if(!r.start)return null;if(!r.end){if(null==n)return null;r.end=e.add(r.start,n)}return i}(n,i.dateEnv,Ee({days:1}));r&&(this.dispatch({type:"SELECT_DATES",selection:r}),Ui(r,null,i))}unselect(t){let e=this.getCurrentData();e.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}(t,e))}addEvent(t,e){if(t instanceof $i){let e=t._def,n=t._instance;return this.getCurrentData().eventStore.defs[e.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Ei({def:e,instance:n})}),this.triggerEventAdd(t)),t}let n,i=this.getCurrentData();if(e instanceof Yi)n=e.internalEventSource;else if("boolean"==typeof e)e&&([n]=Cn(i.eventSources));else if(null!=e){let t=this.getEventSourceById(e);if(!t)return console.warn(`Could not find an event source with ID "${e}"`),null;n=t.internalEventSource}let r=mi(t,n,i,!1);if(r){let t=new $i(i,r.def,r.def.recurringDef?null:r.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Ei(r)}),this.triggerEventAdd(t),t}return null}triggerEventAdd(t){let{emitter:e}=this.getCurrentData();e.trigger("eventAdd",{event:t,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:qi(t)})}})}getEventById(t){let e=this.getCurrentData(),{defs:n,instances:i}=e.eventStore;t=String(t);for(let r in n){let s=n[r];if(s.publicId===t){if(s.recurringDef)return new $i(e,s,null);for(let t in i){let n=i[t];if(n.defId===s.defId)return new $i(e,s,n)}}}return null}getEvents(){let t=this.getCurrentData();return Zi(t.eventStore,t)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let t=this.getCurrentData(),e=t.eventSources,n=[];for(let i in e)n.push(new Yi(t,e[i]));return n}getEventSourceById(t){let e=this.getCurrentData(),n=e.eventSources;t=String(t);for(let i in n)if(n[i].publicId===t)return new Yi(e,n[i]);return null}addEventSource(t){let e=this.getCurrentData();if(t instanceof Yi)return e.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;let n=_i(t,e);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new Yi(e,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(t){let e=Ee(t);e&&this.trigger("_scrollRequest",{time:e})}}function xr(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function kr(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom&&n}const Sr={defs:{},instances:{}};class Dr{constructor(){this.getKeysForEventDefs=$e(this._getKeysForEventDefs),this.splitDateSelection=$e(this._splitDateSpan),this.splitEventStore=$e(this._splitEventStore),this.splitIndividualUi=$e(this._splitIndividualUi),this.splitEventDrag=$e(this._splitInteraction),this.splitEventResize=$e(this._splitInteraction),this.eventUiBuilders={}}splitProps(t){let e=this.getKeyInfo(t),n=this.getKeysForEventDefs(t.eventStore),i=this.splitDateSelection(t.dateSelection),r=this.splitIndividualUi(t.eventUiBases,n),s=this.splitEventStore(t.eventStore,n),o=this.splitEventDrag(t.eventDrag),l=this.splitEventResize(t.eventResize),a={};this.eventUiBuilders=Sn(e,((t,e)=>this.eventUiBuilders[e]||$e(Cr)));for(let n in e){let c=e[n],u=s[n]||Sr;a[n]={businessHours:c.businessHours||t.businessHours,dateSelection:i[n]||null,eventStore:u,eventUiBases:(0,this.eventUiBuilders[n])(t.eventUiBases[""],c.ui,r[n]),eventSelection:u.instances[t.eventSelection]?t.eventSelection:"",eventDrag:o[n]||null,eventResize:l[n]||null}}return a}_splitDateSpan(t){let e={};if(t){let n=this.getKeysForDateSpan(t);for(let i of n)e[i]=t}return e}_getKeysForEventDefs(t){return Sn(t.defs,(t=>this.getKeysForEventDef(t)))}_splitEventStore(t,e){let{defs:n,instances:i}=t,r={};for(let t in n)for(let i of e[t])r[i]||(r[i]={defs:{},instances:{}}),r[i].defs[t]=n[t];for(let t in i){let n=i[t];for(let i of e[n.defId])r[i]&&(r[i].instances[t]=n)}return r}_splitIndividualUi(t,e){let n={};for(let i in t)if(i)for(let r of e[i])n[r]||(n[r]={}),n[r][i]=t[i];return n}_splitInteraction(t){let e={};if(t){let n=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),i=this._getKeysForEventDefs(t.mutatedEvents),r=this._splitEventStore(t.mutatedEvents,i),s=i=>{e[i]||(e[i]={affectedEvents:n[i]||Sr,mutatedEvents:r[i]||Sr,isEvent:t.isEvent})};for(let t in n)s(t);for(let t in r)s(t)}return e}}function Cr(t,e,n){let i=[];t&&i.push(t),e&&i.push(e);let r={"":Mi(i)};return n&&Object.assign(r,n),r}function Tr(t,e,n,i){return{dow:t.getUTCDay(),isDisabled:Boolean(i&&!si(i.activeRange,t)),isOther:Boolean(i&&!si(i.currentRange,t)),isToday:Boolean(e&&si(e,t)),isPast:Boolean(n?t<n:!!e&&t<e.start),isFuture:Boolean(n?t>n:!!e&&t>=e.end)}}function Nr(t,e){let n=["fc-day",`fc-day-${Me[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const Mr=un({year:"numeric",month:"long",day:"numeric"}),Rr=un({week:"long"});function Or(t,e,n="day",i=!0){const{dateEnv:r,options:s,calendarApi:o}=t;let l=r.format(e,"week"===n?Rr:Mr);if(s.navLinks){let t=r.toDate(e);const a=t=>{let i="day"===n?s.navLinkDayClick:"week"===n?s.navLinkWeekClick:null;"function"==typeof i?i.call(o,r.toDate(e),t):("string"==typeof i&&(n=i),o.zoomTo(e,n))};return Object.assign({title:ve(s.navLinkHint,[l,t],l),"data-navlink":""},i?ae(a):{onClick:a})}return{"aria-label":l}}let _r,jr=null;function Ir(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Br(t,e=!1,n){let i=n?t.getBoundingClientRect():zr(t),r=function(t,e=!1){let n=window.getComputedStyle(t),i=parseInt(n.borderLeftWidth,10)||0,r=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,l=Ir(t),a=l.y-i-r,c={borderLeft:i,borderRight:r,borderTop:s,borderBottom:o,scrollbarBottom:l.x-s-o,scrollbarLeft:0,scrollbarRight:0};return null===jr&&(jr=function(){let t=document.createElement("div");te(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let e=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return Zt(t),e}()),jr&&"rtl"===n.direction?c.scrollbarLeft=a:c.scrollbarRight=a,e&&(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}(t,e),s={left:i.left+r.borderLeft+r.scrollbarLeft,right:i.right-r.borderRight-r.scrollbarRight,top:i.top+r.borderTop,bottom:i.bottom-r.borderBottom-r.scrollbarBottom};return e&&(s.left+=r.paddingLeft,s.right-=r.paddingRight,s.top+=r.paddingTop,s.bottom-=r.paddingBottom),s}function zr(t){let e=t.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY}}function Hr(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class Pr{constructor(t,e,n,i){this.els=e;let r=this.originClientRect=t.getBoundingClientRect();n&&this.buildElHorizontals(r.left),i&&this.buildElVerticals(r.top)}buildElHorizontals(t){let e=[],n=[];for(let i of this.els){let r=i.getBoundingClientRect();e.push(r.left-t),n.push(r.right-t)}this.lefts=e,this.rights=n}buildElVerticals(t){let e=[],n=[];for(let i of this.els){let r=i.getBoundingClientRect();e.push(r.top-t),n.push(r.bottom-t)}this.tops=e,this.bottoms=n}leftToIndex(t){let e,{lefts:n,rights:i}=this,r=n.length;for(e=0;e<r;e+=1)if(t>=n[e]&&t<i[e])return e}topToIndex(t){let e,{tops:n,bottoms:i}=this,r=n.length;for(e=0;e<r;e+=1)if(t>=n[e]&&t<i[e])return e}getWidth(t){return this.rights[t]-this.lefts[t]}getHeight(t){return this.bottoms[t]-this.tops[t]}similarTo(t){return Gr(this.tops||[],t.tops||[])&&Gr(this.bottoms||[],t.bottoms||[])&&Gr(this.lefts||[],t.lefts||[])&&Gr(this.rights||[],t.rights||[])}}function Gr(t,e){const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(Math.round(t[i])!==Math.round(e[i]))return!1;return!0}class Ur{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 Qr extends Ur{constructor(t){super(),this.el=t}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(t){this.el.scrollTop=t}setScrollLeft(t){this.el.scrollLeft=t}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Lr extends Ur{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(t){window.scroll(window.scrollX,t)}setScrollLeft(t){window.scroll(t,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Vr extends Ln{constructor(){super(...arguments),this.uid=de()}prepareHits(){}queryHit(t,e,n,i){return null}isValidSegDownEl(t){return!this.props.eventDrag&&!this.props.eventResize&&!Jt(t,".fc-event-mirror")}isValidDateDownEl(t){return!(Jt(t,".fc-event:not(.fc-bg-event)")||Jt(t,".fc-more-link")||Jt(t,"a[data-navlink]")||Jt(t,".fc-popover"))}}class Wr{constructor(t=(t=>t.thickness||1)){this.getEntryThickness=t,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(t){let e=[];for(let n of t)this.insertEntry(n,e);return e}insertEntry(t,e){let n=this.findInsertion(t);this.isInsertionValid(n,t)?this.insertEntryAt(t,n):this.handleInvalidInsertion(n,t,e)}isInsertionValid(t,e){return(-1===this.maxCoord||t.levelCoord+this.getEntryThickness(e)<=this.maxCoord)&&(-1===this.maxStackCnt||t.stackCnt<this.maxStackCnt)}handleInvalidInsertion(t,e,n){if(this.allowReslicing&&t.touchingEntry){const i=Object.assign(Object.assign({},e),{span:$r(e.span,t.touchingEntry.span)});n.push(i),this.splitEntry(e,t.touchingEntry,n)}else n.push(e)}splitEntry(t,e,n){let i=t.span,r=e.span;i.start<r.start&&this.insertEntry({index:t.index,thickness:t.thickness,span:{start:i.start,end:r.start}},n),i.end>r.end&&this.insertEntry({index:t.index,thickness:t.thickness,span:{start:r.end,end:i.end}},n)}insertEntryAt(t,e){let{entriesByLevel:n,levelCoords:i}=this;-1===e.lateral?(qr(i,e.level,e.levelCoord),qr(n,e.level,[t])):qr(n[e.level],e.lateral,t),this.stackCnts[Yr(t)]=e.stackCnt}findInsertion(t){let{levelCoords:e,entriesByLevel:n,strictOrder:i,stackCnts:r}=this,s=e.length,o=0,l=-1,a=-1,c=null,u=0;for(let d=0;d<s;d+=1){const s=e[d];if(!i&&s>=o+this.getEntryThickness(t))break;let h,f=n[d],p=Zr(f,t.span.start,Fr),g=p[0]+p[1];for(;(h=f[g])&&h.span.start<t.span.end;){let t=s+this.getEntryThickness(h);t>o&&(o=t,c=h,l=d,a=g),t===o&&(u=Math.max(u,r[Yr(h)]+1)),g+=1}}let d=0;if(c)for(d=l+1;d<s&&e[d]<o;)d+=1;let h=-1;return d<s&&e[d]===o&&(h=Zr(n[d],t.span.end,Fr)[0]),{touchingLevel:l,touchingLateral:a,touchingEntry:c,stackCnt:u,levelCoord:o,level:d,lateral:h}}toRects(){let{entriesByLevel:t,levelCoords:e}=this,n=t.length,i=[];for(let r=0;r<n;r+=1){let n=t[r],s=e[r];for(let t of n)i.push(Object.assign(Object.assign({},t),{thickness:this.getEntryThickness(t),levelCoord:s}))}return i}}function Fr(t){return t.span.end}function Yr(t){return t.index+":"+t.span.start}function $r(t,e){let n=Math.max(t.start,e.start),i=Math.min(t.end,e.end);return n<i?{start:n,end:i}:null}function qr(t,e,n){t.splice(e,0,n)}function Zr(t,e,n){let i=0,r=t.length;if(!r||e<n(t[i]))return[0,0];if(e>n(t[r-1]))return[r,0];for(;i<r;){let s=Math.floor(i+(r-i)/2),o=n(t[s]);if(e<o)r=s;else{if(!(e>o))return[s,1];i=s+1}}return[i,0]}class Jr{constructor(t,e){this.emitter=new Pi}destroy(){}setMirrorIsVisible(t){}setMirrorNeedsRevert(t){}setAutoScrollEnabled(t){}}const Xr={},Kr="fc-col-header-cell";function ts(t){return t.text}class es extends Ln{render(){let{dateEnv:t,options:e,theme:n,viewApi:i}=this.context,{props:r}=this,{date:s,dateProfile:o}=r,l=Tr(s,r.todayRange,null,o),a=[Kr].concat(Nr(l,n)),c=t.format(s,r.dayHeaderFormat),u=!l.isDisabled&&r.colCnt>1?Or(this.context,s):{},d=Object.assign(Object.assign(Object.assign({date:t.toDate(s),view:i},r.extraRenderProps),{text:c}),l);return _(Zn,{elTag:"th",elClasses:a,elAttrs:Object.assign({role:"columnheader",colSpan:r.colSpan,"data-date":l.isDisabled?void 0:Fe(s)},r.extraDataAttrs),renderProps:d,generatorName:"dayHeaderContent",customGenerator:e.dayHeaderContent,defaultGenerator:ts,classNameGenerator:e.dayHeaderClassNames,didMount:e.dayHeaderDidMount,willUnmount:e.dayHeaderWillUnmount},(t=>_("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&_(t,{elTag:"a",elAttrs:u,elClasses:["fc-col-header-cell-cushion",r.isSticky&&"fc-sticky"]}))))}}const ns=un({weekday:"long"});class is extends Ln{render(){let{props:t}=this,{dateEnv:e,theme:n,viewApi:i,options:r}=this.context,s=Oe(new Date(2592e5),t.dow),o={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=e.format(s,t.dayHeaderFormat),a=Object.assign(Object.assign(Object.assign(Object.assign({date:s},o),{view:i}),t.extraRenderProps),{text:l});return _(Zn,{elTag:"th",elClasses:[Kr,...Nr(o,n),...t.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:t.colSpan},t.extraDataAttrs),renderProps:a,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:ts,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},(n=>_("div",{className:"fc-scrollgrid-sync-inner"},_(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",t.isSticky&&"fc-sticky"],elAttrs:{"aria-label":e.format(s,ns)}}))))}}class rs extends G{constructor(t,e){super(t,e),this.initialNowDate=ci(e.options.now,e.dateEnv),this.initialNowQueriedMs=(new Date).valueOf(),this.state=this.computeTiming().currentState}render(){let{props:t,state:e}=this;return t.children(e.nowDate,e.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(t){t.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:t,context:e}=this,n=_e(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),i=e.dateEnv.startOf(n,t.unit),r=e.dateEnv.add(i,Ee(1,t.unit)),s=r.valueOf()-n.valueOf();return s=Math.min(864e5,s),{currentState:{nowDate:i,todayRange:ss(i)},nextState:{nowDate:r,todayRange:ss(r)},waitMs:s}}setTimeout(){let{nextState:t,waitMs:e}=this.computeTiming();this.timeoutId=setTimeout((()=>{this.setState(t,(()=>{this.setTimeout()}))}),e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function ss(t){let e=Be(t);return{start:e,end:Oe(e,1)}}rs.contextType=Gn;class os extends Ln{constructor(){super(...arguments),this.createDayHeaderFormatter=$e(ls)}render(){let{context:t}=this,{dates:e,dateProfile:n,datesRepDistinctDays:i,renderIntro:r}=this.props,s=this.createDayHeaderFormatter(t.options.dayHeaderFormat,i,e.length);return _(rs,{unit:"day"},((t,o)=>_("tr",{role:"row"},r&&r("day"),e.map((t=>i?_(es,{key:t.toISOString(),date:t,dateProfile:n,todayRange:o,colCnt:e.length,dayHeaderFormat:s}):_(is,{key:t.getUTCDay(),dow:t.getUTCDay(),dayHeaderFormat:s}))))))}}function ls(t,e,n){return t||function(t,e){return un(!t||e>10?{weekday:"short"}:e>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(e,n)}class as{constructor(t,e){let n=t.start,{end:i}=t,r=[],s=[],o=-1;for(;n<i;)e.isHiddenDay(n)?r.push(o+.5):(o+=1,r.push(o),s.push(n)),n=Oe(n,1);this.dates=s,this.indices=r,this.cnt=s.length}sliceRange(t){let e=this.getDateDayIndex(t.start),n=this.getDateDayIndex(Oe(t.end,-1)),i=Math.max(0,e),r=Math.min(this.cnt-1,n);return i=Math.ceil(i),r=Math.floor(r),i<=r?{firstIndex:i,lastIndex:r,isStart:e===i,isEnd:n===r}:null}getDateDayIndex(t){let{indices:e}=this,n=Math.floor(je(this.dates[0],t));return n<0?e[0]-1:n>=e.length?e[e.length-1]+1:e[n]}}class cs{constructor(t,e){let n,i,r,{dates:s}=t;if(e){for(i=s[0].getUTCDay(),n=1;n<s.length&&s[n].getUTCDay()!==i;n+=1);r=Math.ceil(s.length/n)}else r=1,n=s.length;this.rowCnt=r,this.colCnt=n,this.daySeries=t,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let t=[];for(let e=0;e<this.rowCnt;e+=1){let n=[];for(let t=0;t<this.colCnt;t+=1)n.push(this.buildCell(e,t));t.push(n)}return t}buildCell(t,e){let n=this.daySeries.dates[t*this.colCnt+e];return{key:n.toISOString(),date:n}}buildHeaderDates(){let t=[];for(let e=0;e<this.colCnt;e+=1)t.push(this.cells[0][e].date);return t}sliceRange(t){let{colCnt:e}=this,n=this.daySeries.sliceRange(t),i=[];if(n){let{firstIndex:t,lastIndex:r}=n,s=t;for(;s<=r;){let o=Math.floor(s/e),l=Math.min((o+1)*e,r+1);i.push({row:o,firstCol:s%e,lastCol:(l-1)%e,isStart:n.isStart&&s===t,isEnd:n.isEnd&&l-1===r}),s=l}}return i}}class us{constructor(){this.sliceBusinessHours=$e(this._sliceBusinessHours),this.sliceDateSelection=$e(this._sliceDateSpan),this.sliceEventStore=$e(this._sliceEventStore),this.sliceEventDrag=$e(this._sliceInteraction),this.sliceEventResize=$e(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(t,e,n,i,...r){let{eventUiBases:s}=t,o=this.sliceEventStore(t.eventStore,s,e,n,...r);return{dateSelectionSegs:this.sliceDateSelection(t.dateSelection,e,n,s,i,...r),businessHourSegs:this.sliceBusinessHours(t.businessHours,e,n,i,...r),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(t.eventDrag,s,e,n,...r),eventResize:this.sliceEventResize(t.eventResize,s,e,n,...r),eventSelection:t.eventSelection}}sliceNowDate(t,e,n,i,...r){return this._sliceDateSpan({range:{start:t,end:_e(t,1)},allDay:!1},e,n,{},i,...r)}_sliceBusinessHours(t,e,n,i,...r){return t?this._sliceEventStore(hi(t,ds(e,Boolean(n)),i),{},e,n,...r).bg:[]}_sliceEventStore(t,e,n,i,...r){if(t){let s=Ji(t,e,ds(n,Boolean(i)),i);return{bg:this.sliceEventRanges(s.bg,r),fg:this.sliceEventRanges(s.fg,r)}}return{bg:[],fg:[]}}_sliceInteraction(t,e,n,i,...r){if(!t)return null;let s=Ji(t.mutatedEvents,e,ds(n,Boolean(i)),i);return{segs:this.sliceEventRanges(s.fg,r),affectedInstances:t.affectedEvents.instances,isEvent:t.isEvent}}_sliceDateSpan(t,e,n,i,r,...s){if(!t)return[];let o=ds(e,Boolean(n)),l=ni(t.range,o);if(l){let e=function(t,e,n){let i=bi({editable:!1},n),r=Ai(i.refined,i.extra,"",t.allDay,!0,n);return{def:r,ui:er(r,e),instance:di(r.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}(t=Object.assign(Object.assign({},t),{range:l}),i,r),n=this.sliceRange(t.range,...s);for(let t of n)t.eventRange=e;return n}return[]}sliceEventRanges(t,e){let n=[];for(let i of t)n.push(...this.sliceEventRange(i,e));return n}sliceEventRange(t,e){let n=t.range;this.forceDayIfListItem&&"list-item"===t.ui.display&&(n={start:n.start,end:Oe(n.start,1)});let i=this.sliceRange(n,...e);for(let e of i)e.eventRange=t,e.isStart=t.isStart&&e.isStart,e.isEnd=t.isEnd&&e.isEnd;return i}}function ds(t,e){let n=t.activeRange;return e?n:{start:_e(n.start,t.slotMinTime.milliseconds),end:_e(n.end,t.slotMaxTime.milliseconds-864e5)}}function hs(t,e,n){let{instances:i}=t.mutatedEvents;for(let t in i)if(!ri(e.validRange,i[t].range))return!1;return fs({eventDrag:t},n)}function fs(t,e){let n=e.getCurrentData(),i=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||ps)(i,e)}function ps(t,e,n={},i){return!(t.eventDrag&&!function(t,e,n,i){let r=e.getCurrentData(),s=t.eventDrag,o=s.mutatedEvents,l=o.defs,a=o.instances,c=tr(l,s.isEvent?t.eventUiBases:{"":r.selectionConfig});i&&(c=Sn(c,i));let u=(g=s.affectedEvents.instances,{defs:(p=t.eventStore).defs,instances:kn(p.instances,(t=>!g[t.instanceId]))}),d=u.defs,h=u.instances,f=tr(d,t.eventUiBases);var p,g;for(let i in a){let o=a[i],p=o.range,g=c[o.defId],v=l[o.defId];if(!gs(g.constraints,p,u,t.businessHours,e))return!1;let{eventOverlap:m}=e.options,b="function"==typeof m?m:null;for(let t in h){let n=h[t];if(ii(p,n.range)){if(!1===f[n.defId].overlap&&s.isEvent)return!1;if(!1===g.overlap)return!1;if(b&&!b(new $i(e,d[n.defId],n),new $i(e,v,o)))return!1}}let y=r.eventStore;for(let t of g.allows){let r,s=Object.assign(Object.assign({},n),{range:o.range,allDay:v.allDay}),l=y.defs[v.defId];if(r=l?new $i(e,l,y.instances[i]):new $i(e,v),!t(Qi(s,e),r))return!1}}return!0}(t,e,n,i)||t.dateSelection&&!function(t,e,n,i){let r=t.eventStore,s=r.defs,o=r.instances,l=t.dateSelection,a=l.range,{selectionConfig:c}=e.getCurrentData();if(i&&(c=i(c)),!gs(c.constraints,a,r,t.businessHours,e))return!1;let{selectOverlap:u}=e.options,d="function"==typeof u?u:null;for(let t in o){let n=o[t];if(ii(a,n.range)){if(!1===c.overlap)return!1;if(d&&!d(new $i(e,s[n.defId],n),null))return!1}}for(let t of c.allows)if(!t(Qi(Object.assign(Object.assign({},n),l),e),null))return!1;return!0}(t,e,n,i))}function gs(t,e,n,i,r){for(let s of t)if(!bs(vs(s,e,n,i,r),e))return!1;return!0}function vs(t,e,n,i,r){return"businessHours"===t?ms(hi(i,e,r)):"string"==typeof t?ms(Si(n,(e=>e.groupId===t))):"object"==typeof t&&t?ms(hi(t,e,r)):[]}function ms(t){let{instances:e}=t,n=[];for(let t in e)n.push(e[t].range);return n}function bs(t,e){for(let n of t)if(ri(n,e))return!0;return!1}const ys=/^(visible|hidden)$/;class As extends Ln{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,Vn(this.props.elRef,t)}}render(){let{props:t}=this,{liquid:e,liquidIsAbsolute:n}=t,i=e&&n,r=["fc-scroller"];return e&&r.push(n?"fc-scroller-liquid-absolute":"fc-scroller-liquid"),_("div",{ref:this.handleEl,className:r.join(" "),style:{overflowX:t.overflowX,overflowY:t.overflowY,left:i&&-(t.overcomeLeft||0)||"",right:i&&-(t.overcomeRight||0)||"",bottom:i&&-(t.overcomeBottom||0)||"",marginLeft:!i&&-(t.overcomeLeft||0)||"",marginRight:!i&&-(t.overcomeRight||0)||"",marginBottom:!i&&-(t.overcomeBottom||0)||"",maxHeight:t.maxHeight||""}},t.children)}needsXScrolling(){if(ys.test(this.props.overflowX))return!1;let{el:t}=this,e=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=t;for(let t=0;t<n.length;t+=1)if(n[t].getBoundingClientRect().width>e)return!0;return!1}needsYScrolling(){if(ys.test(this.props.overflowY))return!1;let{el:t}=this,e=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=t;for(let t=0;t<n.length;t+=1)if(n[t].getBoundingClientRect().height>e)return!0;return!1}getXScrollbarWidth(){return ys.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return ys.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class ws{constructor(t){this.masterCallback=t,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(t,e)=>{let{depths:n,currentMap:i}=this,r=!1,s=!1;null!==t?(r=e in i,i[e]=t,n[e]=(n[e]||0)+1,s=!0):(n[e]-=1,n[e]||(delete i[e],delete this.callbackMap[e],r=!0)),this.masterCallback&&(r&&this.masterCallback(null,String(e)),s&&this.masterCallback(t,String(e)))}}createRef(t){let e=this.callbackMap[t];return e||(e=this.callbackMap[t]=e=>{this.handleValue(e,String(t))}),e}collect(t,e,n){return function(t,e=0,n,i=1){let r=[];null==n&&(n=Object.keys(t).length);for(let s=e;s<n;s+=i){let e=t[s];void 0!==e&&r.push(e)}return r}(this.currentMap,t,e,n)}getAll(){return Cn(this.currentMap)}}function Es(t,e){return t.liquid&&e.liquid}function xs(t,e){return Ne(t,e,Tn)}function ks(t,e){let n=[];for(let i of t){let t=i.span||1;for(let r=0;r<t;r+=1)n.push(_("col",{style:{width:"shrink"===i.width?Ss(e):i.width||"",minWidth:i.minWidth||""}}))}return _("colgroup",{},...n)}function Ss(t){return null==t?4:t}function Ds(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&null==t.maxHeight&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Cs(t){return _("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Ts(t){let{stickyHeaderDates:e}=t;return null!=e&&"auto"!==e||(e="auto"===t.height||"auto"===t.viewHeight),e}function Ns(t){let{stickyFooterScrollbar:e}=t;return null!=e&&"auto"!==e||(e="auto"===t.height||"auto"===t.viewHeight),e}class Ms extends Ln{constructor(){super(...arguments),this.processCols=$e((t=>t),xs),this.renderMicroColGroup=$e(ks),this.scrollerRefs=new ws,this.scrollerElRefs=new ws(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:t,state:e,context:n}=this,i=t.sections||[],r=this.processCols(t.cols),s=this.renderMicroColGroup(r,e.shrinkWidth),o=function(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}(t.liquid,n);t.collapsibleWidth&&o.push("fc-scrollgrid-collapsible");let l,a=i.length,c=0,u=[],d=[],h=[];for(;c<a&&"header"===(l=i[c]).type;)u.push(this.renderSection(l,s,!0)),c+=1;for(;c<a&&"body"===(l=i[c]).type;)d.push(this.renderSection(l,s,!1)),c+=1;for(;c<a&&"footer"===(l=i[c]).type;)h.push(this.renderSection(l,s,!0)),c+=1;let f=!mr();const p={role:"rowgroup"};return _("table",{role:"grid",className:o.join(" "),style:{height:t.height}},Boolean(!f&&u.length)&&_("thead",p,...u),Boolean(!f&&d.length)&&_("tbody",p,...d),Boolean(!f&&h.length)&&_("tfoot",p,...h),f&&_("tbody",p,...u,...d,...h))}renderSection(t,e,n){return"outerContent"in t?_(I,{key:t.key},t.outerContent):_("tr",{key:t.key,role:"presentation",className:Ds(t,this.props.liquid).join(" ")},this.renderChunkTd(t,e,t.chunk,n))}renderChunkTd(t,e,n,i){if("outerContent"in n)return n.outerContent;let{props:r}=this,{forceYScrollbars:s,scrollerClientWidths:o,scrollerClientHeights:l}=this.state,a=function(t,e){return null!=e.maxHeight||Es(t,e)}(r,t),c=Es(r,t),u=r.liquid?s?"scroll":a?"auto":"hidden":"visible",d=t.key,h=function(t,e,n,i){let{expandRows:r}=n;return"function"==typeof e.content?e.content(n):_("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:r?n.clientHeight:""}},n.tableColGroupNode,_(i?"thead":"tbody",{role:"presentation"},"function"==typeof e.rowContent?e.rowContent(n):e.rowContent))}(t,n,{tableColGroupNode:e,tableMinWidth:"",clientWidth:r.collapsibleWidth||void 0===o[d]?null:o[d],clientHeight:void 0!==l[d]?l[d]:null,expandRows:t.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return _(i?"th":"td",{ref:n.elRef,role:"presentation"},_("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},_(As,{ref:this.scrollerRefs.createRef(d),elRef:this.scrollerElRefs.createRef(d),overflowY:u,overflowX:r.liquid?"hidden":"visible",maxHeight:t.maxHeight,liquid:c,liquidIsAbsolute:!0},h)))}_handleScrollerEl(t,e){let n=function(t,e){for(let n of t)if(n.key===e)return n;return null}(this.props.sections,e);n&&Vn(n.chunk.scrollerElRef,t)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return function(t){for(let e of t)if("shrink"===e.width)return!0;return!1}(this.props.cols)?function(t){let e=function(t){let e=t instanceof HTMLElement?[t]:t,n=[];for(let t=0;t<e.length;t+=1){let i=e[t].querySelectorAll(".fc-scrollgrid-shrink");for(let t=0;t<i.length;t+=1)n.push(i[t])}return n}(t),n=0;for(let t of e)n=Math.max(n,ye(t));return Math.ceil(n)}(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let t=(_r||(_r=function(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=Ir(t);return document.body.removeChild(t),e}()),_r),{scrollerRefs:e,scrollerElRefs:n}=this,i=!1,r={},s={};for(let t in e.currentMap){let n=e.currentMap[t];if(n&&n.needsYScrolling()){i=!0;break}}for(let e of this.props.sections){let o=e.key,l=n.currentMap[o];if(l){let e=l.parentNode;r[o]=Math.floor(e.getBoundingClientRect().width-(i?t.y:0)),s[o]=Math.floor(e.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:r,scrollerClientHeights:s}}}Ms.addStateEquality({scrollerClientWidths:Tn,scrollerClientHeights:Tn});class Rs extends Ln{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,t&&Xi(t,this.props.seg)}}render(){const{props:t,context:e}=this,{options:n}=e,{seg:i}=t,{eventRange:r}=i,{ui:s}=r,o={event:new $i(e,r.def,r.instance),view:e.viewApi,timeText:t.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!t.disableDragging&&rr(i,e),isStartResizable:!t.disableResizing&&sr(i,e),isEndResizable:!t.disableResizing&&or(i),isMirror:Boolean(t.isDragging||t.isResizing||t.isDateSelecting),isStart:Boolean(i.isStart),isEnd:Boolean(i.isEnd),isPast:Boolean(t.isPast),isFuture:Boolean(t.isFuture),isToday:Boolean(t.isToday),isSelected:Boolean(t.isSelected),isDragging:Boolean(t.isDragging),isResizing:Boolean(t.isResizing)};return _(Zn,Object.assign({},t,{elRef:this.handleEl,elClasses:[...cr(o),...i.eventRange.ui.classNames,...t.elClasses||[]],renderProps:o,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:t.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(t){this.el&&this.props.seg!==t.seg&&Xi(this.el,this.props.seg)}}class Os extends Ln{render(){let{props:t,context:e}=this,{options:n}=e,{seg:i}=t,{ui:r}=i.eventRange,s=lr(i,n.eventTimeFormat||t.defaultTimeFormat,e,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return _(Rs,Object.assign({},t,{elTag:"a",elStyle:{borderColor:r.borderColor,backgroundColor:r.backgroundColor},elAttrs:dr(i,e),defaultGenerator:_s,timeText:s}),((t,e)=>_(I,null,_(t,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:e.textColor}}),Boolean(e.isStartResizable)&&_("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(e.isEndResizable)&&_("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function _s(t){return _("div",{className:"fc-event-main-frame"},t.timeText&&_("div",{className:"fc-event-time"},t.timeText),_("div",{className:"fc-event-title-container"},_("div",{className:"fc-event-title fc-sticky"},t.event.title||_(I,null," "))))}const js=t=>_(Gn.Consumer,null,(e=>{let{options:n}=e,i={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return _(Zn,Object.assign({},t,{elTag:t.elTag||"div",renderProps:i,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))})),Is=un({day:"numeric"});class Bs extends Ln{constructor(){super(...arguments),this.refineRenderProps=qe(Hs)}render(){let{props:t,context:e}=this,{options:n}=e,i=this.refineRenderProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,isMonthStart:t.isMonthStart||!1,showDayNumber:t.showDayNumber,extraRenderProps:t.extraRenderProps,viewApi:e.viewApi,dateEnv:e.dateEnv,monthStartFormat:n.monthStartFormat});return _(Zn,Object.assign({},t,{elClasses:[...Nr(i,e.theme),...t.elClasses||[]],elAttrs:Object.assign(Object.assign({},t.elAttrs),i.isDisabled?{}:{"data-date":Fe(t.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:t.defaultGenerator,classNameGenerator:i.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function zs(t){return Boolean(t.dayCellContent||Fn("dayCellContent",t))}function Hs(t){let{date:e,dateEnv:n,dateProfile:i,isMonthStart:r}=t,s=Tr(e,t.todayRange,null,i),o=t.showDayNumber?n.format(e,r?t.monthStartFormat:Is):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:r,dayNumberText:o}),t.extraRenderProps)}class Ps extends Ln{render(){let{props:t}=this,{seg:e}=t;return _(Rs,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:e.eventRange.ui.backgroundColor},defaultGenerator:Gs,seg:e,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday,disableDragging:!0,disableResizing:!0})}}function Gs(t){let{title:e}=t.event;return e&&_("div",{className:"fc-event-title"},t.event.title)}function Us(t){return _("div",{className:`fc-${t}`})}const Qs=t=>_(Gn.Consumer,null,(e=>{let{dateEnv:n,options:i}=e,{date:r}=t,s=i.weekNumberFormat||t.defaultFormat,o=n.computeWeekNumber(r),l=n.format(r,s);return _(Zn,Object.assign({},t,{renderProps:{num:o,text:l,date:r},generatorName:"weekNumberContent",customGenerator:i.weekNumberContent,defaultGenerator:Ls,classNameGenerator:i.weekNumberClassNames,didMount:i.weekNumberDidMount,willUnmount:i.weekNumberWillUnmount}))}));function Ls(t){return t.text}class Vs extends Ln{constructor(){super(...arguments),this.state={titleId:re()},this.handleRootEl=t=>{this.rootEl=t,this.props.elRef&&Vn(this.props.elRef,t)},this.handleDocumentMouseDown=t=>{const e=ne(t);this.rootEl.contains(e)||this.handleCloseClick()},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:t}=this.props;t&&t()}}render(){let{theme:t,options:e}=this.context,{props:n,state:i}=this,r=["fc-popover",t.getClass("popover")].concat(n.extraClassNames||[]);return function(t,e){var n=_(Rt,{__v:t,i:e});return n.containerInfo=e,n}(_("div",Object.assign({},n.extraAttrs,{id:n.id,className:r.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),_("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},_("span",{className:"fc-popover-title",id:i.titleId},n.title),_("span",{className:"fc-popover-close "+t.getIconClass("close"),title:e.closeHint,onClick:this.handleCloseClick})),_("div",{className:"fc-popover-body "+t.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:t}=this.context,{alignmentEl:e,alignGridTop:n}=this.props,{rootEl:i}=this,r=function(t){let e=Hr(t),n=t.getBoundingClientRect();for(let t of e){let e=kr(n,t.getBoundingClientRect());if(!e)return null;n=e}return n}(e);if(r){let s=i.getBoundingClientRect(),o=n?Jt(e,".fc-scrollgrid").getBoundingClientRect().top:r.top,l=t?r.right-s.width:r.left;o=Math.max(o,10),l=Math.min(l,document.documentElement.clientWidth-10-s.width),l=Math.max(l,10);let a=i.offsetParent.getBoundingClientRect();te(i,{top:o-a.top,left:l-a.left})}}}class Ws extends Vr{constructor(){super(...arguments),this.handleRootEl=t=>{this.rootEl=t,t?this.context.registerInteractiveComponent(this,{el:t,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:t,dateEnv:e}=this.context,{props:n}=this,{startDate:i,todayRange:r,dateProfile:s}=n,o=e.format(i,t.dayPopoverFormat);return _(Bs,{elRef:this.handleRootEl,date:i,dateProfile:s,todayRange:r},((e,i,r)=>_(Vs,{elRef:r.ref,id:n.id,title:o,extraClassNames:["fc-more-popover"].concat(r.className||[]),extraAttrs:r,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},zs(t)&&_(e,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(t,e,n,i){let{rootEl:r,props:s}=this;return t>=0&&t<n&&e>=0&&e<i?{dateProfile:s.dateProfile,dateSpan:Object.assign({allDay:!s.forceTimed,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:r,rect:{left:0,top:0,right:n,bottom:i},layer:1}:null}}class Fs extends Ln{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:re()},this.handleLinkEl=t=>{this.linkEl=t,this.props.elRef&&Vn(this.props.elRef,t)},this.handleClick=t=>{let{props:e,context:n}=this,{moreLinkClick:i}=n.options,r=$s(e).start;function s(t){let{def:e,instance:i,range:r}=t.eventRange;return{event:new $i(n,e,i),start:n.dateEnv.toDate(r.start),end:n.dateEnv.toDate(r.end),isStart:t.isStart,isEnd:t.isEnd}}"function"==typeof i&&(i=i({date:r,allDay:Boolean(e.allDayDate),allSegs:e.allSegs.map(s),hiddenSegs:e.hiddenSegs.map(s),jsEvent:t,view:n.viewApi})),i&&"popover"!==i?"string"==typeof i&&n.calendarApi.zoomTo(r,i):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:t,state:e}=this;return _(Gn.Consumer,null,(n=>{let{viewApi:i,options:r,calendarApi:s}=n,{moreLinkText:o}=r,{moreCnt:l}=t,a=$s(t),c="function"==typeof o?o.call(s,l):`+${l} ${o}`,u=ve(r.moreLinkHint,[l],c),d={num:l,shortText:`+${l}`,text:c,view:i};return _(I,null,Boolean(t.moreCnt)&&_(Zn,{elTag:t.elTag||"a",elRef:this.handleLinkEl,elClasses:[...t.elClasses||[],"fc-more-link"],elStyle:t.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},t.elAttrs),ae(this.handleClick)),{title:u,"aria-expanded":e.isPopoverOpen,"aria-controls":e.isPopoverOpen?e.popoverId:""}),renderProps:d,generatorName:"moreLinkContent",customGenerator:r.moreLinkContent,defaultGenerator:t.defaultGenerator||Ys,classNameGenerator:r.moreLinkClassNames,didMount:r.moreLinkDidMount,willUnmount:r.moreLinkWillUnmount},t.children),e.isPopoverOpen&&_(Ws,{id:e.popoverId,startDate:a.start,endDate:a.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:this.parentEl,alignmentEl:t.alignmentElRef?t.alignmentElRef.current:this.linkEl,alignGridTop:t.alignGridTop,forceTimed:t.forceTimed,onClose:this.handlePopoverClose},t.popoverContent()))}))}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Jt(this.linkEl,".fc-view-harness"))}}function Ys(t){return t.text}function $s(t){if(t.allDayDate)return{start:t.allDayDate,end:Oe(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:qs(e),end:(n=e,n.reduce(Js).eventRange.range.end)};var n}function qs(t){return t.reduce(Zs).eventRange.range.start}function Zs(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function Js(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}const Xs=[],Ks={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"},to=Object.assign(Object.assign({},Ks),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(t,e)=>"day"===e?"Today":`This ${t}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:t=>`Show ${t} more event${1===t?"":"s"}`});function eo(t){let e=t.length>0?t[0].code:"en",n=Xs.concat(t),i={en:to};for(let t of n)i[t.code]=t;return{map:i,defaultCode:e}}function no(t,e){return"object"!=typeof t||Array.isArray(t)?function(t,e){let n=[].concat(t||[]),i=function(t,e){for(let n=0;n<t.length;n+=1){let i=t[n].toLocaleLowerCase().split("-");for(let t=i.length;t>0;t-=1){let n=i.slice(0,t).join("-");if(e[n])return e[n]}}return null}(n,e)||to;return io(t,n,i)}(t,e):io(t.code,[t.code],t)}function io(t,e,n){let i=xn([Ks,n],["buttonText"]);delete i.code;let{week:r}=i;return delete i.week,{codeArg:t,codes:e,week:r,simpleNumberFormat:new Intl.NumberFormat(t),options:i}}function ro(t){return{id:de(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}class so extends In{}function oo(t,e,n,i){if(e[t])return e[t];let r=function(t,e,n,i){let r=n[t],s=i[t],o=t=>r&&null!==r[t]?r[t]:s&&null!==s[t]?s[t]:null,l=o("component"),a=o("superType"),c=null;if(a){if(a===t)throw new Error("Can't have a custom view type that references itself");c=oo(a,e,n,i)}return!l&&c&&(l=c.component),l?{type:t,component:l,defaults:Object.assign(Object.assign({},c?c.defaults:{}),r?r.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}:null}(t,e,n,i);return r&&(e[t]=r),r}function lo(t){return Sn(t,ao)}function ao(t){let e="function"==typeof t?{component:t}:t,{component:n}=e;return e.content?n=co(e):!n||n.prototype instanceof Ln||(n=co(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function co(t){return e=>_(Gn.Consumer,null,(n=>_(Zn,{elTag:"div",elClasses:Kn(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount})))}function uo(t,e,n,i){let r=lo(t),s=lo(e.views),o=function(t,e){let n,i={};for(n in t)oo(n,i,t,e);for(n in e)oo(n,i,t,e);return i}(r,s);return Sn(o,(t=>function(t,e,n,i,r){let s=t.overrides.duration||t.defaults.duration||i.duration||n.duration,o=null,l="",a="",c={};if(s&&(o=function(t){let e=JSON.stringify(t),n=ho[e];return void 0===n&&(n=Ee(t),ho[e]=n),n}(s),o)){let t=Te(o);l=t.unit,1===t.value&&(a=l,c=e[l]?e[l].rawOptions:{})}let u=e=>{let n=e.buttonText||{},i=t.defaults.buttonTextKey;return null!=i&&null!=n[i]?n[i]:null!=n[t.type]?n[t.type]:null!=n[a]?n[a]:null},d=e=>{let n=e.buttonHints||{},i=t.defaults.buttonTextKey;return null!=i&&null!=n[i]?n[i]:null!=n[t.type]?n[t.type]:null!=n[a]?n[a]:null};return{type:t.type,component:t.component,duration:o,durationUnit:l,singleUnit:a,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},c),t.overrides),buttonTextOverride:u(i)||u(n)||t.overrides.buttonText,buttonTextDefault:u(r)||t.defaults.buttonText||u(hn)||t.type,buttonTitleOverride:d(i)||d(n)||t.overrides.buttonHint,buttonTitleDefault:d(r)||t.defaults.buttonHint||d(hn)}}(t,s,e,n,i)))}so.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},so.prototype.baseIconClass="fc-icon",so.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"},so.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},so.prototype.iconOverrideOption="buttonIcons",so.prototype.iconOverrideCustomButtonOption="icon",so.prototype.iconOverridePrefix="fc-icon-";let ho={};function fo(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function po(t,e,n,i){let r={};for(let t of e)r[t.sourceId]=t;return n&&(r=go(r,n,i)),Object.assign(Object.assign({},t),r)}function go(t,e,n){return vo(t,kn(t,(t=>function(t,e,n){return yo(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}(t,e,n))),e,!1,n)}function vo(t,e,n,i,r){let s={};for(let o in t){let l=t[o];s[o]=e[o]?mo(l,n,i,r):l}return s}function mo(t,e,n,i){let{options:r,calendarApi:s}=i,o=i.pluginHooks.eventSourceDefs[t.sourceDefId],l=de();return o.fetch({eventSource:t,range:e,isRefetch:n,context:i},(n=>{let{rawEvents:o}=n;r.eventSourceSuccess&&(o=r.eventSourceSuccess.call(s,o,n.response)||o),t.success&&(o=t.success.call(s,o,n.response)||o),i.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:l,fetchRange:e,rawEvents:o})}),(n=>{let o=!1;r.eventSourceFailure&&(r.eventSourceFailure.call(s,n),o=!0),t.failure&&(t.failure(n),o=!0),o||console.warn(n.message,n),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:l,fetchRange:e,error:n})})),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:l})}function bo(t,e){return kn(t,(t=>yo(t,e)))}function yo(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function Ao(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function wo(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function Eo(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function xo(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function ko(t,e,n,i,r){return{header:t.headerToolbar?So(t.headerToolbar,t,e,n,i,r):null,footer:t.footerToolbar?So(t.footerToolbar,t,e,n,i,r):null}}function So(t,e,n,i,r,s){let o={},l=[],a=!1;for(let c in t){let u=Do(t[c],e,n,i,r,s);o[c]=u.widgets,l.push(...u.viewsWithButtons),a=a||u.hasTitle}return{sectionWidgets:o,viewsWithButtons:l,hasTitle:a}}function Do(t,e,n,i,r,s){let o="rtl"===e.direction,l=e.customButtons||{},a=n.buttonText||{},c=e.buttonText||{},u=n.buttonHints||{},d=e.buttonHints||{},h=t?t.split(" "):[],f=[],p=!1;return{widgets:h.map((t=>t.split(",").map((t=>{if("title"===t)return p=!0,{buttonName:t};let n,h,g,v,m,b;if(n=l[t])g=t=>{n.click&&n.click.call(t.target,t,t.target)},(v=i.getCustomButtonIconClass(n))||(v=i.getIconClass(t,o))||(m=n.text),b=n.hint||n.text;else if(h=r[t]){f.push(t),g=()=>{s.changeView(t)},(m=h.buttonTextOverride)||(v=i.getIconClass(t,o))||(m=h.buttonTextDefault);let n=h.buttonTextOverride||h.buttonTextDefault;b=ve(h.buttonTitleOverride||h.buttonTitleDefault||e.viewHint,[n,t],n)}else if(s[t])if(g=()=>{s[t]()},(m=a[t])||(v=i.getIconClass(t,o))||(m=c[t]),"prevYear"===t||"nextYear"===t){let e="prevYear"===t?"prev":"next";b=ve(u[e]||d[e],[c.year||"year","year"],c[t])}else b=e=>ve(u[t]||d[t],[c[e]||e,e],c[t]);return{buttonName:t,buttonClick:g,buttonIcon:v,buttonText:m,buttonHint:b}})))),viewsWithButtons:f,hasTitle:p}}class Co{constructor(t,e,n){this.type=t,this.getCurrentData=e,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(t){return this.getCurrentData().options[t]}}const To={daysOfWeek:wn,startTime:Ee,endTime:Ee,duration:Ee,startRecur:wn,endRecur:wn};function No(t,e){let n=Cn(e.getCurrentData().eventSources);if(1===n.length&&1===t.length&&Array.isArray(n[0]._raw)&&Array.isArray(t[0]))return void e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});let i=[];for(let e of t){let t=!1;for(let i=0;i<n.length;i+=1)if(n[i]._raw===e){n.splice(i,1),t=!0;break}t||i.push(e)}for(let t of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:t.sourceId});for(let t of i)e.calendarApi.addEventSource(t)}const Mo=[ro({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:t=>Array.isArray(t.events)?t.events:null,fetch(t,e){e({rawEvents:t.eventSource.meta})}}]}),ro({name:"func-event-source",eventSourceDefs:[{parseMeta:t=>"function"==typeof t.events?t.events:null,fetch(t,e,n){const{dateEnv:i}=t.context;!function(t,n,i){let r=!1,s=function(t){r||(r=!0,e({rawEvents:t}))},o=function(t){r||(r=!0,i(t))},l=t(s,o);l&&"function"==typeof l.then&&l.then(s,o)}(t.eventSource.meta.bind(null,fr(t.range,i)),0,n)}}]}),ro({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:wn,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:t=>!t.url||"json"!==t.format&&t.format?null:{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam},fetch(t,e,n){const{meta:i}=t.eventSource,r=function(t,e,n){let i,r,s,o,{dateEnv:l,options:a}=n,c={};return i=t.startParam,null==i&&(i=a.startParam),r=t.endParam,null==r&&(r=a.endParam),s=t.timeZoneParam,null==s&&(s=a.timeZoneParam),o="function"==typeof t.extraParams?t.extraParams():t.extraParams||{},Object.assign(c,o),c[i]=l.formatIso(e.start),c[r]=l.formatIso(e.end),"local"!==l.timeZone&&(c[s]=l.timeZone),c}(i,t.range,t.context);(function(t,e,n){const i={method:t=t.toUpperCase()};return"GET"===t?e+=(-1===e.indexOf("?")?"?":"&")+new URLSearchParams(n):(i.body=new URLSearchParams(n),i.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,i).then((t=>{if(t.ok)return t.json().then((e=>[e,t]),(()=>{throw new gr("Failure parsing JSON",t)}));throw new gr("Request failed",t)}))})(i.method,i.url,r).then((([t,n])=>{e({rawEvents:t,response:n})}),n)}}]}),ro({name:"simple-recurring-event",recurringTypes:[{parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let r,s={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null};return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r={years:(n=t.endTime).years-(i=t.startTime).years,months:n.months-i.months,days:n.days-i.days,milliseconds:n.milliseconds-i.milliseconds}),{allDayGuess:Boolean(!t.startTime&&!t.endTime),duration:r,typeData:s}}var n,i;return null},expand(t,e,n){let i=ni(e,{start:t.startRecur,end:t.endRecur});return i?function(t,e,n,i){let r=t?Dn(t):null,s=Be(n.start),o=n.end,l=[];for(;s<o;){let t;r&&!r[s.getUTCDay()]||(t=e?i.add(s,e):s,l.push(t)),s=Oe(s,1)}return l}(t.daysOfWeek,t.startTime,i,n):[]}}],eventRefiners:To}),ro({name:"change-handler",optionChangeHandlers:{events(t,e){No([t],e)},eventSources:No}}),ro({name:"misc",isLoadingFuncs:[t=>fo(t.eventSources)],propSetHandlers:{dateProfile:function(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},fr(t.activeRange,e.dateEnv)),{view:e.viewApi}))},eventStore:function(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Zi(t,e))}}})];class Ro{constructor(t,e){this.runTaskOption=t,this.drainedOption=e,this.queue=[],this.delayedRunner=new qt(this.drain.bind(this))}request(t,e){this.queue.push(t),this.delayedRunner.request(e)}pause(t){this.delayedRunner.pause(t)}resume(t,e){this.delayedRunner.resume(t,e)}drain(){let{queue:t}=this;for(;t.length;){let e,n=[];for(;e=t.shift();)this.runTask(e),n.push(e);this.drained(n)}}runTask(t){this.runTaskOption&&this.runTaskOption(t)}drained(t){this.drainedOption&&this.drainedOption(t)}}function Oo(t,e,n){let i;return i=/^(year|month)$/.test(t.currentRangeUnit)?t.currentRange:t.activeRange,n.formatRange(i.start,i.end,un(e.titleFormat||function(t){let{currentRangeUnit:e}=t;if("year"===e)return{year:"numeric"};if("month"===e)return{year:"numeric",month:"long"};let n=Ie(t.currentRange.start,t.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}class _o{constructor(t){this.computeCurrentViewData=$e(this._computeCurrentViewData),this.organizeRawLocales=$e(eo),this.buildLocale=$e(no),this.buildPluginHooks=function(){let t,e=[],n=[];return(i,r)=>(t&&Ne(i,e)&&Ne(r,n)||(t=function(t,e){let n={},i={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function r(t){for(let a of t){const t=a.name,c=n[t];void 0===c?(n[t]=a.id,r(a.deps),i={premiumReleaseDate:(e=(o=i).premiumReleaseDate,s=(l=a).premiumReleaseDate,void 0===e?s:void 0===s?e:new Date(Math.max(e.valueOf(),s.valueOf()))),reducers:o.reducers.concat(l.reducers),isLoadingFuncs:o.isLoadingFuncs.concat(l.isLoadingFuncs),contextInit:o.contextInit.concat(l.contextInit),eventRefiners:Object.assign(Object.assign({},o.eventRefiners),l.eventRefiners),eventDefMemberAdders:o.eventDefMemberAdders.concat(l.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},o.eventSourceRefiners),l.eventSourceRefiners),isDraggableTransformers:o.isDraggableTransformers.concat(l.isDraggableTransformers),eventDragMutationMassagers:o.eventDragMutationMassagers.concat(l.eventDragMutationMassagers),eventDefMutationAppliers:o.eventDefMutationAppliers.concat(l.eventDefMutationAppliers),dateSelectionTransformers:o.dateSelectionTransformers.concat(l.dateSelectionTransformers),datePointTransforms:o.datePointTransforms.concat(l.datePointTransforms),dateSpanTransforms:o.dateSpanTransforms.concat(l.dateSpanTransforms),views:Object.assign(Object.assign({},o.views),l.views),viewPropsTransformers:o.viewPropsTransformers.concat(l.viewPropsTransformers),isPropsValid:l.isPropsValid||o.isPropsValid,externalDefTransforms:o.externalDefTransforms.concat(l.externalDefTransforms),viewContainerAppends:o.viewContainerAppends.concat(l.viewContainerAppends),eventDropTransformers:o.eventDropTransformers.concat(l.eventDropTransformers),calendarInteractions:o.calendarInteractions.concat(l.calendarInteractions),componentInteractions:o.componentInteractions.concat(l.componentInteractions),themeClasses:Object.assign(Object.assign({},o.themeClasses),l.themeClasses),eventSourceDefs:o.eventSourceDefs.concat(l.eventSourceDefs),cmdFormatter:l.cmdFormatter||o.cmdFormatter,recurringTypes:o.recurringTypes.concat(l.recurringTypes),namedTimeZonedImpl:l.namedTimeZonedImpl||o.namedTimeZonedImpl,initialView:o.initialView||l.initialView,elementDraggingImpl:o.elementDraggingImpl||l.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},o.optionChangeHandlers),l.optionChangeHandlers),scrollGridImpl:l.scrollGridImpl||o.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},o.listenerRefiners),l.listenerRefiners),optionRefiners:Object.assign(Object.assign({},o.optionRefiners),l.optionRefiners),propSetHandlers:Object.assign(Object.assign({},o.propSetHandlers),l.propSetHandlers)}):c!==a.id&&console.warn(`Duplicate plugin '${t}'`)}var e,s,o,l}return t&&r(t),r(e),i}(i,r)),e=i,n=r,t)}(),this.buildDateEnv=$e(jo),this.buildTheme=$e(Io),this.parseToolbars=$e(ko),this.buildViewSpecs=$e(uo),this.buildDateProfileGenerator=qe(Bo),this.buildViewApi=$e(zo),this.buildViewUiProps=qe(Go),this.buildEventUiBySource=$e(Ho,Tn),this.buildEventUiBases=$e(Po),this.parseContextBusinessHours=qe(Qo),this.buildTitle=$e(Oo),this.emitter=new Pi,this.actionRunner=new Ro(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=t=>{this.actionRunner.request(t)},this.props=t,this.actionRunner.pause();let e={},n=this.computeOptionsData(t.optionOverrides,e,t.calendarApi),i=n.calendarOptions.initialView||n.pluginHooks.initialView,r=this.computeCurrentViewData(i,n,t.optionOverrides,e);t.calendarApi.currentDataManager=this,this.emitter.setThisContext(t.calendarApi),this.emitter.setOptions(r.options);let s=function(t,e){let n=t.initialDate;return null!=n?e.createMarker(n):ci(t.now,e)}(n.calendarOptions,n.dateEnv),o=r.dateProfileGenerator.build(s);si(o.activeRange,s)||(s=o.currentRange.start);let l={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let t of n.pluginHooks.contextInit)t(l);let a=function(t,e,n){let i=e?e.activeRange:null;return po({},function(t,e){let n=ji(e),i=[].concat(t.eventSources||[]),r=[];t.initialEvents&&i.unshift(t.initialEvents),t.events&&i.unshift(t.events);for(let t of i){let i=_i(t,e,n);i&&r.push(i)}return r}(t,n),i,n)}(n.calendarOptions,o,l),c={dynamicOptionOverrides:e,currentViewType:i,currentDate:s,dateProfile:o,businessHours:this.parseContextBusinessHours(l),eventSources:a,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},u=Object.assign(Object.assign({},l),c);for(let t of n.pluginHooks.reducers)Object.assign(c,t(null,null,u));Uo(c,l)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(t,e){let{props:n}=this;void 0===e?n.optionOverrides=t:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),t),this.optionsForRefining.push(...e)),(void 0===e||e.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(t){let{props:e,state:n,emitter:i}=this,r=function(t,e){return"SET_OPTION"===e.type?Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue}):t}(n.dynamicOptionOverrides,t),s=this.computeOptionsData(e.optionOverrides,r,e.calendarApi),o=function(t,e){return"CHANGE_VIEW_TYPE"===e.type&&(t=e.viewType),t}(n.currentViewType,t),l=this.computeCurrentViewData(o,s,e.optionOverrides,r);e.calendarApi.currentDataManager=this,i.setThisContext(e.calendarApi),i.setOptions(l.options);let a={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:u}=n;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(u=l.dateProfileGenerator.build(c)),c=function(t,e){return"CHANGE_DATE"===e.type?e.dateMarker:t}(c,t),u=function(t,e,n,i){let r;switch(e.type){case"CHANGE_VIEW_TYPE":return i.build(e.dateMarker||n);case"CHANGE_DATE":return i.build(e.dateMarker);case"PREV":if(r=i.buildPrev(t,n),r.isValid)return r;break;case"NEXT":if(r=i.buildNext(t,n),r.isValid)return r}return t}(u,t,c,l.dateProfileGenerator),"PREV"!==t.type&&"NEXT"!==t.type&&si(u.currentRange,c)||(c=u.currentRange.start);let d=function(t,e,n,i){let r=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return po(t,e.sources,r,i);case"REMOVE_EVENT_SOURCE":return s=e.sourceId,kn(t,(t=>t.sourceId!==s));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?go(t,r,i):t;case"FETCH_EVENT_SOURCES":return vo(t,e.sourceIds?Dn(e.sourceIds):bo(t,i),r,e.isRefetch||!1,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(t,e,n,i){let r=t[e];return r&&n===r.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},r),{isFetching:!1,fetchRange:i})}):t}(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}var s}(n.eventSources,t,u,a),h=function(t,e,n,i,r){switch(e.type){case"RECEIVE_EVENTS":return function(t,e,n,i,r,s){if(e&&n===e.latestFetchId){let n=wi(Ii(r,e,s),e,s);return i&&(n=hi(n,i,s)),ki(Hi(t,e.sourceId),n)}return t}(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,r);case"RESET_RAW_EVENTS":return function(t,e,n,i,r){const{defIdMap:s,instanceIdMap:o}=function(t){const{defs:e,instances:n}=t,i={},r={};for(let t in e){const n=e[t],{publicId:r}=n;r&&(i[r]=t)}for(let t in n){const i=e[n[t].defId],{publicId:s}=i;s&&(r[s]=t)}return{defIdMap:i,instanceIdMap:r}}(t);return hi(wi(Ii(n,e,r),e,r,!1,s,o),i,r)}(t,n[e.sourceId],e.rawEvents,i.activeRange,r);case"ADD_EVENTS":return function(t,e,n,i){return n&&(e=hi(e,n,i)),ki(t,e)}(t,e.eventStore,i?i.activeRange:null,r);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return ki(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return i?hi(t,i.activeRange,r):t;case"REMOVE_EVENTS":return function(t,e){let{defs:n,instances:i}=t,r={},s={};for(let t in n)e.defs[t]||(r[t]=n[t]);for(let t in i)!e.instances[t]&&r[i[t].defId]&&(s[t]=i[t]);return{defs:r,instances:s}}(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Hi(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Si(t,(t=>!t.sourceId));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return t}}(n.eventStore,t,d,u,a),f=fo(d)&&!l.options.progressiveEventRendering&&n.renderableEventStore||h,{eventUiSingleBase:p,selectionConfig:g}=this.buildViewUiProps(a),v=this.buildEventUiBySource(d),m={dynamicOptionOverrides:r,currentViewType:o,currentDate:c,dateProfile:u,eventSources:d,eventStore:h,renderableEventStore:f,selectionConfig:g,eventUiBases:this.buildEventUiBases(f.defs,p,v),businessHours:this.parseContextBusinessHours(a),dateSelection:Ao(n.dateSelection,t),eventSelection:wo(n.eventSelection,t),eventDrag:Eo(n.eventDrag,t),eventResize:xo(n.eventResize,t)},b=Object.assign(Object.assign({},a),m);for(let e of s.pluginHooks.reducers)Object.assign(m,e(n,t,b));let y=Uo(n,a),A=Uo(m,a);!y&&A?i.trigger("loading",!0):y&&!A&&i.trigger("loading",!1),this.state=m,e.onAction&&e.onAction(t)}updateData(){let{props:t,state:e}=this,n=this.data,i=this.computeOptionsData(t.optionOverrides,e.dynamicOptionOverrides,t.calendarApi),r=this.computeCurrentViewData(e.currentViewType,i,t.optionOverrides,e.dynamicOptionOverrides),s=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(e.dateProfile,r.options,i.dateEnv),calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),r),e),o=i.pluginHooks.optionChangeHandlers,l=n&&n.calendarOptions,a=i.calendarOptions;if(l&&l!==a){l.timeZone!==a.timeZone&&(e.eventSources=s.eventSources=function(t,e,n){let i=e?e.activeRange:null;return vo(t,bo(t,n),i,!0,n)}(s.eventSources,e.dateProfile,s),e.eventStore=s.eventStore=zi(s.eventStore,n.dateEnv,s.dateEnv),e.renderableEventStore=s.renderableEventStore=zi(s.renderableEventStore,n.dateEnv,s.dateEnv));for(let t in o)-1===this.optionsForHandling.indexOf(t)&&l[t]===a[t]||o[t](a[t],s)}this.optionsForHandling=[],t.onData&&t.onData(s)}computeOptionsData(t,e,n){if(!this.optionsForRefining.length&&t===this.stableOptionOverrides&&e===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:r,localeDefaults:s,availableLocaleData:o,extra:l}=this.processRawCalendarOptions(t,e);Lo(l);let a=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,r,o,i.defaultRangeSeparator),c=this.buildViewSpecs(r.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,s),u=this.buildTheme(i,r),d=this.parseToolbars(i,this.stableOptionOverrides,u,c,n);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:r,dateEnv:a,viewSpecs:c,theme:u,toolbarConfig:d,localeDefaults:s,availableRawLocales:o.map}}processRawCalendarOptions(t,e){let{locales:n,locale:i}=yn([hn,t,e]),r=this.organizeRawLocales(n),s=this.buildLocale(i||r.defaultCode,r.map).options,o=this.buildPluginHooks(t.plugins||[],Mo),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dn),fn),pn),o.listenerRefiners),o.optionRefiners),a={},c=yn([hn,s,t,e]),u={},d=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,f=!1;for(let t in c)-1===this.optionsForRefining.indexOf(t)&&(c[t]===d[t]||gn[t]&&t in d&&gn[t](d[t],c[t]))?u[t]=h[t]:l[t]?(u[t]=l[t](c[t]),f=!0):a[t]=d[t];return f&&(this.currentCalendarOptionsInput=c,this.currentCalendarOptionsRefined=u,this.stableOptionOverrides=t,this.stableDynamicOptionOverrides=e),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:r,localeDefaults:s,extra:a}}_computeCurrentViewData(t,e,n,i){let r=e.viewSpecs[t];if(!r)throw new Error(`viewType "${t}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s,extra:o}=this.processRawViewOptions(r,e.pluginHooks,e.localeDefaults,n,i);return Lo(o),{viewSpec:r,options:s,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:r.optionDefaults.dateProfileGeneratorClass,duration:r.duration,durationUnit:r.durationUnit,usesMinMaxTime:r.optionDefaults.usesMinMaxTime,dateEnv:e.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,fixedWeekCount:s.fixedWeekCount}),viewApi:this.buildViewApi(t,this.getCurrentData,e.dateEnv)}}processRawViewOptions(t,e,n,i,r){let s=yn([hn,t.optionDefaults,n,i,t.optionOverrides,r]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dn),fn),pn),bn),e.listenerRefiners),e.optionRefiners),l={},a=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,u=!1,d={};for(let t in s)s[t]===a[t]||gn[t]&&gn[t](s[t],a[t])?l[t]=c[t]:(s[t]===this.currentCalendarOptionsInput[t]||gn[t]&&gn[t](s[t],this.currentCalendarOptionsInput[t])?t in this.currentCalendarOptionsRefined&&(l[t]=this.currentCalendarOptionsRefined[t]):o[t]?l[t]=o[t](s[t]):d[t]=s[t],u=!0);return u&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}}}function jo(t,e,n,i,r,s,o,l){let a=no(e||o.defaultCode,o.map);return new jn({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:a,weekNumberCalculation:n,firstDay:i,weekText:r,cmdFormatter:s.cmdFormatter,defaultSeparator:l})}function Io(t,e){return new(e.themeClasses[t.themeSystem]||so)(t)}function Bo(t){return new(t.dateProfileGeneratorClass||ui)(t)}function zo(t,e,n){return new Co(t,e,n)}function Ho(t){return Sn(t,(t=>t.ui))}function Po(t,e,n){let i={"":e};for(let e in t){let r=t[e];r.sourceId&&n[r.sourceId]&&(i[e]=n[r.sourceId])}return i}function Go(t){let{options:e}=t;return{eventUiSingleBase:Ni({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:"boolean"==typeof e.eventOverlap?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:Ni({constraint:e.selectConstraint,overlap:"boolean"==typeof e.selectOverlap?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function Uo(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Qo(t){return e=t,wi(function(t){let e;return e=!0===t?[{}]:Array.isArray(t)?t.filter((t=>t.daysOfWeek)):"object"==typeof t&&t?[t]:[],e=e.map((t=>Object.assign(Object.assign({},Gi),t))),e}(t.options.businessHours),null,e);var e}function Lo(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}class Vo extends Ln{render(){return _("div",{className:"fc-toolbar-chunk"},...this.props.widgetGroups.map((t=>this.renderWidgetGroup(t))))}renderWidgetGroup(t){let{props:e}=this,{theme:n}=this.context,i=[],r=!0;for(let s of t){let{buttonName:t,buttonClick:o,buttonText:l,buttonIcon:a,buttonHint:c}=s;if("title"===t)r=!1,i.push(_("h2",{className:"fc-toolbar-title",id:e.titleId},e.title));else{let r=t===e.activeButton,s=!e.isTodayEnabled&&"today"===t||!e.isPrevEnabled&&"prev"===t||!e.isNextEnabled&&"next"===t,u=[`fc-${t}-button`,n.getClass("button")];r&&u.push(n.getClass("buttonActive")),i.push(_("button",{type:"button",title:"function"==typeof c?c(e.navUnit):c,disabled:s,"aria-pressed":r,className:u.join(" "),onClick:o},l||(a?_("span",{className:a,role:"img"}):"")))}}return i.length>1?_("div",{className:r&&n.getClass("buttonGroup")||""},...i):i[0]}}class Wo extends Ln{render(){let t,e,{model:n,extraClassName:i}=this.props,r=!1,s=n.sectionWidgets,o=s.center;return s.left?(r=!0,t=s.left):t=s.start,s.right?(r=!0,e=s.right):e=s.end,_("div",{className:[i||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",t||[]),this.renderSection("center",o||[]),this.renderSection("end",e||[]))}renderSection(t,e){let{props:n}=this;return _(Vo,{key:t,widgetGroups:e,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class Fo extends Ln{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=t=>{this.el=t,Vn(this.props.elRef,t),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:t,state:e}=this,{aspectRatio:n}=t,i="",r="";return n?null!==e.availableWidth?i=e.availableWidth/n:r=1/n*100+"%":i=t.height||"",_("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,className:["fc-view-harness",n||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-passive"].join(" "),style:{height:i,paddingBottom:r}},t.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 Yo extends yr{constructor(t){super(t),this.handleSegClick=(t,e)=>{let{component:n}=this,{context:i}=n,r=Ki(e);if(r&&n.isValidSegDownEl(t.target)){let s=Jt(t.target,".fc-event-forced-url"),o=s?s.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:e,event:new $i(n.context,r.eventRange.def,r.eventRange.instance),jsEvent:t,view:i.viewApi}),o&&!t.defaultPrevented&&(window.location.href=o)}},this.destroy=oe(t.el,"click",".fc-event",this.handleSegClick)}}class $o extends yr{constructor(t){super(t),this.handleEventElRemove=t=>{t===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(t,e)=>{Ki(e)&&(this.currentSegEl=e,this.triggerEvent("eventMouseEnter",t,e))},this.handleSegLeave=(t,e)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",t,e))},this.removeHoverListeners=function(t,e,n,i){let r;return oe(t,"mouseover",".fc-event",((t,e)=>{if(e!==r){r=e,n(t,e);let s=t=>{r=null,i(t,e),e.removeEventListener("mouseleave",s)};e.addEventListener("mouseleave",s)}}))}(t.el,0,this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(t,e,n){let{component:i}=this,{context:r}=i,s=Ki(n);e&&!i.isValidSegDownEl(e.target)||r.emitter.trigger(t,{el:n,event:new $i(r,s.eventRange.def,s.eventRange.instance),jsEvent:e,view:r.viewApi})}}class qo extends Qn{constructor(){super(...arguments),this.buildViewContext=$e(Un),this.buildViewPropTransformers=$e(Jo),this.buildToolbarProps=$e(Zo),this.headerRef={current:null},this.footerRef={current:null},this.interactionsStore={},this.state={viewLabelId:re()},this.registerInteractiveComponent=(t,e)=>{let n=function(t,e){return{component:t,el:e.el,useEventCenter:null==e.useEventCenter||e.useEventCenter,isHitComboAllowed:e.isHitComboAllowed||null}}(t,e),i=[Yo,$o].concat(this.props.pluginHooks.componentInteractions).map((t=>new t(n)));this.interactionsStore[t.uid]=i,wr[t.uid]=n},this.unregisterInteractiveComponent=t=>{let e=this.interactionsStore[t.uid];if(e){for(let t of e)t.destroy();delete this.interactionsStore[t.uid]}delete wr[t.uid]},this.resizeRunner=new qt((()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})})),this.handleWindowResize=t=>{let{options:e}=this.props;e.handleWindowResize&&t.target===window&&this.resizeRunner.request(e.windowResizeDelay)}}render(){let t,{props:e}=this,{toolbarConfig:n,options:i}=e,r=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,ci(e.options.now,e.dateEnv),e.viewTitle),s=!1,o="";e.isHeightAuto||e.forPrint?o="":null!=i.height?s=!0:null!=i.contentHeight?o=i.contentHeight:t=Math.max(i.aspectRatio,.5);let l=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),a=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return _(Gn.Provider,{value:l},n.header&&_(Wo,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:a},r)),_(Fo,{liquid:s,height:o,aspectRatio:t,labeledById:a},this.renderView(e),this.buildAppendContent()),n.footer&&_(Wo,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},r)))}componentDidMount(){let{props:t}=this;this.calendarInteractions=t.pluginHooks.calendarInteractions.map((e=>new e(t))),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:e}=t.pluginHooks;for(let n in e)e[n](t[n],t)}componentDidUpdate(t){let{props:e}=this,{propSetHandlers:n}=e.pluginHooks;for(let i in n)e[i]!==t[i]&&n[i](e[i],e)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let t of this.calendarInteractions)t.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:t}=this;return _(I,{},...t.pluginHooks.viewContainerAppends.map((e=>e(t))))}renderView(t){let{pluginHooks:e}=t,{viewSpec:n}=t,i={dateProfile:t.dateProfile,businessHours:t.businessHours,eventStore:t.renderableEventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isHeightAuto:t.isHeightAuto,forPrint:t.forPrint},r=this.buildViewPropTransformers(e.viewPropsTransformers);for(let e of r)Object.assign(i,e.transform(i,t));return _(n.component,Object.assign({},i))}}function Zo(t,e,n,i,r,s){let o=n.build(r,void 0,!1),l=n.buildPrev(e,i,!1),a=n.buildNext(e,i,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:o.isValid&&!si(e.currentRange,r),isPrevEnabled:l.isValid,isNextEnabled:a.isValid}}function Jo(t){return t.map((t=>new t))}class Xo extends Er{constructor(t,e={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=t=>{switch(t.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=t=>{this.currentData=t,this.renderRunner.request(t.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:t}=this;Bn((()=>{it(_(br,{options:t.calendarOptions,theme:t.theme,emitter:t.emitter},((e,n,i,r)=>(this.setClassNames(e),this.setHeight(n),_(qn.Provider,{value:this.customContentRenderId},_(qo,Object.assign({isHeightAuto:i,forPrint:r},t)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,it(null,this.el),this.setClassNames([]),this.setHeight(""))},function(t){t.isConnected&&t.getRootNode&&Ft(t.getRootNode())}(t),this.el=t,this.renderRunner=new qt(this.handleRenderRequest),new _o({optionOverrides:e,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let t=this.isRendering;t?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),t&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){Bn((()=>{super.updateSize()}))}batchRendering(t){this.renderRunner.pause("batchRendering"),t(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(t,e){this.currentDataManager.resetOptions(t,e)}setClassNames(t){if(!Ne(t,this.currentClassNames)){let{classList:e}=this.el;for(let t of this.currentClassNames)e.remove(t);for(let n of t)e.add(n);this.currentClassNames=t}}setHeight(t){ee(this.el,"height",t)}}class Ko extends Vr{constructor(){super(...arguments),this.headerElRef={current:null}}renderSimpleLayout(t,e){let{props:n,context:i}=this,r=[],s=Ts(i.options);return t&&r.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),r.push({type:"body",key:"body",liquid:!0,chunk:{content:e}}),_(Xn,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},_(Ms,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:r}))}renderHScrollLayout(t,e,n,i){let r=this.context.pluginHooks.scrollGridImpl;if(!r)throw new Error("No ScrollGrid implementation");let{props:s,context:o}=this,l=!s.forPrint&&Ts(o.options),a=!s.forPrint&&Ns(o.options),c=[];return t&&c.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:e}]}),a&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Cs}]}),_(Xn,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},_(r,{liquid:!s.isHeightAuto&&!s.forPrint,forPrint:s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:n,minWidth:i}]}],sections:c}))}}function tl(t,e){let n=[];for(let t=0;t<e;t+=1)n[t]=[];for(let e of t)n[e.row].push(e);return n}function el(t,e){let n=[];for(let t=0;t<e;t+=1)n[t]=[];for(let e of t)n[e.firstCol].push(e);return n}function nl(t,e){let n=[];if(t){for(let i=0;i<e;i+=1)n[i]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let e of t.segs)n[e.row].segs.push(e)}else for(let t=0;t<e;t+=1)n[t]=null;return n}const il=un({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function rl(t){let{display:e}=t.eventRange.ui;return"list-item"===e||"auto"===e&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class sl extends Ln{render(){let{props:t}=this;return _(Os,Object.assign({},t,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:il,defaultDisplayEventEnd:t.defaultDisplayEventEnd,disableResizing:!t.seg.eventRange.def.allDay}))}}class ol extends Ln{render(){let{props:t,context:e}=this,{options:n}=e,{seg:i}=t,r=lr(i,n.eventTimeFormat||il,e,!0,t.defaultDisplayEventEnd);return _(Rs,Object.assign({},t,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:dr(t.seg,e),defaultGenerator:ll,timeText:r,isResizing:!1,isDateSelecting:!1}))}}function ll(t){return _(I,null,_("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&_("div",{className:"fc-event-time"},t.timeText),_("div",{className:"fc-event-title"},t.event.title||_(I,null," ")))}class al extends Ln{constructor(){super(...arguments),this.compileSegs=$e(cl)}render(){let{props:t}=this,{allSegs:e,invisibleSegs:n}=this.compileSegs(t.singlePlacements);return _(Fs,{elClasses:["fc-daygrid-more-link"],dateProfile:t.dateProfile,todayRange:t.todayRange,allDayDate:t.allDayDate,moreCnt:t.moreCnt,allSegs:e,hiddenSegs:n,alignmentElRef:t.alignmentElRef,alignGridTop:t.alignGridTop,extraDateSpan:t.extraDateSpan,popoverContent:()=>{let n=(t.eventDrag?t.eventDrag.affectedInstances:null)||(t.eventResize?t.eventResize.affectedInstances:null)||{};return _(I,null,e.map((e=>{let i=e.eventRange.instance.instanceId;return _("div",{className:"fc-daygrid-event-harness",key:i,style:{visibility:n[i]?"hidden":""}},rl(e)?_(ol,Object.assign({seg:e,isDragging:!1,isSelected:i===t.eventSelection,defaultDisplayEventEnd:!1},ar(e,t.todayRange))):_(sl,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:i===t.eventSelection,defaultDisplayEventEnd:!1},ar(e,t.todayRange))))})))}})}}function cl(t){let e=[],n=[];for(let i of t)e.push(i.seg),i.isVisible||n.push(i.seg);return{allSegs:e,invisibleSegs:n}}const ul=un({week:"narrow"});class dl extends Vr{constructor(){super(...arguments),this.rootElRef={current:null},this.state={dayNumberId:re()},this.handleRootEl=t=>{Vn(this.rootElRef,t),Vn(this.props.elRef,t)}}render(){let{context:t,props:e,state:n,rootElRef:i}=this,{options:r,dateEnv:s}=t,{date:o,dateProfile:l}=e;const a=e.showDayNumber&&function(t,e,n){const{start:i,end:r}=e,s=_e(r,-1),o=n.getYear(i),l=n.getMonth(i),a=n.getYear(s),c=n.getMonth(s);return!(o===a&&l===c)&&Boolean(t.valueOf()===i.valueOf()||1===n.getDay(t)&&t.valueOf()<r.valueOf())}(o,l.currentRange,s);return _(Bs,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...e.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},e.extraDataAttrs),e.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:hl,date:o,dateProfile:l,todayRange:e.todayRange,showDayNumber:e.showDayNumber,isMonthStart:a,extraRenderProps:e.extraRenderProps},((s,l)=>_("div",{ref:e.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:e.minHeight}},e.showWeekNumber&&_(Qs,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Or(t,o,"week"),date:o,defaultFormat:ul}),!l.isDisabled&&(e.showDayNumber||zs(r)||e.forceDayTop)?_("div",{className:"fc-daygrid-day-top"},_(s,{elTag:"a",elClasses:["fc-daygrid-day-number",a&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Or(t,o)),{id:n.dayNumberId})})):e.showDayNumber?_("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},_("a",{className:"fc-daygrid-day-number"}," ")):void 0,_("div",{className:"fc-daygrid-day-events",ref:e.fgContentElRef},e.fgContent,_("div",{className:"fc-daygrid-day-bottom",style:{marginTop:e.moreMarginTop}},_(al,{allDayDate:o,singlePlacements:e.singlePlacements,moreCnt:e.moreCnt,alignmentElRef:i,alignGridTop:!e.showDayNumber,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange}))),_("div",{className:"fc-daygrid-day-bg"},e.bgContent))))}}function hl(t){return t.dayNumberText||_(I,null," ")}function fl(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function pl(t){return fl(t)+":"+t.lastCol}function gl(t,e,n,i){if(t.firstCol===e&&t.lastCol===n-1)return t;let r=t.eventRange,s=r.range,o=ni(s,{start:i[e].date,end:Oe(i[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:r.def,ui:Object.assign(Object.assign({},r.ui),{durationEditable:!1}),instance:r.instance,range:o},isStart:t.isStart&&o.start.valueOf()===s.start.valueOf(),isEnd:t.isEnd&&o.end.valueOf()===s.end.valueOf()})}class vl extends Wr{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(t){const e=super.addSegs(t),{entriesByLevel:n}=this,i=t=>!this.forceHidden[Yr(t)];for(let t=0;t<n.length;t+=1)n[t]=n[t].filter(i);return e}handleInvalidInsertion(t,e,n){const{entriesByLevel:i,forceHidden:r}=this,{touchingEntry:s,touchingLevel:o,touchingLateral:l}=t;if(this.hiddenConsumes&&s){const t=Yr(s);if(!r[t])if(this.allowReslicing){const t=Object.assign(Object.assign({},s),{span:$r(s.span,e.span)});r[Yr(t)]=!0,i[o][l]=t,n.push(t),this.splitEntry(s,e,n)}else r[t]=!0,n.push(s)}super.handleInvalidInsertion(t,e,n)}}class ml extends Vr{constructor(){super(...arguments),this.cellElRefs=new ws,this.frameElRefs=new ws,this.fgElRefs=new ws,this.segHarnessRefs=new ws,this.rootElRef={current:null},this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=t=>{t&&this.updateSizing(!0)}}render(){let{props:t,state:e,context:n}=this,{options:i}=n,r=t.cells.length,s=el(t.businessHourSegs,r),o=el(t.bgEventSegs,r),l=el(this.getHighlightSegs(),r),a=el(this.getMirrorSegs(),r),{singleColPlacements:c,multiColPlacements:u,moreCnts:d,moreMarginTops:h}=function(t,e,n,i,r,s,o){let l=new vl((e=>r[t[e.index].eventRange.instance.instanceId+":"+e.span.start+":"+(e.span.end-1)]||1));l.allowReslicing=!0,l.strictOrder=i,!0===e||!0===n?(l.maxCoord=s,l.hiddenConsumes=!0):"number"==typeof e?l.maxStackCnt=e:"number"==typeof n&&(l.maxStackCnt=n,l.hiddenConsumes=!0);let a=[],c=[];for(let e=0;e<t.length;e+=1){let n=t[e],i=pl(n);null!=r[i]?a.push({index:e,span:{start:n.firstCol,end:n.lastCol+1}}):c.push(n)}let u=l.addSegs(a),d=l.toRects(),{singleColPlacements:h,multiColPlacements:f,leftoverMargins:p}=function(t,e,n){let i=function(t,e){let n=[];for(let t=0;t<e;t+=1)n.push([]);for(let e of t)for(let t=e.span.start;t<e.span.end;t+=1)n[t].push(e);return n}(t,n.length),r=[],s=[],o=[];for(let t=0;t<n.length;t+=1){let l=i[t],a=[],c=0,u=0;for(let i of l)a.push({seg:gl(e[i.index],t,t+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:i.levelCoord,marginTop:i.levelCoord-c}),c=i.levelCoord+i.thickness;let d=[];c=0,u=0;for(let i of l){let r=e[i.index],s=i.span.start===t;u+=i.levelCoord-c,c=i.levelCoord+i.thickness,i.span.end-i.span.start>1?(u+=i.thickness,s&&d.push({seg:gl(r,i.span.start,i.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:i.levelCoord,marginTop:0})):s&&(d.push({seg:gl(r,i.span.start,i.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:i.levelCoord,marginTop:u}),u=0)}r.push(a),s.push(d),o.push(u)}return{singleColPlacements:r,multiColPlacements:s,leftoverMargins:o}}(d,t,o),g=[],v=[];for(let t of c){f[t.firstCol].push({seg:t,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=t.firstCol;e<=t.lastCol;e+=1)h[e].push({seg:gl(t,e,e+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let t=0;t<o.length;t+=1)g.push(0);for(let e of u){let n=t[e.index],i=e.span;f[i.start].push({seg:gl(n,i.start,i.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let t=i.start;t<i.end;t+=1)g[t]+=1,h[t].push({seg:gl(n,t,t+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let t=0;t<o.length;t+=1)v.push(p[t]);return{singleColPlacements:h,multiColPlacements:f,moreCnts:g,moreMarginTops:v}}(nr(t.fgEventSegs,i.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,i.eventOrderStrict,e.segHeights,e.maxContentHeight,t.cells),f=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return _("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map(((e,n)=>{let i=this.renderFgSegs(n,t.forPrint?c[n]:u[n],t.todayRange,f),r=this.renderFgSegs(n,function(t,e){if(!t.length)return[];let n=function(t){let e={};for(let n of t)for(let t of n)e[t.seg.eventRange.instance.instanceId]=t.absoluteTop;return e}(e);return t.map((t=>({seg:t,isVisible:!0,isAbsolute:!0,absoluteTop:n[t.eventRange.instance.instanceId],marginTop:0})))}(a[n],u),t.todayRange,{},Boolean(t.eventDrag),Boolean(t.eventResize),!1);return _(dl,{key:e.key,elRef:this.cellElRefs.createRef(e.key),innerElRef:this.frameElRefs.createRef(e.key),dateProfile:t.dateProfile,date:e.date,showDayNumber:t.showDayNumbers,showWeekNumber:t.showWeekNumbers&&0===n,forceDayTop:t.showWeekNumbers,todayRange:t.todayRange,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,extraRenderProps:e.extraRenderProps,extraDataAttrs:e.extraDataAttrs,extraClassNames:e.extraClassNames,extraDateSpan:e.extraDateSpan,moreCnt:d[n],moreMarginTop:h[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(e.key),fgContent:_(I,null,_(I,null,i),_(I,null,r)),bgContent:_(I,null,this.renderFillSegs(l[n],"highlight"),this.renderFillSegs(s[n],"non-business"),this.renderFillSegs(o[n],"bg-event")),minHeight:t.cellMinHeight})})))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(t,e){this.updateSizing(!Tn(t,this.props))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:t}=this;return t.eventDrag&&t.eventDrag.segs.length?t.eventDrag.segs:t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:t.dateSelectionSegs}getMirrorSegs(){let{props:t}=this;return t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:[]}renderFgSegs(t,e,n,i,r,s,o){let{context:l}=this,{eventSelection:a}=this.props,{framePositions:c}=this.state,u=1===this.props.cells.length,d=r||s||o,h=[];if(c)for(let t of e){let{seg:e}=t,{instanceId:f}=e.eventRange.instance,p=t.isVisible&&!i[f],g=t.isAbsolute,v="",m="";g&&(l.isRtl?(m=0,v=c.lefts[e.lastCol]-c.lefts[e.firstCol]):(v=0,m=c.rights[e.firstCol]-c.rights[e.lastCol])),h.push(_("div",{className:"fc-daygrid-event-harness"+(g?" fc-daygrid-event-harness-abs":""),key:fl(e),ref:d?null:this.segHarnessRefs.createRef(pl(e)),style:{visibility:p?"":"hidden",marginTop:g?"":t.marginTop,top:g?t.absoluteTop:"",left:v,right:m}},rl(e)?_(ol,Object.assign({seg:e,isDragging:r,isSelected:f===a,defaultDisplayEventEnd:u},ar(e,n))):_(sl,Object.assign({seg:e,isDragging:r,isResizing:s,isDateSelecting:o,isSelected:f===a,defaultDisplayEventEnd:u},ar(e,n)))))}return h}renderFillSegs(t,e){let{isRtl:n}=this.context,{todayRange:i}=this.props,{framePositions:r}=this.state,s=[];if(r)for(let o of t){let t=n?{right:0,left:r.lefts[o.lastCol]-r.lefts[o.firstCol]}:{left:0,right:r.rights[o.firstCol]-r.rights[o.lastCol]};s.push(_("div",{key:ur(o.eventRange),className:"fc-daygrid-bg-harness",style:t},"bg-event"===e?_(Ps,Object.assign({seg:o},ar(o,i))):Us(e)))}return _(I,{},...s)}updateSizing(t){let{props:e,state:n,frameElRefs:i}=this;if(!e.forPrint&&null!==e.clientWidth){if(t){let t=e.cells.map((t=>i.currentMap[t.key]));if(t.length){let e=this.rootElRef.current,i=new Pr(e,t,!0,!1);n.framePositions&&n.framePositions.similarTo(i)||this.setState({framePositions:new Pr(e,t,!0,!1)})}}const r=this.state.segHeights,s=this.querySegHeights(),o=!0===e.dayMaxEvents||!0===e.dayMaxEventRows;this.safeSetState({segHeights:Object.assign(Object.assign({},r),s),maxContentHeight:o?this.computeMaxContentHeight():null})}}querySegHeights(){let t=this.segHarnessRefs.currentMap,e={};for(let n in t){let i=Math.round(t[n].getBoundingClientRect().height);e[n]=Math.max(e[n]||0,i)}return e}computeMaxContentHeight(){let t=this.props.cells[0].key,e=this.fgElRefs.currentMap[t];return this.cellElRefs.currentMap[t].getBoundingClientRect().bottom-e.getBoundingClientRect().top}getCellEls(){let t=this.cellElRefs.currentMap;return this.props.cells.map((e=>t[e.key]))}}ml.addStateEquality({segHeights:Tn});class bl extends Vr{constructor(){super(...arguments),this.splitBusinessHourSegs=$e(tl),this.splitBgEventSegs=$e(tl),this.splitFgEventSegs=$e(tl),this.splitDateSelectionSegs=$e(tl),this.splitEventDrag=$e(nl),this.splitEventResize=$e(nl),this.rowRefs=new ws}render(){let{props:t,context:e}=this,n=t.cells.length,i=this.splitBusinessHourSegs(t.businessHourSegs,n),r=this.splitBgEventSegs(t.bgEventSegs,n),s=this.splitFgEventSegs(t.fgEventSegs,n),o=this.splitDateSelectionSegs(t.dateSelectionSegs,n),l=this.splitEventDrag(t.eventDrag,n),a=this.splitEventResize(t.eventResize,n),c=n>=7&&t.clientWidth?t.clientWidth/e.options.aspectRatio/6:null;return _(rs,{unit:"day"},((e,u)=>_(I,null,t.cells.map(((e,d)=>_(ml,{ref:this.rowRefs.createRef(d),key:e.length?e[0].date.toISOString():d,showDayNumbers:n>1,showWeekNumbers:t.showWeekNumbers,todayRange:u,dateProfile:t.dateProfile,cells:e,renderIntro:t.renderRowIntro,businessHourSegs:i[d],eventSelection:t.eventSelection,bgEventSegs:r[d].filter(yl),fgEventSegs:s[d],dateSelectionSegs:o[d],eventDrag:l[d],eventResize:a[d],dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,clientWidth:t.clientWidth,clientHeight:t.clientHeight,cellMinHeight:c,forPrint:t.forPrint}))))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const t=this.rowRefs.currentMap[0].getCellEls()[0],e=t?t.closest(".fc-daygrid-body"):null;e&&(this.rootEl=e,this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Pr(this.rootEl,this.rowRefs.collect().map((t=>t.getCellEls()[0])),!1,!0),this.colPositions=new Pr(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(t,e){let{colPositions:n,rowPositions:i}=this,r=n.leftToIndex(t),s=i.topToIndex(e);if(null!=s&&null!=r){let t=this.props.cells[s][r];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(s,r),allDay:!0},t.extraDateSpan),dayEl:this.getCellEl(s,r),rect:{left:n.lefts[r],right:n.rights[r],top:i.tops[s],bottom:i.bottoms[s]},layer:0}}return null}getCellEl(t,e){return this.rowRefs.currentMap[t].getCellEls()[e]}getCellRange(t,e){let n=this.props.cells[t][e].date;return{start:n,end:Oe(n,1)}}}function yl(t){return t.eventRange.def.allDay}class Al extends Vr{constructor(){super(...arguments),this.elRef={current:null},this.needsScrollReset=!1}render(){let{props:t}=this,{dayMaxEventRows:e,dayMaxEvents:n,expandRows:i}=t,r=!0===n||!0===e;return r&&!i&&(r=!1,e=null,n=null),_("div",{ref:this.elRef,className:["fc-daygrid-body",r?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"].join(" "),style:{width:t.clientWidth,minWidth:t.tableMinWidth}},_("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:i?t.clientHeight:""}},t.colGroupNode,_("tbody",{role:"presentation"},_(bl,{dateProfile:t.dateProfile,cells:t.cells,renderRowIntro:t.renderRowIntro,showWeekNumbers:t.showWeekNumbers,clientWidth:t.clientWidth,clientHeight:t.clientHeight,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,dayMaxEvents:n,dayMaxEventRows:e,forPrint:t.forPrint,isHitComboAllowed:t.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(t){t.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const t=function(t,e){let n;var i;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${i=e.currentDate,i.toISOString().match(/^\d{4}-\d{2}/)[0]}-01"]`)),n||(n=t.querySelector(`[data-date="${Fe(e.currentDate)}"]`)),n}(this.elRef.current,this.props.dateProfile);if(t){const e=t.closest(".fc-daygrid-body"),n=e.closest(".fc-scroller"),i=t.getBoundingClientRect().top-e.getBoundingClientRect().top;n.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}class wl extends us{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(t,e){return e.sliceRange(t)}}class El extends Vr{constructor(){super(...arguments),this.slicer=new wl,this.tableRef={current:null}}render(){let{props:t,context:e}=this;return _(Al,Object.assign({ref:this.tableRef},this.slicer.sliceProps(t,t.dateProfile,t.nextDayThreshold,e,t.dayTableModel),{dateProfile:t.dateProfile,cells:t.dayTableModel.cells,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint}))}}function xl(t,e){let n=new as(t.renderRange,e);return new cs(n,/year|month|week/.test(t.currentRangeUnit))}Wt(':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}');var kl=ro({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:class extends Ko{constructor(){super(...arguments),this.buildDayTableModel=$e(xl),this.headerRef={current:null},this.tableRef={current:null}}render(){let{options:t,dateProfileGenerator:e}=this.context,{props:n}=this,i=this.buildDayTableModel(n.dateProfile,e),r=t.dayHeaders&&_(os,{ref:this.headerRef,dateProfile:n.dateProfile,dates:i.headerDates,datesRepDistinctDays:1===i.rowCnt}),s=e=>_(El,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:i,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:t.nextDayThreshold,colGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:n.forPrint});return t.dayMinWidth?this.renderHScrollLayout(r,s,i.colCnt,t.dayMinWidth):this.renderSimpleLayout(r,s)}},dateProfileGeneratorClass:class extends ui{buildRenderRange(t,e,n){let i=super.buildRenderRange(t,e,n),{props:r}=this;return function(t){let e,{dateEnv:n,currentRange:i}=t,{start:r,end:s}=i;if(t.snapToWeek&&(r=n.startOfWeek(r),e=n.startOfWeek(s),e.valueOf()!==s.valueOf()&&(s=Re(e,1))),t.fixedWeekCount){let t=n.startOfWeek(n.startOfMonth(Oe(i.end,-1)));s=Re(s,6-Math.ceil(je(t,s)/7))}return{start:r,end:s}}({currentRange:i,snapToWeek:/^(year|month)$/.test(e),fixedWeekCount:r.fixedWeekCount,dateEnv:r.dateEnv})}}},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});Xr.touchMouseIgnoreWait=500;let Sl=0,Dl=0,Cl=!1;class Tl{constructor(t){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=t=>{if(!this.shouldIgnoreMouse()&&function(t){return 0===t.button&&!t.ctrlKey}(t)&&this.tryStart(t)){let e=this.createEventFromMouse(t,!0);this.emitter.trigger("pointerdown",e),this.initScrollWatch(e),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=t=>{let e=this.createEventFromMouse(t);this.recordCoords(e),this.emitter.trigger("pointermove",e)},this.handleMouseUp=t=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(t)),this.cleanup()},this.handleTouchStart=t=>{if(this.tryStart(t)){this.isTouchDragging=!0;let e=this.createEventFromTouch(t,!0);this.emitter.trigger("pointerdown",e),this.initScrollWatch(e);let n=t.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=t=>{let e=this.createEventFromTouch(t);this.recordCoords(e),this.emitter.trigger("pointermove",e)},this.handleTouchEnd=t=>{if(this.isDragging){let e=t.target;e.removeEventListener("touchmove",this.handleTouchMove),e.removeEventListener("touchend",this.handleTouchEnd),e.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(t)),this.cleanup(),this.isTouchDragging=!1,Sl+=1,setTimeout((()=>{Sl-=1}),Xr.touchMouseIgnoreWait)}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=t=>{if(!this.shouldIgnoreMove){let e=window.scrollX-this.prevScrollX+this.prevPageX,n=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:t,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:e,pageY:n,deltaX:e-this.origPageX,deltaY:n-this.origPageY})}},this.containerEl=t,this.emitter=new Pi,t.addEventListener("mousedown",this.handleMouseDown),t.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),Dl+=1,1===Dl&&window.addEventListener("touchmove",Nl,{passive:!1})}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Dl-=1,Dl||window.removeEventListener("touchmove",Nl,{passive:!1})}tryStart(t){let e=this.querySubjectEl(t);return!(!e||this.handleSelector&&!Jt(t.target,this.handleSelector)||(this.subjectEl=e,this.isDragging=!0,this.wasTouchScroll=!1,0))}cleanup(){Cl=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(t){return this.selector?Jt(t.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Sl||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Cl=!0)}initScrollWatch(t){this.shouldWatchScroll&&(this.recordCoords(t),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(t){this.shouldWatchScroll&&(this.prevPageX=t.pageX,this.prevPageY=t.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(t,e){let n=0,i=0;return e?(this.origPageX=t.pageX,this.origPageY=t.pageY):(n=t.pageX-this.origPageX,i=t.pageY-this.origPageY),{origEvent:t,isTouch:!1,subjectEl:this.subjectEl,pageX:t.pageX,pageY:t.pageY,deltaX:n,deltaY:i}}createEventFromTouch(t,e){let n,i,r=t.touches,s=0,o=0;return r&&r.length?(n=r[0].pageX,i=r[0].pageY):(n=t.pageX,i=t.pageY),e?(this.origPageX=n,this.origPageY=i):(s=n-this.origPageX,o=i-this.origPageY),{origEvent:t,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:i,deltaX:s,deltaY:o}}}function Nl(t){Cl&&t.preventDefault()}class Ml{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(t,e,n){this.sourceEl=t,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=e-window.scrollX,this.origScreenY=n-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(t,e){this.deltaX=t-window.scrollX-this.origScreenX,this.deltaY=e-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(t){t?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=t,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=t)}stop(t,e){let n=()=>{this.cleanup(),e()};t&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(t,e){let n=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();n.style.transition="top "+e+"ms,left "+e+"ms",te(n,{left:i.left,top:i.top}),function(t,e){let n=()=>{e(),le.forEach((e=>{t.removeEventListener(e,n)}))};le.forEach((e=>{t.addEventListener(e,n)}))}(n,(()=>{n.style.transition="",t()}))}cleanup(){this.mirrorEl&&(Zt(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&te(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let t=this.sourceElRect,e=this.mirrorEl;return e||(e=this.mirrorEl=this.sourceEl.cloneNode(!0),e.style.userSelect="none",e.style.webkitUserSelect="none",e.style.pointerEvents="none",e.classList.add("fc-event-dragging"),te(e,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:t.right-t.left,height:t.bottom-t.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(e)),e}}class Rl extends Ur{constructor(t,e){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=t,this.doesListening=e,this.scrollTop=this.origScrollTop=t.getScrollTop(),this.scrollLeft=this.origScrollLeft=t.getScrollLeft(),this.scrollWidth=t.getScrollWidth(),this.scrollHeight=t.getScrollHeight(),this.clientWidth=t.getClientWidth(),this.clientHeight=t.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(t){this.scrollController.setScrollTop(t),this.doesListening||(this.scrollTop=Math.max(Math.min(t,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(t){this.scrollController.setScrollLeft(t),this.doesListening||(this.scrollLeft=Math.max(Math.min(t,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Ol extends Rl{constructor(t,e){super(new Qr(t),e)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Br(this.scrollController.el)}}class _l extends Rl{constructor(t){super(new Lr,t)}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 jl="function"==typeof performance?performance.now:Date.now;class Il{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 t=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(t){let e=jl();this.handleSide(t,(e-this.msSinceRequest)/1e3),this.requestAnimation(e)}else this.isAnimating=!1}}}start(t,e,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(t,e))}handleMove(t,e){if(this.isEnabled){let n=t-window.scrollX,i=e-window.scrollY,r=null===this.pointerScreenY?0:i-this.pointerScreenY,s=null===this.pointerScreenX?0:n-this.pointerScreenX;r<0?this.everMovedUp=!0:r>0&&(this.everMovedDown=!0),s<0?this.everMovedLeft=!0:s>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(jl()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let t of this.scrollCaches)t.destroy();this.scrollCaches=null}}requestAnimation(t){this.msSinceRequest=t,requestAnimationFrame(this.animate)}handleSide(t,e){let{scrollCache:n}=t,{edgeThreshold:i}=this,r=i-t.distance,s=r*r/(i*i)*this.maxVelocity*e,o=1;switch(t.name){case"left":o=-1;case"right":n.setScrollLeft(n.getScrollLeft()+s*o);break;case"top":o=-1;case"bottom":n.setScrollTop(n.getScrollTop()+s*o)}}computeBestEdge(t,e){let{edgeThreshold:n}=this,i=null,r=this.scrollCaches||[];for(let s of r){let r=s.clientRect,o=t-r.left,l=r.right-t,a=e-r.top,c=r.bottom-e;o>=0&&l>=0&&a>=0&&c>=0&&(a<=n&&this.everMovedUp&&s.canScrollUp()&&(!i||i.distance>a)&&(i={scrollCache:s,name:"top",distance:a}),c<=n&&this.everMovedDown&&s.canScrollDown()&&(!i||i.distance>c)&&(i={scrollCache:s,name:"bottom",distance:c}),o<=n&&this.everMovedLeft&&s.canScrollLeft()&&(!i||i.distance>o)&&(i={scrollCache:s,name:"left",distance:o}),l<=n&&this.everMovedRight&&s.canScrollRight()&&(!i||i.distance>l)&&(i={scrollCache:s,name:"right",distance:l}))}return i}buildCaches(t){return this.queryScrollEls(t).map((t=>t===window?new _l(!1):new Ol(t,!1)))}queryScrollEls(t){let e=[];for(let n of this.scrollQuery)"object"==typeof n?e.push(n):e.push(...Array.prototype.slice.call(t.getRootNode().querySelectorAll(n)));return e}}class Bl extends Jr{constructor(t,e){super(t),this.containerEl=t,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=t=>{var e;this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,(e=document.body).style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",se),document.body.addEventListener("contextmenu",se),t.isTouch||t.origEvent.preventDefault(),this.emitter.trigger("pointerdown",t),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(t.subjectEl,t.pageX,t.pageY),this.startDelay(t),this.minDistance||this.handleDistanceSurpassed(t)))},this.onPointerMove=t=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",t),!this.isDistanceSurpassed){let e,n=this.minDistance,{deltaX:i,deltaY:r}=t;e=i*i+r*r,e>=n*n&&this.handleDistanceSurpassed(t)}this.isDragging&&("scroll"!==t.origEvent.type&&(this.mirror.handleMove(t.pageX,t.pageY),this.autoScroller.handleMove(t.pageX,t.pageY)),this.emitter.trigger("dragmove",t))}},this.onPointerUp=t=>{var e;this.isInteracting&&(this.isInteracting=!1,(e=document.body).style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",se),document.body.removeEventListener("contextmenu",se),this.emitter.trigger("pointerup",t),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(t)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let n=this.pointer=new Tl(t);n.emitter.on("pointerdown",this.onPointerDown),n.emitter.on("pointermove",this.onPointerMove),n.emitter.on("pointerup",this.onPointerUp),e&&(n.selector=e),this.mirror=new Ml,this.autoScroller=new Il}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(t){"number"==typeof this.delay?this.delayTimeoutId=setTimeout((()=>{this.delayTimeoutId=null,this.handleDelayEnd(t)}),this.delay):this.handleDelayEnd(t)}handleDelayEnd(t){this.isDelayEnded=!0,this.tryStartDrag(t)}handleDistanceSurpassed(t){this.isDistanceSurpassed=!0,this.tryStartDrag(t)}tryStartDrag(t){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(t.pageX,t.pageY,this.containerEl),this.emitter.trigger("dragstart",t),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))}tryStopDrag(t){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,t))}stopDrag(t){this.isDragging=!1,this.emitter.trigger("dragend",t)}setIgnoreMove(t){this.pointer.shouldIgnoreMove=t}setMirrorIsVisible(t){this.mirror.setIsVisible(t)}setMirrorNeedsRevert(t){this.mirrorNeedsRevert=t}setAutoScrollEnabled(t){this.autoScroller.isEnabled=t}}class zl{constructor(t){this.el=t,this.origRect=zr(t),this.scrollCaches=Hr(t).map((t=>new Ol(t,!0)))}destroy(){for(let t of this.scrollCaches)t.destroy()}computeLeft(){let t=this.origRect.left;for(let e of this.scrollCaches)t+=e.origScrollLeft-e.getScrollLeft();return t}computeTop(){let t=this.origRect.top;for(let e of this.scrollCaches)t+=e.origScrollTop-e.getScrollTop();return t}isWithinClipping(t,e){let n={left:t,top:e};for(let t of this.scrollCaches)if(!Hl(t.getEventTarget())&&!xr(n,t.clientRect))return!1;return!0}}function Hl(t){let e=t.tagName;return"HTML"===e||"BODY"===e}class Pl{constructor(t,e){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=t=>{let{dragging:e}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(t),this.initialHit||!this.requireInitial?(e.setIgnoreMove(!1),this.emitter.trigger("pointerdown",t)):e.setIgnoreMove(!0)},this.handleDragStart=t=>{this.emitter.trigger("dragstart",t),this.handleMove(t,!0)},this.handleDragMove=t=>{this.emitter.trigger("dragmove",t),this.handleMove(t)},this.handlePointerUp=t=>{this.releaseHits(),this.emitter.trigger("pointerup",t)},this.handleDragEnd=t=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,t),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",t)},this.droppableStore=e,t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragstart",this.handleDragStart),t.emitter.on("dragmove",this.handleDragMove),t.emitter.on("pointerup",this.handlePointerUp),t.emitter.on("dragend",this.handleDragEnd),this.dragging=t,this.emitter=new Pi}processFirstCoord(t){let e,n={left:t.pageX,top:t.pageY},i=n,r=t.subjectEl;var s,o;r instanceof HTMLElement&&(e=zr(r),s=i,o=e,i={left:Math.min(Math.max(s.left,o.left),o.right),top:Math.min(Math.max(s.top,o.top),o.bottom)});let l=this.initialHit=this.queryHitForOffset(i.left,i.top);if(l){if(this.useSubjectCenter&&e){let t=kr(e,l.rect);t&&(i=function(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}(t))}this.coordAdjust={left:(a=i).left-(c=n).left,top:a.top-c.top}}else this.coordAdjust={left:0,top:0};var a,c}handleMove(t,e){let n=this.queryHitForOffset(t.pageX+this.coordAdjust.left,t.pageY+this.coordAdjust.top);!e&&Gl(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,t))}prepareHits(){this.offsetTrackers=Sn(this.droppableStore,(t=>(t.component.prepareHits(),new zl(t.el))))}releaseHits(){let{offsetTrackers:t}=this;for(let e in t)t[e].destroy();this.offsetTrackers={}}queryHitForOffset(t,e){let{droppableStore:n,offsetTrackers:i}=this,r=null;for(let s in n){let o=n[s].component,l=i[s];if(l&&l.isWithinClipping(t,e)){let n=l.computeLeft(),i=l.computeTop(),a=t-n,c=e-i,{origRect:u}=l,d=u.right-u.left,h=u.bottom-u.top;if(a>=0&&a<d&&c>=0&&c<h){let t=o.queryHit(a,c,d,h);t&&ri(t.dateProfile.activeRange,t.dateSpan.range)&&(this.disablePointCheck||l.el.contains(l.el.getRootNode().elementFromPoint(a+n-window.scrollX,c+i-window.scrollY)))&&(!r||t.layer>r.layer)&&(t.componentId=s,t.context=o.context,t.rect.left+=n,t.rect.right+=n,t.rect.top+=i,t.rect.bottom+=i,r=t)}}}return r}}function Gl(t,e){return!t&&!e||Boolean(t)===Boolean(e)&&(s=(i=e.dateSpan).range,(null===(r=(n=t.dateSpan).range).start?null:r.start.valueOf())===(null===s.start?null:s.start.valueOf())&&(null===r.end?null:r.end.valueOf())===(null===s.end?null:s.end.valueOf())&&n.allDay===i.allDay&&function(t,e){for(let n in e)if("range"!==n&&"allDay"!==n&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}(n,i));var n,i,r,s}function Ul(t,e){let n={};for(let i of e.pluginHooks.datePointTransforms)Object.assign(n,i(t,e));var i,r;return Object.assign(n,{date:(r=e.dateEnv).toDate((i=t).range.start),dateStr:r.formatIso(i.range.start,{omitTime:i.allDay}),allDay:i.allDay}),n}class Ql extends yr{constructor(t){super(t),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=t=>{let e=t.origEvent.target,{component:n,dragging:i}=this,{mirror:r}=i,{options:s}=n.context,o=n.context;this.subjectEl=t.subjectEl;let l=this.subjectSeg=Ki(t.subjectEl),a=(this.eventRange=l.eventRange).instance.instanceId;this.relevantEvents=xi(o.getCurrentData().eventStore,a),i.minDistance=t.isTouch?0:s.eventDragMinDistance,i.delay=t.isTouch&&a!==n.props.eventSelection?function(t){let{options:e}=t.context,n=e.eventLongPressDelay;return null==n&&(n=e.longPressDelay),n}(n):null,r.parentNode=s.fixedMirrorParent?s.fixedMirrorParent:Jt(e,".fc"),r.revertDuration=s.dragRevertDuration;let c=n.isValidSegDownEl(e)&&!Jt(e,".fc-event-resizer");i.setIgnoreMove(!c),this.isDragging=c&&t.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=t=>{let e=this.component.context,n=this.eventRange,i=n.instance.instanceId;t.isTouch?i!==this.component.props.eventSelection&&e.dispatch({type:"SELECT_EVENT",eventInstanceId:i}):e.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(e.calendarApi.unselect(t),e.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new $i(e,n.def,n.instance),jsEvent:t.origEvent,view:e.viewApi}))},this.handleHitUpdate=(t,e)=>{if(!this.isDragging)return;let n=this.relevantEvents,i=this.hitDragging.initialHit,r=this.component.context,s=null,o=null,l=null,a=!1,c={affectedEvents:n,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(t){s=t.context;let e=s.options;r===s||e.editable&&e.droppable?(o=function(t,e,n,i){let r=t.dateSpan,s=e.dateSpan,o=r.range.start,l=s.range.start,a={};r.allDay!==s.allDay&&(a.allDay=s.allDay,a.hasEnd=e.context.options.allDayMaintainDuration,o=s.allDay?Be(n):n);let c=ai(o,l,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);c.milliseconds&&(a.allDay=!1);let u={datesDelta:c,standardProps:a};for(let n of i)n(u,t,e);return u}(i,t,this.eventRange.instance.range.start,s.getCurrentData().pluginHooks.eventDragMutationMassagers),o&&(l=Vi(n,s.getCurrentData().eventUiBases,o,s),c.mutatedEvents=l,hs(c,t.dateProfile,s)||(a=!0,o=null,l=null,c.mutatedEvents={defs:{},instances:{}}))):s=null}this.displayDrag(s,c),a?he():fe(),e||(r===s&&Gl(i,t)&&(o=null),this.dragging.setMirrorNeedsRevert(!o),this.dragging.setMirrorIsVisible(!t||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=s,this.validMutation=o,this.mutatedRelevantEvents=l)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=t=>{if(this.isDragging){let e=this.component.context,n=e.viewApi,{receivingContext:i,validMutation:r}=this,s=this.eventRange.def,o=this.eventRange.instance,l=new $i(e,s,o),a=this.relevantEvents,c=this.mutatedRelevantEvents,{finalHit:u}=this.hitDragging;if(this.clearDrag(),e.emitter.trigger("eventDragStop",{el:this.subjectEl,event:l,jsEvent:t.origEvent,view:n}),r){if(i===e){let i=new $i(e,c.defs[s.defId],o?c.instances[o.instanceId]:null);e.dispatch({type:"MERGE_EVENTS",eventStore:c});let u={oldEvent:l,event:i,relatedEvents:Zi(c,e,o),revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:a})}},d={};for(let t of e.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(d,t(r,e));e.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},u),d),{el:t.subjectEl,delta:r.datesDelta,jsEvent:t.origEvent,view:n})),e.emitter.trigger("eventChange",u)}else if(i){let r={event:l,relatedEvents:Zi(a,e,o),revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:a})}};e.emitter.trigger("eventLeave",Object.assign(Object.assign({},r),{draggedEl:t.subjectEl,view:n})),e.dispatch({type:"REMOVE_EVENTS",eventStore:a}),e.emitter.trigger("eventRemove",r);let d=c.instances[o.instanceId],h=new $i(i,c.defs[s.defId],d);i.dispatch({type:"MERGE_EVENTS",eventStore:c});let f={event:h,relatedEvents:Zi(c,i,d),revert(){i.dispatch({type:"REMOVE_EVENTS",eventStore:c})}};i.emitter.trigger("eventAdd",f),t.isTouch&&i.dispatch({type:"SELECT_EVENT",eventInstanceId:o.instanceId}),i.emitter.trigger("drop",Object.assign(Object.assign({},Ul(u.dateSpan,i)),{draggedEl:t.subjectEl,jsEvent:t.origEvent,view:u.context.viewApi})),i.emitter.trigger("eventReceive",Object.assign(Object.assign({},f),{draggedEl:t.subjectEl,view:u.context.viewApi}))}}else e.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:e}=this,{options:n}=e.context,i=this.dragging=new Bl(t.el);i.pointer.selector=Ql.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=n.dragScroll;let r=this.hitDragging=new Pl(this.dragging,wr);r.useSubjectCenter=t.useEventCenter,r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("pointerup",this.handlePointerUp),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(t,e){let n=this.receivingContext;n&&n!==t&&n.dispatch(n===this.component.context?{type:"SET_EVENT_DRAG",state:{affectedEvents:e.affectedEvents,mutatedEvents:{defs:{},instances:{}},isEvent:!0}}:{type:"UNSET_EVENT_DRAG"}),t&&t.dispatch({type:"SET_EVENT_DRAG",state:e})}clearDrag(){let t=this.component.context,{receivingContext:e}=this;e&&e.dispatch({type:"UNSET_EVENT_DRAG"}),t!==e&&t.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}}Ql.SELECTOR=".fc-event-draggable, .fc-event-resizable";const Ll={fixedMirrorParent:wn},Vl={dateClick:wn,eventDragStart:wn,eventDragStop:wn,eventDrop:wn,eventResizeStart:wn,eventResizeStop:wn,eventResize:wn,drop:wn,eventReceive:wn,eventLeave:wn};Xr.dataAttrPrefix="";var Wl=ro({name:"@fullcalendar/interaction",componentInteractions:[class extends yr{constructor(t){super(t),this.handlePointerDown=t=>{let{dragging:e}=this;e.setIgnoreMove(!this.component.isValidDateDownEl(t.origEvent.target))},this.handleDragEnd=t=>{let{component:e}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:i}=this.hitDragging;if(n&&i&&Gl(n,i)){let{context:i}=e,r=Object.assign(Object.assign({},Ul(n.dateSpan,i)),{dayEl:n.dayEl,jsEvent:t.origEvent,view:i.viewApi||i.calendarApi.view});i.emitter.trigger("dateClick",r)}}},this.dragging=new Bl(t.el),this.dragging.autoScroller.isEnabled=!1;let e=this.hitDragging=new Pl(this.dragging,Ar(t));e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}},class extends yr{constructor(t){super(t),this.dragSelection=null,this.handlePointerDown=t=>{let{component:e,dragging:n}=this,{options:i}=e.context,r=i.selectable&&e.isValidDateDownEl(t.origEvent.target);n.setIgnoreMove(!r),n.delay=t.isTouch?function(t){let{options:e}=t.context,n=e.selectLongPressDelay;return null==n&&(n=e.longPressDelay),n}(e):null},this.handleDragStart=t=>{this.component.context.calendarApi.unselect(t)},this.handleHitUpdate=(t,e)=>{let{context:n}=this.component,i=null,r=!1;if(t){let e=this.hitDragging.initialHit;t.componentId===e.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(e,t)||(i=function(t,e,n){let i=t.dateSpan,r=e.dateSpan,s=[i.range.start,i.range.end,r.range.start,r.range.end];s.sort(me);let o={};for(let i of n){let n=i(t,e);if(!1===n)return null;n&&Object.assign(o,n)}return o.range={start:s[0],end:s[3]},o.allDay=i.allDay,o}(e,t,n.pluginHooks.dateSelectionTransformers)),i&&function(t,e,n){return!!ri(e.validRange,t.range)&&fs({dateSelection:t},n)}(i,t.dateProfile,n)||(r=!0,i=null)}i?n.dispatch({type:"SELECT_DATES",selection:i}):e||n.dispatch({type:"UNSELECT_DATES"}),r?he():fe(),e||(this.dragSelection=i)},this.handlePointerUp=t=>{this.dragSelection&&(Ui(this.dragSelection,t,this.component.context),this.dragSelection=null)};let{component:e}=t,{options:n}=e.context,i=this.dragging=new Bl(t.el);i.touchScrollAllowed=!1,i.minDistance=n.selectMinDistance||0,i.autoScroller.isEnabled=n.dragScroll;let r=this.hitDragging=new Pl(this.dragging,Ar(t));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}},Ql,class extends yr{constructor(t){super(t),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=t=>{let{component:e}=this,n=Ki(this.querySegEl(t)),i=this.eventRange=n.eventRange;this.dragging.minDistance=e.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(t.origEvent.target)||t.isTouch&&this.component.props.eventSelection!==i.instance.instanceId)},this.handleDragStart=t=>{let{context:e}=this.component,n=this.eventRange;this.relevantEvents=xi(e.getCurrentData().eventStore,this.eventRange.instance.instanceId);let i=this.querySegEl(t);this.draggingSegEl=i,this.draggingSeg=Ki(i),e.calendarApi.unselect(),e.emitter.trigger("eventResizeStart",{el:i,event:new $i(e,n.def,n.instance),jsEvent:t.origEvent,view:e.viewApi})},this.handleHitUpdate=(t,e,n)=>{let{context:i}=this.component,r=this.relevantEvents,s=this.hitDragging.initialHit,o=this.eventRange.instance,l=null,a=null,c=!1,u={affectedEvents:r,mutatedEvents:{defs:{},instances:{}},isEvent:!0};t&&(t.componentId===s.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(s,t)||(l=function(t,e,n,i){let r=t.context.dateEnv,s=ai(t.dateSpan.range.start,e.dateSpan.range.start,r,t.largeUnit);if(n){if(r.add(i.start,s)<i.end)return{startDelta:s}}else if(r.add(i.end,s)>i.start)return{endDelta:s};return null}(s,t,n.subjectEl.classList.contains("fc-event-resizer-start"),o.range))),l&&(a=Vi(r,i.getCurrentData().eventUiBases,l,i),u.mutatedEvents=a,hs(u,t.dateProfile,i)||(c=!0,l=null,a=null,u.mutatedEvents=null)),i.dispatch(a?{type:"SET_EVENT_RESIZE",state:u}:{type:"UNSET_EVENT_RESIZE"}),c?he():fe(),e||(l&&Gl(s,t)&&(l=null),this.validMutation=l,this.mutatedRelevantEvents=a)},this.handleDragEnd=t=>{let{context:e}=this.component,n=this.eventRange.def,i=this.eventRange.instance,r=new $i(e,n,i),s=this.relevantEvents,o=this.mutatedRelevantEvents;if(e.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:r,jsEvent:t.origEvent,view:e.viewApi}),this.validMutation){let l=new $i(e,o.defs[n.defId],i?o.instances[i.instanceId]:null);e.dispatch({type:"MERGE_EVENTS",eventStore:o});let a={oldEvent:r,event:l,relatedEvents:Zi(o,e,i),revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:s})}};e.emitter.trigger("eventResize",Object.assign(Object.assign({},a),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||Ee(0),endDelta:this.validMutation.endDelta||Ee(0),jsEvent:t.origEvent,view:e.viewApi})),e.emitter.trigger("eventChange",a)}else e.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:e}=t,n=this.dragging=new Bl(t.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=e.context.options.dragScroll;let i=this.hitDragging=new Pl(this.dragging,Ar(t));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(t){return Jt(t.subjectEl,".fc-event")}}],calendarInteractions:[class{constructor(t){this.context=t,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=t=>{t.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=t=>{let e=this.context.options.unselectCancel,n=ne(t.origEvent);this.matchesCancel=!!Jt(n,e),this.matchesEvent=!!Jt(n,Ql.SELECTOR)},this.onDocumentPointerUp=t=>{let{context:e}=this,{documentPointer:n}=this,i=e.getCurrentData();if(!n.wasTouchScroll){if(i.dateSelection&&!this.isRecentPointerDateSelect){let n=e.options.unselectAuto;!n||n&&this.matchesCancel||e.calendarApi.unselect(t)}i.eventSelection&&!this.matchesEvent&&e.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let e=this.documentPointer=new Tl(document);e.shouldIgnoreMove=!0,e.shouldWatchScroll=!1,e.emitter.on("pointerdown",this.onDocumentPointerDown),e.emitter.on("pointerup",this.onDocumentPointerUp),t.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}],elementDraggingImpl:Bl,optionRefiners:Ll,listenerRefiners:Vl});class Fl extends Ln{constructor(){super(...arguments),this.state={textId:re()}}render(){let{theme:t,dateEnv:e,options:n,viewApi:i}=this.context,{cellId:r,dayDate:s,todayRange:o}=this.props,{textId:l}=this.state,a=Tr(s,o),c=n.listDayFormat?e.format(s,n.listDayFormat):"",u=n.listDaySideFormat?e.format(s,n.listDaySideFormat):"",d=Object.assign({date:e.toDate(s),view:i,textId:l,text:c,sideText:u,navLinkAttrs:Or(this.context,s),sideNavLinkAttrs:Or(this.context,s,"day",!1)},a);return _(Zn,{elTag:"tr",elClasses:["fc-list-day",...Nr(a,t)],elAttrs:{"data-date":Fe(s)},renderProps:d,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:Yl,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(e=>_("th",{scope:"colgroup",colSpan:3,id:r,"aria-labelledby":l},_(e,{elTag:"div",elClasses:["fc-list-day-cushion",t.getClass("tableCellShaded")]}))))}}function Yl(t){return _(I,null,t.text&&_("a",Object.assign({id:t.textId,className:"fc-list-day-text"},t.navLinkAttrs),t.text),t.sideText&&_("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},t.sideNavLinkAttrs),t.sideText))}const $l=un({hour:"numeric",minute:"2-digit",meridiem:"short"});class ql extends Ln{render(){let{props:t,context:e}=this,{options:n}=e,{seg:i,timeHeaderId:r,eventHeaderId:s,dateHeaderId:o}=t,l=n.eventTimeFormat||$l;return _(Rs,Object.assign({},t,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>function(t,e){let n=dr(t,e);return _("a",Object.assign({},n),t.eventRange.def.title)}(i,e),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),((t,n)=>_(I,null,function(t,e,n,i,r){let{options:s}=n;if(!1!==s.displayEventTime){let o,l=t.eventRange.instance,a=!1;return t.eventRange.def.allDay?a=!0:function(t){let e=li(t);return je(e.start,e.end)>1}(t.eventRange.range)?t.isStart?o=lr(t,e,n,null,null,l.range.start,t.end):t.isEnd?o=lr(t,e,n,null,null,t.start,l.range.end):a=!0:o=lr(t,e,n),a?_(Zn,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${i} ${r}`},renderProps:{text:n.options.allDayText,view:n.viewApi},generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:Zl,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount}):_("td",{className:"fc-list-event-time"},o)}return null}(i,l,e,r,o),_("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},_("span",{className:"fc-list-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}})),_(t,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${s} ${o}`}}))))}}function Zl(t){return t.text}function Jl(t){return t.text}function Xl(t){let e=Be(t.renderRange.start),n=t.renderRange.end,i=[],r=[];for(;e<n;)i.push(e),r.push({start:e,end:Oe(e,1)}),e=Oe(e,1);return{dayDates:i,dayRanges:r}}function Kl(t){return!1===t?null:un(t)}Wt(':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}');var ta=ro({name:"@fullcalendar/list",optionRefiners:{listDayFormat:Kl,listDaySideFormat:Kl,noEventsClassNames:wn,noEventsContent:wn,noEventsDidMount:wn,noEventsWillUnmount:wn},views:{list:{component:class extends Vr{constructor(){super(...arguments),this.computeDateVars=$e(Xl),this.eventStoreToSegs=$e(this._eventStoreToSegs),this.state={timeHeaderId:re(),eventHeaderId:re(),dateHeaderIdRoot:re()},this.setRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:t,context:e}=this,{dayDates:n,dayRanges:i}=this.computeDateVars(t.dateProfile),r=this.eventStoreToSegs(t.eventStore,t.eventUiBases,i);return _(Xn,{elRef:this.setRootEl,elClasses:["fc-list",e.theme.getClass("table"),!1!==e.options.stickyHeaderDates?"fc-list-sticky":""],viewSpec:e.viewSpec},_(As,{liquid:!t.isHeightAuto,overflowX:t.isHeightAuto?"visible":"hidden",overflowY:t.isHeightAuto?"visible":"auto"},r.length>0?this.renderSegList(r,n):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:t,viewApi:e}=this.context;return _(Zn,{elTag:"div",elClasses:["fc-list-empty"],renderProps:{text:t.noEventsText,view:e},generatorName:"noEventsContent",customGenerator:t.noEventsContent,defaultGenerator:Jl,classNameGenerator:t.noEventsClassNames,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},(t=>_(t,{elTag:"div",elClasses:["fc-list-empty-cushion"]})))}renderSegList(t,e){let{theme:n,options:i}=this.context,{timeHeaderId:r,eventHeaderId:s,dateHeaderIdRoot:o}=this.state,l=function(t){let e,n,i=[];for(e=0;e<t.length;e+=1)n=t[e],(i[n.dayIndex]||(i[n.dayIndex]=[])).push(n);return i}(t);return _(rs,{unit:"day"},((t,a)=>{let c=[];for(let n=0;n<l.length;n+=1){let u=l[n];if(u){let l=Fe(e[n]),d=o+"-"+l;c.push(_(Fl,{key:l,cellId:d,dayDate:e[n],todayRange:a})),u=nr(u,i.eventOrder);for(let e of u)c.push(_(ql,Object.assign({key:l+":"+e.eventRange.instance.instanceId,seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:r,eventHeaderId:s,dateHeaderId:d},ar(e,a,t))))}}return _("table",{className:"fc-list-table "+n.getClass("table")},_("thead",null,_("tr",null,_("th",{scope:"col",id:r},i.timeHint),_("th",{scope:"col","aria-hidden":!0}),_("th",{scope:"col",id:s},i.eventHint))),_("tbody",null,c))}))}_eventStoreToSegs(t,e,n){return this.eventRangesToSegs(Ji(t,e,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(t,e){let n=[];for(let i of t)n.push(...this.eventRangeToSegs(i,e));return n}eventRangeToSegs(t,e){let n,i,r,{dateEnv:s}=this.context,{nextDayThreshold:o}=this.context.options,l=t.range,a=t.def.allDay,c=[];for(n=0;n<e.length;n+=1)if(i=ni(l,e[n]),i&&(r={component:this,eventRange:t,start:i.start,end:i.end,isStart:t.isStart&&i.start.valueOf()===l.start.valueOf(),isEnd:t.isEnd&&i.end.valueOf()===l.end.valueOf(),dayIndex:n},c.push(r),!r.isEnd&&!a&&n+1<e.length&&l.end<s.add(e[n+1].start,o))){r.end=l.end,r.isEnd=!0;break}return c}},buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});class ea extends Dr{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(t){return t.allDay?["allDay"]:["timed"]}getKeysForEventDef(t){return t.allDay?"background"===(e=t).ui.display||"inverse-background"===e.ui.display?["timed","allDay"]:["allDay"]:["timed"];var e}}const na=un({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function ia(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return _(Gn.Consumer,null,(n=>{if(!t.isLabeled)return _("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:i,options:r,viewApi:s}=n,o=null==r.slotLabelFormat?na:Array.isArray(r.slotLabelFormat)?un(r.slotLabelFormat[0]):un(r.slotLabelFormat),l={level:0,time:t.time,date:i.toDate(t.date),view:s,text:i.format(t.date,o)};return _(Zn,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:l,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:ra,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},(t=>_("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},_(t,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]}))))}))}function ra(t){return t.text}class sa extends Ln{render(){return this.props.slatMetas.map((t=>_("tr",{key:t.key},_(ia,Object.assign({},t)))))}}const oa=un({week:"short"});class la extends Vr{constructor(){super(...arguments),this.allDaySplitter=new ea,this.headerElRef={current:null},this.rootElRef={current:null},this.scrollerElRef={current:null},this.state={slatCoords:null},this.handleScrollTopRequest=t=>{let e=this.scrollerElRef.current;e&&(e.scrollTop=t)},this.renderHeadAxis=(t,e="")=>{let{options:n}=this.context,{dateProfile:i}=this.props,r=i.renderRange,s=1===je(r.start,r.end)?Or(this.context,r.start,"week"):{};return n.weekNumbers&&"day"===t?_(Qs,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:r.start,defaultFormat:oa},(t=>_("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:e}},_(t,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s})))):_("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},_("div",{className:"fc-timegrid-axis-frame",style:{height:e}}))},this.renderTableRowAxis=t=>{let{options:e,viewApi:n}=this.context;return _(Zn,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:{text:e.allDayText,view:n},generatorName:"allDayContent",customGenerator:e.allDayContent,defaultGenerator:aa,classNameGenerator:e.allDayClassNames,didMount:e.allDayDidMount,willUnmount:e.allDayWillUnmount},(e=>_("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==t?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:t}},_(e,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]}))))},this.handleSlatCoords=t=>{this.setState({slatCoords:t})}}renderSimpleLayout(t,e,n){let{context:i,props:r}=this,s=[],o=Ts(i.options);return t&&s.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),e&&(s.push({type:"body",key:"all-day",chunk:{content:e}}),s.push({type:"body",key:"all-day-divider",outerContent:_("tr",{role:"presentation",className:"fc-scrollgrid-section"},_("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),s.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(i.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),_(Xn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},_(Ms,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[{width:"shrink"}],sections:s}))}renderHScrollLayout(t,e,n,i,r,s,o){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{context:a,props:c}=this,u=!c.forPrint&&Ts(a.options),d=!c.forPrint&&Ns(a.options),h=[];t&&h.push({type:"header",key:"header",isSticky:u,syncRowHeights:!0,chunks:[{key:"axis",rowContent:t=>_("tr",{role:"presentation"},this.renderHeadAxis("day",t.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),e&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:t=>_("tr",{role:"presentation"},this.renderTableRowAxis(t.rowSyncHeights[0]))},{key:"cols",content:e}]}),h.push({key:"all-day-divider",type:"body",outerContent:_("tr",{role:"presentation",className:"fc-scrollgrid-section"},_("td",{colSpan:2,className:"fc-timegrid-divider "+a.theme.getClass("tableCellShaded")}))}));let f=a.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(a.options.expandRows),chunks:[{key:"axis",content:t=>_("div",{className:"fc-timegrid-axis-chunk"},_("table",{"aria-hidden":!0,style:{height:t.expandRows?t.clientHeight:""}},t.tableColGroupNode,_("tbody",null,_(sa,{slatMetas:s}))),_("div",{className:"fc-timegrid-now-indicator-container"},_(rs,{unit:f?"minute":"day"},(t=>{let e=f&&o&&o.safeComputeTop(t);return"number"==typeof e?_(js,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:e},isAxis:!0,date:t}):null}))))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),d&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Cs},{key:"cols",content:Cs}]}),_(Xn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:a.viewSpec},_(l,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:r}]}],sections:h}))}getAllDayMaxEventProps(){let{dayMaxEvents:t,dayMaxEventRows:e}=this.context.options;return!0!==t&&!0!==e||(t=void 0,e=5),{dayMaxEvents:t,dayMaxEventRows:e}}}function aa(t){return t.text}class ca{constructor(t,e,n){this.positions=t,this.dateProfile=e,this.slotDuration=n}safeComputeTop(t){let{dateProfile:e}=this;if(si(e.currentRange,t)){let n=Be(t),i=t.valueOf()-n.valueOf();if(i>=De(e.slotMinTime)&&i<De(e.slotMaxTime))return this.computeTimeTop(Ee(i))}return null}computeDateTop(t,e){return e||(e=Be(t)),this.computeTimeTop(Ee(t.valueOf()-e.valueOf()))}computeTimeTop(t){let e,n,{positions:i,dateProfile:r}=this,s=i.els.length,o=(t.milliseconds-De(r.slotMinTime))/De(this.slotDuration);return o=Math.max(0,o),o=Math.min(s,o),e=Math.floor(o),e=Math.min(e,s-1),n=o-e,i.tops[e]+i.getHeight(e)*n}}class ua extends Ln{render(){let{props:t,context:e}=this,{options:n}=e,{slatElRefs:i}=t;return _("tbody",null,t.slatMetas.map((r=>{let s={time:r.time,date:e.dateEnv.toDate(r.date),view:e.viewApi};return _("tr",{key:r.key,ref:i.createRef(r.key)},t.axis&&_(ia,Object.assign({},r)),_(Zn,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!r.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":r.isoTimeStr},renderProps:s,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))})))}}class da extends Ln{constructor(){super(...arguments),this.rootElRef={current:null},this.slatElRefs=new ws}render(){let{props:t,context:e}=this;return _("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},_("table",{"aria-hidden":!0,className:e.theme.getClass("table"),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,_(ua,{slatElRefs:this.slatElRefs,axis:t.axis,slatMetas:t.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:t,props:e}=this;var n;e.onCoords&&null!==e.clientWidth&&this.rootElRef.current.offsetHeight&&e.onCoords(new ca(new Pr(this.rootElRef.current,(n=this.slatElRefs.currentMap,e.slatMetas.map((t=>n[t.key]))),!1,!0),this.props.dateProfile,t.options.slotDuration))}}function ha(t,e){let n,i=[];for(n=0;n<e;n+=1)i.push([]);if(t)for(n=0;n<t.length;n+=1)i[t[n].col].push(t[n]);return i}function fa(t,e){let n=[];if(t){for(let i=0;i<e;i+=1)n[i]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let e of t.segs)n[e.col].segs.push(e)}else for(let t=0;t<e;t+=1)n[t]=null;return n}class pa extends Ln{render(){let{props:t}=this;return _(Fs,{elClasses:["fc-timegrid-more-link"],elStyle:{top:t.top,bottom:t.bottom},allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:()=>ka(t.hiddenSegs,t),defaultGenerator:ga,forceTimed:!0},(t=>_(t,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]})))}}function ga(t){return t.shortText}function va(t,e){if(!t)return[[],0];let{level:n,lateralStart:i,lateralEnd:r}=t,s=i,o=[];for(;s<r;)o.push(e(n,s)),s+=1;return o.sort(ma),[o.map(ba),o[0][1]]}function ma(t,e){return e[1]-t[1]}function ba(t){return t[0]}function ya(t,e){const n={};return(...i)=>{let r=t(...i);return r in n?n[r]:n[r]=e(...i)}}function Aa(t,e,n=null,i=0){let r=[];if(n)for(let s=0;s<t.length;s+=1){let o=t[s],l=n.computeDateTop(o.start,e),a=Math.max(l+(i||0),n.computeDateTop(o.end,e));r.push({start:Math.round(l),end:Math.round(a)})}return r}const wa=un({hour:"numeric",minute:"2-digit",meridiem:!1});class Ea extends Ln{render(){return _(Os,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:wa}))}}class xa extends Ln{constructor(){super(...arguments),this.sortEventSegs=$e(nr)}render(){let{props:t,context:e}=this,{options:n}=e,i=n.selectMirror,r=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||i&&t.dateSelectionSegs||[],s=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},o=this.sortEventSegs(t.fgEventSegs,n.eventOrder);return _(Bs,{elTag:"td",elRef:t.elRef,elClasses:["fc-timegrid-col",...t.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},t.extraDataAttrs),date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraRenderProps:t.extraRenderProps},(e=>_("div",{className:"fc-timegrid-col-frame"},_("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(t.businessHourSegs,"non-business"),this.renderFillSegs(t.bgEventSegs,"bg-event"),this.renderFillSegs(t.dateSelectionSegs,"highlight")),_("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,s,!1,!1,!1)),_("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(r,{},Boolean(t.eventDrag),Boolean(t.eventResize),Boolean(i),"mirror")),_("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(t.nowIndicatorSegs)),zs(n)&&_(e,{elTag:"div",elClasses:["fc-timegrid-col-misc"]}))))}renderFgSegs(t,e,n,i,r,s){let{props:o}=this;return o.forPrint?ka(t,o):this.renderPositionedFgSegs(t,e,n,i,r,s)}renderPositionedFgSegs(t,e,n,i,r,s){let{eventMaxStack:o,eventShortHeight:l,eventOrderStrict:a,eventMinHeight:c}=this.context.options,{date:u,slatCoords:d,eventSelection:h,todayRange:f,nowDate:p}=this.props,g=n||i||r,v=Aa(t,u,d,c),{segPlacements:m,hiddenGroups:b}=function(t,e,n,i){let r=[],s=[];for(let n=0;n<t.length;n+=1){let i=e[n];i?r.push({index:n,thickness:1,span:i}):s.push(t[n])}let{segRects:o,hiddenGroups:l}=function(t,e,n){let i=new Wr;null!=e&&(i.strictOrder=e),null!=n&&(i.maxStackCnt=n);let r=function(t){let e=[];for(let r of t){let t=[],s={span:r.span,entries:[r]};for(let r of e)$r(r.span,s.span)?s={entries:r.entries.concat(s.entries),span:(n=r.span,i=s.span,{start:Math.min(n.start,i.start),end:Math.max(n.end,i.end)})}:t.push(r);t.push(s),e=t}var n,i;return e}(i.addSegs(t)),s=function(t){const{entriesByLevel:e}=t,n=ya(((t,e)=>t+":"+e),((i,r)=>{let s=function(t,e,n){let{levelCoords:i,entriesByLevel:r}=t,s=r[e][n],o=i[e]+s.thickness,l=i.length,a=e;for(;a<l&&i[a]<o;a+=1);for(;a<l;a+=1){let t,e=r[a],n=Zr(e,s.span.start,Fr),i=n[0]+n[1],o=i;for(;(t=e[o])&&t.span.start<s.span.end;)o+=1;if(i<o)return{level:a,lateralStart:i,lateralEnd:o}}return null}(t,i,r),o=va(s,n),l=e[i][r];return[Object.assign(Object.assign({},l),{nextLevelNodes:o[0]}),l.thickness+o[1]]}));return va(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}(i);return s=function(t){const e=ya((t=>Yr(t)),((t,n,i)=>{let r,{nextLevelNodes:s,thickness:o}=t,l=o+i,a=o/l,c=[];if(s.length)for(let t of s)if(void 0===r){let i=e(t,n,l);r=i[0],c.push(i[1])}else{let n=e(t,r,0);c.push(n[1])}else r=1;let u=(r-n)*a;return[r-u,Object.assign(Object.assign({},t),{thickness:u,nextLevelNodes:c})]}));return t.map((t=>e(t,0,0)[1]))}(s),{segRects:function(t){let e=[];const n=ya((t=>Yr(t)),((t,n,r)=>{let s=Object.assign(Object.assign({},t),{levelCoord:n,stackDepth:r,stackForward:0});return e.push(s),s.stackForward=i(t.nextLevelNodes,n+t.thickness,r+1)+1}));function i(t,e,i){let r=0;for(let s of t)r=Math.max(n(s,e,i),r);return r}return i(t,0,0),e}(s),hiddenGroups:r}}(r,n,i),a=[];for(let e of o)a.push({seg:t[e.index],rect:e});for(let t of s)a.push({seg:t,rect:null});return{segPlacements:a,hiddenGroups:l}}(t,v,a,o);return _(I,null,this.renderHiddenGroups(b,t),m.map((t=>{let{seg:o,rect:a}=t,c=o.eventRange.instance.instanceId,u=g||Boolean(!e[c]&&a),d=Sa(a&&a.span),v=!g&&a?this.computeSegHStyle(a):{left:0,right:0},m=Boolean(a)&&a.stackForward>0,b=Boolean(a)&&a.span.end-a.span.start<l;return _("div",{className:"fc-timegrid-event-harness"+(m?" fc-timegrid-event-harness-inset":""),key:s||c,style:Object.assign(Object.assign({visibility:u?"":"hidden"},d),v)},_(Ea,Object.assign({seg:o,isDragging:n,isResizing:i,isDateSelecting:r,isSelected:c===h,isShort:b},ar(o,f,p))))})))}renderHiddenGroups(t,e){let{extraDateSpan:n,dateProfile:i,todayRange:r,nowDate:s,eventSelection:o,eventDrag:l,eventResize:a}=this.props;return _(I,null,t.map((t=>{let c=Sa(t.span),u=(d=e,t.entries.map((t=>d[t.index])));var d;return _(pa,{key:We(qs(u)),hiddenSegs:u,top:c.top,bottom:c.bottom,extraDateSpan:n,dateProfile:i,todayRange:r,nowDate:s,eventSelection:o,eventDrag:l,eventResize:a})})))}renderFillSegs(t,e){let{props:n,context:i}=this,r=Aa(t,n.date,n.slatCoords,i.options.eventMinHeight).map(((i,r)=>{let s=t[r];return _("div",{key:ur(s.eventRange),className:"fc-timegrid-bg-harness",style:Sa(i)},"bg-event"===e?_(Ps,Object.assign({seg:s},ar(s,n.todayRange,n.nowDate))):Us(e))}));return _(I,null,r)}renderNowIndicator(t){let{slatCoords:e,date:n}=this.props;return e?t.map(((t,i)=>_(js,{key:i,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:e.computeDateTop(t.start,n)},isAxis:!1,date:n}))):null}computeSegHStyle(t){let e,n,{isRtl:i,options:r}=this.context,s=r.slotEventOverlap,o=t.levelCoord,l=t.levelCoord+t.thickness;s&&(l=Math.min(1,o+2*(l-o))),i?(e=1-l,n=o):(e=o,n=1-l);let a={zIndex:t.stackDepth+1,left:100*e+"%",right:100*n+"%"};return s&&!t.stackForward&&(a[i?"marginLeft":"marginRight"]=20),a}}function ka(t,{todayRange:e,nowDate:n,eventSelection:i,eventDrag:r,eventResize:s}){let o=(r?r.affectedInstances:null)||(s?s.affectedInstances:null)||{};return _(I,null,t.map((t=>{let r=t.eventRange.instance.instanceId;return _("div",{key:r,style:{visibility:o[r]?"hidden":""}},_(Ea,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===i,isShort:!1},ar(t,e,n))))})))}function Sa(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}class Da extends Ln{constructor(){super(...arguments),this.splitFgEventSegs=$e(ha),this.splitBgEventSegs=$e(ha),this.splitBusinessHourSegs=$e(ha),this.splitNowIndicatorSegs=$e(ha),this.splitDateSelectionSegs=$e(ha),this.splitEventDrag=$e(fa),this.splitEventResize=$e(fa),this.rootElRef={current:null},this.cellElRefs=new ws}render(){let{props:t,context:e}=this,n=e.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),i=t.cells.length,r=this.splitFgEventSegs(t.fgEventSegs,i),s=this.splitBgEventSegs(t.bgEventSegs,i),o=this.splitBusinessHourSegs(t.businessHourSegs,i),l=this.splitNowIndicatorSegs(t.nowIndicatorSegs,i),a=this.splitDateSelectionSegs(t.dateSelectionSegs,i),c=this.splitEventDrag(t.eventDrag,i),u=this.splitEventResize(t.eventResize,i);return _("div",{className:"fc-timegrid-cols",ref:this.rootElRef},_("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,_("tbody",{role:"presentation"},_("tr",{role:"row"},t.axis&&_("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},_("div",{className:"fc-timegrid-col-frame"},_("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&_(js,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:!0,date:t.nowDate})))),t.cells.map(((e,n)=>_(xa,{key:e.key,elRef:this.cellElRefs.createRef(e.key),dateProfile:t.dateProfile,date:e.date,nowDate:t.nowDate,todayRange:t.todayRange,extraRenderProps:e.extraRenderProps,extraDataAttrs:e.extraDataAttrs,extraClassNames:e.extraClassNames,extraDateSpan:e.extraDateSpan,fgEventSegs:r[n],bgEventSegs:s[n],businessHourSegs:o[n],nowIndicatorSegs:l[n],dateSelectionSegs:a[n],eventDrag:c[n],eventResize:u[n],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint})))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:t}=this;var e;t.onColCoords&&null!==t.clientWidth&&t.onColCoords(new Pr(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.cells.map((t=>e[t.key]))),!0,!1))}}class Ca extends Vr{constructor(){super(...arguments),this.processSlotOptions=$e(Ta),this.state={slatCoords:null},this.handleRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=t=>{let{onScrollTopRequest:e}=this.props,{slatCoords:n}=this.state;if(e&&n){if(t.time){let i=n.computeTimeTop(t.time);i=Math.ceil(i),i&&(i+=1),e(i)}return!0}return!1},this.handleColCoords=t=>{this.colCoords=t},this.handleSlatCoords=t=>{this.setState({slatCoords:t}),this.props.onSlatCoords&&this.props.onSlatCoords(t)}}render(){let{props:t,state:e}=this;return _("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},_(da,{axis:t.axis,dateProfile:t.dateProfile,slatMetas:t.slatMetas,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:"",tableMinWidth:t.tableMinWidth,tableColGroupNode:t.axis?t.tableColGroupNode:null,onCoords:this.handleSlatCoords}),_(Da,{cells:t.cells,axis:t.axis,dateProfile:t.dateProfile,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange,nowDate:t.nowDate,nowIndicatorSegs:t.nowIndicatorSegs,clientWidth:t.clientWidth,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,slatCoords:e.slatCoords,onColCoords:this.handleColCoords,forPrint:t.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(t){this.scrollResponder.update(t.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(t,e){let{dateEnv:n,options:i}=this.context,{colCoords:r}=this,{dateProfile:s}=this.props,{slatCoords:o}=this.state,{snapDuration:l,snapsPerSlot:a}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),c=r.leftToIndex(t),u=o.positions.topToIndex(e);if(null!=c&&null!=u){let t=this.props.cells[c],i=o.positions.tops[u],d=o.positions.getHeight(u),h=Math.floor((e-i)/d*a),f=this.props.cells[c].date,p=ke(s.slotMinTime,function(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}(l,u*a+h)),g=n.add(f,p),v=n.add(g,l);return{dateProfile:s,dateSpan:Object.assign({range:{start:g,end:v},allDay:!1},t.extraDateSpan),dayEl:r.els[c],rect:{left:r.lefts[c],right:r.rights[c],top:i,bottom:i+d},layer:0}}return null}}function Ta(t,e){let n=e||t,i=Ce(t,n);return null===i&&(n=t,i=1),{snapDuration:n,snapsPerSlot:i}}class Na extends us{sliceRange(t,e){let n=[];for(let i=0;i<e.length;i+=1){let r=ni(t,e[i]);r&&n.push({start:r.start,end:r.end,isStart:r.start.valueOf()===t.start.valueOf(),isEnd:r.end.valueOf()===t.end.valueOf(),col:i})}return n}}class Ma extends Vr{constructor(){super(...arguments),this.buildDayRanges=$e(Ra),this.slicer=new Na,this.timeColsRef={current:null}}render(){let{props:t,context:e}=this,{dateProfile:n,dayTableModel:i}=t,{nowIndicator:r,nextDayThreshold:s}=e.options,o=this.buildDayRanges(i,n,e.dateEnv);return _(rs,{unit:r?"minute":"day"},((l,a)=>_(Ca,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(t,n,null,e,o),{forPrint:t.forPrint,axis:t.axis,dateProfile:n,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:i.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:l,nowIndicatorSegs:r&&this.slicer.sliceNowDate(l,n,s,e,o),todayRange:a,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords}))))}}function Ra(t,e,n){let i=[];for(let r of t.headerDates)i.push({start:n.add(r,e.slotMinTime),end:n.add(r,e.slotMaxTime)});return i}const Oa=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function _a(t,e,n,i,r){let s=new Date(0),o=t,l=Ee(0),a=n||function(t){let e,n,i;for(e=Oa.length-1;e>=0;e-=1)if(n=Ee(Oa[e]),i=Ce(n,t),null!==i&&i>1)return n;return t}(i),c=[];for(;De(o)<De(e);){let t=r.add(s,o),e=null!==Ce(l,a);c.push({date:t,time:o,key:t.toISOString(),isoTimeStr:(u=t,ge(u.getUTCHours(),2)+":"+ge(u.getUTCMinutes(),2)+":"+ge(u.getUTCSeconds(),2)),isLabeled:e}),o=ke(o,i),l=ke(l,i)}var u;return c}function ja(t,e){let n=new as(t.renderRange,e);return new cs(n,!1)}Wt('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');var Ia,Ba,za,Ha=ro({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:class extends la{constructor(){super(...arguments),this.buildTimeColsModel=$e(ja),this.buildSlatMetas=$e(_a)}render(){let{options:t,dateEnv:e,dateProfileGenerator:n}=this.context,{props:i}=this,{dateProfile:r}=i,s=this.buildTimeColsModel(r,n),o=this.allDaySplitter.splitProps(i),l=this.buildSlatMetas(r.slotMinTime,r.slotMaxTime,t.slotLabelInterval,t.slotDuration,e),{dayMinWidth:a}=t,c=!a,u=a,d=t.dayHeaders&&_(os,{dates:s.headerDates,dateProfile:r,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),h=!1!==t.allDaySlot&&(e=>_(El,Object.assign({},o.allDay,{dateProfile:r,dayTableModel:s,nextDayThreshold:t.nextDayThreshold,tableMinWidth:e.tableMinWidth,colGroupNode:e.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),f=e=>_(Ma,Object.assign({},o.timed,{dayTableModel:s,dateProfile:r,axis:c,slotDuration:t.slotDuration,slatMetas:l,forPrint:i.forPrint,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:e.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return u?this.renderHScrollLayout(d,h,f,s.colCnt,a,l,this.state.slatCoords):this.renderSimpleLayout(d,h,f)}},usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),Pa={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:t=>`Show ${t} more event${1===t?"":"s"}`},Ga={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today:t=>"Día"===t?"Hoy":("Semana"===t?"Esta":"Este")+" "+t.toLocaleLowerCase()},viewHint:t=>"Vista "+("Semana"===t?"de la":"del")+" "+t.toLocaleLowerCase(),weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint:t=>`Mostrar ${t} eventos más`,noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},Ua={code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",weekTextLong:"Semaine",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},Qa={code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",year:"Anno",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText:t=>"+altri "+t,noEventsText:"Non ci sono eventi da visualizzare"},La={code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",year:"Rok",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"},Va={code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",year:"Год",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText:t=>"+ ещё "+t,noEventsText:"Нет событий для отображения"},Wa={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText:t=>"另外 "+t+" 个",noEventsText:"没有事件显示"};!function(t){t.currentDate="Sets the date of the calendar. Must be in ISO format (YYYY-MM-DD).",t.customStyle="Custom style of the component.",t.data="Actual data of the calendar.",t.editableEvents="When true, events are editable.",t.hideNavigation="When disabled, the navigation toolbar won't be displayed.",t.viewType="Type of the view."}(Ia||(Ia={})),function(t){t.DAY="timeGridDay",t.LIST="listMonth",t.MONTH="dayGridMonth",t.WEEK="timeGridWeek"}(Ba||(Ba={})),function(t){t.DATE="date",t.DESCR="descr",t.END="end",t.ICON="icon",t.IMAGE="image",t.START="start",t.STYLE="style"}(za||(za={}));const Fa=class{constructor(n){t(this,n),this.kupCalendarEventClick=e(this,"kup-calendar-eventclick",6),this.kupCalendarDateClick=e(this,"kup-calendar-dateclick",6),this.kupCalendarEventDrop=e(this,"kup-calendar-eventdrop",6),this.kupCalendarViewChange=e(this,"kup-calendar-viewchange",6),this.calendarContainer=null,this.kupManager=l(),this.navTitle=null,this.resizeTimeout=null,this.dateCol=null,this.descrCol=null,this.endCol=null,this.iconCol=null,this.imageCol=null,this.startCol=null,this.styleCol=null,this.currentDate=null,this.customStyle="",this.data=null,this.calendarColumns={[za.DATE]:"",[za.DESCR]:"",[za.END]:"",[za.ICON]:"",[za.IMAGE]:"",[za.START]:"",[za.STYLE]:""},this.hideNavigation=!1,this.editableEvents=!0,this.enableChangeView=!1,this.viewType=Ba.MONTH}setCalendarData(){var t;this.calendarContainer&&(this.calendar&&this.calendar.destroy(),(null===(t=this.data)||void 0===t?void 0:t.columns)&&this.data.columns.forEach((t=>{for(const e in this.calendarColumns)if(this.calendarColumns[e]===t.name){this[`${e}Col`]=t.name;break}})),this.calendar=new Xo(this.calendarContainer,{dateClick:({date:t})=>{this.kupCalendarDateClick.emit({comp:this,id:this.rootElement.id,date:t})},editable:!0,eventClick:({event:t})=>{this.kupCalendarEventClick.emit({comp:this,id:this.rootElement.id,row:t.extendedProps.row})},eventDidMount:t=>{if(this.iconCol){const e=t.event.extendedProps.row.cells[this.iconCol];if(null==e?void 0:e.value){const i=document.createElement("div");i.classList.add("icon-wrapper"),e.value.split(";").forEach((t=>{if(t){const e=document.createElement("span");e.className="custom-icon";const r=n(`./assets/svg/${t}.svg`);e.style.mask=`url('${r}') no-repeat center`,e.style.webkitMask=`url('${r}') no-repeat center`,i.appendChild(e)}})),t.el.appendChild(i)}}if(this.imageCol){const e=t.event.extendedProps.row.cells[this.imageCol];if(e&&e.value){const n=document.createElement("div");n.classList.add("image-wrapper"),e.value.split(";").forEach((t=>{const e=document.createElement("img");e.src=t,n.appendChild(e)})),t.el.appendChild(n)}}if(this.styleCol){const e=t.event.extendedProps.row.cells[this.styleCol],n=t.el.children[0].parentElement;e&&e.style&&Object.keys(e.style).forEach((t=>{n.style[t]=e.style[t]}))}},eventDrop:({event:t,oldEvent:e})=>{var n;this.kupCalendarEventDrop.emit({comp:this,id:this.rootElement.id,fromDate:{start:e.start,end:e.end},toDate:{start:t.start,end:t.end},row:null===(n=e.extendedProps)||void 0===n?void 0:n.row})},events:this.getEvents(),headerToolbar:!1,initialDate:this.currentDate,initialView:this.viewType,locale:this.getLocale(),locales:[Ga,Ua,Qa,La,Va,Wa],plugins:[kl,Wl,ta,Ha]}),this.calendar.render())}async getProps(t){return a(this,Ia,t)}async refresh(){i(this)}async resizeCallback(){window.clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{this.refresh()}),300)}async setProps(t){c(this,Ia,t)}changeView(t){this.viewType=t,this.calendar.changeView(t)}getColumns(){return this.data&&this.data.rows?this.data.columns:[]}getLocale(){switch(this.kupManager.dates.locale){case m.CHINESE:return Wa;case m.FRENCH:return Ua;case m.ITALIAN:return Qa;case m.POLISH:return La;case m.RUSSIAN:return Va;case m.SPANISH:return Ga;default:return Pa}}getRows(){return this.data&&this.data.rows?this.data.rows:[]}setChipProps(){const t={data:[],onClick:[],type:v.CHOICE,wrapperClass:"navigation__choice"};for(const e in Ba){const n=Ba[e],i={checked:this.viewType===n,value:this.kupManager.language.translate(u[e]),id:e};t.data.push(i),t.onClick.push((()=>this.changeView(n)))}return t}getEvents(){const t=this.startCol&&this.endCol&&d(this.getColumns(),this.startCol)&&d(this.getColumns(),this.endCol);return this.getRows().map((e=>{const n=e.cells[this.dateCol];if(n){let i=this.kupManager.dates.toDayjs(n.value),r=this.kupManager.dates.toDayjs(n.value);if(t){const t=e.cells[this.startCol],n=e.cells[this.endCol];if(t&&n){const e=this.kupManager.dates.toDayjs(t.value,b.ISO_TIME),s=this.kupManager.dates.toDayjs(n.value,b.ISO_TIME);e&&s?(i=i.hour(e.hour()),i=i.minute(e.minute()),i=i.second(e.second()),r=r.hour(s.hour()),r=r.minute(s.minute()),r=r.second(s.second())):this.kupManager.debug.logMessage(this,`error while converting hour range: [${e?`start hour: ${e}`:`invalid start hour: ${t.value}`}, ${s?`end hour: ${s}`:`invalid end hour: ${n.value}`}]`,h.WARNING)}}if(r&&i)return{allDay:!t,editable:this.editableEvents,end:r.toISOString(),extendedProps:{row:e},start:i.toISOString(),title:e.cells[this.descrCol].value};this.kupManager.debug.logMessage(this,`error while converting dates: [${i?`start date: ${i}`:`invalid start date: ${n.value}`}. ${r?`end date: ${r}`:`invalid end date: ${n.value}`}]`,h.WARNING)}}))}onPrev(){this.calendar.prev(),this.updateCalendar(),this.emitNavEvent()}onNext(){this.calendar.next(),this.updateCalendar(),this.emitNavEvent()}onToday(){this.calendar.today(),this.updateCalendar()}emitNavEvent(){const t=this.kupManager.dates.subtract(this.calendar.view.currentEnd,1,"day").toDate();this.kupCalendarViewChange.emit({comp:this,id:this.rootElement.id,from:this.calendar.view.currentStart,to:t})}updateCalendar(){this.calendar&&(this.calendar.setOption("locale",this.getLocale()),this.navTitle.innerText=this.calendar.getCurrentData().viewTitle,this.calendar.updateSize())}componentWillLoad(){this.kupManager.dates.register(this),this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.setCalendarData(),this.updateCalendar(),this.kupManager.resize.observe(this.rootElement),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.updateCalendar(),this.kupManager.debug.logRender(this,!0)}render(){return r(s,{key:"142bf009267f546b2dbfefc01145fa1368066243"},r("style",{key:"bcfe9431bbff8b4b786fc228eb3c011327a01de8"},this.kupManager.theme.setKupStyle(this.rootElement)),r("div",{key:"b85072c5e3a7c94219663973303d7bb3a2f88de7",id:f},r("div",{key:"3863dd0666696529935bd85ce225f1648a7daea8",class:"navigation"},this.hideNavigation?null:r("div",{class:"navigation__left"},r(p,{icon:"chevron_left",onClick:()=>this.onPrev(),title:this.kupManager.language.translate(u.PREVIOUS),wrapperClass:"navigation__prev"}),r(p,{icon:"calendar",onClick:()=>this.onToday(),title:this.kupManager.language.translate(u.TODAY),wrapperClass:"navigation__today"}),r(p,{icon:"chevron_right",onClick:()=>this.onNext(),title:this.kupManager.language.translate(u.NEXT),wrapperClass:"navigation__next"})),r("div",{key:"191b641f68e60687014f18e57b9fb2409307e5cd",class:"navigation__title "+(this.hideNavigation?"navigation__title--centered":""),ref:t=>{this.navTitle=t}}),r("div",{key:"2447fece895f395966ecd20b1798658adfb18ae5",class:"navigation__right"},this.enableChangeView?r(g,Object.assign({},this.setChipProps())):null)),r("div",{key:"ab2d7e75fedaf527b25e9661031fbd0da1a7f3d4",class:"calendar",ref:t=>this.calendarContainer=t})))}disconnectedCallback(){this.calendar&&this.calendar.destroy(),this.kupManager.dates.unregister(this),this.kupManager.language.unregister(this),this.kupManager.resize.unobserve(this.rootElement),this.kupManager.theme.unregister(this)}get rootElement(){return o(this)}static get watchers(){return{data:["setCalendarData"],currentDate:["setCalendarData"]}}};Fa.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_calendar_background_color:var(\n --kup-calendar-background-color,\n var(--kup-layer-1)\n );--kup_calendar_border_color:var(\n --kup-calendar-border-color,\n var(--kup-border-subtle)\n );--kup_calendar_event_background_color:var(\n --kup-calendar-event-background-color,\n var(--kup-gray-color-30)\n );--kup_calendar_event_border_radius:var(\n --kup-calendar-event-border-radius,\n 4px\n );--kup_calendar_event_color:var(\n --kup-calendar-event-color,\n var(--kup-text-secondary)\n );--kup_calendar_font_family:var(\n --kup-calendar-font-family,\n var(--kup-font-family)\n );--kup_calendar_font_size:var(--kup-calendar-font-size, var(--kup-font-size));--kup_calendar_header_background_color:var(\n --kup-calendar-header-background-color,\n var(--kup-layer-2)\n );--kup_calendar_header_color:var(\n --kup-calendar-header-color,\n var(--kup-text-secondary)\n );--kup_calendar_navigator_border:var(\n --kup-calendar-navigator-border,\n 1px solid var(--kup-border-subtle)\n );--kup_calendar_no_work_day_background_color:var(\n --kup-calendar-no-work-day-background-color,\n var(--kup-layer-0)\n );--kup_calendar_no_work_day_color:var(\n --kup-calendar-no-work-day-color,\n var(--kup-text-secondary)\n );--kup_calendar_today_background_color:var(\n --kup-calendar-today-background-color,\n var(--kup-layer-2)\n );--kup_calendar_border_top_color:var(\n --kup-calendar-border-top-color,\n var(--kup-border-interactive)\n );--fc-border-color:var(--kup_calendar_border_color);background-color:var(--kup_calendar_background_color);display:block;font-family:var(--kup_calendar_font_family);font-size:var(--kup_calendar_font_size);height:100%;width:100%}.navigation{align-items:center;display:flex;justify-content:space-between;background-color:var(--kup_calendar_background_color)}.navigation__left{--kup-font-size:0.875em;display:flex;margin-left:var(--kup-space-03)}.navigation__right{display:flex;margin-right:var(--kup-space-03)}.navigation__title{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0;margin:0px;padding:0px 0.5em}.navigation__title--centered{padding:0.35em 0;text-align:center;width:100%}.icon-wrapper{display:flex;justify-content:flex-end;flex-wrap:wrap}.image-wrapper{display:flex;justify-content:space-between;flex-wrap:wrap}.image-wrapper img{width:20px;height:20px}.custom-icon{background-color:var(--kup_calendar_event_color);height:1.5em;width:1.5em}#kup-component .fc-toolbar.fc-header-toolbar{margin-top:1.5rem}#kup-component .fc-ltr .fc-dayGrid-view .fc-day-top{text-align:center;padding:0.5rem}#kup-component .fc-ltr .fc-dayGrid-view .fc-day-top .fc-day-number{float:none}#kup-component .fc-content{padding:0.25rem}#kup-component .fc-event-title{white-space:normal;word-break:break-word}#kup-component .fc-content,#kup-component .fc-divider,#kup-component .fc-list-heading td,#kup-component .fc-list-view,#kup-component .fc-popover,#kup-component .fc-row,#kup-component .fc-scrollgrid,#kup-component tbody,#kup-component td{border-color:var(--kup_calendar_border_color)}#kup-component .fc-col-header-cell{background:var(--kup_calendar_header_background_color);color:var(--kup_calendar_header_color)}#kup-component .fc-h-event{background:none;border:none}#kup-component .fc-list-event-dot{border-color:var(--kup_calendar_event_background_color)}#kup-component .fc-list-day-cushion{background:var(--kup_calendar_header_background_color);color:var(--kup_calendar_header_color);font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}#kup-component .fc-list-event:hover td{background:var(--kup-hover-background-color);color:var(--kup-hover-color)}#kup-component .fc-daygrid-event,#kup-component .fc-timegrid-event{background:var(--kup_calendar_event_background_color);border:none;border-color:var(--kup_calendar_event_background_color);color:var(--kup_calendar_event_color)}#kup-component .fc-event-main{color:inherit}#kup-component .fc-event-title{padding:0.25em}#kup-component .fc-event-time{white-space:pre}#kup-component td.fc-day-today{background-color:var(--kup_calendar_today_background_color);border-top:2px solid var(--kup_calendar_border_top_color)}#kup-component td.fc-day-sun,#kup-component td.fc-day-sat{background-color:var(--kup_calendar_no_work_day_background_color);color:var(--kup_calendar_no_work_day_color);opacity:0.7}@media (max-width: 599px){.navigation{flex-direction:column}.calendar{height:100%}.calendar .fc-view-harness{min-height:450px}.navigation .navigation__left{font-size:20px;gap:8px}.navigation .navigation__right .f-chip .chip-set .chip-set__item{font-size:16px}}@media (min-width: 599px){#kup-component .fc-daygrid-event{align-items:baseline;white-space:pre-line}}";export{Fa as kup_calendar}
|
|
1
|
+
import{r as t,c as e,g as n,f as i,h as r,H as s,d as o}from"./p-b0368f88.js";import{k as l,g as a,s as c,h as u,v as d,e as h}from"./p-b9094df4.js";import{c as f}from"./p-635bb4b3.js";import{F as p}from"./p-504fe614.js";import{c as g,F as v}from"./p-2252ad30.js";import{b as m,K as b}from"./p-1ee561ba.js";import"./p-e3062c19.js";import"./p-f2213e00.js";var y,A,w,E,x,k,S,D,C,T={},N=[],M=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function R(t,e){for(var n in e)t[n]=e[n];return t}function O(t){var e=t.parentNode;e&&e.removeChild(t)}function _(t,e,n){var i,r,s,o={};for(s in e)"key"==s?i=e[s]:"ref"==s?r=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?y.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===o[s]&&(o[s]=t.defaultProps[s]);return j(t,o,i,r,null)}function j(t,e,n,i,r){var s={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++w:r};return null==r&&null!=A.vnode&&A.vnode(s),s}function I(t){return t.children}function B(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||M.test(e)?n:n+"px"}function z(t,e,n,i,r){var s;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||B(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||B(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?i||t.addEventListener(e,s?P:H,s):t.removeEventListener(e,s?P:H,s);else if("dangerouslySetInnerHTML"!==e){if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&-1==e.indexOf("-")?t.removeAttribute(e):t.setAttribute(e,n))}}function H(t){x=!0;try{return this.l[t.type+!1](A.event?A.event(t):t)}finally{x=!1}}function P(t){x=!0;try{return this.l[t.type+!0](A.event?A.event(t):t)}finally{x=!1}}function G(t,e){this.props=t,this.context=e}function U(t,e){if(null==e)return t.__?U(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?U(t):null}function Q(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return Q(t)}}function L(t){x?setTimeout(t):D(t)}function V(t){(!t.__d&&(t.__d=!0)&&k.push(t)&&!W.__r++||S!==A.debounceRendering)&&((S=A.debounceRendering)||L)(W)}function W(){var t,e,n,i,r,s,o,l;for(k.sort((function(t,e){return t.__v.__b-e.__v.__b}));t=k.shift();)t.__d&&(e=k.length,i=void 0,r=void 0,o=(s=(n=t).__v).__e,(l=n.__P)&&(i=[],(r=R({},s)).__v=s.__v+1,J(l,s,r,n.__n,void 0!==l.ownerSVGElement,null!=s.__h?[o]:null,i,null==o?U(s):o,s.__h),X(i,s),s.__e!=o&&Q(s)),k.length>e&&k.sort((function(t,e){return t.__v.__b-e.__v.__b})));W.__r=0}function F(t,e,n,i,r,s,o,l,a,c){var u,d,h,f,p,g,v,m=i&&i.__k||N,b=m.length;for(n.__k=[],u=0;u<e.length;u++)if(null!=(f=n.__k[u]=null==(f=e[u])||"boolean"==typeof f?null:"string"==typeof f||"number"==typeof f||"bigint"==typeof f?j(null,f,null,null,f):Array.isArray(f)?j(I,{children:f},null,null,null):f.__b>0?j(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(h=m[u])||h&&f.key==h.key&&f.type===h.type)m[u]=void 0;else for(d=0;d<b;d++){if((h=m[d])&&f.key==h.key&&f.type===h.type){m[d]=void 0;break}h=null}J(t,f,h=h||T,r,s,o,l,a,c),p=f.__e,(d=f.ref)&&h.ref!=d&&(v||(v=[]),h.ref&&v.push(h.ref,null,f),v.push(d,f.__c||p,f)),null!=p?(null==g&&(g=p),"function"==typeof f.type&&f.__k===h.__k?f.__d=a=Y(f,a,t):a=q(t,f,h,m,p,a),"function"==typeof n.type&&(n.__d=a)):a&&h.__e==a&&a.parentNode!=t&&(a=U(h))}for(n.__e=g,u=b;u--;)null!=m[u]&&("function"==typeof n.type&&null!=m[u].__e&&m[u].__e==n.__d&&(n.__d=Z(i).nextSibling),et(m[u],m[u]));if(v)for(u=0;u<v.length;u++)tt(v[u],v[++u],v[++u])}function Y(t,e,n){for(var i,r=t.__k,s=0;r&&s<r.length;s++)(i=r[s])&&(i.__=t,e="function"==typeof i.type?Y(i,e,n):q(n,i,i,r,i.__e,e));return e}function $(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){$(t,e)})):e.push(t)),e}function q(t,e,n,i,r,s){var o,l,a;if(void 0!==e.__d)o=e.__d,e.__d=void 0;else if(null==n||r!=s||null==r.parentNode)t:if(null==s||s.parentNode!==t)t.appendChild(r),o=null;else{for(l=s,a=0;(l=l.nextSibling)&&a<i.length;a+=1)if(l==r)break t;t.insertBefore(r,s),o=s}return void 0!==o?o:r.nextSibling}function Z(t){var e,n,i;if(null==t.type||"string"==typeof t.type)return t.__e;if(t.__k)for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(i=Z(n)))return i;return null}function J(t,e,n,i,r,s,o,l,a){var c,u,d,h,f,p,g,v,m,b,y,w,E,x,k,S=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(a=n.__h,l=e.__e=n.__e,e.__h=null,s=[l]),(c=A.__b)&&c(e);try{t:if("function"==typeof S){if(v=e.props,m=(c=S.contextType)&&i[c.__c],b=c?m?m.props.value:c.__:i,n.__c?g=(u=e.__c=n.__c).__=u.__E:("prototype"in S&&S.prototype.render?e.__c=u=new S(v,b):(e.__c=u=new G(v,b),u.constructor=S,u.render=nt),m&&m.sub(u),u.props=v,u.state||(u.state={}),u.context=b,u.__n=i,d=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=S.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=R({},u.__s)),R(u.__s,S.getDerivedStateFromProps(v,u.__s))),h=u.props,f=u.state,u.__v=e,d)null==S.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==S.getDerivedStateFromProps&&v!==h&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(v,b),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(v,u.__s,b)||e.__v===n.__v){for(e.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),y=0;y<u._sb.length;y++)u.__h.push(u._sb[y]);u._sb=[],u.__h.length&&o.push(u);break t}null!=u.componentWillUpdate&&u.componentWillUpdate(v,u.__s,b),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(h,f,p)}))}if(u.context=b,u.props=v,u.__P=t,w=A.__r,E=0,"prototype"in S&&S.prototype.render){for(u.state=u.__s,u.__d=!1,w&&w(e),c=u.render(u.props,u.state,u.context),x=0;x<u._sb.length;x++)u.__h.push(u._sb[x]);u._sb=[]}else do{u.__d=!1,w&&w(e),c=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++E<25);u.state=u.__s,null!=u.getChildContext&&(i=R(R({},i),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(p=u.getSnapshotBeforeUpdate(h,f)),k=null!=c&&c.type===I&&null==c.key?c.props.children:c,F(t,Array.isArray(k)?k:[k],e,n,i,r,s,o,l,a),u.base=e.__e,e.__h=null,u.__h.length&&o.push(u),g&&(u.__E=u.__=null),u.__e=!1}else null==s&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=K(n.__e,e,n,i,r,s,o,a);(c=A.diffed)&&c(e)}catch(t){e.__v=null,(a||null!=s)&&(e.__e=l,e.__h=!!a,s[s.indexOf(l)]=null),A.__e(t,e,n)}}function X(t,e){A.__c&&A.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){A.__e(t,e.__v)}}))}function K(t,e,n,i,r,s,o,l){var a,c,u,d=n.props,h=e.props,f=e.type,p=0;if("svg"===f&&(r=!0),null!=s)for(;p<s.length;p++)if((a=s[p])&&"setAttribute"in a==!!f&&(f?a.localName===f:3===a.nodeType)){t=a,s[p]=null;break}if(null==t){if(null===f)return document.createTextNode(h);t=r?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,h.is&&h),s=null,l=!1}if(null===f)d===h||l&&t.data===h||(t.data=h);else{if(s=s&&y.call(t.childNodes),c=(d=n.props||T).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!l){if(null!=s)for(d={},p=0;p<t.attributes.length;p++)d[t.attributes[p].name]=t.attributes[p].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(function(t,e,n,i,r){var s;for(s in n)"children"===s||"key"===s||s in e||z(t,s,null,n[s],i);for(s in e)r&&"function"!=typeof e[s]||"children"===s||"key"===s||"value"===s||"checked"===s||n[s]===e[s]||z(t,s,e[s],n[s],i)}(t,h,d,r,l),u)e.__k=[];else if(p=e.props.children,F(t,Array.isArray(p)?p:[p],e,n,i,r&&"foreignObject"!==f,s,o,s?s[0]:n.__k&&U(n,0),l),null!=s)for(p=s.length;p--;)null!=s[p]&&O(s[p]);l||("value"in h&&void 0!==(p=h.value)&&(p!==t.value||"progress"===f&&!p||"option"===f&&p!==d.value)&&z(t,"value",p,d.value,!1),"checked"in h&&void 0!==(p=h.checked)&&p!==t.checked&&z(t,"checked",p,d.checked,!1))}return t}function tt(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){A.__e(t,n)}}function et(t,e,n){var i,r;if(A.unmount&&A.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||tt(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){A.__e(t,e)}i.base=i.__P=null,t.__c=void 0}if(i=t.__k)for(r=0;r<i.length;r++)i[r]&&et(i[r],e,n||"function"!=typeof t.type);n||null==t.__e||O(t.__e),t.__=t.__e=t.__d=void 0}function nt(t,e,n){return this.constructor(t,n)}function it(t,e,n){var i,r,s;A.__&&A.__(t,e),r=(i="function"==typeof n)?null:n&&n.__k||e.__k,s=[],J(e,t=(!i&&n||e).__k=_(I,null,[t]),r||T,T,void 0!==e.ownerSVGElement,!i&&n?[n]:r?null:e.firstChild?y.call(e.childNodes):null,s,!i&&n?n:r?r.__e:e.firstChild,i),X(s,t)}y=N.slice,A={__e:function(t,e,n,i){for(var r,s,o;e=e.__;)if((r=e.__c)&&!r.__)try{if((s=r.constructor)&&null!=s.getDerivedStateFromError&&(r.setState(s.getDerivedStateFromError(t)),o=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,i||{}),o=r.__d),o)return r.__E=r}catch(e){t=e}throw t}},w=0,E=function(t){return null!=t&&void 0===t.constructor},x=!1,G.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=R({},this.state),"function"==typeof t&&(t=t(R({},n),this.props)),t&&R(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),V(this))},G.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),V(this))},G.prototype.render=I,k=[],D="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,W.__r=0,C=0;var rt,st,ot,lt=[],at=[],ct=A.__b,ut=A.__r,dt=A.diffed,ht=A.__c,ft=A.unmount;function pt(){for(var t;t=lt.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(mt),t.__H.__h.forEach(bt),t.__H.__h=[]}catch(e){t.__H.__h=[],A.__e(e,t.__v)}}A.__b=function(t){rt=null,ct&&ct(t)},A.__r=function(t){ut&&ut(t);var e=(rt=t.__c).__H;e&&(st===rt?(e.__h=[],rt.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=at,t.__N=t.i=void 0}))):(e.__h.forEach(mt),e.__h.forEach(bt),e.__h=[])),st=rt},A.diffed=function(t){dt&&dt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==lt.push(e)&&ot===A.requestAnimationFrame||((ot=A.requestAnimationFrame)||vt)(pt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==at&&(t.__=t.__V),t.i=void 0,t.__V=at}))),st=rt=null},A.__c=function(t,e){e.some((function(t){try{t.__h.forEach(mt),t.__h=t.__h.filter((function(t){return!t.__||bt(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],A.__e(n,t.__v)}})),ht&&ht(t,e)},A.unmount=function(t){ft&&ft(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{mt(t)}catch(t){e=t}})),n.__H=void 0,e&&A.__e(e,n.__v))};var gt="function"==typeof requestAnimationFrame;function vt(t){var e,n=function(){clearTimeout(i),gt&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);gt&&(e=requestAnimationFrame(n))}function mt(t){var e=rt,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),rt=e}function bt(t){var e=rt;t.__c=t.__(),rt=e}function yt(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var i in e)if("__source"!==i&&t[i]!==e[i])return!0;return!1}function At(t){this.props=t}(At.prototype=new G).isPureReactComponent=!0,At.prototype.shouldComponentUpdate=function(t,e){return yt(this.props,t)||yt(this.state,e)};var wt=A.__b;A.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),wt&&wt(t)};var Et=A.__e;A.__e=function(t,e,n,i){if(t.then)for(var r,s=e;s=s.__;)if((r=s.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);Et(t,e,n,i)};var xt=A.unmount;function kt(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=function(t,e){for(var n in e)t[n]=e[n];return t}({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return kt(t,e,n)}))),t}function St(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return St(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function Dt(){this.__u=0,this.t=null,this.__b=null}function Ct(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Tt(){this.u=null,this.o=null}A.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),xt&&xt(t)},(Dt.prototype=new G).__c=function(t,e){var n=e.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=Ct(i.__v),s=!1,o=function(){s||(s=!0,n.__R=null,r?r(l):l())};n.__R=o;var l=function(){if(! --i.__u){if(i.state.__a){var t=i.state.__a;i.__v.__k[0]=St(t,t.__c.__P,t.__c.__O)}var e;for(i.setState({__a:i.__b=null});e=i.t.pop();)e.forceUpdate()}},a=!0===e.__h;i.__u++||a||i.setState({__a:i.__b=i.__v.__k[0]}),t.then(o,o)},Dt.prototype.componentWillUnmount=function(){this.t=[]},Dt.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=kt(this.__b,n,i.__O=i.__P)}this.__b=null}var r=e.__a&&_(I,null,t.fallback);return r&&(r.__h=null),[_(I,null,e.__a?null:t.children),r]};var Nt=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Mt(t){return this.getChildContext=function(){return t.context},t.children}function Rt(t){var e=this,n=t.i;e.componentWillUnmount=function(){it(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),it(_(Mt,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}(Tt.prototype=new G).__a=function(t){var e=this,n=Ct(e.__v),i=e.o.get(t);return i[0]++,function(r){var s=function(){e.props.revealOrder?(i.push(r),Nt(e,t,i)):r()};n?n(s):s()}},Tt.prototype.render=function(t){this.u=null,this.o=new Map;var e=$(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Tt.prototype.componentDidUpdate=Tt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){Nt(t,n,e)}))};var Ot="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,_t=/^(?: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]/,jt="undefined"!=typeof document,It=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};G.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(G.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var Bt=A.event;function zt(){}function Ht(){return this.cancelBubble}function Pt(){return this.defaultPrevented}A.event=function(t){return Bt&&(t=Bt(t)),t.persist=zt,t.isPropagationStopped=Ht,t.isDefaultPrevented=Pt,t.nativeEvent=t};var Gt={configurable:!0,get:function(){return this.class}},Ut=A.vnode;A.vnode=function(t){var e=t.type,n=t.props,i=n;if("string"==typeof e){var r=-1===e.indexOf("-");for(var s in i={},n){var o=n[s];jt&&"children"===s&&"noscript"===e||"value"===s&&"defaultValue"in n&&null==o||("defaultValue"===s&&"value"in n&&null==n.value?s="value":"download"===s&&!0===o?o="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!It(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():r&&_t.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===o&&(o=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),i[s]&&(s="oninputCapture")),i[s]=o)}"select"==e&&i.multiple&&Array.isArray(i.value)&&(i.value=$(n.children).forEach((function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)}))),"select"==e&&null!=i.defaultValue&&(i.value=$(n.children).forEach((function(t){t.props.selected=i.multiple?-1!=i.defaultValue.indexOf(t.props.value):i.defaultValue==t.props.value}))),t.props=i,n.class!=n.className&&(Gt.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Gt))}t.$$typeof=Ot,Ut&&Ut(t)};var Qt=A.__r;A.__r=function(t){Qt&&Qt(t)};const Lt=[],Vt=new Map;function Wt(t){Lt.push(t),Vt.forEach((e=>{Yt(e,t)}))}function Ft(t){let e=Vt.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=(void 0===$t&&($t=function(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}()),$t);n&&(e.nonce=n);const i=t===document?document.head:t,r=t===document?i.querySelector("script,link[rel=stylesheet],link[as=style],style"):i.firstChild;i.insertBefore(e,r)}Vt.set(t,e),function(t){for(const e of Lt)Yt(t,e)}(e)}}function Yt(t,e){const{sheet:n}=t,i=n.cssRules.length;e.split("}").forEach(((t,e)=>{(t=t.trim())&&n.insertRule(t+"}",i+e)}))}let $t;"undefined"!=typeof document&&Ft(document),Wt(':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{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;-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{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;-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)}');class qt{constructor(t){this.drainedOption=t,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(t){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==t?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),t))}pause(t=""){let{pauseDepths:e}=this;e[t]=(e[t]||0)+1,this.clearTimeout()}resume(t="",e){let{pauseDepths:n}=this;t in n&&(e?delete n[t]:(n[t]-=1,n[t]<=0&&delete n[t]),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 Zt(t){t.parentNode&&t.parentNode.removeChild(t)}function Jt(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(Xt(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}function Xt(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}const Kt=/(top|left|right|bottom|width|height)$/i;function te(t,e){for(let n in e)ee(t,n,e[n])}function ee(t,e,n){t.style[e]=null==n?"":"number"==typeof n&&Kt.test(e)?`${n}px`:n}function ne(t){var e,n;return null!==(n=null===(e=t.composedPath)||void 0===e?void 0:e.call(t)[0])&&void 0!==n?n:t.target}let ie=0;function re(){return ie+=1,"fc-dom-"+ie}function se(t){t.preventDefault()}function oe(t,e,n,i){let r=function(t,e){return n=>{let i=Jt(n.target,t);i&&e.call(i,n,i)}}(n,i);return t.addEventListener(e,r),()=>{t.removeEventListener(e,r)}}const le=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function ae(t){return Object.assign({onClick:t},ce(t))}function ce(t){return{tabIndex:0,onKeyDown(e){"Enter"!==e.key&&" "!==e.key||(t(e),e.preventDefault())}}}let ue=0;function de(){return ue+=1,String(ue)}function he(){document.body.classList.add("fc-not-allowed")}function fe(){document.body.classList.remove("fc-not-allowed")}function pe(t,e,n){return n.func?n.func(t,e):function(t,e){return t||e?null==e?-1:null==t?1:"string"==typeof t||"string"==typeof e?String(t).localeCompare(String(e)):t-e:0}(t[n.field],e[n.field])*(n.order||1)}function ge(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function ve(t,e,n){return"function"==typeof t?t(...e):"string"==typeof t?e.reduce(((t,e,n)=>t.replace("$"+n,e||"")),t):n}function me(t,e){return t-e}function be(t){return t%1==0}function ye(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const Ae=["years","months","days","milliseconds"],we=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Ee(t,e){return"string"==typeof t?function(t){let e=we.exec(t);if(e){let t=e[1]?-1:1;return{years:0,months:0,days:t*(e[2]?parseInt(e[2],10):0),milliseconds:t*(60*(e[3]?parseInt(e[3],10):0)*60*1e3+60*(e[4]?parseInt(e[4],10):0)*1e3+1e3*(e[5]?parseInt(e[5],10):0)+(e[6]?parseInt(e[6],10):0))}}return null}(t):"object"==typeof t&&t?xe(t):"number"==typeof t?xe({[e||"milliseconds"]:t}):null}function xe(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:60*(t.hours||t.hour||0)*60*1e3+60*(t.minutes||t.minute||0)*1e3+1e3*(t.seconds||t.second||0)+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=7*n,e.specifiedWeeks=!0),e}function ke(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function Se(t){return De(t)/864e5}function De(t){return 31536e6*t.years+2592e6*t.months+864e5*t.days+t.milliseconds}function Ce(t,e){let n=null;for(let i=0;i<Ae.length;i+=1){let r=Ae[i];if(e[r]){let i=t[r]/e[r];if(!be(i)||null!==n&&n!==i)return null;n=i}else if(t[r])return null}return n}function Te(t){let e=t.milliseconds;if(e){if(e%1e3!=0)return{unit:"millisecond",value:e};if(e%6e4!=0)return{unit:"second",value:e/1e3};if(e%36e5!=0)return{unit:"minute",value:e/6e4};if(e)return{unit:"hour",value:e/36e5}}return t.days?t.specifiedWeeks&&t.days%7==0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function Ne(t,e,n){if(t===e)return!0;let i,r=t.length;if(r!==e.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(t[i],e[i]):t[i]===e[i]))return!1;return!0}const Me=["sun","mon","tue","wed","thu","fri","sat"];function Re(t,e){let n=Ue(t);return n[2]+=7*e,Qe(n)}function Oe(t,e){let n=Ue(t);return n[2]+=e,Qe(n)}function _e(t,e){let n=Ue(t);return n[6]+=e,Qe(n)}function je(t,e){return(e.valueOf()-t.valueOf())/864e5}function Ie(t,e){return Ve(t)===Ve(e)?Math.round(je(t,e)):null}function Be(t){return Qe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function ze(t,e,n,i){let r=Qe([e,0,1+He(e,n,i)]),s=Be(t),o=Math.round(je(r,s));return Math.floor(o/7)+1}function He(t,e,n){let i=7+e-n;return-(7+Qe([t,0,i]).getUTCDay()-e)%7+i-1}function Pe(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Ge(t){return new Date(t[0],t[1]||0,null==t[2]?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function Ue(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Qe(t){return 1===t.length&&(t=t.concat([0])),new Date(Date.UTC(...t))}function Le(t){return!isNaN(t.valueOf())}function Ve(t){return 1e3*t.getUTCHours()*60*60+1e3*t.getUTCMinutes()*60+1e3*t.getUTCSeconds()+t.getUTCMilliseconds()}function We(t,e,n=!1){let i=t.toISOString();return i=i.replace(".000",""),n&&(i=i.replace("T00:00:00Z","")),i.length>10&&(null==e?i=i.replace("Z",""):0!==e&&(i=i.replace("Z",Ye(e,!0)))),i}function Fe(t){return t.toISOString().replace(/T.*$/,"")}function Ye(t,e=!1){let n=t<0?"-":"+",i=Math.abs(t),r=Math.floor(i/60),s=Math.round(i%60);return e?`${n+ge(r,2)}:${ge(s,2)}`:`GMT${n}${r}${s?`:${ge(s,2)}`:""}`}function $e(t,e,n){let i,r;return function(...s){if(i){if(!Ne(i,s)){n&&n(r);let i=t.apply(this,s);e&&e(i,r)||(r=i)}}else r=t.apply(this,s);return i=s,r}}function qe(t,e,n){let i,r;return s=>{if(i){if(!Tn(i,s)){n&&n(r);let i=t.call(this,s);e&&e(i,r)||(r=i)}}else r=t.call(this,s);return i=s,r}}const Ze={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Je={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Xe=/\s*([ap])\.?m\.?/i,Ke=/,/g,tn=/\s+/g,en=/\u200e/g,nn=/UTC|GMT/;class rn{constructor(t){let e={},n={},i=0;for(let r in t)r in Ze?(n[r]=t[r],i=Math.max(Ze[r],i)):(e[r]=t[r],r in Je&&(i=Math.max(Je[r],i)));this.standardDateProps=e,this.extendedSettings=n,this.severity=i,this.buildFormattingFunc=$e(sn)}format(t,e){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,e)(t)}formatRange(t,e,n,i){let{standardDateProps:r,extendedSettings:s}=this,o=(a=e.marker,(c=n.calendarSystem).getMarkerYear(l=t.marker)!==c.getMarkerYear(a)?5:c.getMarkerMonth(l)!==c.getMarkerMonth(a)?4:c.getMarkerDay(l)!==c.getMarkerDay(a)?2:Ve(l)!==Ve(a)?1:0);var l,a,c;if(!o)return this.format(t,n);let u=o;!(u>1)||"numeric"!==r.year&&"2-digit"!==r.year||"numeric"!==r.month&&"2-digit"!==r.month||"numeric"!==r.day&&"2-digit"!==r.day||(u=1);let d=this.format(t,n),h=this.format(e,n);if(d===h)return d;let f=sn(function(t,e){let n={};for(let i in t)(!(i in Je)||Je[i]<=e)&&(n[i]=t[i]);return n}(r,u),s,n),p=f(t),g=f(e),v=function(t,e,n,i){let r=0;for(;r<t.length;){let s=t.indexOf(e,r);if(-1===s)break;let o=t.substr(0,s);r=s+e.length;let l=t.substr(r),a=0;for(;a<n.length;){let t=n.indexOf(i,a);if(-1===t)break;let e=n.substr(0,t);a=t+i.length;let r=n.substr(a);if(o===e&&l===r)return{before:o,after:l}}}return null}(d,p,h,g),m=s.separator||i||n.defaultSeparator||"";return v?v.before+p+m+g+v.after:d+m+h}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 sn(t,e,n){let i=Object.keys(t).length;return 1===i&&"short"===t.timeZoneName?t=>Ye(t.timeZoneOffset):0===i&&e.week?t=>function(t,e,n,i,r){let s=[];return"long"===r?s.push(n):"short"!==r&&"narrow"!==r||s.push(e),"long"!==r&&"short"!==r||s.push(" "),s.push(i.simpleNumberFormat.format(t)),"rtl"===i.options.direction&&s.reverse(),s.join("")}(n.computeWeekNumber(t.marker),n.weekText,n.weekTextLong,n.locale,e.week):function(t,e,n){t=Object.assign({},t),e=Object.assign({},e),function(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),"long"===t.timeZoneName&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}(t,e),t.timeZone="UTC";let i,r=new Intl.DateTimeFormat(n.locale.codes,t);if(e.omitZeroMinute){let e=Object.assign({},t);delete e.minute,i=new Intl.DateTimeFormat(n.locale.codes,e)}return s=>{let o,{marker:l}=s;return o=i&&!l.getUTCMinutes()?i:r,function(t,e,n,i,r){return t=t.replace(en,""),"short"===n.timeZoneName&&(t=function(t,e){let n=!1;return t=t.replace(nn,(()=>(n=!0,e))),n||(t+=` ${e}`),t}(t,"UTC"===r.timeZone||null==e.timeZoneOffset?"UTC":Ye(e.timeZoneOffset))),i.omitCommas&&(t=t.replace(Ke,"").trim()),i.omitZeroMinute&&(t=t.replace(":00","")),!1===i.meridiem?t=t.replace(Xe,"").trim():"narrow"===i.meridiem?t=t.replace(Xe,((t,e)=>e.toLocaleLowerCase())):"short"===i.meridiem?t=t.replace(Xe,((t,e)=>`${e.toLocaleLowerCase()}m`)):"lowercase"===i.meridiem&&(t=t.replace(Xe,(t=>t.toLocaleLowerCase()))),t=(t=t.replace(tn," ")).trim()}(o.format(l),s,t,e,n)}}(t,e,n)}function on(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.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 ln(t,e,n,i){let r=on(t,n.calendarSystem);return{date:r,start:r,end:e?on(e,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:i||n.defaultSeparator}}class an{constructor(t){this.cmdStr=t}format(t,e,n){return e.cmdFormatter(this.cmdStr,ln(t,null,e,n))}formatRange(t,e,n,i){return n.cmdFormatter(this.cmdStr,ln(t,e,n,i))}}class cn{constructor(t){this.func=t}format(t,e,n){return this.func(ln(t,null,e,n))}formatRange(t,e,n,i){return this.func(ln(t,e,n,i))}}function un(t){return"object"==typeof t&&t?new rn(t):"string"==typeof t?new an(t):"function"==typeof t?new cn(t):null}const dn={navLinkDayClick:wn,navLinkWeekClick:wn,duration:Ee,bootstrapFontAwesome:wn,buttonIcons:wn,customButtons:wn,defaultAllDayEventDuration:Ee,defaultTimedEventDuration:Ee,nextDayThreshold:Ee,scrollTime:Ee,scrollTimeReset:Boolean,slotMinTime:Ee,slotMaxTime:Ee,dayPopoverFormat:un,slotDuration:Ee,snapDuration:Ee,headerToolbar:wn,footerToolbar:wn,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:un,dayHeaderClassNames:wn,dayHeaderContent:wn,dayHeaderDidMount:wn,dayHeaderWillUnmount:wn,dayCellClassNames:wn,dayCellContent:wn,dayCellDidMount:wn,dayCellWillUnmount:wn,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:wn,weekNumbers:Boolean,weekNumberClassNames:wn,weekNumberContent:wn,weekNumberDidMount:wn,weekNumberWillUnmount:wn,editable:Boolean,viewClassNames:wn,viewDidMount:wn,viewWillUnmount:wn,nowIndicator:Boolean,nowIndicatorClassNames:wn,nowIndicatorContent:wn,nowIndicatorDidMount:wn,nowIndicatorWillUnmount:wn,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:wn,locale:wn,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:wn,eventOrder:function(t){let e,n,i=[],r=[];for("string"==typeof t?r=t.split(/\s*,\s*/):"function"==typeof t?r=[t]:Array.isArray(t)&&(r=t),e=0;e<r.length;e+=1)n=r[e],"string"==typeof n?i.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&i.push({func:n});return i},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:wn,contentHeight:wn,direction:String,weekNumberFormat:un,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:wn,initialDate:wn,now:wn,eventDataTransform:wn,stickyHeaderDates:wn,stickyFooterScrollbar:wn,viewHeight:wn,defaultAllDay:Boolean,eventSourceFailure:wn,eventSourceSuccess:wn,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:wn,eventConstraint:wn,eventAllow:wn,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:wn,eventContent:wn,eventDidMount:wn,eventWillUnmount:wn,selectConstraint:wn,selectOverlap:wn,selectAllow:wn,droppable:Boolean,unselectCancel:String,slotLabelFormat:wn,slotLaneClassNames:wn,slotLaneContent:wn,slotLaneDidMount:wn,slotLaneWillUnmount:wn,slotLabelClassNames:wn,slotLabelContent:wn,slotLabelDidMount:wn,slotLabelWillUnmount:wn,dayMaxEvents:wn,dayMaxEventRows:wn,dayMinWidth:Number,slotLabelInterval:Ee,allDayText:String,allDayClassNames:wn,allDayContent:wn,allDayDidMount:wn,allDayWillUnmount:wn,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:un,rerenderDelay:Number,moreLinkText:wn,moreLinkHint:wn,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:wn,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Ee,hiddenDays:wn,fixedWeekCount:Boolean,validRange:wn,visibleRange:wn,titleFormat:wn,eventInteractive:Boolean,noEventsText:String,viewHint:wn,navLinkHint:wn,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:wn,moreLinkClassNames:wn,moreLinkContent:wn,moreLinkDidMount:wn,moreLinkWillUnmount:wn,monthStartFormat:un,handleCustomRendering:wn,customRenderingMetaMap:wn,customRenderingReplaces:Boolean},hn={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"}},fn={datesSet:wn,eventsSet:wn,eventAdd:wn,eventChange:wn,eventRemove:wn,windowResize:wn,eventClick:wn,eventMouseEnter:wn,eventMouseLeave:wn,select:wn,unselect:wn,loading:wn,_unmount:wn,_beforeprint:wn,_afterprint:wn,_noEventDrop:wn,_noEventResize:wn,_resize:wn,_scrollRequest:wn},pn={buttonText:wn,buttonHints:wn,views:wn,plugins:wn,initialEvents:wn,events:wn,eventSources:wn},gn={headerToolbar:vn,footerToolbar:vn,buttonText:vn,buttonHints:vn,buttonIcons:vn,dateIncrement:vn,plugins:mn,events:mn,eventSources:mn,resources:mn};function vn(t,e){return"object"==typeof t&&"object"==typeof e&&t&&e?Tn(t,e):t===e}function mn(t,e){return Array.isArray(t)&&Array.isArray(e)?Ne(t,e):t===e}const bn={type:String,component:wn,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:wn,usesMinMaxTime:Boolean,classNames:wn,content:wn,didMount:wn,willUnmount:wn};function yn(t){return xn(t,gn)}function An(t,e){let n={},i={};for(let i in e)i in t&&(n[i]=e[i](t[i]));for(let n in t)n in e||(i[n]=t[n]);return{refined:n,extra:i}}function wn(t){return t}const{hasOwnProperty:En}=Object.prototype;function xn(t,e){let n={};if(e)for(let i in e)if(e[i]===vn){let e=[];for(let r=t.length-1;r>=0;r-=1){let s=t[r][i];if("object"==typeof s&&s)e.unshift(s);else if(void 0!==s){n[i]=s;break}}e.length&&(n[i]=xn(e))}for(let e=t.length-1;e>=0;e-=1){let i=t[e];for(let t in i)t in n||(n[t]=i[t])}return n}function kn(t,e){let n={};for(let i in t)e(t[i],i)&&(n[i]=t[i]);return n}function Sn(t,e){let n={};for(let i in t)n[i]=e(t[i],i);return n}function Dn(t){let e={};for(let n of t)e[n]=!0;return e}function Cn(t){let e=[];for(let n in t)e.push(t[n]);return e}function Tn(t,e){if(t===e)return!0;for(let n in t)if(En.call(t,n)&&!(n in e))return!1;for(let n in e)if(En.call(e,n)&&t[n]!==e[n])return!1;return!0}const Nn=/^on[A-Z]/;function Mn(t,e){let n=[];for(let i in t)En.call(t,i)&&(i in e||n.push(i));for(let i in e)En.call(e,i)&&t[i]!==e[i]&&n.push(i);return n}function Rn(t,e,n={}){if(t===e)return!0;for(let o in e)if(!(o in t&&(i=t[o],r=e[o],s=n[o],i===r||!0===s||s&&s(i,r))))return!1;var i,r,s;for(let n in t)if(!(n in e))return!1;return!0}let On={};On.gregory=class{getMarkerYear(t){return t.getUTCFullYear()}getMarkerMonth(t){return t.getUTCMonth()}getMarkerDay(t){return t.getUTCDate()}arrayToMarker(t){return Qe(t)}markerToArray(t){return Ue(t)}};const _n=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class jn{constructor(t){let e=this.timeZone=t.timeZone,n="local"!==e&&"UTC"!==e;t.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new t.namedTimeZoneImpl(e)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(t){return new On[t]}(t.calendarSystem),this.locale=t.locale,this.weekDow=t.locale.week.dow,this.weekDoy=t.locale.week.doy,"ISO"===t.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof t.firstDay&&(this.weekDow=t.firstDay),"function"==typeof t.weekNumberCalculation&&(this.weekNumberFunc=t.weekNumberCalculation),this.weekText=null!=t.weekText?t.weekText:t.locale.options.weekText,this.weekTextLong=(null!=t.weekTextLong?t.weekTextLong:t.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=t.cmdFormatter,this.defaultSeparator=t.defaultSeparator}createMarker(t){let e=this.createMarkerMeta(t);return null===e?null:e.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):Qe(Pe(new Date))}createMarkerMeta(t){if("string"==typeof t)return this.parse(t);let e=null;return"number"==typeof t?e=this.timestampToMarker(t):t instanceof Date?(t=t.valueOf(),isNaN(t)||(e=this.timestampToMarker(t))):Array.isArray(t)&&(e=Qe(t)),null!==e&&Le(e)?{marker:e,isTimeUnspecified:!1,forcedTzo:null}:null}parse(t){let e=function(t){let e=_n.exec(t);if(e){let t=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?1e3*Number(`0.${e[12]}`):0));if(Le(t)){let n=null;return e[13]&&(n=("-"===e[15]?-1:1)*(60*Number(e[16]||0)+Number(e[18]||0))),{marker:t,isTimeUnspecified:!e[6],timeZoneOffset:n}}}return null}(t);if(null===e)return null;let{marker:n}=e,i=null;return null!==e.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*e.timeZoneOffset*1e3):i=e.timeZoneOffset),{marker:n,isTimeUnspecified:e.isTimeUnspecified,forcedTzo:i}}getYear(t){return this.calendarSystem.getMarkerYear(t)}getMonth(t){return this.calendarSystem.getMarkerMonth(t)}getDay(t){return this.calendarSystem.getMarkerDay(t)}add(t,e){let n=this.calendarSystem.markerToArray(t);return n[0]+=e.years,n[1]+=e.months,n[2]+=e.days,n[6]+=e.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(t,e){let n=this.calendarSystem.markerToArray(t);return n[0]-=e.years,n[1]-=e.months,n[2]-=e.days,n[6]-=e.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(t,e){let n=this.calendarSystem.markerToArray(t);return n[0]+=e,this.calendarSystem.arrayToMarker(n)}addMonths(t,e){let n=this.calendarSystem.markerToArray(t);return n[1]+=e,this.calendarSystem.arrayToMarker(n)}diffWholeYears(t,e){let{calendarSystem:n}=this;return Ve(t)===Ve(e)&&n.getMarkerDay(t)===n.getMarkerDay(e)&&n.getMarkerMonth(t)===n.getMarkerMonth(e)?n.getMarkerYear(e)-n.getMarkerYear(t):null}diffWholeMonths(t,e){let{calendarSystem:n}=this;return Ve(t)===Ve(e)&&n.getMarkerDay(t)===n.getMarkerDay(e)?n.getMarkerMonth(e)-n.getMarkerMonth(t)+12*(n.getMarkerYear(e)-n.getMarkerYear(t)):null}greatestWholeUnit(t,e){let n=this.diffWholeYears(t,e);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(t,e),null!==n?{unit:"month",value:n}:(n=function(t,e){let n=Ie(t,e);return null!==n&&n%7==0?n/7:null}(t,e),null!==n?{unit:"week",value:n}:(n=Ie(t,e),null!==n?{unit:"day",value:n}:(n=function(t,e){return(e.valueOf()-t.valueOf())/36e5}(t,e),be(n)?{unit:"hour",value:n}:(n=function(t,e){return(e.valueOf()-t.valueOf())/6e4}(t,e),be(n)?{unit:"minute",value:n}:(n=function(t,e){return(e.valueOf()-t.valueOf())/1e3}(t,e),be(n)?{unit:"second",value:n}:{unit:"millisecond",value:e.valueOf()-t.valueOf()}))))))}countDurationsBetween(t,e,n){let i;return n.years&&(i=this.diffWholeYears(t,e),null!==i)?i/(Se(n)/365):n.months&&(i=this.diffWholeMonths(t,e),null!==i)?i/(Se(n)/30):n.days&&(i=Ie(t,e),null!==i)?i/Se(n):(e.valueOf()-t.valueOf())/De(n)}startOf(t,e){return"year"===e?this.startOfYear(t):"month"===e?this.startOfMonth(t):"week"===e?this.startOfWeek(t):"day"===e?Be(t):"hour"===e?function(t){return Qe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}(t):"minute"===e?function(t){return Qe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}(t):"second"===e?function(t){return Qe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}(t):null}startOfYear(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t)])}startOfMonth(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t)])}startOfWeek(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t),t.getUTCDate()-(t.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(t){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(t)):function(t,e,n){let i=t.getUTCFullYear(),r=ze(t,i,e,n);if(r<1)return ze(t,i-1,e,n);let s=ze(t,i+1,e,n);return s>=1?Math.min(r,s):r}(t,this.weekDow,this.weekDoy)}format(t,e,n={}){return e.format({marker:t,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(t)},this)}formatRange(t,e,n,i={}){return i.isEndExclusive&&(e=_e(e,-1)),n.formatRange({marker:t,timeZoneOffset:null!=i.forcedStartTzo?i.forcedStartTzo:this.offsetForMarker(t)},{marker:e,timeZoneOffset:null!=i.forcedEndTzo?i.forcedEndTzo:this.offsetForMarker(e)},this,i.defaultSeparator)}formatIso(t,e={}){let n=null;return e.omitTimeZoneOffset||(n=null!=e.forcedTzo?e.forcedTzo:this.offsetForMarker(t)),We(t,n,e.omitTime)}timestampToMarker(t){return"local"===this.timeZone?Qe(Pe(new Date(t))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Qe(this.namedTimeZoneImpl.timestampToArray(t)):new Date(t)}offsetForMarker(t){return"local"===this.timeZone?-Ge(Ue(t)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Ue(t)):null}toDate(t,e){return"local"===this.timeZone?Ge(Ue(t)):"UTC"===this.timeZone?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Ue(t))*60):new Date(t.valueOf()-(e||0))}}class In{constructor(t){this.iconOverrideOption&&this.setIconOverride(t[this.iconOverrideOption])}setIconOverride(t){let e,n;if("object"==typeof t&&t){for(n in e=Object.assign({},this.iconClasses),t)e[n]=this.applyIconOverridePrefix(t[n]);this.iconClasses=e}else!1===t&&(this.iconClasses={})}applyIconOverridePrefix(t){let e=this.iconOverridePrefix;return e&&0!==t.indexOf(e)&&(t=e+t),t}getClass(t){return this.classes[t]||""}getIconClass(t,e){let n;return n=e&&this.rtlIconClasses&&this.rtlIconClasses[t]||this.iconClasses[t],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(t){let e;return this.iconOverrideCustomButtonOption&&(e=t[this.iconOverrideCustomButtonOption],e)?`${this.baseIconClass} ${this.applyIconOverridePrefix(e)}`:""}}function Bn(t){t();let e=A.debounceRendering,n=[];for(A.debounceRendering=function(t){n.push(t)},it(_(zn,{}),document.createElement("div"));n.length;)n.shift()();A.debounceRendering=e}In.prototype.classes={},In.prototype.iconClasses={},In.prototype.baseIconClass="",In.prototype.iconOverridePrefix="";class zn extends G{render(){return _("div",{})}componentDidMount(){this.setState({})}}function Hn(t){let e=function(t,e){var n={__c:e="__cC"+C++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,i;return this.getChildContext||(n=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,V(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}(t),n=e.Provider;return e.Provider=function(){let t=!this.getChildContext,e=n.apply(this,arguments);if(t){let t=[];this.shouldComponentUpdate=e=>{this.props.value!==e.value&&t.forEach((t=>{t.context=e.value,t.forceUpdate()}))},this.sub=e=>{t.push(e);let n=e.componentWillUnmount;e.componentWillUnmount=()=>{t.splice(t.indexOf(e),1),n&&n.call(e)}}}return e},e}class Pn{constructor(t,e,n,i){this.execFunc=t,this.emitter=e,this.scrollTime=n,this.scrollTimeReset=i,this.handleScrollRequest=t=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},t),this.drain()},e.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(t){t&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const Gn=Hn({});function Un(t,e,n,i,r,s,o,l,a,c,u,d,h){return{dateEnv:r,options:n,pluginHooks:o,emitter:c,dispatch:l,getCurrentData:a,calendarApi:u,viewSpec:t,viewApi:e,dateProfileGenerator:i,theme:s,isRtl:"rtl"===n.direction,addResizeHandler(t){c.on("_resize",t)},removeResizeHandler(t){c.off("_resize",t)},createScrollResponder:t=>new Pn(t,c,Ee(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:d,unregisterInteractiveComponent:h}}class Qn extends G{shouldComponentUpdate(t,e){return this.debug&&console.log(Mn(t,this.props),Mn(e,this.state)),!Rn(this.props,t,this.propEquality)||!Rn(this.state,e,this.stateEquality)}safeSetState(t){Rn(this.state,Object.assign(Object.assign({},this.state),t),this.stateEquality)||this.setState(t)}}Qn.addPropsEquality=function(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e},Qn.addStateEquality=function(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e},Qn.contextType=Gn,Qn.prototype.propEquality={},Qn.prototype.stateEquality={};class Ln extends Qn{}function Vn(t,e){"function"==typeof t?t(e):t&&(t.current=e)}Ln.contextType=Gn;class Wn extends Ln{constructor(){super(...arguments),this.id=de(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=t=>{const{options:e}=this.context,{generatorName:n}=this.props;e.customRenderingReplaces&&Fn(n,e)||this.updateElRef(t)},this.updateElRef=t=>{this.props.elRef&&Vn(this.props.elRef,t)}}render(){const{props:t,context:e}=this,{options:n}=e,{customGenerator:i,defaultGenerator:r,renderProps:s}=t,o=Yn(t,[],this.handleEl);let l,a,c=!1,u=[];if(null!=i){const t="function"==typeof i?i(s,_):i;if(!0===t)c=!0;else{const e=t&&"object"==typeof t;e&&"html"in t?o.dangerouslySetInnerHTML={__html:t.html}:e&&"domNodes"in t?u=Array.prototype.slice.call(t.domNodes):(e?E(t):"function"!=typeof t)?l=t:a=t}}else c=!Fn(t.generatorName,n);return c&&r&&(l=r(s)),this.queuedDomNodes=u,this.currentGeneratorMeta=a,_(t.elTag,o,l)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(t){var e;const{props:n,context:i}=this,{handleCustomRendering:r,customRenderingMetaMap:s}=i.options;if(r){const i=null!==(e=this.currentGeneratorMeta)&&void 0!==e?e:null==s?void 0:s[n.generatorName];i&&r(Object.assign(Object.assign({id:this.id,isActive:t,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:i},n),{elClasses:(n.elClasses||[]).filter($n)}))}}applyQueueudDomNodes(){const{queuedDomNodes:t,currentDomNodes:e}=this,n=this.base;if(!Ne(t,e)){e.forEach(Zt);for(let e of t)n.appendChild(e);this.currentDomNodes=t}}}function Fn(t,e){var n;return Boolean(e.handleCustomRendering&&t&&(null===(n=e.customRenderingMetaMap)||void 0===n?void 0:n[t]))}function Yn(t,e,n){const i=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(i.className=(t.elClasses||[]).concat(e||[]).concat(i.className||[]).filter(Boolean).join(" ")),t.elStyle&&(i.style=t.elStyle),i}function $n(t){return Boolean(t)}Wn.addPropsEquality({elClasses:Ne,elStyle:Tn,elAttrs:function(t,e){const n=Mn(t,e);for(let t of n)if(!Nn.test(t))return!1;return!0},renderProps:Tn});const qn=Hn(0);class Zn extends G{constructor(){super(...arguments),this.InnerContent=Jn.bind(void 0,this),this.handleEl=t=>{this.el=t,this.props.elRef&&(Vn(this.props.elRef,t),t&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:t}=this,e=function(t,e){const n="function"==typeof t?t(e):t||[];return"string"==typeof n?[n]:n}(t.classNameGenerator,t.renderProps);if(t.children){const n=Yn(t,e,this.handleEl),i=t.children(this.InnerContent,t.renderProps,n);return t.elTag?_(t.elTag,n,i):i}return _(Wn,Object.assign(Object.assign({},t),{elRef:this.handleEl,elTag:t.elTag||"div",elClasses:(t.elClasses||[]).concat(e),renderId:this.context}))}componentDidMount(){var t,e;this.el?null===(e=(t=this.props).didMount)||void 0===e||e.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var t,e;null===(e=(t=this.props).willUnmount)||void 0===e||e.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}function Jn(t,e){const n=t.props;return _(Wn,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}Zn.contextType=qn;class Xn extends Ln{render(){let{props:t,context:e}=this,{options:n}=e,i={view:e.viewApi};return _(Zn,Object.assign({},t,{elTag:t.elTag||"div",elClasses:[...Kn(t.viewSpec),...t.elClasses||[]],renderProps:i,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),(()=>t.children))}}function Kn(t){return[`fc-${t.type}-view`,"fc-view"]}function ti(t,e){let n,i,r=[],{start:s}=e;for(t.sort(ei),n=0;n<t.length;n+=1)i=t[n],i.start>s&&r.push({start:s,end:i.start}),i.end>s&&(s=i.end);return s<e.end&&r.push({start:s,end:e.end}),r}function ei(t,e){return t.start.valueOf()-e.start.valueOf()}function ni(t,e){let{start:n,end:i}=t,r=null;return null!==e.start&&(n=null===n?e.start:new Date(Math.max(n.valueOf(),e.start.valueOf()))),null!=e.end&&(i=null===i?e.end:new Date(Math.min(i.valueOf(),e.end.valueOf()))),(null===n||null===i||n<i)&&(r={start:n,end:i}),r}function ii(t,e){return(null===t.end||null===e.start||t.end>e.start)&&(null===t.start||null===e.end||t.start<e.end)}function ri(t,e){return(null===t.start||null!==e.start&&e.start>=t.start)&&(null===t.end||null!==e.end&&e.end<=t.end)}function si(t,e){return(null===t.start||e>=t.start)&&(null===t.end||e<t.end)}function oi(t){let e=Math.floor(je(t.start,t.end))||1,n=Be(t.start);return{start:n,end:Oe(n,e)}}function li(t,e=Ee(0)){let n=null,i=null;if(t.end){i=Be(t.end);let n=t.end.valueOf()-i.valueOf();n&&n>=De(e)&&(i=Oe(i,1))}return t.start&&(n=Be(t.start),i&&i<=n&&(i=Oe(n,1))),{start:n,end:i}}function ai(t,e,n,i){return"year"===i?Ee(n.diffWholeYears(t,e),"year"):"month"===i?Ee(n.diffWholeMonths(t,e),"month"):function(t,e){let n=Be(t),i=Be(e);return{years:0,months:0,days:Math.round(je(n,i)),milliseconds:e.valueOf()-i.valueOf()-(t.valueOf()-n.valueOf())}}(t,e)}function ci(t,e){return"function"==typeof t&&(t=t()),null==t?e.createNowMarker():e.createMarker(t)}class ui{constructor(t){this.props=t,this.nowDate=ci(t.nowInput,t.dateEnv),this.initHiddenDays()}buildPrev(t,e,n){let{dateEnv:i}=this.props,r=i.subtract(i.startOf(e,t.currentRangeUnit),t.dateIncrement);return this.build(r,-1,n)}buildNext(t,e,n){let{dateEnv:i}=this.props,r=i.add(i.startOf(e,t.currentRangeUnit),t.dateIncrement);return this.build(r,1,n)}build(t,e,n=!0){let i,r,s,o,l,a,{props:c}=this;var u,d;return i=this.buildValidRange(),i=this.trimHiddenDays(i),n&&(u=t,t=null!=(d=i).start&&u<d.start?d.start:null!=d.end&&u>=d.end?new Date(d.end.valueOf()-1):u),r=this.buildCurrentRangeInfo(t,e),s=/^(year|month|week|day)$/.test(r.unit),o=this.buildRenderRange(this.trimHiddenDays(r.range),r.unit,s),o=this.trimHiddenDays(o),l=o,c.showNonCurrentDates||(l=ni(l,r.range)),l=this.adjustActiveRange(l),l=ni(l,i),a=ii(r.range,i),si(o,t)||(t=o.start),{currentDate:t,validRange:i,currentRange:r.range,currentRangeUnit:r.unit,isRangeAllDay:s,activeRange:l,renderRange:o,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:a,dateIncrement:this.buildDateIncrement(r.duration)}}buildValidRange(){let t=this.props.validRangeInput,e="function"==typeof t?t.call(this.props.calendarApi,this.nowDate):t;return this.refineRange(e)||{start:null,end:null}}buildCurrentRangeInfo(t,e){let n,{props:i}=this,r=null,s=null,o=null;return i.duration?(r=i.duration,s=i.durationUnit,o=this.buildRangeFromDuration(t,e,r,s)):(n=this.props.dayCount)?(s="day",o=this.buildRangeFromDayCount(t,e,n)):(o=this.buildCustomVisibleRange(t))?s=i.dateEnv.greatestWholeUnit(o.start,o.end).unit:(r=this.getFallbackDuration(),s=Te(r).unit,o=this.buildRangeFromDuration(t,e,r,s)),{duration:r,unit:s,range:o}}getFallbackDuration(){return Ee({day:1})}adjustActiveRange(t){let{dateEnv:e,usesMinMaxTime:n,slotMinTime:i,slotMaxTime:r}=this.props,{start:s,end:o}=t;return n&&(Se(i)<0&&(s=Be(s),s=e.add(s,i)),Se(r)>1&&(o=Be(o),o=Oe(o,-1),o=e.add(o,r))),{start:s,end:o}}buildRangeFromDuration(t,e,n,i){let r,s,o,{dateEnv:l,dateAlignment:a}=this.props;if(!a){let{dateIncrement:t}=this.props;a=t&&De(t)<De(n)?Te(t).unit:i}function c(){r=l.startOf(t,a),s=l.add(r,n),o={start:r,end:s}}return Se(n)<=1&&this.isHiddenDay(r)&&(r=this.skipHiddenDays(r,e),r=Be(r)),c(),this.trimHiddenDays(o)||(t=this.skipHiddenDays(t,e),c()),o}buildRangeFromDayCount(t,e,n){let i,{dateEnv:r,dateAlignment:s}=this.props,o=0,l=t;s&&(l=r.startOf(l,s)),l=Be(l),l=this.skipHiddenDays(l,e),i=l;do{i=Oe(i,1),this.isHiddenDay(i)||(o+=1)}while(o<n);return{start:l,end:i}}buildCustomVisibleRange(t){let{props:e}=this,n=e.visibleRangeInput,i="function"==typeof n?n.call(e.calendarApi,e.dateEnv.toDate(t)):n,r=this.refineRange(i);return!r||null!=r.start&&null!=r.end?r:null}buildRenderRange(t,e,n){return t}buildDateIncrement(t){let e,{dateIncrement:n}=this.props;return n||((e=this.props.dateAlignment)?Ee(1,e):t||Ee({days:1}))}refineRange(t){if(t){let e=function(t,e){let n=null,i=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(i=e.createMarker(t.end)),n||i?n&&i&&i<n?null:{start:n,end:i}:null}(t,this.props.dateEnv);return e&&(e=li(e)),e}return null}initHiddenDays(){let t,e=this.props.hiddenDays||[],n=[],i=0;for(!1===this.props.weekends&&e.push(0,6),t=0;t<7;t+=1)(n[t]=-1!==e.indexOf(t))||(i+=1);if(!i)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(t){let{start:e,end:n}=t;return e&&(e=this.skipHiddenDays(e)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==e||null==n||e<n?{start:e,end:n}:null}isHiddenDay(t){return t instanceof Date&&(t=t.getUTCDay()),this.isHiddenDayHash[t]}skipHiddenDays(t,e=1,n=!1){for(;this.isHiddenDayHash[(t.getUTCDay()+(n?e:0)+7)%7];)t=Oe(t,e);return t}}function di(t,e,n,i){return{instanceId:de(),defId:t,range:e,forcedStartTzo:null==n?null:n,forcedEndTzo:null==i?null:i}}function hi(t,e,n){let{dateEnv:i,pluginHooks:r,options:s}=n,{defs:o,instances:l}=t;l=kn(l,(t=>!o[t.defId].recurringDef));for(let t in o){let n=o[t];if(n.recurringDef){let{duration:o}=n.recurringDef;o||(o=n.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let a=fi(n,o,e,i,r.recurringTypes);for(let e of a){let n=di(t,{start:e,end:i.add(e,o)});l[n.instanceId]=n}}}return{defs:o,instances:l}}function fi(t,e,n,i,r){let s=r[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:i.subtract(n.start,e),end:n.end},i);return t.allDay&&(s=s.map(Be)),s}const pi={id:String,groupId:String,title:String,url:String,interactive:Boolean},gi={start:wn,end:wn,date:wn,allDay:Boolean},vi=Object.assign(Object.assign(Object.assign({},pi),gi),{extendedProps:wn});function mi(t,e,n,i,r=yi(n),s,o){let{refined:l,extra:a}=bi(t,n,r),c=function(t,e){let n=null;return t&&(n=t.defaultAllDay),null==n&&(n=e.options.defaultAllDay),n}(e,n),u=function(t,e,n,i){for(let r=0;r<i.length;r+=1){let s=i[r].parse(t,n);if(s){let{allDay:n}=t;return null==n&&(n=e,null==n&&(n=s.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:s.duration,typeData:s.typeData,typeId:r}}}return null}(l,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let t=Ai(l,a,e?e.sourceId:"",u.allDay,Boolean(u.duration),n,s);return t.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:t,instance:null}}let d=function(t,e,n,i){let r,s,{allDay:o}=t,l=null,a=!1,c=null;if(r=n.dateEnv.createMarkerMeta(null!=t.start?t.start:t.date),r)l=r.marker;else if(!i)return null;return null!=t.end&&(s=n.dateEnv.createMarkerMeta(t.end)),null==o&&(o=null!=e?e:(!r||r.isTimeUnspecified)&&(!s||s.isTimeUnspecified)),o&&l&&(l=Be(l)),s&&(c=s.marker,o&&(c=Be(c)),l&&c<=l&&(c=null)),c?a=!0:i||(a=n.options.forceEventDuration||!1,c=n.dateEnv.add(l,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:o,hasEnd:a,range:{start:l,end:c},forcedStartTzo:r?r.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}(l,c,n,i);if(d){let t=Ai(l,a,e?e.sourceId:"",d.allDay,d.hasEnd,n,s),i=di(t.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return o&&t.publicId&&o[t.publicId]&&(i.instanceId=o[t.publicId]),{def:t,instance:i}}return null}function bi(t,e,n=yi(e)){return An(t,n)}function yi(t){return Object.assign(Object.assign(Object.assign({},Ci),vi),t.pluginHooks.eventRefiners)}function Ai(t,e,n,i,r,s,o){let l={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(o&&t.id?o[t.id]:"")||de(),sourceId:n,allDay:i,hasEnd:r,interactive:t.interactive,ui:Ni(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let e of s.pluginHooks.eventDefMemberAdders)Object.assign(l,e(t));return Object.freeze(l.ui.classNames),Object.freeze(l.extendedProps),l}function wi(t,e,n,i,r,s){let o={defs:{},instances:{}},l=yi(n);for(let a of t){let t=mi(a,e,n,i,l,r,s);t&&Ei(t,o)}return o}function Ei(t,e={defs:{},instances:{}}){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function xi(t,e){let n=t.instances[e];if(n){let e=t.defs[n.defId],i=Si(t,(t=>{return n=e,Boolean(n.groupId&&n.groupId===t.groupId);var n}));return i.defs[e.defId]=e,i.instances[n.instanceId]=n,i}return{defs:{},instances:{}}}function ki(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Si(t,e){let n=kn(t.defs,e),i=kn(t.instances,(t=>n[t.defId]));return{defs:n,instances:i}}function Di(t){return Array.isArray(t)?t:"string"==typeof t?t.split(/\s+/):[]}const Ci={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:wn,overlap:wn,allow:wn,className:Di,classNames:Di,color:String,backgroundColor:String,borderColor:String,textColor:String},Ti={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Ni(t,e){let n=function(t,e){return Array.isArray(t)?wi(t,null,e,!0):"object"==typeof t&&t?wi([t],null,e,!0):null!=t?String(t):null}(t.constraint,e);return{display:t.display||null,startEditable:null!=t.startEditable?t.startEditable:t.editable,durationEditable:null!=t.durationEditable?t.durationEditable:t.editable,constraints:null!=n?[n]:[],overlap:null!=t.overlap?t.overlap:null,allows:null!=t.allow?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Mi(t){return t.reduce(Ri,Ti)}function Ri(t,e){return{display:null!=e.display?e.display:t.display,startEditable:null!=e.startEditable?e.startEditable:t.startEditable,durationEditable:null!=e.durationEditable?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:"boolean"==typeof e.overlap?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const Oi={id:String,defaultAllDay:Boolean,url:String,format:String,events:wn,eventDataTransform:wn,success:wn,failure:wn};function _i(t,e,n=ji(e)){let i;if("string"==typeof t?i={url:t}:"function"==typeof t||Array.isArray(t)?i={events:t}:"object"==typeof t&&t&&(i=t),i){let{refined:r,extra:s}=An(i,n),o=function(t,e){let n=e.pluginHooks.eventSourceDefs;for(let e=n.length-1;e>=0;e-=1){let i=n[e].parseMeta(t);if(i)return{sourceDefId:e,meta:i}}return null}(r,e);if(o)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:r.defaultAllDay,eventDataTransform:r.eventDataTransform,success:r.success,failure:r.failure,publicId:r.id||"",sourceId:de(),sourceDefId:o.sourceDefId,meta:o.meta,ui:Ni(r,e),extendedProps:s}}return null}function ji(t){return Object.assign(Object.assign(Object.assign({},Ci),Oi),t.pluginHooks.eventSourceRefiners)}function Ii(t,e,n){let i=n.options.eventDataTransform,r=e?e.eventDataTransform:null;return r&&(t=Bi(t,r)),i&&(t=Bi(t,i)),t}function Bi(t,e){let n;if(e){n=[];for(let i of t){let t=e(i);t?n.push(t):null==t&&n.push(i)}}else n=t;return n}function zi(t,e,n){let{defs:i}=t,r=Sn(t.instances,(t=>i[t.defId].allDay?t:Object.assign(Object.assign({},t),{range:{start:n.createMarker(e.toDate(t.range.start,t.forcedStartTzo)),end:n.createMarker(e.toDate(t.range.end,t.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:t.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:t.forcedEndTzo})));return{defs:i,instances:r}}function Hi(t,e){return Si(t,(t=>t.sourceId!==e))}class Pi{constructor(){this.handlers={},this.thisContext=null}setThisContext(t){this.thisContext=t}setOptions(t){this.options=t}on(t,e){!function(t,e,n){(t[e]||(t[e]=[])).push(n)}(this.handlers,t,e)}off(t,e){!function(t,e,n){n?t[e]&&(t[e]=t[e].filter((t=>t!==n))):delete t[e]}(this.handlers,t,e)}trigger(t,...e){let n=[].concat(this.options&&this.options[t]||[],this.handlers[t]||[]);for(let t of n)t.apply(this.thisContext,e)}hasHandlers(t){return Boolean(this.handlers[t]&&this.handlers[t].length||this.options&&this.options[t])}}const Gi={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Ui(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},Qi(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Qi(t,e){let n={};for(let i of e.pluginHooks.dateSpanTransforms)Object.assign(n,i(t,e));var i;return Object.assign(n,(i=t,Object.assign(Object.assign({},pr(i.range,e.dateEnv,i.allDay)),{allDay:i.allDay}))),n}function Li(t,e,n){let{dateEnv:i,options:r}=n,s=e;return t?(s=Be(s),s=i.add(s,r.defaultAllDayEventDuration)):s=i.add(s,r.defaultTimedEventDuration),s}function Vi(t,e,n,i){let r=tr(t.defs,e),s={defs:{},instances:{}};for(let e in t.defs)s.defs[e]=Wi(t.defs[e],r[e],n,i);for(let e in t.instances){let o=t.instances[e];s.instances[e]=Fi(o,s.defs[o.defId],r[o.defId],n,i)}return s}function Wi(t,e,n,i){let r=n.standardProps||{};null==r.hasEnd&&e.durationEditable&&(n.startDelta||n.endDelta)&&(r.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),r),{ui:Object.assign(Object.assign({},t.ui),r.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let t of i.pluginHooks.eventDefMutationAppliers)t(s,n,i);return!s.hasEnd&&i.options.forceEventDuration&&(s.hasEnd=!0),s}function Fi(t,e,n,i,r){let{dateEnv:s}=r,o=i.standardProps&&!0===i.standardProps.allDay,l=i.standardProps&&!1===i.standardProps.hasEnd,a=Object.assign({},t);return o&&(a.range=oi(a.range)),i.datesDelta&&n.startEditable&&(a.range={start:s.add(a.range.start,i.datesDelta),end:s.add(a.range.end,i.datesDelta)}),i.startDelta&&n.durationEditable&&(a.range={start:s.add(a.range.start,i.startDelta),end:a.range.end}),i.endDelta&&n.durationEditable&&(a.range={start:a.range.start,end:s.add(a.range.end,i.endDelta)}),l&&(a.range={start:a.range.start,end:Li(e.allDay,a.range.start,r)}),e.allDay&&(a.range={start:Be(a.range.start),end:Be(a.range.end)}),a.range.end<a.range.start&&(a.range.end=Li(e.allDay,a.range.start,r)),a}class Yi{constructor(t,e){this.context=t,this.internalEventSource=e}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 $i{constructor(t,e,n){this._context=t,this._def=e,this._instance=n||null}setProp(t,e){if(t in gi)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===t)e=pi[t](e),this.mutate({standardProps:{publicId:e}});else if(t in pi)e=pi[t](e),this.mutate({standardProps:{[t]:e}});else if(t in Ci){let n=Ci[t](e);n="color"===t?{backgroundColor:e,borderColor:e}:"editable"===t?{startEditable:e,durationEditable:e}:{[t]:e},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${t}'. Use setExtendedProp instead.`)}setExtendedProp(t,e){this.mutate({extendedProps:{[t]:e}})}setStart(t,e={}){let{dateEnv:n}=this._context,i=n.createMarker(t);if(i&&this._instance){let t=ai(this._instance.range.start,i,n,e.granularity);this.mutate(e.maintainDuration?{datesDelta:t}:{startDelta:t})}}setEnd(t,e={}){let n,{dateEnv:i}=this._context;if((null==t||(n=i.createMarker(t),n))&&this._instance)if(n){let t=ai(this._instance.range.end,n,i,e.granularity);this.mutate({endDelta:t})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(t,e,n={}){let i,{dateEnv:r}=this._context,s={allDay:n.allDay},o=r.createMarker(t);var l,a;if(o&&(null==e||(i=r.createMarker(e),i))&&this._instance){let t=this._instance.range;!0===n.allDay&&(t=oi(t));let e=ai(t.start,o,r,n.granularity);if(i){let o=ai(t.end,i,r,n.granularity);this.mutate((l=e).years===(a=o).years&&l.months===a.months&&l.days===a.days&&l.milliseconds===a.milliseconds?{datesDelta:e,standardProps:s}:{startDelta:e,endDelta:o,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:e,standardProps:s})}}moveStart(t){let e=Ee(t);e&&this.mutate({startDelta:e})}moveEnd(t){let e=Ee(t);e&&this.mutate({endDelta:e})}moveDates(t){let e=Ee(t);e&&this.mutate({datesDelta:e})}setAllDay(t,e={}){let n={allDay:t},{maintainDuration:i}=e;null==i&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==t&&(n.hasEnd=i),this.mutate({standardProps:n})}formatRange(t){let{dateEnv:e}=this._context,n=this._instance,i=un(t);return this._def.hasEnd?e.formatRange(n.range.start,n.range.end,i,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):e.format(n.range.start,i,{forcedTzo:n.forcedStartTzo})}mutate(t){let e=this._instance;if(e){let n=this._def,i=this._context,{eventStore:r}=i.getCurrentData(),s=xi(r,e.instanceId);s=Vi(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,i);let o=new $i(i,n,e);this._def=s.defs[n.defId],this._instance=s.instances[e.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:s}),i.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:Zi(s,i,e),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:r})}})}}remove(){let t=this._context,e=qi(this);t.dispatch({type:"REMOVE_EVENTS",eventStore:e}),t.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:e})}})}get source(){let{sourceId:t}=this._def;return t?new Yi(this._context,this._context.getCurrentData().eventSources[t]):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 t=this._instance;return t?this._context.dateEnv.formatIso(t.range.start,{omitTime:this._def.allDay,forcedTzo:t.forcedStartTzo}):""}get endStr(){let t=this._instance;return t&&this._def.hasEnd?this._context.dateEnv.formatIso(t.range.end,{omitTime:this._def.allDay,forcedTzo:t.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(t={}){let e=this._def,{ui:n}=e,{startStr:i,endStr:r}=this,s={allDay:e.allDay};return e.title&&(s.title=e.title),i&&(s.start=i),r&&(s.end=r),e.publicId&&(s.id=e.publicId),e.groupId&&(s.groupId=e.groupId),e.url&&(s.url=e.url),n.display&&"auto"!==n.display&&(s.display=n.display),t.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?s.color=n.backgroundColor:(n.backgroundColor&&(s.backgroundColor=n.backgroundColor),n.borderColor&&(s.borderColor=n.borderColor)),n.textColor&&(s.textColor=n.textColor),n.classNames.length&&(s.classNames=n.classNames),Object.keys(e.extendedProps).length&&(t.collapseExtendedProps?Object.assign(s,e.extendedProps):s.extendedProps=e.extendedProps),s}toJSON(){return this.toPlainObject()}}function qi(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function Zi(t,e,n){let{defs:i,instances:r}=t,s=[],o=n?n.instanceId:"";for(let t in r){let n=r[t];n.instanceId!==o&&s.push(new $i(e,i[n.defId],n))}return s}function Ji(t,e,n,i){let r={},s={},o={},l=[],a=[],c=tr(t.defs,e);for(let e in t.defs){let n=t.defs[e];"inverse-background"===c[n.defId].display&&(n.groupId?(r[n.groupId]=[],o[n.groupId]||(o[n.groupId]=n)):s[e]=[])}for(let e in t.instances){let o=t.instances[e],u=t.defs[o.defId],d=c[u.defId],h=o.range,f=!u.allDay&&i?li(h,i):h,p=ni(f,n);p&&("inverse-background"===d.display?u.groupId?r[u.groupId].push(p):s[o.defId].push(p):"none"!==d.display&&("background"===d.display?l:a).push({def:u,ui:d,instance:o,range:p,isStart:f.start&&f.start.valueOf()===p.start.valueOf(),isEnd:f.end&&f.end.valueOf()===p.end.valueOf()}))}for(let t in r){let e=ti(r[t],n);for(let n of e){let e=o[t];l.push({def:e,ui:c[e.defId],instance:null,range:n,isStart:!1,isEnd:!1})}}for(let e in s){let i=ti(s[e],n);for(let n of i)l.push({def:t.defs[e],ui:c[e],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:l,fg:a}}function Xi(t,e){t.fcSeg=e}function Ki(t){return t.fcSeg||t.parentNode.fcSeg||null}function tr(t,e){return Sn(t,(t=>er(t,e)))}function er(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Mi(n)}function nr(t,e){let n=t.map(ir);return n.sort(((t,n)=>function(t,e,n){let i,r;for(i=0;i<n.length;i+=1)if(r=pe(t,e,n[i]),r)return r;return 0}(t,n,e))),n.map((t=>t._seg))}function ir(t){let{eventRange:e}=t,n=e.def,i=e.instance?e.instance.range:e.range,r=i.start?i.start.valueOf():0,s=i.end?i.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:r,end:s,duration:s-r,allDay:Number(n.allDay),_seg:t})}function rr(t,e){let{pluginHooks:n}=e,i=n.isDraggableTransformers,{def:r,ui:s}=t.eventRange,o=s.startEditable;for(let t of i)o=t(o,r,s,e);return o}function sr(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function or(t){return t.isEnd&&t.eventRange.ui.durationEditable}function lr(t,e,n,i,r,s,o){let{dateEnv:l,options:a}=n,{displayEventTime:c,displayEventEnd:u}=a,d=t.eventRange.def,h=t.eventRange.instance;null==c&&(c=!1!==i),null==u&&(u=!1!==r);let f=h.range.start,p=h.range.end,g=s||t.start||t.eventRange.range.start,v=o||t.end||t.eventRange.range.end,m=Be(f).valueOf()===Be(g).valueOf(),b=Be(_e(p,-1)).valueOf()===Be(_e(v,-1)).valueOf();return c&&!d.allDay&&(m||b)?(g=m?f:g,v=b?p:v,u&&d.hasEnd?l.formatRange(g,v,e,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:o?null:h.forcedEndTzo}):l.format(g,e,{forcedTzo:s?null:h.forcedStartTzo})):""}function ar(t,e,n){let i=t.eventRange.range;return{isPast:i.end<=(n||e.start),isFuture:i.start>=(n||e.end),isToday:e&&si(e,i.start)}}function cr(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function ur(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function dr(t,e){let{def:n,instance:i}=t.eventRange,{url:r}=n;if(r)return{href:r};let{emitter:s,options:o}=e,{eventInteractive:l}=o;return null==l&&(l=n.interactive,null==l&&(l=Boolean(s.hasHandlers("eventClick")))),l?ce((t=>{s.trigger("eventClick",{el:t.target,event:new $i(e,n,i),jsEvent:t,view:e.viewApi})})):{}}const hr={start:wn,end:wn,allDay:Boolean};function fr(t,e,n){return Object.assign(Object.assign({},pr(t,e,n)),{timeZone:e.timeZone})}function pr(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}class gr extends Error{constructor(t,e){super(t),this.response=e}}let vr;function mr(){return null==vr&&(vr=function(){if("undefined"==typeof document)return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let e=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),e}()),vr}class br extends Ln{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{Bn((()=>{this.setState({forPrint:!0})}))},this.handleAfterPrint=()=>{Bn((()=>{this.setState({forPrint:!1})}))}}render(){let{props:t}=this,{options:e}=t,{forPrint:n}=this.state,i=n||"auto"===e.height||"auto"===e.contentHeight,r=i||null==e.height?"":e.height,s=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${e.direction}`,t.theme.getClass("root")];return mr()||s.push("fc-liquid-hack"),t.children(s,r,i,n)}componentDidMount(){let{emitter:t}=this.props;t.on("_beforeprint",this.handleBeforePrint),t.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:t}=this.props;t.off("_beforeprint",this.handleBeforePrint),t.off("_afterprint",this.handleAfterPrint)}}class yr{constructor(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}destroy(){}}function Ar(t){return{[t.component.uid]:t}}const wr={};class Er{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(t){this.currentDataManager.dispatch(t)}get view(){return this.getCurrentData().viewApi}batchRendering(t){t()}updateSize(){this.trigger("_resize",!0)}setOption(t,e){this.dispatch({type:"SET_OPTION",optionName:t,rawOptionValue:e})}getOption(t){return this.currentDataManager.currentCalendarOptionsInput[t]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(t,e){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[t]?n.emitter.on(t,e):console.warn(`Unknown listener name '${t}'`)}off(t,e){this.currentDataManager.emitter.off(t,e)}trigger(t,...e){this.currentDataManager.emitter.trigger(t,...e)}changeView(t,e){this.batchRendering((()=>{if(this.unselect(),e)if(e.start&&e.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:e});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t,dateMarker:n.createMarker(e)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t})}))}zoomTo(t,e){let n;n=this.getCurrentData().viewSpecs[e=e||"day"]||this.getUnitViewSpec(e),this.unselect(),this.dispatch(n?{type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:t}:{type:"CHANGE_DATE",dateMarker:t})}getUnitViewSpec(t){let e,n,{viewSpecs:i,toolbarConfig:r}=this.getCurrentData(),s=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]);for(let t in i)s.push(t);for(e=0;e<s.length;e+=1)if(n=i[s[e]],n&&n.singleUnit===t)return n;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,-1)})}nextYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,1)})}today(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:ci(t.calendarOptions.now,t.dateEnv)})}gotoDate(t){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.createMarker(t)})}incrementDate(t){let e=this.getCurrentData(),n=Ee(t);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.add(e.currentDate,n)}))}getDate(){let t=this.getCurrentData();return t.dateEnv.toDate(t.currentDate)}formatDate(t,e){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(t),un(e))}formatRange(t,e,n){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(t),i.createMarker(e),un(n),n)}formatIso(t,e){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(t),{omitTime:e})}select(t,e){let n;n=null==e?null!=t.start?t:{start:t,end:null}:{start:t,end:e};let i=this.getCurrentData(),r=function(t,e,n){let i=function(t,e){let{refined:n,extra:i}=An(t,hr),r=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:o}=n;return null==o&&(o=r&&r.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:r?r.marker:null,end:s?s.marker:null},allDay:o},i)}(t,e),{range:r}=i;if(!r.start)return null;if(!r.end){if(null==n)return null;r.end=e.add(r.start,n)}return i}(n,i.dateEnv,Ee({days:1}));r&&(this.dispatch({type:"SELECT_DATES",selection:r}),Ui(r,null,i))}unselect(t){let e=this.getCurrentData();e.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}(t,e))}addEvent(t,e){if(t instanceof $i){let e=t._def,n=t._instance;return this.getCurrentData().eventStore.defs[e.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Ei({def:e,instance:n})}),this.triggerEventAdd(t)),t}let n,i=this.getCurrentData();if(e instanceof Yi)n=e.internalEventSource;else if("boolean"==typeof e)e&&([n]=Cn(i.eventSources));else if(null!=e){let t=this.getEventSourceById(e);if(!t)return console.warn(`Could not find an event source with ID "${e}"`),null;n=t.internalEventSource}let r=mi(t,n,i,!1);if(r){let t=new $i(i,r.def,r.def.recurringDef?null:r.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Ei(r)}),this.triggerEventAdd(t),t}return null}triggerEventAdd(t){let{emitter:e}=this.getCurrentData();e.trigger("eventAdd",{event:t,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:qi(t)})}})}getEventById(t){let e=this.getCurrentData(),{defs:n,instances:i}=e.eventStore;t=String(t);for(let r in n){let s=n[r];if(s.publicId===t){if(s.recurringDef)return new $i(e,s,null);for(let t in i){let n=i[t];if(n.defId===s.defId)return new $i(e,s,n)}}}return null}getEvents(){let t=this.getCurrentData();return Zi(t.eventStore,t)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let t=this.getCurrentData(),e=t.eventSources,n=[];for(let i in e)n.push(new Yi(t,e[i]));return n}getEventSourceById(t){let e=this.getCurrentData(),n=e.eventSources;t=String(t);for(let i in n)if(n[i].publicId===t)return new Yi(e,n[i]);return null}addEventSource(t){let e=this.getCurrentData();if(t instanceof Yi)return e.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;let n=_i(t,e);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new Yi(e,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(t){let e=Ee(t);e&&this.trigger("_scrollRequest",{time:e})}}function xr(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function kr(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom&&n}const Sr={defs:{},instances:{}};class Dr{constructor(){this.getKeysForEventDefs=$e(this._getKeysForEventDefs),this.splitDateSelection=$e(this._splitDateSpan),this.splitEventStore=$e(this._splitEventStore),this.splitIndividualUi=$e(this._splitIndividualUi),this.splitEventDrag=$e(this._splitInteraction),this.splitEventResize=$e(this._splitInteraction),this.eventUiBuilders={}}splitProps(t){let e=this.getKeyInfo(t),n=this.getKeysForEventDefs(t.eventStore),i=this.splitDateSelection(t.dateSelection),r=this.splitIndividualUi(t.eventUiBases,n),s=this.splitEventStore(t.eventStore,n),o=this.splitEventDrag(t.eventDrag),l=this.splitEventResize(t.eventResize),a={};this.eventUiBuilders=Sn(e,((t,e)=>this.eventUiBuilders[e]||$e(Cr)));for(let n in e){let c=e[n],u=s[n]||Sr;a[n]={businessHours:c.businessHours||t.businessHours,dateSelection:i[n]||null,eventStore:u,eventUiBases:(0,this.eventUiBuilders[n])(t.eventUiBases[""],c.ui,r[n]),eventSelection:u.instances[t.eventSelection]?t.eventSelection:"",eventDrag:o[n]||null,eventResize:l[n]||null}}return a}_splitDateSpan(t){let e={};if(t){let n=this.getKeysForDateSpan(t);for(let i of n)e[i]=t}return e}_getKeysForEventDefs(t){return Sn(t.defs,(t=>this.getKeysForEventDef(t)))}_splitEventStore(t,e){let{defs:n,instances:i}=t,r={};for(let t in n)for(let i of e[t])r[i]||(r[i]={defs:{},instances:{}}),r[i].defs[t]=n[t];for(let t in i){let n=i[t];for(let i of e[n.defId])r[i]&&(r[i].instances[t]=n)}return r}_splitIndividualUi(t,e){let n={};for(let i in t)if(i)for(let r of e[i])n[r]||(n[r]={}),n[r][i]=t[i];return n}_splitInteraction(t){let e={};if(t){let n=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),i=this._getKeysForEventDefs(t.mutatedEvents),r=this._splitEventStore(t.mutatedEvents,i),s=i=>{e[i]||(e[i]={affectedEvents:n[i]||Sr,mutatedEvents:r[i]||Sr,isEvent:t.isEvent})};for(let t in n)s(t);for(let t in r)s(t)}return e}}function Cr(t,e,n){let i=[];t&&i.push(t),e&&i.push(e);let r={"":Mi(i)};return n&&Object.assign(r,n),r}function Tr(t,e,n,i){return{dow:t.getUTCDay(),isDisabled:Boolean(i&&!si(i.activeRange,t)),isOther:Boolean(i&&!si(i.currentRange,t)),isToday:Boolean(e&&si(e,t)),isPast:Boolean(n?t<n:!!e&&t<e.start),isFuture:Boolean(n?t>n:!!e&&t>=e.end)}}function Nr(t,e){let n=["fc-day",`fc-day-${Me[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const Mr=un({year:"numeric",month:"long",day:"numeric"}),Rr=un({week:"long"});function Or(t,e,n="day",i=!0){const{dateEnv:r,options:s,calendarApi:o}=t;let l=r.format(e,"week"===n?Rr:Mr);if(s.navLinks){let t=r.toDate(e);const a=t=>{let i="day"===n?s.navLinkDayClick:"week"===n?s.navLinkWeekClick:null;"function"==typeof i?i.call(o,r.toDate(e),t):("string"==typeof i&&(n=i),o.zoomTo(e,n))};return Object.assign({title:ve(s.navLinkHint,[l,t],l),"data-navlink":""},i?ae(a):{onClick:a})}return{"aria-label":l}}let _r,jr=null;function Ir(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Br(t,e=!1,n){let i=n?t.getBoundingClientRect():zr(t),r=function(t,e=!1){let n=window.getComputedStyle(t),i=parseInt(n.borderLeftWidth,10)||0,r=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,l=Ir(t),a=l.y-i-r,c={borderLeft:i,borderRight:r,borderTop:s,borderBottom:o,scrollbarBottom:l.x-s-o,scrollbarLeft:0,scrollbarRight:0};return null===jr&&(jr=function(){let t=document.createElement("div");te(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let e=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return Zt(t),e}()),jr&&"rtl"===n.direction?c.scrollbarLeft=a:c.scrollbarRight=a,e&&(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}(t,e),s={left:i.left+r.borderLeft+r.scrollbarLeft,right:i.right-r.borderRight-r.scrollbarRight,top:i.top+r.borderTop,bottom:i.bottom-r.borderBottom-r.scrollbarBottom};return e&&(s.left+=r.paddingLeft,s.right-=r.paddingRight,s.top+=r.paddingTop,s.bottom-=r.paddingBottom),s}function zr(t){let e=t.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY}}function Hr(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class Pr{constructor(t,e,n,i){this.els=e;let r=this.originClientRect=t.getBoundingClientRect();n&&this.buildElHorizontals(r.left),i&&this.buildElVerticals(r.top)}buildElHorizontals(t){let e=[],n=[];for(let i of this.els){let r=i.getBoundingClientRect();e.push(r.left-t),n.push(r.right-t)}this.lefts=e,this.rights=n}buildElVerticals(t){let e=[],n=[];for(let i of this.els){let r=i.getBoundingClientRect();e.push(r.top-t),n.push(r.bottom-t)}this.tops=e,this.bottoms=n}leftToIndex(t){let e,{lefts:n,rights:i}=this,r=n.length;for(e=0;e<r;e+=1)if(t>=n[e]&&t<i[e])return e}topToIndex(t){let e,{tops:n,bottoms:i}=this,r=n.length;for(e=0;e<r;e+=1)if(t>=n[e]&&t<i[e])return e}getWidth(t){return this.rights[t]-this.lefts[t]}getHeight(t){return this.bottoms[t]-this.tops[t]}similarTo(t){return Gr(this.tops||[],t.tops||[])&&Gr(this.bottoms||[],t.bottoms||[])&&Gr(this.lefts||[],t.lefts||[])&&Gr(this.rights||[],t.rights||[])}}function Gr(t,e){const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(Math.round(t[i])!==Math.round(e[i]))return!1;return!0}class Ur{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 Qr extends Ur{constructor(t){super(),this.el=t}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(t){this.el.scrollTop=t}setScrollLeft(t){this.el.scrollLeft=t}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Lr extends Ur{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(t){window.scroll(window.scrollX,t)}setScrollLeft(t){window.scroll(t,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Vr extends Ln{constructor(){super(...arguments),this.uid=de()}prepareHits(){}queryHit(t,e,n,i){return null}isValidSegDownEl(t){return!this.props.eventDrag&&!this.props.eventResize&&!Jt(t,".fc-event-mirror")}isValidDateDownEl(t){return!(Jt(t,".fc-event:not(.fc-bg-event)")||Jt(t,".fc-more-link")||Jt(t,"a[data-navlink]")||Jt(t,".fc-popover"))}}class Wr{constructor(t=(t=>t.thickness||1)){this.getEntryThickness=t,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(t){let e=[];for(let n of t)this.insertEntry(n,e);return e}insertEntry(t,e){let n=this.findInsertion(t);this.isInsertionValid(n,t)?this.insertEntryAt(t,n):this.handleInvalidInsertion(n,t,e)}isInsertionValid(t,e){return(-1===this.maxCoord||t.levelCoord+this.getEntryThickness(e)<=this.maxCoord)&&(-1===this.maxStackCnt||t.stackCnt<this.maxStackCnt)}handleInvalidInsertion(t,e,n){if(this.allowReslicing&&t.touchingEntry){const i=Object.assign(Object.assign({},e),{span:$r(e.span,t.touchingEntry.span)});n.push(i),this.splitEntry(e,t.touchingEntry,n)}else n.push(e)}splitEntry(t,e,n){let i=t.span,r=e.span;i.start<r.start&&this.insertEntry({index:t.index,thickness:t.thickness,span:{start:i.start,end:r.start}},n),i.end>r.end&&this.insertEntry({index:t.index,thickness:t.thickness,span:{start:r.end,end:i.end}},n)}insertEntryAt(t,e){let{entriesByLevel:n,levelCoords:i}=this;-1===e.lateral?(qr(i,e.level,e.levelCoord),qr(n,e.level,[t])):qr(n[e.level],e.lateral,t),this.stackCnts[Yr(t)]=e.stackCnt}findInsertion(t){let{levelCoords:e,entriesByLevel:n,strictOrder:i,stackCnts:r}=this,s=e.length,o=0,l=-1,a=-1,c=null,u=0;for(let d=0;d<s;d+=1){const s=e[d];if(!i&&s>=o+this.getEntryThickness(t))break;let h,f=n[d],p=Zr(f,t.span.start,Fr),g=p[0]+p[1];for(;(h=f[g])&&h.span.start<t.span.end;){let t=s+this.getEntryThickness(h);t>o&&(o=t,c=h,l=d,a=g),t===o&&(u=Math.max(u,r[Yr(h)]+1)),g+=1}}let d=0;if(c)for(d=l+1;d<s&&e[d]<o;)d+=1;let h=-1;return d<s&&e[d]===o&&(h=Zr(n[d],t.span.end,Fr)[0]),{touchingLevel:l,touchingLateral:a,touchingEntry:c,stackCnt:u,levelCoord:o,level:d,lateral:h}}toRects(){let{entriesByLevel:t,levelCoords:e}=this,n=t.length,i=[];for(let r=0;r<n;r+=1){let n=t[r],s=e[r];for(let t of n)i.push(Object.assign(Object.assign({},t),{thickness:this.getEntryThickness(t),levelCoord:s}))}return i}}function Fr(t){return t.span.end}function Yr(t){return t.index+":"+t.span.start}function $r(t,e){let n=Math.max(t.start,e.start),i=Math.min(t.end,e.end);return n<i?{start:n,end:i}:null}function qr(t,e,n){t.splice(e,0,n)}function Zr(t,e,n){let i=0,r=t.length;if(!r||e<n(t[i]))return[0,0];if(e>n(t[r-1]))return[r,0];for(;i<r;){let s=Math.floor(i+(r-i)/2),o=n(t[s]);if(e<o)r=s;else{if(!(e>o))return[s,1];i=s+1}}return[i,0]}class Jr{constructor(t,e){this.emitter=new Pi}destroy(){}setMirrorIsVisible(t){}setMirrorNeedsRevert(t){}setAutoScrollEnabled(t){}}const Xr={},Kr="fc-col-header-cell";function ts(t){return t.text}class es extends Ln{render(){let{dateEnv:t,options:e,theme:n,viewApi:i}=this.context,{props:r}=this,{date:s,dateProfile:o}=r,l=Tr(s,r.todayRange,null,o),a=[Kr].concat(Nr(l,n)),c=t.format(s,r.dayHeaderFormat),u=!l.isDisabled&&r.colCnt>1?Or(this.context,s):{},d=Object.assign(Object.assign(Object.assign({date:t.toDate(s),view:i},r.extraRenderProps),{text:c}),l);return _(Zn,{elTag:"th",elClasses:a,elAttrs:Object.assign({role:"columnheader",colSpan:r.colSpan,"data-date":l.isDisabled?void 0:Fe(s)},r.extraDataAttrs),renderProps:d,generatorName:"dayHeaderContent",customGenerator:e.dayHeaderContent,defaultGenerator:ts,classNameGenerator:e.dayHeaderClassNames,didMount:e.dayHeaderDidMount,willUnmount:e.dayHeaderWillUnmount},(t=>_("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&_(t,{elTag:"a",elAttrs:u,elClasses:["fc-col-header-cell-cushion",r.isSticky&&"fc-sticky"]}))))}}const ns=un({weekday:"long"});class is extends Ln{render(){let{props:t}=this,{dateEnv:e,theme:n,viewApi:i,options:r}=this.context,s=Oe(new Date(2592e5),t.dow),o={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=e.format(s,t.dayHeaderFormat),a=Object.assign(Object.assign(Object.assign(Object.assign({date:s},o),{view:i}),t.extraRenderProps),{text:l});return _(Zn,{elTag:"th",elClasses:[Kr,...Nr(o,n),...t.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:t.colSpan},t.extraDataAttrs),renderProps:a,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:ts,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},(n=>_("div",{className:"fc-scrollgrid-sync-inner"},_(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",t.isSticky&&"fc-sticky"],elAttrs:{"aria-label":e.format(s,ns)}}))))}}class rs extends G{constructor(t,e){super(t,e),this.initialNowDate=ci(e.options.now,e.dateEnv),this.initialNowQueriedMs=(new Date).valueOf(),this.state=this.computeTiming().currentState}render(){let{props:t,state:e}=this;return t.children(e.nowDate,e.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(t){t.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:t,context:e}=this,n=_e(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),i=e.dateEnv.startOf(n,t.unit),r=e.dateEnv.add(i,Ee(1,t.unit)),s=r.valueOf()-n.valueOf();return s=Math.min(864e5,s),{currentState:{nowDate:i,todayRange:ss(i)},nextState:{nowDate:r,todayRange:ss(r)},waitMs:s}}setTimeout(){let{nextState:t,waitMs:e}=this.computeTiming();this.timeoutId=setTimeout((()=>{this.setState(t,(()=>{this.setTimeout()}))}),e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function ss(t){let e=Be(t);return{start:e,end:Oe(e,1)}}rs.contextType=Gn;class os extends Ln{constructor(){super(...arguments),this.createDayHeaderFormatter=$e(ls)}render(){let{context:t}=this,{dates:e,dateProfile:n,datesRepDistinctDays:i,renderIntro:r}=this.props,s=this.createDayHeaderFormatter(t.options.dayHeaderFormat,i,e.length);return _(rs,{unit:"day"},((t,o)=>_("tr",{role:"row"},r&&r("day"),e.map((t=>i?_(es,{key:t.toISOString(),date:t,dateProfile:n,todayRange:o,colCnt:e.length,dayHeaderFormat:s}):_(is,{key:t.getUTCDay(),dow:t.getUTCDay(),dayHeaderFormat:s}))))))}}function ls(t,e,n){return t||function(t,e){return un(!t||e>10?{weekday:"short"}:e>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(e,n)}class as{constructor(t,e){let n=t.start,{end:i}=t,r=[],s=[],o=-1;for(;n<i;)e.isHiddenDay(n)?r.push(o+.5):(o+=1,r.push(o),s.push(n)),n=Oe(n,1);this.dates=s,this.indices=r,this.cnt=s.length}sliceRange(t){let e=this.getDateDayIndex(t.start),n=this.getDateDayIndex(Oe(t.end,-1)),i=Math.max(0,e),r=Math.min(this.cnt-1,n);return i=Math.ceil(i),r=Math.floor(r),i<=r?{firstIndex:i,lastIndex:r,isStart:e===i,isEnd:n===r}:null}getDateDayIndex(t){let{indices:e}=this,n=Math.floor(je(this.dates[0],t));return n<0?e[0]-1:n>=e.length?e[e.length-1]+1:e[n]}}class cs{constructor(t,e){let n,i,r,{dates:s}=t;if(e){for(i=s[0].getUTCDay(),n=1;n<s.length&&s[n].getUTCDay()!==i;n+=1);r=Math.ceil(s.length/n)}else r=1,n=s.length;this.rowCnt=r,this.colCnt=n,this.daySeries=t,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let t=[];for(let e=0;e<this.rowCnt;e+=1){let n=[];for(let t=0;t<this.colCnt;t+=1)n.push(this.buildCell(e,t));t.push(n)}return t}buildCell(t,e){let n=this.daySeries.dates[t*this.colCnt+e];return{key:n.toISOString(),date:n}}buildHeaderDates(){let t=[];for(let e=0;e<this.colCnt;e+=1)t.push(this.cells[0][e].date);return t}sliceRange(t){let{colCnt:e}=this,n=this.daySeries.sliceRange(t),i=[];if(n){let{firstIndex:t,lastIndex:r}=n,s=t;for(;s<=r;){let o=Math.floor(s/e),l=Math.min((o+1)*e,r+1);i.push({row:o,firstCol:s%e,lastCol:(l-1)%e,isStart:n.isStart&&s===t,isEnd:n.isEnd&&l-1===r}),s=l}}return i}}class us{constructor(){this.sliceBusinessHours=$e(this._sliceBusinessHours),this.sliceDateSelection=$e(this._sliceDateSpan),this.sliceEventStore=$e(this._sliceEventStore),this.sliceEventDrag=$e(this._sliceInteraction),this.sliceEventResize=$e(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(t,e,n,i,...r){let{eventUiBases:s}=t,o=this.sliceEventStore(t.eventStore,s,e,n,...r);return{dateSelectionSegs:this.sliceDateSelection(t.dateSelection,e,n,s,i,...r),businessHourSegs:this.sliceBusinessHours(t.businessHours,e,n,i,...r),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(t.eventDrag,s,e,n,...r),eventResize:this.sliceEventResize(t.eventResize,s,e,n,...r),eventSelection:t.eventSelection}}sliceNowDate(t,e,n,i,...r){return this._sliceDateSpan({range:{start:t,end:_e(t,1)},allDay:!1},e,n,{},i,...r)}_sliceBusinessHours(t,e,n,i,...r){return t?this._sliceEventStore(hi(t,ds(e,Boolean(n)),i),{},e,n,...r).bg:[]}_sliceEventStore(t,e,n,i,...r){if(t){let s=Ji(t,e,ds(n,Boolean(i)),i);return{bg:this.sliceEventRanges(s.bg,r),fg:this.sliceEventRanges(s.fg,r)}}return{bg:[],fg:[]}}_sliceInteraction(t,e,n,i,...r){if(!t)return null;let s=Ji(t.mutatedEvents,e,ds(n,Boolean(i)),i);return{segs:this.sliceEventRanges(s.fg,r),affectedInstances:t.affectedEvents.instances,isEvent:t.isEvent}}_sliceDateSpan(t,e,n,i,r,...s){if(!t)return[];let o=ds(e,Boolean(n)),l=ni(t.range,o);if(l){let e=function(t,e,n){let i=bi({editable:!1},n),r=Ai(i.refined,i.extra,"",t.allDay,!0,n);return{def:r,ui:er(r,e),instance:di(r.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}(t=Object.assign(Object.assign({},t),{range:l}),i,r),n=this.sliceRange(t.range,...s);for(let t of n)t.eventRange=e;return n}return[]}sliceEventRanges(t,e){let n=[];for(let i of t)n.push(...this.sliceEventRange(i,e));return n}sliceEventRange(t,e){let n=t.range;this.forceDayIfListItem&&"list-item"===t.ui.display&&(n={start:n.start,end:Oe(n.start,1)});let i=this.sliceRange(n,...e);for(let e of i)e.eventRange=t,e.isStart=t.isStart&&e.isStart,e.isEnd=t.isEnd&&e.isEnd;return i}}function ds(t,e){let n=t.activeRange;return e?n:{start:_e(n.start,t.slotMinTime.milliseconds),end:_e(n.end,t.slotMaxTime.milliseconds-864e5)}}function hs(t,e,n){let{instances:i}=t.mutatedEvents;for(let t in i)if(!ri(e.validRange,i[t].range))return!1;return fs({eventDrag:t},n)}function fs(t,e){let n=e.getCurrentData(),i=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||ps)(i,e)}function ps(t,e,n={},i){return!(t.eventDrag&&!function(t,e,n,i){let r=e.getCurrentData(),s=t.eventDrag,o=s.mutatedEvents,l=o.defs,a=o.instances,c=tr(l,s.isEvent?t.eventUiBases:{"":r.selectionConfig});i&&(c=Sn(c,i));let u=(g=s.affectedEvents.instances,{defs:(p=t.eventStore).defs,instances:kn(p.instances,(t=>!g[t.instanceId]))}),d=u.defs,h=u.instances,f=tr(d,t.eventUiBases);var p,g;for(let i in a){let o=a[i],p=o.range,g=c[o.defId],v=l[o.defId];if(!gs(g.constraints,p,u,t.businessHours,e))return!1;let{eventOverlap:m}=e.options,b="function"==typeof m?m:null;for(let t in h){let n=h[t];if(ii(p,n.range)){if(!1===f[n.defId].overlap&&s.isEvent)return!1;if(!1===g.overlap)return!1;if(b&&!b(new $i(e,d[n.defId],n),new $i(e,v,o)))return!1}}let y=r.eventStore;for(let t of g.allows){let r,s=Object.assign(Object.assign({},n),{range:o.range,allDay:v.allDay}),l=y.defs[v.defId];if(r=l?new $i(e,l,y.instances[i]):new $i(e,v),!t(Qi(s,e),r))return!1}}return!0}(t,e,n,i)||t.dateSelection&&!function(t,e,n,i){let r=t.eventStore,s=r.defs,o=r.instances,l=t.dateSelection,a=l.range,{selectionConfig:c}=e.getCurrentData();if(i&&(c=i(c)),!gs(c.constraints,a,r,t.businessHours,e))return!1;let{selectOverlap:u}=e.options,d="function"==typeof u?u:null;for(let t in o){let n=o[t];if(ii(a,n.range)){if(!1===c.overlap)return!1;if(d&&!d(new $i(e,s[n.defId],n),null))return!1}}for(let t of c.allows)if(!t(Qi(Object.assign(Object.assign({},n),l),e),null))return!1;return!0}(t,e,n,i))}function gs(t,e,n,i,r){for(let s of t)if(!bs(vs(s,e,n,i,r),e))return!1;return!0}function vs(t,e,n,i,r){return"businessHours"===t?ms(hi(i,e,r)):"string"==typeof t?ms(Si(n,(e=>e.groupId===t))):"object"==typeof t&&t?ms(hi(t,e,r)):[]}function ms(t){let{instances:e}=t,n=[];for(let t in e)n.push(e[t].range);return n}function bs(t,e){for(let n of t)if(ri(n,e))return!0;return!1}const ys=/^(visible|hidden)$/;class As extends Ln{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,Vn(this.props.elRef,t)}}render(){let{props:t}=this,{liquid:e,liquidIsAbsolute:n}=t,i=e&&n,r=["fc-scroller"];return e&&r.push(n?"fc-scroller-liquid-absolute":"fc-scroller-liquid"),_("div",{ref:this.handleEl,className:r.join(" "),style:{overflowX:t.overflowX,overflowY:t.overflowY,left:i&&-(t.overcomeLeft||0)||"",right:i&&-(t.overcomeRight||0)||"",bottom:i&&-(t.overcomeBottom||0)||"",marginLeft:!i&&-(t.overcomeLeft||0)||"",marginRight:!i&&-(t.overcomeRight||0)||"",marginBottom:!i&&-(t.overcomeBottom||0)||"",maxHeight:t.maxHeight||""}},t.children)}needsXScrolling(){if(ys.test(this.props.overflowX))return!1;let{el:t}=this,e=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=t;for(let t=0;t<n.length;t+=1)if(n[t].getBoundingClientRect().width>e)return!0;return!1}needsYScrolling(){if(ys.test(this.props.overflowY))return!1;let{el:t}=this,e=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=t;for(let t=0;t<n.length;t+=1)if(n[t].getBoundingClientRect().height>e)return!0;return!1}getXScrollbarWidth(){return ys.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return ys.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class ws{constructor(t){this.masterCallback=t,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(t,e)=>{let{depths:n,currentMap:i}=this,r=!1,s=!1;null!==t?(r=e in i,i[e]=t,n[e]=(n[e]||0)+1,s=!0):(n[e]-=1,n[e]||(delete i[e],delete this.callbackMap[e],r=!0)),this.masterCallback&&(r&&this.masterCallback(null,String(e)),s&&this.masterCallback(t,String(e)))}}createRef(t){let e=this.callbackMap[t];return e||(e=this.callbackMap[t]=e=>{this.handleValue(e,String(t))}),e}collect(t,e,n){return function(t,e=0,n,i=1){let r=[];null==n&&(n=Object.keys(t).length);for(let s=e;s<n;s+=i){let e=t[s];void 0!==e&&r.push(e)}return r}(this.currentMap,t,e,n)}getAll(){return Cn(this.currentMap)}}function Es(t,e){return t.liquid&&e.liquid}function xs(t,e){return Ne(t,e,Tn)}function ks(t,e){let n=[];for(let i of t){let t=i.span||1;for(let r=0;r<t;r+=1)n.push(_("col",{style:{width:"shrink"===i.width?Ss(e):i.width||"",minWidth:i.minWidth||""}}))}return _("colgroup",{},...n)}function Ss(t){return null==t?4:t}function Ds(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&null==t.maxHeight&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Cs(t){return _("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Ts(t){let{stickyHeaderDates:e}=t;return null!=e&&"auto"!==e||(e="auto"===t.height||"auto"===t.viewHeight),e}function Ns(t){let{stickyFooterScrollbar:e}=t;return null!=e&&"auto"!==e||(e="auto"===t.height||"auto"===t.viewHeight),e}class Ms extends Ln{constructor(){super(...arguments),this.processCols=$e((t=>t),xs),this.renderMicroColGroup=$e(ks),this.scrollerRefs=new ws,this.scrollerElRefs=new ws(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:t,state:e,context:n}=this,i=t.sections||[],r=this.processCols(t.cols),s=this.renderMicroColGroup(r,e.shrinkWidth),o=function(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}(t.liquid,n);t.collapsibleWidth&&o.push("fc-scrollgrid-collapsible");let l,a=i.length,c=0,u=[],d=[],h=[];for(;c<a&&"header"===(l=i[c]).type;)u.push(this.renderSection(l,s,!0)),c+=1;for(;c<a&&"body"===(l=i[c]).type;)d.push(this.renderSection(l,s,!1)),c+=1;for(;c<a&&"footer"===(l=i[c]).type;)h.push(this.renderSection(l,s,!0)),c+=1;let f=!mr();const p={role:"rowgroup"};return _("table",{role:"grid",className:o.join(" "),style:{height:t.height}},Boolean(!f&&u.length)&&_("thead",p,...u),Boolean(!f&&d.length)&&_("tbody",p,...d),Boolean(!f&&h.length)&&_("tfoot",p,...h),f&&_("tbody",p,...u,...d,...h))}renderSection(t,e,n){return"outerContent"in t?_(I,{key:t.key},t.outerContent):_("tr",{key:t.key,role:"presentation",className:Ds(t,this.props.liquid).join(" ")},this.renderChunkTd(t,e,t.chunk,n))}renderChunkTd(t,e,n,i){if("outerContent"in n)return n.outerContent;let{props:r}=this,{forceYScrollbars:s,scrollerClientWidths:o,scrollerClientHeights:l}=this.state,a=function(t,e){return null!=e.maxHeight||Es(t,e)}(r,t),c=Es(r,t),u=r.liquid?s?"scroll":a?"auto":"hidden":"visible",d=t.key,h=function(t,e,n,i){let{expandRows:r}=n;return"function"==typeof e.content?e.content(n):_("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:r?n.clientHeight:""}},n.tableColGroupNode,_(i?"thead":"tbody",{role:"presentation"},"function"==typeof e.rowContent?e.rowContent(n):e.rowContent))}(t,n,{tableColGroupNode:e,tableMinWidth:"",clientWidth:r.collapsibleWidth||void 0===o[d]?null:o[d],clientHeight:void 0!==l[d]?l[d]:null,expandRows:t.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return _(i?"th":"td",{ref:n.elRef,role:"presentation"},_("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},_(As,{ref:this.scrollerRefs.createRef(d),elRef:this.scrollerElRefs.createRef(d),overflowY:u,overflowX:r.liquid?"hidden":"visible",maxHeight:t.maxHeight,liquid:c,liquidIsAbsolute:!0},h)))}_handleScrollerEl(t,e){let n=function(t,e){for(let n of t)if(n.key===e)return n;return null}(this.props.sections,e);n&&Vn(n.chunk.scrollerElRef,t)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return function(t){for(let e of t)if("shrink"===e.width)return!0;return!1}(this.props.cols)?function(t){let e=function(t){let e=t instanceof HTMLElement?[t]:t,n=[];for(let t=0;t<e.length;t+=1){let i=e[t].querySelectorAll(".fc-scrollgrid-shrink");for(let t=0;t<i.length;t+=1)n.push(i[t])}return n}(t),n=0;for(let t of e)n=Math.max(n,ye(t));return Math.ceil(n)}(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let t=(_r||(_r=function(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=Ir(t);return document.body.removeChild(t),e}()),_r),{scrollerRefs:e,scrollerElRefs:n}=this,i=!1,r={},s={};for(let t in e.currentMap){let n=e.currentMap[t];if(n&&n.needsYScrolling()){i=!0;break}}for(let e of this.props.sections){let o=e.key,l=n.currentMap[o];if(l){let e=l.parentNode;r[o]=Math.floor(e.getBoundingClientRect().width-(i?t.y:0)),s[o]=Math.floor(e.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:r,scrollerClientHeights:s}}}Ms.addStateEquality({scrollerClientWidths:Tn,scrollerClientHeights:Tn});class Rs extends Ln{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,t&&Xi(t,this.props.seg)}}render(){const{props:t,context:e}=this,{options:n}=e,{seg:i}=t,{eventRange:r}=i,{ui:s}=r,o={event:new $i(e,r.def,r.instance),view:e.viewApi,timeText:t.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!t.disableDragging&&rr(i,e),isStartResizable:!t.disableResizing&&sr(i,e),isEndResizable:!t.disableResizing&&or(i),isMirror:Boolean(t.isDragging||t.isResizing||t.isDateSelecting),isStart:Boolean(i.isStart),isEnd:Boolean(i.isEnd),isPast:Boolean(t.isPast),isFuture:Boolean(t.isFuture),isToday:Boolean(t.isToday),isSelected:Boolean(t.isSelected),isDragging:Boolean(t.isDragging),isResizing:Boolean(t.isResizing)};return _(Zn,Object.assign({},t,{elRef:this.handleEl,elClasses:[...cr(o),...i.eventRange.ui.classNames,...t.elClasses||[]],renderProps:o,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:t.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(t){this.el&&this.props.seg!==t.seg&&Xi(this.el,this.props.seg)}}class Os extends Ln{render(){let{props:t,context:e}=this,{options:n}=e,{seg:i}=t,{ui:r}=i.eventRange,s=lr(i,n.eventTimeFormat||t.defaultTimeFormat,e,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return _(Rs,Object.assign({},t,{elTag:"a",elStyle:{borderColor:r.borderColor,backgroundColor:r.backgroundColor},elAttrs:dr(i,e),defaultGenerator:_s,timeText:s}),((t,e)=>_(I,null,_(t,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:e.textColor}}),Boolean(e.isStartResizable)&&_("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(e.isEndResizable)&&_("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function _s(t){return _("div",{className:"fc-event-main-frame"},t.timeText&&_("div",{className:"fc-event-time"},t.timeText),_("div",{className:"fc-event-title-container"},_("div",{className:"fc-event-title fc-sticky"},t.event.title||_(I,null," "))))}const js=t=>_(Gn.Consumer,null,(e=>{let{options:n}=e,i={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return _(Zn,Object.assign({},t,{elTag:t.elTag||"div",renderProps:i,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))})),Is=un({day:"numeric"});class Bs extends Ln{constructor(){super(...arguments),this.refineRenderProps=qe(Hs)}render(){let{props:t,context:e}=this,{options:n}=e,i=this.refineRenderProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,isMonthStart:t.isMonthStart||!1,showDayNumber:t.showDayNumber,extraRenderProps:t.extraRenderProps,viewApi:e.viewApi,dateEnv:e.dateEnv,monthStartFormat:n.monthStartFormat});return _(Zn,Object.assign({},t,{elClasses:[...Nr(i,e.theme),...t.elClasses||[]],elAttrs:Object.assign(Object.assign({},t.elAttrs),i.isDisabled?{}:{"data-date":Fe(t.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:t.defaultGenerator,classNameGenerator:i.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function zs(t){return Boolean(t.dayCellContent||Fn("dayCellContent",t))}function Hs(t){let{date:e,dateEnv:n,dateProfile:i,isMonthStart:r}=t,s=Tr(e,t.todayRange,null,i),o=t.showDayNumber?n.format(e,r?t.monthStartFormat:Is):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:r,dayNumberText:o}),t.extraRenderProps)}class Ps extends Ln{render(){let{props:t}=this,{seg:e}=t;return _(Rs,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:e.eventRange.ui.backgroundColor},defaultGenerator:Gs,seg:e,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday,disableDragging:!0,disableResizing:!0})}}function Gs(t){let{title:e}=t.event;return e&&_("div",{className:"fc-event-title"},t.event.title)}function Us(t){return _("div",{className:`fc-${t}`})}const Qs=t=>_(Gn.Consumer,null,(e=>{let{dateEnv:n,options:i}=e,{date:r}=t,s=i.weekNumberFormat||t.defaultFormat,o=n.computeWeekNumber(r),l=n.format(r,s);return _(Zn,Object.assign({},t,{renderProps:{num:o,text:l,date:r},generatorName:"weekNumberContent",customGenerator:i.weekNumberContent,defaultGenerator:Ls,classNameGenerator:i.weekNumberClassNames,didMount:i.weekNumberDidMount,willUnmount:i.weekNumberWillUnmount}))}));function Ls(t){return t.text}class Vs extends Ln{constructor(){super(...arguments),this.state={titleId:re()},this.handleRootEl=t=>{this.rootEl=t,this.props.elRef&&Vn(this.props.elRef,t)},this.handleDocumentMouseDown=t=>{const e=ne(t);this.rootEl.contains(e)||this.handleCloseClick()},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:t}=this.props;t&&t()}}render(){let{theme:t,options:e}=this.context,{props:n,state:i}=this,r=["fc-popover",t.getClass("popover")].concat(n.extraClassNames||[]);return function(t,e){var n=_(Rt,{__v:t,i:e});return n.containerInfo=e,n}(_("div",Object.assign({},n.extraAttrs,{id:n.id,className:r.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),_("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},_("span",{className:"fc-popover-title",id:i.titleId},n.title),_("span",{className:"fc-popover-close "+t.getIconClass("close"),title:e.closeHint,onClick:this.handleCloseClick})),_("div",{className:"fc-popover-body "+t.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:t}=this.context,{alignmentEl:e,alignGridTop:n}=this.props,{rootEl:i}=this,r=function(t){let e=Hr(t),n=t.getBoundingClientRect();for(let t of e){let e=kr(n,t.getBoundingClientRect());if(!e)return null;n=e}return n}(e);if(r){let s=i.getBoundingClientRect(),o=n?Jt(e,".fc-scrollgrid").getBoundingClientRect().top:r.top,l=t?r.right-s.width:r.left;o=Math.max(o,10),l=Math.min(l,document.documentElement.clientWidth-10-s.width),l=Math.max(l,10);let a=i.offsetParent.getBoundingClientRect();te(i,{top:o-a.top,left:l-a.left})}}}class Ws extends Vr{constructor(){super(...arguments),this.handleRootEl=t=>{this.rootEl=t,t?this.context.registerInteractiveComponent(this,{el:t,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:t,dateEnv:e}=this.context,{props:n}=this,{startDate:i,todayRange:r,dateProfile:s}=n,o=e.format(i,t.dayPopoverFormat);return _(Bs,{elRef:this.handleRootEl,date:i,dateProfile:s,todayRange:r},((e,i,r)=>_(Vs,{elRef:r.ref,id:n.id,title:o,extraClassNames:["fc-more-popover"].concat(r.className||[]),extraAttrs:r,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},zs(t)&&_(e,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(t,e,n,i){let{rootEl:r,props:s}=this;return t>=0&&t<n&&e>=0&&e<i?{dateProfile:s.dateProfile,dateSpan:Object.assign({allDay:!s.forceTimed,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:r,rect:{left:0,top:0,right:n,bottom:i},layer:1}:null}}class Fs extends Ln{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:re()},this.handleLinkEl=t=>{this.linkEl=t,this.props.elRef&&Vn(this.props.elRef,t)},this.handleClick=t=>{let{props:e,context:n}=this,{moreLinkClick:i}=n.options,r=$s(e).start;function s(t){let{def:e,instance:i,range:r}=t.eventRange;return{event:new $i(n,e,i),start:n.dateEnv.toDate(r.start),end:n.dateEnv.toDate(r.end),isStart:t.isStart,isEnd:t.isEnd}}"function"==typeof i&&(i=i({date:r,allDay:Boolean(e.allDayDate),allSegs:e.allSegs.map(s),hiddenSegs:e.hiddenSegs.map(s),jsEvent:t,view:n.viewApi})),i&&"popover"!==i?"string"==typeof i&&n.calendarApi.zoomTo(r,i):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:t,state:e}=this;return _(Gn.Consumer,null,(n=>{let{viewApi:i,options:r,calendarApi:s}=n,{moreLinkText:o}=r,{moreCnt:l}=t,a=$s(t),c="function"==typeof o?o.call(s,l):`+${l} ${o}`,u=ve(r.moreLinkHint,[l],c),d={num:l,shortText:`+${l}`,text:c,view:i};return _(I,null,Boolean(t.moreCnt)&&_(Zn,{elTag:t.elTag||"a",elRef:this.handleLinkEl,elClasses:[...t.elClasses||[],"fc-more-link"],elStyle:t.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},t.elAttrs),ae(this.handleClick)),{title:u,"aria-expanded":e.isPopoverOpen,"aria-controls":e.isPopoverOpen?e.popoverId:""}),renderProps:d,generatorName:"moreLinkContent",customGenerator:r.moreLinkContent,defaultGenerator:t.defaultGenerator||Ys,classNameGenerator:r.moreLinkClassNames,didMount:r.moreLinkDidMount,willUnmount:r.moreLinkWillUnmount},t.children),e.isPopoverOpen&&_(Ws,{id:e.popoverId,startDate:a.start,endDate:a.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:this.parentEl,alignmentEl:t.alignmentElRef?t.alignmentElRef.current:this.linkEl,alignGridTop:t.alignGridTop,forceTimed:t.forceTimed,onClose:this.handlePopoverClose},t.popoverContent()))}))}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Jt(this.linkEl,".fc-view-harness"))}}function Ys(t){return t.text}function $s(t){if(t.allDayDate)return{start:t.allDayDate,end:Oe(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:qs(e),end:(n=e,n.reduce(Js).eventRange.range.end)};var n}function qs(t){return t.reduce(Zs).eventRange.range.start}function Zs(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function Js(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}const Xs=[],Ks={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"},to=Object.assign(Object.assign({},Ks),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(t,e)=>"day"===e?"Today":`This ${t}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:t=>`Show ${t} more event${1===t?"":"s"}`});function eo(t){let e=t.length>0?t[0].code:"en",n=Xs.concat(t),i={en:to};for(let t of n)i[t.code]=t;return{map:i,defaultCode:e}}function no(t,e){return"object"!=typeof t||Array.isArray(t)?function(t,e){let n=[].concat(t||[]),i=function(t,e){for(let n=0;n<t.length;n+=1){let i=t[n].toLocaleLowerCase().split("-");for(let t=i.length;t>0;t-=1){let n=i.slice(0,t).join("-");if(e[n])return e[n]}}return null}(n,e)||to;return io(t,n,i)}(t,e):io(t.code,[t.code],t)}function io(t,e,n){let i=xn([Ks,n],["buttonText"]);delete i.code;let{week:r}=i;return delete i.week,{codeArg:t,codes:e,week:r,simpleNumberFormat:new Intl.NumberFormat(t),options:i}}function ro(t){return{id:de(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}class so extends In{}function oo(t,e,n,i){if(e[t])return e[t];let r=function(t,e,n,i){let r=n[t],s=i[t],o=t=>r&&null!==r[t]?r[t]:s&&null!==s[t]?s[t]:null,l=o("component"),a=o("superType"),c=null;if(a){if(a===t)throw new Error("Can't have a custom view type that references itself");c=oo(a,e,n,i)}return!l&&c&&(l=c.component),l?{type:t,component:l,defaults:Object.assign(Object.assign({},c?c.defaults:{}),r?r.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}:null}(t,e,n,i);return r&&(e[t]=r),r}function lo(t){return Sn(t,ao)}function ao(t){let e="function"==typeof t?{component:t}:t,{component:n}=e;return e.content?n=co(e):!n||n.prototype instanceof Ln||(n=co(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function co(t){return e=>_(Gn.Consumer,null,(n=>_(Zn,{elTag:"div",elClasses:Kn(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount})))}function uo(t,e,n,i){let r=lo(t),s=lo(e.views),o=function(t,e){let n,i={};for(n in t)oo(n,i,t,e);for(n in e)oo(n,i,t,e);return i}(r,s);return Sn(o,(t=>function(t,e,n,i,r){let s=t.overrides.duration||t.defaults.duration||i.duration||n.duration,o=null,l="",a="",c={};if(s&&(o=function(t){let e=JSON.stringify(t),n=ho[e];return void 0===n&&(n=Ee(t),ho[e]=n),n}(s),o)){let t=Te(o);l=t.unit,1===t.value&&(a=l,c=e[l]?e[l].rawOptions:{})}let u=e=>{let n=e.buttonText||{},i=t.defaults.buttonTextKey;return null!=i&&null!=n[i]?n[i]:null!=n[t.type]?n[t.type]:null!=n[a]?n[a]:null},d=e=>{let n=e.buttonHints||{},i=t.defaults.buttonTextKey;return null!=i&&null!=n[i]?n[i]:null!=n[t.type]?n[t.type]:null!=n[a]?n[a]:null};return{type:t.type,component:t.component,duration:o,durationUnit:l,singleUnit:a,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},c),t.overrides),buttonTextOverride:u(i)||u(n)||t.overrides.buttonText,buttonTextDefault:u(r)||t.defaults.buttonText||u(hn)||t.type,buttonTitleOverride:d(i)||d(n)||t.overrides.buttonHint,buttonTitleDefault:d(r)||t.defaults.buttonHint||d(hn)}}(t,s,e,n,i)))}so.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},so.prototype.baseIconClass="fc-icon",so.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"},so.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},so.prototype.iconOverrideOption="buttonIcons",so.prototype.iconOverrideCustomButtonOption="icon",so.prototype.iconOverridePrefix="fc-icon-";let ho={};function fo(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function po(t,e,n,i){let r={};for(let t of e)r[t.sourceId]=t;return n&&(r=go(r,n,i)),Object.assign(Object.assign({},t),r)}function go(t,e,n){return vo(t,kn(t,(t=>function(t,e,n){return yo(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}(t,e,n))),e,!1,n)}function vo(t,e,n,i,r){let s={};for(let o in t){let l=t[o];s[o]=e[o]?mo(l,n,i,r):l}return s}function mo(t,e,n,i){let{options:r,calendarApi:s}=i,o=i.pluginHooks.eventSourceDefs[t.sourceDefId],l=de();return o.fetch({eventSource:t,range:e,isRefetch:n,context:i},(n=>{let{rawEvents:o}=n;r.eventSourceSuccess&&(o=r.eventSourceSuccess.call(s,o,n.response)||o),t.success&&(o=t.success.call(s,o,n.response)||o),i.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:l,fetchRange:e,rawEvents:o})}),(n=>{let o=!1;r.eventSourceFailure&&(r.eventSourceFailure.call(s,n),o=!0),t.failure&&(t.failure(n),o=!0),o||console.warn(n.message,n),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:l,fetchRange:e,error:n})})),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:l})}function bo(t,e){return kn(t,(t=>yo(t,e)))}function yo(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function Ao(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function wo(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function Eo(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function xo(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function ko(t,e,n,i,r){return{header:t.headerToolbar?So(t.headerToolbar,t,e,n,i,r):null,footer:t.footerToolbar?So(t.footerToolbar,t,e,n,i,r):null}}function So(t,e,n,i,r,s){let o={},l=[],a=!1;for(let c in t){let u=Do(t[c],e,n,i,r,s);o[c]=u.widgets,l.push(...u.viewsWithButtons),a=a||u.hasTitle}return{sectionWidgets:o,viewsWithButtons:l,hasTitle:a}}function Do(t,e,n,i,r,s){let o="rtl"===e.direction,l=e.customButtons||{},a=n.buttonText||{},c=e.buttonText||{},u=n.buttonHints||{},d=e.buttonHints||{},h=t?t.split(" "):[],f=[],p=!1;return{widgets:h.map((t=>t.split(",").map((t=>{if("title"===t)return p=!0,{buttonName:t};let n,h,g,v,m,b;if(n=l[t])g=t=>{n.click&&n.click.call(t.target,t,t.target)},(v=i.getCustomButtonIconClass(n))||(v=i.getIconClass(t,o))||(m=n.text),b=n.hint||n.text;else if(h=r[t]){f.push(t),g=()=>{s.changeView(t)},(m=h.buttonTextOverride)||(v=i.getIconClass(t,o))||(m=h.buttonTextDefault);let n=h.buttonTextOverride||h.buttonTextDefault;b=ve(h.buttonTitleOverride||h.buttonTitleDefault||e.viewHint,[n,t],n)}else if(s[t])if(g=()=>{s[t]()},(m=a[t])||(v=i.getIconClass(t,o))||(m=c[t]),"prevYear"===t||"nextYear"===t){let e="prevYear"===t?"prev":"next";b=ve(u[e]||d[e],[c.year||"year","year"],c[t])}else b=e=>ve(u[t]||d[t],[c[e]||e,e],c[t]);return{buttonName:t,buttonClick:g,buttonIcon:v,buttonText:m,buttonHint:b}})))),viewsWithButtons:f,hasTitle:p}}class Co{constructor(t,e,n){this.type=t,this.getCurrentData=e,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(t){return this.getCurrentData().options[t]}}const To={daysOfWeek:wn,startTime:Ee,endTime:Ee,duration:Ee,startRecur:wn,endRecur:wn};function No(t,e){let n=Cn(e.getCurrentData().eventSources);if(1===n.length&&1===t.length&&Array.isArray(n[0]._raw)&&Array.isArray(t[0]))return void e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});let i=[];for(let e of t){let t=!1;for(let i=0;i<n.length;i+=1)if(n[i]._raw===e){n.splice(i,1),t=!0;break}t||i.push(e)}for(let t of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:t.sourceId});for(let t of i)e.calendarApi.addEventSource(t)}const Mo=[ro({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:t=>Array.isArray(t.events)?t.events:null,fetch(t,e){e({rawEvents:t.eventSource.meta})}}]}),ro({name:"func-event-source",eventSourceDefs:[{parseMeta:t=>"function"==typeof t.events?t.events:null,fetch(t,e,n){const{dateEnv:i}=t.context;!function(t,n,i){let r=!1,s=function(t){r||(r=!0,e({rawEvents:t}))},o=function(t){r||(r=!0,i(t))},l=t(s,o);l&&"function"==typeof l.then&&l.then(s,o)}(t.eventSource.meta.bind(null,fr(t.range,i)),0,n)}}]}),ro({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:wn,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:t=>!t.url||"json"!==t.format&&t.format?null:{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam},fetch(t,e,n){const{meta:i}=t.eventSource,r=function(t,e,n){let i,r,s,o,{dateEnv:l,options:a}=n,c={};return i=t.startParam,null==i&&(i=a.startParam),r=t.endParam,null==r&&(r=a.endParam),s=t.timeZoneParam,null==s&&(s=a.timeZoneParam),o="function"==typeof t.extraParams?t.extraParams():t.extraParams||{},Object.assign(c,o),c[i]=l.formatIso(e.start),c[r]=l.formatIso(e.end),"local"!==l.timeZone&&(c[s]=l.timeZone),c}(i,t.range,t.context);(function(t,e,n){const i={method:t=t.toUpperCase()};return"GET"===t?e+=(-1===e.indexOf("?")?"?":"&")+new URLSearchParams(n):(i.body=new URLSearchParams(n),i.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,i).then((t=>{if(t.ok)return t.json().then((e=>[e,t]),(()=>{throw new gr("Failure parsing JSON",t)}));throw new gr("Request failed",t)}))})(i.method,i.url,r).then((([t,n])=>{e({rawEvents:t,response:n})}),n)}}]}),ro({name:"simple-recurring-event",recurringTypes:[{parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let r,s={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null};return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r={years:(n=t.endTime).years-(i=t.startTime).years,months:n.months-i.months,days:n.days-i.days,milliseconds:n.milliseconds-i.milliseconds}),{allDayGuess:Boolean(!t.startTime&&!t.endTime),duration:r,typeData:s}}var n,i;return null},expand(t,e,n){let i=ni(e,{start:t.startRecur,end:t.endRecur});return i?function(t,e,n,i){let r=t?Dn(t):null,s=Be(n.start),o=n.end,l=[];for(;s<o;){let t;r&&!r[s.getUTCDay()]||(t=e?i.add(s,e):s,l.push(t)),s=Oe(s,1)}return l}(t.daysOfWeek,t.startTime,i,n):[]}}],eventRefiners:To}),ro({name:"change-handler",optionChangeHandlers:{events(t,e){No([t],e)},eventSources:No}}),ro({name:"misc",isLoadingFuncs:[t=>fo(t.eventSources)],propSetHandlers:{dateProfile:function(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},fr(t.activeRange,e.dateEnv)),{view:e.viewApi}))},eventStore:function(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Zi(t,e))}}})];class Ro{constructor(t,e){this.runTaskOption=t,this.drainedOption=e,this.queue=[],this.delayedRunner=new qt(this.drain.bind(this))}request(t,e){this.queue.push(t),this.delayedRunner.request(e)}pause(t){this.delayedRunner.pause(t)}resume(t,e){this.delayedRunner.resume(t,e)}drain(){let{queue:t}=this;for(;t.length;){let e,n=[];for(;e=t.shift();)this.runTask(e),n.push(e);this.drained(n)}}runTask(t){this.runTaskOption&&this.runTaskOption(t)}drained(t){this.drainedOption&&this.drainedOption(t)}}function Oo(t,e,n){let i;return i=/^(year|month)$/.test(t.currentRangeUnit)?t.currentRange:t.activeRange,n.formatRange(i.start,i.end,un(e.titleFormat||function(t){let{currentRangeUnit:e}=t;if("year"===e)return{year:"numeric"};if("month"===e)return{year:"numeric",month:"long"};let n=Ie(t.currentRange.start,t.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}class _o{constructor(t){this.computeCurrentViewData=$e(this._computeCurrentViewData),this.organizeRawLocales=$e(eo),this.buildLocale=$e(no),this.buildPluginHooks=function(){let t,e=[],n=[];return(i,r)=>(t&&Ne(i,e)&&Ne(r,n)||(t=function(t,e){let n={},i={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function r(t){for(let a of t){const t=a.name,c=n[t];void 0===c?(n[t]=a.id,r(a.deps),i={premiumReleaseDate:(e=(o=i).premiumReleaseDate,s=(l=a).premiumReleaseDate,void 0===e?s:void 0===s?e:new Date(Math.max(e.valueOf(),s.valueOf()))),reducers:o.reducers.concat(l.reducers),isLoadingFuncs:o.isLoadingFuncs.concat(l.isLoadingFuncs),contextInit:o.contextInit.concat(l.contextInit),eventRefiners:Object.assign(Object.assign({},o.eventRefiners),l.eventRefiners),eventDefMemberAdders:o.eventDefMemberAdders.concat(l.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},o.eventSourceRefiners),l.eventSourceRefiners),isDraggableTransformers:o.isDraggableTransformers.concat(l.isDraggableTransformers),eventDragMutationMassagers:o.eventDragMutationMassagers.concat(l.eventDragMutationMassagers),eventDefMutationAppliers:o.eventDefMutationAppliers.concat(l.eventDefMutationAppliers),dateSelectionTransformers:o.dateSelectionTransformers.concat(l.dateSelectionTransformers),datePointTransforms:o.datePointTransforms.concat(l.datePointTransforms),dateSpanTransforms:o.dateSpanTransforms.concat(l.dateSpanTransforms),views:Object.assign(Object.assign({},o.views),l.views),viewPropsTransformers:o.viewPropsTransformers.concat(l.viewPropsTransformers),isPropsValid:l.isPropsValid||o.isPropsValid,externalDefTransforms:o.externalDefTransforms.concat(l.externalDefTransforms),viewContainerAppends:o.viewContainerAppends.concat(l.viewContainerAppends),eventDropTransformers:o.eventDropTransformers.concat(l.eventDropTransformers),calendarInteractions:o.calendarInteractions.concat(l.calendarInteractions),componentInteractions:o.componentInteractions.concat(l.componentInteractions),themeClasses:Object.assign(Object.assign({},o.themeClasses),l.themeClasses),eventSourceDefs:o.eventSourceDefs.concat(l.eventSourceDefs),cmdFormatter:l.cmdFormatter||o.cmdFormatter,recurringTypes:o.recurringTypes.concat(l.recurringTypes),namedTimeZonedImpl:l.namedTimeZonedImpl||o.namedTimeZonedImpl,initialView:o.initialView||l.initialView,elementDraggingImpl:o.elementDraggingImpl||l.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},o.optionChangeHandlers),l.optionChangeHandlers),scrollGridImpl:l.scrollGridImpl||o.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},o.listenerRefiners),l.listenerRefiners),optionRefiners:Object.assign(Object.assign({},o.optionRefiners),l.optionRefiners),propSetHandlers:Object.assign(Object.assign({},o.propSetHandlers),l.propSetHandlers)}):c!==a.id&&console.warn(`Duplicate plugin '${t}'`)}var e,s,o,l}return t&&r(t),r(e),i}(i,r)),e=i,n=r,t)}(),this.buildDateEnv=$e(jo),this.buildTheme=$e(Io),this.parseToolbars=$e(ko),this.buildViewSpecs=$e(uo),this.buildDateProfileGenerator=qe(Bo),this.buildViewApi=$e(zo),this.buildViewUiProps=qe(Go),this.buildEventUiBySource=$e(Ho,Tn),this.buildEventUiBases=$e(Po),this.parseContextBusinessHours=qe(Qo),this.buildTitle=$e(Oo),this.emitter=new Pi,this.actionRunner=new Ro(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=t=>{this.actionRunner.request(t)},this.props=t,this.actionRunner.pause();let e={},n=this.computeOptionsData(t.optionOverrides,e,t.calendarApi),i=n.calendarOptions.initialView||n.pluginHooks.initialView,r=this.computeCurrentViewData(i,n,t.optionOverrides,e);t.calendarApi.currentDataManager=this,this.emitter.setThisContext(t.calendarApi),this.emitter.setOptions(r.options);let s=function(t,e){let n=t.initialDate;return null!=n?e.createMarker(n):ci(t.now,e)}(n.calendarOptions,n.dateEnv),o=r.dateProfileGenerator.build(s);si(o.activeRange,s)||(s=o.currentRange.start);let l={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let t of n.pluginHooks.contextInit)t(l);let a=function(t,e,n){let i=e?e.activeRange:null;return po({},function(t,e){let n=ji(e),i=[].concat(t.eventSources||[]),r=[];t.initialEvents&&i.unshift(t.initialEvents),t.events&&i.unshift(t.events);for(let t of i){let i=_i(t,e,n);i&&r.push(i)}return r}(t,n),i,n)}(n.calendarOptions,o,l),c={dynamicOptionOverrides:e,currentViewType:i,currentDate:s,dateProfile:o,businessHours:this.parseContextBusinessHours(l),eventSources:a,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},u=Object.assign(Object.assign({},l),c);for(let t of n.pluginHooks.reducers)Object.assign(c,t(null,null,u));Uo(c,l)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(t,e){let{props:n}=this;void 0===e?n.optionOverrides=t:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),t),this.optionsForRefining.push(...e)),(void 0===e||e.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(t){let{props:e,state:n,emitter:i}=this,r=function(t,e){return"SET_OPTION"===e.type?Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue}):t}(n.dynamicOptionOverrides,t),s=this.computeOptionsData(e.optionOverrides,r,e.calendarApi),o=function(t,e){return"CHANGE_VIEW_TYPE"===e.type&&(t=e.viewType),t}(n.currentViewType,t),l=this.computeCurrentViewData(o,s,e.optionOverrides,r);e.calendarApi.currentDataManager=this,i.setThisContext(e.calendarApi),i.setOptions(l.options);let a={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:u}=n;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(u=l.dateProfileGenerator.build(c)),c=function(t,e){return"CHANGE_DATE"===e.type?e.dateMarker:t}(c,t),u=function(t,e,n,i){let r;switch(e.type){case"CHANGE_VIEW_TYPE":return i.build(e.dateMarker||n);case"CHANGE_DATE":return i.build(e.dateMarker);case"PREV":if(r=i.buildPrev(t,n),r.isValid)return r;break;case"NEXT":if(r=i.buildNext(t,n),r.isValid)return r}return t}(u,t,c,l.dateProfileGenerator),"PREV"!==t.type&&"NEXT"!==t.type&&si(u.currentRange,c)||(c=u.currentRange.start);let d=function(t,e,n,i){let r=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return po(t,e.sources,r,i);case"REMOVE_EVENT_SOURCE":return s=e.sourceId,kn(t,(t=>t.sourceId!==s));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?go(t,r,i):t;case"FETCH_EVENT_SOURCES":return vo(t,e.sourceIds?Dn(e.sourceIds):bo(t,i),r,e.isRefetch||!1,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(t,e,n,i){let r=t[e];return r&&n===r.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},r),{isFetching:!1,fetchRange:i})}):t}(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}var s}(n.eventSources,t,u,a),h=function(t,e,n,i,r){switch(e.type){case"RECEIVE_EVENTS":return function(t,e,n,i,r,s){if(e&&n===e.latestFetchId){let n=wi(Ii(r,e,s),e,s);return i&&(n=hi(n,i,s)),ki(Hi(t,e.sourceId),n)}return t}(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,r);case"RESET_RAW_EVENTS":return function(t,e,n,i,r){const{defIdMap:s,instanceIdMap:o}=function(t){const{defs:e,instances:n}=t,i={},r={};for(let t in e){const n=e[t],{publicId:r}=n;r&&(i[r]=t)}for(let t in n){const i=e[n[t].defId],{publicId:s}=i;s&&(r[s]=t)}return{defIdMap:i,instanceIdMap:r}}(t);return hi(wi(Ii(n,e,r),e,r,!1,s,o),i,r)}(t,n[e.sourceId],e.rawEvents,i.activeRange,r);case"ADD_EVENTS":return function(t,e,n,i){return n&&(e=hi(e,n,i)),ki(t,e)}(t,e.eventStore,i?i.activeRange:null,r);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return ki(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return i?hi(t,i.activeRange,r):t;case"REMOVE_EVENTS":return function(t,e){let{defs:n,instances:i}=t,r={},s={};for(let t in n)e.defs[t]||(r[t]=n[t]);for(let t in i)!e.instances[t]&&r[i[t].defId]&&(s[t]=i[t]);return{defs:r,instances:s}}(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Hi(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Si(t,(t=>!t.sourceId));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return t}}(n.eventStore,t,d,u,a),f=fo(d)&&!l.options.progressiveEventRendering&&n.renderableEventStore||h,{eventUiSingleBase:p,selectionConfig:g}=this.buildViewUiProps(a),v=this.buildEventUiBySource(d),m={dynamicOptionOverrides:r,currentViewType:o,currentDate:c,dateProfile:u,eventSources:d,eventStore:h,renderableEventStore:f,selectionConfig:g,eventUiBases:this.buildEventUiBases(f.defs,p,v),businessHours:this.parseContextBusinessHours(a),dateSelection:Ao(n.dateSelection,t),eventSelection:wo(n.eventSelection,t),eventDrag:Eo(n.eventDrag,t),eventResize:xo(n.eventResize,t)},b=Object.assign(Object.assign({},a),m);for(let e of s.pluginHooks.reducers)Object.assign(m,e(n,t,b));let y=Uo(n,a),A=Uo(m,a);!y&&A?i.trigger("loading",!0):y&&!A&&i.trigger("loading",!1),this.state=m,e.onAction&&e.onAction(t)}updateData(){let{props:t,state:e}=this,n=this.data,i=this.computeOptionsData(t.optionOverrides,e.dynamicOptionOverrides,t.calendarApi),r=this.computeCurrentViewData(e.currentViewType,i,t.optionOverrides,e.dynamicOptionOverrides),s=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(e.dateProfile,r.options,i.dateEnv),calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),r),e),o=i.pluginHooks.optionChangeHandlers,l=n&&n.calendarOptions,a=i.calendarOptions;if(l&&l!==a){l.timeZone!==a.timeZone&&(e.eventSources=s.eventSources=function(t,e,n){let i=e?e.activeRange:null;return vo(t,bo(t,n),i,!0,n)}(s.eventSources,e.dateProfile,s),e.eventStore=s.eventStore=zi(s.eventStore,n.dateEnv,s.dateEnv),e.renderableEventStore=s.renderableEventStore=zi(s.renderableEventStore,n.dateEnv,s.dateEnv));for(let t in o)-1===this.optionsForHandling.indexOf(t)&&l[t]===a[t]||o[t](a[t],s)}this.optionsForHandling=[],t.onData&&t.onData(s)}computeOptionsData(t,e,n){if(!this.optionsForRefining.length&&t===this.stableOptionOverrides&&e===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:r,localeDefaults:s,availableLocaleData:o,extra:l}=this.processRawCalendarOptions(t,e);Lo(l);let a=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,r,o,i.defaultRangeSeparator),c=this.buildViewSpecs(r.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,s),u=this.buildTheme(i,r),d=this.parseToolbars(i,this.stableOptionOverrides,u,c,n);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:r,dateEnv:a,viewSpecs:c,theme:u,toolbarConfig:d,localeDefaults:s,availableRawLocales:o.map}}processRawCalendarOptions(t,e){let{locales:n,locale:i}=yn([hn,t,e]),r=this.organizeRawLocales(n),s=this.buildLocale(i||r.defaultCode,r.map).options,o=this.buildPluginHooks(t.plugins||[],Mo),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dn),fn),pn),o.listenerRefiners),o.optionRefiners),a={},c=yn([hn,s,t,e]),u={},d=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,f=!1;for(let t in c)-1===this.optionsForRefining.indexOf(t)&&(c[t]===d[t]||gn[t]&&t in d&&gn[t](d[t],c[t]))?u[t]=h[t]:l[t]?(u[t]=l[t](c[t]),f=!0):a[t]=d[t];return f&&(this.currentCalendarOptionsInput=c,this.currentCalendarOptionsRefined=u,this.stableOptionOverrides=t,this.stableDynamicOptionOverrides=e),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:r,localeDefaults:s,extra:a}}_computeCurrentViewData(t,e,n,i){let r=e.viewSpecs[t];if(!r)throw new Error(`viewType "${t}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s,extra:o}=this.processRawViewOptions(r,e.pluginHooks,e.localeDefaults,n,i);return Lo(o),{viewSpec:r,options:s,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:r.optionDefaults.dateProfileGeneratorClass,duration:r.duration,durationUnit:r.durationUnit,usesMinMaxTime:r.optionDefaults.usesMinMaxTime,dateEnv:e.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,fixedWeekCount:s.fixedWeekCount}),viewApi:this.buildViewApi(t,this.getCurrentData,e.dateEnv)}}processRawViewOptions(t,e,n,i,r){let s=yn([hn,t.optionDefaults,n,i,t.optionOverrides,r]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dn),fn),pn),bn),e.listenerRefiners),e.optionRefiners),l={},a=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,u=!1,d={};for(let t in s)s[t]===a[t]||gn[t]&&gn[t](s[t],a[t])?l[t]=c[t]:(s[t]===this.currentCalendarOptionsInput[t]||gn[t]&&gn[t](s[t],this.currentCalendarOptionsInput[t])?t in this.currentCalendarOptionsRefined&&(l[t]=this.currentCalendarOptionsRefined[t]):o[t]?l[t]=o[t](s[t]):d[t]=s[t],u=!0);return u&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}}}function jo(t,e,n,i,r,s,o,l){let a=no(e||o.defaultCode,o.map);return new jn({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:a,weekNumberCalculation:n,firstDay:i,weekText:r,cmdFormatter:s.cmdFormatter,defaultSeparator:l})}function Io(t,e){return new(e.themeClasses[t.themeSystem]||so)(t)}function Bo(t){return new(t.dateProfileGeneratorClass||ui)(t)}function zo(t,e,n){return new Co(t,e,n)}function Ho(t){return Sn(t,(t=>t.ui))}function Po(t,e,n){let i={"":e};for(let e in t){let r=t[e];r.sourceId&&n[r.sourceId]&&(i[e]=n[r.sourceId])}return i}function Go(t){let{options:e}=t;return{eventUiSingleBase:Ni({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:"boolean"==typeof e.eventOverlap?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:Ni({constraint:e.selectConstraint,overlap:"boolean"==typeof e.selectOverlap?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function Uo(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Qo(t){return e=t,wi(function(t){let e;return e=!0===t?[{}]:Array.isArray(t)?t.filter((t=>t.daysOfWeek)):"object"==typeof t&&t?[t]:[],e=e.map((t=>Object.assign(Object.assign({},Gi),t))),e}(t.options.businessHours),null,e);var e}function Lo(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}class Vo extends Ln{render(){return _("div",{className:"fc-toolbar-chunk"},...this.props.widgetGroups.map((t=>this.renderWidgetGroup(t))))}renderWidgetGroup(t){let{props:e}=this,{theme:n}=this.context,i=[],r=!0;for(let s of t){let{buttonName:t,buttonClick:o,buttonText:l,buttonIcon:a,buttonHint:c}=s;if("title"===t)r=!1,i.push(_("h2",{className:"fc-toolbar-title",id:e.titleId},e.title));else{let r=t===e.activeButton,s=!e.isTodayEnabled&&"today"===t||!e.isPrevEnabled&&"prev"===t||!e.isNextEnabled&&"next"===t,u=[`fc-${t}-button`,n.getClass("button")];r&&u.push(n.getClass("buttonActive")),i.push(_("button",{type:"button",title:"function"==typeof c?c(e.navUnit):c,disabled:s,"aria-pressed":r,className:u.join(" "),onClick:o},l||(a?_("span",{className:a,role:"img"}):"")))}}return i.length>1?_("div",{className:r&&n.getClass("buttonGroup")||""},...i):i[0]}}class Wo extends Ln{render(){let t,e,{model:n,extraClassName:i}=this.props,r=!1,s=n.sectionWidgets,o=s.center;return s.left?(r=!0,t=s.left):t=s.start,s.right?(r=!0,e=s.right):e=s.end,_("div",{className:[i||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",t||[]),this.renderSection("center",o||[]),this.renderSection("end",e||[]))}renderSection(t,e){let{props:n}=this;return _(Vo,{key:t,widgetGroups:e,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class Fo extends Ln{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=t=>{this.el=t,Vn(this.props.elRef,t),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:t,state:e}=this,{aspectRatio:n}=t,i="",r="";return n?null!==e.availableWidth?i=e.availableWidth/n:r=1/n*100+"%":i=t.height||"",_("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,className:["fc-view-harness",n||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-passive"].join(" "),style:{height:i,paddingBottom:r}},t.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 Yo extends yr{constructor(t){super(t),this.handleSegClick=(t,e)=>{let{component:n}=this,{context:i}=n,r=Ki(e);if(r&&n.isValidSegDownEl(t.target)){let s=Jt(t.target,".fc-event-forced-url"),o=s?s.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:e,event:new $i(n.context,r.eventRange.def,r.eventRange.instance),jsEvent:t,view:i.viewApi}),o&&!t.defaultPrevented&&(window.location.href=o)}},this.destroy=oe(t.el,"click",".fc-event",this.handleSegClick)}}class $o extends yr{constructor(t){super(t),this.handleEventElRemove=t=>{t===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(t,e)=>{Ki(e)&&(this.currentSegEl=e,this.triggerEvent("eventMouseEnter",t,e))},this.handleSegLeave=(t,e)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",t,e))},this.removeHoverListeners=function(t,e,n,i){let r;return oe(t,"mouseover",".fc-event",((t,e)=>{if(e!==r){r=e,n(t,e);let s=t=>{r=null,i(t,e),e.removeEventListener("mouseleave",s)};e.addEventListener("mouseleave",s)}}))}(t.el,0,this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(t,e,n){let{component:i}=this,{context:r}=i,s=Ki(n);e&&!i.isValidSegDownEl(e.target)||r.emitter.trigger(t,{el:n,event:new $i(r,s.eventRange.def,s.eventRange.instance),jsEvent:e,view:r.viewApi})}}class qo extends Qn{constructor(){super(...arguments),this.buildViewContext=$e(Un),this.buildViewPropTransformers=$e(Jo),this.buildToolbarProps=$e(Zo),this.headerRef={current:null},this.footerRef={current:null},this.interactionsStore={},this.state={viewLabelId:re()},this.registerInteractiveComponent=(t,e)=>{let n=function(t,e){return{component:t,el:e.el,useEventCenter:null==e.useEventCenter||e.useEventCenter,isHitComboAllowed:e.isHitComboAllowed||null}}(t,e),i=[Yo,$o].concat(this.props.pluginHooks.componentInteractions).map((t=>new t(n)));this.interactionsStore[t.uid]=i,wr[t.uid]=n},this.unregisterInteractiveComponent=t=>{let e=this.interactionsStore[t.uid];if(e){for(let t of e)t.destroy();delete this.interactionsStore[t.uid]}delete wr[t.uid]},this.resizeRunner=new qt((()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})})),this.handleWindowResize=t=>{let{options:e}=this.props;e.handleWindowResize&&t.target===window&&this.resizeRunner.request(e.windowResizeDelay)}}render(){let t,{props:e}=this,{toolbarConfig:n,options:i}=e,r=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,ci(e.options.now,e.dateEnv),e.viewTitle),s=!1,o="";e.isHeightAuto||e.forPrint?o="":null!=i.height?s=!0:null!=i.contentHeight?o=i.contentHeight:t=Math.max(i.aspectRatio,.5);let l=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),a=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return _(Gn.Provider,{value:l},n.header&&_(Wo,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:a},r)),_(Fo,{liquid:s,height:o,aspectRatio:t,labeledById:a},this.renderView(e),this.buildAppendContent()),n.footer&&_(Wo,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},r)))}componentDidMount(){let{props:t}=this;this.calendarInteractions=t.pluginHooks.calendarInteractions.map((e=>new e(t))),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:e}=t.pluginHooks;for(let n in e)e[n](t[n],t)}componentDidUpdate(t){let{props:e}=this,{propSetHandlers:n}=e.pluginHooks;for(let i in n)e[i]!==t[i]&&n[i](e[i],e)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let t of this.calendarInteractions)t.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:t}=this;return _(I,{},...t.pluginHooks.viewContainerAppends.map((e=>e(t))))}renderView(t){let{pluginHooks:e}=t,{viewSpec:n}=t,i={dateProfile:t.dateProfile,businessHours:t.businessHours,eventStore:t.renderableEventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isHeightAuto:t.isHeightAuto,forPrint:t.forPrint},r=this.buildViewPropTransformers(e.viewPropsTransformers);for(let e of r)Object.assign(i,e.transform(i,t));return _(n.component,Object.assign({},i))}}function Zo(t,e,n,i,r,s){let o=n.build(r,void 0,!1),l=n.buildPrev(e,i,!1),a=n.buildNext(e,i,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:o.isValid&&!si(e.currentRange,r),isPrevEnabled:l.isValid,isNextEnabled:a.isValid}}function Jo(t){return t.map((t=>new t))}class Xo extends Er{constructor(t,e={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=t=>{switch(t.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=t=>{this.currentData=t,this.renderRunner.request(t.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:t}=this;Bn((()=>{it(_(br,{options:t.calendarOptions,theme:t.theme,emitter:t.emitter},((e,n,i,r)=>(this.setClassNames(e),this.setHeight(n),_(qn.Provider,{value:this.customContentRenderId},_(qo,Object.assign({isHeightAuto:i,forPrint:r},t)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,it(null,this.el),this.setClassNames([]),this.setHeight(""))},function(t){t.isConnected&&t.getRootNode&&Ft(t.getRootNode())}(t),this.el=t,this.renderRunner=new qt(this.handleRenderRequest),new _o({optionOverrides:e,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let t=this.isRendering;t?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),t&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){Bn((()=>{super.updateSize()}))}batchRendering(t){this.renderRunner.pause("batchRendering"),t(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(t,e){this.currentDataManager.resetOptions(t,e)}setClassNames(t){if(!Ne(t,this.currentClassNames)){let{classList:e}=this.el;for(let t of this.currentClassNames)e.remove(t);for(let n of t)e.add(n);this.currentClassNames=t}}setHeight(t){ee(this.el,"height",t)}}class Ko extends Vr{constructor(){super(...arguments),this.headerElRef={current:null}}renderSimpleLayout(t,e){let{props:n,context:i}=this,r=[],s=Ts(i.options);return t&&r.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),r.push({type:"body",key:"body",liquid:!0,chunk:{content:e}}),_(Xn,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},_(Ms,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:r}))}renderHScrollLayout(t,e,n,i){let r=this.context.pluginHooks.scrollGridImpl;if(!r)throw new Error("No ScrollGrid implementation");let{props:s,context:o}=this,l=!s.forPrint&&Ts(o.options),a=!s.forPrint&&Ns(o.options),c=[];return t&&c.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:e}]}),a&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Cs}]}),_(Xn,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},_(r,{liquid:!s.isHeightAuto&&!s.forPrint,forPrint:s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:n,minWidth:i}]}],sections:c}))}}function tl(t,e){let n=[];for(let t=0;t<e;t+=1)n[t]=[];for(let e of t)n[e.row].push(e);return n}function el(t,e){let n=[];for(let t=0;t<e;t+=1)n[t]=[];for(let e of t)n[e.firstCol].push(e);return n}function nl(t,e){let n=[];if(t){for(let i=0;i<e;i+=1)n[i]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let e of t.segs)n[e.row].segs.push(e)}else for(let t=0;t<e;t+=1)n[t]=null;return n}const il=un({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function rl(t){let{display:e}=t.eventRange.ui;return"list-item"===e||"auto"===e&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class sl extends Ln{render(){let{props:t}=this;return _(Os,Object.assign({},t,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:il,defaultDisplayEventEnd:t.defaultDisplayEventEnd,disableResizing:!t.seg.eventRange.def.allDay}))}}class ol extends Ln{render(){let{props:t,context:e}=this,{options:n}=e,{seg:i}=t,r=lr(i,n.eventTimeFormat||il,e,!0,t.defaultDisplayEventEnd);return _(Rs,Object.assign({},t,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:dr(t.seg,e),defaultGenerator:ll,timeText:r,isResizing:!1,isDateSelecting:!1}))}}function ll(t){return _(I,null,_("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&_("div",{className:"fc-event-time"},t.timeText),_("div",{className:"fc-event-title"},t.event.title||_(I,null," ")))}class al extends Ln{constructor(){super(...arguments),this.compileSegs=$e(cl)}render(){let{props:t}=this,{allSegs:e,invisibleSegs:n}=this.compileSegs(t.singlePlacements);return _(Fs,{elClasses:["fc-daygrid-more-link"],dateProfile:t.dateProfile,todayRange:t.todayRange,allDayDate:t.allDayDate,moreCnt:t.moreCnt,allSegs:e,hiddenSegs:n,alignmentElRef:t.alignmentElRef,alignGridTop:t.alignGridTop,extraDateSpan:t.extraDateSpan,popoverContent:()=>{let n=(t.eventDrag?t.eventDrag.affectedInstances:null)||(t.eventResize?t.eventResize.affectedInstances:null)||{};return _(I,null,e.map((e=>{let i=e.eventRange.instance.instanceId;return _("div",{className:"fc-daygrid-event-harness",key:i,style:{visibility:n[i]?"hidden":""}},rl(e)?_(ol,Object.assign({seg:e,isDragging:!1,isSelected:i===t.eventSelection,defaultDisplayEventEnd:!1},ar(e,t.todayRange))):_(sl,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:i===t.eventSelection,defaultDisplayEventEnd:!1},ar(e,t.todayRange))))})))}})}}function cl(t){let e=[],n=[];for(let i of t)e.push(i.seg),i.isVisible||n.push(i.seg);return{allSegs:e,invisibleSegs:n}}const ul=un({week:"narrow"});class dl extends Vr{constructor(){super(...arguments),this.rootElRef={current:null},this.state={dayNumberId:re()},this.handleRootEl=t=>{Vn(this.rootElRef,t),Vn(this.props.elRef,t)}}render(){let{context:t,props:e,state:n,rootElRef:i}=this,{options:r,dateEnv:s}=t,{date:o,dateProfile:l}=e;const a=e.showDayNumber&&function(t,e,n){const{start:i,end:r}=e,s=_e(r,-1),o=n.getYear(i),l=n.getMonth(i),a=n.getYear(s),c=n.getMonth(s);return!(o===a&&l===c)&&Boolean(t.valueOf()===i.valueOf()||1===n.getDay(t)&&t.valueOf()<r.valueOf())}(o,l.currentRange,s);return _(Bs,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...e.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},e.extraDataAttrs),e.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:hl,date:o,dateProfile:l,todayRange:e.todayRange,showDayNumber:e.showDayNumber,isMonthStart:a,extraRenderProps:e.extraRenderProps},((s,l)=>_("div",{ref:e.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:e.minHeight}},e.showWeekNumber&&_(Qs,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Or(t,o,"week"),date:o,defaultFormat:ul}),!l.isDisabled&&(e.showDayNumber||zs(r)||e.forceDayTop)?_("div",{className:"fc-daygrid-day-top"},_(s,{elTag:"a",elClasses:["fc-daygrid-day-number",a&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Or(t,o)),{id:n.dayNumberId})})):e.showDayNumber?_("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},_("a",{className:"fc-daygrid-day-number"}," ")):void 0,_("div",{className:"fc-daygrid-day-events",ref:e.fgContentElRef},e.fgContent,_("div",{className:"fc-daygrid-day-bottom",style:{marginTop:e.moreMarginTop}},_(al,{allDayDate:o,singlePlacements:e.singlePlacements,moreCnt:e.moreCnt,alignmentElRef:i,alignGridTop:!e.showDayNumber,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange}))),_("div",{className:"fc-daygrid-day-bg"},e.bgContent))))}}function hl(t){return t.dayNumberText||_(I,null," ")}function fl(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function pl(t){return fl(t)+":"+t.lastCol}function gl(t,e,n,i){if(t.firstCol===e&&t.lastCol===n-1)return t;let r=t.eventRange,s=r.range,o=ni(s,{start:i[e].date,end:Oe(i[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:r.def,ui:Object.assign(Object.assign({},r.ui),{durationEditable:!1}),instance:r.instance,range:o},isStart:t.isStart&&o.start.valueOf()===s.start.valueOf(),isEnd:t.isEnd&&o.end.valueOf()===s.end.valueOf()})}class vl extends Wr{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(t){const e=super.addSegs(t),{entriesByLevel:n}=this,i=t=>!this.forceHidden[Yr(t)];for(let t=0;t<n.length;t+=1)n[t]=n[t].filter(i);return e}handleInvalidInsertion(t,e,n){const{entriesByLevel:i,forceHidden:r}=this,{touchingEntry:s,touchingLevel:o,touchingLateral:l}=t;if(this.hiddenConsumes&&s){const t=Yr(s);if(!r[t])if(this.allowReslicing){const t=Object.assign(Object.assign({},s),{span:$r(s.span,e.span)});r[Yr(t)]=!0,i[o][l]=t,n.push(t),this.splitEntry(s,e,n)}else r[t]=!0,n.push(s)}super.handleInvalidInsertion(t,e,n)}}class ml extends Vr{constructor(){super(...arguments),this.cellElRefs=new ws,this.frameElRefs=new ws,this.fgElRefs=new ws,this.segHarnessRefs=new ws,this.rootElRef={current:null},this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=t=>{t&&this.updateSizing(!0)}}render(){let{props:t,state:e,context:n}=this,{options:i}=n,r=t.cells.length,s=el(t.businessHourSegs,r),o=el(t.bgEventSegs,r),l=el(this.getHighlightSegs(),r),a=el(this.getMirrorSegs(),r),{singleColPlacements:c,multiColPlacements:u,moreCnts:d,moreMarginTops:h}=function(t,e,n,i,r,s,o){let l=new vl((e=>r[t[e.index].eventRange.instance.instanceId+":"+e.span.start+":"+(e.span.end-1)]||1));l.allowReslicing=!0,l.strictOrder=i,!0===e||!0===n?(l.maxCoord=s,l.hiddenConsumes=!0):"number"==typeof e?l.maxStackCnt=e:"number"==typeof n&&(l.maxStackCnt=n,l.hiddenConsumes=!0);let a=[],c=[];for(let e=0;e<t.length;e+=1){let n=t[e],i=pl(n);null!=r[i]?a.push({index:e,span:{start:n.firstCol,end:n.lastCol+1}}):c.push(n)}let u=l.addSegs(a),d=l.toRects(),{singleColPlacements:h,multiColPlacements:f,leftoverMargins:p}=function(t,e,n){let i=function(t,e){let n=[];for(let t=0;t<e;t+=1)n.push([]);for(let e of t)for(let t=e.span.start;t<e.span.end;t+=1)n[t].push(e);return n}(t,n.length),r=[],s=[],o=[];for(let t=0;t<n.length;t+=1){let l=i[t],a=[],c=0,u=0;for(let i of l)a.push({seg:gl(e[i.index],t,t+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:i.levelCoord,marginTop:i.levelCoord-c}),c=i.levelCoord+i.thickness;let d=[];c=0,u=0;for(let i of l){let r=e[i.index],s=i.span.start===t;u+=i.levelCoord-c,c=i.levelCoord+i.thickness,i.span.end-i.span.start>1?(u+=i.thickness,s&&d.push({seg:gl(r,i.span.start,i.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:i.levelCoord,marginTop:0})):s&&(d.push({seg:gl(r,i.span.start,i.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:i.levelCoord,marginTop:u}),u=0)}r.push(a),s.push(d),o.push(u)}return{singleColPlacements:r,multiColPlacements:s,leftoverMargins:o}}(d,t,o),g=[],v=[];for(let t of c){f[t.firstCol].push({seg:t,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=t.firstCol;e<=t.lastCol;e+=1)h[e].push({seg:gl(t,e,e+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let t=0;t<o.length;t+=1)g.push(0);for(let e of u){let n=t[e.index],i=e.span;f[i.start].push({seg:gl(n,i.start,i.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let t=i.start;t<i.end;t+=1)g[t]+=1,h[t].push({seg:gl(n,t,t+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let t=0;t<o.length;t+=1)v.push(p[t]);return{singleColPlacements:h,multiColPlacements:f,moreCnts:g,moreMarginTops:v}}(nr(t.fgEventSegs,i.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,i.eventOrderStrict,e.segHeights,e.maxContentHeight,t.cells),f=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return _("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map(((e,n)=>{let i=this.renderFgSegs(n,t.forPrint?c[n]:u[n],t.todayRange,f),r=this.renderFgSegs(n,function(t,e){if(!t.length)return[];let n=function(t){let e={};for(let n of t)for(let t of n)e[t.seg.eventRange.instance.instanceId]=t.absoluteTop;return e}(e);return t.map((t=>({seg:t,isVisible:!0,isAbsolute:!0,absoluteTop:n[t.eventRange.instance.instanceId],marginTop:0})))}(a[n],u),t.todayRange,{},Boolean(t.eventDrag),Boolean(t.eventResize),!1);return _(dl,{key:e.key,elRef:this.cellElRefs.createRef(e.key),innerElRef:this.frameElRefs.createRef(e.key),dateProfile:t.dateProfile,date:e.date,showDayNumber:t.showDayNumbers,showWeekNumber:t.showWeekNumbers&&0===n,forceDayTop:t.showWeekNumbers,todayRange:t.todayRange,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,extraRenderProps:e.extraRenderProps,extraDataAttrs:e.extraDataAttrs,extraClassNames:e.extraClassNames,extraDateSpan:e.extraDateSpan,moreCnt:d[n],moreMarginTop:h[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(e.key),fgContent:_(I,null,_(I,null,i),_(I,null,r)),bgContent:_(I,null,this.renderFillSegs(l[n],"highlight"),this.renderFillSegs(s[n],"non-business"),this.renderFillSegs(o[n],"bg-event")),minHeight:t.cellMinHeight})})))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(t,e){this.updateSizing(!Tn(t,this.props))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:t}=this;return t.eventDrag&&t.eventDrag.segs.length?t.eventDrag.segs:t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:t.dateSelectionSegs}getMirrorSegs(){let{props:t}=this;return t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:[]}renderFgSegs(t,e,n,i,r,s,o){let{context:l}=this,{eventSelection:a}=this.props,{framePositions:c}=this.state,u=1===this.props.cells.length,d=r||s||o,h=[];if(c)for(let t of e){let{seg:e}=t,{instanceId:f}=e.eventRange.instance,p=t.isVisible&&!i[f],g=t.isAbsolute,v="",m="";g&&(l.isRtl?(m=0,v=c.lefts[e.lastCol]-c.lefts[e.firstCol]):(v=0,m=c.rights[e.firstCol]-c.rights[e.lastCol])),h.push(_("div",{className:"fc-daygrid-event-harness"+(g?" fc-daygrid-event-harness-abs":""),key:fl(e),ref:d?null:this.segHarnessRefs.createRef(pl(e)),style:{visibility:p?"":"hidden",marginTop:g?"":t.marginTop,top:g?t.absoluteTop:"",left:v,right:m}},rl(e)?_(ol,Object.assign({seg:e,isDragging:r,isSelected:f===a,defaultDisplayEventEnd:u},ar(e,n))):_(sl,Object.assign({seg:e,isDragging:r,isResizing:s,isDateSelecting:o,isSelected:f===a,defaultDisplayEventEnd:u},ar(e,n)))))}return h}renderFillSegs(t,e){let{isRtl:n}=this.context,{todayRange:i}=this.props,{framePositions:r}=this.state,s=[];if(r)for(let o of t){let t=n?{right:0,left:r.lefts[o.lastCol]-r.lefts[o.firstCol]}:{left:0,right:r.rights[o.firstCol]-r.rights[o.lastCol]};s.push(_("div",{key:ur(o.eventRange),className:"fc-daygrid-bg-harness",style:t},"bg-event"===e?_(Ps,Object.assign({seg:o},ar(o,i))):Us(e)))}return _(I,{},...s)}updateSizing(t){let{props:e,state:n,frameElRefs:i}=this;if(!e.forPrint&&null!==e.clientWidth){if(t){let t=e.cells.map((t=>i.currentMap[t.key]));if(t.length){let e=this.rootElRef.current,i=new Pr(e,t,!0,!1);n.framePositions&&n.framePositions.similarTo(i)||this.setState({framePositions:new Pr(e,t,!0,!1)})}}const r=this.state.segHeights,s=this.querySegHeights(),o=!0===e.dayMaxEvents||!0===e.dayMaxEventRows;this.safeSetState({segHeights:Object.assign(Object.assign({},r),s),maxContentHeight:o?this.computeMaxContentHeight():null})}}querySegHeights(){let t=this.segHarnessRefs.currentMap,e={};for(let n in t){let i=Math.round(t[n].getBoundingClientRect().height);e[n]=Math.max(e[n]||0,i)}return e}computeMaxContentHeight(){let t=this.props.cells[0].key,e=this.fgElRefs.currentMap[t];return this.cellElRefs.currentMap[t].getBoundingClientRect().bottom-e.getBoundingClientRect().top}getCellEls(){let t=this.cellElRefs.currentMap;return this.props.cells.map((e=>t[e.key]))}}ml.addStateEquality({segHeights:Tn});class bl extends Vr{constructor(){super(...arguments),this.splitBusinessHourSegs=$e(tl),this.splitBgEventSegs=$e(tl),this.splitFgEventSegs=$e(tl),this.splitDateSelectionSegs=$e(tl),this.splitEventDrag=$e(nl),this.splitEventResize=$e(nl),this.rowRefs=new ws}render(){let{props:t,context:e}=this,n=t.cells.length,i=this.splitBusinessHourSegs(t.businessHourSegs,n),r=this.splitBgEventSegs(t.bgEventSegs,n),s=this.splitFgEventSegs(t.fgEventSegs,n),o=this.splitDateSelectionSegs(t.dateSelectionSegs,n),l=this.splitEventDrag(t.eventDrag,n),a=this.splitEventResize(t.eventResize,n),c=n>=7&&t.clientWidth?t.clientWidth/e.options.aspectRatio/6:null;return _(rs,{unit:"day"},((e,u)=>_(I,null,t.cells.map(((e,d)=>_(ml,{ref:this.rowRefs.createRef(d),key:e.length?e[0].date.toISOString():d,showDayNumbers:n>1,showWeekNumbers:t.showWeekNumbers,todayRange:u,dateProfile:t.dateProfile,cells:e,renderIntro:t.renderRowIntro,businessHourSegs:i[d],eventSelection:t.eventSelection,bgEventSegs:r[d].filter(yl),fgEventSegs:s[d],dateSelectionSegs:o[d],eventDrag:l[d],eventResize:a[d],dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,clientWidth:t.clientWidth,clientHeight:t.clientHeight,cellMinHeight:c,forPrint:t.forPrint}))))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const t=this.rowRefs.currentMap[0].getCellEls()[0],e=t?t.closest(".fc-daygrid-body"):null;e&&(this.rootEl=e,this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Pr(this.rootEl,this.rowRefs.collect().map((t=>t.getCellEls()[0])),!1,!0),this.colPositions=new Pr(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(t,e){let{colPositions:n,rowPositions:i}=this,r=n.leftToIndex(t),s=i.topToIndex(e);if(null!=s&&null!=r){let t=this.props.cells[s][r];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(s,r),allDay:!0},t.extraDateSpan),dayEl:this.getCellEl(s,r),rect:{left:n.lefts[r],right:n.rights[r],top:i.tops[s],bottom:i.bottoms[s]},layer:0}}return null}getCellEl(t,e){return this.rowRefs.currentMap[t].getCellEls()[e]}getCellRange(t,e){let n=this.props.cells[t][e].date;return{start:n,end:Oe(n,1)}}}function yl(t){return t.eventRange.def.allDay}class Al extends Vr{constructor(){super(...arguments),this.elRef={current:null},this.needsScrollReset=!1}render(){let{props:t}=this,{dayMaxEventRows:e,dayMaxEvents:n,expandRows:i}=t,r=!0===n||!0===e;return r&&!i&&(r=!1,e=null,n=null),_("div",{ref:this.elRef,className:["fc-daygrid-body",r?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"].join(" "),style:{width:t.clientWidth,minWidth:t.tableMinWidth}},_("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:i?t.clientHeight:""}},t.colGroupNode,_("tbody",{role:"presentation"},_(bl,{dateProfile:t.dateProfile,cells:t.cells,renderRowIntro:t.renderRowIntro,showWeekNumbers:t.showWeekNumbers,clientWidth:t.clientWidth,clientHeight:t.clientHeight,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,dayMaxEvents:n,dayMaxEventRows:e,forPrint:t.forPrint,isHitComboAllowed:t.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(t){t.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const t=function(t,e){let n;var i;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${i=e.currentDate,i.toISOString().match(/^\d{4}-\d{2}/)[0]}-01"]`)),n||(n=t.querySelector(`[data-date="${Fe(e.currentDate)}"]`)),n}(this.elRef.current,this.props.dateProfile);if(t){const e=t.closest(".fc-daygrid-body"),n=e.closest(".fc-scroller"),i=t.getBoundingClientRect().top-e.getBoundingClientRect().top;n.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}class wl extends us{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(t,e){return e.sliceRange(t)}}class El extends Vr{constructor(){super(...arguments),this.slicer=new wl,this.tableRef={current:null}}render(){let{props:t,context:e}=this;return _(Al,Object.assign({ref:this.tableRef},this.slicer.sliceProps(t,t.dateProfile,t.nextDayThreshold,e,t.dayTableModel),{dateProfile:t.dateProfile,cells:t.dayTableModel.cells,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint}))}}function xl(t,e){let n=new as(t.renderRange,e);return new cs(n,/year|month|week/.test(t.currentRangeUnit))}Wt(':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}');var kl=ro({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:class extends Ko{constructor(){super(...arguments),this.buildDayTableModel=$e(xl),this.headerRef={current:null},this.tableRef={current:null}}render(){let{options:t,dateProfileGenerator:e}=this.context,{props:n}=this,i=this.buildDayTableModel(n.dateProfile,e),r=t.dayHeaders&&_(os,{ref:this.headerRef,dateProfile:n.dateProfile,dates:i.headerDates,datesRepDistinctDays:1===i.rowCnt}),s=e=>_(El,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:i,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:t.nextDayThreshold,colGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:n.forPrint});return t.dayMinWidth?this.renderHScrollLayout(r,s,i.colCnt,t.dayMinWidth):this.renderSimpleLayout(r,s)}},dateProfileGeneratorClass:class extends ui{buildRenderRange(t,e,n){let i=super.buildRenderRange(t,e,n),{props:r}=this;return function(t){let e,{dateEnv:n,currentRange:i}=t,{start:r,end:s}=i;if(t.snapToWeek&&(r=n.startOfWeek(r),e=n.startOfWeek(s),e.valueOf()!==s.valueOf()&&(s=Re(e,1))),t.fixedWeekCount){let t=n.startOfWeek(n.startOfMonth(Oe(i.end,-1)));s=Re(s,6-Math.ceil(je(t,s)/7))}return{start:r,end:s}}({currentRange:i,snapToWeek:/^(year|month)$/.test(e),fixedWeekCount:r.fixedWeekCount,dateEnv:r.dateEnv})}}},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});Xr.touchMouseIgnoreWait=500;let Sl=0,Dl=0,Cl=!1;class Tl{constructor(t){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=t=>{if(!this.shouldIgnoreMouse()&&function(t){return 0===t.button&&!t.ctrlKey}(t)&&this.tryStart(t)){let e=this.createEventFromMouse(t,!0);this.emitter.trigger("pointerdown",e),this.initScrollWatch(e),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=t=>{let e=this.createEventFromMouse(t);this.recordCoords(e),this.emitter.trigger("pointermove",e)},this.handleMouseUp=t=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(t)),this.cleanup()},this.handleTouchStart=t=>{if(this.tryStart(t)){this.isTouchDragging=!0;let e=this.createEventFromTouch(t,!0);this.emitter.trigger("pointerdown",e),this.initScrollWatch(e);let n=t.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=t=>{let e=this.createEventFromTouch(t);this.recordCoords(e),this.emitter.trigger("pointermove",e)},this.handleTouchEnd=t=>{if(this.isDragging){let e=t.target;e.removeEventListener("touchmove",this.handleTouchMove),e.removeEventListener("touchend",this.handleTouchEnd),e.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(t)),this.cleanup(),this.isTouchDragging=!1,Sl+=1,setTimeout((()=>{Sl-=1}),Xr.touchMouseIgnoreWait)}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=t=>{if(!this.shouldIgnoreMove){let e=window.scrollX-this.prevScrollX+this.prevPageX,n=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:t,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:e,pageY:n,deltaX:e-this.origPageX,deltaY:n-this.origPageY})}},this.containerEl=t,this.emitter=new Pi,t.addEventListener("mousedown",this.handleMouseDown),t.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),Dl+=1,1===Dl&&window.addEventListener("touchmove",Nl,{passive:!1})}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Dl-=1,Dl||window.removeEventListener("touchmove",Nl,{passive:!1})}tryStart(t){let e=this.querySubjectEl(t);return!(!e||this.handleSelector&&!Jt(t.target,this.handleSelector)||(this.subjectEl=e,this.isDragging=!0,this.wasTouchScroll=!1,0))}cleanup(){Cl=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(t){return this.selector?Jt(t.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Sl||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Cl=!0)}initScrollWatch(t){this.shouldWatchScroll&&(this.recordCoords(t),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(t){this.shouldWatchScroll&&(this.prevPageX=t.pageX,this.prevPageY=t.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(t,e){let n=0,i=0;return e?(this.origPageX=t.pageX,this.origPageY=t.pageY):(n=t.pageX-this.origPageX,i=t.pageY-this.origPageY),{origEvent:t,isTouch:!1,subjectEl:this.subjectEl,pageX:t.pageX,pageY:t.pageY,deltaX:n,deltaY:i}}createEventFromTouch(t,e){let n,i,r=t.touches,s=0,o=0;return r&&r.length?(n=r[0].pageX,i=r[0].pageY):(n=t.pageX,i=t.pageY),e?(this.origPageX=n,this.origPageY=i):(s=n-this.origPageX,o=i-this.origPageY),{origEvent:t,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:i,deltaX:s,deltaY:o}}}function Nl(t){Cl&&t.preventDefault()}class Ml{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(t,e,n){this.sourceEl=t,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=e-window.scrollX,this.origScreenY=n-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(t,e){this.deltaX=t-window.scrollX-this.origScreenX,this.deltaY=e-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(t){t?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=t,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=t)}stop(t,e){let n=()=>{this.cleanup(),e()};t&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(t,e){let n=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();n.style.transition="top "+e+"ms,left "+e+"ms",te(n,{left:i.left,top:i.top}),function(t,e){let n=()=>{e(),le.forEach((e=>{t.removeEventListener(e,n)}))};le.forEach((e=>{t.addEventListener(e,n)}))}(n,(()=>{n.style.transition="",t()}))}cleanup(){this.mirrorEl&&(Zt(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&te(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let t=this.sourceElRect,e=this.mirrorEl;return e||(e=this.mirrorEl=this.sourceEl.cloneNode(!0),e.style.userSelect="none",e.style.webkitUserSelect="none",e.style.pointerEvents="none",e.classList.add("fc-event-dragging"),te(e,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:t.right-t.left,height:t.bottom-t.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(e)),e}}class Rl extends Ur{constructor(t,e){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=t,this.doesListening=e,this.scrollTop=this.origScrollTop=t.getScrollTop(),this.scrollLeft=this.origScrollLeft=t.getScrollLeft(),this.scrollWidth=t.getScrollWidth(),this.scrollHeight=t.getScrollHeight(),this.clientWidth=t.getClientWidth(),this.clientHeight=t.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(t){this.scrollController.setScrollTop(t),this.doesListening||(this.scrollTop=Math.max(Math.min(t,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(t){this.scrollController.setScrollLeft(t),this.doesListening||(this.scrollLeft=Math.max(Math.min(t,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Ol extends Rl{constructor(t,e){super(new Qr(t),e)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Br(this.scrollController.el)}}class _l extends Rl{constructor(t){super(new Lr,t)}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 jl="function"==typeof performance?performance.now:Date.now;class Il{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 t=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(t){let e=jl();this.handleSide(t,(e-this.msSinceRequest)/1e3),this.requestAnimation(e)}else this.isAnimating=!1}}}start(t,e,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(t,e))}handleMove(t,e){if(this.isEnabled){let n=t-window.scrollX,i=e-window.scrollY,r=null===this.pointerScreenY?0:i-this.pointerScreenY,s=null===this.pointerScreenX?0:n-this.pointerScreenX;r<0?this.everMovedUp=!0:r>0&&(this.everMovedDown=!0),s<0?this.everMovedLeft=!0:s>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(jl()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let t of this.scrollCaches)t.destroy();this.scrollCaches=null}}requestAnimation(t){this.msSinceRequest=t,requestAnimationFrame(this.animate)}handleSide(t,e){let{scrollCache:n}=t,{edgeThreshold:i}=this,r=i-t.distance,s=r*r/(i*i)*this.maxVelocity*e,o=1;switch(t.name){case"left":o=-1;case"right":n.setScrollLeft(n.getScrollLeft()+s*o);break;case"top":o=-1;case"bottom":n.setScrollTop(n.getScrollTop()+s*o)}}computeBestEdge(t,e){let{edgeThreshold:n}=this,i=null,r=this.scrollCaches||[];for(let s of r){let r=s.clientRect,o=t-r.left,l=r.right-t,a=e-r.top,c=r.bottom-e;o>=0&&l>=0&&a>=0&&c>=0&&(a<=n&&this.everMovedUp&&s.canScrollUp()&&(!i||i.distance>a)&&(i={scrollCache:s,name:"top",distance:a}),c<=n&&this.everMovedDown&&s.canScrollDown()&&(!i||i.distance>c)&&(i={scrollCache:s,name:"bottom",distance:c}),o<=n&&this.everMovedLeft&&s.canScrollLeft()&&(!i||i.distance>o)&&(i={scrollCache:s,name:"left",distance:o}),l<=n&&this.everMovedRight&&s.canScrollRight()&&(!i||i.distance>l)&&(i={scrollCache:s,name:"right",distance:l}))}return i}buildCaches(t){return this.queryScrollEls(t).map((t=>t===window?new _l(!1):new Ol(t,!1)))}queryScrollEls(t){let e=[];for(let n of this.scrollQuery)"object"==typeof n?e.push(n):e.push(...Array.prototype.slice.call(t.getRootNode().querySelectorAll(n)));return e}}class Bl extends Jr{constructor(t,e){super(t),this.containerEl=t,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=t=>{var e;this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,(e=document.body).style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",se),document.body.addEventListener("contextmenu",se),t.isTouch||t.origEvent.preventDefault(),this.emitter.trigger("pointerdown",t),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(t.subjectEl,t.pageX,t.pageY),this.startDelay(t),this.minDistance||this.handleDistanceSurpassed(t)))},this.onPointerMove=t=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",t),!this.isDistanceSurpassed){let e,n=this.minDistance,{deltaX:i,deltaY:r}=t;e=i*i+r*r,e>=n*n&&this.handleDistanceSurpassed(t)}this.isDragging&&("scroll"!==t.origEvent.type&&(this.mirror.handleMove(t.pageX,t.pageY),this.autoScroller.handleMove(t.pageX,t.pageY)),this.emitter.trigger("dragmove",t))}},this.onPointerUp=t=>{var e;this.isInteracting&&(this.isInteracting=!1,(e=document.body).style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",se),document.body.removeEventListener("contextmenu",se),this.emitter.trigger("pointerup",t),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(t)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let n=this.pointer=new Tl(t);n.emitter.on("pointerdown",this.onPointerDown),n.emitter.on("pointermove",this.onPointerMove),n.emitter.on("pointerup",this.onPointerUp),e&&(n.selector=e),this.mirror=new Ml,this.autoScroller=new Il}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(t){"number"==typeof this.delay?this.delayTimeoutId=setTimeout((()=>{this.delayTimeoutId=null,this.handleDelayEnd(t)}),this.delay):this.handleDelayEnd(t)}handleDelayEnd(t){this.isDelayEnded=!0,this.tryStartDrag(t)}handleDistanceSurpassed(t){this.isDistanceSurpassed=!0,this.tryStartDrag(t)}tryStartDrag(t){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(t.pageX,t.pageY,this.containerEl),this.emitter.trigger("dragstart",t),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))}tryStopDrag(t){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,t))}stopDrag(t){this.isDragging=!1,this.emitter.trigger("dragend",t)}setIgnoreMove(t){this.pointer.shouldIgnoreMove=t}setMirrorIsVisible(t){this.mirror.setIsVisible(t)}setMirrorNeedsRevert(t){this.mirrorNeedsRevert=t}setAutoScrollEnabled(t){this.autoScroller.isEnabled=t}}class zl{constructor(t){this.el=t,this.origRect=zr(t),this.scrollCaches=Hr(t).map((t=>new Ol(t,!0)))}destroy(){for(let t of this.scrollCaches)t.destroy()}computeLeft(){let t=this.origRect.left;for(let e of this.scrollCaches)t+=e.origScrollLeft-e.getScrollLeft();return t}computeTop(){let t=this.origRect.top;for(let e of this.scrollCaches)t+=e.origScrollTop-e.getScrollTop();return t}isWithinClipping(t,e){let n={left:t,top:e};for(let t of this.scrollCaches)if(!Hl(t.getEventTarget())&&!xr(n,t.clientRect))return!1;return!0}}function Hl(t){let e=t.tagName;return"HTML"===e||"BODY"===e}class Pl{constructor(t,e){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=t=>{let{dragging:e}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(t),this.initialHit||!this.requireInitial?(e.setIgnoreMove(!1),this.emitter.trigger("pointerdown",t)):e.setIgnoreMove(!0)},this.handleDragStart=t=>{this.emitter.trigger("dragstart",t),this.handleMove(t,!0)},this.handleDragMove=t=>{this.emitter.trigger("dragmove",t),this.handleMove(t)},this.handlePointerUp=t=>{this.releaseHits(),this.emitter.trigger("pointerup",t)},this.handleDragEnd=t=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,t),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",t)},this.droppableStore=e,t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragstart",this.handleDragStart),t.emitter.on("dragmove",this.handleDragMove),t.emitter.on("pointerup",this.handlePointerUp),t.emitter.on("dragend",this.handleDragEnd),this.dragging=t,this.emitter=new Pi}processFirstCoord(t){let e,n={left:t.pageX,top:t.pageY},i=n,r=t.subjectEl;var s,o;r instanceof HTMLElement&&(e=zr(r),s=i,o=e,i={left:Math.min(Math.max(s.left,o.left),o.right),top:Math.min(Math.max(s.top,o.top),o.bottom)});let l=this.initialHit=this.queryHitForOffset(i.left,i.top);if(l){if(this.useSubjectCenter&&e){let t=kr(e,l.rect);t&&(i=function(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}(t))}this.coordAdjust={left:(a=i).left-(c=n).left,top:a.top-c.top}}else this.coordAdjust={left:0,top:0};var a,c}handleMove(t,e){let n=this.queryHitForOffset(t.pageX+this.coordAdjust.left,t.pageY+this.coordAdjust.top);!e&&Gl(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,t))}prepareHits(){this.offsetTrackers=Sn(this.droppableStore,(t=>(t.component.prepareHits(),new zl(t.el))))}releaseHits(){let{offsetTrackers:t}=this;for(let e in t)t[e].destroy();this.offsetTrackers={}}queryHitForOffset(t,e){let{droppableStore:n,offsetTrackers:i}=this,r=null;for(let s in n){let o=n[s].component,l=i[s];if(l&&l.isWithinClipping(t,e)){let n=l.computeLeft(),i=l.computeTop(),a=t-n,c=e-i,{origRect:u}=l,d=u.right-u.left,h=u.bottom-u.top;if(a>=0&&a<d&&c>=0&&c<h){let t=o.queryHit(a,c,d,h);t&&ri(t.dateProfile.activeRange,t.dateSpan.range)&&(this.disablePointCheck||l.el.contains(l.el.getRootNode().elementFromPoint(a+n-window.scrollX,c+i-window.scrollY)))&&(!r||t.layer>r.layer)&&(t.componentId=s,t.context=o.context,t.rect.left+=n,t.rect.right+=n,t.rect.top+=i,t.rect.bottom+=i,r=t)}}}return r}}function Gl(t,e){return!t&&!e||Boolean(t)===Boolean(e)&&(s=(i=e.dateSpan).range,(null===(r=(n=t.dateSpan).range).start?null:r.start.valueOf())===(null===s.start?null:s.start.valueOf())&&(null===r.end?null:r.end.valueOf())===(null===s.end?null:s.end.valueOf())&&n.allDay===i.allDay&&function(t,e){for(let n in e)if("range"!==n&&"allDay"!==n&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}(n,i));var n,i,r,s}function Ul(t,e){let n={};for(let i of e.pluginHooks.datePointTransforms)Object.assign(n,i(t,e));var i,r;return Object.assign(n,{date:(r=e.dateEnv).toDate((i=t).range.start),dateStr:r.formatIso(i.range.start,{omitTime:i.allDay}),allDay:i.allDay}),n}class Ql extends yr{constructor(t){super(t),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=t=>{let e=t.origEvent.target,{component:n,dragging:i}=this,{mirror:r}=i,{options:s}=n.context,o=n.context;this.subjectEl=t.subjectEl;let l=this.subjectSeg=Ki(t.subjectEl),a=(this.eventRange=l.eventRange).instance.instanceId;this.relevantEvents=xi(o.getCurrentData().eventStore,a),i.minDistance=t.isTouch?0:s.eventDragMinDistance,i.delay=t.isTouch&&a!==n.props.eventSelection?function(t){let{options:e}=t.context,n=e.eventLongPressDelay;return null==n&&(n=e.longPressDelay),n}(n):null,r.parentNode=s.fixedMirrorParent?s.fixedMirrorParent:Jt(e,".fc"),r.revertDuration=s.dragRevertDuration;let c=n.isValidSegDownEl(e)&&!Jt(e,".fc-event-resizer");i.setIgnoreMove(!c),this.isDragging=c&&t.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=t=>{let e=this.component.context,n=this.eventRange,i=n.instance.instanceId;t.isTouch?i!==this.component.props.eventSelection&&e.dispatch({type:"SELECT_EVENT",eventInstanceId:i}):e.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(e.calendarApi.unselect(t),e.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new $i(e,n.def,n.instance),jsEvent:t.origEvent,view:e.viewApi}))},this.handleHitUpdate=(t,e)=>{if(!this.isDragging)return;let n=this.relevantEvents,i=this.hitDragging.initialHit,r=this.component.context,s=null,o=null,l=null,a=!1,c={affectedEvents:n,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(t){s=t.context;let e=s.options;r===s||e.editable&&e.droppable?(o=function(t,e,n,i){let r=t.dateSpan,s=e.dateSpan,o=r.range.start,l=s.range.start,a={};r.allDay!==s.allDay&&(a.allDay=s.allDay,a.hasEnd=e.context.options.allDayMaintainDuration,o=s.allDay?Be(n):n);let c=ai(o,l,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);c.milliseconds&&(a.allDay=!1);let u={datesDelta:c,standardProps:a};for(let n of i)n(u,t,e);return u}(i,t,this.eventRange.instance.range.start,s.getCurrentData().pluginHooks.eventDragMutationMassagers),o&&(l=Vi(n,s.getCurrentData().eventUiBases,o,s),c.mutatedEvents=l,hs(c,t.dateProfile,s)||(a=!0,o=null,l=null,c.mutatedEvents={defs:{},instances:{}}))):s=null}this.displayDrag(s,c),a?he():fe(),e||(r===s&&Gl(i,t)&&(o=null),this.dragging.setMirrorNeedsRevert(!o),this.dragging.setMirrorIsVisible(!t||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=s,this.validMutation=o,this.mutatedRelevantEvents=l)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=t=>{if(this.isDragging){let e=this.component.context,n=e.viewApi,{receivingContext:i,validMutation:r}=this,s=this.eventRange.def,o=this.eventRange.instance,l=new $i(e,s,o),a=this.relevantEvents,c=this.mutatedRelevantEvents,{finalHit:u}=this.hitDragging;if(this.clearDrag(),e.emitter.trigger("eventDragStop",{el:this.subjectEl,event:l,jsEvent:t.origEvent,view:n}),r){if(i===e){let i=new $i(e,c.defs[s.defId],o?c.instances[o.instanceId]:null);e.dispatch({type:"MERGE_EVENTS",eventStore:c});let u={oldEvent:l,event:i,relatedEvents:Zi(c,e,o),revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:a})}},d={};for(let t of e.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(d,t(r,e));e.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},u),d),{el:t.subjectEl,delta:r.datesDelta,jsEvent:t.origEvent,view:n})),e.emitter.trigger("eventChange",u)}else if(i){let r={event:l,relatedEvents:Zi(a,e,o),revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:a})}};e.emitter.trigger("eventLeave",Object.assign(Object.assign({},r),{draggedEl:t.subjectEl,view:n})),e.dispatch({type:"REMOVE_EVENTS",eventStore:a}),e.emitter.trigger("eventRemove",r);let d=c.instances[o.instanceId],h=new $i(i,c.defs[s.defId],d);i.dispatch({type:"MERGE_EVENTS",eventStore:c});let f={event:h,relatedEvents:Zi(c,i,d),revert(){i.dispatch({type:"REMOVE_EVENTS",eventStore:c})}};i.emitter.trigger("eventAdd",f),t.isTouch&&i.dispatch({type:"SELECT_EVENT",eventInstanceId:o.instanceId}),i.emitter.trigger("drop",Object.assign(Object.assign({},Ul(u.dateSpan,i)),{draggedEl:t.subjectEl,jsEvent:t.origEvent,view:u.context.viewApi})),i.emitter.trigger("eventReceive",Object.assign(Object.assign({},f),{draggedEl:t.subjectEl,view:u.context.viewApi}))}}else e.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:e}=this,{options:n}=e.context,i=this.dragging=new Bl(t.el);i.pointer.selector=Ql.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=n.dragScroll;let r=this.hitDragging=new Pl(this.dragging,wr);r.useSubjectCenter=t.useEventCenter,r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("pointerup",this.handlePointerUp),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(t,e){let n=this.receivingContext;n&&n!==t&&n.dispatch(n===this.component.context?{type:"SET_EVENT_DRAG",state:{affectedEvents:e.affectedEvents,mutatedEvents:{defs:{},instances:{}},isEvent:!0}}:{type:"UNSET_EVENT_DRAG"}),t&&t.dispatch({type:"SET_EVENT_DRAG",state:e})}clearDrag(){let t=this.component.context,{receivingContext:e}=this;e&&e.dispatch({type:"UNSET_EVENT_DRAG"}),t!==e&&t.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}}Ql.SELECTOR=".fc-event-draggable, .fc-event-resizable";const Ll={fixedMirrorParent:wn},Vl={dateClick:wn,eventDragStart:wn,eventDragStop:wn,eventDrop:wn,eventResizeStart:wn,eventResizeStop:wn,eventResize:wn,drop:wn,eventReceive:wn,eventLeave:wn};Xr.dataAttrPrefix="";var Wl=ro({name:"@fullcalendar/interaction",componentInteractions:[class extends yr{constructor(t){super(t),this.handlePointerDown=t=>{let{dragging:e}=this;e.setIgnoreMove(!this.component.isValidDateDownEl(t.origEvent.target))},this.handleDragEnd=t=>{let{component:e}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:i}=this.hitDragging;if(n&&i&&Gl(n,i)){let{context:i}=e,r=Object.assign(Object.assign({},Ul(n.dateSpan,i)),{dayEl:n.dayEl,jsEvent:t.origEvent,view:i.viewApi||i.calendarApi.view});i.emitter.trigger("dateClick",r)}}},this.dragging=new Bl(t.el),this.dragging.autoScroller.isEnabled=!1;let e=this.hitDragging=new Pl(this.dragging,Ar(t));e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}},class extends yr{constructor(t){super(t),this.dragSelection=null,this.handlePointerDown=t=>{let{component:e,dragging:n}=this,{options:i}=e.context,r=i.selectable&&e.isValidDateDownEl(t.origEvent.target);n.setIgnoreMove(!r),n.delay=t.isTouch?function(t){let{options:e}=t.context,n=e.selectLongPressDelay;return null==n&&(n=e.longPressDelay),n}(e):null},this.handleDragStart=t=>{this.component.context.calendarApi.unselect(t)},this.handleHitUpdate=(t,e)=>{let{context:n}=this.component,i=null,r=!1;if(t){let e=this.hitDragging.initialHit;t.componentId===e.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(e,t)||(i=function(t,e,n){let i=t.dateSpan,r=e.dateSpan,s=[i.range.start,i.range.end,r.range.start,r.range.end];s.sort(me);let o={};for(let i of n){let n=i(t,e);if(!1===n)return null;n&&Object.assign(o,n)}return o.range={start:s[0],end:s[3]},o.allDay=i.allDay,o}(e,t,n.pluginHooks.dateSelectionTransformers)),i&&function(t,e,n){return!!ri(e.validRange,t.range)&&fs({dateSelection:t},n)}(i,t.dateProfile,n)||(r=!0,i=null)}i?n.dispatch({type:"SELECT_DATES",selection:i}):e||n.dispatch({type:"UNSELECT_DATES"}),r?he():fe(),e||(this.dragSelection=i)},this.handlePointerUp=t=>{this.dragSelection&&(Ui(this.dragSelection,t,this.component.context),this.dragSelection=null)};let{component:e}=t,{options:n}=e.context,i=this.dragging=new Bl(t.el);i.touchScrollAllowed=!1,i.minDistance=n.selectMinDistance||0,i.autoScroller.isEnabled=n.dragScroll;let r=this.hitDragging=new Pl(this.dragging,Ar(t));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}},Ql,class extends yr{constructor(t){super(t),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=t=>{let{component:e}=this,n=Ki(this.querySegEl(t)),i=this.eventRange=n.eventRange;this.dragging.minDistance=e.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(t.origEvent.target)||t.isTouch&&this.component.props.eventSelection!==i.instance.instanceId)},this.handleDragStart=t=>{let{context:e}=this.component,n=this.eventRange;this.relevantEvents=xi(e.getCurrentData().eventStore,this.eventRange.instance.instanceId);let i=this.querySegEl(t);this.draggingSegEl=i,this.draggingSeg=Ki(i),e.calendarApi.unselect(),e.emitter.trigger("eventResizeStart",{el:i,event:new $i(e,n.def,n.instance),jsEvent:t.origEvent,view:e.viewApi})},this.handleHitUpdate=(t,e,n)=>{let{context:i}=this.component,r=this.relevantEvents,s=this.hitDragging.initialHit,o=this.eventRange.instance,l=null,a=null,c=!1,u={affectedEvents:r,mutatedEvents:{defs:{},instances:{}},isEvent:!0};t&&(t.componentId===s.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(s,t)||(l=function(t,e,n,i){let r=t.context.dateEnv,s=ai(t.dateSpan.range.start,e.dateSpan.range.start,r,t.largeUnit);if(n){if(r.add(i.start,s)<i.end)return{startDelta:s}}else if(r.add(i.end,s)>i.start)return{endDelta:s};return null}(s,t,n.subjectEl.classList.contains("fc-event-resizer-start"),o.range))),l&&(a=Vi(r,i.getCurrentData().eventUiBases,l,i),u.mutatedEvents=a,hs(u,t.dateProfile,i)||(c=!0,l=null,a=null,u.mutatedEvents=null)),i.dispatch(a?{type:"SET_EVENT_RESIZE",state:u}:{type:"UNSET_EVENT_RESIZE"}),c?he():fe(),e||(l&&Gl(s,t)&&(l=null),this.validMutation=l,this.mutatedRelevantEvents=a)},this.handleDragEnd=t=>{let{context:e}=this.component,n=this.eventRange.def,i=this.eventRange.instance,r=new $i(e,n,i),s=this.relevantEvents,o=this.mutatedRelevantEvents;if(e.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:r,jsEvent:t.origEvent,view:e.viewApi}),this.validMutation){let l=new $i(e,o.defs[n.defId],i?o.instances[i.instanceId]:null);e.dispatch({type:"MERGE_EVENTS",eventStore:o});let a={oldEvent:r,event:l,relatedEvents:Zi(o,e,i),revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:s})}};e.emitter.trigger("eventResize",Object.assign(Object.assign({},a),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||Ee(0),endDelta:this.validMutation.endDelta||Ee(0),jsEvent:t.origEvent,view:e.viewApi})),e.emitter.trigger("eventChange",a)}else e.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:e}=t,n=this.dragging=new Bl(t.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=e.context.options.dragScroll;let i=this.hitDragging=new Pl(this.dragging,Ar(t));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(t){return Jt(t.subjectEl,".fc-event")}}],calendarInteractions:[class{constructor(t){this.context=t,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=t=>{t.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=t=>{let e=this.context.options.unselectCancel,n=ne(t.origEvent);this.matchesCancel=!!Jt(n,e),this.matchesEvent=!!Jt(n,Ql.SELECTOR)},this.onDocumentPointerUp=t=>{let{context:e}=this,{documentPointer:n}=this,i=e.getCurrentData();if(!n.wasTouchScroll){if(i.dateSelection&&!this.isRecentPointerDateSelect){let n=e.options.unselectAuto;!n||n&&this.matchesCancel||e.calendarApi.unselect(t)}i.eventSelection&&!this.matchesEvent&&e.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let e=this.documentPointer=new Tl(document);e.shouldIgnoreMove=!0,e.shouldWatchScroll=!1,e.emitter.on("pointerdown",this.onDocumentPointerDown),e.emitter.on("pointerup",this.onDocumentPointerUp),t.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}],elementDraggingImpl:Bl,optionRefiners:Ll,listenerRefiners:Vl});class Fl extends Ln{constructor(){super(...arguments),this.state={textId:re()}}render(){let{theme:t,dateEnv:e,options:n,viewApi:i}=this.context,{cellId:r,dayDate:s,todayRange:o}=this.props,{textId:l}=this.state,a=Tr(s,o),c=n.listDayFormat?e.format(s,n.listDayFormat):"",u=n.listDaySideFormat?e.format(s,n.listDaySideFormat):"",d=Object.assign({date:e.toDate(s),view:i,textId:l,text:c,sideText:u,navLinkAttrs:Or(this.context,s),sideNavLinkAttrs:Or(this.context,s,"day",!1)},a);return _(Zn,{elTag:"tr",elClasses:["fc-list-day",...Nr(a,t)],elAttrs:{"data-date":Fe(s)},renderProps:d,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:Yl,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(e=>_("th",{scope:"colgroup",colSpan:3,id:r,"aria-labelledby":l},_(e,{elTag:"div",elClasses:["fc-list-day-cushion",t.getClass("tableCellShaded")]}))))}}function Yl(t){return _(I,null,t.text&&_("a",Object.assign({id:t.textId,className:"fc-list-day-text"},t.navLinkAttrs),t.text),t.sideText&&_("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},t.sideNavLinkAttrs),t.sideText))}const $l=un({hour:"numeric",minute:"2-digit",meridiem:"short"});class ql extends Ln{render(){let{props:t,context:e}=this,{options:n}=e,{seg:i,timeHeaderId:r,eventHeaderId:s,dateHeaderId:o}=t,l=n.eventTimeFormat||$l;return _(Rs,Object.assign({},t,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>function(t,e){let n=dr(t,e);return _("a",Object.assign({},n),t.eventRange.def.title)}(i,e),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),((t,n)=>_(I,null,function(t,e,n,i,r){let{options:s}=n;if(!1!==s.displayEventTime){let o,l=t.eventRange.instance,a=!1;return t.eventRange.def.allDay?a=!0:function(t){let e=li(t);return je(e.start,e.end)>1}(t.eventRange.range)?t.isStart?o=lr(t,e,n,null,null,l.range.start,t.end):t.isEnd?o=lr(t,e,n,null,null,t.start,l.range.end):a=!0:o=lr(t,e,n),a?_(Zn,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${i} ${r}`},renderProps:{text:n.options.allDayText,view:n.viewApi},generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:Zl,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount}):_("td",{className:"fc-list-event-time"},o)}return null}(i,l,e,r,o),_("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},_("span",{className:"fc-list-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}})),_(t,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${s} ${o}`}}))))}}function Zl(t){return t.text}function Jl(t){return t.text}function Xl(t){let e=Be(t.renderRange.start),n=t.renderRange.end,i=[],r=[];for(;e<n;)i.push(e),r.push({start:e,end:Oe(e,1)}),e=Oe(e,1);return{dayDates:i,dayRanges:r}}function Kl(t){return!1===t?null:un(t)}Wt(':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}');var ta=ro({name:"@fullcalendar/list",optionRefiners:{listDayFormat:Kl,listDaySideFormat:Kl,noEventsClassNames:wn,noEventsContent:wn,noEventsDidMount:wn,noEventsWillUnmount:wn},views:{list:{component:class extends Vr{constructor(){super(...arguments),this.computeDateVars=$e(Xl),this.eventStoreToSegs=$e(this._eventStoreToSegs),this.state={timeHeaderId:re(),eventHeaderId:re(),dateHeaderIdRoot:re()},this.setRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:t,context:e}=this,{dayDates:n,dayRanges:i}=this.computeDateVars(t.dateProfile),r=this.eventStoreToSegs(t.eventStore,t.eventUiBases,i);return _(Xn,{elRef:this.setRootEl,elClasses:["fc-list",e.theme.getClass("table"),!1!==e.options.stickyHeaderDates?"fc-list-sticky":""],viewSpec:e.viewSpec},_(As,{liquid:!t.isHeightAuto,overflowX:t.isHeightAuto?"visible":"hidden",overflowY:t.isHeightAuto?"visible":"auto"},r.length>0?this.renderSegList(r,n):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:t,viewApi:e}=this.context;return _(Zn,{elTag:"div",elClasses:["fc-list-empty"],renderProps:{text:t.noEventsText,view:e},generatorName:"noEventsContent",customGenerator:t.noEventsContent,defaultGenerator:Jl,classNameGenerator:t.noEventsClassNames,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},(t=>_(t,{elTag:"div",elClasses:["fc-list-empty-cushion"]})))}renderSegList(t,e){let{theme:n,options:i}=this.context,{timeHeaderId:r,eventHeaderId:s,dateHeaderIdRoot:o}=this.state,l=function(t){let e,n,i=[];for(e=0;e<t.length;e+=1)n=t[e],(i[n.dayIndex]||(i[n.dayIndex]=[])).push(n);return i}(t);return _(rs,{unit:"day"},((t,a)=>{let c=[];for(let n=0;n<l.length;n+=1){let u=l[n];if(u){let l=Fe(e[n]),d=o+"-"+l;c.push(_(Fl,{key:l,cellId:d,dayDate:e[n],todayRange:a})),u=nr(u,i.eventOrder);for(let e of u)c.push(_(ql,Object.assign({key:l+":"+e.eventRange.instance.instanceId,seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:r,eventHeaderId:s,dateHeaderId:d},ar(e,a,t))))}}return _("table",{className:"fc-list-table "+n.getClass("table")},_("thead",null,_("tr",null,_("th",{scope:"col",id:r},i.timeHint),_("th",{scope:"col","aria-hidden":!0}),_("th",{scope:"col",id:s},i.eventHint))),_("tbody",null,c))}))}_eventStoreToSegs(t,e,n){return this.eventRangesToSegs(Ji(t,e,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(t,e){let n=[];for(let i of t)n.push(...this.eventRangeToSegs(i,e));return n}eventRangeToSegs(t,e){let n,i,r,{dateEnv:s}=this.context,{nextDayThreshold:o}=this.context.options,l=t.range,a=t.def.allDay,c=[];for(n=0;n<e.length;n+=1)if(i=ni(l,e[n]),i&&(r={component:this,eventRange:t,start:i.start,end:i.end,isStart:t.isStart&&i.start.valueOf()===l.start.valueOf(),isEnd:t.isEnd&&i.end.valueOf()===l.end.valueOf(),dayIndex:n},c.push(r),!r.isEnd&&!a&&n+1<e.length&&l.end<s.add(e[n+1].start,o))){r.end=l.end,r.isEnd=!0;break}return c}},buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});class ea extends Dr{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(t){return t.allDay?["allDay"]:["timed"]}getKeysForEventDef(t){return t.allDay?"background"===(e=t).ui.display||"inverse-background"===e.ui.display?["timed","allDay"]:["allDay"]:["timed"];var e}}const na=un({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function ia(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return _(Gn.Consumer,null,(n=>{if(!t.isLabeled)return _("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:i,options:r,viewApi:s}=n,o=null==r.slotLabelFormat?na:Array.isArray(r.slotLabelFormat)?un(r.slotLabelFormat[0]):un(r.slotLabelFormat),l={level:0,time:t.time,date:i.toDate(t.date),view:s,text:i.format(t.date,o)};return _(Zn,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:l,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:ra,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},(t=>_("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},_(t,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]}))))}))}function ra(t){return t.text}class sa extends Ln{render(){return this.props.slatMetas.map((t=>_("tr",{key:t.key},_(ia,Object.assign({},t)))))}}const oa=un({week:"short"});class la extends Vr{constructor(){super(...arguments),this.allDaySplitter=new ea,this.headerElRef={current:null},this.rootElRef={current:null},this.scrollerElRef={current:null},this.state={slatCoords:null},this.handleScrollTopRequest=t=>{let e=this.scrollerElRef.current;e&&(e.scrollTop=t)},this.renderHeadAxis=(t,e="")=>{let{options:n}=this.context,{dateProfile:i}=this.props,r=i.renderRange,s=1===je(r.start,r.end)?Or(this.context,r.start,"week"):{};return n.weekNumbers&&"day"===t?_(Qs,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:r.start,defaultFormat:oa},(t=>_("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:e}},_(t,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s})))):_("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},_("div",{className:"fc-timegrid-axis-frame",style:{height:e}}))},this.renderTableRowAxis=t=>{let{options:e,viewApi:n}=this.context;return _(Zn,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:{text:e.allDayText,view:n},generatorName:"allDayContent",customGenerator:e.allDayContent,defaultGenerator:aa,classNameGenerator:e.allDayClassNames,didMount:e.allDayDidMount,willUnmount:e.allDayWillUnmount},(e=>_("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==t?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:t}},_(e,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]}))))},this.handleSlatCoords=t=>{this.setState({slatCoords:t})}}renderSimpleLayout(t,e,n){let{context:i,props:r}=this,s=[],o=Ts(i.options);return t&&s.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),e&&(s.push({type:"body",key:"all-day",chunk:{content:e}}),s.push({type:"body",key:"all-day-divider",outerContent:_("tr",{role:"presentation",className:"fc-scrollgrid-section"},_("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),s.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(i.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),_(Xn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},_(Ms,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[{width:"shrink"}],sections:s}))}renderHScrollLayout(t,e,n,i,r,s,o){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{context:a,props:c}=this,u=!c.forPrint&&Ts(a.options),d=!c.forPrint&&Ns(a.options),h=[];t&&h.push({type:"header",key:"header",isSticky:u,syncRowHeights:!0,chunks:[{key:"axis",rowContent:t=>_("tr",{role:"presentation"},this.renderHeadAxis("day",t.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),e&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:t=>_("tr",{role:"presentation"},this.renderTableRowAxis(t.rowSyncHeights[0]))},{key:"cols",content:e}]}),h.push({key:"all-day-divider",type:"body",outerContent:_("tr",{role:"presentation",className:"fc-scrollgrid-section"},_("td",{colSpan:2,className:"fc-timegrid-divider "+a.theme.getClass("tableCellShaded")}))}));let f=a.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(a.options.expandRows),chunks:[{key:"axis",content:t=>_("div",{className:"fc-timegrid-axis-chunk"},_("table",{"aria-hidden":!0,style:{height:t.expandRows?t.clientHeight:""}},t.tableColGroupNode,_("tbody",null,_(sa,{slatMetas:s}))),_("div",{className:"fc-timegrid-now-indicator-container"},_(rs,{unit:f?"minute":"day"},(t=>{let e=f&&o&&o.safeComputeTop(t);return"number"==typeof e?_(js,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:e},isAxis:!0,date:t}):null}))))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),d&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Cs},{key:"cols",content:Cs}]}),_(Xn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:a.viewSpec},_(l,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:r}]}],sections:h}))}getAllDayMaxEventProps(){let{dayMaxEvents:t,dayMaxEventRows:e}=this.context.options;return!0!==t&&!0!==e||(t=void 0,e=5),{dayMaxEvents:t,dayMaxEventRows:e}}}function aa(t){return t.text}class ca{constructor(t,e,n){this.positions=t,this.dateProfile=e,this.slotDuration=n}safeComputeTop(t){let{dateProfile:e}=this;if(si(e.currentRange,t)){let n=Be(t),i=t.valueOf()-n.valueOf();if(i>=De(e.slotMinTime)&&i<De(e.slotMaxTime))return this.computeTimeTop(Ee(i))}return null}computeDateTop(t,e){return e||(e=Be(t)),this.computeTimeTop(Ee(t.valueOf()-e.valueOf()))}computeTimeTop(t){let e,n,{positions:i,dateProfile:r}=this,s=i.els.length,o=(t.milliseconds-De(r.slotMinTime))/De(this.slotDuration);return o=Math.max(0,o),o=Math.min(s,o),e=Math.floor(o),e=Math.min(e,s-1),n=o-e,i.tops[e]+i.getHeight(e)*n}}class ua extends Ln{render(){let{props:t,context:e}=this,{options:n}=e,{slatElRefs:i}=t;return _("tbody",null,t.slatMetas.map((r=>{let s={time:r.time,date:e.dateEnv.toDate(r.date),view:e.viewApi};return _("tr",{key:r.key,ref:i.createRef(r.key)},t.axis&&_(ia,Object.assign({},r)),_(Zn,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!r.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":r.isoTimeStr},renderProps:s,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))})))}}class da extends Ln{constructor(){super(...arguments),this.rootElRef={current:null},this.slatElRefs=new ws}render(){let{props:t,context:e}=this;return _("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},_("table",{"aria-hidden":!0,className:e.theme.getClass("table"),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,_(ua,{slatElRefs:this.slatElRefs,axis:t.axis,slatMetas:t.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:t,props:e}=this;var n;e.onCoords&&null!==e.clientWidth&&this.rootElRef.current.offsetHeight&&e.onCoords(new ca(new Pr(this.rootElRef.current,(n=this.slatElRefs.currentMap,e.slatMetas.map((t=>n[t.key]))),!1,!0),this.props.dateProfile,t.options.slotDuration))}}function ha(t,e){let n,i=[];for(n=0;n<e;n+=1)i.push([]);if(t)for(n=0;n<t.length;n+=1)i[t[n].col].push(t[n]);return i}function fa(t,e){let n=[];if(t){for(let i=0;i<e;i+=1)n[i]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let e of t.segs)n[e.col].segs.push(e)}else for(let t=0;t<e;t+=1)n[t]=null;return n}class pa extends Ln{render(){let{props:t}=this;return _(Fs,{elClasses:["fc-timegrid-more-link"],elStyle:{top:t.top,bottom:t.bottom},allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:()=>ka(t.hiddenSegs,t),defaultGenerator:ga,forceTimed:!0},(t=>_(t,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]})))}}function ga(t){return t.shortText}function va(t,e){if(!t)return[[],0];let{level:n,lateralStart:i,lateralEnd:r}=t,s=i,o=[];for(;s<r;)o.push(e(n,s)),s+=1;return o.sort(ma),[o.map(ba),o[0][1]]}function ma(t,e){return e[1]-t[1]}function ba(t){return t[0]}function ya(t,e){const n={};return(...i)=>{let r=t(...i);return r in n?n[r]:n[r]=e(...i)}}function Aa(t,e,n=null,i=0){let r=[];if(n)for(let s=0;s<t.length;s+=1){let o=t[s],l=n.computeDateTop(o.start,e),a=Math.max(l+(i||0),n.computeDateTop(o.end,e));r.push({start:Math.round(l),end:Math.round(a)})}return r}const wa=un({hour:"numeric",minute:"2-digit",meridiem:!1});class Ea extends Ln{render(){return _(Os,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:wa}))}}class xa extends Ln{constructor(){super(...arguments),this.sortEventSegs=$e(nr)}render(){let{props:t,context:e}=this,{options:n}=e,i=n.selectMirror,r=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||i&&t.dateSelectionSegs||[],s=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},o=this.sortEventSegs(t.fgEventSegs,n.eventOrder);return _(Bs,{elTag:"td",elRef:t.elRef,elClasses:["fc-timegrid-col",...t.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},t.extraDataAttrs),date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraRenderProps:t.extraRenderProps},(e=>_("div",{className:"fc-timegrid-col-frame"},_("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(t.businessHourSegs,"non-business"),this.renderFillSegs(t.bgEventSegs,"bg-event"),this.renderFillSegs(t.dateSelectionSegs,"highlight")),_("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,s,!1,!1,!1)),_("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(r,{},Boolean(t.eventDrag),Boolean(t.eventResize),Boolean(i),"mirror")),_("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(t.nowIndicatorSegs)),zs(n)&&_(e,{elTag:"div",elClasses:["fc-timegrid-col-misc"]}))))}renderFgSegs(t,e,n,i,r,s){let{props:o}=this;return o.forPrint?ka(t,o):this.renderPositionedFgSegs(t,e,n,i,r,s)}renderPositionedFgSegs(t,e,n,i,r,s){let{eventMaxStack:o,eventShortHeight:l,eventOrderStrict:a,eventMinHeight:c}=this.context.options,{date:u,slatCoords:d,eventSelection:h,todayRange:f,nowDate:p}=this.props,g=n||i||r,v=Aa(t,u,d,c),{segPlacements:m,hiddenGroups:b}=function(t,e,n,i){let r=[],s=[];for(let n=0;n<t.length;n+=1){let i=e[n];i?r.push({index:n,thickness:1,span:i}):s.push(t[n])}let{segRects:o,hiddenGroups:l}=function(t,e,n){let i=new Wr;null!=e&&(i.strictOrder=e),null!=n&&(i.maxStackCnt=n);let r=function(t){let e=[];for(let r of t){let t=[],s={span:r.span,entries:[r]};for(let r of e)$r(r.span,s.span)?s={entries:r.entries.concat(s.entries),span:(n=r.span,i=s.span,{start:Math.min(n.start,i.start),end:Math.max(n.end,i.end)})}:t.push(r);t.push(s),e=t}var n,i;return e}(i.addSegs(t)),s=function(t){const{entriesByLevel:e}=t,n=ya(((t,e)=>t+":"+e),((i,r)=>{let s=function(t,e,n){let{levelCoords:i,entriesByLevel:r}=t,s=r[e][n],o=i[e]+s.thickness,l=i.length,a=e;for(;a<l&&i[a]<o;a+=1);for(;a<l;a+=1){let t,e=r[a],n=Zr(e,s.span.start,Fr),i=n[0]+n[1],o=i;for(;(t=e[o])&&t.span.start<s.span.end;)o+=1;if(i<o)return{level:a,lateralStart:i,lateralEnd:o}}return null}(t,i,r),o=va(s,n),l=e[i][r];return[Object.assign(Object.assign({},l),{nextLevelNodes:o[0]}),l.thickness+o[1]]}));return va(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}(i);return s=function(t){const e=ya((t=>Yr(t)),((t,n,i)=>{let r,{nextLevelNodes:s,thickness:o}=t,l=o+i,a=o/l,c=[];if(s.length)for(let t of s)if(void 0===r){let i=e(t,n,l);r=i[0],c.push(i[1])}else{let n=e(t,r,0);c.push(n[1])}else r=1;let u=(r-n)*a;return[r-u,Object.assign(Object.assign({},t),{thickness:u,nextLevelNodes:c})]}));return t.map((t=>e(t,0,0)[1]))}(s),{segRects:function(t){let e=[];const n=ya((t=>Yr(t)),((t,n,r)=>{let s=Object.assign(Object.assign({},t),{levelCoord:n,stackDepth:r,stackForward:0});return e.push(s),s.stackForward=i(t.nextLevelNodes,n+t.thickness,r+1)+1}));function i(t,e,i){let r=0;for(let s of t)r=Math.max(n(s,e,i),r);return r}return i(t,0,0),e}(s),hiddenGroups:r}}(r,n,i),a=[];for(let e of o)a.push({seg:t[e.index],rect:e});for(let t of s)a.push({seg:t,rect:null});return{segPlacements:a,hiddenGroups:l}}(t,v,a,o);return _(I,null,this.renderHiddenGroups(b,t),m.map((t=>{let{seg:o,rect:a}=t,c=o.eventRange.instance.instanceId,u=g||Boolean(!e[c]&&a),d=Sa(a&&a.span),v=!g&&a?this.computeSegHStyle(a):{left:0,right:0},m=Boolean(a)&&a.stackForward>0,b=Boolean(a)&&a.span.end-a.span.start<l;return _("div",{className:"fc-timegrid-event-harness"+(m?" fc-timegrid-event-harness-inset":""),key:s||c,style:Object.assign(Object.assign({visibility:u?"":"hidden"},d),v)},_(Ea,Object.assign({seg:o,isDragging:n,isResizing:i,isDateSelecting:r,isSelected:c===h,isShort:b},ar(o,f,p))))})))}renderHiddenGroups(t,e){let{extraDateSpan:n,dateProfile:i,todayRange:r,nowDate:s,eventSelection:o,eventDrag:l,eventResize:a}=this.props;return _(I,null,t.map((t=>{let c=Sa(t.span),u=(d=e,t.entries.map((t=>d[t.index])));var d;return _(pa,{key:We(qs(u)),hiddenSegs:u,top:c.top,bottom:c.bottom,extraDateSpan:n,dateProfile:i,todayRange:r,nowDate:s,eventSelection:o,eventDrag:l,eventResize:a})})))}renderFillSegs(t,e){let{props:n,context:i}=this,r=Aa(t,n.date,n.slatCoords,i.options.eventMinHeight).map(((i,r)=>{let s=t[r];return _("div",{key:ur(s.eventRange),className:"fc-timegrid-bg-harness",style:Sa(i)},"bg-event"===e?_(Ps,Object.assign({seg:s},ar(s,n.todayRange,n.nowDate))):Us(e))}));return _(I,null,r)}renderNowIndicator(t){let{slatCoords:e,date:n}=this.props;return e?t.map(((t,i)=>_(js,{key:i,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:e.computeDateTop(t.start,n)},isAxis:!1,date:n}))):null}computeSegHStyle(t){let e,n,{isRtl:i,options:r}=this.context,s=r.slotEventOverlap,o=t.levelCoord,l=t.levelCoord+t.thickness;s&&(l=Math.min(1,o+2*(l-o))),i?(e=1-l,n=o):(e=o,n=1-l);let a={zIndex:t.stackDepth+1,left:100*e+"%",right:100*n+"%"};return s&&!t.stackForward&&(a[i?"marginLeft":"marginRight"]=20),a}}function ka(t,{todayRange:e,nowDate:n,eventSelection:i,eventDrag:r,eventResize:s}){let o=(r?r.affectedInstances:null)||(s?s.affectedInstances:null)||{};return _(I,null,t.map((t=>{let r=t.eventRange.instance.instanceId;return _("div",{key:r,style:{visibility:o[r]?"hidden":""}},_(Ea,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===i,isShort:!1},ar(t,e,n))))})))}function Sa(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}class Da extends Ln{constructor(){super(...arguments),this.splitFgEventSegs=$e(ha),this.splitBgEventSegs=$e(ha),this.splitBusinessHourSegs=$e(ha),this.splitNowIndicatorSegs=$e(ha),this.splitDateSelectionSegs=$e(ha),this.splitEventDrag=$e(fa),this.splitEventResize=$e(fa),this.rootElRef={current:null},this.cellElRefs=new ws}render(){let{props:t,context:e}=this,n=e.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),i=t.cells.length,r=this.splitFgEventSegs(t.fgEventSegs,i),s=this.splitBgEventSegs(t.bgEventSegs,i),o=this.splitBusinessHourSegs(t.businessHourSegs,i),l=this.splitNowIndicatorSegs(t.nowIndicatorSegs,i),a=this.splitDateSelectionSegs(t.dateSelectionSegs,i),c=this.splitEventDrag(t.eventDrag,i),u=this.splitEventResize(t.eventResize,i);return _("div",{className:"fc-timegrid-cols",ref:this.rootElRef},_("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,_("tbody",{role:"presentation"},_("tr",{role:"row"},t.axis&&_("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},_("div",{className:"fc-timegrid-col-frame"},_("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&_(js,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:!0,date:t.nowDate})))),t.cells.map(((e,n)=>_(xa,{key:e.key,elRef:this.cellElRefs.createRef(e.key),dateProfile:t.dateProfile,date:e.date,nowDate:t.nowDate,todayRange:t.todayRange,extraRenderProps:e.extraRenderProps,extraDataAttrs:e.extraDataAttrs,extraClassNames:e.extraClassNames,extraDateSpan:e.extraDateSpan,fgEventSegs:r[n],bgEventSegs:s[n],businessHourSegs:o[n],nowIndicatorSegs:l[n],dateSelectionSegs:a[n],eventDrag:c[n],eventResize:u[n],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint})))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:t}=this;var e;t.onColCoords&&null!==t.clientWidth&&t.onColCoords(new Pr(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.cells.map((t=>e[t.key]))),!0,!1))}}class Ca extends Vr{constructor(){super(...arguments),this.processSlotOptions=$e(Ta),this.state={slatCoords:null},this.handleRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=t=>{let{onScrollTopRequest:e}=this.props,{slatCoords:n}=this.state;if(e&&n){if(t.time){let i=n.computeTimeTop(t.time);i=Math.ceil(i),i&&(i+=1),e(i)}return!0}return!1},this.handleColCoords=t=>{this.colCoords=t},this.handleSlatCoords=t=>{this.setState({slatCoords:t}),this.props.onSlatCoords&&this.props.onSlatCoords(t)}}render(){let{props:t,state:e}=this;return _("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},_(da,{axis:t.axis,dateProfile:t.dateProfile,slatMetas:t.slatMetas,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:"",tableMinWidth:t.tableMinWidth,tableColGroupNode:t.axis?t.tableColGroupNode:null,onCoords:this.handleSlatCoords}),_(Da,{cells:t.cells,axis:t.axis,dateProfile:t.dateProfile,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange,nowDate:t.nowDate,nowIndicatorSegs:t.nowIndicatorSegs,clientWidth:t.clientWidth,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,slatCoords:e.slatCoords,onColCoords:this.handleColCoords,forPrint:t.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(t){this.scrollResponder.update(t.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(t,e){let{dateEnv:n,options:i}=this.context,{colCoords:r}=this,{dateProfile:s}=this.props,{slatCoords:o}=this.state,{snapDuration:l,snapsPerSlot:a}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),c=r.leftToIndex(t),u=o.positions.topToIndex(e);if(null!=c&&null!=u){let t=this.props.cells[c],i=o.positions.tops[u],d=o.positions.getHeight(u),h=Math.floor((e-i)/d*a),f=this.props.cells[c].date,p=ke(s.slotMinTime,function(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}(l,u*a+h)),g=n.add(f,p),v=n.add(g,l);return{dateProfile:s,dateSpan:Object.assign({range:{start:g,end:v},allDay:!1},t.extraDateSpan),dayEl:r.els[c],rect:{left:r.lefts[c],right:r.rights[c],top:i,bottom:i+d},layer:0}}return null}}function Ta(t,e){let n=e||t,i=Ce(t,n);return null===i&&(n=t,i=1),{snapDuration:n,snapsPerSlot:i}}class Na extends us{sliceRange(t,e){let n=[];for(let i=0;i<e.length;i+=1){let r=ni(t,e[i]);r&&n.push({start:r.start,end:r.end,isStart:r.start.valueOf()===t.start.valueOf(),isEnd:r.end.valueOf()===t.end.valueOf(),col:i})}return n}}class Ma extends Vr{constructor(){super(...arguments),this.buildDayRanges=$e(Ra),this.slicer=new Na,this.timeColsRef={current:null}}render(){let{props:t,context:e}=this,{dateProfile:n,dayTableModel:i}=t,{nowIndicator:r,nextDayThreshold:s}=e.options,o=this.buildDayRanges(i,n,e.dateEnv);return _(rs,{unit:r?"minute":"day"},((l,a)=>_(Ca,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(t,n,null,e,o),{forPrint:t.forPrint,axis:t.axis,dateProfile:n,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:i.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:l,nowIndicatorSegs:r&&this.slicer.sliceNowDate(l,n,s,e,o),todayRange:a,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords}))))}}function Ra(t,e,n){let i=[];for(let r of t.headerDates)i.push({start:n.add(r,e.slotMinTime),end:n.add(r,e.slotMaxTime)});return i}const Oa=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function _a(t,e,n,i,r){let s=new Date(0),o=t,l=Ee(0),a=n||function(t){let e,n,i;for(e=Oa.length-1;e>=0;e-=1)if(n=Ee(Oa[e]),i=Ce(n,t),null!==i&&i>1)return n;return t}(i),c=[];for(;De(o)<De(e);){let t=r.add(s,o),e=null!==Ce(l,a);c.push({date:t,time:o,key:t.toISOString(),isoTimeStr:(u=t,ge(u.getUTCHours(),2)+":"+ge(u.getUTCMinutes(),2)+":"+ge(u.getUTCSeconds(),2)),isLabeled:e}),o=ke(o,i),l=ke(l,i)}var u;return c}function ja(t,e){let n=new as(t.renderRange,e);return new cs(n,!1)}Wt('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');var Ia,Ba,za,Ha=ro({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:class extends la{constructor(){super(...arguments),this.buildTimeColsModel=$e(ja),this.buildSlatMetas=$e(_a)}render(){let{options:t,dateEnv:e,dateProfileGenerator:n}=this.context,{props:i}=this,{dateProfile:r}=i,s=this.buildTimeColsModel(r,n),o=this.allDaySplitter.splitProps(i),l=this.buildSlatMetas(r.slotMinTime,r.slotMaxTime,t.slotLabelInterval,t.slotDuration,e),{dayMinWidth:a}=t,c=!a,u=a,d=t.dayHeaders&&_(os,{dates:s.headerDates,dateProfile:r,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),h=!1!==t.allDaySlot&&(e=>_(El,Object.assign({},o.allDay,{dateProfile:r,dayTableModel:s,nextDayThreshold:t.nextDayThreshold,tableMinWidth:e.tableMinWidth,colGroupNode:e.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),f=e=>_(Ma,Object.assign({},o.timed,{dayTableModel:s,dateProfile:r,axis:c,slotDuration:t.slotDuration,slatMetas:l,forPrint:i.forPrint,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:e.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return u?this.renderHScrollLayout(d,h,f,s.colCnt,a,l,this.state.slatCoords):this.renderSimpleLayout(d,h,f)}},usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),Pa={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:t=>`Show ${t} more event${1===t?"":"s"}`},Ga={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today:t=>"Día"===t?"Hoy":("Semana"===t?"Esta":"Este")+" "+t.toLocaleLowerCase()},viewHint:t=>"Vista "+("Semana"===t?"de la":"del")+" "+t.toLocaleLowerCase(),weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint:t=>`Mostrar ${t} eventos más`,noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},Ua={code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",weekTextLong:"Semaine",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},Qa={code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",year:"Anno",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText:t=>"+altri "+t,noEventsText:"Non ci sono eventi da visualizzare"},La={code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",year:"Rok",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"},Va={code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",year:"Год",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText:t=>"+ ещё "+t,noEventsText:"Нет событий для отображения"},Wa={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText:t=>"另外 "+t+" 个",noEventsText:"没有事件显示"};!function(t){t.currentDate="Sets the date of the calendar. Must be in ISO format (YYYY-MM-DD).",t.customStyle="Custom style of the component.",t.data="Actual data of the calendar.",t.editableEvents="When true, events are editable.",t.hideNavigation="When disabled, the navigation toolbar won't be displayed.",t.viewType="Type of the view."}(Ia||(Ia={})),function(t){t.DAY="timeGridDay",t.LIST="listMonth",t.MONTH="dayGridMonth",t.WEEK="timeGridWeek"}(Ba||(Ba={})),function(t){t.DATE="date",t.DESCR="descr",t.END="end",t.ICON="icon",t.IMAGE="image",t.START="start",t.STYLE="style"}(za||(za={}));const Fa=class{constructor(n){t(this,n),this.kupCalendarEventClick=e(this,"kup-calendar-eventclick",6),this.kupCalendarDateClick=e(this,"kup-calendar-dateclick",6),this.kupCalendarEventDrop=e(this,"kup-calendar-eventdrop",6),this.kupCalendarViewChange=e(this,"kup-calendar-viewchange",6),this.calendarContainer=null,this.kupManager=l(),this.navTitle=null,this.resizeTimeout=null,this.dateCol=null,this.descrCol=null,this.endCol=null,this.iconCol=null,this.imageCol=null,this.startCol=null,this.styleCol=null,this.currentDate=null,this.customStyle="",this.data=null,this.calendarColumns={[za.DATE]:"",[za.DESCR]:"",[za.END]:"",[za.ICON]:"",[za.IMAGE]:"",[za.START]:"",[za.STYLE]:""},this.hideNavigation=!1,this.editableEvents=!0,this.enableChangeView=!1,this.viewType=Ba.MONTH}setCalendarData(){var t;this.calendarContainer&&(this.calendar&&this.calendar.destroy(),(null===(t=this.data)||void 0===t?void 0:t.columns)&&this.data.columns.forEach((t=>{for(const e in this.calendarColumns)if(this.calendarColumns[e]===t.name){this[`${e}Col`]=t.name;break}})),this.calendar=new Xo(this.calendarContainer,{dateClick:({date:t})=>{this.kupCalendarDateClick.emit({comp:this,id:this.rootElement.id,date:t})},editable:!0,eventClick:({event:t})=>{this.kupCalendarEventClick.emit({comp:this,id:this.rootElement.id,row:t.extendedProps.row})},eventDidMount:t=>{if(this.iconCol){const e=t.event.extendedProps.row.cells[this.iconCol];if(null==e?void 0:e.value){const i=document.createElement("div");i.classList.add("icon-wrapper"),e.value.split(";").forEach((t=>{if(t){const e=document.createElement("span");e.className="custom-icon";const r=n(`./assets/svg/${t}.svg`);e.style.mask=`url('${r}') no-repeat center`,e.style.webkitMask=`url('${r}') no-repeat center`,i.appendChild(e)}})),t.el.appendChild(i)}}if(this.imageCol){const e=t.event.extendedProps.row.cells[this.imageCol];if(e&&e.value){const n=document.createElement("div");n.classList.add("image-wrapper"),e.value.split(";").forEach((t=>{const e=document.createElement("img");e.src=t,n.appendChild(e)})),t.el.appendChild(n)}}if(this.styleCol){const e=t.event.extendedProps.row.cells[this.styleCol],n=t.el.children[0].parentElement;e&&e.style&&Object.keys(e.style).forEach((t=>{n.style[t]=e.style[t]}))}},eventDrop:({event:t,oldEvent:e})=>{var n;this.kupCalendarEventDrop.emit({comp:this,id:this.rootElement.id,fromDate:{start:e.start,end:e.end},toDate:{start:t.start,end:t.end},row:null===(n=e.extendedProps)||void 0===n?void 0:n.row})},events:this.getEvents(),headerToolbar:!1,initialDate:this.currentDate,initialView:this.viewType,locale:this.getLocale(),locales:[Ga,Ua,Qa,La,Va,Wa],plugins:[kl,Wl,ta,Ha]}),this.calendar.render())}async getProps(t){return a(this,Ia,t)}async refresh(){i(this)}async resizeCallback(){window.clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{this.refresh()}),300)}async setProps(t){c(this,Ia,t)}changeView(t){this.viewType=t,this.calendar.changeView(t)}getColumns(){return this.data&&this.data.rows?this.data.columns:[]}getLocale(){switch(this.kupManager.dates.locale){case m.CHINESE:return Wa;case m.FRENCH:return Ua;case m.ITALIAN:return Qa;case m.POLISH:return La;case m.RUSSIAN:return Va;case m.SPANISH:return Ga;default:return Pa}}getRows(){return this.data&&this.data.rows?this.data.rows:[]}setChipProps(){const t={data:[],onClick:[],type:v.CHOICE,wrapperClass:"navigation__choice"};for(const e in Ba){const n=Ba[e],i={checked:this.viewType===n,value:this.kupManager.language.translate(u[e]),id:e};t.data.push(i),t.onClick.push((()=>this.changeView(n)))}return t}getEvents(){const t=this.startCol&&this.endCol&&d(this.getColumns(),this.startCol)&&d(this.getColumns(),this.endCol);return this.getRows().map((e=>{const n=e.cells[this.dateCol];if(n){let i=this.kupManager.dates.toDayjs(n.value),r=this.kupManager.dates.toDayjs(n.value);if(t){const t=e.cells[this.startCol],n=e.cells[this.endCol];if(t&&n){const e=this.kupManager.dates.toDayjs(t.value,b.ISO_TIME),s=this.kupManager.dates.toDayjs(n.value,b.ISO_TIME);e&&s?(i=i.hour(e.hour()),i=i.minute(e.minute()),i=i.second(e.second()),r=r.hour(s.hour()),r=r.minute(s.minute()),r=r.second(s.second())):this.kupManager.debug.logMessage(this,`error while converting hour range: [${e?`start hour: ${e}`:`invalid start hour: ${t.value}`}, ${s?`end hour: ${s}`:`invalid end hour: ${n.value}`}]`,h.WARNING)}}if(r&&i)return{allDay:!t,editable:this.editableEvents,end:r.toISOString(),extendedProps:{row:e},start:i.toISOString(),title:e.cells[this.descrCol].value};this.kupManager.debug.logMessage(this,`error while converting dates: [${i?`start date: ${i}`:`invalid start date: ${n.value}`}. ${r?`end date: ${r}`:`invalid end date: ${n.value}`}]`,h.WARNING)}}))}onPrev(){this.calendar.prev(),this.updateCalendar(),this.emitNavEvent()}onNext(){this.calendar.next(),this.updateCalendar(),this.emitNavEvent()}onToday(){this.calendar.today(),this.updateCalendar()}emitNavEvent(){const t=this.kupManager.dates.subtract(this.calendar.view.currentEnd,1,"day").toDate();this.kupCalendarViewChange.emit({comp:this,id:this.rootElement.id,from:this.calendar.view.currentStart,to:t})}updateCalendar(){this.calendar&&(this.calendar.setOption("locale",this.getLocale()),this.navTitle.innerText=this.calendar.getCurrentData().viewTitle,this.calendar.updateSize())}componentWillLoad(){this.kupManager.dates.register(this),this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.setCalendarData(),this.updateCalendar(),this.kupManager.resize.observe(this.rootElement),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.updateCalendar(),this.kupManager.debug.logRender(this,!0)}render(){return r(s,{key:"142bf009267f546b2dbfefc01145fa1368066243"},r("style",{key:"bcfe9431bbff8b4b786fc228eb3c011327a01de8"},this.kupManager.theme.setKupStyle(this.rootElement)),r("div",{key:"b85072c5e3a7c94219663973303d7bb3a2f88de7",id:f},r("div",{key:"3863dd0666696529935bd85ce225f1648a7daea8",class:"navigation"},this.hideNavigation?null:r("div",{class:"navigation__left"},r(p,{icon:"chevron_left",onClick:()=>this.onPrev(),title:this.kupManager.language.translate(u.PREVIOUS),wrapperClass:"navigation__prev"}),r(p,{icon:"calendar",onClick:()=>this.onToday(),title:this.kupManager.language.translate(u.TODAY),wrapperClass:"navigation__today"}),r(p,{icon:"chevron_right",onClick:()=>this.onNext(),title:this.kupManager.language.translate(u.NEXT),wrapperClass:"navigation__next"})),r("div",{key:"191b641f68e60687014f18e57b9fb2409307e5cd",class:"navigation__title "+(this.hideNavigation?"navigation__title--centered":""),ref:t=>{this.navTitle=t}}),r("div",{key:"2447fece895f395966ecd20b1798658adfb18ae5",class:"navigation__right"},this.enableChangeView?r(g,Object.assign({},this.setChipProps())):null)),r("div",{key:"ab2d7e75fedaf527b25e9661031fbd0da1a7f3d4",class:"calendar",ref:t=>this.calendarContainer=t})))}disconnectedCallback(){this.calendar&&this.calendar.destroy(),this.kupManager.dates.unregister(this),this.kupManager.language.unregister(this),this.kupManager.resize.unobserve(this.rootElement),this.kupManager.theme.unregister(this)}get rootElement(){return o(this)}static get watchers(){return{data:["setCalendarData"],currentDate:["setCalendarData"]}}};Fa.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_calendar_background_color:var(\n --kup-calendar-background-color,\n var(--kup-layer-1)\n );--kup_calendar_border_color:var(\n --kup-calendar-border-color,\n var(--kup-border-subtle)\n );--kup_calendar_event_background_color:var(\n --kup-calendar-event-background-color,\n var(--kup-gray-color-30)\n );--kup_calendar_event_border_radius:var(\n --kup-calendar-event-border-radius,\n 4px\n );--kup_calendar_event_color:var(\n --kup-calendar-event-color,\n var(--kup-text-secondary)\n );--kup_calendar_font_family:var(\n --kup-calendar-font-family,\n var(--kup-font-family)\n );--kup_calendar_font_size:var(--kup-calendar-font-size, var(--kup-font-size));--kup_calendar_header_background_color:var(\n --kup-calendar-header-background-color,\n var(--kup-layer-2)\n );--kup_calendar_header_color:var(\n --kup-calendar-header-color,\n var(--kup-text-secondary)\n );--kup_calendar_navigator_border:var(\n --kup-calendar-navigator-border,\n 1px solid var(--kup-border-subtle)\n );--kup_calendar_no_work_day_background_color:var(\n --kup-calendar-no-work-day-background-color,\n var(--kup-layer-0)\n );--kup_calendar_no_work_day_color:var(\n --kup-calendar-no-work-day-color,\n var(--kup-text-secondary)\n );--kup_calendar_today_background_color:var(\n --kup-calendar-today-background-color,\n var(--kup-layer-2)\n );--kup_calendar_border_top_color:var(\n --kup-calendar-border-top-color,\n var(--kup-border-interactive)\n );--fc-border-color:var(--kup_calendar_border_color);background-color:var(--kup_calendar_background_color);display:block;font-family:var(--kup_calendar_font_family);font-size:var(--kup_calendar_font_size);height:100%;width:100%}.navigation{align-items:center;display:flex;justify-content:space-between;background-color:var(--kup_calendar_background_color)}.navigation__left{--kup-font-size:0.875em;display:flex;margin-left:var(--kup-space-03)}.navigation__right{display:flex;margin-right:var(--kup-space-03)}.navigation__title{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0;margin:0px;padding:0px 0.5em}.navigation__title--centered{padding:0.35em 0;text-align:center;width:100%}.icon-wrapper{display:flex;justify-content:flex-end;flex-wrap:wrap}.image-wrapper{display:flex;justify-content:space-between;flex-wrap:wrap}.image-wrapper img{width:20px;height:20px}.custom-icon{background-color:var(--kup_calendar_event_color);height:1.5em;width:1.5em}#kup-component .fc-toolbar.fc-header-toolbar{margin-top:1.5rem}#kup-component .fc-ltr .fc-dayGrid-view .fc-day-top{text-align:center;padding:0.5rem}#kup-component .fc-ltr .fc-dayGrid-view .fc-day-top .fc-day-number{float:none}#kup-component .fc-content{padding:0.25rem}#kup-component .fc-event-title{white-space:normal;word-break:break-word}#kup-component .fc-content,#kup-component .fc-divider,#kup-component .fc-list-heading td,#kup-component .fc-list-view,#kup-component .fc-popover,#kup-component .fc-row,#kup-component .fc-scrollgrid,#kup-component tbody,#kup-component td{border-color:var(--kup_calendar_border_color)}#kup-component .fc-col-header-cell{background:var(--kup_calendar_header_background_color);color:var(--kup_calendar_header_color)}#kup-component .fc-h-event{background:none;border:none}#kup-component .fc-list-event-dot{border-color:var(--kup_calendar_event_background_color)}#kup-component .fc-list-day-cushion{background:var(--kup_calendar_header_background_color);color:var(--kup_calendar_header_color);font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}#kup-component .fc-list-event:hover td{background:var(--kup-hover-background-color);color:var(--kup-hover-color)}#kup-component .fc-daygrid-event,#kup-component .fc-timegrid-event{background:var(--kup_calendar_event_background_color);border:none;border-color:var(--kup_calendar_event_background_color);color:var(--kup_calendar_event_color)}#kup-component .fc-event-main{color:inherit}#kup-component .fc-event-title{padding:0.25em}#kup-component .fc-event-time{white-space:pre}#kup-component td.fc-day-today{background-color:var(--kup_calendar_today_background_color);border-top:2px solid var(--kup_calendar_border_top_color)}#kup-component td.fc-day-sun,#kup-component td.fc-day-sat{background-color:var(--kup_calendar_no_work_day_background_color);color:var(--kup_calendar_no_work_day_color);opacity:0.7}@media (max-width: 599px){.navigation{flex-direction:column}.calendar{height:100%}.calendar .fc-view-harness{min-height:450px}.navigation .navigation__left{font-size:20px;gap:8px}.navigation .navigation__right .f-chip .chip-set .chip-set__item{font-size:16px}}@media (min-width: 599px){#kup-component .fc-daygrid-event{align-items:baseline;white-space:pre-line}}";export{Fa as kup_calendar}
|