iking-web-ui-pro 0.3.2 → 0.3.4
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/IkApprovalProcessDetail/ik.index.es.js +21 -15
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +38 -34
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +45 -40
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +10320 -10322
- package/dist/IkCollapseCard/ik.index.es.js +53 -48
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +21 -15
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +21 -15
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkEmpty/ik.index.es.js +7 -7
- package/dist/IkEmpty/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +69 -64
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkFullCalendar/ik.index.es.js +12 -9334
- package/dist/IkIconPicker/ik.index.es.js +189 -177
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +67 -62
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +132 -127
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +21 -15
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +55 -51
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +390 -9681
- package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
- package/dist/IkSelectTag/ik.index.es.js +83 -82
- package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +70 -65
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkStatuOver/ik.index.es.js +68 -67
- package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +63 -58
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkTree/ik.index.es.js +7 -7
- package/dist/IkTree/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +76 -72
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +188 -188
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +106 -101
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/index.es.js +23272 -23459
- package/dist/index.umd.js +110 -110
- package/dist/src/components/IkFullCalendar/index.d.ts +1 -63
- package/dist/src/components/IkFullCalendar/src/IkFullCalendar.vue.d.ts +2 -0
- package/dist/src/components/IkMonacoEditor/index.d.ts +12 -0
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +12 -0
- package/dist/src/components/IkSchedule/index.d.ts +12 -12
- package/dist/src/components/IkSvgIcon/index.d.ts +12 -0
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +8 -0
- package/package.json +1 -1
- package/dist/Demo/ik.index.umd.js +0 -1
- package/dist/IkApprovalProcess/ik.index.umd.js +0 -1
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +0 -226
- package/dist/IkAutoCard/ik.index.umd.js +0 -1
- package/dist/IkBaseDialog/ik.index.umd.js +0 -1
- package/dist/IkBottomOperate/ik.index.umd.js +0 -1
- package/dist/IkBtnContent/ik.index.umd.js +0 -1
- package/dist/IkBtnSetting/ik.index.umd.js +0 -1
- package/dist/IkCalendar/ik.index.umd.js +0 -1
- package/dist/IkCollapseCard/ik.index.umd.js +0 -1
- package/dist/IkCurrencyInput/ik.index.umd.js +0 -1
- package/dist/IkDescription/ik.index.umd.js +0 -226
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +0 -226
- package/dist/IkDragList/ik.index.umd.js +0 -1
- package/dist/IkEmpty/ik.index.umd.js +0 -1
- package/dist/IkExpandCollapse/ik.index.umd.js +0 -1
- package/dist/IkFileIcon/ik.index.umd.js +0 -1
- package/dist/IkFullCalendar/ik.index.umd.js +0 -1
- package/dist/IkFullCalendar/iking-web-ui-pro.css +0 -1
- package/dist/IkHorizontalStepBar/ik.index.umd.js +0 -1
- package/dist/IkIconPicker/ik.index.umd.js +0 -1
- package/dist/IkImageEditor/ik.index.umd.js +0 -1
- package/dist/IkImageUploadEditor/ik.index.umd.js +0 -37
- package/dist/IkImageViewer/ik.index.umd.js +0 -1
- package/dist/IkMonacoEditor/ik.index.umd.js +0 -11
- package/dist/IkOnlyOffice/ik.index.umd.js +0 -1
- package/dist/IkPage/ik.index.umd.js +0 -1
- package/dist/IkPageFull/ik.index.umd.js +0 -17
- package/dist/IkPageTabs/ik.index.umd.js +0 -1
- package/dist/IkPickerUser/ik.index.umd.js +0 -1
- package/dist/IkPlayer/ik.index.umd.js +0 -226
- package/dist/IkPreviewFile/ik.index.umd.js +0 -226
- package/dist/IkPreviewFileDialog/ik.index.umd.js +0 -226
- package/dist/IkPrintConfig/ik.index.umd.js +0 -1
- package/dist/IkPrintView/ik.index.umd.js +0 -1
- package/dist/IkRadioGroup/ik.index.umd.js +0 -1
- package/dist/IkSchedule/ik.index.umd.js +0 -1
- package/dist/IkSearch/ik.index.umd.js +0 -26
- package/dist/IkSearchHead/ik.index.umd.js +0 -1
- package/dist/IkSelectTag/ik.index.umd.js +0 -1
- package/dist/IkSideText/ik.index.umd.js +0 -1
- package/dist/IkStatu/ik.index.umd.js +0 -1
- package/dist/IkStatuOver/ik.index.umd.js +0 -1
- package/dist/IkSvgIcon/ik.index.umd.js +0 -1
- package/dist/IkTaskResume/ik.index.umd.js +0 -1
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +0 -1
- package/dist/IkTinymce/ik.index.umd.js +0 -90
- package/dist/IkTooltip/ik.index.umd.js +0 -1
- package/dist/IkTree/ik.index.umd.js +0 -1
- package/dist/IkUploadFile/ik.index.umd.js +0 -226
- package/dist/IkUploadImage/ik.index.umd.js +0 -1
- package/dist/IkVerticalStepBar/ik.index.umd.js +0 -9
- package/dist/Provider/ik.index.umd.js +0 -1
- package/dist/src/components/IkFullCalendar/src/ik-full-calendar.d.ts +0 -8
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(Q,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("vue"),require("iking-utils-pro"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","element-plus"],f):(Q=typeof globalThis<"u"?globalThis:Q||self,f(Q.index={},Q.vue,Q["iking-utils-pro"],Q["element-plus"]))})(this,function(Q,f,F,Tt){"use strict";const kt=(t,e)=>(t.install=n=>{for(const r of[t,...Object.values({})])n.component(r.name,r)},t),Qs=Object.prototype.toString,xt=t=>Qs.call(t)==="[object Object]",$s={copyValue:(t,e)=>{if(!xt(t)||!xt(e))throw new Error("参数异常");return Object.keys(t).forEach(n=>{Reflect.has(e,n)&&(t[n]=e[n])}),t},isObject:xt};var Ge,C,qn,Yn,we,he,Qn,$n,Zn,qe={},Xn=[],Zs=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function le(t,e){for(var n in e)t[n]=e[n];return t}function Jn(t){var e=t.parentNode;e&&e.removeChild(t)}function p(t,e,n){var r,i,s,l={};for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:l[s]=e[s];if(arguments.length>2&&(l.children=arguments.length>3?Ge.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)l[s]===void 0&&(l[s]=t.defaultProps[s]);return Ye(t,l,r,i,null)}function Ye(t,e,n,r,i){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++qn};return i==null&&C.vnode!=null&&C.vnode(s),s}function j(){return{current:null}}function O(t){return t.children}function Xs(t,e,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in e||Qe(t,s,null,n[s],r);for(s in e)i&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===e[s]||Qe(t,s,e[s],n[s],r)}function Kn(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Zs.test(e)?n:n+"px"}function Qe(t,e,n,r,i){var s;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Kn(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Kn(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")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?r||t.addEventListener(e,s?tr:er,s):t.removeEventListener(e,s?tr:er,s);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function er(t){we=!0;try{return this.l[t.type+!1](C.event?C.event(t):t)}finally{we=!1}}function tr(t){we=!0;try{return this.l[t.type+!0](C.event?C.event(t):t)}finally{we=!1}}function W(t,e){this.props=t,this.context=e}function Ne(t,e){if(e==null)return t.__?Ne(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?Ne(t):null}function nr(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return nr(t)}}function Js(t){we?setTimeout(t):$n(t)}function Mt(t){(!t.__d&&(t.__d=!0)&&he.push(t)&&!$e.__r++||Qn!==C.debounceRendering)&&((Qn=C.debounceRendering)||Js)($e)}function $e(){var t,e,n,r,i,s,l,o;for(he.sort(function(a,d){return a.__v.__b-d.__v.__b});t=he.shift();)t.__d&&(e=he.length,r=void 0,i=void 0,l=(s=(n=t).__v).__e,(o=n.__P)&&(r=[],(i=le({},s)).__v=s.__v+1,It(o,s,i,n.__n,o.ownerSVGElement!==void 0,s.__h!=null?[l]:null,r,l??Ne(s),s.__h),or(r,s),s.__e!=l&&nr(s)),he.length>e&&he.sort(function(a,d){return a.__v.__b-d.__v.__b}));$e.__r=0}function rr(t,e,n,r,i,s,l,o,a,d){var c,u,g,h,v,b,E,S=r&&r.__k||Xn,m=S.length;for(n.__k=[],c=0;c<e.length;c++)if((h=n.__k[c]=(h=e[c])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?Ye(null,h,null,null,h):Array.isArray(h)?Ye(O,{children:h},null,null,null):h.__b>0?Ye(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(g=S[c])===null||g&&h.key==g.key&&h.type===g.type)S[c]=void 0;else for(u=0;u<m;u++){if((g=S[u])&&h.key==g.key&&h.type===g.type){S[u]=void 0;break}g=null}It(t,h,g=g||qe,i,s,l,o,a,d),v=h.__e,(u=h.ref)&&g.ref!=u&&(E||(E=[]),g.ref&&E.push(g.ref,null,h),E.push(u,h.__c||v,h)),v!=null?(b==null&&(b=v),typeof h.type=="function"&&h.__k===g.__k?h.__d=a=ir(h,a,t):a=sr(t,h,g,S,v,a),typeof n.type=="function"&&(n.__d=a)):a&&g.__e==a&&a.parentNode!=t&&(a=Ne(g))}for(n.__e=b,c=m;c--;)S[c]!=null&&(typeof n.type=="function"&&S[c].__e!=null&&S[c].__e==n.__d&&(n.__d=lr(r).nextSibling),cr(S[c],S[c]));if(E)for(c=0;c<E.length;c++)ar(E[c],E[++c],E[++c])}function ir(t,e,n){for(var r,i=t.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=t,e=typeof r.type=="function"?ir(r,e,n):sr(n,r,r,i,r.__e,e));return e}function Ze(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){Ze(n,e)}):e.push(t)),e}function sr(t,e,n,r,i,s){var l,o,a;if(e.__d!==void 0)l=e.__d,e.__d=void 0;else if(n==null||i!=s||i.parentNode==null)e:if(s==null||s.parentNode!==t)t.appendChild(i),l=null;else{for(o=s,a=0;(o=o.nextSibling)&&a<r.length;a+=1)if(o==i)break e;t.insertBefore(i,s),l=s}return l!==void 0?l:i.nextSibling}function lr(t){var e,n,r;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(r=lr(n)))return r}return null}function It(t,e,n,r,i,s,l,o,a){var d,c,u,g,h,v,b,E,S,m,w,R,N,T,x,A=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(a=n.__h,o=e.__e=n.__e,e.__h=null,s=[o]),(d=C.__b)&&d(e);try{e:if(typeof A=="function"){if(E=e.props,S=(d=A.contextType)&&r[d.__c],m=d?S?S.props.value:d.__:r,n.__c?b=(c=e.__c=n.__c).__=c.__E:("prototype"in A&&A.prototype.render?e.__c=c=new A(E,m):(e.__c=c=new W(E,m),c.constructor=A,c.render=el),S&&S.sub(c),c.props=E,c.state||(c.state={}),c.context=m,c.__n=r,u=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),A.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=le({},c.__s)),le(c.__s,A.getDerivedStateFromProps(E,c.__s))),g=c.props,h=c.state,c.__v=e,u)A.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(A.getDerivedStateFromProps==null&&E!==g&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(E,m),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(E,c.__s,m)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(c.props=E,c.state=c.__s,c.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(D){D&&(D.__=e)}),w=0;w<c._sb.length;w++)c.__h.push(c._sb[w]);c._sb=[],c.__h.length&&l.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(E,c.__s,m),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(g,h,v)})}if(c.context=m,c.props=E,c.__P=t,R=C.__r,N=0,"prototype"in A&&A.prototype.render){for(c.state=c.__s,c.__d=!1,R&&R(e),d=c.render(c.props,c.state,c.context),T=0;T<c._sb.length;T++)c.__h.push(c._sb[T]);c._sb=[]}else do c.__d=!1,R&&R(e),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++N<25);c.state=c.__s,c.getChildContext!=null&&(r=le(le({},r),c.getChildContext())),u||c.getSnapshotBeforeUpdate==null||(v=c.getSnapshotBeforeUpdate(g,h)),x=d!=null&&d.type===O&&d.key==null?d.props.children:d,rr(t,Array.isArray(x)?x:[x],e,n,r,i,s,l,o,a),c.base=e.__e,e.__h=null,c.__h.length&&l.push(c),b&&(c.__E=c.__=null),c.__e=!1}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Ks(n.__e,e,n,r,i,s,l,a);(d=C.diffed)&&d(e)}catch(D){e.__v=null,(a||s!=null)&&(e.__e=o,e.__h=!!a,s[s.indexOf(o)]=null),C.__e(D,e,n)}}function or(t,e){C.__c&&C.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){C.__e(r,n.__v)}})}function Ks(t,e,n,r,i,s,l,o){var a,d,c,u=n.props,g=e.props,h=e.type,v=0;if(h==="svg"&&(i=!0),s!=null){for(;v<s.length;v++)if((a=s[v])&&"setAttribute"in a==!!h&&(h?a.localName===h:a.nodeType===3)){t=a,s[v]=null;break}}if(t==null){if(h===null)return document.createTextNode(g);t=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,g.is&&g),s=null,o=!1}if(h===null)u===g||o&&t.data===g||(t.data=g);else{if(s=s&&Ge.call(t.childNodes),d=(u=n.props||qe).dangerouslySetInnerHTML,c=g.dangerouslySetInnerHTML,!o){if(s!=null)for(u={},v=0;v<t.attributes.length;v++)u[t.attributes[v].name]=t.attributes[v].value;(c||d)&&(c&&(d&&c.__html==d.__html||c.__html===t.innerHTML)||(t.innerHTML=c&&c.__html||""))}if(Xs(t,g,u,i,o),c)e.__k=[];else if(v=e.props.children,rr(t,Array.isArray(v)?v:[v],e,n,r,i&&h!=="foreignObject",s,l,s?s[0]:n.__k&&Ne(n,0),o),s!=null)for(v=s.length;v--;)s[v]!=null&&Jn(s[v]);o||("value"in g&&(v=g.value)!==void 0&&(v!==t.value||h==="progress"&&!v||h==="option"&&v!==u.value)&&Qe(t,"value",v,u.value,!1),"checked"in g&&(v=g.checked)!==void 0&&v!==t.checked&&Qe(t,"checked",v,u.checked,!1))}return t}function ar(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){C.__e(r,n)}}function cr(t,e,n){var r,i;if(C.unmount&&C.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||ar(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){C.__e(s,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&cr(r[i],e,n||typeof t.type!="function");n||t.__e==null||Jn(t.__e),t.__=t.__e=t.__d=void 0}function el(t,e,n){return this.constructor(t,n)}function Oe(t,e,n){var r,i,s;C.__&&C.__(t,e),i=(r=typeof n=="function")?null:e.__k,s=[],It(e,t=e.__k=p(O,null,[t]),i||qe,qe,e.ownerSVGElement!==void 0,i?null:e.firstChild?Ge.call(e.childNodes):null,s,i?i.__e:e.firstChild,r),or(s,t)}function tl(t,e){var n={__c:e="__cC"+Zn++,__:t,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&i.some(function(o){o.__e=!0,Mt(o)})},this.sub=function(l){i.push(l);var o=l.componentWillUnmount;l.componentWillUnmount=function(){i.splice(i.indexOf(l),1),o&&o.call(l)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Ge=Xn.slice,C={__e:function(t,e,n,r){for(var i,s,l;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),l=i.__d),l)return i.__E=i}catch(o){t=o}throw t}},qn=0,Yn=function(t){return t!=null&&t.constructor===void 0},we=!1,W.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=le({},this.state),typeof t=="function"&&(t=t(le({},n),this.props)),t&&le(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Mt(this))},W.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Mt(this))},W.prototype.render=O,he=[],$n=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$e.__r=0,Zn=0;var $,Nt,dr,ur=[],Ot=[],fr=C.__b,hr=C.__r,gr=C.diffed,pr=C.__c,mr=C.unmount;function nl(){for(var t;t=ur.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Xe),t.__H.__h.forEach(Ht),t.__H.__h=[]}catch(e){t.__H.__h=[],C.__e(e,t.__v)}}C.__b=function(t){$=null,fr&&fr(t)},C.__r=function(t){hr&&hr(t);var e=($=t.__c).__H;e&&(Nt===$?(e.__h=[],$.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Ot,n.__N=n.i=void 0})):(e.__h.forEach(Xe),e.__h.forEach(Ht),e.__h=[])),Nt=$},C.diffed=function(t){gr&&gr(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(ur.push(e)!==1&&dr===C.requestAnimationFrame||((dr=C.requestAnimationFrame)||rl)(nl)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Ot&&(n.__=n.__V),n.i=void 0,n.__V=Ot})),Nt=$=null},C.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Xe),n.__h=n.__h.filter(function(r){return!r.__||Ht(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],C.__e(r,n.__v)}}),pr&&pr(t,e)},C.unmount=function(t){mr&&mr(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Xe(r)}catch(i){e=i}}),n.__H=void 0,e&&C.__e(e,n.__v))};var vr=typeof requestAnimationFrame=="function";function rl(t){var e,n=function(){clearTimeout(r),vr&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);vr&&(e=requestAnimationFrame(n))}function Xe(t){var e=$,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),$=e}function Ht(t){var e=$;t.__c=t.__(),$=e}function il(t,e){for(var n in e)t[n]=e[n];return t}function yr(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function br(t){this.props=t}(br.prototype=new W).isPureReactComponent=!0,br.prototype.shouldComponentUpdate=function(t,e){return yr(this.props,t)||yr(this.state,e)};var Er=C.__b;C.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Er&&Er(t)};var sl=C.__e;C.__e=function(t,e,n,r){if(t.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}sl(t,e,n,r)};var Sr=C.unmount;function Ar(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=il({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return Ar(r,e,n)})),t}function Dr(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return Dr(r,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 Pt(){this.__u=0,this.t=null,this.__b=null}function wr(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Je(){this.u=null,this.o=null}C.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Sr&&Sr(t)},(Pt.prototype=new W).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=wr(r.__v),s=!1,l=function(){s||(s=!0,n.__R=null,i?i(o):o())};n.__R=l;var o=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=Dr(d,d.__c.__P,d.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}},a=e.__h===!0;r.__u++||a||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(l,l)},Pt.prototype.componentWillUnmount=function(){this.t=[]},Pt.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ar(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&p(O,null,t.fallback);return i&&(i.__h=null),[p(O,null,e.__a?null:t.children),i]};var Cr=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!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 ll(t){return this.getChildContext=function(){return t.context},t.children}function ol(t){var e=this,n=t.i;e.componentWillUnmount=function(){Oe(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(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),Oe(p(ll,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function al(t,e){var n=p(ol,{__v:t,i:e});return n.containerInfo=e,n}(Je.prototype=new W).__a=function(t){var e=this,n=wr(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),Cr(e,t,r)):i()};n?n(s):s()}},Je.prototype.render=function(t){this.u=null,this.o=new Map;var e=Ze(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Je.prototype.componentDidUpdate=Je.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Cr(t,n,e)})};var cl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,dl=/^(?: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]/,ul=typeof document<"u",fl=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};W.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(W.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var _r=C.event;function hl(){}function gl(){return this.cancelBubble}function pl(){return this.defaultPrevented}C.event=function(t){return _r&&(t=_r(t)),t.persist=hl,t.isPropagationStopped=gl,t.isDefaultPrevented=pl,t.nativeEvent=t};var Rr={configurable:!0,get:function(){return this.class}},Tr=C.vnode;C.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var s in r={},n){var l=n[s];ul&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in n&&l==null||(s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&l===!0?l="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!fl(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():i&&dl.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():l===null&&(l=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=l)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Ze(n.children).forEach(function(o){o.props.selected=r.value.indexOf(o.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=Ze(n.children).forEach(function(o){o.props.selected=r.multiple?r.defaultValue.indexOf(o.props.value)!=-1:r.defaultValue==o.props.value})),t.props=r,n.class!=n.className&&(Rr.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Rr))}t.$$typeof=cl,Tr&&Tr(t)};var kr=C.__r;C.__r=function(t){kr&&kr(t),t.__c};const xr=[],Bt=new Map;function Vt(t){xr.push(t),Bt.forEach(e=>{Ir(e,t)})}function ml(t){t.isConnected&&t.getRootNode&&Mr(t.getRootNode())}function Mr(t){let e=Bt.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=yl();n&&(e.nonce=n);const r=t===document?document.head:t,i=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,i)}Bt.set(t,e),vl(e)}}function vl(t){for(const e of xr)Ir(t,e)}function Ir(t,e){const{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((i,s)=>{i=i.trim(),i&&n.insertRule(i+"}",r+s)})}let Lt;function yl(){return Lt===void 0&&(Lt=bl()),Lt}function bl(){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||""}typeof document<"u"&&Mr(document);var El=':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)}';Vt(El);class zt{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function jt(t){t.parentNode&&t.parentNode.removeChild(t)}function L(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(Sl(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function Sl(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function Al(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let i=0;i<n.length;i+=1){let s=n[i].querySelectorAll(e);for(let l=0;l<s.length;l+=1)r.push(s[l])}return r}const Dl=/(top|left|right|bottom|width|height)$/i;function He(t,e){for(let n in e)Nr(t,n,e[n])}function Nr(t,e,n){n==null?t.style[e]="":typeof n=="number"&&Dl.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function Or(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}let Hr=0;function Ke(){return Hr+=1,"fc-dom-"+Hr}function et(t){t.preventDefault()}function wl(t,e){return n=>{let r=L(n.target,t);r&&e.call(r,n,r)}}function Pr(t,e,n,r){let i=wl(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function Cl(t,e,n,r){let i;return Pr(t,"mouseover",e,(s,l)=>{if(l!==i){i=l,n(s,l);let o=a=>{i=null,r(a,l),l.removeEventListener("mouseleave",o)};l.addEventListener("mouseleave",o)}})}const Br=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function _l(t,e){let n=r=>{e(r),Br.forEach(i=>{t.removeEventListener(i,n)})};Br.forEach(r=>{t.addEventListener(r,n)})}function Vr(t){return Object.assign({onClick:t},Lr(t))}function Lr(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let zr=0;function ge(){return zr+=1,String(zr)}function Ut(){document.body.classList.add("fc-not-allowed")}function Ft(){document.body.classList.remove("fc-not-allowed")}function Rl(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",et)}function Tl(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",et)}function kl(t){t.addEventListener("contextmenu",et)}function xl(t){t.removeEventListener("contextmenu",et)}function Ml(t){let e=[],n=[],r,i;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;r<n.length;r+=1)i=n[r],typeof i=="string"?e.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&e.push({func:i});return e}function Il(t,e,n){let r,i;for(r=0;r<n.length;r+=1)if(i=Nl(t,e,n[r]),i)return i;return 0}function Nl(t,e,n){return n.func?n.func(t,e):Ol(t[n.field],e[n.field])*(n.order||1)}function Ol(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function Ce(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function Pe(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),t):n}function Hl(t,e){return t-e}function tt(t){return t%1===0}function Pl(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 jr=["years","months","days","milliseconds"],Bl=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function k(t,e){return typeof t=="string"?Vl(t):typeof t=="object"&&t?Ur(t):typeof t=="number"?Ur({[e||"milliseconds"]:t}):null}function Vl(t){let e=Bl.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Ur(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function Ll(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function Wt(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function zl(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function jl(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function Ul(t){return _e(t)/365}function Fl(t){return _e(t)/30}function _e(t){return Y(t)/864e5}function Y(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Gt(t,e){let n=null;for(let r=0;r<jr.length;r+=1){let i=jr[r];if(e[i]){let s=t[i]/e[i];if(!tt(s)||n!==null&&n!==s)return null;n=s}else if(t[i])return null}return n}function qt(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}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 oe(t,e,n){if(t===e)return!0;let r=t.length,i;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 Wl=["sun","mon","tue","wed","thu","fri","sat"];function Fr(t,e){let n=ce(t);return n[2]+=e*7,U(n)}function z(t,e){let n=ce(t);return n[2]+=e,U(n)}function ae(t,e){let n=ce(t);return n[6]+=e,U(n)}function Gl(t,e){return pe(t,e)/7}function pe(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function ql(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Yl(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function Ql(t,e){return(e.valueOf()-t.valueOf())/1e3}function $l(t,e){let n=I(t),r=I(e);return{years:0,months:0,days:Math.round(pe(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function Zl(t,e){let n=nt(t,e);return n!==null&&n%7===0?n/7:null}function nt(t,e){return de(t)===de(e)?Math.round(pe(t,e)):null}function I(t){return U([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function Xl(t){return U([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function Jl(t){return U([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function Kl(t){return U([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function eo(t,e,n){let r=t.getUTCFullYear(),i=Yt(t,r,e,n);if(i<1)return Yt(t,r-1,e,n);let s=Yt(t,r+1,e,n);return s>=1?Math.min(i,s):i}function Yt(t,e,n,r){let i=U([e,0,1+to(e,n,r)]),s=I(t),l=Math.round(pe(i,s));return Math.floor(l/7)+1}function to(t,e,n){let r=7+e-n;return-((7+U([t,0,r]).getUTCDay()-e)%7)+r-1}function Wr(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Gr(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function ce(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function U(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function qr(t){return!isNaN(t.valueOf())}function de(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function Yr(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",$t(e,!0)))),r}function Qt(t){return t.toISOString().replace(/T.*$/,"")}function no(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function ro(t){return Ce(t.getUTCHours(),2)+":"+Ce(t.getUTCMinutes(),2)+":"+Ce(t.getUTCSeconds(),2)}function $t(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+Ce(i,2)}:${Ce(s,2)}`:`GMT${n}${i}${s?`:${Ce(s,2)}`:""}`}function _(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!oe(r,s)){let l=t.apply(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}function rt(t,e,n){let r,i;return s=>(r?Z(r,s)||(i=t.call(this,s)):i=t.call(this,s),r=s,i)}const Qr={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},it={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},st=/\s*([ap])\.?m\.?/i,io=/,/g,so=/\s+/g,lo=/\u200e/g,oo=/UTC|GMT/;class ao{constructor(e){let n={},r={},i=0;for(let s in e)s in Qr?(r[s]=e[s],i=Math.max(Qr[s],i)):(n[s]=e[s],s in it&&(i=Math.max(it[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=_($r)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:l}=this,o=po(e.marker,n.marker,r.calendarSystem);if(!o)return this.format(e,r);let a=o;a>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(a=1);let d=this.format(e,r),c=this.format(n,r);if(d===c)return d;let u=mo(s,a),g=$r(u,l,r),h=g(e),v=g(n),b=vo(d,h,c,v),E=l.separator||i||r.defaultSeparator||"";return b?b.before+h+E+v+b.after:d+E+c}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function $r(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>$t(i.timeZoneOffset):r===0&&e.week?i=>go(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):co(t,e,n)}function co(t,e,n){t=Object.assign({},t),e=Object.assign({},e),uo(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),i;if(e.omitZeroMinute){let s=Object.assign({},t);delete s.minute,i=new Intl.DateTimeFormat(n.locale.codes,s)}return s=>{let{marker:l}=s,o;i&&!l.getUTCMinutes()?o=i:o=r;let a=o.format(l);return fo(a,s,t,e,n)}}function uo(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function fo(t,e,n,r,i){return t=t.replace(lo,""),n.timeZoneName==="short"&&(t=ho(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":$t(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(io,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(st,"").trim():r.meridiem==="narrow"?t=t.replace(st,(s,l)=>l.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(st,(s,l)=>`${l.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(st,s=>s.toLocaleLowerCase())),t=t.replace(so," "),t=t.trim(),t}function ho(t,e){let n=!1;return t=t.replace(oo,()=>(n=!0,e)),n||(t+=` ${e}`),t}function go(t,e,n,r,i){let s=[];return i==="long"?s.push(n):(i==="short"||i==="narrow")&&s.push(e),(i==="long"||i==="short")&&s.push(" "),s.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&s.reverse(),s.join("")}function po(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:de(t)!==de(e)?1:0}function mo(t,e){let n={};for(let r in t)(!(r in it)||it[r]<=e)&&(n[r]=t[r]);return n}function vo(t,e,n,r){let i=0;for(;i<t.length;){let s=t.indexOf(e,i);if(s===-1)break;let l=t.substr(0,s);i=s+e.length;let o=t.substr(i),a=0;for(;a<n.length;){let d=n.indexOf(r,a);if(d===-1)break;let c=n.substr(0,d);a=d+r.length;let u=n.substr(a);if(l===c&&o===u)return{before:l,after:o}}}return null}function Zr(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 lt(t,e,n,r){let i=Zr(t,n.calendarSystem),s=e?Zr(e,n.calendarSystem):null;return{date:i,start:i,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class yo{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,lt(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,lt(e,n,r,i))}}class bo{constructor(e){this.func=e}format(e,n,r){return this.func(lt(e,null,n,r))}formatRange(e,n,r,i){return this.func(lt(e,n,r,i))}}function P(t){return typeof t=="object"&&t?new ao(t):typeof t=="string"?new yo(t):typeof t=="function"?new bo(t):null}const Xr={navLinkDayClick:y,navLinkWeekClick:y,duration:k,bootstrapFontAwesome:y,buttonIcons:y,customButtons:y,defaultAllDayEventDuration:k,defaultTimedEventDuration:k,nextDayThreshold:k,scrollTime:k,scrollTimeReset:Boolean,slotMinTime:k,slotMaxTime:k,dayPopoverFormat:P,slotDuration:k,snapDuration:k,headerToolbar:y,footerToolbar:y,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:P,dayHeaderClassNames:y,dayHeaderContent:y,dayHeaderDidMount:y,dayHeaderWillUnmount:y,dayCellClassNames:y,dayCellContent:y,dayCellDidMount:y,dayCellWillUnmount:y,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:y,weekNumbers:Boolean,weekNumberClassNames:y,weekNumberContent:y,weekNumberDidMount:y,weekNumberWillUnmount:y,editable:Boolean,viewClassNames:y,viewDidMount:y,viewWillUnmount:y,nowIndicator:Boolean,nowIndicatorClassNames:y,nowIndicatorContent:y,nowIndicatorDidMount:y,nowIndicatorWillUnmount:y,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:y,locale:y,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:y,eventOrder:Ml,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:y,contentHeight:y,direction:String,weekNumberFormat:P,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:y,initialDate:y,now:y,eventDataTransform:y,stickyHeaderDates:y,stickyFooterScrollbar:y,viewHeight:y,defaultAllDay:Boolean,eventSourceFailure:y,eventSourceSuccess:y,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:y,eventConstraint:y,eventAllow:y,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:y,eventContent:y,eventDidMount:y,eventWillUnmount:y,selectConstraint:y,selectOverlap:y,selectAllow:y,droppable:Boolean,unselectCancel:String,slotLabelFormat:y,slotLaneClassNames:y,slotLaneContent:y,slotLaneDidMount:y,slotLaneWillUnmount:y,slotLabelClassNames:y,slotLabelContent:y,slotLabelDidMount:y,slotLabelWillUnmount:y,dayMaxEvents:y,dayMaxEventRows:y,dayMinWidth:Number,slotLabelInterval:k,allDayText:String,allDayClassNames:y,allDayContent:y,allDayDidMount:y,allDayWillUnmount:y,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:P,rerenderDelay:Number,moreLinkText:y,moreLinkHint:y,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:y,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:k,hiddenDays:y,fixedWeekCount:Boolean,validRange:y,visibleRange:y,titleFormat:y,eventInteractive:Boolean,noEventsText:String,viewHint:y,navLinkHint:y,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:y,moreLinkClassNames:y,moreLinkContent:y,moreLinkDidMount:y,moreLinkWillUnmount:y,monthStartFormat:P,handleCustomRendering:y,customRenderingMetaMap:y,customRenderingReplaces:Boolean},Be={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"}},Jr={datesSet:y,eventsSet:y,eventAdd:y,eventChange:y,eventRemove:y,windowResize:y,eventClick:y,eventMouseEnter:y,eventMouseLeave:y,select:y,unselect:y,loading:y,_unmount:y,_beforeprint:y,_afterprint:y,_noEventDrop:y,_noEventResize:y,_resize:y,_scrollRequest:y},Kr={buttonText:y,buttonHints:y,views:y,plugins:y,initialEvents:y,events:y,eventSources:y},me={headerToolbar:ve,footerToolbar:ve,buttonText:ve,buttonHints:ve,buttonIcons:ve,dateIncrement:ve,plugins:ot,events:ot,eventSources:ot,resources:ot};function ve(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?Z(t,e):t===e}function ot(t,e){return Array.isArray(t)&&Array.isArray(e)?oe(t,e):t===e}const Eo={type:String,component:y,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:y,usesMinMaxTime:Boolean,classNames:y,content:y,didMount:y,willUnmount:y};function Zt(t){return Jt(t,me)}function Xt(t,e){let n={},r={};for(let i in e)i in t&&(n[i]=e[i](t[i]));for(let i in t)i in e||(r[i]=t[i]);return{refined:n,extra:r}}function y(t){return t}const{hasOwnProperty:at}=Object.prototype;function Jt(t,e){let n={};if(e){for(let r in e)if(e[r]===ve){let i=[];for(let s=t.length-1;s>=0;s-=1){let l=t[s][r];if(typeof l=="object"&&l)i.unshift(l);else if(l!==void 0){n[r]=l;break}}i.length&&(n[r]=Jt(i))}}for(let r=t.length-1;r>=0;r-=1){let i=t[r];for(let s in i)s in n||(n[s]=i[s])}return n}function ye(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function K(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function ei(t){let e={};for(let n of t)e[n]=!0;return e}function Kt(t){let e=[];for(let n in t)e.push(t[n]);return e}function Z(t,e){if(t===e)return!0;for(let n in t)if(at.call(t,n)&&!(n in e))return!1;for(let n in e)if(at.call(e,n)&&t[n]!==e[n])return!1;return!0}const So=/^on[A-Z]/;function Ao(t,e){const n=en(t,e);for(let r of n)if(!So.test(r))return!1;return!0}function en(t,e){let n=[];for(let r in t)at.call(t,r)&&(r in e||n.push(r));for(let r in e)at.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function tn(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&Do(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function Do(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function wo(t,e=0,n,r=1){let i=[];n==null&&(n=Object.keys(t).length);for(let s=e;s<n;s+=r){let l=t[s];l!==void 0&&i.push(l)}return i}let ti={};function Co(t,e){ti[t]=e}function _o(t){return new ti[t]}class Ro{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return U(e)}markerToArray(e){return ce(e)}}Co("gregory",Ro);const To=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function ko(t){let e=To.exec(t);if(e){let n=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]?+`0.${e[12]}`*1e3:0));if(qr(n)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}class xo{constructor(e){let n=this.timeZone=e.timeZone,r=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=_o(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):U(Wr(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=U(e)),n===null||!qr(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=ko(e);if(n===null)return null;let{marker:r}=n,i=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):i=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:i}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(e,n){let r=this.calendarSystem.markerToArray(e);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,n){let{calendarSystem:r}=this;return de(e)===de(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)&&r.getMarkerMonth(e)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:r}=this;return de(e)===de(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(e)+(r.getMarkerYear(n)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let r=this.diffWholeYears(e,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,n),r!==null?{unit:"month",value:r}:(r=Zl(e,n),r!==null?{unit:"week",value:r}:(r=nt(e,n),r!==null?{unit:"day",value:r}:(r=ql(e,n),tt(r)?{unit:"hour",value:r}:(r=Yl(e,n),tt(r)?{unit:"minute",value:r}:(r=Ql(e,n),tt(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,r){let i;return r.years&&(i=this.diffWholeYears(e,n),i!==null)?i/Ul(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/Fl(r):r.days&&(i=nt(e,n),i!==null)?i/_e(r):(n.valueOf()-e.valueOf())/Y(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?I(e):n==="hour"?Xl(e):n==="minute"?Jl(e):n==="second"?Kl(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):eo(e,this.weekDow,this.weekDoy)}format(e,n,r={}){return n.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,r,i={}){return i.isEndExclusive&&(n=ae(n,-1)),r.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(n)},this,i.defaultSeparator)}formatIso(e,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(e)),Yr(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?U(Wr(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):U(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-Gr(ce(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ce(e)):null}toDate(e,n){return this.timeZone==="local"?Gr(ce(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(ce(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class Ve{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,r;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(r in e)n[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}Ve.prototype.classes={},Ve.prototype.iconClasses={},Ve.prototype.baseIconClass="",Ve.prototype.iconOverridePrefix="";function ct(t){t();let e=C.debounceRendering,n=[];function r(i){n.push(i)}for(C.debounceRendering=r,Oe(p(Mo,{}),document.createElement("div"));n.length;)n.shift()();C.debounceRendering=e}class Mo extends W{render(){return p("div",{})}componentDidMount(){this.setState({})}}function ni(t){let e=tl(t),n=e.Provider;return e.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let s=[];this.shouldComponentUpdate=l=>{this.props.value!==l.value&&s.forEach(o=>{o.context=l.value,o.forceUpdate()})},this.sub=l=>{s.push(l);let o=l.componentWillUnmount;l.componentWillUnmount=()=>{s.splice(s.indexOf(l),1),o&&o.call(l)}}}return i},e}class Io{constructor(e,n,r,i){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=s=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},s),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const ee=ni({});function No(t,e,n,r,i,s,l,o,a,d,c,u,g){return{dateEnv:i,options:n,pluginHooks:l,emitter:d,dispatch:o,getCurrentData:a,calendarApi:c,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",addResizeHandler(h){d.on("_resize",h)},removeResizeHandler(h){d.off("_resize",h)},createScrollResponder(h){return new Io(h,d,k(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:u,unregisterInteractiveComponent:g}}class be extends W{shouldComponentUpdate(e,n){return this.debug&&console.log(en(e,this.props),en(n,this.state)),!tn(this.props,e,this.propEquality)||!tn(this.state,n,this.stateEquality)}safeSetState(e){tn(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}be.addPropsEquality=Oo,be.addStateEquality=Ho,be.contextType=ee,be.prototype.propEquality={},be.prototype.stateEquality={};class M extends be{}M.contextType=ee;function Oo(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function Ho(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function te(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class nn extends M{constructor(){super(...arguments),this.id=ge(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!rn(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&te(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:s,renderProps:l}=e,o=ri(e,[],this.handleEl);let a=!1,d,c=[],u;if(i!=null){const g=typeof i=="function"?i(l,p):i;if(g===!0)a=!0;else{const h=g&&typeof g=="object";h&&"html"in g?o.dangerouslySetInnerHTML={__html:g.html}:h&&"domNodes"in g?c=Array.prototype.slice.call(g.domNodes):(h?Yn(g):typeof g!="function")?d=g:u=g}}else a=!rn(e.generatorName,r);return a&&s&&(d=s(l)),this.queuedDomNodes=c,this.currentGeneratorMeta=u,p(e.elTag,o,d)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:r,context:i}=this,{handleCustomRendering:s,customRenderingMetaMap:l}=i.options;if(s){const o=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:l==null?void 0:l[r.generatorName];o&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:o},r),{elClasses:(r.elClasses||[]).filter(Po)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!oe(e,n)){n.forEach(jt);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}nn.addPropsEquality({elClasses:oe,elStyle:Z,elAttrs:Ao,renderProps:Z});function rn(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function ri(t,e,n){const r=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(r.className=(t.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),t.elStyle&&(r.style=t.elStyle),r}function Po(t){return!!t}const ii=ni(0);class G extends W{constructor(){super(...arguments),this.InnerContent=Bo.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(te(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=Vo(e.classNameGenerator,e.renderProps);if(e.children){const r=ri(e,n,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?p(e.elTag,r,i):i}else return p(nn,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}G.contextType=ii;function Bo(t,e){const n=t.props;return p(nn,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function Vo(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class dt extends M{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return p(G,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...si(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function si(t){return[`fc-${t.type}-view`,"fc-view"]}function Lo(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function li(t,e){let n=[],{start:r}=e,i,s;for(t.sort(zo),i=0;i<t.length;i+=1)s=t[i],s.start>r&&n.push({start:r,end:s.start}),s.end>r&&(r=s.end);return r<e.end&&n.push({start:r,end:e.end}),n}function zo(t,e){return t.start.valueOf()-e.start.valueOf()}function Ee(t,e){let{start:n,end:r}=t,i=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function jo(t,e){return(t.start===null?null:t.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(t.end===null?null:t.end.valueOf())===(e.end===null?null:e.end.valueOf())}function sn(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function ut(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function ne(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function Uo(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function oi(t){let e=Math.floor(pe(t.start,t.end))||1,n=I(t.start),r=z(n,e);return{start:n,end:r}}function ai(t,e=k(0)){let n=null,r=null;if(t.end){r=I(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=Y(e)&&(r=z(r,1))}return t.start&&(n=I(t.start),r&&r<=n&&(r=z(n,1))),{start:n,end:r}}function Re(t,e,n,r){return r==="year"?k(n.diffWholeYears(t,e),"year"):r==="month"?k(n.diffWholeMonths(t,e),"month"):$l(t,e)}function Fo(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function Wo(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):Le(t.now,e)}function Le(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class ci{constructor(e){this.props=e,this.nowDate=Le(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:i}=this.props,s=i.subtract(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,r)}buildNext(e,n,r){let{dateEnv:i}=this.props,s=i.add(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,r)}build(e,n,r=!0){let{props:i}=this,s,l,o,a,d,c;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=Uo(e,s)),l=this.buildCurrentRangeInfo(e,n),o=/^(year|month|week|day)$/.test(l.unit),a=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,o),a=this.trimHiddenDays(a),d=a,i.showNonCurrentDates||(d=Ee(d,l.range)),d=this.adjustActiveRange(d),d=Ee(d,s),c=sn(l.range,s),ne(a,e)||(e=a.start),{currentDate:e,validRange:s,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:o,activeRange:d,renderRange:a,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(l.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,i=null,s=null,l=null,o;return r.duration?(i=r.duration,s=r.durationUnit,l=this.buildRangeFromDuration(e,n,i,s)):(o=this.props.dayCount)?(s="day",l=this.buildRangeFromDayCount(e,n,o)):(l=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(l.start,l.end).unit:(i=this.getFallbackDuration(),s=qt(i).unit,l=this.buildRangeFromDuration(e,n,i,s)),{duration:i,unit:s,range:l}}getFallbackDuration(){return k({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:l,end:o}=e;return r&&(_e(i)<0&&(l=I(l),l=n.add(l,i)),_e(s)>1&&(o=I(o),o=z(o,-1),o=n.add(o,s))),{start:l,end:o}}buildRangeFromDuration(e,n,r,i){let{dateEnv:s,dateAlignment:l}=this.props,o,a,d;if(!l){let{dateIncrement:u}=this.props;u&&Y(u)<Y(r)?l=qt(u).unit:l=i}_e(r)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,n),o=I(o));function c(){o=s.startOf(e,l),a=s.add(o,r),d={start:o,end:a}}return c(),this.trimHiddenDays(d)||(e=this.skipHiddenDays(e,n),c()),d}buildRangeFromDayCount(e,n,r){let{dateEnv:i,dateAlignment:s}=this.props,l=0,o=e,a;s&&(o=i.startOf(o,s)),o=I(o),o=this.skipHiddenDays(o,n),a=o;do a=z(a,1),this.isHiddenDay(a)||(l+=1);while(l<r);return{start:o,end:a}}buildCustomVisibleRange(e){let{props:n}=this,r=n.visibleRangeInput,i=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(e)):r,s=this.refineRange(i);return s&&(s.start==null||s.end==null)?null:s}buildRenderRange(e,n,r){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?k(1,r):e||k({days:1}))}refineRange(e){if(e){let n=Lo(e,this.props.dateEnv);return n&&(n=ai(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],r=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(n[i]=e.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:r}=e;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=z(e,n);return e}}function ln(t,e,n,r){return{instanceId:ge(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function Go(t,e,n,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(t,n);if(s){let{allDay:l}=t;return l==null&&(l=e,l==null&&(l=s.allDayGuess,l==null&&(l=!1))),{allDay:l,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}function Se(t,e,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:l,instances:o}=t;o=ye(o,a=>!l[a.defId].recurringDef);for(let a in l){let d=l[a];if(d.recurringDef){let{duration:c}=d.recurringDef;c||(c=d.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let u=qo(d,c,e,r,i.recurringTypes);for(let g of u){let h=ln(a,{start:g,end:r.add(g,c)});o[h.instanceId]=h}}}return{defs:l,instances:o}}function qo(t,e,n,r,i){let l=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(l=l.map(I)),l}const ft={id:String,groupId:String,title:String,url:String,interactive:Boolean},di={start:y,end:y,date:y,allDay:Boolean},Yo=Object.assign(Object.assign(Object.assign({},ft),di),{extendedProps:y});function ui(t,e,n,r,i=on(n),s,l){let{refined:o,extra:a}=fi(t,n,i),d=$o(e,n),c=Go(o,d,n.dateEnv,n.pluginHooks.recurringTypes);if(c){let g=an(o,a,e?e.sourceId:"",c.allDay,!!c.duration,n,s);return g.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:g,instance:null}}let u=Qo(o,d,n,r);if(u){let g=an(o,a,e?e.sourceId:"",u.allDay,u.hasEnd,n,s),h=ln(g.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);return l&&g.publicId&&l[g.publicId]&&(h.instanceId=l[g.publicId]),{def:g,instance:h}}return null}function fi(t,e,n=on(e)){return Xt(t,n)}function on(t){return Object.assign(Object.assign(Object.assign({},gt),Yo),t.pluginHooks.eventRefiners)}function an(t,e,n,r,i,s,l){let o={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(l&&t.id?l[t.id]:"")||ge(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:pt(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let a of s.pluginHooks.eventDefMemberAdders)Object.assign(o,a(t));return Object.freeze(o.ui.classNames),Object.freeze(o.extendedProps),o}function Qo(t,e,n,r){let{allDay:i}=t,s,l=null,o=!1,a,d=null,c=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(c),s)l=s.marker;else if(!r)return null;return t.end!=null&&(a=n.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!a||a.isTimeUnspecified)),i&&l&&(l=I(l)),a&&(d=a.marker,i&&(d=I(d)),l&&d<=l&&(d=null)),d?o=!0:r||(o=n.options.forceEventDuration||!1,d=n.dateEnv.add(l,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:o,range:{start:l,end:d},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:a?a.forcedTzo:null}}function $o(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function ze(t,e,n,r,i,s){let l=q(),o=on(n);for(let a of t){let d=ui(a,e,n,r,o,i,s);d&&cn(d,l)}return l}function cn(t,e=q()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function dn(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=ht(t,s=>Zo(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return q()}function Zo(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function q(){return{defs:{},instances:{}}}function un(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function ht(t,e){let n=ye(t.defs,e),r=ye(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function Xo(t,e){let{defs:n,instances:r}=t,i={},s={};for(let l in n)e.defs[l]||(i[l]=n[l]);for(let l in r)!e.instances[l]&&i[r[l].defId]&&(s[l]=r[l]);return{defs:i,instances:s}}function Jo(t,e){return Array.isArray(t)?ze(t,null,e,!0):typeof t=="object"&&t?ze([t],null,e,!0):t!=null?String(t):null}function hi(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const gt={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:y,overlap:y,allow:y,className:hi,classNames:hi,color:String,backgroundColor:String,borderColor:String,textColor:String},Ko={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function pt(t,e){let n=Jo(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function gi(t){return t.reduce(ea,Ko)}function ea(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?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 ta={id:String,defaultAllDay:Boolean,url:String,format:String,events:y,eventDataTransform:y,success:y,failure:y};function pi(t,e,n=mi(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:i,extra:s}=Xt(r,n),l=na(i,e);if(l)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:ge(),sourceDefId:l.sourceDefId,meta:l.meta,ui:pt(i,e),extendedProps:s}}return null}function mi(t){return Object.assign(Object.assign(Object.assign({},gt),ta),t.pluginHooks.eventSourceRefiners)}function na(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let s=n[r].parseMeta(t);if(s)return{sourceDefId:r,meta:s}}return null}function ra(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return ia(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return sa(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return la(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return un(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Se(t,r.activeRange,i):t;case"REMOVE_EVENTS":return Xo(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Ei(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return ht(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return q();default:return t}}function ia(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let l=ze(vi(i,e,s),e,s);return r&&(l=Se(l,r,s)),un(Ei(t,e.sourceId),l)}return t}function sa(t,e,n,r,i){const{defIdMap:s,instanceIdMap:l}=aa(t);let o=ze(vi(n,e,i),e,i,!1,s,l);return Se(o,r,i)}function vi(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=yi(t,i)),r&&(t=yi(t,r)),t}function yi(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let i=e(r);i?n.push(i):i==null&&n.push(r)}}return n}function la(t,e,n,r){return n&&(e=Se(e,n,r)),un(t,e)}function bi(t,e,n){let{defs:r}=t,i=K(t.instances,s=>r[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:n.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:n.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:s.forcedEndTzo}));return{defs:r,instances:i}}function Ei(t,e){return ht(t,n=>n.sourceId!==e)}function oa(t,e){return{defs:t.defs,instances:ye(t.instances,n=>!e[n.instanceId])}}function aa(t){const{defs:e,instances:n}=t,r={},i={};for(let s in e){const l=e[s],{publicId:o}=l;o&&(r[o]=s)}for(let s in n){const l=n[s],o=e[l.defId],{publicId:a}=o;a&&(i[a]=s)}return{defIdMap:r,instanceIdMap:i}}class mt{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){ca(this.handlers,e,n)}off(e,n){da(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],i=this.options&&this.options[e],s=[].concat(i||[],r);for(let l of s)l.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function ca(t,e,n){(t[e]||(t[e]=[])).push(n)}function da(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const ua={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function fa(t,e){return ze(ha(t),null,e)}function ha(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},ua),n)),e}function Si(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},fn(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function ga(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function fn(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,Ta(t,e.dateEnv)),n}function Ai(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=I(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function hn(t,e,n,r){let i=vt(t.defs,e),s=q();for(let l in t.defs){let o=t.defs[l];s.defs[l]=pa(o,i[l],n,r)}for(let l in t.instances){let o=t.instances[l],a=s.defs[o.defId];s.instances[l]=ma(o,a,i[o.defId],n,r)}return s}function pa(t,e,n,r){let i=n.standardProps||{};i.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),i),{ui:Object.assign(Object.assign({},t.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let l of r.pluginHooks.eventDefMutationAppliers)l(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function ma(t,e,n,r,i){let{dateEnv:s}=i,l=r.standardProps&&r.standardProps.allDay===!0,o=r.standardProps&&r.standardProps.hasEnd===!1,a=Object.assign({},t);return l&&(a.range=oi(a.range)),r.datesDelta&&n.startEditable&&(a.range={start:s.add(a.range.start,r.datesDelta),end:s.add(a.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(a.range={start:s.add(a.range.start,r.startDelta),end:a.range.end}),r.endDelta&&n.durationEditable&&(a.range={start:a.range.start,end:s.add(a.range.end,r.endDelta)}),o&&(a.range={start:a.range.start,end:Ai(e.allDay,a.range.start,i)}),e.allDay&&(a.range={start:I(a.range.start),end:I(a.range.end)}),a.range.end<a.range.start&&(a.range.end=Ai(e.allDay,a.range.start,i)),a}class Te{constructor(e,n){this.context=e,this.internalEventSource=n}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 H{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in di)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=ft[e](n),this.mutate({standardProps:{publicId:n}});else if(e in ft)n=ft[e](n),this.mutate({standardProps:{[e]:n}});else if(e in gt){let r=gt[e](n);e==="color"?r={backgroundColor:n,borderColor:n}:e==="editable"?r={startEditable:n,durationEditable:n}:r={[e]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:r}=this._context,i=r.createMarker(e);if(i&&this._instance){let s=this._instance.range,l=Re(s.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:l}):this.mutate({startDelta:l})}}setEnd(e,n={}){let{dateEnv:r}=this._context,i;if(!(e!=null&&(i=r.createMarker(e),!i))&&this._instance)if(i){let s=Re(this._instance.range.end,i,r,n.granularity);this.mutate({endDelta:s})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,r={}){let{dateEnv:i}=this._context,s={allDay:r.allDay},l=i.createMarker(e),o;if(l&&!(n!=null&&(o=i.createMarker(n),!o))&&this._instance){let a=this._instance.range;r.allDay===!0&&(a=oi(a));let d=Re(a.start,l,i,r.granularity);if(o){let c=Re(a.end,o,i,r.granularity);Ll(d,c)?this.mutate({datesDelta:d,standardProps:s}):this.mutate({startDelta:d,endDelta:c,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:d,standardProps:s})}}moveStart(e){let n=k(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=k(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=k(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let r={allDay:e},{maintainDuration:i}=n;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:n}=this._context,r=this._instance,i=P(e);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,i,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,i,{forcedTzo:r.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:s}=i.getCurrentData(),l=dn(s,n.instanceId);l=hn(l,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let a=new H(i,r,n);this._def=l.defs[r.defId],this._instance=l.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:l}),i.emitter.trigger("eventChange",{oldEvent:a,event:this,relatedEvents:Ae(l,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=Di(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new Te(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let n=this._def,{ui:r}=n,{startStr:i,endStr:s}=this,l={allDay:n.allDay};return n.title&&(l.title=n.title),i&&(l.start=i),s&&(l.end=s),n.publicId&&(l.id=n.publicId),n.groupId&&(l.groupId=n.groupId),n.url&&(l.url=n.url),r.display&&r.display!=="auto"&&(l.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?l.color=r.backgroundColor:(r.backgroundColor&&(l.backgroundColor=r.backgroundColor),r.borderColor&&(l.borderColor=r.borderColor)),r.textColor&&(l.textColor=r.textColor),r.classNames.length&&(l.classNames=r.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(l,n.extendedProps):l.extendedProps=n.extendedProps),l}toJSON(){return this.toPlainObject()}}function Di(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function Ae(t,e,n){let{defs:r,instances:i}=t,s=[],l=n?n.instanceId:"";for(let o in i){let a=i[o],d=r[a.defId];a.instanceId!==l&&s.push(new H(e,d,a))}return s}function wi(t,e,n,r){let i={},s={},l={},o=[],a=[],d=vt(t.defs,e);for(let c in t.defs){let u=t.defs[c];d[u.defId].display==="inverse-background"&&(u.groupId?(i[u.groupId]=[],l[u.groupId]||(l[u.groupId]=u)):s[c]=[])}for(let c in t.instances){let u=t.instances[c],g=t.defs[u.defId],h=d[g.defId],v=u.range,b=!g.allDay&&r?ai(v,r):v,E=Ee(b,n);E&&(h.display==="inverse-background"?g.groupId?i[g.groupId].push(E):s[u.defId].push(E):h.display!=="none"&&(h.display==="background"?o:a).push({def:g,ui:h,instance:u,range:E,isStart:b.start&&b.start.valueOf()===E.start.valueOf(),isEnd:b.end&&b.end.valueOf()===E.end.valueOf()}))}for(let c in i){let u=i[c],g=li(u,n);for(let h of g){let v=l[c],b=d[v.defId];o.push({def:v,ui:b,instance:null,range:h,isStart:!1,isEnd:!1})}}for(let c in s){let u=s[c],g=li(u,n);for(let h of g)o.push({def:t.defs[c],ui:d[c],instance:null,range:h,isStart:!1,isEnd:!1})}return{bg:o,fg:a}}function va(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function Ci(t,e){t.fcSeg=e}function ke(t){return t.fcSeg||t.parentNode.fcSeg||null}function vt(t,e){return K(t,n=>_i(n,e))}function _i(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),gi(n)}function Ri(t,e){let n=t.map(ya);return n.sort((r,i)=>Il(r,i,e)),n.map(r=>r._seg)}function ya(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:t})}function ba(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:i,ui:s}=t.eventRange,l=s.startEditable;for(let o of r)l=o(l,i,s,e);return l}function Ea(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function Sa(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function Ti(t,e,n,r,i,s,l){let{dateEnv:o,options:a}=n,{displayEventTime:d,displayEventEnd:c}=a,u=t.eventRange.def,g=t.eventRange.instance;d==null&&(d=r!==!1),c==null&&(c=i!==!1);let h=g.range.start,v=g.range.end,b=t.start||t.eventRange.range.start,E=t.end||t.eventRange.range.end,S=I(h).valueOf()===I(b).valueOf(),m=I(ae(v,-1)).valueOf()===I(ae(E,-1)).valueOf();return d&&!u.allDay&&(S||m)?(b=S?h:b,E=m?v:E,c&&u.hasEnd?o.formatRange(b,E,e,{forcedStartTzo:g.forcedStartTzo,forcedEndTzo:g.forcedEndTzo}):o.format(b,e,{forcedTzo:g.forcedStartTzo})):""}function ue(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&ne(e,r.start)}}function Aa(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 ki(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function xi(t,e){let{def:n,instance:r}=t.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:l}=e,{eventInteractive:o}=l;return o==null&&(o=n.interactive,o==null&&(o=!!s.hasHandlers("eventClick"))),o?Lr(a=>{s.trigger("eventClick",{el:a.target,event:new H(e,n,r),jsEvent:a,view:e.viewApi})}):{}}const Da={start:y,end:y,allDay:Boolean};function wa(t,e,n){let r=Ca(t,e),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=e.add(i.start,n)}return r}function Ca(t,e){let{refined:n,extra:r}=Xt(t,Da),i=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:l}=n;return l==null&&(l=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:l},r)}function _a(t,e){return jo(t.range,e.range)&&t.allDay===e.allDay&&Ra(t,e)}function Ra(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function Ta(t,e){return Object.assign(Object.assign({},Ii(t.range,e,t.allDay)),{allDay:t.allDay})}function Mi(t,e,n){return Object.assign(Object.assign({},Ii(t,e,n)),{timeZone:e.timeZone})}function Ii(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})}}function ka(t,e,n){let r=fi({editable:!1},n),i=an(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:_i(i,e),instance:ln(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function xa(t,e,n){let r=!1,i=function(o){r||(r=!0,e(o))},s=function(o){r||(r=!0,n(o))},l=t(i,s);l&&typeof l.then=="function"&&l.then(i,s)}class Ni extends Error{constructor(e,n){super(e),this.response=n}}function Ma(t,e,n){t=t.toUpperCase();const r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(i=>{if(i.ok)return i.json().then(s=>[s,i],()=>{throw new Ni("Failure parsing JSON",i)});throw new Ni("Request failed",i)})}let gn;function Oi(){return gn==null&&(gn=Ia()),gn}function Ia(){if(typeof document>"u")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 n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class Na extends M{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{ct(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{ct(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",s=!i&&n.height!=null?n.height:"",l=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Oi()||l.push("fc-liquid-hack"),e.children(l,s,i,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class xe{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Oa(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function pn(t){return{[t.component.uid]:t}}const mn={};class Ha{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let r=this.getCurrentData(),i;n=n||"day",i=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),s,l;for(let o in n)i.push(o);for(s=0;s<i.length;s+=1)if(l=n[i[s]],l&&l.singleUnit===e)return l;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Le(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),r=k(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),P(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),P(r),r)}formatIso(e,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:n})}select(e,n){let r;n==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:n};let i=this.getCurrentData(),s=wa(r,i.dateEnv,k({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),Si(s,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),ga(e,n))}addEvent(e,n){if(e instanceof H){let l=e._def,o=e._instance;return this.getCurrentData().eventStore.defs[l.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:cn({def:l,instance:o})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof Te)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=Kt(r.eventSources));else if(n!=null){let l=this.getEventSourceById(n);if(!l)return console.warn(`Could not find an event source with ID "${n}"`),null;i=l.internalEventSource}let s=ui(e,i,r,!1);if(s){let l=new H(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:cn(s)}),this.triggerEventAdd(l),l}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Di(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;e=String(e);for(let s in r){let l=r[s];if(l.publicId===e){if(l.recurringDef)return new H(n,l,null);for(let o in i){let a=i[o];if(a.defId===l.defId)return new H(n,l,a)}}}return null}getEvents(){let e=this.getCurrentData();return Ae(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let i in n)r.push(new Te(e,n[i]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let i in r)if(r[i].publicId===e)return new Te(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof Te)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=pi(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Te(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=k(e);n&&this.trigger("_scrollRequest",{time:n})}}function Pa(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function Hi(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:!1}function Ba(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function Va(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function La(t,e){return{left:t.left-e.left,top:t.top-e.top}}const vn=q();class za{constructor(){this.getKeysForEventDefs=_(this._getKeysForEventDefs),this.splitDateSelection=_(this._splitDateSpan),this.splitEventStore=_(this._splitEventStore),this.splitIndividualUi=_(this._splitIndividualUi),this.splitEventDrag=_(this._splitInteraction),this.splitEventResize=_(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),s=this.splitIndividualUi(e.eventUiBases,r),l=this.splitEventStore(e.eventStore,r),o=this.splitEventDrag(e.eventDrag),a=this.splitEventResize(e.eventResize),d={};this.eventUiBuilders=K(n,(c,u)=>this.eventUiBuilders[u]||_(ja));for(let c in n){let u=n[c],g=l[c]||vn,h=this.eventUiBuilders[c];d[c]={businessHours:u.businessHours||e.businessHours,dateSelection:i[c]||null,eventStore:g,eventUiBases:h(e.eventUiBases[""],u.ui,s[c]),eventSelection:g.instances[e.eventSelection]?e.eventSelection:"",eventDrag:o[c]||null,eventResize:a[c]||null}}return d}_splitDateSpan(e){let n={};if(e){let r=this.getKeysForDateSpan(e);for(let i of r)n[i]=e}return n}_getKeysForEventDefs(e){return K(e.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(e,n){let{defs:r,instances:i}=e,s={};for(let l in r)for(let o of n[l])s[o]||(s[o]=q()),s[o].defs[l]=r[l];for(let l in i){let o=i[l];for(let a of n[o.defId])s[a]&&(s[a].instances[l]=o)}return s}_splitIndividualUi(e,n){let r={};for(let i in e)if(i)for(let s of n[i])r[s]||(r[s]={}),r[s][i]=e[i];return r}_splitInteraction(e){let n={};if(e){let r=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),i=this._getKeysForEventDefs(e.mutatedEvents),s=this._splitEventStore(e.mutatedEvents,i),l=o=>{n[o]||(n[o]={affectedEvents:r[o]||vn,mutatedEvents:s[o]||vn,isEvent:e.isEvent})};for(let o in r)l(o);for(let o in s)l(o)}return n}}function ja(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let i={"":gi(r)};return n&&Object.assign(i,n),i}function Pi(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&!ne(r.activeRange,t)),isOther:!!(r&&!ne(r.currentRange,t)),isToday:!!(e&&ne(e,t)),isPast:!!(e&&t<e.start),isFuture:!!(e&&t>=e.end)}}function yn(t,e){let n=["fc-day",`fc-day-${Wl[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 Ua=P({year:"numeric",month:"long",day:"numeric"}),Fa=P({week:"long"});function yt(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:l}=t;let o=i.format(e,n==="week"?Fa:Ua);if(s.navLinks){let a=i.toDate(e);const d=c=>{let u=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof u=="function"?u.call(l,i.toDate(e),c):(typeof u=="string"&&(n=u),l.zoomTo(e,n))};return Object.assign({title:Pe(s.navLinkHint,[o,a],o),"data-navlink":""},r?Vr(d):{onClick:d})}return{"aria-label":o}}let bn=null;function Wa(){return bn===null&&(bn=Ga()),bn}function Ga(){let t=document.createElement("div");He(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return jt(t),n}let En;function qa(){return En||(En=Ya()),En}function Ya(){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=Bi(t);return document.body.removeChild(t),e}function Bi(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Qa(t,e=!1){let n=window.getComputedStyle(t),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,l=parseInt(n.borderBottomWidth,10)||0,o=Bi(t),a=o.y-r-i,d=o.x-s-l,c={borderLeft:r,borderRight:i,borderTop:s,borderBottom:l,scrollbarBottom:d,scrollbarLeft:0,scrollbarRight:0};return Wa()&&n.direction==="rtl"?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}function $a(t,e=!1,n){let r=Sn(t),i=Qa(t,e),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return e&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function Sn(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 Za(t){let e=Vi(t),n=t.getBoundingClientRect();for(let r of e){let i=Hi(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function Vi(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class Me{constructor(e,n,r,i){this.els=n;let s=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(s.left),i&&this.buildElVerticals(s.top)}buildElHorizontals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.left-e),r.push(s.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.top-e),r.push(s.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}topToIndex(e){let{tops:n,bottoms:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return bt(this.tops||[],e.tops||[])&&bt(this.bottoms||[],e.bottoms||[])&&bt(this.lefts||[],e.lefts||[])&&bt(this.rights||[],e.rights||[])}}function bt(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(Math.round(t[r])!==Math.round(e[r]))return!1;return!0}class An{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 Xa extends An{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Ja extends An{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class X extends M{constructor(){super(...arguments),this.uid=ge()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!L(e,".fc-event-mirror")}isValidDateDownEl(e){return!L(e,".fc-event:not(.fc-bg-event)")&&!L(e,".fc-more-link")&&!L(e,"a[data-navlink]")&&!L(e,".fc-popover")}}class Li{constructor(e=n=>n.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let r of e)this.insertEntry(r,n);return n}insertEntry(e,n){let r=this.findInsertion(e);this.isInsertionValid(r,e)?this.insertEntryAt(e,r):this.handleInvalidInsertion(r,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,r){if(this.allowReslicing&&e.touchingEntry){const i=Object.assign(Object.assign({},n),{span:wn(n.span,e.touchingEntry.span)});r.push(i),this.splitEntry(n,e.touchingEntry,r)}else r.push(n)}splitEntry(e,n,r){let i=e.span,s=n.span;i.start<s.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:s.start}},r),i.end>s.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:i.end}},r)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(Cn(i,n.level,n.levelCoord),Cn(r,n.level,[e])):Cn(r[n.level],n.lateral,e),this.stackCnts[De(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,l=n.length,o=0,a=-1,d=-1,c=null,u=0;for(let v=0;v<l;v+=1){const b=n[v];if(!i&&b>=o+this.getEntryThickness(e))break;let E=r[v],S,m=_n(E,e.span.start,Dn),w=m[0]+m[1];for(;(S=E[w])&&S.span.start<e.span.end;){let R=b+this.getEntryThickness(S);R>o&&(o=R,c=S,a=v,d=w),R===o&&(u=Math.max(u,s[De(S)]+1)),w+=1}}let g=0;if(c)for(g=a+1;g<l&&n[g]<o;)g+=1;let h=-1;return g<l&&n[g]===o&&(h=_n(r[g],e.span.end,Dn)[0]),{touchingLevel:a,touchingLateral:d,touchingEntry:c,stackCnt:u,levelCoord:o,level:g,lateral:h}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,r=e.length,i=[];for(let s=0;s<r;s+=1){let l=e[s],o=n[s];for(let a of l)i.push(Object.assign(Object.assign({},a),{thickness:this.getEntryThickness(a),levelCoord:o}))}return i}}function Dn(t){return t.span.end}function De(t){return t.index+":"+t.span.start}function Ka(t){let e=[];for(let n of t){let r=[],i={span:n.span,entries:[n]};for(let s of e)wn(s.span,i.span)?i={entries:s.entries.concat(i.entries),span:ec(s.span,i.span)}:r.push(s);r.push(i),e=r}return e}function ec(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function wn(t,e){let n=Math.max(t.start,e.start),r=Math.min(t.end,e.end);return n<r?{start:n,end:r}:null}function Cn(t,e,n){t.splice(e,0,n)}function _n(t,e,n){let r=0,i=t.length;if(!i||e<n(t[r]))return[0,0];if(e>n(t[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),l=n(t[s]);if(e<l)i=s;else if(e>l)r=s+1;else return[s,1]}return[r,0]}class tc{constructor(e,n){this.emitter=new mt}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Rn={};function nc(t,e){return!t||e>10?P({weekday:"short"}):e>1?P({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):P({weekday:"long"})}const zi="fc-col-header-cell";function ji(t){return t.text}class rc extends M{render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:s}=this,{date:l,dateProfile:o}=s,a=Pi(l,s.todayRange,null,o),d=[zi].concat(yn(a,r)),c=e.format(l,s.dayHeaderFormat),u=!a.isDisabled&&s.colCnt>1?yt(this.context,l):{},g=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:i},s.extraRenderProps),{text:c}),a);return p(G,{elTag:"th",elClasses:d,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":a.isDisabled?void 0:Qt(l)},s.extraDataAttrs),renderProps:g,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:ji,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},h=>p("div",{className:"fc-scrollgrid-sync-inner"},!a.isDisabled&&p(h,{elTag:"a",elAttrs:u,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const ic=P({weekday:"long"});class sc extends M{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=this.context,l=z(new Date(2592e5),e.dow),o={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},a=n.format(l,e.dayHeaderFormat),d=Object.assign(Object.assign(Object.assign(Object.assign({date:l},o),{view:i}),e.extraRenderProps),{text:a});return p(G,{elTag:"th",elClasses:[zi,...yn(o,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:d,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:ji,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},c=>p("div",{className:"fc-scrollgrid-sync-inner"},p(c,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(l,ic)}})))}}class je extends W{constructor(e,n){super(e,n),this.initialNowDate=Le(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:n}=this,r=ae(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,e.unit),s=n.dateEnv.add(i,k(1,e.unit)),l=s.valueOf()-r.valueOf();return l=Math.min(1e3*60*60*24,l),{currentState:{nowDate:i,todayRange:Ui(i)},nextState:{nowDate:s,todayRange:Ui(s)},waitMs:l}}setTimeout(){let{nextState:e,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}je.contextType=ee;function Ui(t){let e=I(t),n=z(e,1);return{start:e,end:n}}class Fi extends M{constructor(){super(...arguments),this.createDayHeaderFormatter=_(lc)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:s}=this.props,l=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return p(je,{unit:"day"},(o,a)=>p("tr",{role:"row"},s&&s("day"),n.map(d=>i?p(rc,{key:d.toISOString(),date:d,dateProfile:r,todayRange:a,colCnt:n.length,dayHeaderFormat:l}):p(sc,{key:d.getUTCDay(),dow:d.getUTCDay(),dayHeaderFormat:l}))))}}function lc(t,e,n){return t||nc(e,n)}class Wi{constructor(e,n){let r=e.start,{end:i}=e,s=[],l=[],o=-1;for(;r<i;)n.isHiddenDay(r)?s.push(o+.5):(o+=1,s.push(o),l.push(r)),r=z(r,1);this.dates=l,this.indices=s,this.cnt=l.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(z(e.end,-1)),i=Math.max(0,n),s=Math.min(this.cnt-1,r);return i=Math.ceil(i),s=Math.floor(s),i<=s?{firstIndex:i,lastIndex:s,isStart:n===i,isEnd:r===s}:null}getDateDayIndex(e){let{indices:n}=this,r=Math.floor(pe(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class Gi{constructor(e,n){let{dates:r}=e,i,s,l;if(n){for(s=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==s;i+=1);l=Math.ceil(r.length/i)}else l=1,i=r.length;this.rowCnt=l,this.colCnt=i,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let i=0;i<this.colCnt;i+=1)r.push(this.buildCell(n,i));e.push(r)}return e}buildCell(e,n){let r=this.daySeries.dates[e*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,r=this.daySeries.sliceRange(e),i=[];if(r){let{firstIndex:s,lastIndex:l}=r,o=s;for(;o<=l;){let a=Math.floor(o/n),d=Math.min((a+1)*n,l+1);i.push({row:a,firstCol:o%n,lastCol:(d-1)%n,isStart:r.isStart&&o===s,isEnd:r.isEnd&&d-1===l}),o=d}}return i}}class qi{constructor(){this.sliceBusinessHours=_(this._sliceBusinessHours),this.sliceDateSelection=_(this._sliceDateSpan),this.sliceEventStore=_(this._sliceEventStore),this.sliceEventDrag=_(this._sliceInteraction),this.sliceEventResize=_(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,r,i,...s){let{eventUiBases:l}=e,o=this.sliceEventStore(e.eventStore,l,n,r,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,r,l,i,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,r,i,...s),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(e.eventDrag,l,n,r,...s),eventResize:this.sliceEventResize(e.eventResize,l,n,r,...s),eventSelection:e.eventSelection}}sliceNowDate(e,n,r,i,...s){return this._sliceDateSpan({range:{start:e,end:ae(e,1)},allDay:!1},n,r,{},i,...s)}_sliceBusinessHours(e,n,r,i,...s){return e?this._sliceEventStore(Se(e,Et(n,!!r),i),{},n,r,...s).bg:[]}_sliceEventStore(e,n,r,i,...s){if(e){let l=wi(e,n,Et(r,!!i),i);return{bg:this.sliceEventRanges(l.bg,s),fg:this.sliceEventRanges(l.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,r,i,...s){if(!e)return null;let l=wi(e.mutatedEvents,n,Et(r,!!i),i);return{segs:this.sliceEventRanges(l.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,r,i,s,...l){if(!e)return[];let o=Et(n,!!r),a=Ee(e.range,o);if(a){e=Object.assign(Object.assign({},e),{range:a});let d=ka(e,i,s),c=this.sliceRange(e.range,...l);for(let u of c)u.eventRange=d;return c}return[]}sliceEventRanges(e,n){let r=[];for(let i of e)r.push(...this.sliceEventRange(i,n));return r}sliceEventRange(e,n){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:z(r.start,1)});let i=this.sliceRange(r,...n);for(let s of i)s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd;return i}}function Et(t,e){let n=t.activeRange;return e?n:{start:ae(n.start,t.slotMinTime.milliseconds),end:ae(n.end,t.slotMaxTime.milliseconds-864e5)}}function Yi(t,e,n){let{instances:r}=t.mutatedEvents;for(let i in r)if(!ut(e.validRange,r[i].range))return!1;return Qi({eventDrag:t},n)}function oc(t,e,n){return ut(e.validRange,t.range)?Qi({dateSelection:t},n):!1}function Qi(t,e){let n=e.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||ac)(r,e)}function ac(t,e,n={},r){return!(t.eventDrag&&!cc(t,e,n,r)||t.dateSelection&&!dc(t,e,n,r))}function cc(t,e,n,r){let i=e.getCurrentData(),s=t.eventDrag,l=s.mutatedEvents,o=l.defs,a=l.instances,d=vt(o,s.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(d=K(d,r));let c=oa(t.eventStore,s.affectedEvents.instances),u=c.defs,g=c.instances,h=vt(u,t.eventUiBases);for(let v in a){let b=a[v],E=b.range,S=d[b.defId],m=o[b.defId];if(!$i(S.constraints,E,c,t.businessHours,e))return!1;let{eventOverlap:w}=e.options,R=typeof w=="function"?w:null;for(let T in g){let x=g[T];if(sn(E,x.range)&&(h[x.defId].overlap===!1&&s.isEvent||S.overlap===!1||R&&!R(new H(e,u[x.defId],x),new H(e,m,b))))return!1}let N=i.eventStore;for(let T of S.allows){let x=Object.assign(Object.assign({},n),{range:b.range,allDay:m.allDay}),A=N.defs[m.defId],D=N.instances[v],B;if(A?B=new H(e,A,D):B=new H(e,m),!T(fn(x,e),B))return!1}}return!0}function dc(t,e,n,r){let i=t.eventStore,s=i.defs,l=i.instances,o=t.dateSelection,a=o.range,{selectionConfig:d}=e.getCurrentData();if(r&&(d=r(d)),!$i(d.constraints,a,i,t.businessHours,e))return!1;let{selectOverlap:c}=e.options,u=typeof c=="function"?c:null;for(let g in l){let h=l[g];if(sn(a,h.range)&&(d.overlap===!1||u&&!u(new H(e,s[h.defId],h),null)))return!1}for(let g of d.allows){let h=Object.assign(Object.assign({},n),o);if(!g(fn(h,e),null))return!1}return!0}function $i(t,e,n,r,i){for(let s of t)if(!fc(uc(s,e,n,r,i),e))return!1;return!0}function uc(t,e,n,r,i){return t==="businessHours"?Tn(Se(r,e,i)):typeof t=="string"?Tn(ht(n,s=>s.groupId===t)):typeof t=="object"&&t?Tn(Se(t,e,i)):[]}function Tn(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function fc(t,e){for(let n of t)if(ut(n,e))return!0;return!1}const St=/^(visible|hidden)$/;class hc extends M{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,te(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,i=n&&r,s=["fc-scroller"];return n&&(r?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),p("div",{ref:this.handleEl,className:s.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:i&&-(e.overcomeLeft||0)||"",right:i&&-(e.overcomeRight||0)||"",bottom:i&&-(e.overcomeBottom||0)||"",marginLeft:!i&&-(e.overcomeLeft||0)||"",marginRight:!i&&-(e.overcomeRight||0)||"",marginBottom:!i&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(St.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(St.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return St.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return St.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class re{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:s}=this,l=!1,o=!1;n!==null?(l=r in s,s[r]=n,i[r]=(i[r]||0)+1,o=!0):(i[r]-=1,i[r]||(delete s[r],delete this.callbackMap[r],l=!0)),this.masterCallback&&(l&&this.masterCallback(null,String(r)),o&&this.masterCallback(n,String(r)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),n}collect(e,n,r){return wo(this.currentMap,e,n,r)}getAll(){return Kt(this.currentMap)}}function gc(t){let e=Al(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,Pl(r));return Math.ceil(n)}function Zi(t,e){return t.liquid&&e.liquid}function pc(t,e){return e.maxHeight!=null||Zi(t,e)}function mc(t,e,n,r){let{expandRows:i}=n;return typeof e.content=="function"?e.content(n):p("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,p(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function vc(t,e){return oe(t,e,Z)}function yc(t,e){let n=[];for(let r of t){let i=r.span||1;for(let s=0;s<i;s+=1)n.push(p("col",{style:{width:r.width==="shrink"?bc(e):r.width||"",minWidth:r.minWidth||""}}))}return p("colgroup",{},...n)}function bc(t){return t??4}function Ec(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function Sc(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Ac(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function kn(t){return p("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function At(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function Xi(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class xn extends M{constructor(){super(...arguments),this.processCols=_(e=>e,vc),this.renderMicroColGroup=_(yc),this.scrollerRefs=new re,this.scrollerElRefs=new re(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:r}=this,i=e.sections||[],s=this.processCols(e.cols),l=this.renderMicroColGroup(s,n.shrinkWidth),o=Sc(e.liquid,r);e.collapsibleWidth&&o.push("fc-scrollgrid-collapsible");let a=i.length,d=0,c,u=[],g=[],h=[];for(;d<a&&(c=i[d]).type==="header";)u.push(this.renderSection(c,l,!0)),d+=1;for(;d<a&&(c=i[d]).type==="body";)g.push(this.renderSection(c,l,!1)),d+=1;for(;d<a&&(c=i[d]).type==="footer";)h.push(this.renderSection(c,l,!0)),d+=1;let v=!Oi();const b={role:"rowgroup"};return p("table",{role:"grid",className:o.join(" "),style:{height:e.height}},!!(!v&&u.length)&&p("thead",b,...u),!!(!v&&g.length)&&p("tbody",b,...g),!!(!v&&h.length)&&p("tfoot",b,...h),v&&p("tbody",b,...u,...g,...h))}renderSection(e,n,r){return"outerContent"in e?p(O,{key:e.key},e.outerContent):p("tr",{key:e.key,role:"presentation",className:Ac(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,r))}renderChunkTd(e,n,r,i){if("outerContent"in r)return r.outerContent;let{props:s}=this,{forceYScrollbars:l,scrollerClientWidths:o,scrollerClientHeights:a}=this.state,d=pc(s,e),c=Zi(s,e),u=s.liquid?l?"scroll":d?"auto":"hidden":"visible",g=e.key,h=mc(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&o[g]!==void 0?o[g]:null,clientHeight:a[g]!==void 0?a[g]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return p(i?"th":"td",{ref:r.elRef,role:"presentation"},p("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},p(hc,{ref:this.scrollerRefs.createRef(g),elRef:this.scrollerElRefs.createRef(g),overflowY:u,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},h)))}_handleScrollerEl(e,n){let r=Dc(this.props.sections,n);r&&te(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Ec(this.props.cols)?gc(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=qa(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,s={},l={};for(let o in n.currentMap){let a=n.currentMap[o];if(a&&a.needsYScrolling()){i=!0;break}}for(let o of this.props.sections){let a=o.key,d=r.currentMap[a];if(d){let c=d.parentNode;s[a]=Math.floor(c.getBoundingClientRect().width-(i?e.y:0)),l[a]=Math.floor(c.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:l}}}xn.addStateEquality({scrollerClientWidths:Z,scrollerClientHeights:Z});function Dc(t,e){for(let n of t)if(n.key===e)return n;return null}class Mn extends M{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Ci(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{eventRange:s}=i,{ui:l}=s,o={event:new H(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&ba(i,n),isStartResizable:!e.disableResizing&&Ea(i,n),isEndResizable:!e.disableResizing&&Sa(i),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return p(G,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Aa(o),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:o,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Ci(this.el,this.props.seg)}}class Ji extends M{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{ui:s}=i.eventRange,l=r.eventTimeFormat||e.defaultTimeFormat,o=Ti(i,l,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return p(Mn,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:xi(i,n),defaultGenerator:wc,timeText:o}),(a,d)=>p(O,null,p(a,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:d.textColor}}),!!d.isStartResizable&&p("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!d.isEndResizable&&p("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function wc(t){return p("div",{className:"fc-event-main-frame"},t.timeText&&p("div",{className:"fc-event-time"},t.timeText),p("div",{className:"fc-event-title-container"},p("div",{className:"fc-event-title fc-sticky"},t.event.title||p(O,null," "))))}const In=t=>p(ee.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return p(G,Object.assign({},t,{elTag:t.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),Cc=P({day:"numeric"});class Nn extends M{constructor(){super(...arguments),this.refineRenderProps=rt(_c)}render(){let{props:e,context:n}=this,{options:r}=n,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return p(G,Object.assign({},e,{elClasses:[...yn(i,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":Qt(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function On(t){return!!(t.dayCellContent||rn("dayCellContent",t))}function _c(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=Pi(e,t.todayRange,null,r),l=t.showDayNumber?n.format(e,i?t.monthStartFormat:Cc):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:l}),t.extraRenderProps)}class Ki extends M{render(){let{props:e}=this,{seg:n}=e;return p(Mn,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Rc,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function Rc(t){let{title:e}=t.event;return e&&p("div",{className:"fc-event-title"},t.event.title)}function es(t){return p("div",{className:`fc-${t}`})}const ts=t=>p(ee.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:i}=t,s=r.weekNumberFormat||t.defaultFormat,l=n.computeWeekNumber(i),o=n.format(i,s);return p(G,Object.assign({},t,{renderProps:{num:l,text:o,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:Tc,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function Tc(t){return t.text}const Hn=10;class kc extends M{constructor(){super(...arguments),this.state={titleId:Ke()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&te(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=Or(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:i}=this,s=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return al(p("div",Object.assign({},r.extraAttrs,{id:r.id,className:s.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),p("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},p("span",{className:"fc-popover-title",id:i.titleId},r.title),p("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),p("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:i}=this,s=Za(n);if(s){let l=i.getBoundingClientRect(),o=r?L(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,a=e?s.right-l.width:s.left;o=Math.max(o,Hn),a=Math.min(a,document.documentElement.clientWidth-Hn-l.width),a=Math.max(a,Hn);let d=i.offsetParent.getBoundingClientRect();He(i,{top:o-d.top,left:a-d.left})}}}class xc extends X{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:r}=this,{startDate:i,todayRange:s,dateProfile:l}=r,o=n.format(i,e.dayPopoverFormat);return p(Nn,{elRef:this.handleRootEl,date:i,dateProfile:l,todayRange:s},(a,d,c)=>p(kc,{elRef:c.ref,id:r.id,title:o,extraClassNames:["fc-more-popover"].concat(c.className||[]),extraAttrs:c,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},On(e)&&p(a,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,i){let{rootEl:s,props:l}=this;return e>=0&&e<r&&n>=0&&n<i?{dateProfile:l.dateProfile,dateSpan:Object.assign({allDay:!l.forceTimed,range:{start:l.startDate,end:l.endDate}},l.extraDateSpan),dayEl:s,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class ns extends M{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Ke()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&te(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,s=rs(n).start;function l(o){let{def:a,instance:d,range:c}=o.eventRange;return{event:new H(r,a,d),start:r.dateEnv.toDate(c.start),end:r.dateEnv.toDate(c.end),isStart:o.isStart,isEnd:o.isEnd}}typeof i=="function"&&(i=i({date:s,allDay:!!n.allDayDate,allSegs:n.allSegs.map(l),hiddenSegs:n.hiddenSegs.map(l),jsEvent:e,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(s,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return p(ee.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:l}=r,{moreLinkText:o}=s,{moreCnt:a}=e,d=rs(e),c=typeof o=="function"?o.call(l,a):`+${a} ${o}`,u=Pe(s.moreLinkHint,[a],c),g={num:a,shortText:`+${a}`,text:c,view:i};return p(O,null,!!e.moreCnt&&p(G,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),Vr(this.handleClick)),{title:u,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:g,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||Mc,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&p(xc,{id:n.popoverId,startDate:d.start,endDate:d.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=L(this.linkEl,".fc-view-harness"))}}function Mc(t){return t.text}function rs(t){if(t.allDayDate)return{start:t.allDayDate,end:z(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:is(e),end:Nc(e)}}function is(t){return t.reduce(Ic).eventRange.range.start}function Ic(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function Nc(t){return t.reduce(Oc).eventRange.range.end}function Oc(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class Hc{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class Pc extends Hc{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let r=!1;e.isActive?(n.set(e.id,e),r=!0):n.has(e.id)&&(n.delete(e.id),r=!0),r&&this.set(n)}}const Bc=[],ss={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"},ls=Object.assign(Object.assign({},ss),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function Vc(t){let e=t.length>0?t[0].code:"en",n=Bc.concat(t),r={en:ls};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function os(t,e){return typeof t=="object"&&!Array.isArray(t)?as(t.code,[t.code],t):Lc(t,e)}function Lc(t,e){let n=[].concat(t||[]),r=zc(n,e)||ls;return as(t,n,r)}function zc(t,e){for(let n=0;n<t.length;n+=1){let r=t[n].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let s=r.slice(0,i).join("-");if(e[s])return e[s]}}return null}function as(t,e,n){let r=Jt([ss,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function ie(t){return{id:ge(),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||{}}}function jc(t,e){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(s){for(let l of s){const o=l.name,a=n[o];a===void 0?(n[o]=l.id,i(l.deps),r=Fc(r,l)):a!==l.id&&console.warn(`Duplicate plugin '${o}'`)}}return t&&i(t),i(e),r}function Uc(){let t=[],e=[],n;return(r,i)=>((!n||!oe(r,t)||!oe(i,e))&&(n=jc(r,i)),t=r,e=i,n)}function Fc(t,e){return{premiumReleaseDate:Wc(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function Wc(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class fe extends Ve{}fe.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},fe.prototype.baseIconClass="fc-icon",fe.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"},fe.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},fe.prototype.iconOverrideOption="buttonIcons",fe.prototype.iconOverrideCustomButtonOption="icon",fe.prototype.iconOverridePrefix="fc-icon-";function Gc(t,e){let n={},r;for(r in t)Pn(r,n,t,e);for(r in e)Pn(r,n,t,e);return n}function Pn(t,e,n,r){if(e[t])return e[t];let i=qc(t,e,n,r);return i&&(e[t]=i),i}function qc(t,e,n,r){let i=n[t],s=r[t],l=c=>i&&i[c]!==null?i[c]:s&&s[c]!==null?s[c]:null,o=l("component"),a=l("superType"),d=null;if(a){if(a===t)throw new Error("Can't have a custom view type that references itself");d=Pn(a,e,n,r)}return!o&&d&&(o=d.component),o?{type:t,component:o,defaults:Object.assign(Object.assign({},d?d.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},d?d.overrides:{}),s?s.rawOptions:{})}:null}function cs(t){return K(t,Yc)}function Yc(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=ds(e):n&&!(n.prototype instanceof M)&&(n=ds(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function ds(t){return e=>p(ee.Consumer,null,n=>p(G,{elTag:"div",elClasses:si(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 Qc(t,e,n,r){let i=cs(t),s=cs(e.views),l=Gc(i,s);return K(l,o=>$c(o,s,e,n,r))}function $c(t,e,n,r,i){let s=t.overrides.duration||t.defaults.duration||r.duration||n.duration,l=null,o="",a="",d={};if(s&&(l=Zc(s),l)){let g=qt(l);o=g.unit,g.value===1&&(a=o,d=e[o]?e[o].rawOptions:{})}let c=g=>{let h=g.buttonText||{},v=t.defaults.buttonTextKey;return v!=null&&h[v]!=null?h[v]:h[t.type]!=null?h[t.type]:h[a]!=null?h[a]:null},u=g=>{let h=g.buttonHints||{},v=t.defaults.buttonTextKey;return v!=null&&h[v]!=null?h[v]:h[t.type]!=null?h[t.type]:h[a]!=null?h[a]:null};return{type:t.type,component:t.component,duration:l,durationUnit:o,singleUnit:a,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},d),t.overrides),buttonTextOverride:c(r)||c(n)||t.overrides.buttonText,buttonTextDefault:c(i)||t.defaults.buttonText||c(Be)||t.type,buttonTitleOverride:u(r)||u(n)||t.overrides.buttonHint,buttonTitleDefault:u(i)||t.defaults.buttonHint||u(Be)}}let us={};function Zc(t){let e=JSON.stringify(t),n=us[e];return n===void 0&&(n=k(t),us[e]=n),n}function Xc(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Jc(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Kc(t,e,n,r){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(i=r.buildPrev(t,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(t,n),i.isValid)return i;break}return t}function ed(t,e,n){let r=e?e.activeRange:null;return hs({},od(t,n),r,n)}function td(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return hs(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return rd(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?gs(t,i,r):t;case"FETCH_EVENT_SOURCES":return Bn(t,e.sourceIds?ei(e.sourceIds):ps(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return ld(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function nd(t,e,n){let r=e?e.activeRange:null;return Bn(t,ps(t,n),r,!0,n)}function fs(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function hs(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=gs(i,n,r)),Object.assign(Object.assign({},t),i)}function rd(t,e){return ye(t,n=>n.sourceId!==e)}function gs(t,e,n){return Bn(t,ye(t,r=>id(r,e,n)),e,!1,n)}function id(t,e,n){return ms(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function Bn(t,e,n,r,i){let s={};for(let l in t){let o=t[l];e[l]?s[l]=sd(o,n,r,i):s[l]=o}return s}function sd(t,e,n,r){let{options:i,calendarApi:s}=r,l=r.pluginHooks.eventSourceDefs[t.sourceDefId],o=ge();return l.fetch({eventSource:t,range:e,isRefetch:n,context:r},a=>{let{rawEvents:d}=a;i.eventSourceSuccess&&(d=i.eventSourceSuccess.call(s,d,a.response)||d),t.success&&(d=t.success.call(s,d,a.response)||d),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:o,fetchRange:e,rawEvents:d})},a=>{let d=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,a),d=!0),t.failure&&(t.failure(a),d=!0),d||console.warn(a.message,a),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:o,fetchRange:e,error:a})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:o})}function ld(t,e,n,r){let i=t[e];return i&&n===i.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):t}function ps(t,e){return ye(t,n=>ms(n,e))}function od(t,e){let n=mi(e),r=[].concat(t.eventSources||[]),i=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let s of r){let l=pi(s,e,n);l&&i.push(l)}return i}function ms(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function ad(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function cd(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function dd(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 ud(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 fd(t,e,n,r,i){let s=t.headerToolbar?vs(t.headerToolbar,t,e,n,r,i):null,l=t.footerToolbar?vs(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:l}}function vs(t,e,n,r,i,s){let l={},o=[],a=!1;for(let d in t){let c=t[d],u=hd(c,e,n,r,i,s);l[d]=u.widgets,o.push(...u.viewsWithButtons),a=a||u.hasTitle}return{sectionWidgets:l,viewsWithButtons:o,hasTitle:a}}function hd(t,e,n,r,i,s){let l=e.direction==="rtl",o=e.customButtons||{},a=n.buttonText||{},d=e.buttonText||{},c=n.buttonHints||{},u=e.buttonHints||{},g=t?t.split(" "):[],h=[],v=!1;return{widgets:g.map(E=>E.split(",").map(S=>{if(S==="title")return v=!0,{buttonName:S};let m,w,R,N,T,x;if(m=o[S])R=A=>{m.click&&m.click.call(A.target,A,A.target)},(N=r.getCustomButtonIconClass(m))||(N=r.getIconClass(S,l))||(T=m.text),x=m.hint||m.text;else if(w=i[S]){h.push(S),R=()=>{s.changeView(S)},(T=w.buttonTextOverride)||(N=r.getIconClass(S,l))||(T=w.buttonTextDefault);let A=w.buttonTextOverride||w.buttonTextDefault;x=Pe(w.buttonTitleOverride||w.buttonTitleDefault||e.viewHint,[A,S],A)}else if(s[S])if(R=()=>{s[S]()},(T=a[S])||(N=r.getIconClass(S,l))||(T=d[S]),S==="prevYear"||S==="nextYear"){let A=S==="prevYear"?"prev":"next";x=Pe(c[A]||u[A],[d.year||"year","year"],d[S])}else x=A=>Pe(c[S]||u[S],[d[A]||A,A],d[S]);return{buttonName:S,buttonClick:R,buttonIcon:N,buttonText:T,buttonHint:x}})),viewsWithButtons:h,hasTitle:v}}class gd{constructor(e,n,r){this.type=e,this.getCurrentData=n,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}const pd=ie({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}}]}),md=ie({name:"func-event-source",eventSourceDefs:[{parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,i=t.eventSource.meta;xa(i.bind(null,Mi(t.range,r)),s=>e({rawEvents:s}),n)}}]}),vd=ie({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:y,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:r}=t.eventSource,i=yd(r,t.range,t.context);Ma(r.method,r.url,i).then(([s,l])=>{e({rawEvents:s,response:l})},n)}}]});function yd(t,e,n){let{dateEnv:r,options:i}=n,s,l,o,a,d={};return s=t.startParam,s==null&&(s=i.startParam),l=t.endParam,l==null&&(l=i.endParam),o=t.timeZoneParam,o==null&&(o=i.timeZoneParam),typeof t.extraParams=="function"?a=t.extraParams():a=t.extraParams||{},Object.assign(d,a),d[s]=r.formatIso(e.start),d[l]=r.formatIso(e.end),r.timeZone!=="local"&&(d[o]=r.timeZone),d}const bd=ie({name:"simple-recurring-event",recurringTypes:[{parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={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},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=zl(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=Ee(e,{start:t.startRecur,end:t.endRecur});return r?Ed(t.daysOfWeek,t.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:y,startTime:k,endTime:k,duration:k,startRecur:y,endRecur:y}});function Ed(t,e,n,r){let i=t?ei(t):null,s=I(n.start),l=n.end,o=[];for(;s<l;){let a;(!i||i[s.getUTCDay()])&&(e?a=r.add(s,e):a=s,o.push(a)),s=z(s,1)}return o}const Sd=ie({name:"change-handler",optionChangeHandlers:{events(t,e){ys([t],e)},eventSources:ys}});function ys(t,e){let n=Kt(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let r=[];for(let i of t){let s=!1;for(let l=0;l<n.length;l+=1)if(n[l]._raw===i){n.splice(l,1),s=!0;break}s||r.push(i)}for(let i of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)e.calendarApi.addEventSource(i)}function Ad(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},Mi(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function Dd(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Ae(t,e))}const wd=[pd,md,vd,bd,Sd,ie({name:"misc",isLoadingFuncs:[t=>fs(t.eventSources)],propSetHandlers:{dateProfile:Ad,eventStore:Dd}})];class Cd{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new zt(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function _d(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,P(e.titleFormat||Rd(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Rd(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=nt(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Td{constructor(e){this.computeCurrentViewData=_(this._computeCurrentViewData),this.organizeRawLocales=_(Vc),this.buildLocale=_(os),this.buildPluginHooks=Uc(),this.buildDateEnv=_(kd),this.buildTheme=_(xd),this.parseToolbars=_(fd),this.buildViewSpecs=_(Qc),this.buildDateProfileGenerator=rt(Md),this.buildViewApi=_(Id),this.buildViewUiProps=rt(Hd),this.buildEventUiBySource=_(Nd,Z),this.buildEventUiBases=_(Od),this.parseContextBusinessHours=rt(Pd),this.buildTitle=_(_d),this.emitter=new mt,this.actionRunner=new Cd(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=g=>{this.actionRunner.request(g)},this.props=e,this.actionRunner.pause();let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,s=this.computeCurrentViewData(i,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let l=Wo(r.calendarOptions,r.dateEnv),o=s.dateProfileGenerator.build(l);ne(o.activeRange,l)||(l=o.currentRange.start);let a={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let g of r.pluginHooks.contextInit)g(a);let d=ed(r.calendarOptions,o,a),c={dynamicOptionOverrides:n,currentViewType:i,currentDate:l,dateProfile:o,businessHours:this.parseContextBusinessHours(a),eventSources:d,eventUiBases:{},eventStore:q(),renderableEventStore:q(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},u=Object.assign(Object.assign({},a),c);for(let g of r.pluginHooks.reducers)Object.assign(c,g(null,null,u));Vn(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:i}=this,s=Jc(r.dynamicOptionOverrides,e),l=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),o=Xc(r.currentViewType,e),a=this.computeCurrentViewData(o,l,n.optionOverrides,s);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(a.options);let d={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:u}=r;this.data&&this.data.dateProfileGenerator!==a.dateProfileGenerator&&(u=a.dateProfileGenerator.build(c)),c=Fo(c,e),u=Kc(u,e,c,a.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!ne(u.currentRange,c))&&(c=u.currentRange.start);let g=td(r.eventSources,e,u,d),h=ra(r.eventStore,e,g,u,d),b=fs(g)&&!a.options.progressiveEventRendering&&r.renderableEventStore||h,{eventUiSingleBase:E,selectionConfig:S}=this.buildViewUiProps(d),m=this.buildEventUiBySource(g),w=this.buildEventUiBases(b.defs,E,m),R={dynamicOptionOverrides:s,currentViewType:o,currentDate:c,dateProfile:u,eventSources:g,eventStore:h,renderableEventStore:b,selectionConfig:S,eventUiBases:w,businessHours:this.parseContextBusinessHours(d),dateSelection:ad(r.dateSelection,e),eventSelection:cd(r.eventSelection,e),eventDrag:dd(r.eventDrag,e),eventResize:ud(r.eventResize,e)},N=Object.assign(Object.assign({},d),R);for(let A of l.pluginHooks.reducers)Object.assign(R,A(r,e,N));let T=Vn(r,d),x=Vn(R,d);!T&&x?i.trigger("loading",!0):T&&!x&&i.trigger("loading",!1),this.state=R,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,i=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(n.currentViewType,i,e.optionOverrides,n.dynamicOptionOverrides),l=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,s.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),s),n),o=i.pluginHooks.optionChangeHandlers,a=r&&r.calendarOptions,d=i.calendarOptions;if(a&&a!==d){a.timeZone!==d.timeZone&&(n.eventSources=l.eventSources=nd(l.eventSources,n.dateProfile,l),n.eventStore=l.eventStore=bi(l.eventStore,r.dateEnv,l.dateEnv),n.renderableEventStore=l.renderableEventStore=bi(l.renderableEventStore,r.dateEnv,l.dateEnv));for(let c in o)(this.optionsForHandling.indexOf(c)!==-1||a[c]!==d[c])&&o[c](d[c],l)}this.optionsForHandling=[],e.onData&&e.onData(l)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:s,localeDefaults:l,availableLocaleData:o,extra:a}=this.processRawCalendarOptions(e,n);bs(a);let d=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,o,i.defaultRangeSeparator),c=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l),u=this.buildTheme(i,s),g=this.parseToolbars(i,this.stableOptionOverrides,u,c,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:d,viewSpecs:c,theme:u,toolbarConfig:g,localeDefaults:l,availableRawLocales:o.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=Zt([Be,e,n]),s=this.organizeRawLocales(r),l=s.map,o=this.buildLocale(i||s.defaultCode,l).options,a=this.buildPluginHooks(e.plugins||[],wd),d=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xr),Jr),Kr),a.listenerRefiners),a.optionRefiners),c={},u=Zt([Be,o,e,n]),g={},h=this.currentCalendarOptionsInput,v=this.currentCalendarOptionsRefined,b=!1;for(let E in u)this.optionsForRefining.indexOf(E)===-1&&(u[E]===h[E]||me[E]&&E in h&&me[E](h[E],u[E]))?g[E]=v[E]:d[E]?(g[E]=d[E](u[E]),b=!0):c[E]=h[E];return b&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=g,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:a,availableLocaleData:s,localeDefaults:o,extra:c}}_computeCurrentViewData(e,n,r,i){let s=n.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:l,extra:o}=this.processRawViewOptions(s,n.pluginHooks,n.localeDefaults,r,i);bs(o);let a=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,showNonCurrentDates:l.showNonCurrentDates,dayCount:l.dayCount,dateAlignment:l.dateAlignment,dateIncrement:l.dateIncrement,hiddenDays:l.hiddenDays,weekends:l.weekends,nowInput:l.now,validRangeInput:l.validRange,visibleRangeInput:l.visibleRange,fixedWeekCount:l.fixedWeekCount}),d=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:l,dateProfileGenerator:a,viewApi:d}}processRawViewOptions(e,n,r,i,s){let l=Zt([Be,e.optionDefaults,r,i,e.optionOverrides,s]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xr),Jr),Kr),Eo),n.listenerRefiners),n.optionRefiners),a={},d=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,u=!1,g={};for(let h in l)l[h]===d[h]||me[h]&&me[h](l[h],d[h])?a[h]=c[h]:(l[h]===this.currentCalendarOptionsInput[h]||me[h]&&me[h](l[h],this.currentCalendarOptionsInput[h])?h in this.currentCalendarOptionsRefined&&(a[h]=this.currentCalendarOptionsRefined[h]):o[h]?a[h]=o[h](l[h]):g[h]=l[h],u=!0);return u&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=a),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:g}}}function kd(t,e,n,r,i,s,l,o){let a=os(e||l.defaultCode,l.map);return new xo({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:a,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:o})}function xd(t,e){let n=e.themeClasses[t.themeSystem]||fe;return new n(t)}function Md(t){let e=t.dateProfileGeneratorClass||ci;return new e(t)}function Id(t,e,n){return new gd(t,e,n)}function Nd(t){return K(t,e=>e.ui)}function Od(t,e,n){let r={"":e};for(let i in t){let s=t[i];s.sourceId&&n[s.sourceId]&&(r[i]=n[s.sourceId])}return r}function Hd(t){let{options:e}=t;return{eventUiSingleBase:pt({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:pt({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function Vn(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Pd(t){return fa(t.options.businessHours,t)}function bs(t,e){for(let n in t)console.warn(`Unknown option '${n}'`)}class Bd extends M{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return p("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,i=[],s=!0;for(let l of e){let{buttonName:o,buttonClick:a,buttonText:d,buttonIcon:c,buttonHint:u}=l;if(o==="title")s=!1,i.push(p("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let g=o===n.activeButton,h=!n.isTodayEnabled&&o==="today"||!n.isPrevEnabled&&o==="prev"||!n.isNextEnabled&&o==="next",v=[`fc-${o}-button`,r.getClass("button")];g&&v.push(r.getClass("buttonActive")),i.push(p("button",{type:"button",title:typeof u=="function"?u(n.navUnit):u,disabled:h,"aria-pressed":g,className:v.join(" "),onClick:a},d||(c?p("span",{className:c,role:"img"}):"")))}}if(i.length>1){let l=s&&r.getClass("buttonGroup")||"";return p("div",{className:l},...i)}return i[0]}}class Es extends M{render(){let{model:e,extraClassName:n}=this.props,r=!1,i,s,l=e.sectionWidgets,o=l.center;return l.left?(r=!0,i=l.left):i=l.start,l.right?(r=!0,s=l.right):s=l.end,p("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",o||[]),this.renderSection("end",s||[]))}renderSection(e,n){let{props:r}=this;return p(Bd,{key:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class Vd extends M{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,te(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,i=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",l="";return r?n.availableWidth!==null?s=n.availableWidth/r:l=`${1/r*100}%`:s=e.height||"",p("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:s,paddingBottom:l}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class Ld extends xe{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,l=ke(r);if(l&&i.isValidSegDownEl(n.target)){let o=L(n.target,".fc-event-forced-url"),a=o?o.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new H(i.context,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi}),a&&!n.defaultPrevented&&(window.location.href=a)}},this.destroy=Pr(e.el,"click",".fc-event",this.handleSegClick)}}class zd extends xe{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{ke(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=Cl(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,l=ke(r);(!n||i.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:r,event:new H(s,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi})}}class jd extends be{constructor(){super(...arguments),this.buildViewContext=_(No),this.buildViewPropTransformers=_(Fd),this.buildToolbarProps=_(Ud),this.headerRef=j(),this.footerRef=j(),this.interactionsStore={},this.state={viewLabelId:Ke()},this.registerInteractiveComponent=(e,n)=>{let r=Oa(e,n),l=[Ld,zd].concat(this.props.pluginHooks.componentInteractions).map(o=>new o(r));this.interactionsStore[e.uid]=l,mn[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete mn[e.uid]},this.resizeRunner=new zt(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,Le(e.options.now,e.dateEnv),e.viewTitle),s=!1,l="",o;e.isHeightAuto||e.forPrint?l="":r.height!=null?s=!0:r.contentHeight!=null?l=r.contentHeight:o=Math.max(r.aspectRatio,.5);let a=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),d=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return p(ee.Provider,{value:a},n.header&&p(Es,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:d},i)),p(Vd,{liquid:s,height:l,aspectRatio:o,labeledById:d},this.renderView(e),this.buildAppendContent()),n.footer&&p(Es,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let i in r)n[i]!==e[i]&&r[i](n[i],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return p(O,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,i={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},s=this.buildViewPropTransformers(n.viewPropsTransformers);for(let o of s)Object.assign(i,o.transform(i,e));let l=r.component;return p(l,Object.assign({},i))}}function Ud(t,e,n,r,i,s){let l=n.build(i,void 0,!1),o=n.buildPrev(e,r,!1),a=n.buildNext(e,r,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:l.isValid&&!ne(e.currentRange,i),isPrevEnabled:o.isValid,isNextEnabled:a.isValid}}function Fd(t){return t.map(e=>new e)}class Wd extends Ha{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;ct(()=>{Oe(p(Na,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,l,o)=>(this.setClassNames(i),this.setHeight(s),p(ii.Provider,{value:this.customContentRenderId},p(jd,Object.assign({isHeightAuto:l,forPrint:o},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Oe(null,this.el),this.setClassNames([]),this.setHeight(""))},ml(e),this.el=e,this.renderRunner=new zt(this.handleRenderRequest),new Td({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){ct(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!oe(e,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){Nr(this.el,"height",e)}}const Gd={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},qd=f.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:$d(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(f.h(Yd,{key:e.id,customRendering:e}));return f.h("div",{attrs:{"data-fc-render-id":this.renderId}},f.h(f.Fragment,t))},mounted(){const t=new Pc;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new Wd(this.$el,e);this.calendar=n,n.render(),t.subscribe(r=>{this.customRenderingMap=r,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:Qd()}),Yd=f.defineComponent({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return f.h(f.Teleport,{to:t.containerEl},e)}});function Th(t){return t}function Qd(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let r=this.buildOptions(e);n.resetOptions(r),this.renderId++}}};for(let e in Gd)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let r=this.getApi();r.pauseRendering(),r.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function $d(t){const e={};for(const n in t)e[Zd(n)]=t[n];return e}function Zd(t){return t.split("-").map((e,n)=>n?Xd(e):e).join("")}function Xd(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Jd={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(t){return"另外 "+t+" 个"},noEventsText:"没有事件显示"};class Kd extends X{constructor(){super(...arguments),this.headerElRef=j()}renderSimpleLayout(e,n){let{props:r,context:i}=this,s=[],l=At(i.options);return e&&s.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),p(dt,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},p(xn,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,n,r,i){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:l,context:o}=this,a=!l.forPrint&&At(o.options),d=!l.forPrint&&Xi(o.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:a,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),d&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:kn}]}),p(dt,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},p(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:c}))}}function Dt(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.row].push(r);return n}function wt(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.firstCol].push(r);return n}function Ss(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.row].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}const As=P({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Ds(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class ws extends M{render(){let{props:e}=this;return p(Ji,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:As,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Cs extends M{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,s=r.eventTimeFormat||As,l=Ti(i,s,n,!0,e.defaultDisplayEventEnd);return p(Mn,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:xi(e.seg,n),defaultGenerator:eu,timeText:l,isResizing:!1,isDateSelecting:!1}))}}function eu(t){return p(O,null,p("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&p("div",{className:"fc-event-time"},t.timeText),p("div",{className:"fc-event-title"},t.event.title||p(O,null," ")))}class tu extends M{constructor(){super(...arguments),this.compileSegs=_(nu)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return p(ns,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let i=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return p(O,null,n.map(s=>{let l=s.eventRange.instance.instanceId;return p("div",{className:"fc-daygrid-event-harness",key:l,style:{visibility:i[l]?"hidden":""}},Ds(s)?p(Cs,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},ue(s,e.todayRange))):p(ws,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},ue(s,e.todayRange))))}))}})}}function nu(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}const ru=P({week:"narrow"});class iu extends X{constructor(){super(...arguments),this.rootElRef=j(),this.state={dayNumberId:Ke()},this.handleRootEl=e=>{te(this.rootElRef,e),te(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:i}=this,{options:s,dateEnv:l}=e,{date:o,dateProfile:a}=n;const d=n.showDayNumber&&lu(o,a.currentRange,l);return p(Nn,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:su,date:o,dateProfile:a,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:d,extraRenderProps:n.extraRenderProps},(c,u)=>p("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&p(ts,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:yt(e,o,"week"),date:o,defaultFormat:ru}),!u.isDisabled&&(n.showDayNumber||On(s)||n.forceDayTop)?p("div",{className:"fc-daygrid-day-top"},p(c,{elTag:"a",elClasses:["fc-daygrid-day-number",d&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},yt(e,o)),{id:r.dayNumberId})})):n.showDayNumber?p("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},p("a",{className:"fc-daygrid-day-number"}," ")):void 0,p("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,p("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},p(tu,{allDayDate:o,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),p("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function su(t){return t.dayNumberText||p(O,null," ")}function lu(t,e,n){const{start:r,end:i}=e,s=ae(i,-1),l=n.getYear(r),o=n.getMonth(r),a=n.getYear(s),d=n.getMonth(s);return!(l===a&&o===d)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<i.valueOf())}function _s(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Rs(t){return _s(t)+":"+t.lastCol}function ou(t,e,n,r,i,s,l){let o=new du(S=>{let m=t[S.index].eventRange.instance.instanceId+":"+S.span.start+":"+(S.span.end-1);return i[m]||1});o.allowReslicing=!0,o.strictOrder=r,e===!0||n===!0?(o.maxCoord=s,o.hiddenConsumes=!0):typeof e=="number"?o.maxStackCnt=e:typeof n=="number"&&(o.maxStackCnt=n,o.hiddenConsumes=!0);let a=[],d=[];for(let S=0;S<t.length;S+=1){let m=t[S],w=Rs(m);i[w]!=null?a.push({index:S,span:{start:m.firstCol,end:m.lastCol+1}}):d.push(m)}let c=o.addSegs(a),u=o.toRects(),{singleColPlacements:g,multiColPlacements:h,leftoverMargins:v}=au(u,t,l),b=[],E=[];for(let S of d){h[S.firstCol].push({seg:S,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let m=S.firstCol;m<=S.lastCol;m+=1)g[m].push({seg:Ie(S,m,m+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let S=0;S<l.length;S+=1)b.push(0);for(let S of c){let m=t[S.index],w=S.span;h[w.start].push({seg:Ie(m,w.start,w.end,l),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let R=w.start;R<w.end;R+=1)b[R]+=1,g[R].push({seg:Ie(m,R,R+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let S=0;S<l.length;S+=1)E.push(v[S]);return{singleColPlacements:g,multiColPlacements:h,moreCnts:b,moreMarginTops:E}}function au(t,e,n){let r=cu(t,n.length),i=[],s=[],l=[];for(let o=0;o<n.length;o+=1){let a=r[o],d=[],c=0,u=0;for(let h of a){let v=e[h.index];d.push({seg:Ie(v,o,o+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:h.levelCoord-c}),c=h.levelCoord+h.thickness}let g=[];c=0,u=0;for(let h of a){let v=e[h.index],b=h.span.end-h.span.start>1,E=h.span.start===o;u+=h.levelCoord-c,c=h.levelCoord+h.thickness,b?(u+=h.thickness,E&&g.push({seg:Ie(v,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:h.levelCoord,marginTop:0})):E&&(g.push({seg:Ie(v,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:u}),u=0)}i.push(d),s.push(g),l.push(u)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:l}}function cu(t,e){let n=[];for(let r=0;r<e;r+=1)n.push([]);for(let r of t)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function Ie(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let i=t.eventRange,s=i.range,l=Ee(s,{start:r[e].date,end:z(r[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:l},isStart:t.isStart&&l.start.valueOf()===s.start.valueOf(),isEnd:t.isEnd&&l.end.valueOf()===s.end.valueOf()})}class du extends Li{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[De(s)];for(let s=0;s<r.length;s+=1)r[s]=r[s].filter(i);return n}handleInvalidInsertion(e,n,r){const{entriesByLevel:i,forceHidden:s}=this,{touchingEntry:l,touchingLevel:o,touchingLateral:a}=e;if(this.hiddenConsumes&&l){const d=De(l);if(!s[d])if(this.allowReslicing){const c=Object.assign(Object.assign({},l),{span:wn(l.span,n.span)}),u=De(c);s[u]=!0,i[o][a]=c,r.push(c),this.splitEntry(l,n,r)}else s[d]=!0,r.push(l)}super.handleInvalidInsertion(e,n,r)}}class Ts extends X{constructor(){super(...arguments),this.cellElRefs=new re,this.frameElRefs=new re,this.fgElRefs=new re,this.segHarnessRefs=new re,this.rootElRef=j(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:i}=r,s=e.cells.length,l=wt(e.businessHourSegs,s),o=wt(e.bgEventSegs,s),a=wt(this.getHighlightSegs(),s),d=wt(this.getMirrorSegs(),s),{singleColPlacements:c,multiColPlacements:u,moreCnts:g,moreMarginTops:h}=ou(Ri(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),v=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return p("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((b,E)=>{let S=this.renderFgSegs(E,e.forPrint?c[E]:u[E],e.todayRange,v),m=this.renderFgSegs(E,uu(d[E],u),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return p(iu,{key:b.key,elRef:this.cellElRefs.createRef(b.key),innerElRef:this.frameElRefs.createRef(b.key),dateProfile:e.dateProfile,date:b.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&E===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:b.extraRenderProps,extraDataAttrs:b.extraDataAttrs,extraClassNames:b.extraClassNames,extraDateSpan:b.extraDateSpan,moreCnt:g[E],moreMarginTop:h[E],singlePlacements:c[E],fgContentElRef:this.fgElRefs.createRef(b.key),fgContent:p(O,null,p(O,null,S),p(O,null,m)),bgContent:p(O,null,this.renderFillSegs(a[E],"highlight"),this.renderFillSegs(l[E],"non-business"),this.renderFillSegs(o[E],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!Z(e,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,r,i,s,l,o){let{context:a}=this,{eventSelection:d}=this.props,{framePositions:c}=this.state,u=this.props.cells.length===1,g=s||l||o,h=[];if(c)for(let v of n){let{seg:b}=v,{instanceId:E}=b.eventRange.instance,S=v.isVisible&&!i[E],m=v.isAbsolute,w="",R="";m&&(a.isRtl?(R=0,w=c.lefts[b.lastCol]-c.lefts[b.firstCol]):(w=0,R=c.rights[b.firstCol]-c.rights[b.lastCol])),h.push(p("div",{className:"fc-daygrid-event-harness"+(m?" fc-daygrid-event-harness-abs":""),key:_s(b),ref:g?null:this.segHarnessRefs.createRef(Rs(b)),style:{visibility:S?"":"hidden",marginTop:m?"":v.marginTop,top:m?v.absoluteTop:"",left:w,right:R}},Ds(b)?p(Cs,Object.assign({seg:b,isDragging:s,isSelected:E===d,defaultDisplayEventEnd:u},ue(b,r))):p(ws,Object.assign({seg:b,isDragging:s,isResizing:l,isDateSelecting:o,isSelected:E===d,defaultDisplayEventEnd:u},ue(b,r)))))}return h}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:s}=this.state,l=[];if(s)for(let o of e){let a=r?{right:0,left:s.lefts[o.lastCol]-s.lefts[o.firstCol]}:{left:0,right:s.rights[o.firstCol]-s.rights[o.lastCol]};l.push(p("div",{key:ki(o.eventRange),className:"fc-daygrid-bg-harness",style:a},n==="bg-event"?p(Ki,Object.assign({seg:o},ue(o,i))):es(n)))}return p(O,{},...l)}updateSizing(e){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let a=n.cells.map(d=>i.currentMap[d.key]);if(a.length){let d=this.rootElRef.current,c=new Me(d,a,!0,!1);(!r.framePositions||!r.framePositions.similarTo(c))&&this.setState({framePositions:new Me(d,a,!0,!1)})}}const s=this.state.segHeights,l=this.querySegHeights(),o=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},s),l),maxContentHeight:o?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let i=Math.round(e[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,i)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}Ts.addStateEquality({segHeights:Z});function uu(t,e){if(!t.length)return[];let n=fu(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function fu(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class hu extends X{constructor(){super(...arguments),this.splitBusinessHourSegs=_(Dt),this.splitBgEventSegs=_(Dt),this.splitFgEventSegs=_(Dt),this.splitDateSelectionSegs=_(Dt),this.splitEventDrag=_(Ss),this.splitEventResize=_(Ss),this.rowRefs=new re}render(){let{props:e,context:n}=this,r=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),l=this.splitFgEventSegs(e.fgEventSegs,r),o=this.splitDateSelectionSegs(e.dateSelectionSegs,r),a=this.splitEventDrag(e.eventDrag,r),d=this.splitEventResize(e.eventResize,r),c=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return p(je,{unit:"day"},(u,g)=>p(O,null,e.cells.map((h,v)=>p(Ts,{ref:this.rowRefs.createRef(v),key:h.length?h[0].date.toISOString():v,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:g,dateProfile:e.dateProfile,cells:h,renderIntro:e.renderRowIntro,businessHourSegs:i[v],eventSelection:e.eventSelection,bgEventSegs:s[v].filter(gu),fgEventSegs:l[v],dateSelectionSegs:o[v],eventDrag:a[v],eventResize:d[v],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Me(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new Me(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:i}=this,s=r.leftToIndex(e),l=i.topToIndex(n);if(l!=null&&s!=null){let o=this.props.cells[l][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(l,s),allDay:!0},o.extraDateSpan),dayEl:this.getCellEl(l,s),rect:{left:r.lefts[s],right:r.rights[s],top:i.tops[l],bottom:i.bottoms[l]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let r=this.props.cells[e][n].date,i=z(r,1);return{start:r,end:i}}}function gu(t){return t.eventRange.def.allDay}class pu extends X{constructor(){super(...arguments),this.elRef=j(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=e,s=r===!0||n===!0;s&&!i&&(s=!1,n=null,r=null);let l=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return p("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},p("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,p("tbody",{role:"presentation"},p(hu,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=mu(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),i=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function mu(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${no(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${Qt(e.currentDate)}"]`)),n}class vu extends qi{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class ks extends X{constructor(){super(...arguments),this.slicer=new vu,this.tableRef=j()}render(){let{props:e,context:n}=this;return p(pu,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class yu extends Kd{constructor(){super(...arguments),this.buildDayTableModel=_(bu),this.headerRef=j(),this.tableRef=j()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),s=e.dayHeaders&&p(Fi,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),l=o=>p(ks,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:i,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:o.tableColGroupNode,tableMinWidth:o.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:o.clientWidth,clientHeight:o.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,l,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,l)}}function bu(t,e){let n=new Wi(t.renderRange,e);return new Gi(n,/year|month|week/.test(t.currentRangeUnit))}class Eu extends ci{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return Su({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function Su(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:i}=n,s;if(t.snapToWeek&&(r=e.startOfWeek(r),s=e.startOfWeek(i),s.valueOf()!==i.valueOf()&&(i=Fr(s,1))),t.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(z(n.end,-1))),o=Math.ceil(Gl(l,i));i=Fr(i,6-o)}return{start:r,end:i}}var Au=':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}';Vt(Au);var Du=ie({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:yu,dateProfileGeneratorClass:Eu},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}}}});class wu extends za{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?va(e)?["timed","allDay"]:["allDay"]:["timed"]}}const Cu=P({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function xs(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return p(ee.Consumer,null,n=>{if(!t.isLabeled)return p("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:r,options:i,viewApi:s}=n,l=i.slotLabelFormat==null?Cu:Array.isArray(i.slotLabelFormat)?P(i.slotLabelFormat[0]):P(i.slotLabelFormat),o={level:0,time:t.time,date:r.toDate(t.date),view:s,text:r.format(t.date,l)};return p(G,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:o,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:_u,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},a=>p("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},p(a,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function _u(t){return t.text}class Ru extends M{render(){return this.props.slatMetas.map(e=>p("tr",{key:e.key},p(xs,Object.assign({},e))))}}const Tu=P({week:"short"}),ku=5;class xu extends X{constructor(){super(...arguments),this.allDaySplitter=new wu,this.headerElRef=j(),this.rootElRef=j(),this.scrollerElRef=j(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=e)},this.renderHeadAxis=(e,n="")=>{let{options:r}=this.context,{dateProfile:i}=this.props,s=i.renderRange,o=pe(s.start,s.end)===1?yt(this.context,s.start,"week"):{};return r.weekNumbers&&e==="day"?p(ts,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:s.start,defaultFormat:Tu},a=>p("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},p(a,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:o}))):p("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},p("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:r}=this.context,i={text:n.allDayText,view:r};return p(G,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:Mu,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},s=>p("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},p(s,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,n,r){let{context:i,props:s}=this,l=[],o=At(i.options);return e&&l.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),n&&(l.push({type:"body",key:"all-day",chunk:{content:n}}),l.push({type:"body",key:"all-day-divider",outerContent:p("tr",{role:"presentation",className:"fc-scrollgrid-section"},p("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),l.push({type:"body",key:"body",liquid:!0,expandRows:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),p(dt,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},p(xn,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,cols:[{width:"shrink"}],sections:l}))}renderHScrollLayout(e,n,r,i,s,l,o){let a=this.context.pluginHooks.scrollGridImpl;if(!a)throw new Error("No ScrollGrid implementation");let{context:d,props:c}=this,u=!c.forPrint&&At(d.options),g=!c.forPrint&&Xi(d.options),h=[];e&&h.push({type:"header",key:"header",isSticky:u,syncRowHeights:!0,chunks:[{key:"axis",rowContent:b=>p("tr",{role:"presentation"},this.renderHeadAxis("day",b.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:b=>p("tr",{role:"presentation"},this.renderTableRowAxis(b.rowSyncHeights[0]))},{key:"cols",content:n}]}),h.push({key:"all-day-divider",type:"body",outerContent:p("tr",{role:"presentation",className:"fc-scrollgrid-section"},p("td",{colSpan:2,className:"fc-timegrid-divider "+d.theme.getClass("tableCellShaded")}))}));let v=d.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:!!d.options.expandRows,chunks:[{key:"axis",content:b=>p("div",{className:"fc-timegrid-axis-chunk"},p("table",{"aria-hidden":!0,style:{height:b.expandRows?b.clientHeight:""}},b.tableColGroupNode,p("tbody",null,p(Ru,{slatMetas:l}))),p("div",{className:"fc-timegrid-now-indicator-container"},p(je,{unit:v?"minute":"day"},E=>{let S=v&&o&&o.safeComputeTop(E);return typeof S=="number"?p(In,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:S},isAxis:!0,date:E}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),g&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:kn},{key:"cols",content:kn}]}),p(dt,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:d.viewSpec},p(a,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:s}]}],sections:h}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=ku),{dayMaxEvents:e,dayMaxEventRows:n}}}function Mu(t){return t.text}class Iu{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(ne(n.currentRange,e)){let r=I(e),i=e.valueOf()-r.valueOf();if(i>=Y(n.slotMinTime)&&i<Y(n.slotMaxTime))return this.computeTimeTop(k(i))}return null}computeDateTop(e,n){return n||(n=I(e)),this.computeTimeTop(k(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,i=n.els.length,s=(e.milliseconds-Y(r.slotMinTime))/Y(this.slotDuration),l,o;return s=Math.max(0,s),s=Math.min(i,s),l=Math.floor(s),l=Math.min(l,i-1),o=s-l,n.tops[l]+n.getHeight(l)*o}}class Nu extends M{render(){let{props:e,context:n}=this,{options:r}=n,{slatElRefs:i}=e;return p("tbody",null,e.slatMetas.map((s,l)=>{let o={time:s.time,date:n.dateEnv.toDate(s.date),view:n.viewApi};return p("tr",{key:s.key,ref:i.createRef(s.key)},e.axis&&p(xs,Object.assign({},s)),p(G,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!s.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":s.isoTimeStr},renderProps:o,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class Ou extends M{constructor(){super(...arguments),this.rootElRef=j(),this.slatElRefs=new re}render(){let{props:e,context:n}=this;return p("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},p("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,p(Nu,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new Iu(new Me(this.rootElRef.current,Hu(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function Hu(t,e){return e.map(n=>t[n.key])}function Ue(t,e){let n=[],r;for(r=0;r<e;r+=1)n.push([]);if(t)for(r=0;r<t.length;r+=1)n[t[r].col].push(t[r]);return n}function Ms(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.col].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}class Pu extends M{render(){let{props:e}=this;return p(ns,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>Hs(e.hiddenSegs,e),defaultGenerator:Bu,forceTimed:!0},n=>p(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Bu(t){return t.shortText}function Vu(t,e,n){let r=new Li;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(t),s=Ka(i),l=Lu(r);return l=Fu(l,1),{segRects:Wu(l),hiddenGroups:s}}function Lu(t){const{entriesByLevel:e}=t,n=Ln((r,i)=>r+":"+i,(r,i)=>{let s=Uu(t,r,i),l=Is(s,n),o=e[r][i];return[Object.assign(Object.assign({},o),{nextLevelNodes:l[0]}),o.thickness+l[1]]});return Is(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function Is(t,e){if(!t)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=t,s=r,l=[];for(;s<i;)l.push(e(n,s)),s+=1;return l.sort(zu),[l.map(ju),l[0][1]]}function zu(t,e){return e[1]-t[1]}function ju(t){return t[0]}function Uu(t,e,n){let{levelCoords:r,entriesByLevel:i}=t,s=i[e][n],l=r[e]+s.thickness,o=r.length,a=e;for(;a<o&&r[a]<l;a+=1);for(;a<o;a+=1){let d=i[a],c,u=_n(d,s.span.start,Dn),g=u[0]+u[1],h=g;for(;(c=d[h])&&c.span.start<s.span.end;)h+=1;if(g<h)return{level:a,lateralStart:g,lateralEnd:h}}return null}function Fu(t,e){const n=Ln((r,i,s)=>De(r),(r,i,s)=>{let{nextLevelNodes:l,thickness:o}=r,a=o+s,d=o/a,c,u=[];if(!l.length)c=e;else for(let h of l)if(c===void 0){let v=n(h,i,a);c=v[0],u.push(v[1])}else{let v=n(h,c,0);u.push(v[1])}let g=(c-i)*d;return[c-g,Object.assign(Object.assign({},r),{thickness:g,nextLevelNodes:u})]});return t.map(r=>n(r,0,0)[1])}function Wu(t){let e=[];const n=Ln((i,s,l)=>De(i),(i,s,l)=>{let o=Object.assign(Object.assign({},i),{levelCoord:s,stackDepth:l,stackForward:0});return e.push(o),o.stackForward=r(i.nextLevelNodes,s+i.thickness,l+1)+1});function r(i,s,l){let o=0;for(let a of i)o=Math.max(n(a,s,l),o);return o}return r(t,0,0),e}function Ln(t,e){const n={};return(...r)=>{let i=t(...r);return i in n?n[i]:n[i]=e(...r)}}function Ns(t,e,n=null,r=0){let i=[];if(n)for(let s=0;s<t.length;s+=1){let l=t[s],o=n.computeDateTop(l.start,e),a=Math.max(o+(r||0),n.computeDateTop(l.end,e));i.push({start:Math.round(o),end:Math.round(a)})}return i}function Gu(t,e,n,r){let i=[],s=[];for(let d=0;d<t.length;d+=1){let c=e[d];c?i.push({index:d,thickness:1,span:c}):s.push(t[d])}let{segRects:l,hiddenGroups:o}=Vu(i,n,r),a=[];for(let d of l)a.push({seg:t[d.index],rect:d});for(let d of s)a.push({seg:d,rect:null});return{segPlacements:a,hiddenGroups:o}}const qu=P({hour:"numeric",minute:"2-digit",meridiem:!1});class Os extends M{render(){return p(Ji,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:qu}))}}class Yu extends M{constructor(){super(...arguments),this.sortEventSegs=_(Ri)}render(){let{props:e,context:n}=this,{options:r}=n,i=r.selectMirror,s=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||i&&e.dateSelectionSegs||[],l=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},o=this.sortEventSegs(e.fgEventSegs,r.eventOrder);return p(Nn,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},a=>p("div",{className:"fc-timegrid-col-frame"},p("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),p("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,l,!1,!1,!1)),p("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,{},!!e.eventDrag,!!e.eventResize,!!i,"mirror")),p("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),On(r)&&p(a,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,i,s,l){let{props:o}=this;return o.forPrint?Hs(e,o):this.renderPositionedFgSegs(e,n,r,i,s,l)}renderPositionedFgSegs(e,n,r,i,s,l){let{eventMaxStack:o,eventShortHeight:a,eventOrderStrict:d,eventMinHeight:c}=this.context.options,{date:u,slatCoords:g,eventSelection:h,todayRange:v,nowDate:b}=this.props,E=r||i||s,S=Ns(e,u,g,c),{segPlacements:m,hiddenGroups:w}=Gu(e,S,d,o);return p(O,null,this.renderHiddenGroups(w,e),m.map(R=>{let{seg:N,rect:T}=R,x=N.eventRange.instance.instanceId,A=E||!!(!n[x]&&T),D=zn(T&&T.span),B=!E&&T?this.computeSegHStyle(T):{left:0,right:0},J=!!T&&T.stackForward>0,se=!!T&&T.span.end-T.span.start<a;return p("div",{className:"fc-timegrid-event-harness"+(J?" fc-timegrid-event-harness-inset":""),key:l||x,style:Object.assign(Object.assign({visibility:A?"":"hidden"},D),B)},p(Os,Object.assign({seg:N,isDragging:r,isResizing:i,isDateSelecting:s,isSelected:x===h,isShort:se},ue(N,v,b))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:o,eventDrag:a,eventResize:d}=this.props;return p(O,null,e.map(c=>{let u=zn(c.span),g=Qu(c.entries,n);return p(Pu,{key:Yr(is(g)),hiddenSegs:g,top:u.top,bottom:u.bottom,extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:o,eventDrag:a,eventResize:d})}))}renderFillSegs(e,n){let{props:r,context:i}=this,l=Ns(e,r.date,r.slatCoords,i.options.eventMinHeight).map((o,a)=>{let d=e[a];return p("div",{key:ki(d.eventRange),className:"fc-timegrid-bg-harness",style:zn(o)},n==="bg-event"?p(Ki,Object.assign({seg:d},ue(d,r.todayRange,r.nowDate))):es(n))});return p(O,null,l)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((i,s)=>p(In,{key:s,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(i.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(e){let{isRtl:n,options:r}=this.context,i=r.slotEventOverlap,s=e.levelCoord,l=e.levelCoord+e.thickness,o,a;i&&(l=Math.min(1,s+(l-s)*2)),n?(o=1-l,a=s):(o=s,a=1-l);let d={zIndex:e.stackDepth+1,left:o*100+"%",right:a*100+"%"};return i&&!e.stackForward&&(d[n?"marginLeft":"marginRight"]=10*2),d}}function Hs(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let l=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return p(O,null,t.map(o=>{let a=o.eventRange.instance.instanceId;return p("div",{key:a,style:{visibility:l[a]?"hidden":""}},p(Os,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===r,isShort:!1},ue(o,e,n))))}))}function zn(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function Qu(t,e){return t.map(n=>e[n.index])}class $u extends M{constructor(){super(...arguments),this.splitFgEventSegs=_(Ue),this.splitBgEventSegs=_(Ue),this.splitBusinessHourSegs=_(Ue),this.splitNowIndicatorSegs=_(Ue),this.splitDateSelectionSegs=_(Ue),this.splitEventDrag=_(Ms),this.splitEventResize=_(Ms),this.rootElRef=j(),this.cellElRefs=new re}render(){let{props:e,context:n}=this,r=n.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),i=e.cells.length,s=this.splitFgEventSegs(e.fgEventSegs,i),l=this.splitBgEventSegs(e.bgEventSegs,i),o=this.splitBusinessHourSegs(e.businessHourSegs,i),a=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i),d=this.splitDateSelectionSegs(e.dateSelectionSegs,i),c=this.splitEventDrag(e.eventDrag,i),u=this.splitEventResize(e.eventResize,i);return p("div",{className:"fc-timegrid-cols",ref:this.rootElRef},p("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,p("tbody",{role:"presentation"},p("tr",{role:"row"},e.axis&&p("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},p("div",{className:"fc-timegrid-col-frame"},p("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&p(In,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((g,h)=>p(Yu,{key:g.key,elRef:this.cellElRefs.createRef(g.key),dateProfile:e.dateProfile,date:g.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:g.extraRenderProps,extraDataAttrs:g.extraDataAttrs,extraClassNames:g.extraClassNames,extraDateSpan:g.extraDateSpan,fgEventSegs:s[h],bgEventSegs:l[h],businessHourSegs:o[h],nowIndicatorSegs:a[h],dateSelectionSegs:d[h],eventDrag:c[h],eventResize:u[h],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new Me(this.rootElRef.current,Zu(this.cellElRefs.currentMap,e.cells),!0,!1))}}function Zu(t,e){return e.map(n=>t[n.key])}class Xu extends X{constructor(){super(...arguments),this.processSlotOptions=_(Ju),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(e.time){let i=r.computeTimeTop(e.time);i=Math.ceil(i),i&&(i+=1),n(i)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:n}=this;return p("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},p(Ou,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),p($u,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,n){let{dateEnv:r,options:i}=this.context,{colCoords:s}=this,{dateProfile:l}=this.props,{slatCoords:o}=this.state,{snapDuration:a,snapsPerSlot:d}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),c=s.leftToIndex(e),u=o.positions.topToIndex(n);if(c!=null&&u!=null){let g=this.props.cells[c],h=o.positions.tops[u],v=o.positions.getHeight(u),b=(n-h)/v,E=Math.floor(b*d),S=u*d+E,m=this.props.cells[c].date,w=Wt(l.slotMinTime,jl(a,S)),R=r.add(m,w),N=r.add(R,a);return{dateProfile:l,dateSpan:Object.assign({range:{start:R,end:N},allDay:!1},g.extraDateSpan),dayEl:s.els[c],rect:{left:s.lefts[c],right:s.rights[c],top:h,bottom:h+v},layer:0}}return null}}function Ju(t,e){let n=e||t,r=Gt(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class Ku extends qi{sliceRange(e,n){let r=[];for(let i=0;i<n.length;i+=1){let s=Ee(e,n[i]);s&&r.push({start:s.start,end:s.end,isStart:s.start.valueOf()===e.start.valueOf(),isEnd:s.end.valueOf()===e.end.valueOf(),col:i})}return r}}class ef extends X{constructor(){super(...arguments),this.buildDayRanges=_(tf),this.slicer=new Ku,this.timeColsRef=j()}render(){let{props:e,context:n}=this,{dateProfile:r,dayTableModel:i}=e,{nowIndicator:s,nextDayThreshold:l}=n.options,o=this.buildDayRanges(i,r,n.dateEnv);return p(je,{unit:s?"minute":"day"},(a,d)=>p(Xu,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,r,null,n,o),{forPrint:e.forPrint,axis:e.axis,dateProfile:r,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:i.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:a,nowIndicatorSegs:s&&this.slicer.sliceNowDate(a,r,l,n,o),todayRange:d,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function tf(t,e,n){let r=[];for(let i of t.headerDates)r.push({start:n.add(i,e.slotMinTime),end:n.add(i,e.slotMaxTime)});return r}const Ps=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function nf(t,e,n,r,i){let s=new Date(0),l=t,o=k(0),a=n||rf(r),d=[];for(;Y(l)<Y(e);){let c=i.add(s,l),u=Gt(o,a)!==null;d.push({date:c,time:l,key:c.toISOString(),isoTimeStr:ro(c),isLabeled:u}),l=Wt(l,r),o=Wt(o,r)}return d}function rf(t){let e,n,r;for(e=Ps.length-1;e>=0;e-=1)if(n=k(Ps[e]),r=Gt(n,t),r!==null&&r>1)return n;return t}class sf extends xu{constructor(){super(...arguments),this.buildTimeColsModel=_(lf),this.buildSlatMetas=_(nf)}render(){let{options:e,dateEnv:n,dateProfileGenerator:r}=this.context,{props:i}=this,{dateProfile:s}=i,l=this.buildTimeColsModel(s,r),o=this.allDaySplitter.splitProps(i),a=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:d}=e,c=!d,u=d,g=e.dayHeaders&&p(Fi,{dates:l.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),h=e.allDaySlot!==!1&&(b=>p(ks,Object.assign({},o.allDay,{dateProfile:s,dayTableModel:l,nextDayThreshold:e.nextDayThreshold,tableMinWidth:b.tableMinWidth,colGroupNode:b.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:b.clientWidth,clientHeight:b.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),v=b=>p(ef,Object.assign({},o.timed,{dayTableModel:l,dateProfile:s,axis:c,slotDuration:e.slotDuration,slatMetas:a,forPrint:i.forPrint,tableColGroupNode:b.tableColGroupNode,tableMinWidth:b.tableMinWidth,clientWidth:b.clientWidth,clientHeight:b.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:b.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return u?this.renderHScrollLayout(g,h,v,l.colCnt,d,a,this.state.slatCoords):this.renderSimpleLayout(g,h,v)}}function lf(t,e){let n=new Wi(t.renderRange,e);return new Gi(n,!1)}var of='.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}';Vt(of);var af=ie({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:sf,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});Rn.touchMouseIgnoreWait=500;let jn=0,Ct=0,Un=!1;class Bs{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&cf(n)&&this.tryStart(n)){let r=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let r=this.createEventFromMouse(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let r=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let i=n.target;this.shouldIgnoreMove||i.addEventListener("touchmove",this.handleTouchMove),i.addEventListener("touchend",this.handleTouchEnd),i.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let r=this.createEventFromTouch(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=n=>{if(this.isDragging){let r=n.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,df()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.scrollX-this.prevScrollX+this.prevPageX,i=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:r-this.origPageX,deltaY:i-this.origPageY})}},this.containerEl=e,this.emitter=new mt,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),uf()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),ff()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||L(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){Un=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?L(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return jn||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Un=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let r=0,i=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:i}}createEventFromTouch(e,n){let r=e.touches,i,s,l=0,o=0;return r&&r.length?(i=r[0].pageX,s=r[0].pageY):(i=e.pageX,s=e.pageY),n?(this.origPageX=i,this.origPageY=s):(l=i-this.origPageX,o=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:s,deltaX:l,deltaY:o}}}function cf(t){return t.button===0&&!t.ctrlKey}function df(){jn+=1,setTimeout(()=>{jn-=1},Rn.touchMouseIgnoreWait)}function uf(){Ct+=1,Ct===1&&window.addEventListener("touchmove",Vs,{passive:!1})}function ff(){Ct-=1,Ct||window.removeEventListener("touchmove",Vs,{passive:!1})}function Vs(t){Un&&t.preventDefault()}class hf{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.scrollX,this.origScreenY=r-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=n-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let r=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(e,n){let r=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();r.style.transition="top "+n+"ms,left "+n+"ms",He(r,{left:i.left,top:i.top}),_l(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(jt(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&He(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.pointerEvents="none",n.classList.add("fc-event-dragging"),He(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class Ls extends An{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class zs extends Ls{constructor(e,n){super(new Xa(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return $a(this.scrollController.el)}}class gf extends Ls{constructor(e){super(new Ja,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const js=typeof performance=="function"?performance.now:Date.now;class pf{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let n=js();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let r=e-window.scrollX,i=n-window.scrollY,s=this.pointerScreenY===null?0:i-this.pointerScreenY,l=this.pointerScreenX===null?0:r-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),l<0?this.everMovedLeft=!0:l>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(js()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:r}=e,{edgeThreshold:i}=this,s=i-e.distance,l=s*s/(i*i)*this.maxVelocity*n,o=1;switch(e.name){case"left":o=-1;case"right":r.setScrollLeft(r.getScrollLeft()+l*o);break;case"top":o=-1;case"bottom":r.setScrollTop(r.getScrollTop()+l*o);break}}computeBestEdge(e,n){let{edgeThreshold:r}=this,i=null,s=this.scrollCaches||[];for(let l of s){let o=l.clientRect,a=e-o.left,d=o.right-e,c=n-o.top,u=o.bottom-n;a>=0&&d>=0&&c>=0&&u>=0&&(c<=r&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>c)&&(i={scrollCache:l,name:"top",distance:c}),u<=r&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>u)&&(i={scrollCache:l,name:"bottom",distance:u}),a<=r&&this.everMovedLeft&&l.canScrollLeft()&&(!i||i.distance>a)&&(i={scrollCache:l,name:"left",distance:a}),d<=r&&this.everMovedRight&&l.canScrollRight()&&(!i||i.distance>d)&&(i={scrollCache:l,name:"right",distance:d}))}return i}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new gf(!1):new zs(n,!1))}queryScrollEls(e){let n=[];for(let r of this.scrollQuery)typeof r=="object"?n.push(r):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(r)));return n}}class Fe extends tc{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=i=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Rl(document.body),kl(document.body),i.isTouch||i.origEvent.preventDefault(),this.emitter.trigger("pointerdown",i),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(i.subjectEl,i.pageX,i.pageY),this.startDelay(i),this.minDistance||this.handleDistanceSurpassed(i)))},this.onPointerMove=i=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",i),!this.isDistanceSurpassed){let s=this.minDistance,l,{deltaX:o,deltaY:a}=i;l=o*o+a*a,l>=s*s&&this.handleDistanceSurpassed(i)}this.isDragging&&(i.origEvent.type!=="scroll"&&(this.mirror.handleMove(i.pageX,i.pageY),this.autoScroller.handleMove(i.pageX,i.pageY)),this.emitter.trigger("dragmove",i))}},this.onPointerUp=i=>{this.isInteracting&&(this.isInteracting=!1,Tl(document.body),xl(document.body),this.emitter.trigger("pointerup",i),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(i)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new Bs(e);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),n&&(r.selector=n),this.mirror=new hf,this.autoScroller=new pf}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class mf{constructor(e){this.el=e,this.origRect=Sn(e),this.scrollCaches=Vi(e).map(n=>new zs(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let r={left:e,top:n};for(let i of this.scrollCaches)if(!vf(i.getEventTarget())&&!Pa(r,i.clientRect))return!1;return!0}}function vf(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class _t{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:i}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(i.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):i.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},this.droppableStore=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new mt}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl,s;i instanceof HTMLElement&&(s=Sn(i),r=Ba(r,s));let l=this.initialHit=this.queryHitForOffset(r.left,r.top);if(l){if(this.useSubjectCenter&&s){let o=Hi(s,l.rect);o&&(r=Va(o))}this.coordAdjust=La(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!Rt(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=K(this.droppableStore,e=>(e.component.prepareHits(),new mf(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:r,offsetTrackers:i}=this,s=null;for(let l in r){let o=r[l].component,a=i[l];if(a&&a.isWithinClipping(e,n)){let d=a.computeLeft(),c=a.computeTop(),u=e-d,g=n-c,{origRect:h}=a,v=h.right-h.left,b=h.bottom-h.top;if(u>=0&&u<v&&g>=0&&g<b){let E=o.queryHit(u,g,v,b);E&&ut(E.dateProfile.activeRange,E.dateSpan.range)&&(this.disablePointCheck||a.el.contains(a.el.getRootNode().elementFromPoint(u+d-window.scrollX,g+c-window.scrollY)))&&(!s||E.layer>s.layer)&&(E.componentId=l,E.context=o.context,E.rect.left+=d,E.rect.right+=d,E.rect.top+=c,E.rect.bottom+=c,s=E)}}}return s}}function Rt(t,e){return!t&&!e?!0:!!t!=!!e?!1:_a(t.dateSpan,e.dateSpan)}function Us(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,yf(t,e.dateEnv)),n}function yf(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class bf extends xe{constructor(e){super(e),this.handlePointerDown=r=>{let{dragging:i}=this,s=r.origEvent.target;i.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=r=>{let{component:i}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:l,finalHit:o}=this.hitDragging;if(l&&o&&Rt(l,o)){let{context:a}=i,d=Object.assign(Object.assign({},Us(l.dateSpan,a)),{dayEl:l.dayEl,jsEvent:r.origEvent,view:a.viewApi||a.calendarApi.view});a.emitter.trigger("dateClick",d)}}},this.dragging=new Fe(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new _t(this.dragging,pn(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class Ef extends xe{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=l=>{let{component:o,dragging:a}=this,{options:d}=o.context,c=d.selectable&&o.isValidDateDownEl(l.origEvent.target);a.setIgnoreMove(!c),a.delay=l.isTouch?Sf(o):null},this.handleDragStart=l=>{this.component.context.calendarApi.unselect(l)},this.handleHitUpdate=(l,o)=>{let{context:a}=this.component,d=null,c=!1;if(l){let u=this.hitDragging.initialHit;l.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,l)||(d=Af(u,l,a.pluginHooks.dateSelectionTransformers)),(!d||!oc(d,l.dateProfile,a))&&(c=!0,d=null)}d?a.dispatch({type:"SELECT_DATES",selection:d}):o||a.dispatch({type:"UNSELECT_DATES"}),c?Ut():Ft(),o||(this.dragSelection=d)},this.handlePointerUp=l=>{this.dragSelection&&(Si(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,i=this.dragging=new Fe(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new _t(this.dragging,pn(e));s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function Sf(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function Af(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(Hl);let l={};for(let o of n){let a=o(t,e);if(a===!1)return null;a&&Object.assign(l,a)}return l.range={start:s[0],end:s[3]},l.allDay=r.allDay,l}class We extends xe{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=l=>{let o=l.origEvent.target,{component:a,dragging:d}=this,{mirror:c}=d,{options:u}=a.context,g=a.context;this.subjectEl=l.subjectEl;let h=this.subjectSeg=ke(l.subjectEl),b=(this.eventRange=h.eventRange).instance.instanceId;this.relevantEvents=dn(g.getCurrentData().eventStore,b),d.minDistance=l.isTouch?0:u.eventDragMinDistance,d.delay=l.isTouch&&b!==a.props.eventSelection?wf(a):null,u.fixedMirrorParent?c.parentNode=u.fixedMirrorParent:c.parentNode=L(o,".fc"),c.revertDuration=u.dragRevertDuration;let E=a.isValidSegDownEl(o)&&!L(o,".fc-event-resizer");d.setIgnoreMove(!E),this.isDragging=E&&l.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=l=>{let o=this.component.context,a=this.eventRange,d=a.instance.instanceId;l.isTouch?d!==this.component.props.eventSelection&&o.dispatch({type:"SELECT_EVENT",eventInstanceId:d}):o.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(o.calendarApi.unselect(l),o.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new H(o,a.def,a.instance),jsEvent:l.origEvent,view:o.viewApi}))},this.handleHitUpdate=(l,o)=>{if(!this.isDragging)return;let a=this.relevantEvents,d=this.hitDragging.initialHit,c=this.component.context,u=null,g=null,h=null,v=!1,b={affectedEvents:a,mutatedEvents:q(),isEvent:!0};if(l){u=l.context;let E=u.options;c===u||E.editable&&E.droppable?(g=Df(d,l,this.eventRange.instance.range.start,u.getCurrentData().pluginHooks.eventDragMutationMassagers),g&&(h=hn(a,u.getCurrentData().eventUiBases,g,u),b.mutatedEvents=h,Yi(b,l.dateProfile,u)||(v=!0,g=null,h=null,b.mutatedEvents=q()))):u=null}this.displayDrag(u,b),v?Ut():Ft(),o||(c===u&&Rt(d,l)&&(g=null),this.dragging.setMirrorNeedsRevert(!g),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=u,this.validMutation=g,this.mutatedRelevantEvents=h)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=l=>{if(this.isDragging){let o=this.component.context,a=o.viewApi,{receivingContext:d,validMutation:c}=this,u=this.eventRange.def,g=this.eventRange.instance,h=new H(o,u,g),v=this.relevantEvents,b=this.mutatedRelevantEvents,{finalHit:E}=this.hitDragging;if(this.clearDrag(),o.emitter.trigger("eventDragStop",{el:this.subjectEl,event:h,jsEvent:l.origEvent,view:a}),c){if(d===o){let S=new H(o,b.defs[u.defId],g?b.instances[g.instanceId]:null);o.dispatch({type:"MERGE_EVENTS",eventStore:b});let m={oldEvent:h,event:S,relatedEvents:Ae(b,o,g),revert(){o.dispatch({type:"MERGE_EVENTS",eventStore:v})}},w={};for(let R of o.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(w,R(c,o));o.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},m),w),{el:l.subjectEl,delta:c.datesDelta,jsEvent:l.origEvent,view:a})),o.emitter.trigger("eventChange",m)}else if(d){let S={event:h,relatedEvents:Ae(v,o,g),revert(){o.dispatch({type:"MERGE_EVENTS",eventStore:v})}};o.emitter.trigger("eventLeave",Object.assign(Object.assign({},S),{draggedEl:l.subjectEl,view:a})),o.dispatch({type:"REMOVE_EVENTS",eventStore:v}),o.emitter.trigger("eventRemove",S);let m=b.defs[u.defId],w=b.instances[g.instanceId],R=new H(d,m,w);d.dispatch({type:"MERGE_EVENTS",eventStore:b});let N={event:R,relatedEvents:Ae(b,d,w),revert(){d.dispatch({type:"REMOVE_EVENTS",eventStore:b})}};d.emitter.trigger("eventAdd",N),l.isTouch&&d.dispatch({type:"SELECT_EVENT",eventInstanceId:g.instanceId}),d.emitter.trigger("drop",Object.assign(Object.assign({},Us(E.dateSpan,d)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:E.context.viewApi})),d.emitter.trigger("eventReceive",Object.assign(Object.assign({},N),{draggedEl:l.subjectEl,view:E.context.viewApi}))}}else o.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,i=this.dragging=new Fe(e.el);i.pointer.selector=We.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new _t(this.dragging,mn);s.useSubjectCenter=e.useEventCenter,s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp),s.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,n){let r=this.component.context,i=this.receivingContext;i&&i!==e&&(i===r?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:q(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}We.SELECTOR=".fc-event-draggable, .fc-event-resizable";function Df(t,e,n,r){let i=t.dateSpan,s=e.dateSpan,l=i.range.start,o=s.range.start,a={};i.allDay!==s.allDay&&(a.allDay=s.allDay,a.hasEnd=e.context.options.allDayMaintainDuration,s.allDay?l=I(n):l=n);let d=Re(l,o,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);d.milliseconds&&(a.allDay=!1);let c={datesDelta:d,standardProps:a};for(let u of r)u(c,t,e);return c}function wf(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class Cf extends xe{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let{component:l}=this,o=this.querySegEl(s),a=ke(o),d=this.eventRange=a.eventRange;this.dragging.minDistance=l.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==d.instance.instanceId)},this.handleDragStart=s=>{let{context:l}=this.component,o=this.eventRange;this.relevantEvents=dn(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let a=this.querySegEl(s);this.draggingSegEl=a,this.draggingSeg=ke(a),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:a,event:new H(l,o.def,o.instance),jsEvent:s.origEvent,view:l.viewApi})},this.handleHitUpdate=(s,l,o)=>{let{context:a}=this.component,d=this.relevantEvents,c=this.hitDragging.initialHit,u=this.eventRange.instance,g=null,h=null,v=!1,b={affectedEvents:d,mutatedEvents:q(),isEvent:!0};s&&(s.componentId===c.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(c,s)||(g=_f(c,s,o.subjectEl.classList.contains("fc-event-resizer-start"),u.range))),g&&(h=hn(d,a.getCurrentData().eventUiBases,g,a),b.mutatedEvents=h,Yi(b,s.dateProfile,a)||(v=!0,g=null,h=null,b.mutatedEvents=null)),h?a.dispatch({type:"SET_EVENT_RESIZE",state:b}):a.dispatch({type:"UNSET_EVENT_RESIZE"}),v?Ut():Ft(),l||(g&&Rt(c,s)&&(g=null),this.validMutation=g,this.mutatedRelevantEvents=h)},this.handleDragEnd=s=>{let{context:l}=this.component,o=this.eventRange.def,a=this.eventRange.instance,d=new H(l,o,a),c=this.relevantEvents,u=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:d,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let g=new H(l,u.defs[o.defId],a?u.instances[a.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:u});let h={oldEvent:d,event:g,relatedEvents:Ae(u,l,a),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:c})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},h),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||k(0),endDelta:this.validMutation.endDelta||k(0),jsEvent:s.origEvent,view:l.viewApi})),l.emitter.trigger("eventChange",h)}else l.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,r=this.dragging=new Fe(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let i=this.hitDragging=new _t(this.dragging,pn(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return L(e.subjectEl,".fc-event")}}function _f(t,e,n,r){let i=t.context.dateEnv,s=t.dateSpan.range.start,l=e.dateSpan.range.start,o=Re(s,l,i,t.largeUnit);if(n){if(i.add(r.start,o)<r.end)return{startDelta:o}}else if(i.add(r.end,o)>r.start)return{endDelta:o};return null}class Rf{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let i=this.context.options.unselectCancel,s=Or(r.origEvent);this.matchesCancel=!!L(s,i),this.matchesEvent=!!L(s,We.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:i}=this,{documentPointer:s}=this,l=i.getCurrentData();if(!s.wasTouchScroll){if(l.dateSelection&&!this.isRecentPointerDateSelect){let o=i.options.unselectAuto;o&&(!o||!this.matchesCancel)&&i.calendarApi.unselect(r)}l.eventSelection&&!this.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new Bs(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const Tf={fixedMirrorParent:y},kf={dateClick:y,eventDragStart:y,eventDragStop:y,eventDrop:y,eventResizeStart:y,eventResizeStop:y,eventResize:y,drop:y,eventReceive:y,eventLeave:y};Rn.dataAttrPrefix="";var xf=ie({name:"@fullcalendar/interaction",componentInteractions:[bf,Ef,We,Cf],calendarInteractions:[Rf],elementDraggingImpl:Fe,optionRefiners:Tf,listenerRefiners:kf});/*! Element Plus Icons Vue v2.3.1 */var Mf=f.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(t){return(e,n)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),If=Mf,Nf=f.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(t){return(e,n)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Of=Nf,Hf=f.defineComponent({name:"Calendar",__name:"calendar",setup(t){return(e,n)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),Pf=Hf,Bf=f.defineComponent({name:"Clock",__name:"clock",setup(t){return(e,n)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),f.createElementVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),f.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),Vf=Bf,Lf=f.defineComponent({name:"DeleteFilled",__name:"delete-filled",setup(t){return(e,n)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),zf=Lf,jf=f.defineComponent({name:"Document",__name:"document",setup(t){return(e,n)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Uf=jf;const Ff={class:"ik-full-calendar"},Wf=["onClick"],Gf={key:0,class:"event-title allday"},qf={key:0,class:"event-title-time"},Yf={key:1,class:"event-title no-allday"},Qf={class:"event-title-time"},$f={class:"event-title-text"},Zf={name:"IkFullCalendar"},Xf=f.defineComponent({...Zf,props:{options:{default:{}},removable:{type:Boolean,default:!0},modelValue:{default:[]},tooltipFieldName:{default:"remark"}},emits:["added","deleted","update:modelValue","eventClick","deleteClick","dateSelect"],setup(t,{expose:e,emit:n}){const r=t,i=f.computed({get:()=>r.modelValue,set:m=>s("update:modelValue",m)}),s=n,l=f.ref(null),o=m=>{},a=f.ref("dayGridMonth"),d=m=>{s("dateSelect",m)},c=m=>{s("eventClick",m)},u=m=>{s("deleteClick",m)},g=()=>({locale:Jd,plugins:[Du,xf,af],headerToolbar:{left:"dayGridMonth,timeGridWeek,timeGridDay prev,today,next",center:"title",right:""},firstDay:1,initialView:"dayGridMonth",weekends:!0,editable:!0,selectable:!0,selectMirror:!0,dateClick:o,select:d,...r.options,events:i.value}),h=f.reactive({timeType:"month",options:g()}),v=f.ref(null),b=()=>{var m;h.options=g(),(m=l.value)==null||m.buildOptions(h.options)};e({...{prev:()=>{var m;(m=v.value)==null||m.prev()},next:()=>{var m;(m=v.value)==null||m.next()},today:()=>{var m;(m=v.value)==null||m.today()},changeView:m=>{var w;(w=v.value)==null||w.changeView(m),a.value=m},getDate:()=>{var m;return(m=v.value)==null?void 0:m.getDate()},getView:()=>{var m;return(m=v.value)==null?void 0:m.view},unselect:()=>{var m;return(m=v.value)==null?void 0:m.unselect()}}}),f.watch(()=>i.value,()=>{b()});const S=()=>{var m;v.value=(m=l.value)==null?void 0:m.getApi()};return f.onMounted(()=>{S()}),(m,w)=>{const R=f.resolveComponent("el-tooltip"),N=f.resolveComponent("el-icon");return f.openBlock(),f.createElementBlock("div",Ff,[f.createVNode(f.unref(qd),{ref_key:"_ref",ref:l,options:h.options,style:{height:"100%"}},{eventContent:f.withCtx(T=>[f.createElementVNode("div",{class:"title-line",onClick:x=>c(T)},[f.createVNode(R,null,{content:f.withCtx(()=>{var x,A;return[f.createCommentVNode(" {{arg}} "),f.createTextVNode(" "+f.toDisplayString((A=(x=T.event)==null?void 0:x.extendedProps)==null?void 0:A[r.tooltipFieldName]),1)]}),default:f.withCtx(()=>[T.event.allDay?(f.openBlock(),f.createElementBlock("span",Gf,[a.value==="dayGridMonth"?(f.openBlock(),f.createElementBlock("span",qf,f.toDisplayString("(全天)"))):f.createCommentVNode("v-if",!0),f.createElementVNode("span",null,f.toDisplayString(T.event.title),1)])):(f.openBlock(),f.createElementBlock("span",Yf,[f.createElementVNode("span",Qf,f.toDisplayString(f.unref(F.ikDate).toDateTime(T.event.startStr,"HH:mm")),1),f.createElementVNode("span",$f,f.toDisplayString(T.event.title),1)]))]),_:2},1024),r.removable?(f.openBlock(),f.createBlock(N,{key:0,size:16,onClick:f.withModifiers(x=>u(T),["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(zf))]),_:2},1032,["onClick"])):f.createCommentVNode("v-if",!0)],8,Wf)]),_:1},8,["options"])])}}}),Fn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},Jf=kt(Fn(Xf,[["__scopeId","data-v-f0925ff8"]])),Kf={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},eh=["xlink:href"],th=["src"],nh={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},rh=["xlink:href"],ih=["src"],Fs=kt(Fn(f.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},emits:["click","mouseenter","mouseleave","dblclick"],setup(t,{emit:e}){const n=t,r=f.computed(()=>n),i=f.computed(()=>{const{name:u}=r.value;return/^http?:\/\//.test(u)?"img":/i-[^:]+:[^:]+/.test(u)?"unocss":u!=null&&u.startsWith("iksig")?"iksig":u!=null&&u.includes(":")?"iconify":u!=null&&u.startsWith("iksvg")?"svg":"i"}),s=f.computed(()=>{const u=[];if(r.value.flip)switch(r.value.flip){case"horizontal":u.push("rotateY(180deg)");break;case"vertical":u.push("rotateX(180deg)");break;case"both":u.push("rotateX(180deg)"),u.push("rotateY(180deg)");break}r.value.rotate&&u.push(`rotate(${r.value.rotate%360}deg)`);const g={pointerEvents:r.value.disabled?"none":"auto",...r.value.color&&{color:r.value.color},...r.value.size&&{fontSize:typeof r.value.size=="number"?`${r.value.size}px`:r.value.size},...u.length&&{transform:u.join(" ")},padding:r.value.showBg||r.value.bg?r.value.padding:0,...r.value.color&&i.value!=="iksig"?{"--ik-icon-deep-color":r.value.color,"--ik-icon-shallow-color":r.value.colorLight||F.ikColor.setOpacity(r.value.color,r.value.opacity)}:{}};return r.value.width&&(g.width=g.height=typeof r.value.width=="number"?`${r.value.width}px`:r.value.width),g}),l=e,o=u=>{l("click",u)},a=u=>{l("mouseenter",u)},d=u=>{l("mouseleave",u)},c=u=>{l("dblclick",u)};return(u,g)=>{const h=f.resolveComponent("el-tooltip"),v=f.resolveComponent("el-button");return r.value.tableIconType==="icon"||!r.value.tableIconType?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[r.value.notip||!r.value.title?(f.openBlock(),f.createElementBlock("span",{key:0,class:f.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[u.name]:i.value==="unocss","show-bg":r.value.showBg||r.value.bg,default:r.value.size==="default",small:r.value.size==="small",big:r.value.size==="big",warning:r.value.warning||r.value.type==="warning",primary:r.value.primary||r.value.type==="primary",success:u.success||r.value.type==="success",error:r.value.error||r.value.type==="error",active:r.value.active,disabled:r.value.disabled}]),style:f.normalizeStyle(s.value),onClick:o,onDblclick:c,onMouseenter:a,onMouseleave:d},[f.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),i.value==="iksig"?(f.openBlock(),f.createElementBlock("i",{key:0,class:f.normalizeClass(`iksig ${r.value.name}`),style:f.normalizeStyle(s.value)},null,6)):i.value==="svg"?(f.openBlock(),f.createElementBlock("svg",Kf,[f.createElementVNode("use",{"xlink:href":`#${r.value.name}`},null,8,eh)])):i.value==="img"?(f.openBlock(),f.createElementBlock("img",{key:2,src:r.value.name,class:"h-[1em] w-[1em]"},null,8,th)):(f.openBlock(),f.createElementBlock("i",{key:3,class:f.normalizeClass(r.value.name),style:f.normalizeStyle(s.value)},null,6))],38)):(f.openBlock(),f.createBlock(h,{key:1,content:r.value.title,placement:"top","hide-after":0},{default:f.withCtx(()=>[f.createElementVNode("span",{class:f.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[u.name]:i.value==="unocss","show-bg":r.value.showBg||r.value.bg,default:r.value.size==="default",small:r.value.size==="small",big:r.value.size==="big",warning:r.value.warning||r.value.type==="warning",primary:u.primary||r.value.type==="primary",success:u.success||r.value.type==="success",error:r.value.error||r.value.type==="error",active:r.value.active}]),style:f.normalizeStyle(s.value),onClick:o,onDblclick:c,onMouseenter:a,onMouseleave:d},[i.value==="iksig"?(f.openBlock(),f.createElementBlock("i",{key:0,class:f.normalizeClass(`iksig ${r.value.name}`),style:f.normalizeStyle(s.value)},null,6)):i.value==="svg"?(f.openBlock(),f.createElementBlock("svg",nh,[f.createElementVNode("use",{"xlink:href":`#${r.value.name}`},null,8,rh)])):i.value==="img"?(f.openBlock(),f.createElementBlock("img",{key:2,src:r.value.name,class:"h-[1em] w-[1em]"},null,8,ih)):(f.openBlock(),f.createElementBlock("i",{key:3,class:f.normalizeClass(r.value.name),style:f.normalizeStyle(s.value)},null,6))],38)]),_:1},8,["content"]))],64)):(f.openBlock(),f.createBlock(v,{key:1,type:["warning","error"].includes(r.value.type)?"danger":""},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(r.value.title),1)]),_:1},8,["type"]))}}}),[["__scopeId","data-v-c7804024"]])),sh={class:"ik-schedule"},lh={class:"ik-schedule__left"},oh={class:"ik-schedule__header"},ah={class:"ik-schedule__title"},ch={class:"ik-schedule__body"},dh={style:{"font-size":"18px"}},uh={key:0},fh={style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},hh={key:0,style:{"margin-left":"2%"}},gh={key:1},ph={class:"dialog-footer"},mh={name:"IkSchedule"},vh=f.defineComponent({...mh,props:{modelValue:{default:[]},options:{default:{initialView:"dayGridMonth"}},editVisible:{type:Boolean},removable:{type:Boolean,default:!0}},emits:["update:modelValue","added","updated","deleted","editOpen","submit","update:editVisible","submitAdd","submitUpdate","submitDelete"],setup(t,{expose:e,emit:n}){var x;const r=t,i=n,s=!!f.useSlots().form,l=f.computed({get:()=>r.modelValue,set:A=>{i("update:modelValue",A)}}),o=f.computed(()=>({...r.options,headerToolbar:!1})),a=f.reactive({currentView:(x=r.options)==null?void 0:x.initialView,viewTitle:"",rightLabel:"今日",timeType:"month",currentDate:null}),d=f.ref(null),c=A=>{var D;(D=d.value)==null||D.changeView(A),a.currentView=A,u()},u=()=>{var D;const A=(D=d.value)==null?void 0:D.getView();a.viewTitle=A==null?void 0:A.title},g=()=>{var A;(A=d.value)==null||A.prev(),u()},h=()=>{var A;(A=d.value)==null||A.next(),u()},v=()=>{var A;(A=d.value)==null||A.today(),u()},b=A=>a.currentView===A,E=f.ref(null),S={createDefaultForm:()=>({title:"",allDay:!1,type:1,startDate:"",endDate:"",startTime:"",endTime:"",location:"",remark:""}),close:()=>{w.value=!1},customSubmit:A=>{var B,J;let D={...A,id:void 0,allDay:m.form.allDay,start:(B=m.selectInfo)==null?void 0:B.startStr,end:(J=m.selectInfo)==null?void 0:J.endStr};S.operation(D),S.close()},operation:A=>{var D;m.operation==="add"?i("submitAdd",A):(A.id=(D=m.editEvent)==null?void 0:D.id,i("submitUpdate",A))},submit:async()=>{var D,B;if(s){i("submit");return}if(!m.form.title){Tt.ElMessage.info("标题不能为空");return}if(!m.form.allDay&&(!m.form.startTime||!m.form.endTime)){Tt.ElMessage.info("时间不能为空");return}let A={id:void 0,title:m.form.title,allDay:m.form.allDay,start:(D=m.selectInfo)==null?void 0:D.startStr,end:(B=m.selectInfo)==null?void 0:B.endStr,extendedProps:{...m.form}};if(A.allDay)A.start=F.ikDate.toDate(m.form.startDate),A.end=F.ikDate.toDate(m.form.endDate);else{const J=F.ikDate.toDate(m.form.startDate),se=F.ikDate.toDateTime(m.form.startTime).substring(10),Wn=F.ikDate.toDateTime(m.form.endTime).substring(10);A.start=`${J}${se}`,A.end=`${J}${Wn}`,A.extendedProps.startTime=A.start,A.extendedProps.endTime=A.end}S.operation(A),S.close()},reset:()=>{var A;m.form=S.createDefaultForm(),(A=E.value)==null||A.clearValidate()},edit:()=>{m.editable=!0,m.title="编辑日程"},cancelEdit:()=>{m.editable=!1,m.title="日程信息"},del:()=>{T(m.clickInfo)}},m=f.reactive({operation:"update",selectInfo:{},editEvent:void 0,title:"",visible:!1,allDay:!1,form:S.createDefaultForm(),editable:!1,clickInfo:null}),w=f.computed({get:()=>m.visible,set:A=>{m.visible=A}}),R=A=>{var D;if(m.form.allDay=A.allDay,m.selectInfo=A,S.reset(),A.view.type=="dayGridMonth"){let B=A.end.getTime()-864e5;a.timeType="month",m.form.startDate=F.ikDate.toYMD(A.start),m.form.endDate=F.ikDate.toYMD(new Date(B)),m.form.allDay=!0}else A.view.type=="timeGridWeek"?a.timeType="week":A.view.type=="timeGridDay"&&(a.timeType="day"),m.form.startDate=F.ikDate.toYMD(A.start),m.form.endDate=F.ikDate.toYMD(A.start),m.form.startTime=F.ikDate.toDateTime(A.start),m.form.endTime=F.ikDate.toDateTime(A.end);(D=d.value)==null||D.unselect(),f.nextTick(()=>{m.title="新建日程",m.operation="add",m.editable=!0,w.value=!0,i("editOpen",JSON.parse(JSON.stringify(m)))})},N=A=>{m.title="日程信息",m.operation="update",m.clickInfo=A,m.editEvent=A.event;debugger;m.editEvent.allDay?(m.form.startDate=m.editEvent.startStr,m.form.endDate=m.editEvent.startStr):(m.form.startDate=m.editEvent.startStr,m.form.startTime=m.editEvent.start,m.form.endTime=m.editEvent.end),m.form.title=m.editEvent.title,m.form.allDay=m.editEvent.allDay,$s.copyValue(m.form,m.editEvent.extendedProps),S.cancelEdit(),w.value=!0,i("editOpen",JSON.parse(JSON.stringify(m)))},T=A=>{Tt.ElMessageBox.confirm(`你确定删除事件 ${A.event.title} ?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{S.close(),i("submitDelete",A.event.id)})};return e({customSubmit:A=>S.customSubmit(A)}),f.onMounted(()=>{u()}),(A,D)=>{const B=f.resolveComponent("el-button"),J=f.resolveComponent("el-button-group"),se=f.resolveComponent("el-icon"),Wn=f.resolveComponent("el-space"),Gs=f.resolveComponent("el-input"),Gn=f.resolveComponent("el-form-item"),qs=f.resolveComponent("el-date-picker"),Ys=f.resolveComponent("el-time-picker"),yh=f.resolveComponent("el-checkbox"),bh=f.resolveComponent("el-form"),Eh=f.resolveComponent("el-dialog");return f.openBlock(),f.createElementBlock("div",sh,[f.createElementVNode("div",lh,[f.createElementVNode("div",oh,[f.createVNode(Wn,{style:{"flex-shrink":"0"},size:24},{default:f.withCtx(()=>[f.createVNode(J,null,{default:f.withCtx(()=>[f.createVNode(B,{onClick:D[0]||(D[0]=V=>c("dayGridMonth")),type:b("dayGridMonth")?"primary":""},{default:f.withCtx(()=>D[12]||(D[12]=[f.createTextVNode("月")])),_:1},8,["type"]),f.createVNode(B,{onClick:D[1]||(D[1]=V=>c("timeGridWeek")),type:b("timeGridWeek")?"primary":""},{default:f.withCtx(()=>D[13]||(D[13]=[f.createTextVNode("周")])),_:1},8,["type"]),f.createVNode(B,{onClick:D[2]||(D[2]=V=>c("timeGridDay")),type:b("timeGridDay")?"primary":""},{default:f.withCtx(()=>D[14]||(D[14]=[f.createTextVNode("日")])),_:1},8,["type"])]),_:1}),f.createElementVNode("span",ah,f.toDisplayString(a.viewTitle),1),f.createVNode(J,{style:{"flex-shrink":"0"}},{default:f.withCtx(()=>[f.createVNode(B,{onClick:g},{default:f.withCtx(()=>[f.createVNode(se,null,{default:f.withCtx(()=>[f.createVNode(f.unref(If))]),_:1})]),_:1}),f.createVNode(B,{onClick:v},{default:f.withCtx(()=>D[15]||(D[15]=[f.createTextVNode("今天")])),_:1}),f.createVNode(B,{onClick:h},{default:f.withCtx(()=>[f.createVNode(se,null,{default:f.withCtx(()=>[f.createVNode(f.unref(Of))]),_:1})]),_:1})]),_:1})]),_:1}),D[16]||(D[16]=f.createElementVNode("div",{class:"ik-schedule__header-right"},null,-1))]),f.createElementVNode("div",ch,[f.createVNode(f.unref(Jf),{removable:A.removable,onDateSelect:R,onDeleteClick:T,onEventClick:N,ref_key:"_refCalendar",ref:d,options:o.value,modelValue:l.value,"onUpdate:modelValue":D[3]||(D[3]=V=>l.value=V)},null,8,["removable","options","modelValue"])])]),f.createCommentVNode(" 新建/修改对话框 "),f.createVNode(Eh,{width:"700px",modelValue:w.value,"onUpdate:modelValue":D[11]||(D[11]=V=>w.value=V)},{header:f.withCtx(()=>[f.createElementVNode("div",null,[f.createElementVNode("span",dh,f.toDisplayString(m.title),1),m.operation==="update"?(f.openBlock(),f.createElementBlock("span",uh,[m.editable?(f.openBlock(),f.createBlock(f.unref(Fs),{key:1,style:{"margin-left":"4px"},name:"iksvg_qiehuan-daohang",onClick:S.cancelEdit},null,8,["onClick"])):(f.openBlock(),f.createBlock(f.unref(Fs),{key:0,style:{"margin-left":"4px"},name:"iksvg_xiugai",onClick:S.edit},null,8,["onClick"]))])):f.createCommentVNode("v-if",!0)])]),footer:f.withCtx(()=>[f.createElementVNode("span",ph,[f.renderSlot(A.$slots,"form-footer",{},()=>[f.createElementVNode("span",null,[f.createVNode(B,{onClick:S.close},{default:f.withCtx(()=>D[19]||(D[19]=[f.createTextVNode("取消")])),_:1},8,["onClick"]),f.createVNode(B,{onClick:S.del},{default:f.withCtx(()=>D[20]||(D[20]=[f.createTextVNode("删除")])),_:1},8,["onClick"]),f.createVNode(B,{type:"primary",onClick:S.submit},{default:f.withCtx(()=>D[21]||(D[21]=[f.createTextVNode("确定")])),_:1},8,["onClick"])])],!0)])]),default:f.withCtx(()=>[f.renderSlot(A.$slots,"form",{},()=>[f.createVNode(bh,{ref_key:"_editFormRef",ref:E,model:m.form,disabled:!m.editable},{default:f.withCtx(()=>[f.createVNode(Gn,null,{default:f.withCtx(()=>[f.createVNode(se,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(Pf))]),_:1}),f.createVNode(Gs,{modelValue:m.form.title,"onUpdate:modelValue":D[4]||(D[4]=V=>m.form.title=V),placeholder:"请输入标题",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1}),f.createVNode(Gn,null,{default:f.withCtx(()=>[f.createVNode(se,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(Vf))]),_:1}),f.createElementVNode("div",fh,[f.createVNode(qs,{disabled:"",modelValue:m.form.startDate,"onUpdate:modelValue":D[5]||(D[5]=V=>m.form.startDate=V),type:"date",placeholder:"开始日期",style:f.normalizeStyle({width:m.form.allDay?"45%":"90%"})},null,8,["modelValue","style"]),m.form.allDay?(f.openBlock(),f.createElementBlock("div",gh,[D[18]||(D[18]=f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),f.createVNode(qs,{disabled:"",modelValue:m.form.endDate,"onUpdate:modelValue":D[8]||(D[8]=V=>m.form.endDate=V),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(f.openBlock(),f.createElementBlock("div",hh,[f.createVNode(Ys,{modelValue:m.form.startTime,"onUpdate:modelValue":D[6]||(D[6]=V=>m.form.startTime=V),type:"datetime",placeholder:"开始时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),D[17]||(D[17]=f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),f.createVNode(Ys,{modelValue:m.form.endTime,"onUpdate:modelValue":D[7]||(D[7]=V=>m.form.endTime=V),type:"datetime",placeholder:"结束时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),f.createVNode(yh,{modelValue:m.form.allDay,"onUpdate:modelValue":D[9]||(D[9]=V=>m.form.allDay=V),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])]),_:1}),f.createVNode(Gn,null,{default:f.withCtx(()=>[f.createVNode(se,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(Uf))]),_:1}),f.createVNode(Gs,{type:"textarea",modelValue:m.form.remark,"onUpdate:modelValue":D[10]||(D[10]=V=>m.form.remark=V),placeholder:"描述",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])],!0)]),_:3},8,["modelValue"])])}}}),Ws=kt(Fn(vh,[["__scopeId","data-v-e308f501"]]));Q.IkSchedule=Ws,Q.default=Ws,Object.defineProperties(Q,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|