iking-web-ui-pro 0.0.2 → 0.0.3

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.
Files changed (53) hide show
  1. package/dist/IKApprovalProcess/index.es.js +1 -1
  2. package/dist/IKApprovalProcess/index.umd.js +1 -1
  3. package/dist/IKApprovalProcess/style.css +1 -1
  4. package/dist/IKApprovalProcessDetail/style.css +1 -1
  5. package/dist/IKCalendar/index.es.js +1 -1
  6. package/dist/IKCalendar/index.umd.js +1 -1
  7. package/dist/IKCalendar/style.css +1 -1
  8. package/dist/IKDetailPreviewFiles/index.es.js +244 -1424
  9. package/dist/IKDetailPreviewFiles/index.umd.js +1 -1
  10. package/dist/IKDetailPreviewFiles/style.css +1 -1
  11. package/dist/IKExpandCollapse/index.es.js +143 -1323
  12. package/dist/IKExpandCollapse/index.umd.js +1 -1
  13. package/dist/IKExpandCollapse/style.css +1 -1
  14. package/dist/IKSearch/index.es.js +1 -1
  15. package/dist/IKSearch/index.umd.js +1 -1
  16. package/dist/IKSearch/style.css +1 -1
  17. package/dist/IKVerticalStepBar/index.es.js +190 -1370
  18. package/dist/IKVerticalStepBar/index.umd.js +3 -3
  19. package/dist/IKVerticalStepBar/style.css +1 -1
  20. package/dist/IkBaseDialog/index.es.js +234 -0
  21. package/dist/IkBaseDialog/index.umd.js +1 -0
  22. package/dist/IkBaseDialog/style.css +1 -0
  23. package/dist/IkBtnSetting/index.es.js +336 -1517
  24. package/dist/IkBtnSetting/index.umd.js +1 -1
  25. package/dist/IkBtnSetting/style.css +1 -1
  26. package/dist/IkIconPicker/index.es.js +2885 -1449
  27. package/dist/IkIconPicker/index.umd.js +5 -1
  28. package/dist/IkIconPicker/style.css +1 -1
  29. package/dist/IkPageFull/index.es.js +1678 -2859
  30. package/dist/IkPageFull/index.umd.js +3 -3
  31. package/dist/IkPageFull/style.css +1 -1
  32. package/dist/IkPicker/index.es.js +1 -1
  33. package/dist/IkPicker/index.umd.js +1 -1
  34. package/dist/IkPicker/style.css +1 -1
  35. package/dist/IkPickerUser/index.es.js +255 -237
  36. package/dist/IkPickerUser/index.umd.js +1 -1
  37. package/dist/IkPickerUser/style.css +1 -1
  38. package/dist/IkSchedule/index.es.js +2181 -3362
  39. package/dist/IkSchedule/index.umd.js +1 -1
  40. package/dist/IkSchedule/style.css +1 -1
  41. package/dist/IkSvgIcon/index.es.js +125 -1310
  42. package/dist/IkSvgIcon/index.umd.js +1 -1
  43. package/dist/IkUploadFile/index.es.js +955 -596
  44. package/dist/IkUploadFile/index.umd.js +1 -1
  45. package/dist/IkUploadFile/style.css +1 -1
  46. package/dist/IkUploadImage/index.es.js +113 -110
  47. package/dist/IkUploadImage/index.umd.js +1 -1
  48. package/dist/IkUploadImage/style.css +1 -1
  49. package/dist/index.es.js +12914 -11169
  50. package/dist/index.umd.js +10 -6
  51. package/dist/style.css +1 -1
  52. package/package.json +3 -3
  53. package/dist/IkSvgIcon/style.css +0 -1
@@ -1 +1 @@
1
- (function(te,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("iking-utils"),require("element-plus"),require("vuedraggable"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils","element-plus","vuedraggable","axios"],a):(te=typeof globalThis<"u"?globalThis:te||self,a(te.index={},te.Vue,te["iking-utils"],te["element-plus"],te.vuedraggable,te.axios))})(this,function(te,a,j,D,Ml,Nl){"use strict";const Cr=(t,e)=>{if(t.install=n=>{for(const r of[t,...Object.values(e??{})])n.component(r.name,r)},e)for(const[n,r]of Object.entries(e))t[n]=r;return t};/*! Element Plus Icons Vue v2.3.1 */var Il=a.defineComponent({name:"Calendar",__name:"calendar",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.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"})]))}}),Ol=Il,Bl=a.defineComponent({name:"Clock",__name:"clock",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.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"}),a.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"}),a.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),Vl=Bl,Hl=a.defineComponent({name:"Close",__name:"close",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Pl=Hl,Ll=a.defineComponent({name:"DeleteFilled",__name:"delete-filled",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.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"})]))}}),zl=Ll,Ul=a.defineComponent({name:"Location",__name:"location",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),a.createElementVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),jl=Ul,Fl=a.defineComponent({name:"User",__name:"user",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),Wl=Fl;const ne=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};var pt,x,_r,wr,He,Ae,Ar,Dr,Rr,gt={},kr=[],Gl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ve(t,e){for(var n in e)t[n]=e[n];return t}function Tr(t){var e=t.parentNode;e&&e.removeChild(t)}function m(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?pt.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 mt(t,l,r,i,null)}function mt(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??++_r};return i==null&&x.vnode!=null&&x.vnode(s),s}function Q(){return{current:null}}function P(t){return t.children}function $l(t,e,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in e||vt(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]||vt(t,s,e[s],n[s],r)}function xr(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Gl.test(e)?n:n+"px"}function vt(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||xr(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||xr(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?Nr:Mr,s):t.removeEventListener(e,s?Nr:Mr,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 Mr(t){He=!0;try{return this.l[t.type+!1](x.event?x.event(t):t)}finally{He=!1}}function Nr(t){He=!0;try{return this.l[t.type+!0](x.event?x.event(t):t)}finally{He=!1}}function X(t,e){this.props=t,this.context=e}function Ze(t,e){if(e==null)return t.__?Ze(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"?Ze(t):null}function Ir(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 Ir(t)}}function ql(t){He?setTimeout(t):Dr(t)}function Kt(t){(!t.__d&&(t.__d=!0)&&Ae.push(t)&&!yt.__r++||Ar!==x.debounceRendering)&&((Ar=x.debounceRendering)||ql)(yt)}function yt(){var t,e,n,r,i,s,l,o;for(Ae.sort(function(c,u){return c.__v.__b-u.__v.__b});t=Ae.shift();)t.__d&&(e=Ae.length,r=void 0,i=void 0,l=(s=(n=t).__v).__e,(o=n.__P)&&(r=[],(i=ve({},s)).__v=s.__v+1,en(o,s,i,n.__n,o.ownerSVGElement!==void 0,s.__h!=null?[l]:null,r,l??Ze(s),s.__h),Pr(r,s),s.__e!=l&&Ir(s)),Ae.length>e&&Ae.sort(function(c,u){return c.__v.__b-u.__v.__b}));yt.__r=0}function Or(t,e,n,r,i,s,l,o,c,u){var d,g,p,h,y,f,v,C=r&&r.__k||kr,_=C.length;for(n.__k=[],d=0;d<e.length;d++)if((h=n.__k[d]=(h=e[d])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?mt(null,h,null,null,h):Array.isArray(h)?mt(P,{children:h},null,null,null):h.__b>0?mt(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(p=C[d])===null||p&&h.key==p.key&&h.type===p.type)C[d]=void 0;else for(g=0;g<_;g++){if((p=C[g])&&h.key==p.key&&h.type===p.type){C[g]=void 0;break}p=null}en(t,h,p=p||gt,i,s,l,o,c,u),y=h.__e,(g=h.ref)&&p.ref!=g&&(v||(v=[]),p.ref&&v.push(p.ref,null,h),v.push(g,h.__c||y,h)),y!=null?(f==null&&(f=y),typeof h.type=="function"&&h.__k===p.__k?h.__d=c=Br(h,c,t):c=Vr(t,h,p,C,y,c),typeof n.type=="function"&&(n.__d=c)):c&&p.__e==c&&c.parentNode!=t&&(c=Ze(p))}for(n.__e=f,d=_;d--;)C[d]!=null&&(typeof n.type=="function"&&C[d].__e!=null&&C[d].__e==n.__d&&(n.__d=Hr(r).nextSibling),zr(C[d],C[d]));if(v)for(d=0;d<v.length;d++)Lr(v[d],v[++d],v[++d])}function Br(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"?Br(r,e,n):Vr(n,r,r,i,r.__e,e));return e}function bt(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){bt(n,e)}):e.push(t)),e}function Vr(t,e,n,r,i,s){var l,o,c;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,c=0;(o=o.nextSibling)&&c<r.length;c+=1)if(o==i)break e;t.insertBefore(i,s),l=s}return l!==void 0?l:i.nextSibling}function Hr(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=Hr(n)))return r}return null}function en(t,e,n,r,i,s,l,o,c){var u,d,g,p,h,y,f,v,C,_,R,k,B,I,w,N=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(c=n.__h,o=e.__e=n.__e,e.__h=null,s=[o]),(u=x.__b)&&u(e);try{e:if(typeof N=="function"){if(v=e.props,C=(u=N.contextType)&&r[u.__c],_=u?C?C.props.value:u.__:r,n.__c?f=(d=e.__c=n.__c).__=d.__E:("prototype"in N&&N.prototype.render?e.__c=d=new N(v,_):(e.__c=d=new X(v,_),d.constructor=N,d.render=Ql),C&&C.sub(d),d.props=v,d.state||(d.state={}),d.context=_,d.__n=r,g=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),N.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=ve({},d.__s)),ve(d.__s,N.getDerivedStateFromProps(v,d.__s))),p=d.props,h=d.state,d.__v=e,g)N.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(N.getDerivedStateFromProps==null&&v!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(v,_),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(v,d.__s,_)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(q){q&&(q.__=e)}),R=0;R<d._sb.length;R++)d.__h.push(d._sb[R]);d._sb=[],d.__h.length&&l.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(v,d.__s,_),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,h,y)})}if(d.context=_,d.props=v,d.__P=t,k=x.__r,B=0,"prototype"in N&&N.prototype.render){for(d.state=d.__s,d.__d=!1,k&&k(e),u=d.render(d.props,d.state,d.context),I=0;I<d._sb.length;I++)d.__h.push(d._sb[I]);d._sb=[]}else do d.__d=!1,k&&k(e),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++B<25);d.state=d.__s,d.getChildContext!=null&&(r=ve(ve({},r),d.getChildContext())),g||d.getSnapshotBeforeUpdate==null||(y=d.getSnapshotBeforeUpdate(p,h)),w=u!=null&&u.type===P&&u.key==null?u.props.children:u,Or(t,Array.isArray(w)?w:[w],e,n,r,i,s,l,o,c),d.base=e.__e,e.__h=null,d.__h.length&&l.push(d),f&&(d.__E=d.__=null),d.__e=!1}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Yl(n.__e,e,n,r,i,s,l,c);(u=x.diffed)&&u(e)}catch(q){e.__v=null,(c||s!=null)&&(e.__e=o,e.__h=!!c,s[s.indexOf(o)]=null),x.__e(q,e,n)}}function Pr(t,e){x.__c&&x.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){x.__e(r,n.__v)}})}function Yl(t,e,n,r,i,s,l,o){var c,u,d,g=n.props,p=e.props,h=e.type,y=0;if(h==="svg"&&(i=!0),s!=null){for(;y<s.length;y++)if((c=s[y])&&"setAttribute"in c==!!h&&(h?c.localName===h:c.nodeType===3)){t=c,s[y]=null;break}}if(t==null){if(h===null)return document.createTextNode(p);t=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),s=null,o=!1}if(h===null)g===p||o&&t.data===p||(t.data=p);else{if(s=s&&pt.call(t.childNodes),u=(g=n.props||gt).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!o){if(s!=null)for(g={},y=0;y<t.attributes.length;y++)g[t.attributes[y].name]=t.attributes[y].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===t.innerHTML)||(t.innerHTML=d&&d.__html||""))}if($l(t,p,g,i,o),d)e.__k=[];else if(y=e.props.children,Or(t,Array.isArray(y)?y:[y],e,n,r,i&&h!=="foreignObject",s,l,s?s[0]:n.__k&&Ze(n,0),o),s!=null)for(y=s.length;y--;)s[y]!=null&&Tr(s[y]);o||("value"in p&&(y=p.value)!==void 0&&(y!==t.value||h==="progress"&&!y||h==="option"&&y!==g.value)&&vt(t,"value",y,g.value,!1),"checked"in p&&(y=p.checked)!==void 0&&y!==t.checked&&vt(t,"checked",y,g.checked,!1))}return t}function Lr(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){x.__e(r,n)}}function zr(t,e,n){var r,i;if(x.unmount&&x.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Lr(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){x.__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]&&zr(r[i],e,n||typeof t.type!="function");n||t.__e==null||Tr(t.__e),t.__=t.__e=t.__d=void 0}function Ql(t,e,n){return this.constructor(t,n)}function Xe(t,e,n){var r,i,s;x.__&&x.__(t,e),i=(r=typeof n=="function")?null:n&&n.__k||e.__k,s=[],en(e,t=(!r&&n||e).__k=m(P,null,[t]),i||gt,gt,e.ownerSVGElement!==void 0,!r&&n?[n]:i?null:e.firstChild?pt.call(e.childNodes):null,s,!r&&n?n:i?i.__e:e.firstChild,r),Pr(s,t)}function Zl(t,e){var n={__c:e="__cC"+Rr++,__: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,Kt(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}pt=kr.slice,x={__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}},_r=0,wr=function(t){return t!=null&&t.constructor===void 0},He=!1,X.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ve({},this.state),typeof t=="function"&&(t=t(ve({},n),this.props)),t&&ve(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Kt(this))},X.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Kt(this))},X.prototype.render=P,Ae=[],Dr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,yt.__r=0,Rr=0;var le,tn,Ur,jr=[],nn=[],Fr=x.__b,Wr=x.__r,Gr=x.diffed,$r=x.__c,qr=x.unmount;function Xl(){for(var t;t=jr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Et),t.__H.__h.forEach(rn),t.__H.__h=[]}catch(e){t.__H.__h=[],x.__e(e,t.__v)}}x.__b=function(t){le=null,Fr&&Fr(t)},x.__r=function(t){Wr&&Wr(t);var e=(le=t.__c).__H;e&&(tn===le?(e.__h=[],le.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=nn,n.__N=n.i=void 0})):(e.__h.forEach(Et),e.__h.forEach(rn),e.__h=[])),tn=le},x.diffed=function(t){Gr&&Gr(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(jr.push(e)!==1&&Ur===x.requestAnimationFrame||((Ur=x.requestAnimationFrame)||Jl)(Xl)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==nn&&(n.__=n.__V),n.i=void 0,n.__V=nn})),tn=le=null},x.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Et),n.__h=n.__h.filter(function(r){return!r.__||rn(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],x.__e(r,n.__v)}}),$r&&$r(t,e)},x.unmount=function(t){qr&&qr(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Et(r)}catch(i){e=i}}),n.__H=void 0,e&&x.__e(e,n.__v))};var Yr=typeof requestAnimationFrame=="function";function Jl(t){var e,n=function(){clearTimeout(r),Yr&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Yr&&(e=requestAnimationFrame(n))}function Et(t){var e=le,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),le=e}function rn(t){var e=le;t.__c=t.__(),le=e}function Kl(t,e){for(var n in e)t[n]=e[n];return t}function Qr(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 Zr(t){this.props=t}(Zr.prototype=new X).isPureReactComponent=!0,Zr.prototype.shouldComponentUpdate=function(t,e){return Qr(this.props,t)||Qr(this.state,e)};var Xr=x.__b;x.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Xr&&Xr(t)};var eo=x.__e;x.__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)}eo(t,e,n,r)};var Jr=x.unmount;function Kr(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=Kl({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return Kr(r,e,n)})),t}function ei(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return ei(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 sn(){this.__u=0,this.t=null,this.__b=null}function ti(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function St(){this.u=null,this.o=null}x.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Jr&&Jr(t)},(sn.prototype=new X).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=ti(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 u=r.state.__a;r.__v.__k[0]=ei(u,u.__c.__P,u.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.t.pop();)d.forceUpdate()}},c=e.__h===!0;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(l,l)},sn.prototype.componentWillUnmount=function(){this.t=[]},sn.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]=Kr(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&m(P,null,t.fallback);return i&&(i.__h=null),[m(P,null,e.__a?null:t.children),i]};var ni=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 to(t){return this.getChildContext=function(){return t.context},t.children}function no(t){var e=this,n=t.i;e.componentWillUnmount=function(){Xe(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)}}),Xe(m(to,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function ro(t,e){var n=m(no,{__v:t,i:e});return n.containerInfo=e,n}(St.prototype=new X).__a=function(t){var e=this,n=ti(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),ni(e,t,r)):i()};n?n(s):s()}},St.prototype.render=function(t){this.u=null,this.o=new Map;var e=bt(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},St.prototype.componentDidUpdate=St.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){ni(t,n,e)})};var io=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,so=/^(?: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]/,lo=typeof document<"u",oo=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};X.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(X.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var ri=x.event;function ao(){}function co(){return this.cancelBubble}function uo(){return this.defaultPrevented}x.event=function(t){return ri&&(t=ri(t)),t.persist=ao,t.isPropagationStopped=co,t.isDefaultPrevented=uo,t.nativeEvent=t};var ii={configurable:!0,get:function(){return this.class}},si=x.vnode;x.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];lo&&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)&&!oo(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&&so.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=bt(n.children).forEach(function(o){o.props.selected=r.value.indexOf(o.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=bt(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&&(ii.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",ii))}t.$$typeof=io,si&&si(t)};var li=x.__r;x.__r=function(t){li&&li(t),t.__c};const oi=[],ln=new Map;function on(t){oi.push(t),ln.forEach(e=>{ci(e,t)})}function fo(t){t.isConnected&&ai(t.getRootNode())}function ai(t){let e=ln.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=po();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)}ln.set(t,e),ho(e)}}function ho(t){for(const e of oi)ci(t,e)}function ci(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 an;function po(){return an===void 0&&(an=go()),an}function go(){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"&&ai(document);var mo=':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;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';on(mo);class cn{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 dn(t){t.parentNode&&t.parentNode.removeChild(t)}function W(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(vo(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function vo(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function yo(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 bo=/(top|left|right|bottom|width|height)$/i;function Je(t,e){for(let n in e)di(t,n,e[n])}function di(t,e,n){n==null?t.style[e]="":typeof n=="number"&&bo.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function ui(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 fi=0;function Ct(){return fi+=1,"fc-dom-"+fi}function _t(t){t.preventDefault()}function Eo(t,e){return n=>{let r=W(n.target,t);r&&e.call(r,n,r)}}function hi(t,e,n,r){let i=Eo(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function So(t,e,n,r){let i;return hi(t,"mouseover",e,(s,l)=>{if(l!==i){i=l,n(s,l);let o=c=>{i=null,r(c,l),l.removeEventListener("mouseleave",o)};l.addEventListener("mouseleave",o)}})}const pi=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Co(t,e){let n=r=>{e(r),pi.forEach(i=>{t.removeEventListener(i,n)})};pi.forEach(r=>{t.addEventListener(r,n)})}function gi(t){return Object.assign({onClick:t},mi(t))}function mi(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let vi=0;function De(){return vi+=1,String(vi)}function un(){document.body.classList.add("fc-not-allowed")}function fn(){document.body.classList.remove("fc-not-allowed")}function _o(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",_t)}function wo(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",_t)}function Ao(t){t.addEventListener("contextmenu",_t)}function Do(t){t.removeEventListener("contextmenu",_t)}function Ro(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 ko(t,e,n){let r,i;for(r=0;r<n.length;r+=1)if(i=To(t,e,n[r]),i)return i;return 0}function To(t,e,n){return n.func?n.func(t,e):xo(t[n.field],e[n.field])*(n.order||1)}function xo(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 Pe(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function Ke(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),t):n}function Mo(t,e){return t-e}function wt(t){return t%1===0}function No(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 yi=["years","months","days","milliseconds"],Io=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function O(t,e){return typeof t=="string"?Oo(t):typeof t=="object"&&t?bi(t):typeof t=="number"?bi({[e||"milliseconds"]:t}):null}function Oo(t){let e=Io.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 bi(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 Bo(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function hn(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function Vo(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function Ho(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function Po(t){return Le(t)/365}function Lo(t){return Le(t)/30}function Le(t){return re(t)/864e5}function re(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function pn(t,e){let n=null;for(let r=0;r<yi.length;r+=1){let i=yi[r];if(e[i]){let s=t[i]/e[i];if(!wt(s)||n!==null&&n!==s)return null;n=s}else if(t[i])return null}return n}function gn(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 ye(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 zo=["sun","mon","tue","wed","thu","fri","sat"];function Ei(t,e){let n=Ee(t);return n[2]+=e*7,Z(n)}function G(t,e){let n=Ee(t);return n[2]+=e,Z(n)}function be(t,e){let n=Ee(t);return n[6]+=e,Z(n)}function Uo(t,e){return Re(t,e)/7}function Re(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function jo(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Fo(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function Wo(t,e){return(e.valueOf()-t.valueOf())/1e3}function Go(t,e){let n=H(t),r=H(e);return{years:0,months:0,days:Math.round(Re(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function $o(t,e){let n=At(t,e);return n!==null&&n%7===0?n/7:null}function At(t,e){return Se(t)===Se(e)?Math.round(Re(t,e)):null}function H(t){return Z([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function qo(t){return Z([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function Yo(t){return Z([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function Qo(t){return Z([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function Zo(t,e,n){let r=t.getUTCFullYear(),i=mn(t,r,e,n);if(i<1)return mn(t,r-1,e,n);let s=mn(t,r+1,e,n);return s>=1?Math.min(i,s):i}function mn(t,e,n,r){let i=Z([e,0,1+Xo(e,n,r)]),s=H(t),l=Math.round(Re(i,s));return Math.floor(l/7)+1}function Xo(t,e,n){let r=7+e-n;return-((7+Z([t,0,r]).getUTCDay()-e)%7)+r-1}function Si(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Ci(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 Ee(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Z(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function _i(t){return!isNaN(t.valueOf())}function Se(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function wi(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",yn(e,!0)))),r}function vn(t){return t.toISOString().replace(/T.*$/,"")}function Jo(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function Ko(t){return Pe(t.getUTCHours(),2)+":"+Pe(t.getUTCMinutes(),2)+":"+Pe(t.getUTCSeconds(),2)}function yn(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+Pe(i,2)}:${Pe(s,2)}`:`GMT${n}${i}${s?`:${Pe(s,2)}`:""}`}function M(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!ye(r,s)){n&&n(i);let l=t.apply(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}function Dt(t,e,n){let r,i;return s=>{if(!r)i=t.call(this,s);else if(!oe(r,s)){n&&n(i);let l=t.call(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}const Ai={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Rt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},kt=/\s*([ap])\.?m\.?/i,ea=/,/g,ta=/\s+/g,na=/\u200e/g,ra=/UTC|GMT/;class ia{constructor(e){let n={},r={},i=0;for(let s in e)s in Ai?(r[s]=e[s],i=Math.max(Ai[s],i)):(n[s]=e[s],s in Rt&&(i=Math.max(Rt[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=M(Di)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:l}=this,o=da(e.marker,n.marker,r.calendarSystem);if(!o)return this.format(e,r);let c=o;c>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(c=1);let u=this.format(e,r),d=this.format(n,r);if(u===d)return u;let g=ua(s,c),p=Di(g,l,r),h=p(e),y=p(n),f=fa(u,h,d,y),v=l.separator||i||r.defaultSeparator||"";return f?f.before+h+v+y+f.after:u+v+d}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 Di(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>yn(i.timeZoneOffset):r===0&&e.week?i=>ca(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):sa(t,e,n)}function sa(t,e,n){t=Object.assign({},t),e=Object.assign({},e),la(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 c=o.format(l);return oa(c,s,t,e,n)}}function la(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 oa(t,e,n,r,i){return t=t.replace(na,""),n.timeZoneName==="short"&&(t=aa(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":yn(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(ea,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(kt,"").trim():r.meridiem==="narrow"?t=t.replace(kt,(s,l)=>l.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(kt,(s,l)=>`${l.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(kt,s=>s.toLocaleLowerCase())),t=t.replace(ta," "),t=t.trim(),t}function aa(t,e){let n=!1;return t=t.replace(ra,()=>(n=!0,e)),n||(t+=` ${e}`),t}function ca(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 da(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:Se(t)!==Se(e)?1:0}function ua(t,e){let n={};for(let r in t)(!(r in Rt)||Rt[r]<=e)&&(n[r]=t[r]);return n}function fa(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),c=0;for(;c<n.length;){let u=n.indexOf(r,c);if(u===-1)break;let d=n.substr(0,u);c=u+r.length;let g=n.substr(c);if(l===d&&o===g)return{before:l,after:o}}}return null}function Ri(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 Tt(t,e,n,r){let i=Ri(t,n.calendarSystem),s=e?Ri(e,n.calendarSystem):null;return{date:i,start:i,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class ha{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,Tt(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,Tt(e,n,r,i))}}class pa{constructor(e){this.func=e}format(e,n,r){return this.func(Tt(e,null,n,r))}formatRange(e,n,r,i){return this.func(Tt(e,n,r,i))}}function z(t){return typeof t=="object"&&t?new ia(t):typeof t=="string"?new ha(t):typeof t=="function"?new pa(t):null}const ki={navLinkDayClick:E,navLinkWeekClick:E,duration:O,bootstrapFontAwesome:E,buttonIcons:E,customButtons:E,defaultAllDayEventDuration:O,defaultTimedEventDuration:O,nextDayThreshold:O,scrollTime:O,scrollTimeReset:Boolean,slotMinTime:O,slotMaxTime:O,dayPopoverFormat:z,slotDuration:O,snapDuration:O,headerToolbar:E,footerToolbar:E,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:z,dayHeaderClassNames:E,dayHeaderContent:E,dayHeaderDidMount:E,dayHeaderWillUnmount:E,dayCellClassNames:E,dayCellContent:E,dayCellDidMount:E,dayCellWillUnmount:E,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:E,weekNumbers:Boolean,weekNumberClassNames:E,weekNumberContent:E,weekNumberDidMount:E,weekNumberWillUnmount:E,editable:Boolean,viewClassNames:E,viewDidMount:E,viewWillUnmount:E,nowIndicator:Boolean,nowIndicatorClassNames:E,nowIndicatorContent:E,nowIndicatorDidMount:E,nowIndicatorWillUnmount:E,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:E,locale:E,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:E,eventOrder:Ro,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:E,contentHeight:E,direction:String,weekNumberFormat:z,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:E,initialDate:E,now:E,eventDataTransform:E,stickyHeaderDates:E,stickyFooterScrollbar:E,viewHeight:E,defaultAllDay:Boolean,eventSourceFailure:E,eventSourceSuccess:E,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:E,eventConstraint:E,eventAllow:E,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:E,eventContent:E,eventDidMount:E,eventWillUnmount:E,selectConstraint:E,selectOverlap:E,selectAllow:E,droppable:Boolean,unselectCancel:String,slotLabelFormat:E,slotLaneClassNames:E,slotLaneContent:E,slotLaneDidMount:E,slotLaneWillUnmount:E,slotLabelClassNames:E,slotLabelContent:E,slotLabelDidMount:E,slotLabelWillUnmount:E,dayMaxEvents:E,dayMaxEventRows:E,dayMinWidth:Number,slotLabelInterval:O,allDayText:String,allDayClassNames:E,allDayContent:E,allDayDidMount:E,allDayWillUnmount:E,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:z,rerenderDelay:Number,moreLinkText:E,moreLinkHint:E,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:E,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:O,hiddenDays:E,fixedWeekCount:Boolean,validRange:E,visibleRange:E,titleFormat:E,eventInteractive:Boolean,noEventsText:String,viewHint:E,navLinkHint:E,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:E,moreLinkClassNames:E,moreLinkContent:E,moreLinkDidMount:E,moreLinkWillUnmount:E,monthStartFormat:z,handleCustomRendering:E,customRenderingMetaMap:E,customRenderingReplaces:Boolean},et={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"}},Ti={datesSet:E,eventsSet:E,eventAdd:E,eventChange:E,eventRemove:E,windowResize:E,eventClick:E,eventMouseEnter:E,eventMouseLeave:E,select:E,unselect:E,loading:E,_unmount:E,_beforeprint:E,_afterprint:E,_noEventDrop:E,_noEventResize:E,_resize:E,_scrollRequest:E},xi={buttonText:E,buttonHints:E,views:E,plugins:E,initialEvents:E,events:E,eventSources:E},ke={headerToolbar:Te,footerToolbar:Te,buttonText:Te,buttonHints:Te,buttonIcons:Te,dateIncrement:Te,plugins:xt,events:xt,eventSources:xt,resources:xt};function Te(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?oe(t,e):t===e}function xt(t,e){return Array.isArray(t)&&Array.isArray(e)?ye(t,e):t===e}const ga={type:String,component:E,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:E,usesMinMaxTime:Boolean,classNames:E,content:E,didMount:E,willUnmount:E};function bn(t){return Sn(t,ke)}function En(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 E(t){return t}const{hasOwnProperty:Mt}=Object.prototype;function Sn(t,e){let n={};if(e){for(let r in e)if(e[r]===Te){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]=Sn(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 xe(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function ce(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function Mi(t){let e={};for(let n of t)e[n]=!0;return e}function Cn(t){let e=[];for(let n in t)e.push(t[n]);return e}function oe(t,e){if(t===e)return!0;for(let n in t)if(Mt.call(t,n)&&!(n in e))return!1;for(let n in e)if(Mt.call(e,n)&&t[n]!==e[n])return!1;return!0}const ma=/^on[A-Z]/;function va(t,e){const n=_n(t,e);for(let r of n)if(!ma.test(r))return!1;return!0}function _n(t,e){let n=[];for(let r in t)Mt.call(t,r)&&(r in e||n.push(r));for(let r in e)Mt.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function wn(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&ya(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function ya(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function ba(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 Ni={};function Ea(t,e){Ni[t]=e}function Sa(t){return new Ni[t]}class Ca{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Z(e)}markerToArray(e){return Ee(e)}}Ea("gregory",Ca);const _a=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function wa(t){let e=_a.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(_i(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 Aa{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=Sa(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()):Z(Si(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=Z(e)),n===null||!_i(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=wa(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 Se(e)===Se(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 Se(e)===Se(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=$o(e,n),r!==null?{unit:"week",value:r}:(r=At(e,n),r!==null?{unit:"day",value:r}:(r=jo(e,n),wt(r)?{unit:"hour",value:r}:(r=Fo(e,n),wt(r)?{unit:"minute",value:r}:(r=Wo(e,n),wt(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/Po(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/Lo(r):r.days&&(i=At(e,n),i!==null)?i/Le(r):(n.valueOf()-e.valueOf())/re(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?H(e):n==="hour"?qo(e):n==="minute"?Yo(e):n==="second"?Qo(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)):Zo(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=be(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)),wi(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?Z(Si(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):Z(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-Ci(Ee(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Ee(e)):null}toDate(e,n){return this.timeZone==="local"?Ci(Ee(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(Ee(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class tt{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)}`:""}}tt.prototype.classes={},tt.prototype.iconClasses={},tt.prototype.baseIconClass="",tt.prototype.iconOverridePrefix="";function Ii(t){t();let e=x.debounceRendering,n=[];function r(i){n.push(i)}for(x.debounceRendering=r,Xe(m(Da,{}),document.createElement("div"));n.length;)n.shift()();x.debounceRendering=e}class Da extends X{render(){return m("div",{})}componentDidMount(){this.setState({})}}function Oi(t){let e=Zl(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 Ra{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 de=Oi({});function ka(t,e,n,r,i,s,l,o,c,u,d,g,p){return{dateEnv:i,options:n,pluginHooks:l,emitter:u,dispatch:o,getCurrentData:c,calendarApi:d,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",addResizeHandler(h){u.on("_resize",h)},removeResizeHandler(h){u.off("_resize",h)},createScrollResponder(h){return new Ra(h,u,O(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:g,unregisterInteractiveComponent:p}}class Me extends X{shouldComponentUpdate(e,n){return this.debug&&console.log(_n(e,this.props),_n(n,this.state)),!wn(this.props,e,this.propEquality)||!wn(this.state,n,this.stateEquality)}safeSetState(e){wn(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Me.addPropsEquality=Ta,Me.addStateEquality=xa,Me.contextType=de,Me.prototype.propEquality={},Me.prototype.stateEquality={};class V extends Me{}V.contextType=de;function Ta(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function xa(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function ue(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class An extends V{constructor(){super(...arguments),this.id=De(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!Dn(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&ue(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:s,renderProps:l}=e,o=Bi(e,[],this.handleEl);let c=!1,u,d=[],g;if(i!=null){const p=typeof i=="function"?i(l,m):i;if(p===!0)c=!0;else{const h=p&&typeof p=="object";h&&"html"in p?o.dangerouslySetInnerHTML={__html:p.html}:h&&"domNodes"in p?d=Array.prototype.slice.call(p.domNodes):(h?wr(p):typeof p!="function")?u=p:g=p}}else c=!Dn(e.generatorName,r);return c&&s&&(u=s(l)),this.queuedDomNodes=d,this.currentGeneratorMeta=g,m(e.elTag,o,u)}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(Ma)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!ye(e,n)){n.forEach(dn);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}An.addPropsEquality({elClasses:ye,elStyle:oe,elAttrs:va,renderProps:oe});function Dn(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Bi(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 Ma(t){return!!t}const Vi=Oi(0);class J extends X{constructor(){super(...arguments),this.InnerContent=Na.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(ue(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=Ia(e.classNameGenerator,e.renderProps);if(e.children){const r=Bi(e,n,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?m(e.elTag,r,i):i}else return m(An,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}))}}J.contextType=Vi;function Na(t,e){const n=t.props;return m(An,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function Ia(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class Nt extends V{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return m(J,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Hi(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function Hi(t){return[`fc-${t.type}-view`,"fc-view"]}function Oa(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 Pi(t,e){let n=[],{start:r}=e,i,s;for(t.sort(Ba),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 Ba(t,e){return t.start.valueOf()-e.start.valueOf()}function Ne(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 Va(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 Rn(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function It(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function fe(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function Ha(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 Li(t){let e=Math.floor(Re(t.start,t.end))||1,n=H(t.start),r=G(n,e);return{start:n,end:r}}function zi(t,e=O(0)){let n=null,r=null;if(t.end){r=H(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=re(e)&&(r=G(r,1))}return t.start&&(n=H(t.start),r&&r<=n&&(r=G(n,1))),{start:n,end:r}}function ze(t,e,n,r){return r==="year"?O(n.diffWholeYears(t,e),"year"):r==="month"?O(n.diffWholeMonths(t,e),"month"):Go(t,e)}function Pa(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function La(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):nt(t.now,e)}function nt(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class Ui{constructor(e){this.props=e,this.nowDate=nt(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,c,u,d;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=Ha(e,s)),l=this.buildCurrentRangeInfo(e,n),o=/^(year|month|week|day)$/.test(l.unit),c=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,o),c=this.trimHiddenDays(c),u=c,i.showNonCurrentDates||(u=Ne(u,l.range)),u=this.adjustActiveRange(u),u=Ne(u,s),d=Rn(l.range,s),fe(c,e)||(e=c.start),{currentDate:e,validRange:s,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:o,activeRange:u,renderRange:c,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:d,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=gn(i).unit,l=this.buildRangeFromDuration(e,n,i,s)),{duration:i,unit:s,range:l}}getFallbackDuration(){return O({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:l,end:o}=e;return r&&(Le(i)<0&&(l=H(l),l=n.add(l,i)),Le(s)>1&&(o=H(o),o=G(o,-1),o=n.add(o,s))),{start:l,end:o}}buildRangeFromDuration(e,n,r,i){let{dateEnv:s,dateAlignment:l}=this.props,o,c,u;if(!l){let{dateIncrement:g}=this.props;g&&re(g)<re(r)?l=gn(g).unit:l=i}Le(r)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,n),o=H(o));function d(){o=s.startOf(e,l),c=s.add(o,r),u={start:o,end:c}}return d(),this.trimHiddenDays(u)||(e=this.skipHiddenDays(e,n),d()),u}buildRangeFromDayCount(e,n,r){let{dateEnv:i,dateAlignment:s}=this.props,l=0,o=e,c;s&&(o=i.startOf(o,s)),o=H(o),o=this.skipHiddenDays(o,n),c=o;do c=G(c,1),this.isHiddenDay(c)||(l+=1);while(l<r);return{start:o,end:c}}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)?O(1,r):e||O({days:1}))}refineRange(e){if(e){let n=Oa(e,this.props.dateEnv);return n&&(n=zi(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=G(e,n);return e}}function kn(t,e,n,r){return{instanceId:De(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function za(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 Ie(t,e,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:l,instances:o}=t;o=xe(o,c=>!l[c.defId].recurringDef);for(let c in l){let u=l[c];if(u.recurringDef){let{duration:d}=u.recurringDef;d||(d=u.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let g=Ua(u,d,e,r,i.recurringTypes);for(let p of g){let h=kn(c,{start:p,end:r.add(p,d)});o[h.instanceId]=h}}}return{defs:l,instances:o}}function Ua(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(H)),l}const Ot={id:String,groupId:String,title:String,url:String,interactive:Boolean},ji={start:E,end:E,date:E,allDay:Boolean},ja=Object.assign(Object.assign(Object.assign({},Ot),ji),{extendedProps:E});function Fi(t,e,n,r,i=Tn(n),s,l){let{refined:o,extra:c}=Wi(t,n,i),u=Wa(e,n),d=za(o,u,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let p=xn(o,c,e?e.sourceId:"",d.allDay,!!d.duration,n,s);return p.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:p,instance:null}}let g=Fa(o,u,n,r);if(g){let p=xn(o,c,e?e.sourceId:"",g.allDay,g.hasEnd,n,s),h=kn(p.defId,g.range,g.forcedStartTzo,g.forcedEndTzo);return l&&p.publicId&&l[p.publicId]&&(h.instanceId=l[p.publicId]),{def:p,instance:h}}return null}function Wi(t,e,n=Tn(e)){return En(t,n)}function Tn(t){return Object.assign(Object.assign(Object.assign({},Vt),ja),t.pluginHooks.eventRefiners)}function xn(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]:"")||De(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:Ht(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let c of s.pluginHooks.eventDefMemberAdders)Object.assign(o,c(t));return Object.freeze(o.ui.classNames),Object.freeze(o.extendedProps),o}function Fa(t,e,n,r){let{allDay:i}=t,s,l=null,o=!1,c,u=null,d=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(d),s)l=s.marker;else if(!r)return null;return t.end!=null&&(c=n.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!c||c.isTimeUnspecified)),i&&l&&(l=H(l)),c&&(u=c.marker,i&&(u=H(u)),l&&u<=l&&(u=null)),u?o=!0:r||(o=n.options.forceEventDuration||!1,u=n.dateEnv.add(l,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:o,range:{start:l,end:u},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:c?c.forcedTzo:null}}function Wa(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function rt(t,e,n,r,i,s){let l=K(),o=Tn(n);for(let c of t){let u=Fi(c,e,n,r,o,i,s);u&&Mn(u,l)}return l}function Mn(t,e=K()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function Nn(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=Bt(t,s=>Ga(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return K()}function Ga(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function K(){return{defs:{},instances:{}}}function In(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Bt(t,e){let n=xe(t.defs,e),r=xe(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function $a(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 qa(t,e){return Array.isArray(t)?rt(t,null,e,!0):typeof t=="object"&&t?rt([t],null,e,!0):t!=null?String(t):null}function Gi(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const Vt={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:E,overlap:E,allow:E,className:Gi,classNames:Gi,color:String,backgroundColor:String,borderColor:String,textColor:String},Ya={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Ht(t,e){let n=qa(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 $i(t){return t.reduce(Qa,Ya)}function Qa(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 Za={id:String,defaultAllDay:Boolean,url:String,format:String,events:E,eventDataTransform:E,success:E,failure:E};function qi(t,e,n=Yi(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}=En(r,n),l=Xa(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:De(),sourceDefId:l.sourceDefId,meta:l.meta,ui:Ht(i,e),extendedProps:s}}return null}function Yi(t){return Object.assign(Object.assign(Object.assign({},Vt),Za),t.pluginHooks.eventSourceRefiners)}function Xa(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 Ja(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return Ka(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return ec(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return tc(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return In(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Ie(t,r.activeRange,i):t;case"REMOVE_EVENTS":return $a(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Ji(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Bt(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return K();default:return t}}function Ka(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let l=rt(Qi(i,e,s),e,s);return r&&(l=Ie(l,r,s)),In(Ji(t,e.sourceId),l)}return t}function ec(t,e,n,r,i){const{defIdMap:s,instanceIdMap:l}=rc(t);let o=rt(Qi(n,e,i),e,i,!1,s,l);return Ie(o,r,i)}function Qi(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=Zi(t,i)),r&&(t=Zi(t,r)),t}function Zi(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 tc(t,e,n,r){return n&&(e=Ie(e,n,r)),In(t,e)}function Xi(t,e,n){let{defs:r}=t,i=ce(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 Ji(t,e){return Bt(t,n=>n.sourceId!==e)}function nc(t,e){return{defs:t.defs,instances:xe(t.instances,n=>!e[n.instanceId])}}function rc(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:c}=o;c&&(i[c]=s)}return{defIdMap:r,instanceIdMap:i}}class Pt{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){ic(this.handlers,e,n)}off(e,n){sc(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 ic(t,e,n){(t[e]||(t[e]=[])).push(n)}function sc(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const lc={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function oc(t,e){return rt(ac(t),null,e)}function ac(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({},lc),n)),e}function Ki(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},On(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function cc(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function On(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,_c(t,e.dateEnv)),n}function es(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=H(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function Bn(t,e,n,r){let i=Lt(t.defs,e),s=K();for(let l in t.defs){let o=t.defs[l];s.defs[l]=dc(o,i[l],n,r)}for(let l in t.instances){let o=t.instances[l],c=s.defs[o.defId];s.instances[l]=uc(o,c,i[o.defId],n,r)}return s}function dc(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 uc(t,e,n,r,i){let{dateEnv:s}=i,l=r.standardProps&&r.standardProps.allDay===!0,o=r.standardProps&&r.standardProps.hasEnd===!1,c=Object.assign({},t);return l&&(c.range=Li(c.range)),r.datesDelta&&n.startEditable&&(c.range={start:s.add(c.range.start,r.datesDelta),end:s.add(c.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(c.range={start:s.add(c.range.start,r.startDelta),end:c.range.end}),r.endDelta&&n.durationEditable&&(c.range={start:c.range.start,end:s.add(c.range.end,r.endDelta)}),o&&(c.range={start:c.range.start,end:es(e.allDay,c.range.start,i)}),e.allDay&&(c.range={start:H(c.range.start),end:H(c.range.end)}),c.range.end<c.range.start&&(c.range.end=es(e.allDay,c.range.start,i)),c}class Ue{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 L{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in ji)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=Ot[e](n),this.mutate({standardProps:{publicId:n}});else if(e in Ot)n=Ot[e](n),this.mutate({standardProps:{[e]:n}});else if(e in Vt){let r=Vt[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=ze(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=ze(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 c=this._instance.range;r.allDay===!0&&(c=Li(c));let u=ze(c.start,l,i,r.granularity);if(o){let d=ze(c.end,o,i,r.granularity);Bo(u,d)?this.mutate({datesDelta:u,standardProps:s}):this.mutate({startDelta:u,endDelta:d,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:u,standardProps:s})}}moveStart(e){let n=O(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=O(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=O(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=z(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=Nn(s,n.instanceId);l=Bn(l,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let c=new L(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:c,event:this,relatedEvents:Oe(l,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=ts(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 Ue(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 ts(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function Oe(t,e,n){let{defs:r,instances:i}=t,s=[],l=n?n.instanceId:"";for(let o in i){let c=i[o],u=r[c.defId];c.instanceId!==l&&s.push(new L(e,u,c))}return s}function ns(t,e,n,r){let i={},s={},l={},o=[],c=[],u=Lt(t.defs,e);for(let d in t.defs){let g=t.defs[d];u[g.defId].display==="inverse-background"&&(g.groupId?(i[g.groupId]=[],l[g.groupId]||(l[g.groupId]=g)):s[d]=[])}for(let d in t.instances){let g=t.instances[d],p=t.defs[g.defId],h=u[p.defId],y=g.range,f=!p.allDay&&r?zi(y,r):y,v=Ne(f,n);v&&(h.display==="inverse-background"?p.groupId?i[p.groupId].push(v):s[g.defId].push(v):h.display!=="none"&&(h.display==="background"?o:c).push({def:p,ui:h,instance:g,range:v,isStart:f.start&&f.start.valueOf()===v.start.valueOf(),isEnd:f.end&&f.end.valueOf()===v.end.valueOf()}))}for(let d in i){let g=i[d],p=Pi(g,n);for(let h of p){let y=l[d],f=u[y.defId];o.push({def:y,ui:f,instance:null,range:h,isStart:!1,isEnd:!1})}}for(let d in s){let g=s[d],p=Pi(g,n);for(let h of p)o.push({def:t.defs[d],ui:u[d],instance:null,range:h,isStart:!1,isEnd:!1})}return{bg:o,fg:c}}function fc(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function rs(t,e){t.fcSeg=e}function je(t){return t.fcSeg||t.parentNode.fcSeg||null}function Lt(t,e){return ce(t,n=>is(n,e))}function is(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),$i(n)}function ss(t,e){let n=t.map(hc);return n.sort((r,i)=>ko(r,i,e)),n.map(r=>r._seg)}function hc(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 pc(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 gc(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function mc(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function ls(t,e,n,r,i,s,l){let{dateEnv:o,options:c}=n,{displayEventTime:u,displayEventEnd:d}=c,g=t.eventRange.def,p=t.eventRange.instance;u==null&&(u=r!==!1),d==null&&(d=i!==!1);let h=p.range.start,y=p.range.end,f=s||t.start||t.eventRange.range.start,v=l||t.end||t.eventRange.range.end,C=H(h).valueOf()===H(f).valueOf(),_=H(be(y,-1)).valueOf()===H(be(v,-1)).valueOf();return u&&!g.allDay&&(C||_)?(f=C?h:f,v=_?y:v,d&&g.hasEnd?o.formatRange(f,v,e,{forcedStartTzo:s?null:p.forcedStartTzo,forcedEndTzo:l?null:p.forcedEndTzo}):o.format(f,e,{forcedTzo:s?null:p.forcedStartTzo})):""}function Ce(t,e,n){let r=t.eventRange.range;return{isPast:r.end<(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&fe(e,r.start)}}function vc(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 os(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function as(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?mi(c=>{s.trigger("eventClick",{el:c.target,event:new L(e,n,r),jsEvent:c,view:e.viewApi})}):{}}const yc={start:E,end:E,allDay:Boolean};function bc(t,e,n){let r=Ec(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 Ec(t,e){let{refined:n,extra:r}=En(t,yc),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 Sc(t,e){return Va(t.range,e.range)&&t.allDay===e.allDay&&Cc(t,e)}function Cc(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 _c(t,e){return Object.assign(Object.assign({},ds(t.range,e,t.allDay)),{allDay:t.allDay})}function cs(t,e,n){return Object.assign(Object.assign({},ds(t,e,n)),{timeZone:e.timeZone})}function ds(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 wc(t,e,n){let r=Wi({editable:!1},n),i=xn(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:is(i,e),instance:kn(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function Ac(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 us extends Error{constructor(e,n){super(e),this.response=n}}function Dc(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 us("Failure parsing JSON",i)});throw new us("Request failed",i)})}let Vn;function fs(){return Vn==null&&(Vn=Rc()),Vn}function Rc(){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 kc extends V{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options: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 fs()||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 Fe{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Tc(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function Hn(t){return{[t.component.uid]:t}}const Pn={};class xc{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:nt(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=O(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),z(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),z(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=bc(r,i.dateEnv,O({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),Ki(s,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),cc(e,n))}addEvent(e,n){if(e instanceof L){let l=e._def,o=e._instance;return this.getCurrentData().eventStore.defs[l.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Mn({def:l,instance:o})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof Ue)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=Cn(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=Fi(e,i,r,!1);if(s){let l=new L(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Mn(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:ts(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 L(n,l,null);for(let o in i){let c=i[o];if(c.defId===l.defId)return new L(n,l,c)}}}return null}getEvents(){let e=this.getCurrentData();return Oe(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 Ue(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 Ue(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof Ue)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=qi(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Ue(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=O(e);n&&this.trigger("_scrollRequest",{time:n})}}function Mc(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function hs(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 Nc(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 Ic(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function Oc(t,e){return{left:t.left-e.left,top:t.top-e.top}}const Ln=K();class Bc{constructor(){this.getKeysForEventDefs=M(this._getKeysForEventDefs),this.splitDateSelection=M(this._splitDateSpan),this.splitEventStore=M(this._splitEventStore),this.splitIndividualUi=M(this._splitIndividualUi),this.splitEventDrag=M(this._splitInteraction),this.splitEventResize=M(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),c=this.splitEventResize(e.eventResize),u={};this.eventUiBuilders=ce(n,(d,g)=>this.eventUiBuilders[g]||M(Vc));for(let d in n){let g=n[d],p=l[d]||Ln,h=this.eventUiBuilders[d];u[d]={businessHours:g.businessHours||e.businessHours,dateSelection:i[d]||null,eventStore:p,eventUiBases:h(e.eventUiBases[""],g.ui,s[d]),eventSelection:p.instances[e.eventSelection]?e.eventSelection:"",eventDrag:o[d]||null,eventResize:c[d]||null}}return u}_splitDateSpan(e){let n={};if(e){let r=this.getKeysForDateSpan(e);for(let i of r)n[i]=e}return n}_getKeysForEventDefs(e){return ce(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]=K()),s[o].defs[l]=r[l];for(let l in i){let o=i[l];for(let c of n[o.defId])s[c]&&(s[c].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]||Ln,mutatedEvents:s[o]||Ln,isEvent:e.isEvent})};for(let o in r)l(o);for(let o in s)l(o)}return n}}function Vc(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let i={"":$i(r)};return n&&Object.assign(i,n),i}function ps(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&!fe(r.activeRange,t)),isOther:!!(r&&!fe(r.currentRange,t)),isToday:!!(e&&fe(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function zn(t,e){let n=["fc-day",`fc-day-${zo[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 Hc=z({year:"numeric",month:"long",day:"numeric"}),Pc=z({week:"long"});function zt(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:l}=t;let o=i.format(e,n==="week"?Pc:Hc);if(s.navLinks){let c=i.toDate(e);const u=d=>{let g=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof g=="function"?g.call(l,i.toDate(e),d):(typeof g=="string"&&(n=g),l.zoomTo(e,n))};return Object.assign({title:Ke(s.navLinkHint,[o,c],o),"data-navlink":""},r?gi(u):{onClick:u})}return{"aria-label":o}}let Un=null;function Lc(){return Un===null&&(Un=zc()),Un}function zc(){let t=document.createElement("div");Je(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 dn(t),n}let jn;function Uc(){return jn||(jn=jc()),jn}function jc(){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=gs(t);return document.body.removeChild(t),e}function gs(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Fc(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=gs(t),c=o.y-r-i,u=o.x-s-l,d={borderLeft:r,borderRight:i,borderTop:s,borderBottom:l,scrollbarBottom:u,scrollbarLeft:0,scrollbarRight:0};return Lc()&&n.direction==="rtl"?d.scrollbarLeft=c:d.scrollbarRight=c,e&&(d.paddingLeft=parseInt(n.paddingLeft,10)||0,d.paddingRight=parseInt(n.paddingRight,10)||0,d.paddingTop=parseInt(n.paddingTop,10)||0,d.paddingBottom=parseInt(n.paddingBottom,10)||0),d}function Wc(t,e=!1,n){let r=n?t.getBoundingClientRect():Fn(t),i=Fc(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 Fn(t){let e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function Gc(t){let e=ms(t),n=t.getBoundingClientRect();for(let r of e){let i=hs(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function ms(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 We{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 Ut(this.tops||[],e.tops||[])&&Ut(this.bottoms||[],e.bottoms||[])&&Ut(this.lefts||[],e.lefts||[])&&Ut(this.rights||[],e.rights||[])}}function Ut(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 Wn{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 $c extends Wn{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 qc extends Wn{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(e){window.scroll(window.pageXOffset,e)}setScrollLeft(e){window.scroll(e,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class ae extends V{constructor(){super(...arguments),this.uid=De()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!W(e,".fc-event-mirror")}isValidDateDownEl(e){return!W(e,".fc-event:not(.fc-bg-event)")&&!W(e,".fc-more-link")&&!W(e,"a[data-navlink]")&&!W(e,".fc-popover")}}class vs{constructor(e=n=>n.thickness){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);return this.isInsertionValid(r,e)?(this.insertEntryAt(e,r),1):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){return this.allowReslicing&&e.touchingEntry?this.splitEntry(n,e.touchingEntry,r):(r.push(n),0)}splitEntry(e,n,r){let i=0,s=[],l=e.span,o=n.span;return l.start<o.start&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:l.start,end:o.start}},s)),l.end>o.end&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.end,end:l.end}},s)),i?(r.push({index:e.index,thickness:e.thickness,span:$n(o,l)},...s),i):(r.push(e),0)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(qn(i,n.level,n.levelCoord),qn(r,n.level,[e])):qn(r[n.level],n.lateral,e),this.stackCnts[Be(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,l=n.length,o=0,c=-1,u=-1,d=null,g=0;for(let y=0;y<l;y+=1){let f=n[y];if(!i&&f>=o+this.getEntryThickness(e))break;let v=r[y],C,_=Yn(v,e.span.start,Gn),R=_[0]+_[1];for(;(C=v[R])&&C.span.start<e.span.end;){let k=f+this.getEntryThickness(C);k>o&&(o=k,d=C,c=y,u=R),k===o&&(g=Math.max(g,s[Be(C)]+1)),R+=1}}let p=0;if(d)for(p=c+1;p<l&&n[p]<o;)p+=1;let h=-1;return p<l&&n[p]===o&&(h=Yn(r[p],e.span.end,Gn)[0]),{touchingLevel:c,touchingLateral:u,touchingEntry:d,stackCnt:g,levelCoord:o,level:p,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 c of l)i.push(Object.assign(Object.assign({},c),{thickness:this.getEntryThickness(c),levelCoord:o}))}return i}}function Gn(t){return t.span.end}function Be(t){return t.index+":"+t.span.start}function Yc(t){let e=[];for(let n of t){let r=[],i={span:n.span,entries:[n]};for(let s of e)$n(s.span,i.span)?i={entries:s.entries.concat(i.entries),span:Qc(s.span,i.span)}:r.push(s);r.push(i),e=r}return e}function Qc(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function $n(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 qn(t,e,n){t.splice(e,0,n)}function Yn(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 Zc{constructor(e,n){this.emitter=new Pt}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Qn={};function Xc(t,e){return!t||e>10?z({weekday:"short"}):e>1?z({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):z({weekday:"long"})}const ys="fc-col-header-cell";function bs(t){return t.text}class Jc extends V{render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:s}=this,{date:l,dateProfile:o}=s,c=ps(l,s.todayRange,null,o),u=[ys].concat(zn(c,r)),d=e.format(l,s.dayHeaderFormat),g=!c.isDisabled&&s.colCnt>1?zt(this.context,l):{},p=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:i},s.extraRenderProps),{text:d}),c);return m(J,{elTag:"th",elClasses:u,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":c.isDisabled?void 0:vn(l)},s.extraDataAttrs),renderProps:p,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:bs,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},h=>m("div",{className:"fc-scrollgrid-sync-inner"},!c.isDisabled&&m(h,{elTag:"a",elAttrs:g,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const Kc=z({weekday:"long"});class ed extends V{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=this.context,l=G(new Date(2592e5),e.dow),o={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=n.format(l,e.dayHeaderFormat),u=Object.assign(Object.assign(Object.assign(Object.assign({date:l},o),{view:i}),e.extraRenderProps),{text:c});return m(J,{elTag:"th",elClasses:[ys,...zn(o,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:bs,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},d=>m("div",{className:"fc-scrollgrid-sync-inner"},m(d,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(l,Kc)}})))}}class it extends X{constructor(e,n){super(e,n),this.initialNowDate=nt(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=be(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,e.unit),s=n.dateEnv.add(i,O(1,e.unit)),l=s.valueOf()-r.valueOf();return l=Math.min(1e3*60*60*24,l),{currentState:{nowDate:i,todayRange:Es(i)},nextState:{nowDate:s,todayRange:Es(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)}}it.contextType=de;function Es(t){let e=H(t),n=G(e,1);return{start:e,end:n}}class Ss extends V{constructor(){super(...arguments),this.createDayHeaderFormatter=M(td)}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 m(it,{unit:"day"},(o,c)=>m("tr",{role:"row"},s&&s("day"),n.map(u=>i?m(Jc,{key:u.toISOString(),date:u,dateProfile:r,todayRange:c,colCnt:n.length,dayHeaderFormat:l}):m(ed,{key:u.getUTCDay(),dow:u.getUTCDay(),dayHeaderFormat:l}))))}}function td(t,e,n){return t||Xc(e,n)}class Cs{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=G(r,1);this.dates=l,this.indices=s,this.cnt=l.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(G(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(Re(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class _s{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 c=Math.floor(o/n),u=Math.min((c+1)*n,l+1);i.push({row:c,firstCol:o%n,lastCol:(u-1)%n,isStart:r.isStart&&o===s,isEnd:r.isEnd&&u-1===l}),o=u}}return i}}class ws{constructor(){this.sliceBusinessHours=M(this._sliceBusinessHours),this.sliceDateSelection=M(this._sliceDateSpan),this.sliceEventStore=M(this._sliceEventStore),this.sliceEventDrag=M(this._sliceInteraction),this.sliceEventResize=M(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:be(e,1)},allDay:!1},n,r,{},i,...s)}_sliceBusinessHours(e,n,r,i,...s){return e?this._sliceEventStore(Ie(e,jt(n,!!r),i),{},n,r,...s).bg:[]}_sliceEventStore(e,n,r,i,...s){if(e){let l=ns(e,n,jt(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=ns(e.mutatedEvents,n,jt(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=jt(n,!!r),c=Ne(e.range,o);if(c){e=Object.assign(Object.assign({},e),{range:c});let u=wc(e,i,s),d=this.sliceRange(e.range,...l);for(let g of d)g.eventRange=u;return d}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:G(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 jt(t,e){let n=t.activeRange;return e?n:{start:be(n.start,t.slotMinTime.milliseconds),end:be(n.end,t.slotMaxTime.milliseconds-864e5)}}function As(t,e,n){let{instances:r}=t.mutatedEvents;for(let i in r)if(!It(e.validRange,r[i].range))return!1;return Ds({eventDrag:t},n)}function nd(t,e,n){return It(e.validRange,t.range)?Ds({dateSelection:t},n):!1}function Ds(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||rd)(r,e)}function rd(t,e,n={},r){return!(t.eventDrag&&!id(t,e,n,r)||t.dateSelection&&!sd(t,e,n,r))}function id(t,e,n,r){let i=e.getCurrentData(),s=t.eventDrag,l=s.mutatedEvents,o=l.defs,c=l.instances,u=Lt(o,s.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(u=ce(u,r));let d=nc(t.eventStore,s.affectedEvents.instances),g=d.defs,p=d.instances,h=Lt(g,t.eventUiBases);for(let y in c){let f=c[y],v=f.range,C=u[f.defId],_=o[f.defId];if(!Rs(C.constraints,v,d,t.businessHours,e))return!1;let{eventOverlap:R}=e.options,k=typeof R=="function"?R:null;for(let I in p){let w=p[I];if(Rn(v,w.range)&&(h[w.defId].overlap===!1&&s.isEvent||C.overlap===!1||k&&!k(new L(e,g[w.defId],w),new L(e,_,f))))return!1}let B=i.eventStore;for(let I of C.allows){let w=Object.assign(Object.assign({},n),{range:f.range,allDay:_.allDay}),N=B.defs[_.defId],q=B.instances[y],ie;if(N?ie=new L(e,N,q):ie=new L(e,_),!I(On(w,e),ie))return!1}}return!0}function sd(t,e,n,r){let i=t.eventStore,s=i.defs,l=i.instances,o=t.dateSelection,c=o.range,{selectionConfig:u}=e.getCurrentData();if(r&&(u=r(u)),!Rs(u.constraints,c,i,t.businessHours,e))return!1;let{selectOverlap:d}=e.options,g=typeof d=="function"?d:null;for(let p in l){let h=l[p];if(Rn(c,h.range)&&(u.overlap===!1||g&&!g(new L(e,s[h.defId],h),null)))return!1}for(let p of u.allows){let h=Object.assign(Object.assign({},n),o);if(!p(On(h,e),null))return!1}return!0}function Rs(t,e,n,r,i){for(let s of t)if(!od(ld(s,e,n,r,i),e))return!1;return!0}function ld(t,e,n,r,i){return t==="businessHours"?Zn(Ie(r,e,i)):typeof t=="string"?Zn(Bt(n,s=>s.groupId===t)):typeof t=="object"&&t?Zn(Ie(t,e,i)):[]}function Zn(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function od(t,e){for(let n of t)if(It(n,e))return!0;return!1}const Ft=/^(visible|hidden)$/;class ad extends V{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,ue(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")),m("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(Ft.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(Ft.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 Ft.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Ft.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class he{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 ba(this.currentMap,e,n,r)}getAll(){return Cn(this.currentMap)}}function cd(t){let e=yo(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,No(r));return Math.ceil(n)}function ks(t,e){return t.liquid&&e.liquid}function dd(t,e){return e.maxHeight!=null||ks(t,e)}function ud(t,e,n,r){let{expandRows:i}=n;return typeof e.content=="function"?e.content(n):m("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,m(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function fd(t,e){return ye(t,e,oe)}function hd(t,e){let n=[];for(let r of t){let i=r.span||1;for(let s=0;s<i;s+=1)n.push(m("col",{style:{width:r.width==="shrink"?pd(e):r.width||"",minWidth:r.minWidth||""}}))}return m("colgroup",{},...n)}function pd(t){return t??4}function gd(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function md(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function vd(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 Xn(t){return m("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Wt(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function Ts(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class Jn extends V{constructor(){super(...arguments),this.processCols=M(e=>e,fd),this.renderMicroColGroup=M(hd),this.scrollerRefs=new he,this.scrollerElRefs=new he(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=md(e.liquid,r);e.collapsibleWidth&&o.push("fc-scrollgrid-collapsible");let c=i.length,u=0,d,g=[],p=[],h=[];for(;u<c&&(d=i[u]).type==="header";)g.push(this.renderSection(d,l,!0)),u+=1;for(;u<c&&(d=i[u]).type==="body";)p.push(this.renderSection(d,l,!1)),u+=1;for(;u<c&&(d=i[u]).type==="footer";)h.push(this.renderSection(d,l,!0)),u+=1;let y=!fs();const f={role:"rowgroup"};return m("table",{role:"grid",className:o.join(" "),style:{height:e.height}},!!(!y&&g.length)&&m("thead",f,...g),!!(!y&&p.length)&&m("tbody",f,...p),!!(!y&&h.length)&&m("tfoot",f,...h),y&&m("tbody",f,...g,...p,...h))}renderSection(e,n,r){return"outerContent"in e?m(P,{key:e.key},e.outerContent):m("tr",{key:e.key,role:"presentation",className:vd(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:c}=this.state,u=dd(s,e),d=ks(s,e),g=s.liquid?l?"scroll":u?"auto":"hidden":"visible",p=e.key,h=ud(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&o[p]!==void 0?o[p]:null,clientHeight:c[p]!==void 0?c[p]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return m(i?"th":"td",{ref:r.elRef,role:"presentation"},m("div",{className:`fc-scroller-harness${d?" fc-scroller-harness-liquid":""}`},m(ad,{ref:this.scrollerRefs.createRef(p),elRef:this.scrollerElRefs.createRef(p),overflowY:g,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:d,liquidIsAbsolute:!0},h)))}_handleScrollerEl(e,n){let r=yd(this.props.sections,n);r&&ue(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return gd(this.props.cols)?cd(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Uc(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,s={},l={};for(let o in n.currentMap){let c=n.currentMap[o];if(c&&c.needsYScrolling()){i=!0;break}}for(let o of this.props.sections){let c=o.key,u=r.currentMap[c];if(u){let d=u.parentNode;s[c]=Math.floor(d.getBoundingClientRect().width-(i?e.y:0)),l[c]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:l}}}Jn.addStateEquality({scrollerClientWidths:oe,scrollerClientHeights:oe});function yd(t,e){for(let n of t)if(n.key===e)return n;return null}class Kn extends V{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&rs(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 L(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&pc(i,n),isStartResizable:!e.disableResizing&&gc(i,n),isEndResizable:!e.disableResizing&&mc(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 m(J,Object.assign({},e,{elRef:this.handleEl,elClasses:[...vc(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&&rs(this.el,this.props.seg)}}class xs extends V{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{ui:s}=i.eventRange,l=r.eventTimeFormat||e.defaultTimeFormat,o=ls(i,l,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return m(Kn,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:as(i,n),defaultGenerator:bd,timeText:o}),(c,u)=>m(P,null,m(c,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:u.textColor}}),!!u.isStartResizable&&m("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!u.isEndResizable&&m("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function bd(t){return m("div",{className:"fc-event-main-frame"},t.timeText&&m("div",{className:"fc-event-time"},t.timeText),m("div",{className:"fc-event-title-container"},m("div",{className:"fc-event-title fc-sticky"},t.event.title||m(P,null," "))))}const er=t=>m(de.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return m(J,Object.assign({},t,{elTag:t.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),Ed=z({day:"numeric"});class tr extends V{constructor(){super(...arguments),this.refineRenderProps=Dt(Sd)}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 m(J,Object.assign({},e,{elClasses:[...zn(i,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":vn(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 nr(t){return!!(t.dayCellContent||Dn("dayCellContent",t))}function Sd(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=ps(e,t.todayRange,null,r),l=t.showDayNumber?n.format(e,i?t.monthStartFormat:Ed):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:l}),t.extraRenderProps)}class Ms extends V{render(){let{props:e}=this,{seg:n}=e;return m(Kn,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Cd,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 Cd(t){let{title:e}=t.event;return e&&m("div",{className:"fc-event-title"},t.event.title)}function Ns(t){return m("div",{className:`fc-${t}`})}const Is=t=>m(de.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 m(J,Object.assign({},t,{renderProps:{num:l,text:o,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:_d,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function _d(t){return t.text}const rr=10;class wd extends V{constructor(){super(...arguments),this.state={titleId:Ct()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&ue(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=ui(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 ro(m("div",Object.assign({},r.extraAttrs,{id:r.id,className:s.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),m("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},m("span",{className:"fc-popover-title",id:i.titleId},r.title),m("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),m("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=Gc(n);if(s){let l=i.getBoundingClientRect(),o=r?W(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,c=e?s.right-l.width:s.left;o=Math.max(o,rr),c=Math.min(c,document.documentElement.clientWidth-rr-l.width),c=Math.max(c,rr);let u=i.offsetParent.getBoundingClientRect();Je(i,{top:o-u.top,left:c-u.left})}}}class Ad extends ae{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 m(tr,{elRef:this.handleRootEl,date:i,dateProfile:l,todayRange:s},(c,u,d)=>m(wd,{elRef:d.ref,id:r.id,title:o,extraClassNames:["fc-more-popover"].concat(d.className||[]),extraAttrs:d,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},nr(e)&&m(c,{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 Os extends V{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Ct()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&ue(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,s=Bs(n).start;function l(o){let{def:c,instance:u,range:d}=o.eventRange;return{event:new L(r,c,u),start:r.dateEnv.toDate(d.start),end:r.dateEnv.toDate(d.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 m(de.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:l}=r,{moreLinkText:o}=s,{moreCnt:c}=e,u=Bs(e),d=typeof o=="function"?o.call(l,c):`+${c} ${o}`,g=Ke(s.moreLinkHint,[c],d),p={num:c,shortText:`+${c}`,text:d,view:i};return m(P,null,!!e.moreCnt&&m(J,{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),gi(this.handleClick)),{title:g,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:p,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||Dd,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&m(Ad,{id:n.popoverId,startDate:u.start,endDate:u.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=W(this.linkEl,".fc-view-harness"))}}function Dd(t){return t.text}function Bs(t){if(t.allDayDate)return{start:t.allDayDate,end:G(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Vs(e),end:kd(e)}}function Vs(t){return t.reduce(Rd).eventRange.range.start}function Rd(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function kd(t){return t.reduce(Td).eventRange.range.end}function Td(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class xd{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 Md extends xd{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 Nd=[],Hs={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"},Ps=Object.assign(Object.assign({},Hs),{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 Id(t){let e=t.length>0?t[0].code:"en",n=Nd.concat(t),r={en:Ps};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function Ls(t,e){return typeof t=="object"&&!Array.isArray(t)?zs(t.code,[t.code],t):Od(t,e)}function Od(t,e){let n=[].concat(t||[]),r=Bd(n,e)||Ps;return zs(t,n,r)}function Bd(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 zs(t,e,n){let r=Sn([Hs,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 pe(t){return{id:De(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function Vd(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,c=n[o];c===void 0?(n[o]=l.id,i(l.deps),r=Pd(r,l)):c!==l.id&&console.warn(`Duplicate plugin '${o}'`)}}return t&&i(t),i(e),r}function Hd(){let t=[],e=[],n;return(r,i)=>((!n||!ye(r,t)||!ye(i,e))&&(n=Vd(r,i)),t=r,e=i,n)}function Pd(t,e){return{premiumReleaseDate:Ld(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 Ld(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class _e extends tt{}_e.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},_e.prototype.baseIconClass="fc-icon",_e.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"},_e.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},_e.prototype.iconOverrideOption="buttonIcons",_e.prototype.iconOverrideCustomButtonOption="icon",_e.prototype.iconOverridePrefix="fc-icon-";function zd(t,e){let n={},r;for(r in t)ir(r,n,t,e);for(r in e)ir(r,n,t,e);return n}function ir(t,e,n,r){if(e[t])return e[t];let i=Ud(t,e,n,r);return i&&(e[t]=i),i}function Ud(t,e,n,r){let i=n[t],s=r[t],l=d=>i&&i[d]!==null?i[d]:s&&s[d]!==null?s[d]:null,o=l("component"),c=l("superType"),u=null;if(c){if(c===t)throw new Error("Can't have a custom view type that references itself");u=ir(c,e,n,r)}return!o&&u&&(o=u.component),o?{type:t,component:o,defaults:Object.assign(Object.assign({},u?u.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},u?u.overrides:{}),s?s.rawOptions:{})}:null}function Us(t){return ce(t,jd)}function jd(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=js(e):n&&!(n.prototype instanceof V)&&(n=js(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function js(t){return e=>m(de.Consumer,null,n=>m(J,{elTag:"div",elClasses:Hi(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 Fd(t,e,n,r){let i=Us(t),s=Us(e.views),l=zd(i,s);return ce(l,o=>Wd(o,s,e,n,r))}function Wd(t,e,n,r,i){let s=t.overrides.duration||t.defaults.duration||r.duration||n.duration,l=null,o="",c="",u={};if(s&&(l=Gd(s),l)){let p=gn(l);o=p.unit,p.value===1&&(c=o,u=e[o]?e[o].rawOptions:{})}let d=p=>{let h=p.buttonText||{},y=t.defaults.buttonTextKey;return y!=null&&h[y]!=null?h[y]:h[t.type]!=null?h[t.type]:h[c]!=null?h[c]:null},g=p=>{let h=p.buttonHints||{},y=t.defaults.buttonTextKey;return y!=null&&h[y]!=null?h[y]:h[t.type]!=null?h[t.type]:h[c]!=null?h[c]:null};return{type:t.type,component:t.component,duration:l,durationUnit:o,singleUnit:c,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},u),t.overrides),buttonTextOverride:d(r)||d(n)||t.overrides.buttonText,buttonTextDefault:d(i)||t.defaults.buttonText||d(et)||t.type,buttonTitleOverride:g(r)||g(n)||t.overrides.buttonHint,buttonTitleDefault:g(i)||t.defaults.buttonHint||g(et)}}let Fs={};function Gd(t){let e=JSON.stringify(t),n=Fs[e];return n===void 0&&(n=O(t),Fs[e]=n),n}function $d(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function qd(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Yd(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 Qd(t,e,n){let r=e?e.activeRange:null;return Gs({},nu(t,n),r,n)}function Zd(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Gs(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return Jd(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?$s(t,i,r):t;case"FETCH_EVENT_SOURCES":return sr(t,e.sourceIds?Mi(e.sourceIds):qs(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return tu(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function Xd(t,e,n){let r=e?e.activeRange:null;return sr(t,qs(t,n),r,!0,n)}function Ws(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Gs(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=$s(i,n,r)),Object.assign(Object.assign({},t),i)}function Jd(t,e){return xe(t,n=>n.sourceId!==e)}function $s(t,e,n){return sr(t,xe(t,r=>Kd(r,e,n)),e,!1,n)}function Kd(t,e,n){return Ys(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function sr(t,e,n,r,i){let s={};for(let l in t){let o=t[l];e[l]?s[l]=eu(o,n,r,i):s[l]=o}return s}function eu(t,e,n,r){let{options:i,calendarApi:s}=r,l=r.pluginHooks.eventSourceDefs[t.sourceDefId],o=De();return l.fetch({eventSource:t,range:e,isRefetch:n,context:r},c=>{let{rawEvents:u}=c;i.eventSourceSuccess&&(u=i.eventSourceSuccess.call(s,u,c.response)||u),t.success&&(u=t.success.call(s,u,c.response)||u),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:o,fetchRange:e,rawEvents:u})},c=>{let u=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,c),u=!0),t.failure&&(t.failure(c),u=!0),u||console.warn(c.message,c),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:o,fetchRange:e,error:c})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:o})}function tu(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 qs(t,e){return xe(t,n=>Ys(n,e))}function nu(t,e){let n=Yi(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=qi(s,e,n);l&&i.push(l)}return i}function Ys(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function ru(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function iu(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function su(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 lu(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 ou(t,e,n,r,i){let s=t.headerToolbar?Qs(t.headerToolbar,t,e,n,r,i):null,l=t.footerToolbar?Qs(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:l}}function Qs(t,e,n,r,i,s){let l={},o=[],c=!1;for(let u in t){let d=t[u],g=au(d,e,n,r,i,s);l[u]=g.widgets,o.push(...g.viewsWithButtons),c=c||g.hasTitle}return{sectionWidgets:l,viewsWithButtons:o,hasTitle:c}}function au(t,e,n,r,i,s){let l=e.direction==="rtl",o=e.customButtons||{},c=n.buttonText||{},u=e.buttonText||{},d=n.buttonHints||{},g=e.buttonHints||{},p=t?t.split(" "):[],h=[],y=!1;return{widgets:p.map(v=>v.split(",").map(C=>{if(C==="title")return y=!0,{buttonName:C};let _,R,k,B,I,w;if(_=o[C])k=N=>{_.click&&_.click.call(N.target,N,N.target)},(B=r.getCustomButtonIconClass(_))||(B=r.getIconClass(C,l))||(I=_.text),w=_.hint||_.text;else if(R=i[C]){h.push(C),k=()=>{s.changeView(C)},(I=R.buttonTextOverride)||(B=r.getIconClass(C,l))||(I=R.buttonTextDefault);let N=R.buttonTextOverride||R.buttonTextDefault;w=Ke(R.buttonTitleOverride||R.buttonTitleDefault||e.viewHint,[N,C],N)}else if(s[C])if(k=()=>{s[C]()},(I=c[C])||(B=r.getIconClass(C,l))||(I=u[C]),C==="prevYear"||C==="nextYear"){let N=C==="prevYear"?"prev":"next";w=Ke(d[N]||g[N],[u.year||"year","year"],u[C])}else w=N=>Ke(d[C]||g[C],[u[N]||N,N],u[C]);return{buttonName:C,buttonClick:k,buttonIcon:B,buttonText:I,buttonHint:w}})),viewsWithButtons:h,hasTitle:y}}class cu{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 du=pe({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})}}]}),uu=pe({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;Ac(i.bind(null,cs(t.range,r)),s=>e({rawEvents:s}),n)}}]}),fu=pe({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:E,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=hu(r,t.range,t.context);Dc(r.method,r.url,i).then(([s,l])=>{e({rawEvents:s,response:l})},n)}}]});function hu(t,e,n){let{dateEnv:r,options:i}=n,s,l,o,c,u={};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"?c=t.extraParams():c=t.extraParams||{},Object.assign(u,c),u[s]=r.formatIso(e.start),u[l]=r.formatIso(e.end),r.timeZone!=="local"&&(u[o]=r.timeZone),u}const pu=pe({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=Vo(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=Ne(e,{start:t.startRecur,end:t.endRecur});return r?gu(t.daysOfWeek,t.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:E,startTime:O,endTime:O,duration:O,startRecur:E,endRecur:E}});function gu(t,e,n,r){let i=t?Mi(t):null,s=H(n.start),l=n.end,o=[];for(;s<l;){let c;(!i||i[s.getUTCDay()])&&(e?c=r.add(s,e):c=s,o.push(c)),s=G(s,1)}return o}const mu=pe({name:"change-handler",optionChangeHandlers:{events(t,e){Zs([t],e)},eventSources:Zs}});function Zs(t,e){let n=Cn(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 vu(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},cs(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function yu(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Oe(t,e))}const bu=[du,uu,fu,pu,mu,pe({name:"misc",isLoadingFuncs:[t=>Ws(t.eventSources)],propSetHandlers:{dateProfile:vu,eventStore:yu}})];class Eu{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new cn(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 Su(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,z(e.titleFormat||Cu(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Cu(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=At(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class _u{constructor(e){this.computeCurrentViewData=M(this._computeCurrentViewData),this.organizeRawLocales=M(Id),this.buildLocale=M(Ls),this.buildPluginHooks=Hd(),this.buildDateEnv=M(wu),this.buildTheme=M(Au),this.parseToolbars=M(ou),this.buildViewSpecs=M(Fd),this.buildDateProfileGenerator=Dt(Du),this.buildViewApi=M(Ru),this.buildViewUiProps=Dt(xu),this.buildEventUiBySource=M(ku,oe),this.buildEventUiBases=M(Tu),this.parseContextBusinessHours=Dt(Mu),this.buildTitle=M(Su),this.emitter=new Pt,this.actionRunner=new Eu(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=p=>{this.actionRunner.request(p)},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=La(r.calendarOptions,r.dateEnv),o=s.dateProfileGenerator.build(l);fe(o.activeRange,l)||(l=o.currentRange.start);let c={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let p of r.pluginHooks.contextInit)p(c);let u=Qd(r.calendarOptions,o,c),d={dynamicOptionOverrides:n,currentViewType:i,currentDate:l,dateProfile:o,businessHours:this.parseContextBusinessHours(c),eventSources:u,eventUiBases:{},eventStore:K(),renderableEventStore:K(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(c).selectionConfig},g=Object.assign(Object.assign({},c),d);for(let p of r.pluginHooks.reducers)Object.assign(d,p(null,null,g));lr(d,c)&&this.emitter.trigger("loading",!0),this.state=d,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=qd(r.dynamicOptionOverrides,e),l=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),o=$d(r.currentViewType,e),c=this.computeCurrentViewData(o,l,n.optionOverrides,s);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(c.options);let u={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:d,dateProfile:g}=r;this.data&&this.data.dateProfileGenerator!==c.dateProfileGenerator&&(g=c.dateProfileGenerator.build(d)),d=Pa(d,e),g=Yd(g,e,d,c.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!fe(g.currentRange,d))&&(d=g.currentRange.start);let p=Zd(r.eventSources,e,g,u),h=Ja(r.eventStore,e,p,g,u),f=Ws(p)&&!c.options.progressiveEventRendering&&r.renderableEventStore||h,{eventUiSingleBase:v,selectionConfig:C}=this.buildViewUiProps(u),_=this.buildEventUiBySource(p),R=this.buildEventUiBases(f.defs,v,_),k={dynamicOptionOverrides:s,currentViewType:o,currentDate:d,dateProfile:g,eventSources:p,eventStore:h,renderableEventStore:f,selectionConfig:C,eventUiBases:R,businessHours:this.parseContextBusinessHours(u),dateSelection:ru(r.dateSelection,e),eventSelection:iu(r.eventSelection,e),eventDrag:su(r.eventDrag,e),eventResize:lu(r.eventResize,e)},B=Object.assign(Object.assign({},u),k);for(let N of l.pluginHooks.reducers)Object.assign(k,N(r,e,B));let I=lr(r,u),w=lr(k,u);!I&&w?i.trigger("loading",!0):I&&!w&&i.trigger("loading",!1),this.state=k,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,c=r&&r.calendarOptions,u=i.calendarOptions;if(c&&c!==u){c.timeZone!==u.timeZone&&(n.eventSources=l.eventSources=Xd(l.eventSources,n.dateProfile,l),n.eventStore=l.eventStore=Xi(l.eventStore,r.dateEnv,l.dateEnv),n.renderableEventStore=l.renderableEventStore=Xi(l.renderableEventStore,r.dateEnv,l.dateEnv));for(let d in o)(this.optionsForHandling.indexOf(d)!==-1||c[d]!==u[d])&&o[d](u[d],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:c}=this.processRawCalendarOptions(e,n);Xs(c);let u=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,o,i.defaultRangeSeparator),d=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l),g=this.buildTheme(i,s),p=this.parseToolbars(i,this.stableOptionOverrides,g,d,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:u,viewSpecs:d,theme:g,toolbarConfig:p,localeDefaults:l,availableRawLocales:o.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=bn([et,e,n]),s=this.organizeRawLocales(r),l=s.map,o=this.buildLocale(i||s.defaultCode,l).options,c=this.buildPluginHooks(e.plugins||[],bu),u=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ki),Ti),xi),c.listenerRefiners),c.optionRefiners),d={},g=bn([et,o,e,n]),p={},h=this.currentCalendarOptionsInput,y=this.currentCalendarOptionsRefined,f=!1;for(let v in g)this.optionsForRefining.indexOf(v)===-1&&(g[v]===h[v]||ke[v]&&v in h&&ke[v](h[v],g[v]))?p[v]=y[v]:u[v]?(p[v]=u[v](g[v]),f=!0):d[v]=h[v];return f&&(this.currentCalendarOptionsInput=g,this.currentCalendarOptionsRefined=p,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:c,availableLocaleData:s,localeDefaults:o,extra:d}}_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);Xs(o);let c=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}),u=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:l,dateProfileGenerator:c,viewApi:u}}processRawViewOptions(e,n,r,i,s){let l=bn([et,e.optionDefaults,r,i,e.optionOverrides,s]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ki),Ti),xi),ga),n.listenerRefiners),n.optionRefiners),c={},u=this.currentViewOptionsInput,d=this.currentViewOptionsRefined,g=!1,p={};for(let h in l)l[h]===u[h]||ke[h]&&ke[h](l[h],u[h])?c[h]=d[h]:(l[h]===this.currentCalendarOptionsInput[h]||ke[h]&&ke[h](l[h],this.currentCalendarOptionsInput[h])?h in this.currentCalendarOptionsRefined&&(c[h]=this.currentCalendarOptionsRefined[h]):o[h]?c[h]=o[h](l[h]):p[h]=l[h],g=!0);return g&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=c),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:p}}}function wu(t,e,n,r,i,s,l,o){let c=Ls(e||l.defaultCode,l.map);return new Aa({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:c,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:o})}function Au(t,e){let n=e.themeClasses[t.themeSystem]||_e;return new n(t)}function Du(t){let e=t.dateProfileGeneratorClass||Ui;return new e(t)}function Ru(t,e,n){return new cu(t,e,n)}function ku(t){return ce(t,e=>e.ui)}function Tu(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 xu(t){let{options:e}=t;return{eventUiSingleBase:Ht({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:Ht({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function lr(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Mu(t){return oc(t.options.businessHours,t)}function Xs(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}class Nu extends V{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return m("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:c,buttonText:u,buttonIcon:d,buttonHint:g}=l;if(o==="title")s=!1,i.push(m("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let p=o===n.activeButton,h=!n.isTodayEnabled&&o==="today"||!n.isPrevEnabled&&o==="prev"||!n.isNextEnabled&&o==="next",y=[`fc-${o}-button`,r.getClass("button")];p&&y.push(r.getClass("buttonActive")),i.push(m("button",{type:"button",title:typeof g=="function"?g(n.navUnit):g,disabled:h,"aria-pressed":p,className:y.join(" "),onClick:c},u||(d?m("span",{className:d,role:"img"}):"")))}}if(i.length>1){let l=s&&r.getClass("buttonGroup")||"";return m("div",{className:l},...i)}return i[0]}}class Js extends V{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,m("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 m(Nu,{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 Iu extends V{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,ue(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||"",m("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 Ou extends Fe{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,l=je(r);if(l&&i.isValidSegDownEl(n.target)){let o=W(n.target,".fc-event-forced-url"),c=o?o.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new L(i.context,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi}),c&&!n.defaultPrevented&&(window.location.href=c)}},this.destroy=hi(e.el,"click",".fc-event",this.handleSegClick)}}class Bu extends Fe{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{je(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=So(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,l=je(r);(!n||i.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:r,event:new L(s,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi})}}class Vu extends Me{constructor(){super(...arguments),this.buildViewContext=M(ka),this.buildViewPropTransformers=M(Pu),this.buildToolbarProps=M(Hu),this.headerRef=Q(),this.footerRef=Q(),this.interactionsStore={},this.state={viewLabelId:Ct()},this.registerInteractiveComponent=(e,n)=>{let r=Tc(e,n),l=[Ou,Bu].concat(this.props.pluginHooks.componentInteractions).map(o=>new o(r));this.interactionsStore[e.uid]=l,Pn[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 Pn[e.uid]},this.resizeRunner=new cn(()=>{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,nt(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 c=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),u=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return m(de.Provider,{value:c},n.header&&m(Js,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:u},i)),m(Iu,{liquid:s,height:l,aspectRatio:o,labeledById:u},this.renderView(e),this.buildAppendContent()),n.footer&&m(Js,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 m(P,{},...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 m(l,Object.assign({},i))}}function Hu(t,e,n,r,i,s){let l=n.build(i,void 0,!1),o=n.buildPrev(e,r,!1),c=n.buildNext(e,r,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:l.isValid&&!fe(e.currentRange,i),isPrevEnabled:o.isValid,isNextEnabled:c.isValid}}function Pu(t){return t.map(e=>new e)}let Lu=class extends xc{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;Ii(()=>{Xe(m(kc,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,l,o)=>(this.setClassNames(i),this.setHeight(s),m(Vi.Provider,{value:this.customContentRenderId},m(Vu,Object.assign({isHeightAuto:l,forPrint:o},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Xe(null,this.el),this.setClassNames([]),this.setHeight(""))},fo(e),this.el=e,this.renderRunner=new cn(this.handleRenderRequest),new _u({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(){Ii(()=>{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(!ye(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){di(this.el,"height",e)}};const zu={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Uu=a.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:Wu(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(a.h(ju,{key:e.id,customRendering:e}));return a.h("div",{attrs:{"data-fc-render-id":this.renderId}},a.h(a.Fragment,t))},mounted(){const t=new Md;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new Lu(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:Fu()}),ju=a.defineComponent({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return a.h(a.Teleport,{to:t.containerEl},e)}});function Lg(t){return t}function Fu(){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 zu)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 Wu(t){const e={};for(const n in t)e[Gu(n)]=t[n];return e}function Gu(t){return t.split("-").map((e,n)=>n?$u(e):e).join("")}function $u(t){return t.charAt(0).toUpperCase()+t.slice(1)}var qu={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 Yu extends ae{constructor(){super(...arguments),this.headerElRef=Q()}renderSimpleLayout(e,n){let{props:r,context:i}=this,s=[],l=Wt(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}}),m(Nt,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},m(Jn,{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,c=!l.forPrint&&Wt(o.options),u=!l.forPrint&&Ts(o.options),d=[];return e&&d.push({type:"header",key:"header",isSticky:c,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),d.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),u&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Xn}]}),m(Nt,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},m(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:d}))}}function Gt(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 $t(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 Ks(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 el=z({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function tl(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 nl extends V{render(){let{props:e}=this;return m(xs,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:el,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class rl extends V{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,s=r.eventTimeFormat||el,l=ls(i,s,n,!0,e.defaultDisplayEventEnd);return m(Kn,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:as(e.seg,n),defaultGenerator:Qu,timeText:l,isResizing:!1,isDateSelecting:!1}))}}function Qu(t){return m(P,null,m("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&m("div",{className:"fc-event-time"},t.timeText),m("div",{className:"fc-event-title"},t.event.title||m(P,null," ")))}class Zu extends V{constructor(){super(...arguments),this.compileSegs=M(Xu)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return m(Os,{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 m(P,null,n.map(s=>{let l=s.eventRange.instance.instanceId;return m("div",{className:"fc-daygrid-event-harness",key:l,style:{visibility:i[l]?"hidden":""}},tl(s)?m(rl,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},Ce(s,e.todayRange))):m(nl,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},Ce(s,e.todayRange))))}))}})}}function Xu(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 Ju=z({week:"narrow"});class Ku extends ae{constructor(){super(...arguments),this.rootElRef=Q(),this.state={dayNumberId:Ct()},this.handleRootEl=e=>{ue(this.rootElRef,e),ue(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:i}=this,{options:s,dateEnv:l}=e,{date:o,dateProfile:c}=n;const u=n.showDayNumber&&tf(o,c.currentRange,l);return m(tr,{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:ef,date:o,dateProfile:c,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:u,extraRenderProps:n.extraRenderProps},(d,g)=>m("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&m(Is,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:zt(e,o,"week"),date:o,defaultFormat:Ju}),!g.isDisabled&&(n.showDayNumber||nr(s)||n.forceDayTop)?m("div",{className:"fc-daygrid-day-top"},m(d,{elTag:"a",elClasses:["fc-daygrid-day-number",u&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},zt(e,o)),{id:r.dayNumberId})})):n.showDayNumber?m("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},m("a",{className:"fc-daygrid-day-number"}," ")):void 0,m("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,m("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},m(Zu,{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}))),m("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function ef(t){return t.dayNumberText||m(P,null," ")}function tf(t,e,n){const{start:r,end:i}=e,s=be(i,-1),l=n.getYear(r),o=n.getMonth(r),c=n.getYear(s),u=n.getMonth(s);return!(l===c&&o===u)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<i.valueOf())}function il(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function sl(t){return il(t)+":"+t.lastCol}function nf(t,e,n,r,i,s,l){let o=new lf(C=>{let _=t[C.index].eventRange.instance.instanceId+":"+C.span.start+":"+(C.span.end-1);return i[_]});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 c=[],u=[];for(let C=0;C<t.length;C+=1){let _=t[C],R=sl(_);i[R]!=null?c.push({index:C,span:{start:_.firstCol,end:_.lastCol+1}}):u.push(_)}let d=o.addSegs(c),g=o.toRects(),{singleColPlacements:p,multiColPlacements:h,leftoverMargins:y}=rf(g,t,l),f=[],v=[];for(let C of u){h[C.firstCol].push({seg:C,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let _=C.firstCol;_<=C.lastCol;_+=1)p[_].push({seg:Ge(C,_,_+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let C=0;C<l.length;C+=1)f.push(0);for(let C of d){let _=t[C.index],R=C.span;h[R.start].push({seg:Ge(_,R.start,R.end,l),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let k=R.start;k<R.end;k+=1)f[k]+=1,p[k].push({seg:Ge(_,k,k+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let C=0;C<l.length;C+=1)v.push(y[C]);return{singleColPlacements:p,multiColPlacements:h,moreCnts:f,moreMarginTops:v}}function rf(t,e,n){let r=sf(t,n.length),i=[],s=[],l=[];for(let o=0;o<n.length;o+=1){let c=r[o],u=[],d=0,g=0;for(let h of c){let y=e[h.index];u.push({seg:Ge(y,o,o+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:h.levelCoord-d}),d=h.levelCoord+h.thickness}let p=[];d=0,g=0;for(let h of c){let y=e[h.index],f=h.span.end-h.span.start>1,v=h.span.start===o;g+=h.levelCoord-d,d=h.levelCoord+h.thickness,f?(g+=h.thickness,v&&p.push({seg:Ge(y,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:h.levelCoord,marginTop:0})):v&&(p.push({seg:Ge(y,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:g}),g=0)}i.push(u),s.push(p),l.push(g)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:l}}function sf(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 Ge(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let i=t.eventRange,s=i.range,l=Ne(s,{start:r[e].date,end:G(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 lf extends vs{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[Be(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:c}=e;if(this.hiddenConsumes&&l){const u=Be(l);if(!s[u])if(this.allowReslicing){const d=Object.assign(Object.assign({},l),{span:$n(l.span,n.span)}),g=Be(d);s[g]=!0,i[o][c]=d,this.splitEntry(l,n,r)}else s[u]=!0,r.push(l)}return super.handleInvalidInsertion(e,n,r)}}class ll extends ae{constructor(){super(...arguments),this.cellElRefs=new he,this.frameElRefs=new he,this.fgElRefs=new he,this.segHarnessRefs=new he,this.rootElRef=Q(),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=$t(e.businessHourSegs,s),o=$t(e.bgEventSegs,s),c=$t(this.getHighlightSegs(),s),u=$t(this.getMirrorSegs(),s),{singleColPlacements:d,multiColPlacements:g,moreCnts:p,moreMarginTops:h}=nf(ss(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),y=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return m("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((f,v)=>{let C=this.renderFgSegs(v,e.forPrint?d[v]:g[v],e.todayRange,y),_=this.renderFgSegs(v,of(u[v],g),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return m(Ku,{key:f.key,elRef:this.cellElRefs.createRef(f.key),innerElRef:this.frameElRefs.createRef(f.key),dateProfile:e.dateProfile,date:f.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&v===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:f.extraRenderProps,extraDataAttrs:f.extraDataAttrs,extraClassNames:f.extraClassNames,extraDateSpan:f.extraDateSpan,moreCnt:p[v],moreMarginTop:h[v],singlePlacements:d[v],fgContentElRef:this.fgElRefs.createRef(f.key),fgContent:m(P,null,m(P,null,C),m(P,null,_)),bgContent:m(P,null,this.renderFillSegs(c[v],"highlight"),this.renderFillSegs(l[v],"non-business"),this.renderFillSegs(o[v],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!oe(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:c}=this,{eventSelection:u}=this.props,{framePositions:d}=this.state,g=this.props.cells.length===1,p=s||l||o,h=[];if(d)for(let y of n){let{seg:f}=y,{instanceId:v}=f.eventRange.instance,C=y.isVisible&&!i[v],_=y.isAbsolute,R="",k="";_&&(c.isRtl?(k=0,R=d.lefts[f.lastCol]-d.lefts[f.firstCol]):(R=0,k=d.rights[f.firstCol]-d.rights[f.lastCol])),h.push(m("div",{className:"fc-daygrid-event-harness"+(_?" fc-daygrid-event-harness-abs":""),key:il(f),ref:p?null:this.segHarnessRefs.createRef(sl(f)),style:{visibility:C?"":"hidden",marginTop:_?"":y.marginTop,top:_?y.absoluteTop:"",left:R,right:k}},tl(f)?m(rl,Object.assign({seg:f,isDragging:s,isSelected:v===u,defaultDisplayEventEnd:g},Ce(f,r))):m(nl,Object.assign({seg:f,isDragging:s,isResizing:l,isDateSelecting:o,isSelected:v===u,defaultDisplayEventEnd:g},Ce(f,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 c=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(m("div",{key:os(o.eventRange),className:"fc-daygrid-bg-harness",style:c},n==="bg-event"?m(Ms,Object.assign({seg:o},Ce(o,i))):Ns(n)))}return m(P,{},...l)}updateSizing(e){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let c=n.cells.map(u=>i.currentMap[u.key]);if(c.length){let u=this.rootElRef.current,d=new We(u,c,!0,!1);(!r.framePositions||!r.framePositions.similarTo(d))&&this.setState({framePositions:new We(u,c,!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])}}ll.addStateEquality({segHeights:oe});function of(t,e){if(!t.length)return[];let n=af(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function af(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class cf extends ae{constructor(){super(...arguments),this.splitBusinessHourSegs=M(Gt),this.splitBgEventSegs=M(Gt),this.splitFgEventSegs=M(Gt),this.splitDateSelectionSegs=M(Gt),this.splitEventDrag=M(Ks),this.splitEventResize=M(Ks),this.rowRefs=new he}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),c=this.splitEventDrag(e.eventDrag,r),u=this.splitEventResize(e.eventResize,r),d=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return m(it,{unit:"day"},(g,p)=>m(P,null,e.cells.map((h,y)=>m(ll,{ref:this.rowRefs.createRef(y),key:h.length?h[0].date.toISOString():y,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:p,dateProfile:e.dateProfile,cells:h,renderIntro:e.renderRowIntro,businessHourSegs:i[y],eventSelection:e.eventSelection,bgEventSegs:s[y].filter(df),fgEventSegs:l[y],dateSelectionSegs:o[y],eventDrag:c[y],eventResize:u[y],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:d,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 We(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new We(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=G(r,1);return{start:r,end:i}}}function df(t){return t.eventRange.def.allDay}class uf extends ae{constructor(){super(...arguments),this.elRef=Q(),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 m("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},m("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,m("tbody",{role:"presentation"},m(cf,{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=ff(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 ff(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${Jo(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${vn(e.currentDate)}"]`)),n}class hf extends ws{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class ol extends ae{constructor(){super(...arguments),this.slicer=new hf,this.tableRef=Q()}render(){let{props:e,context:n}=this;return m(uf,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 pf extends Yu{constructor(){super(...arguments),this.buildDayTableModel=M(gf),this.headerRef=Q(),this.tableRef=Q()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),s=e.dayHeaders&&m(Ss,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),l=o=>m(ol,{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 gf(t,e){let n=new Cs(t.renderRange,e);return new _s(n,/year|month|week/.test(t.currentRangeUnit))}class mf extends Ui{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return vf({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function vf(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=Ei(s,1))),t.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(G(n.end,-1))),o=Math.ceil(Uo(l,i));i=Ei(i,6-o)}return{start:r,end:i}}var yf=':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}';on(yf);var bf=pe({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:pf,dateProfileGeneratorClass:mf},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}}}}),Ef='.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-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}';on(Ef);class Sf extends Bc{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?fc(e)?["timed","allDay"]:["allDay"]:["timed"]}}const Cf=z({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function al(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return m(de.Consumer,null,n=>{if(!t.isLabeled)return m("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:r,options:i,viewApi:s}=n,l=i.slotLabelFormat==null?Cf:Array.isArray(i.slotLabelFormat)?z(i.slotLabelFormat[0]):z(i.slotLabelFormat),o={level:0,time:t.time,date:r.toDate(t.date),view:s,text:r.format(t.date,l)};return m(J,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:o,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:_f,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},c=>m("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},m(c,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function _f(t){return t.text}class wf extends V{render(){return this.props.slatMetas.map(e=>m("tr",{key:e.key},m(al,Object.assign({},e))))}}const Af=z({week:"short"}),Df=5;class Rf extends ae{constructor(){super(...arguments),this.allDaySplitter=new Sf,this.headerElRef=Q(),this.rootElRef=Q(),this.scrollerElRef=Q(),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=Re(s.start,s.end)===1?zt(this.context,s.start,"week"):{};return r.weekNumbers&&e==="day"?m(Is,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:s.start,defaultFormat:Af},c=>m("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},m(c,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:o}))):m("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},m("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 m(J,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:kf,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},s=>m("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},m(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=Wt(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:m("tr",{role:"presentation",className:"fc-scrollgrid-section"},m("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}}),m(Nt,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},m(Jn,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,cols:[{width:"shrink"}],sections:l}))}renderHScrollLayout(e,n,r,i,s,l,o){let c=this.context.pluginHooks.scrollGridImpl;if(!c)throw new Error("No ScrollGrid implementation");let{context:u,props:d}=this,g=!d.forPrint&&Wt(u.options),p=!d.forPrint&&Ts(u.options),h=[];e&&h.push({type:"header",key:"header",isSticky:g,syncRowHeights:!0,chunks:[{key:"axis",rowContent:f=>m("tr",{role:"presentation"},this.renderHeadAxis("day",f.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:f=>m("tr",{role:"presentation"},this.renderTableRowAxis(f.rowSyncHeights[0]))},{key:"cols",content:n}]}),h.push({key:"all-day-divider",type:"body",outerContent:m("tr",{role:"presentation",className:"fc-scrollgrid-section"},m("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));let y=u.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:!!u.options.expandRows,chunks:[{key:"axis",content:f=>m("div",{className:"fc-timegrid-axis-chunk"},m("table",{"aria-hidden":!0,style:{height:f.expandRows?f.clientHeight:""}},f.tableColGroupNode,m("tbody",null,m(wf,{slatMetas:l}))),m("div",{className:"fc-timegrid-now-indicator-container"},m(it,{unit:y?"minute":"day"},v=>{let C=y&&o&&o.safeComputeTop(v);return typeof C=="number"?m(er,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:C},isAxis:!0,date:v}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),p&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Xn},{key:"cols",content:Xn}]}),m(Nt,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:u.viewSpec},m(c,{liquid:!d.isHeightAuto&&!d.forPrint,forPrint:d.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=Df),{dayMaxEvents:e,dayMaxEventRows:n}}}function kf(t){return t.text}class Tf{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(fe(n.currentRange,e)){let r=H(e),i=e.valueOf()-r.valueOf();if(i>=re(n.slotMinTime)&&i<re(n.slotMaxTime))return this.computeTimeTop(O(i))}return null}computeDateTop(e,n){return n||(n=H(e)),this.computeTimeTop(O(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,i=n.els.length,s=(e.milliseconds-re(r.slotMinTime))/re(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 xf extends V{render(){let{props:e,context:n}=this,{options:r}=n,{slatElRefs:i}=e;return m("tbody",null,e.slatMetas.map((s,l)=>{let o={time:s.time,date:n.dateEnv.toDate(s.date),view:n.viewApi};return m("tr",{key:s.key,ref:i.createRef(s.key)},e.axis&&m(al,Object.assign({},s)),m(J,{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 Mf extends V{constructor(){super(...arguments),this.rootElRef=Q(),this.slatElRefs=new he}render(){let{props:e,context:n}=this;return m("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},m("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,m(xf,{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 Tf(new We(this.rootElRef.current,Nf(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function Nf(t,e){return e.map(n=>t[n.key])}function st(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 cl(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 If extends V{render(){let{props:e}=this;return m(Os,{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:()=>hl(e.hiddenSegs,e),defaultGenerator:Of,forceTimed:!0},n=>m(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Of(t){return t.shortText}function Bf(t,e,n){let r=new vs;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(t),s=Yc(i),l=Vf(r);return l=zf(l,1),{segRects:Uf(l),hiddenGroups:s}}function Vf(t){const{entriesByLevel:e}=t,n=or((r,i)=>r+":"+i,(r,i)=>{let s=Lf(t,r,i),l=dl(s,n),o=e[r][i];return[Object.assign(Object.assign({},o),{nextLevelNodes:l[0]}),o.thickness+l[1]]});return dl(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function dl(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(Hf),[l.map(Pf),l[0][1]]}function Hf(t,e){return e[1]-t[1]}function Pf(t){return t[0]}function Lf(t,e,n){let{levelCoords:r,entriesByLevel:i}=t,s=i[e][n],l=r[e]+s.thickness,o=r.length,c=e;for(;c<o&&r[c]<l;c+=1);for(;c<o;c+=1){let u=i[c],d,g=Yn(u,s.span.start,Gn),p=g[0]+g[1],h=p;for(;(d=u[h])&&d.span.start<s.span.end;)h+=1;if(p<h)return{level:c,lateralStart:p,lateralEnd:h}}return null}function zf(t,e){const n=or((r,i,s)=>Be(r),(r,i,s)=>{let{nextLevelNodes:l,thickness:o}=r,c=o+s,u=o/c,d,g=[];if(!l.length)d=e;else for(let h of l)if(d===void 0){let y=n(h,i,c);d=y[0],g.push(y[1])}else{let y=n(h,d,0);g.push(y[1])}let p=(d-i)*u;return[d-p,Object.assign(Object.assign({},r),{thickness:p,nextLevelNodes:g})]});return t.map(r=>n(r,0,0)[1])}function Uf(t){let e=[];const n=or((i,s,l)=>Be(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 c of i)o=Math.max(n(c,s,l),o);return o}return r(t,0,0),e}function or(t,e){const n={};return(...r)=>{let i=t(...r);return i in n?n[i]:n[i]=e(...r)}}function ul(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),c=Math.max(o+(r||0),n.computeDateTop(l.end,e));i.push({start:Math.round(o),end:Math.round(c)})}return i}function jf(t,e,n,r){let i=[],s=[];for(let u=0;u<t.length;u+=1){let d=e[u];d?i.push({index:u,thickness:1,span:d}):s.push(t[u])}let{segRects:l,hiddenGroups:o}=Bf(i,n,r),c=[];for(let u of l)c.push({seg:t[u.index],rect:u});for(let u of s)c.push({seg:u,rect:null});return{segPlacements:c,hiddenGroups:o}}const Ff=z({hour:"numeric",minute:"2-digit",meridiem:!1});class fl extends V{render(){return m(xs,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Ff}))}}class Wf extends V{constructor(){super(...arguments),this.sortEventSegs=M(ss)}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 m(tr,{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},c=>m("div",{className:"fc-timegrid-col-frame"},m("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),m("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,l,!1,!1,!1)),m("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,{},!!e.eventDrag,!!e.eventResize,!!i,"mirror")),m("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),nr(r)&&m(c,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,i,s,l){let{props:o}=this;return o.forPrint?hl(e,o):this.renderPositionedFgSegs(e,n,r,i,s,l)}renderPositionedFgSegs(e,n,r,i,s,l){let{eventMaxStack:o,eventShortHeight:c,eventOrderStrict:u,eventMinHeight:d}=this.context.options,{date:g,slatCoords:p,eventSelection:h,todayRange:y,nowDate:f}=this.props,v=r||i||s,C=ul(e,g,p,d),{segPlacements:_,hiddenGroups:R}=jf(e,C,u,o);return m(P,null,this.renderHiddenGroups(R,e),_.map(k=>{let{seg:B,rect:I}=k,w=B.eventRange.instance.instanceId,N=v||!!(!n[w]&&I),q=ar(I&&I.span),ie=!v&&I?this.computeSegHStyle(I):{left:0,right:0},ge=!!I&&I.stackForward>0,F=!!I&&I.span.end-I.span.start<c;return m("div",{className:"fc-timegrid-event-harness"+(ge?" fc-timegrid-event-harness-inset":""),key:l||w,style:Object.assign(Object.assign({visibility:N?"":"hidden"},q),ie)},m(fl,Object.assign({seg:B,isDragging:r,isResizing:i,isDateSelecting:s,isSelected:w===h,isShort:F},Ce(B,y,f))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:o,eventDrag:c,eventResize:u}=this.props;return m(P,null,e.map(d=>{let g=ar(d.span),p=Gf(d.entries,n);return m(If,{key:wi(Vs(p)),hiddenSegs:p,top:g.top,bottom:g.bottom,extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:o,eventDrag:c,eventResize:u})}))}renderFillSegs(e,n){let{props:r,context:i}=this,l=ul(e,r.date,r.slatCoords,i.options.eventMinHeight).map((o,c)=>{let u=e[c];return m("div",{key:os(u.eventRange),className:"fc-timegrid-bg-harness",style:ar(o)},n==="bg-event"?m(Ms,Object.assign({seg:u},Ce(u,r.todayRange,r.nowDate))):Ns(n))});return m(P,null,l)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((i,s)=>m(er,{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,c;i&&(l=Math.min(1,s+(l-s)*2)),n?(o=1-l,c=s):(o=s,c=1-l);let u={zIndex:e.stackDepth+1,left:o*100+"%",right:c*100+"%"};return i&&!e.stackForward&&(u[n?"marginLeft":"marginRight"]=10*2),u}}function hl(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let l=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return m(P,null,t.map(o=>{let c=o.eventRange.instance.instanceId;return m("div",{key:c,style:{visibility:l[c]?"hidden":""}},m(fl,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:c===r,isShort:!1},Ce(o,e,n))))}))}function ar(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function Gf(t,e){return t.map(n=>e[n.index])}class $f extends V{constructor(){super(...arguments),this.splitFgEventSegs=M(st),this.splitBgEventSegs=M(st),this.splitBusinessHourSegs=M(st),this.splitNowIndicatorSegs=M(st),this.splitDateSelectionSegs=M(st),this.splitEventDrag=M(cl),this.splitEventResize=M(cl),this.rootElRef=Q(),this.cellElRefs=new he}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),c=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i),u=this.splitDateSelectionSegs(e.dateSelectionSegs,i),d=this.splitEventDrag(e.eventDrag,i),g=this.splitEventResize(e.eventResize,i);return m("div",{className:"fc-timegrid-cols",ref:this.rootElRef},m("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,m("tbody",{role:"presentation"},m("tr",{role:"row"},e.axis&&m("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},m("div",{className:"fc-timegrid-col-frame"},m("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&m(er,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((p,h)=>m(Wf,{key:p.key,elRef:this.cellElRefs.createRef(p.key),dateProfile:e.dateProfile,date:p.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:p.extraRenderProps,extraDataAttrs:p.extraDataAttrs,extraClassNames:p.extraClassNames,extraDateSpan:p.extraDateSpan,fgEventSegs:s[h],bgEventSegs:l[h],businessHourSegs:o[h],nowIndicatorSegs:c[h],dateSelectionSegs:u[h],eventDrag:d[h],eventResize:g[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 We(this.rootElRef.current,qf(this.cellElRefs.currentMap,e.cells),!0,!1))}}function qf(t,e){return e.map(n=>t[n.key])}class Yf extends ae{constructor(){super(...arguments),this.processSlotOptions=M(Qf),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 m("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},m(Mf,{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}),m($f,{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:c,snapsPerSlot:u}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),d=s.leftToIndex(e),g=o.positions.topToIndex(n);if(d!=null&&g!=null){let p=this.props.cells[d],h=o.positions.tops[g],y=o.positions.getHeight(g),f=(n-h)/y,v=Math.floor(f*u),C=g*u+v,_=this.props.cells[d].date,R=hn(l.slotMinTime,Ho(c,C)),k=r.add(_,R),B=r.add(k,c);return{dateProfile:l,dateSpan:Object.assign({range:{start:k,end:B},allDay:!1},p.extraDateSpan),dayEl:s.els[d],rect:{left:s.lefts[d],right:s.rights[d],top:h,bottom:h+y},layer:0}}return null}}function Qf(t,e){let n=e||t,r=pn(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class Zf extends ws{sliceRange(e,n){let r=[];for(let i=0;i<n.length;i+=1){let s=Ne(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 Xf extends ae{constructor(){super(...arguments),this.buildDayRanges=M(Jf),this.slicer=new Zf,this.timeColsRef=Q()}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 m(it,{unit:s?"minute":"day"},(c,u)=>m(Yf,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:c,nowIndicatorSegs:s&&this.slicer.sliceNowDate(c,r,l,n,o),todayRange:u,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function Jf(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 pl=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Kf(t,e,n,r,i){let s=new Date(0),l=t,o=O(0),c=n||eh(r),u=[];for(;re(l)<re(e);){let d=i.add(s,l),g=pn(o,c)!==null;u.push({date:d,time:l,key:d.toISOString(),isoTimeStr:Ko(d),isLabeled:g}),l=hn(l,r),o=hn(o,r)}return u}function eh(t){let e,n,r;for(e=pl.length-1;e>=0;e-=1)if(n=O(pl[e]),r=pn(n,t),r!==null&&r>1)return n;return t}class th extends Rf{constructor(){super(...arguments),this.buildTimeColsModel=M(nh),this.buildSlatMetas=M(Kf)}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),c=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:u}=e,d=!u,g=u,p=e.dayHeaders&&m(Ss,{dates:l.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:d?this.renderHeadAxis:null}),h=e.allDaySlot!==!1&&(f=>m(ol,Object.assign({},o.allDay,{dateProfile:s,dayTableModel:l,nextDayThreshold:e.nextDayThreshold,tableMinWidth:f.tableMinWidth,colGroupNode:f.tableColGroupNode,renderRowIntro:d?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:f.clientWidth,clientHeight:f.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),y=f=>m(Xf,Object.assign({},o.timed,{dayTableModel:l,dateProfile:s,axis:d,slotDuration:e.slotDuration,slatMetas:c,forPrint:i.forPrint,tableColGroupNode:f.tableColGroupNode,tableMinWidth:f.tableMinWidth,clientWidth:f.clientWidth,clientHeight:f.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:f.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return g?this.renderHScrollLayout(p,h,y,l.colCnt,u,c,this.state.slatCoords):this.renderSimpleLayout(p,h,y)}}function nh(t,e){let n=new Cs(t.renderRange,e);return new _s(n,!1)}var rh=pe({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:th,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});Qn.touchMouseIgnoreWait=500;let cr=0,qt=0,dr=!1;class gl{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()&&ih(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,sh()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.pageXOffset-this.prevScrollX+this.prevPageX,i=window.pageYOffset-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 Pt,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),lh()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),oh()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||W(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){dr=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?W(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return cr||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(dr=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,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 ih(t){return t.button===0&&!t.ctrlKey}function sh(){cr+=1,setTimeout(()=>{cr-=1},Qn.touchMouseIgnoreWait)}function lh(){qt+=1,qt===1&&window.addEventListener("touchmove",ml,{passive:!1})}function oh(){qt-=1,qt||window.removeEventListener("touchmove",ml,{passive:!1})}function ml(t){dr&&t.preventDefault()}class ah{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.pageXOffset,this.origScreenY=r-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=n-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,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",Je(r,{left:i.left,top:i.top}),Co(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(dn(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&Je(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.classList.add("fc-event-dragging"),Je(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 vl extends Wn{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 yl extends vl{constructor(e,n){super(new $c(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Wc(this.scrollController.el)}}class ch extends vl{constructor(e){super(new qc,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 bl=typeof performance=="function"?performance.now:Date.now;class dh{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let n=bl();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.pageXOffset,i=n-window.pageYOffset,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(bl()))}}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,c=e-o.left,u=o.right-e,d=n-o.top,g=o.bottom-n;c>=0&&u>=0&&d>=0&&g>=0&&(d<=r&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>d)&&(i={scrollCache:l,name:"top",distance:d}),g<=r&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>g)&&(i={scrollCache:l,name:"bottom",distance:g}),c<=r&&this.everMovedLeft&&l.canScrollLeft()&&(!i||i.distance>c)&&(i={scrollCache:l,name:"left",distance:c}),u<=r&&this.everMovedRight&&l.canScrollRight()&&(!i||i.distance>u)&&(i={scrollCache:l,name:"right",distance:u}))}return i}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new ch(!1):new yl(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 lt extends Zc{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,_o(document.body),Ao(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:c}=i;l=o*o+c*c,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,wo(document.body),Do(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 gl(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 ah,this.autoScroller=new dh}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 uh{constructor(e){this.origRect=Fn(e),this.scrollCaches=ms(e).map(n=>new yl(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(!fh(i.getEventTarget())&&!Mc(r,i.clientRect))return!1;return!0}}function fh(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class Yt{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,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 Pt}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl,s;i instanceof HTMLElement&&(s=Fn(i),r=Nc(r,s));let l=this.initialHit=this.queryHitForOffset(r.left,r.top);if(l){if(this.useSubjectCenter&&s){let o=hs(s,l.rect);o&&(r=Ic(o))}this.coordAdjust=Oc(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||!Qt(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=ce(this.droppableStore,e=>(e.component.prepareHits(),new uh(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,c=i[l];if(c&&c.isWithinClipping(e,n)){let u=c.computeLeft(),d=c.computeTop(),g=e-u,p=n-d,{origRect:h}=c,y=h.right-h.left,f=h.bottom-h.top;if(g>=0&&g<y&&p>=0&&p<f){let v=o.queryHit(g,p,y,f);v&&It(v.dateProfile.activeRange,v.dateSpan.range)&&(!s||v.layer>s.layer)&&(v.componentId=l,v.context=o.context,v.rect.left+=u,v.rect.right+=u,v.rect.top+=d,v.rect.bottom+=d,s=v)}}}return s}}function Qt(t,e){return!t&&!e?!0:!!t!=!!e?!1:Sc(t.dateSpan,e.dateSpan)}function El(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,hh(t,e.dateEnv)),n}function hh(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class ph extends Fe{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&&Qt(l,o)){let{context:c}=i,u=Object.assign(Object.assign({},El(l.dateSpan,c)),{dayEl:l.dayEl,jsEvent:r.origEvent,view:c.viewApi||c.calendarApi.view});c.emitter.trigger("dateClick",u)}}},this.dragging=new lt(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new Yt(this.dragging,Hn(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class gh extends Fe{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=l=>{let{component:o,dragging:c}=this,{options:u}=o.context,d=u.selectable&&o.isValidDateDownEl(l.origEvent.target);c.setIgnoreMove(!d),c.delay=l.isTouch?mh(o):null},this.handleDragStart=l=>{this.component.context.calendarApi.unselect(l)},this.handleHitUpdate=(l,o)=>{let{context:c}=this.component,u=null,d=!1;if(l){let g=this.hitDragging.initialHit;l.componentId===g.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(g,l)||(u=vh(g,l,c.pluginHooks.dateSelectionTransformers)),(!u||!nd(u,l.dateProfile,c))&&(d=!0,u=null)}u?c.dispatch({type:"SELECT_DATES",selection:u}):o||c.dispatch({type:"UNSELECT_DATES"}),d?un():fn(),o||(this.dragSelection=u)},this.handlePointerUp=l=>{this.dragSelection&&(Ki(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,i=this.dragging=new lt(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Yt(this.dragging,Hn(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 mh(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function vh(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(Mo);let l={};for(let o of n){let c=o(t,e);if(c===!1)return null;c&&Object.assign(l,c)}return l.range={start:s[0],end:s[3]},l.allDay=r.allDay,l}class ot extends Fe{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:c,dragging:u}=this,{mirror:d}=u,{options:g}=c.context,p=c.context;this.subjectEl=l.subjectEl;let h=this.subjectSeg=je(l.subjectEl),f=(this.eventRange=h.eventRange).instance.instanceId;this.relevantEvents=Nn(p.getCurrentData().eventStore,f),u.minDistance=l.isTouch?0:g.eventDragMinDistance,u.delay=l.isTouch&&f!==c.props.eventSelection?bh(c):null,g.fixedMirrorParent?d.parentNode=g.fixedMirrorParent:d.parentNode=W(o,".fc"),d.revertDuration=g.dragRevertDuration;let v=c.isValidSegDownEl(o)&&!W(o,".fc-event-resizer");u.setIgnoreMove(!v),this.isDragging=v&&l.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=l=>{let o=this.component.context,c=this.eventRange,u=c.instance.instanceId;l.isTouch?u!==this.component.props.eventSelection&&o.dispatch({type:"SELECT_EVENT",eventInstanceId:u}):o.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(o.calendarApi.unselect(l),o.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new L(o,c.def,c.instance),jsEvent:l.origEvent,view:o.viewApi}))},this.handleHitUpdate=(l,o)=>{if(!this.isDragging)return;let c=this.relevantEvents,u=this.hitDragging.initialHit,d=this.component.context,g=null,p=null,h=null,y=!1,f={affectedEvents:c,mutatedEvents:K(),isEvent:!0};if(l){g=l.context;let v=g.options;d===g||v.editable&&v.droppable?(p=yh(u,l,g.getCurrentData().pluginHooks.eventDragMutationMassagers),p&&(h=Bn(c,g.getCurrentData().eventUiBases,p,g),f.mutatedEvents=h,As(f,l.dateProfile,g)||(y=!0,p=null,h=null,f.mutatedEvents=K()))):g=null}this.displayDrag(g,f),y?un():fn(),o||(d===g&&Qt(u,l)&&(p=null),this.dragging.setMirrorNeedsRevert(!p),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=g,this.validMutation=p,this.mutatedRelevantEvents=h)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=l=>{if(this.isDragging){let o=this.component.context,c=o.viewApi,{receivingContext:u,validMutation:d}=this,g=this.eventRange.def,p=this.eventRange.instance,h=new L(o,g,p),y=this.relevantEvents,f=this.mutatedRelevantEvents,{finalHit:v}=this.hitDragging;if(this.clearDrag(),o.emitter.trigger("eventDragStop",{el:this.subjectEl,event:h,jsEvent:l.origEvent,view:c}),d){if(u===o){let C=new L(o,f.defs[g.defId],p?f.instances[p.instanceId]:null);o.dispatch({type:"MERGE_EVENTS",eventStore:f});let _={oldEvent:h,event:C,relatedEvents:Oe(f,o,p),revert(){o.dispatch({type:"MERGE_EVENTS",eventStore:y})}},R={};for(let k of o.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(R,k(d,o));o.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},_),R),{el:l.subjectEl,delta:d.datesDelta,jsEvent:l.origEvent,view:c})),o.emitter.trigger("eventChange",_)}else if(u){let C={event:h,relatedEvents:Oe(y,o,p),revert(){o.dispatch({type:"MERGE_EVENTS",eventStore:y})}};o.emitter.trigger("eventLeave",Object.assign(Object.assign({},C),{draggedEl:l.subjectEl,view:c})),o.dispatch({type:"REMOVE_EVENTS",eventStore:y}),o.emitter.trigger("eventRemove",C);let _=f.defs[g.defId],R=f.instances[p.instanceId],k=new L(u,_,R);u.dispatch({type:"MERGE_EVENTS",eventStore:f});let B={event:k,relatedEvents:Oe(f,u,R),revert(){u.dispatch({type:"REMOVE_EVENTS",eventStore:f})}};u.emitter.trigger("eventAdd",B),l.isTouch&&u.dispatch({type:"SELECT_EVENT",eventInstanceId:p.instanceId}),u.emitter.trigger("drop",Object.assign(Object.assign({},El(v.dateSpan,u)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:v.context.viewApi})),u.emitter.trigger("eventReceive",Object.assign(Object.assign({},B),{draggedEl:l.subjectEl,view:v.context.viewApi}))}}else o.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,i=this.dragging=new lt(e.el);i.pointer.selector=ot.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Yt(this.dragging,Pn);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:K(),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}}ot.SELECTOR=".fc-event-draggable, .fc-event-resizable";function yh(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=r.range.start,l=i.range.start,o={};r.allDay!==i.allDay&&(o.allDay=i.allDay,o.hasEnd=e.context.options.allDayMaintainDuration,i.allDay&&(s=H(s)));let c=ze(s,l,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);c.milliseconds&&(o.allDay=!1);let u={datesDelta:c,standardProps:o};for(let d of n)d(u,t,e);return u}function bh(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class Eh extends Fe{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),c=je(o),u=this.eventRange=c.eventRange;this.dragging.minDistance=l.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==u.instance.instanceId)},this.handleDragStart=s=>{let{context:l}=this.component,o=this.eventRange;this.relevantEvents=Nn(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let c=this.querySegEl(s);this.draggingSegEl=c,this.draggingSeg=je(c),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:c,event:new L(l,o.def,o.instance),jsEvent:s.origEvent,view:l.viewApi})},this.handleHitUpdate=(s,l,o)=>{let{context:c}=this.component,u=this.relevantEvents,d=this.hitDragging.initialHit,g=this.eventRange.instance,p=null,h=null,y=!1,f={affectedEvents:u,mutatedEvents:K(),isEvent:!0};s&&(s.componentId===d.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(d,s)||(p=Sh(d,s,o.subjectEl.classList.contains("fc-event-resizer-start"),g.range))),p&&(h=Bn(u,c.getCurrentData().eventUiBases,p,c),f.mutatedEvents=h,As(f,s.dateProfile,c)||(y=!0,p=null,h=null,f.mutatedEvents=null)),h?c.dispatch({type:"SET_EVENT_RESIZE",state:f}):c.dispatch({type:"UNSET_EVENT_RESIZE"}),y?un():fn(),l||(p&&Qt(d,s)&&(p=null),this.validMutation=p,this.mutatedRelevantEvents=h)},this.handleDragEnd=s=>{let{context:l}=this.component,o=this.eventRange.def,c=this.eventRange.instance,u=new L(l,o,c),d=this.relevantEvents,g=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:u,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let p=new L(l,g.defs[o.defId],c?g.instances[c.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:g});let h={oldEvent:u,event:p,relatedEvents:Oe(g,l,c),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:d})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},h),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||O(0),endDelta:this.validMutation.endDelta||O(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 lt(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let i=this.hitDragging=new Yt(this.dragging,Hn(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 W(e.subjectEl,".fc-event")}}function Sh(t,e,n,r){let i=t.context.dateEnv,s=t.dateSpan.range.start,l=e.dateSpan.range.start,o=ze(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 Ch{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=ui(r.origEvent);this.matchesCancel=!!W(s,i),this.matchesEvent=!!W(s,ot.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 gl(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 _h={fixedMirrorParent:E},wh={dateClick:E,eventDragStart:E,eventDragStop:E,eventDrop:E,eventResizeStart:E,eventResizeStop:E,eventResize:E,drop:E,eventReceive:E,eventLeave:E};Qn.dataAttrPrefix="";var Ah=pe({name:"@fullcalendar/interaction",componentInteractions:[ph,gh,ot,Eh],calendarInteractions:[Ch],elementDraggingImpl:lt,optionRefiners:_h,listenerRefiners:wh});const Dh={},Rh={t:"1672196428320",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3618",width:"200",height:"200"},kh=[a.createElementVNode("path",{d:"M384 250V134a70 70 0 0 0-70-70H134a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70z m-80-10H144v-96h160zM890 704H710a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70V774a70 70 0 0 0-70-70z m-10 176H720v-96h160zM890 384H710a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70V454a70 70 0 0 0-70-70z m-10 176H720v-96h160zM536 504H264v-80a40 40 0 0 0-40-40 40 40 0 0 0-40 40v432a40 40 0 0 0 40 40h312a40 40 0 0 0 40-40 40 40 0 0 0-40-40H264V584h272a40 40 0 0 0 40-40 40 40 0 0 0-40-40z","p-id":"3619","data-spm-anchor-id":"a313x.7781069.0.i2",class:"selected"},null,-1)];function Th(t,e){return a.openBlock(),a.createElementBlock("svg",Rh,kh)}const ur=ne(Dh,[["render",Th]]),xh={},Mh={t:"1672197639916",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19012"},Nh=[a.createElementVNode("path",{d:"M863.1 255.1H551.3c-25.1 0-49.2-9.8-67.1-27.4l-75-73.4c-17.9-17.5-42-27.4-67.1-27.4H161c-53 0-96 43-96 96v512.8c0 53 43 96 96 96h702c53 0 96-43 96-96V351.1c0.1-53-42.9-96-95.9-96z m-31 161.1c0 17.7-14.3 32-32 32H224c-17.7 0-32-14.3-32-32v-0.1c0-17.7 14.3-32 32-32h576.1c17.7 0 32 14.3 32 32v0.1z","p-id":"19013"},null,-1)];function Ih(t,e){return a.openBlock(),a.createElementBlock("svg",Mh,Nh)}const at=ne(xh,[["render",Ih]]),Oh={},Bh={t:"1672197222005",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"14755"},Vh=[a.createElementVNode("path",{d:"M959.68 921.024c-15.232-181.696-139.648-331.968-307.84-386.624 70.464-45.632 117.248-124.48 117.248-214.464C769.152 178.624 654.208 64 512.512 64 370.752 64 255.808 178.624 255.808 319.936c0 89.984 46.784 168.832 117.248 214.528-168.192 54.592-292.544 204.864-307.84 386.56-0.192 3.456-0.64 5.44 0 10.176C66.496 947.2 80.64 960 96.704 960c17.92 0 32.064-14.656 32.064-32 16.704-197.76 182.272-351.936 383.744-351.936 201.408 0 366.976 154.176 383.68 351.936 0 17.344 14.144 32 32.064 32 16.064 0 30.208-12.8 31.424-28.8C960.32 926.464 959.936 924.416 959.68 921.024zM320 319.936C320 213.952 406.208 128 512.512 128s192.448 85.952 192.448 191.936c0 106.048-86.144 192-192.448 192S320 425.984 320 319.936z","p-id":"14756"},null,-1)];function Hh(t,e){return a.openBlock(),a.createElementBlock("svg",Bh,Vh)}const Zt=ne(Oh,[["render",Hh]]),Ph={},Lh={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"},zh=[a.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),a.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)];function Uh(t,e){return a.openBlock(),a.createElementBlock("svg",Lh,zh)}const jh=ne(Ph,[["render",Uh]]),Fh={},Wh={t:"1672212880079",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19924"},Gh=[a.createElementVNode("path",{d:"M806.4 263.2l-45.6-45.6L512 467.2 263.2 217.6l-45.6 45.6L467.2 512 217.6 760.8l45.6 45.6L512 557.6l248.8 248.8 45.6-45.6L557.6 512z","p-id":"19925"},null,-1)];function $h(t,e){return a.openBlock(),a.createElementBlock("svg",Wh,Gh)}const qh=ne(Fh,[["render",$h]]),Yh={},Qh={t:"1672216076738",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"28376"},Zh=[a.createElementVNode("path",{d:"M501.937582 545.097053c147.891962 0 268.231366-118.534055 268.223274-264.288929 0-145.746783-120.330301-264.28994-268.222263-264.28994-147.890951 0-268.221252 118.584625-268.221252 264.28994C233.71633 426.520519 354.046631 545.097053 501.937582 545.097053zM612.471463 570.546911 411.497184 570.546911c-186.760063 0-338.664249 149.569875-338.664249 333.472733l0 19.794109c0 96.139636 149.47278 96.139636 338.664249 96.139636l200.974278 0c181.747565 0 338.694591 0 338.694591-96.139636l0-19.794109C951.164031 720.158252 799.235571 570.546911 612.471463 570.546911z","p-id":"28377"},null,-1)];function Xh(t,e){return a.openBlock(),a.createElementBlock("svg",Qh,Zh)}const $e=ne(Yh,[["render",Xh]]),Jh={},Kh={t:"1680231254898",class:"icon",viewBox:"0 0 1154 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9556"},ep=[a.createElementVNode("path",{d:"M1015.808 64.512q62.464 0 99.84 31.744t37.376 96.256l0 568.32q0 27.648-10.24 52.224t-28.16 43.008-41.984 29.184-50.688 10.752l-892.928 0q-26.624 0-50.176-10.24t-40.96-27.136-27.648-39.424-10.24-48.128l0-580.608q0-55.296 33.792-90.624t95.232-35.328l886.784 0zM287.744 253.952q-19.456 0-36.864 7.168t-30.72 19.968-20.992 30.72-7.68 38.4 7.68 37.888 20.992 30.72 30.72 20.992 36.864 7.68q21.504 0 39.424-7.68t30.72-20.992 20.48-30.72 7.68-37.888q0-41.984-27.648-69.12t-70.656-27.136zM448.512 608.256q0-19.456-7.68-37.376t-20.48-30.72-30.72-20.48-37.376-7.68l-128 0q-39.936 0-67.584 28.16t-27.648 68.096l0 4.096 0 92.16 319.488 0 0-92.16 0-4.096zM923.648 709.632q20.48 0 30.208-10.24t9.728-24.576-11.264-25.088-31.744-10.752l-305.152 0q-20.48 0-30.72 10.752t-10.24 25.088 10.24 24.576 29.696 10.24l309.248 0zM924.672 577.536q20.48 0 29.696-10.24t9.216-24.576q0-15.36-8.704-25.6t-29.184-10.24l-313.344 0q-20.48 0-29.696 10.24t-9.216 25.6q0 14.336 8.704 24.576t29.184 10.24l313.344 0zM925.696 447.488q15.36 0 26.624-10.24t11.264-24.576-11.264-23.04-26.624-8.704l-207.872 0q-15.36 0-26.112 8.704t-10.752 23.04 10.752 24.576 26.112 10.24l207.872 0z","p-id":"9557"},null,-1)];function tp(t,e){return a.openBlock(),a.createElementBlock("svg",Kh,ep)}const fr=ne(Jh,[["render",tp]]),np={},rp={t:"1698719360533",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15490",width:"200",height:"200"},ip=[a.createElementVNode("path",{d:"M960 704h-63.616v-167.392a32 32 0 0 0-32-32H544V416h160a32 32 0 0 0 32-32V96a32 32 0 0 0-32-32H320a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h160v88.608H161.984a32 32 0 0 0-32 31.968L129.792 704H64a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32H193.792l0.16-135.392H480V704h-64a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32h-64v-135.392h288.384V704H768a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32zM352 128h320v224H352V128zM224 896H96v-128h128v128z m352 0h-128v-128h128v128z m352 0h-128v-128h128v128z","p-id":"15491"},null,-1)];function sp(t,e){return a.openBlock(),a.createElementBlock("svg",rp,ip)}const ct=ne(np,[["render",sp]]),Sl={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"}},lp={class:"left-pick-list"},op={class:"post-view-list"},ap=["title"],cp={class:"ik-picker-single"},dp=["title"],up=a.defineComponent({__name:"PostList",props:Sl,emits:["change","check"],setup(t,{emit:e}){var g,p;const n=t,r=a.computed(()=>{var h,y;return((h=n.handList)==null?void 0:h.length)===((y=n.list)==null?void 0:y.length)}),i=a.computed(()=>{var f,v,C,_;const h=(f=n.handList)==null?void 0:f.length,y=(v=n.list)==null?void 0:v.length;return n.multiple?s.value=n.handList.map(R=>R[n.fixPropOpt.id]):l.value=(_=(C=n.handList)==null?void 0:C[0])==null?void 0:_[n.fixPropOpt.id],h>0&&h<y}),s=a.ref(n.handList.map(h=>h[n.fixPropOpt.id])),l=a.ref((p=(g=n.handList)==null?void 0:g[0])==null?void 0:p[n.fixPropOpt.id]),o=e,c=h=>{const y=h?n.list.map(f=>f[n.fixPropOpt.id]):[];o("change",y,h?n.list:[])},u=h=>{o("change",h,n.list)},d=h=>{o("change",h,n.list)};return(h,y)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createCommentVNode(" 遍历list多选 "),a.createElementVNode("div",lp,[h.multiple?(a.openBlock(),a.createBlock(a.unref(D.ElCheckbox),{key:0,modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=f=>r.value=f),indeterminate:i.value,onChange:c},{default:a.withCtx(()=>[a.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):a.createCommentVNode("v-if",!0),a.createElementVNode("ul",op,[h.multiple?(a.openBlock(),a.createBlock(a.unref(D.ElCheckboxGroup),{key:0,modelValue:s.value,"onUpdate:modelValue":y[1]||(y[1]=f=>s.value=f),onChange:u},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.list,f=>(a.openBlock(),a.createElementBlock("li",{key:f[n.fixPropOpt.id]},[a.createVNode(a.unref(D.ElCheckbox),{label:f[n.fixPropOpt.id]},{default:a.withCtx(()=>[a.createVNode(fr),a.createElementVNode("p",{title:f[n.fixPropOpt.name]},a.toDisplayString(f[n.fixPropOpt.name]),9,ap)]),_:2},1032,["label"])]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(a.unref(D.ElRadioGroup),{key:1,isIndeterminate:i.value,modelValue:l.value,"onUpdate:modelValue":y[2]||(y[2]=f=>l.value=f),onChange:d},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.list,f=>(a.openBlock(),a.createElementBlock("li",{class:"w-full",key:f[n.fixPropOpt.id]},[a.createVNode(a.unref(D.ElRadio),{label:f[n.fixPropOpt.id]},{default:a.withCtx(()=>[a.createElementVNode("div",cp,[a.createVNode(fr),a.createElementVNode("p",{title:f[n.fixPropOpt.name]},a.toDisplayString(f[n.fixPropOpt.name]),9,dp)])]),_:2},1032,["label"])]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])])],2112))}}),Zg="",fp=ne(up,[["__scopeId","data-v-a87521f6"]]),hp={class:"left-pick-list"},pp={class:"role-view-list"},gp=["title"],mp={class:"ik-picker-single"},vp=["title"],yp=a.defineComponent({__name:"RoleList",props:Sl,emits:["change","check"],setup(t,{emit:e}){var g,p;const n=t,r=a.computed(()=>{var h,y;return((h=n.handList)==null?void 0:h.length)===((y=n.list)==null?void 0:y.length)}),i=a.computed(()=>{var f,v,C,_;const h=(f=n.handList)==null?void 0:f.length,y=(v=n.list)==null?void 0:v.length;return n.multiple?s.value=n.handList.map(R=>R[n.fixPropOpt.id]):l.value=(_=(C=n.handList)==null?void 0:C[0])==null?void 0:_[n.fixPropOpt.id],h>0&&h<y}),s=a.ref(n.handList.map(h=>h[n.fixPropOpt.id])),l=a.ref((p=(g=n.handList)==null?void 0:g[0])==null?void 0:p[n.fixPropOpt.id]),o=e,c=h=>{const y=h?n.list.map(f=>f[n.fixPropOpt.id]):[];o("change",y,h?n.list:[])},u=h=>{o("change",h,n.list)},d=h=>{o("change",h,n.list)};return(h,y)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createCommentVNode(" 遍历list多选 "),a.createElementVNode("div",hp,[h.multiple?(a.openBlock(),a.createBlock(a.unref(D.ElCheckbox),{key:0,modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=f=>r.value=f),indeterminate:i.value,onChange:c},{default:a.withCtx(()=>[a.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):a.createCommentVNode("v-if",!0),a.createElementVNode("ul",pp,[h.multiple?(a.openBlock(),a.createBlock(a.unref(D.ElCheckboxGroup),{key:0,modelValue:s.value,"onUpdate:modelValue":y[1]||(y[1]=f=>s.value=f),onChange:u},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.list,f=>(a.openBlock(),a.createElementBlock("li",{key:f[h.fixPropOpt.id]},[a.createVNode(a.unref(D.ElCheckbox),{label:f[h.fixPropOpt.id],value:f[h.fixPropOpt.id],disabled:f.disabled},{default:a.withCtx(()=>[a.createVNode($e),a.createElementVNode("p",{title:f[h.fixPropOpt.name]},a.toDisplayString(f[h.fixPropOpt.name]),9,gp)]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(a.unref(D.ElRadioGroup),{key:1,indeterminate:i.value,modelValue:l.value,"onUpdate:modelValue":y[2]||(y[2]=f=>l.value=f),onChange:d},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.list,f=>(a.openBlock(),a.createElementBlock("li",{class:"w-full",key:f[h.fixPropOpt.id]},[a.createVNode(a.unref(D.ElRadio),{label:f[h.fixPropOpt.id],value:f[h.fixPropOpt.id],disabled:f.disabled},{default:a.withCtx(()=>[a.createElementVNode("div",mp,[a.createVNode($e),a.createElementVNode("p",{title:f[h.fixPropOpt.name]},a.toDisplayString(f[h.fixPropOpt.name]),9,vp)])]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["indeterminate","modelValue"]))])])],2112))}}),Xg="",bp=ne(yp,[["__scopeId","data-v-a51e0920"]]);var $=(t=>(t.org="organization",t.dep="dep",t.user="user",t.role="role",t.post="post",t.dep_user="dep_user",t))($||{}),dt=(t=>(t.group="group",t.role="role",t.post="post",t))(dt||{});const we={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:25,bottom:8,background:"#0000"}},Ep={topLink:{type:Boolean,default:!0},children:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},pid:{type:String,default:""},orgPid:{type:String,default:"root"},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},organizationList:{type:Array,default:()=>[]},depList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:t=>{if(t===void 0)return!0;if(Array.isArray(t)){if(!(t!=null&&t.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},showDep:{type:Boolean,default:!0},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer iking"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},cache:{type:Boolean,default:!0},placeholder:{type:String,default:"模糊搜索组织、人员、角色、岗位"},emptyText:{type:String,default:"暂无数据"}},Cl=t=>{const e=window.location.search;return new URLSearchParams(e).get(t)},Sp=t=>{const e=j.ikStore.local.getItem("x_domain");e&&(t["X-DOMAIN"]=e)},Cp=t=>{var r;const e=Cl("domain");if(e){t["X-DOMAIN"]=e;const i=Cl("code");e==="APPLICATION"&&(t["X-APP"]=i)}else Sp(t);const n=(r=j.ikStore.local.getItem("tenant"))==null?void 0:r.code;n&&(t["X-TENANT"]=n)},_p=(t,e)=>{const n=a.ref([]),r=async(s,l,o)=>{var q,ie;const{url:c,methods:u,headers:d,param:g}=t.value||{},p={parentOrgId:s,...g||{},parentDepartmentId:l||"",name:o||""},h={method:u,url:c,headers:{"Content-Type":"application/json;charset=UTF-8",...d},data:JSON.stringify(p)};Cp(h.headers);const y=await Nl(h),{success:f,data:v}=y.data;if(!f)return{depList:[],roleList:[],postList:[],userList:[],organizationList:[],rootOrganization:{},rootDepartment:{}};const{departments:C,roles:_,posts:R,users:k,organizations:B,rootOrganization:I,rootDepartment:w}=v,N=I||w;return n.value[0]=e.org?{...e.org,id:e.elementId,elementType:(ie=(q=e.org)==null?void 0:q.elementType)==null?void 0:ie.toLocaleUpperCase()}:{...N,id:N.elementId},{depList:j._.cloneDeep(C),roleList:j._.cloneDeep(_),postList:j._.cloneDeep(R),userList:j._.cloneDeep(k),organizationList:j._.cloneDeep(B),rootOrganization:I,rootDepartment:w}};return{handData:r,handSetChild:(s,l)=>{r(s==null?void 0:s.elementId,l)},bannerList:n}},wp={shadow:"hover",class:"sel-list"},Ap={key:0},Dp={key:0,class:"check-all"},Rp={key:0,class:"view-list"},kp={key:0,class:"filter-user"},Tp=["title"],xp={class:"filter-user"},Mp=["title"],Np={key:2,class:"next-child"},Ip={class:"filter-user"},Op=["title"],Bp={key:1,class:"filter-user"},Vp=["title"],Hp={key:2,class:"next-child"},Pp={class:"text-over-flow"},Lp=["title"],zp=["title"],Up={key:2,class:"next-child"},jp={key:1,class:"empty"},Fp=a.createElementVNode("div",{class:"split-div"},null,-1),Wp={class:"choose-list"},Gp={class:"choose-item"},$p=a.createElementVNode("div",null,"已选",-1),qp={class:"dialog-footer"},Yp=a.defineComponent({__name:"picker",props:Ep,emits:["handChild","update:show","update:modelValue","ok","search"],setup(t,{expose:e,emit:n}){a.useCssVars(S=>({"06538f00":br.value}));const r=t,i=a.ref(""),s=a.ref(""),l=a.ref(""),o=a.ref([]),c=a.ref([]),u=a.ref([]),d=a.ref([]),g=a.ref([]),p=a.ref(!1),h=r.imageBaseUrl||`${location.origin}/server/oss/download?fileUrl=`,y=S=>S?S.startsWith("http")?S:`${h}${S}`:"";a.watch(()=>r.api,()=>{r.show&&ie("")});const f=a.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...r.propOption})),v=a.computed(()=>({dep:"DEPT",user:"USER",role:"ROLE",post:"POST",organization:"ORGANIZATION",...r.typeOption})),C=a.ref([]),_=_p(a.toRef(r,"api"),r),R=_.handData,k=_.bannerList;r.immediate&&R(l.value,s.value,i.value);const B=S=>(S.forEach(A=>{var b,T;A.disabled=((T=(b=r.modelValue)==null?void 0:b.find(U=>U[f.value.id]===A[f.value.id]))==null?void 0:T.disabled)||!1}),S),I=async()=>{var S,A,b,T,U,me,Qe,ht,xl;p.value=!0;try{if((S=r.depList)!=null&&S.length||(A=r.userList)!=null&&A.length||(b=r.roleList)!=null&&b.length||(T=r.postList)!=null&&T.length){o.value=(U=r.userList)==null?void 0:U.filter(se=>se[f.value.name].includes(i.value)),c.value=(me=r.depList)==null?void 0:me.filter(se=>se[f.value.name].includes(i.value)),u.value=(Qe=r.roleList)==null?void 0:Qe.filter(se=>se[f.value.name].includes(i.value)),d.value=(ht=r.postList)==null?void 0:ht.filter(se=>se[f.value.name].includes(i.value)),g.value=(xl=r.organizationList)==null?void 0:xl.filter(se=>se[f.value.name].includes(i.value)),mr(),p.value=!1;return}const Y=await R(l.value,s.value,i.value);try{o.value=B((Y==null?void 0:Y.userList)||[]),c.value=B((Y==null?void 0:Y.depList)||[]),u.value=B((Y==null?void 0:Y.roleList)||[]),d.value=B((Y==null?void 0:Y.postList)||[]),g.value=B((Y==null?void 0:Y.organizationList)||[])}catch(se){p.value=!1,console.info("error: ",se)}mr(),p.value=!1}catch{p.value=!1}},w=a.reactive({org:new Map,dep:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),N=a.reactive({indeterminate:!1,checkAll:0}),q=S=>w.org.has(S)||w.dep.has(S)||w.user.has(S)||w.role.has(S)||w.post.has(S),ie=j.ikEvent.debounce(I,300),ge=a.computed(()=>{const S=Array.from(w.org.values()),A=Array.from(w.dep.values()),b=Array.from(w.role.values()),T=Array.from(w.user.values()),U=Array.from(w.post.values());return C.value=[...S,...A,...b,...U,...T],{list:[...S,...A,...b,...T,...U],org:{list:S,len:S.length,deps:S},dep:{list:A,len:A.length,deps:A},role:{list:b,len:b.length},user:{list:T,len:T.length},post:{list:U,len:U.length}}}),F=a.computed(()=>{const S=r.chooseType.map(b=>b.toLocaleLowerCase());let A=[...S];return S.includes("dep")&&(A=[...A,"organization","dept"]),S.includes("dep_user")&&(A=[...A,"user"]),A}),wl=a.computed(()=>F.value.includes($.dep)&&!F.value.includes($.user)&&!F.value.includes($.org)),hr=a.computed(()=>F.value.includes($.user)&&!F.value.includes($.dep)&&!F.value.includes($.org)),bg=a.computed(()=>F.value.includes($.org)&&!F.value.includes($.dep)&&!F.value.includes($.user)),Eg=a.computed(()=>!k.value.length),pr=a.computed(()=>!r.max||ge.value.list.length<r.max),Sg=S=>[v.value.dep,v.value.organization].includes(S[f.value.type])?S.hasOwnProperty("disabled"):!1,ee=a.ref([]),Cg=S=>{ee.value=S,ee.value.forEach(A=>{A.readonly=A==null?void 0:A.disabled})},Xt=n,gr=a.ref(!1),mr=(S=!1)=>{var b;const A=(b=r==null?void 0:r.userList)!=null&&b.length?j._.cloneDeep([...r==null?void 0:r.organizationList,...r==null?void 0:r.userList,...r==null?void 0:r.depList]):[...g.value,...c.value,...o.value];return!S&&Cg(A),A};a.watch(()=>r.show,async S=>{var A;if(gr.value=S,S){s.value=r.pid,l.value=((A=r.org)==null?void 0:A.elementId)||r.orgPid,!r.userList.length&&!r.depList.length&&!r.roleList.length&&!r.postList.length&&!r.organizationList.length?await I():(o.value=r.userList,c.value=r.depList,u.value=r.roleList,d.value=r.postList,g.value=r.organizationList),w.trans=[],N.checkAll=0,N.indeterminate=!1;const b=mr(!0);for(const U of b)q(U[f.value.id])&&w.trans.push(U[f.value.id]);const T=b.length===w.trans.length;N.indeterminate=!!(b.length&&!T),N.checkAll=Number(b.length&&T),a.nextTick(()=>{var U;(U=r.modelValue)!=null&&U.length?r.modelValue.forEach(me=>{ft(me),r.multiple?w.trans.push(me[f.value.id]):w.single=me[f.value.id]}):Ye()})}else Ye()}),a.watchEffect(()=>{let S;if(wl.value||hr.value){const b=o.value.length,T=c.value.length;S=wl.value?T:hr.value?b:b+b}else S=ee.value.length;const A=w.trans.length;N.indeterminate=w.trans.length?A!==S:!1,N.checkAll=+(S!==0&&A===S)});const qe=S=>{if(S){if(w.single="",S[f.value.id]){const A=w.trans.findIndex(b=>b===S[f.value.id]);A!==-1&&w.trans.splice(A,1)}switch(S[f.value.type]){case v.value.dep:return w.dep.delete(S[f.value.id]);case v.value.user:return w.user.delete(S[f.value.id]);case v.value.role:return w.role.delete(S[f.value.id]);case v.value.post:return w.post.delete(S[f.value.id]);case v.value.organization:return w.org.delete(S[f.value.id]);default:return}}},Al=S=>{qe(S)},ft=S=>{if(!q(S[f.value.id])){const A={...S};switch(S[f.value.type]){case v.value.dep:return w.dep.set(S[f.value.id],A);case v.value.user:return w.user.set(S[f.value.id],A);case v.value.role:return w.role.set(S[f.value.id],A);case v.value.post:return w.post.set(S[f.value.id],A);case v.value.organization:return w.org.set(S[f.value.id],A);default:return}}};a.watch(()=>w.trans,S=>{if(!S.length)ee.value.forEach(A=>{A.disabled=!1;try{r.multiple&&qe(A)}catch{}});else{const A=ee.value.filter(T=>!S.includes(T[f.value.id]));for(const T of A)T.disabled=!1,r.multiple&&qe(T);const b=ee.value.filter(T=>S.includes(T[f.value.id]));for(const T of b)T.disabled=Sg(T),ft(T)}},{deep:!0}),a.watch(()=>w.single,S=>{if(S){const A=ee.value.find(b=>b[f.value.id]===S);A&&(w.dep.clear(),w.user.clear(),w.role.clear(),w.post.clear(),w.org.clear(),w.trans=[],a.nextTick(()=>{ft(A)}))}});const Dl=S=>{if(S){let A=[];if(F.value.includes("dep")||F.value.includes("dep_user")){const b=ee.value.filter(T=>T[f.value.type].toLocaleUpperCase()===v.value[$.dep].toLocaleUpperCase());A=[...A,...b]}if(F.value.includes("user")||F.value.includes("dep_user")){const b=ee.value.filter(T=>T[f.value.type].toLocaleUpperCase()===v.value[$.user].toLocaleUpperCase());A=[...A,...b]}if(F.value.includes("organization")){const b=ee.value.filter(T=>T[f.value.type].toLocaleUpperCase()===v.value[$.org].toLocaleUpperCase());A=[...A,...b]}A.forEach(b=>{!w.trans.includes(b[f.value.id])&&w.trans.push(b[f.value.id])})}else ee.value.forEach(A=>{const b=w.trans.findIndex(T=>T===A[f.value.id]);b>=0&&w.trans.splice(b,1)})},vr=S=>{S[f.value.type]===v.value.organization?(l.value=S==null?void 0:S.elementId,s.value=""):(l.value="",s.value=S==null?void 0:S.elementId),I(),k.value.push(S)},_g=()=>{const S=k.value.length-2,A=S<0?0:S,b=k.value[A];b[f.value.type]===v.value.organization?(l.value=S<0?"root":(b==null?void 0:b.elementId)||(b==null?void 0:b.id),s.value=""):(l.value="",s.value=S<0?"":(b==null?void 0:b.elementId)||(b==null?void 0:b.id)),I(),k.value.pop()},yr=a.computed(()=>k.value.length),wg=(S,A)=>{!A&&!r.topLink||A!==yr.value-1&&(S[f.value.type]===v.value.organization?(l.value=S==null?void 0:S.elementId,s.value=""):(l.value="",s.value=S==null?void 0:S.elementId),I(),k.value.splice(A+1))},Ag=a.computed(()=>r.chooseType.includes("role")&&r.chooseType.length===1),Dg=a.computed(()=>r.chooseType.includes("post")&&r.chooseType.length===1),Jt=a.ref(r.tabs[0]),Ve=a.ref(r.tabs[0]);a.watchEffect(()=>(Ve.value=Ag.value?r.tabs[1]:Dg.value?r.tabs[2]:Jt.value,Ve.value));const Ye=()=>{var S;w.dep.clear(),w.user.clear(),w.role.clear(),w.post.clear(),w.org.clear(),w.trans=[],Er.value=[],Sr.value=[],Jt.value=r.tabs[0],Ve.value=r.tabs[0],i.value="",s.value=r.pid,l.value=((S=r.org)==null?void 0:S.elementId)||r.orgPid,w.single="",C.value=[]},Rg=()=>{var S;Xt("ok",j._.cloneDeep({...ge.value,sort:C.value})),Xt("update:modelValue",j._.cloneDeep(((S=ge.value)==null?void 0:S.list)||[])),Xt("update:show",!1),Ye()},Rl=()=>{Xt("update:show",!1),Ye()};e({handClear:Ye,handRomeve:Al,handDelete:qe});const kg=a.computed(()=>{const S=F.value;return!!((S.includes("post")||S.includes("role"))&&S.length>1)}),Tg=a.computed(()=>[{label:"group",name:"组织架构"},{label:"role",name:"角色列表"},{label:"post",name:"岗位列表"}].filter(S=>r.tabs.includes(S.label))),kl=a.computed(()=>`${(typeof r.width=="string"?Number.parseInt(r.width):r.width)/2-30}px`),br=a.computed(()=>`${typeof r.height=="string"?Number.parseInt(r.height):r.height}px`),Tl=()=>{r.multiple||(w.post.clear(),w.role.clear(),w.user.clear(),w.dep.clear(),w.single="")},Er=a.ref([]),xg=(S,A)=>{r.multiple||(w.single="");const b=r.multiple?S:[S];if(!b.length){w.role.clear();return}Tl(),A.forEach(T=>{b!=null&&b.includes(T[f.value.id])?ft(T):qe(T)})};a.watch(()=>ge.value.role.len,S=>{Er.value=j._.cloneDeep(ge.value.role.list)});const Sr=a.ref([]),Mg=(S,A)=>{r.multiple||(w.single="");const b=r.multiple?S:[S];if(!b.length){w.post.clear();return}Tl(),A.forEach(T=>{b!=null&&b.includes(T[f.value.id])?ft(T):qe(T)})};return a.watch(()=>ge.value.post.len,S=>{Sr.value=j._.cloneDeep(ge.value.post.list)}),a.watch(()=>i.value,S=>{ie("")}),(S,A)=>(a.openBlock(),a.createBlock(a.unref(D.ElDialog),{modelValue:gr.value,"onUpdate:modelValue":A[6]||(A[6]=b=>gr.value=b),title:S.title,"destroy-on-close":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof S.width=="string"?S.width:`${S.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal",onClose:Rl},{footer:a.withCtx(()=>[a.createElementVNode("span",qp,[a.createVNode(a.unref(D.ElButton),{onClick:a.withModifiers(Rl,["stop"])},{default:a.withCtx(()=>[a.createTextVNode("取消")]),_:1}),a.createVNode(a.unref(D.ElButton),{type:"primary",onClick:a.withModifiers(Rg,["stop"])},{default:a.withCtx(()=>[a.createTextVNode(" 确定 ")]),_:1})])]),default:a.withCtx(()=>[a.createElementVNode("div",{class:"dep-use-picker",style:a.normalizeStyle({height:br.value})},[a.createElementVNode("div",wp,[a.createElementVNode("div",null,[a.createVNode(a.unref(D.ElInput),{modelValue:i.value,"onUpdate:modelValue":A[0]||(A[0]=b=>i.value=b),clearable:"",placeholder:S.placeholder,"prefix-icon":jh,style:a.normalizeStyle({width:kl.value})},null,8,["modelValue","placeholder","style"]),kg.value?(a.openBlock(),a.createBlock(a.unref(D.ElRadioGroup),{key:0,modelValue:Jt.value,"onUpdate:modelValue":A[1]||(A[1]=b=>Jt.value=b),class:"ik-picker-tab",style:a.normalizeStyle({width:kl.value})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Tg.value,b=>(a.openBlock(),a.createBlock(a.unref(D.ElRadioButton),{label:b.label,key:b.label},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(b.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","style"])):a.createCommentVNode("v-if",!0)]),a.createCommentVNode(" 过滤 "),Ve.value===a.unref(dt).group?(a.openBlock(),a.createElementBlock("div",Ap,[a.createCommentVNode(" 面包屑 全选 "),a.createVNode(a.unref(D.ElBreadcrumb),{separator:">",class:a.normalizeClass(["banner",{"top-unlink":!S.topLink}])},{default:a.withCtx(()=>[yr.value?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(a.unref(k),(b,T)=>(a.openBlock(),a.createBlock(a.unref(D.ElBreadcrumbItem),{key:b[f.value.id],onClick:a.withModifiers(U=>wg(b,T),["stop"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(b[f.value.name]),1)]),_:2},1032,["onClick"]))),128)):a.createCommentVNode("v-if",!0)]),_:1},8,["class"]),a.createCommentVNode(" 全选框 "),S.multiple?(a.openBlock(),a.createElementBlock("div",Dp,[a.createVNode(a.unref(D.ElCheckbox),{modelValue:N.checkAll,"onUpdate:modelValue":A[2]||(A[2]=b=>N.checkAll=b),indeterminate:N.indeterminate,"true-label":1,"false-label":0,disabled:!S.multiple,onChange:Dl,onInput:Dl},{default:a.withCtx(()=>[a.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate","disabled"]),yr.value>1?a.withDirectives((a.openBlock(),a.createBlock(a.unref(D.ElButton),{key:0,link:"",type:"primary",onClick:a.withModifiers(_g,["stop"])},{default:a.withCtx(()=>[a.createTextVNode("上一级")]),_:1},512)),[[a.vShow,!Eg.value]]):a.createCommentVNode("v-if",!0)])):a.createCommentVNode("v-if",!0)])):a.createCommentVNode("v-if",!0),a.createCommentVNode(" 左侧列表 "),a.createCommentVNode(" 部门&人员 "),Ve.value===a.unref(dt).group?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[ee.value.length?a.withDirectives((a.openBlock(),a.createElementBlock("ul",Rp,[a.createCommentVNode(" +++++++++++++++++++++++ 多选 ++++++++++++++++++++++ "),S.multiple?(a.openBlock(),a.createBlock(a.unref(D.ElCheckboxGroup),{key:0,modelValue:w.trans,"onUpdate:modelValue":A[3]||(A[3]=b=>w.trans=b)},{default:a.withCtx(()=>[a.createCommentVNode(" <template> "),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(g.value,b=>(a.openBlock(),a.createElementBlock("li",{key:b[f.value.id]},[F.value.includes(a.unref($).org)?(a.openBlock(),a.createBlock(a.unref(D.ElCheckbox),{key:1,label:b[f.value.id],disabled:!pr.value||(b==null?void 0:b.readonly)},{default:a.withCtx(()=>[a.createElementVNode("div",xp,[a.createCommentVNode(" 部门icon前缀 "),a.createVNode(ct),a.createElementVNode("p",{title:b[f.value.name]},a.toDisplayString(b[f.value.name]),9,Mp)])]),_:2},1032,["label","disabled"])):(a.openBlock(),a.createElementBlock("div",kp,[a.createCommentVNode(" 部门icon前缀 "),a.createVNode(ct),a.createElementVNode("p",{title:b[f.value.name]},a.toDisplayString(b[f.value.name]),9,Tp)])),S.children?(a.openBlock(),a.createElementBlock("div",Np,[[v.value.organization,v.value.dep,v.value.role].includes(b[f.value.type])?(a.openBlock(),a.createBlock(a.unref(D.ElButton),{key:0,link:"",type:"primary",onClick:a.withModifiers(T=>vr(b),["stop"]),disabled:b.disabled},{icon:a.withCtx(()=>[a.createVNode(ur)]),default:a.withCtx(()=>[a.createTextVNode(" 下级 ")]),_:2},1032,["onClick","disabled"])):a.createCommentVNode("v-if",!0)])):a.createCommentVNode("v-if",!0)]))),128)),a.createCommentVNode(" </template> "),(!hr.value||S.showDep)&&!bg.value?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(c.value,b=>(a.openBlock(),a.createElementBlock("li",{key:b[f.value.id]},[S.chooseType.includes(a.unref($).dep)||S.chooseType.includes(a.unref($).dep_user)?(a.openBlock(),a.createBlock(a.unref(D.ElCheckbox),{key:0,label:b[f.value.id],disabled:!pr.value||(b==null?void 0:b.readonly)},{default:a.withCtx(()=>[a.createElementVNode("div",Ip,[a.createCommentVNode(" 部门icon前缀 "),a.createVNode(at),a.createElementVNode("p",{title:b[f.value.name]},a.toDisplayString(b[f.value.name]),9,Op)])]),_:2},1032,["label","disabled"])):(a.openBlock(),a.createElementBlock("div",Bp,[a.createCommentVNode(" 部门icon前缀 "),a.createVNode(at),a.createElementVNode("p",{title:b[f.value.name]},a.toDisplayString(b[f.value.name]),9,Vp)])),S.children?(a.openBlock(),a.createElementBlock("div",Hp,[[v.value.dep,v.value.role].includes(b[f.value.type])?(a.openBlock(),a.createBlock(a.unref(D.ElButton),{key:0,link:"",type:"primary",onClick:a.withModifiers(T=>vr(b),["stop"]),disabled:b.disabled},{icon:a.withCtx(()=>[a.createVNode(ur)]),default:a.withCtx(()=>[a.createTextVNode(" 下级 ")]),_:2},1032,["onClick","disabled"])):a.createCommentVNode("v-if",!0)])):a.createCommentVNode("v-if",!0)]))),128)):a.createCommentVNode("v-if",!0),S.chooseType.includes("user")||S.chooseType.includes("dep_user")?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(o.value,b=>(a.openBlock(),a.createElementBlock("li",{key:b[f.value.id]},[a.createVNode(a.unref(D.ElCheckbox),{label:b[f.value.id],disabled:!pr.value||(b==null?void 0:b.readonly)},{default:a.withCtx(()=>{var T,U;return[a.createCommentVNode(" icon前缀 "),v.value.dep===b[f.value.type]?(a.openBlock(),a.createBlock($e,{key:0})):v.value.user===b[f.value.type]?(a.openBlock(),a.createBlock(a.unref(D.ElAvatar),{key:1,size:30,src:y((T=f.value)!=null&&T.avatar?b[(U=f.value)==null?void 0:U.avatar]:""),icon:Zt},null,8,["src"])):a.createCommentVNode("v-if",!0),a.createElementVNode("span",Pp,a.toDisplayString(b[f.value.name]),1)]}),_:2},1032,["label","disabled"])]))),128)):a.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createCommentVNode(" +++++++++++++++++++++++ 单选 ++++++++++++++++++++++ "),a.createVNode(a.unref(D.ElRadioGroup),{modelValue:w.single,"onUpdate:modelValue":A[4]||(A[4]=b=>w.single=b)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ee.value,b=>{var T,U,me;return a.openBlock(),a.createElementBlock("li",{key:b[f.value.id]},[F.value.includes((T=b[f.value.type])==null?void 0:T.toLocaleLowerCase())?(a.openBlock(),a.createBlock(a.unref(D.ElRadio),{key:0,label:b[f.value.id],class:a.normalizeClass({readonly:![v.value.organization,v.value.dep,v.value.user].includes(b[f.value.type]),"w-full":!0}),disabled:b.readonly},{default:a.withCtx(()=>{var Qe,ht;return[a.createCommentVNode(" 部门icon前缀 "),v.value.organization===b[f.value.type]?(a.openBlock(),a.createBlock(ct,{key:0})):v.value.dep===b[f.value.type]?(a.openBlock(),a.createBlock(at,{key:1})):v.value.role===b[f.value.type]?(a.openBlock(),a.createBlock($e,{key:2})):v.value.user===b[f.value.type]?(a.openBlock(),a.createBlock(a.unref(D.ElAvatar),{key:3,size:30,src:y((Qe=f.value)!=null&&Qe.avatar?b[(ht=f.value)==null?void 0:ht.avatar]:""),icon:Zt},null,8,["src"])):a.createCommentVNode("v-if",!0),a.createElementVNode("span",{class:"text-over-flow",title:b[f.value.name]},a.toDisplayString(b[f.value.name]),9,Lp)]}),_:2},1032,["label","class","disabled"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[v.value.organization===b[f.value.type]?(a.openBlock(),a.createBlock(ct,{key:0})):v.value.dep===b[f.value.type]?(a.openBlock(),a.createBlock(at,{key:1})):v.value.role===b[f.value.type]?(a.openBlock(),a.createBlock($e,{key:2})):v.value.user===b[f.value.type]?(a.openBlock(),a.createBlock(a.unref(D.ElAvatar),{key:3,size:30,src:y((U=f.value)!=null&&U.avatar?b[(me=f.value)==null?void 0:me.avatar]:""),icon:Zt},null,8,["src"])):a.createCommentVNode("v-if",!0),a.createElementVNode("span",{class:"text-over-flow",title:b[f.value.name]},a.toDisplayString(b[f.value.name]),9,zp)],64)),S.children?(a.openBlock(),a.createElementBlock("div",Up,[[v.value.organization,v.value.dep,v.value.role].includes(b[f.value.type])?(a.openBlock(),a.createBlock(a.unref(D.ElButton),{key:0,link:"",type:"primary",onClick:a.withModifiers(Qe=>vr(b),["stop"])},{icon:a.withCtx(()=>[a.createVNode(ur)]),default:a.withCtx(()=>[a.createTextVNode(" 下级 ")]),_:2},1032,["onClick"])):a.createCommentVNode("v-if",!0)])):a.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["modelValue"])],2112))])),[[a.unref(D.vLoading),p.value]]):(a.openBlock(),a.createElementBlock("div",jp,a.toDisplayString(S.emptyText),1))],64)):Ve.value===a.unref(dt).role?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createCommentVNode(" 角色 "),a.withDirectives(a.createVNode(bp,{fixPropOpt:f.value,list:u.value,max:S.max,multiple:S.multiple,"hand-list":Er.value,onChange:xg},null,8,["fixPropOpt","list","max","multiple","hand-list"]),[[a.unref(D.vLoading),p.value]])],64)):Ve.value===a.unref(dt).post?(a.openBlock(),a.createElementBlock(a.Fragment,{key:3},[a.createCommentVNode(" 岗位 "),a.withDirectives(a.createVNode(fp,{fixPropOpt:f.value,list:d.value,max:S.max,multiple:S.multiple,"hand-list":Sr.value,onChange:Mg},null,8,["fixPropOpt","list","max","multiple","hand-list"]),[[a.unref(D.vLoading),p.value]])],64)):a.createCommentVNode("v-if",!0)]),Fp,a.createCommentVNode(" 已选列表 "),a.createElementVNode("div",Wp,[a.createElementVNode("div",Gp,[$p,a.createVNode(a.unref(D.ElButton),{type:"primary",link:"",onClick:a.withModifiers(Ye,["stop"])},{default:a.withCtx(()=>[a.createTextVNode("清空")]),_:1})]),a.createCommentVNode(" 已选列表可拖拽 "),a.createVNode(a.unref(Ml),{tag:"ul",name:"fade","item-key":"elementId",modelValue:C.value,"onUpdate:modelValue":A[5]||(A[5]=b=>C.value=b),style:a.normalizeStyle({height:`calc(${br.value} + 21px)`}),animation:a.unref(we).animation,group:a.unref(we).group,disabled:a.unref(we).disabled,ghostClass:a.unref(we).ghostClass,forceFallback:a.unref(we).ghostClass},{item:a.withCtx(({element:b})=>[a.createVNode(a.Transition,{type:"transition",name:"flip-list"},{default:a.withCtx(()=>[a.createElementVNode("li",{class:a.normalizeClass(["list-group-item"]),style:a.normalizeStyle({borderRadius:`${a.unref(we).itemStyle.radius}px`,marginBottom:`${a.unref(we).itemStyle.bottom}px`,backgroundColor:`${a.unref(we).itemStyle.background}`})},[a.createElementVNode("div",null,[a.createCommentVNode(" 部门icon前缀 "),v.value.organization===b[f.value.type]?(a.openBlock(),a.createBlock(ct,{key:0})):a.createCommentVNode("v-if",!0),v.value.dep===b[f.value.type]?(a.openBlock(),a.createBlock(at,{key:1})):v.value.role===b[f.value.type]?(a.openBlock(),a.createBlock($e,{key:2})):v.value.post===b[f.value.type]?(a.openBlock(),a.createBlock(fr,{key:3})):v.value.user===b[f.value.type]?(a.openBlock(),a.createBlock(a.unref(D.ElAvatar),{key:4,size:30,src:y(f.value.avatar?b[f.value.avatar]:""),icon:Zt},null,8,["src"])):a.createCommentVNode("v-if",!0),a.createElementVNode("span",null,a.toDisplayString(b[f.value.name]),1)]),a.withDirectives(a.createVNode(qh,{class:"close",onClick:a.withModifiers(T=>Al(b),["stop"])},null,8,["onClick"]),[[a.vShow,!(b!=null&&b.readonly)]])],4)]),_:2},1024)]),_:1},8,["modelValue","style","animation","group","disabled","ghostClass","forceFallback"])])],4)]),_:1},8,["modelValue","title","width"]))}}),Jg="",Qp=Cr(Yp);let Zp=0,Xp=new Date().toISOString().replace(/T.*$/,"");const Jp=[{id:Kp(),title:"All-day event",start:Xp}];function Kp(){return String(Zp++)}const ut=t=>(a.pushScopeId("data-v-5b784b52"),t=t(),a.popScopeId(),t),eg={class:"demo-app"},tg={class:"demo-app-main"},ng={class:"title-line"},rg=["title","onClick"],ig={key:0,style:{width:"90%"}},sg=ut(()=>a.createElementVNode("span",{class:"to"},"至",-1)),lg={key:1,style:{width:"90%"}},og=ut(()=>a.createElementVNode("span",{class:"to"},"至",-1)),ag={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},cg={key:0,style:{"margin-left":"2%"}},dg=ut(()=>a.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),ug={key:1},fg=ut(()=>a.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),hg={key:0,class:"placeholder"},pg={class:"info"},gg=ut(()=>a.createElementVNode("img",{src:"https://img1.baidu.com/it/u=1960110688,1786190632&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281",alt:""},null,-1)),mg={class:"dialog-footer"},vg={name:"IkApprovalProcess"},yg=a.defineComponent({...vg,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(t,{emit:e}){const n=e,r=f=>{if(o.selectInfo=f,s(),f.view.type=="dayGridMonth"){let C=f.end.getTime()-864e5;o.timeType="month",o.form.startDate=j.ikDate.toYMD(f.start),o.form.endDate=j.ikDate.toYMD(new Date(C))}else f.view.type=="timeGridWeek"?(o.timeType="week",o.form.startDate=j.ikDate.toYMDHM(f.start),o.form.endDate=j.ikDate.toYMDHM(f.end)):f.view.type=="timeGridDay"&&(o.timeType="day",o.form.startDate=j.ikDate.toYMD(f.start),o.form.endDate=j.ikDate.toYMD(f.start),o.form.startTime=j.ikDate.toDateTime(f.start),o.form.endTime=j.ikDate.toDateTime(f.end));f.view.calendar.unselect(),a.nextTick(()=>{o.title="新建日程",o.dialogVisible=!0})},i=(f,v)=>{o.title="修改日程",o.dialogVisible=!0},s=f=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:f||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(_=>{_.json().then(R=>{const{success:k,data:B}=R;if(!k)return;const{departments:I,users:w,roles:N,posts:q}=B;o.depList=I,o.userList=w,o.roleList=N,o.postList=q})}).catch(_=>{console.info("error: ",_)})},l=f=>{o.currentEvents=f},o=a.reactive({allDay:!1,dialogVisible:!1,form:{title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},formRef:null,title:"新建日程",timeType:"month",handList:[],isShow:!1,depList:[],userList:[],roleList:[],postList:[],selectInfo:{},calendarOptions:{locale:qu,plugins:[bf,rh,Ah],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:Jp,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:r,eventClick:f=>i(),eventsSet:l},currentEvents:[]}),c=()=>{var f;(f=o.formRef)==null||f.resetFields(),o.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},o.dialogVisible=!1},u=async()=>{var C,_,R,k;let f=(_=(C=o.selectInfo)==null?void 0:C.view)==null?void 0:_.calendar,v={id:new Date().getTime(),title:o.form.title,start:(R=o.selectInfo)==null?void 0:R.startStr,end:(k=o.selectInfo)==null?void 0:k.endStr,allDay:o.allDay};await f.addEvent(v),n("success",v),c()},d=f=>{D.ElMessageBox.confirm(`你确定删除事件'${f.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{D.ElMessage({type:"success",message:"删除成功"}),f.event.remove(),n("delete",f.event)})},g=f=>{o.handList=f.list,o.form.personList=f.list},p=()=>{o.isShow=!0},h=f=>{s(f==null?void 0:f.elementId)},y=f=>{o.form.personList.splice(f,1),o.handList=o.form.personList};return(f,v)=>{const C=a.resolveComponent("el-checkbox");return a.openBlock(),a.createElementBlock("div",eg,[a.createElementVNode("div",tg,[a.createVNode(a.unref(Uu),{class:"demo-app-calendar",options:o.calendarOptions},{eventContent:a.withCtx(_=>[a.createElementVNode("div",ng,[a.createElementVNode("span",{class:"title",title:_.event.title,onClick:a.withModifiers(R=>i(),["stop"])},a.toDisplayString(_.event.title),9,rg),a.createVNode(a.unref(D.ElIcon),{size:16,onClick:a.withModifiers(R=>d(_),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(zl))]),_:2},1032,["onClick"])])]),_:1},8,["options"])]),a.createCommentVNode(" 新建日程 "),a.createVNode(a.unref(D.ElDialog),{modelValue:o.dialogVisible,"onUpdate:modelValue":v[12]||(v[12]=_=>o.dialogVisible=_),title:o.title,width:"30%",ref:"formRef",onClose:c},{footer:a.withCtx(()=>[a.createElementVNode("span",mg,[a.createVNode(a.unref(D.ElButton),{onClick:c},{default:a.withCtx(()=>[a.createTextVNode("取消")]),_:1}),a.createVNode(a.unref(D.ElButton),{type:"primary",onClick:u},{default:a.withCtx(()=>[a.createTextVNode("确定")]),_:1})])]),default:a.withCtx(()=>[a.createVNode(a.unref(D.ElForm),{model:o.form},{default:a.withCtx(()=>[a.createVNode(a.unref(D.ElFormItem),null,{default:a.withCtx(()=>[a.createVNode(a.unref(D.ElIcon),{class:"icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Ol))]),_:1}),a.createVNode(a.unref(D.ElInput),{modelValue:o.form.title,"onUpdate:modelValue":v[0]||(v[0]=_=>o.form.title=_),placeholder:`添加${o.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),a.createVNode(a.unref(D.ElSelect),{modelValue:o.form.type,"onUpdate:modelValue":v[1]||(v[1]=_=>o.form.type=_),style:{width:"20%"}},{default:a.withCtx(()=>[a.createVNode(a.unref(D.ElOption),{label:"会议",value:1}),a.createVNode(a.unref(D.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),a.createVNode(a.unref(D.ElFormItem),null,{default:a.withCtx(()=>[a.createVNode(a.unref(D.ElIcon),{class:"icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Vl))]),_:1}),o.timeType=="month"?(a.openBlock(),a.createElementBlock("div",ig,[a.createVNode(a.unref(D.ElDatePicker),{modelValue:o.form.startDate,"onUpdate:modelValue":v[2]||(v[2]=_=>o.form.startDate=_),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),sg,a.createVNode(a.unref(D.ElDatePicker),{modelValue:o.form.endDate,"onUpdate:modelValue":v[3]||(v[3]=_=>o.form.endDate=_),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):a.createCommentVNode("v-if",!0),o.timeType=="week"?(a.openBlock(),a.createElementBlock("div",lg,[a.createVNode(a.unref(D.ElDatePicker),{modelValue:o.form.startDate,"onUpdate:modelValue":v[4]||(v[4]=_=>o.form.startDate=_),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),og,a.createVNode(a.unref(D.ElDatePicker),{modelValue:o.form.endDate,"onUpdate:modelValue":v[5]||(v[5]=_=>o.form.endDate=_),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):a.createCommentVNode("v-if",!0),o.timeType=="day"?(a.openBlock(),a.createElementBlock("div",ag,[a.createVNode(a.unref(D.ElDatePicker),{modelValue:o.form.startDate,"onUpdate:modelValue":v[6]||(v[6]=_=>o.form.startDate=_),type:"date",placeholder:"开始日期",style:a.normalizeStyle({width:o.allDay?"45%":"90%"})},null,8,["modelValue","style"]),o.allDay?(a.openBlock(),a.createElementBlock("div",ug,[fg,a.createVNode(a.unref(D.ElDatePicker),{modelValue:o.form.endDate,"onUpdate:modelValue":v[9]||(v[9]=_=>o.form.endDate=_),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(a.openBlock(),a.createElementBlock("div",cg,[a.createVNode(a.unref(D.ElTimePicker),{modelValue:o.form.startTime,"onUpdate:modelValue":v[7]||(v[7]=_=>o.form.startTime=_),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),dg,a.createVNode(a.unref(D.ElTimePicker),{modelValue:o.form.endTime,"onUpdate:modelValue":v[8]||(v[8]=_=>o.form.endTime=_),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),a.createVNode(C,{modelValue:o.allDay,"onUpdate:modelValue":v[10]||(v[10]=_=>o.allDay=_),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):a.createCommentVNode("v-if",!0)]),_:1}),a.createVNode(a.unref(D.ElFormItem),null,{default:a.withCtx(()=>[a.createVNode(a.unref(D.ElIcon),{class:"icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Wl))]),_:1}),a.createElementVNode("div",{class:"personBlock",onClick:a.withModifiers(p,["stop"])},[o.form.personList.length?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(o.form.personList,(_,R)=>(a.openBlock(),a.createElementBlock("div",{key:R,class:"nameBlock"},[a.createElementVNode("div",pg,[gg,a.createElementVNode("div",null,a.toDisplayString(_.elementName),1)]),a.createVNode(a.unref(D.ElIcon),{class:"close",onClick:a.withModifiers(k=>y(R),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(Pl))]),_:2},1032,["onClick"])]))),128)):(a.openBlock(),a.createElementBlock("span",hg,"添加参与人"))])]),_:1}),a.createVNode(a.unref(D.ElFormItem),null,{default:a.withCtx(()=>[a.createVNode(a.unref(D.ElIcon),{class:"icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(jl))]),_:1}),a.createVNode(a.unref(D.ElInput),{modelValue:o.form.location,"onUpdate:modelValue":v[11]||(v[11]=_=>o.form.location=_),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a.createCommentVNode(" 选人组件 "),a.createVNode(a.unref(Qp),{modelValue:o.handList,"onUpdate:modelValue":v[13]||(v[13]=_=>o.handList=_),show:o.isShow,"onUpdate:show":v[14]||(v[14]=_=>o.isShow=_),onOk:g,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":o.depList,"user-list":o.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:h},null,8,["modelValue","show","dep-list","user-list"])])}}}),Kg="",_l=Cr(ne(yg,[["__scopeId","data-v-5b784b52"]]));te.IKCalendar=_l,te.default=_l,Object.defineProperties(te,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(te,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("iking-utils"),require("element-plus"),require("vuedraggable"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils","element-plus","vuedraggable","axios"],a):(te=typeof globalThis<"u"?globalThis:te||self,a(te.index={},te.Vue,te["iking-utils"],te["element-plus"],te.vuedraggable,te.axios))})(this,function(te,a,j,D,Ml,Nl){"use strict";const Cr=(t,e)=>{if(t.install=n=>{for(const r of[t,...Object.values(e??{})])n.component(r.name,r)},e)for(const[n,r]of Object.entries(e))t[n]=r;return t};/*! Element Plus Icons Vue v2.3.1 */var Il=a.defineComponent({name:"Calendar",__name:"calendar",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.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"})]))}}),Ol=Il,Bl=a.defineComponent({name:"Clock",__name:"clock",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.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"}),a.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"}),a.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),Vl=Bl,Hl=a.defineComponent({name:"Close",__name:"close",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Pl=Hl,Ll=a.defineComponent({name:"DeleteFilled",__name:"delete-filled",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.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"})]))}}),zl=Ll,Ul=a.defineComponent({name:"Location",__name:"location",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),a.createElementVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),jl=Ul,Fl=a.defineComponent({name:"User",__name:"user",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),Wl=Fl;const ne=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};var pt,x,_r,wr,He,Ae,Ar,Dr,Rr,gt={},kr=[],Gl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ve(t,e){for(var n in e)t[n]=e[n];return t}function Tr(t){var e=t.parentNode;e&&e.removeChild(t)}function m(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?pt.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 mt(t,l,r,i,null)}function mt(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??++_r};return i==null&&x.vnode!=null&&x.vnode(s),s}function Q(){return{current:null}}function P(t){return t.children}function $l(t,e,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in e||vt(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]||vt(t,s,e[s],n[s],r)}function xr(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Gl.test(e)?n:n+"px"}function vt(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||xr(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||xr(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?Nr:Mr,s):t.removeEventListener(e,s?Nr:Mr,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 Mr(t){He=!0;try{return this.l[t.type+!1](x.event?x.event(t):t)}finally{He=!1}}function Nr(t){He=!0;try{return this.l[t.type+!0](x.event?x.event(t):t)}finally{He=!1}}function X(t,e){this.props=t,this.context=e}function Ze(t,e){if(e==null)return t.__?Ze(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"?Ze(t):null}function Ir(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 Ir(t)}}function ql(t){He?setTimeout(t):Dr(t)}function Kt(t){(!t.__d&&(t.__d=!0)&&Ae.push(t)&&!yt.__r++||Ar!==x.debounceRendering)&&((Ar=x.debounceRendering)||ql)(yt)}function yt(){var t,e,n,r,i,s,l,o;for(Ae.sort(function(c,u){return c.__v.__b-u.__v.__b});t=Ae.shift();)t.__d&&(e=Ae.length,r=void 0,i=void 0,l=(s=(n=t).__v).__e,(o=n.__P)&&(r=[],(i=ve({},s)).__v=s.__v+1,en(o,s,i,n.__n,o.ownerSVGElement!==void 0,s.__h!=null?[l]:null,r,l??Ze(s),s.__h),Pr(r,s),s.__e!=l&&Ir(s)),Ae.length>e&&Ae.sort(function(c,u){return c.__v.__b-u.__v.__b}));yt.__r=0}function Or(t,e,n,r,i,s,l,o,c,u){var d,g,p,h,y,f,v,C=r&&r.__k||kr,_=C.length;for(n.__k=[],d=0;d<e.length;d++)if((h=n.__k[d]=(h=e[d])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?mt(null,h,null,null,h):Array.isArray(h)?mt(P,{children:h},null,null,null):h.__b>0?mt(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(p=C[d])===null||p&&h.key==p.key&&h.type===p.type)C[d]=void 0;else for(g=0;g<_;g++){if((p=C[g])&&h.key==p.key&&h.type===p.type){C[g]=void 0;break}p=null}en(t,h,p=p||gt,i,s,l,o,c,u),y=h.__e,(g=h.ref)&&p.ref!=g&&(v||(v=[]),p.ref&&v.push(p.ref,null,h),v.push(g,h.__c||y,h)),y!=null?(f==null&&(f=y),typeof h.type=="function"&&h.__k===p.__k?h.__d=c=Br(h,c,t):c=Vr(t,h,p,C,y,c),typeof n.type=="function"&&(n.__d=c)):c&&p.__e==c&&c.parentNode!=t&&(c=Ze(p))}for(n.__e=f,d=_;d--;)C[d]!=null&&(typeof n.type=="function"&&C[d].__e!=null&&C[d].__e==n.__d&&(n.__d=Hr(r).nextSibling),zr(C[d],C[d]));if(v)for(d=0;d<v.length;d++)Lr(v[d],v[++d],v[++d])}function Br(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"?Br(r,e,n):Vr(n,r,r,i,r.__e,e));return e}function bt(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){bt(n,e)}):e.push(t)),e}function Vr(t,e,n,r,i,s){var l,o,c;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,c=0;(o=o.nextSibling)&&c<r.length;c+=1)if(o==i)break e;t.insertBefore(i,s),l=s}return l!==void 0?l:i.nextSibling}function Hr(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=Hr(n)))return r}return null}function en(t,e,n,r,i,s,l,o,c){var u,d,g,p,h,y,f,v,C,_,R,k,B,I,w,N=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(c=n.__h,o=e.__e=n.__e,e.__h=null,s=[o]),(u=x.__b)&&u(e);try{e:if(typeof N=="function"){if(v=e.props,C=(u=N.contextType)&&r[u.__c],_=u?C?C.props.value:u.__:r,n.__c?f=(d=e.__c=n.__c).__=d.__E:("prototype"in N&&N.prototype.render?e.__c=d=new N(v,_):(e.__c=d=new X(v,_),d.constructor=N,d.render=Ql),C&&C.sub(d),d.props=v,d.state||(d.state={}),d.context=_,d.__n=r,g=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),N.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=ve({},d.__s)),ve(d.__s,N.getDerivedStateFromProps(v,d.__s))),p=d.props,h=d.state,d.__v=e,g)N.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(N.getDerivedStateFromProps==null&&v!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(v,_),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(v,d.__s,_)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(q){q&&(q.__=e)}),R=0;R<d._sb.length;R++)d.__h.push(d._sb[R]);d._sb=[],d.__h.length&&l.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(v,d.__s,_),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,h,y)})}if(d.context=_,d.props=v,d.__P=t,k=x.__r,B=0,"prototype"in N&&N.prototype.render){for(d.state=d.__s,d.__d=!1,k&&k(e),u=d.render(d.props,d.state,d.context),I=0;I<d._sb.length;I++)d.__h.push(d._sb[I]);d._sb=[]}else do d.__d=!1,k&&k(e),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++B<25);d.state=d.__s,d.getChildContext!=null&&(r=ve(ve({},r),d.getChildContext())),g||d.getSnapshotBeforeUpdate==null||(y=d.getSnapshotBeforeUpdate(p,h)),w=u!=null&&u.type===P&&u.key==null?u.props.children:u,Or(t,Array.isArray(w)?w:[w],e,n,r,i,s,l,o,c),d.base=e.__e,e.__h=null,d.__h.length&&l.push(d),f&&(d.__E=d.__=null),d.__e=!1}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Yl(n.__e,e,n,r,i,s,l,c);(u=x.diffed)&&u(e)}catch(q){e.__v=null,(c||s!=null)&&(e.__e=o,e.__h=!!c,s[s.indexOf(o)]=null),x.__e(q,e,n)}}function Pr(t,e){x.__c&&x.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){x.__e(r,n.__v)}})}function Yl(t,e,n,r,i,s,l,o){var c,u,d,g=n.props,p=e.props,h=e.type,y=0;if(h==="svg"&&(i=!0),s!=null){for(;y<s.length;y++)if((c=s[y])&&"setAttribute"in c==!!h&&(h?c.localName===h:c.nodeType===3)){t=c,s[y]=null;break}}if(t==null){if(h===null)return document.createTextNode(p);t=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),s=null,o=!1}if(h===null)g===p||o&&t.data===p||(t.data=p);else{if(s=s&&pt.call(t.childNodes),u=(g=n.props||gt).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!o){if(s!=null)for(g={},y=0;y<t.attributes.length;y++)g[t.attributes[y].name]=t.attributes[y].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===t.innerHTML)||(t.innerHTML=d&&d.__html||""))}if($l(t,p,g,i,o),d)e.__k=[];else if(y=e.props.children,Or(t,Array.isArray(y)?y:[y],e,n,r,i&&h!=="foreignObject",s,l,s?s[0]:n.__k&&Ze(n,0),o),s!=null)for(y=s.length;y--;)s[y]!=null&&Tr(s[y]);o||("value"in p&&(y=p.value)!==void 0&&(y!==t.value||h==="progress"&&!y||h==="option"&&y!==g.value)&&vt(t,"value",y,g.value,!1),"checked"in p&&(y=p.checked)!==void 0&&y!==t.checked&&vt(t,"checked",y,g.checked,!1))}return t}function Lr(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){x.__e(r,n)}}function zr(t,e,n){var r,i;if(x.unmount&&x.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Lr(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){x.__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]&&zr(r[i],e,n||typeof t.type!="function");n||t.__e==null||Tr(t.__e),t.__=t.__e=t.__d=void 0}function Ql(t,e,n){return this.constructor(t,n)}function Xe(t,e,n){var r,i,s;x.__&&x.__(t,e),i=(r=typeof n=="function")?null:n&&n.__k||e.__k,s=[],en(e,t=(!r&&n||e).__k=m(P,null,[t]),i||gt,gt,e.ownerSVGElement!==void 0,!r&&n?[n]:i?null:e.firstChild?pt.call(e.childNodes):null,s,!r&&n?n:i?i.__e:e.firstChild,r),Pr(s,t)}function Zl(t,e){var n={__c:e="__cC"+Rr++,__: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,Kt(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}pt=kr.slice,x={__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}},_r=0,wr=function(t){return t!=null&&t.constructor===void 0},He=!1,X.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ve({},this.state),typeof t=="function"&&(t=t(ve({},n),this.props)),t&&ve(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Kt(this))},X.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Kt(this))},X.prototype.render=P,Ae=[],Dr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,yt.__r=0,Rr=0;var le,tn,Ur,jr=[],nn=[],Fr=x.__b,Wr=x.__r,Gr=x.diffed,$r=x.__c,qr=x.unmount;function Xl(){for(var t;t=jr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Et),t.__H.__h.forEach(rn),t.__H.__h=[]}catch(e){t.__H.__h=[],x.__e(e,t.__v)}}x.__b=function(t){le=null,Fr&&Fr(t)},x.__r=function(t){Wr&&Wr(t);var e=(le=t.__c).__H;e&&(tn===le?(e.__h=[],le.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=nn,n.__N=n.i=void 0})):(e.__h.forEach(Et),e.__h.forEach(rn),e.__h=[])),tn=le},x.diffed=function(t){Gr&&Gr(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(jr.push(e)!==1&&Ur===x.requestAnimationFrame||((Ur=x.requestAnimationFrame)||Jl)(Xl)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==nn&&(n.__=n.__V),n.i=void 0,n.__V=nn})),tn=le=null},x.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Et),n.__h=n.__h.filter(function(r){return!r.__||rn(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],x.__e(r,n.__v)}}),$r&&$r(t,e)},x.unmount=function(t){qr&&qr(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Et(r)}catch(i){e=i}}),n.__H=void 0,e&&x.__e(e,n.__v))};var Yr=typeof requestAnimationFrame=="function";function Jl(t){var e,n=function(){clearTimeout(r),Yr&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Yr&&(e=requestAnimationFrame(n))}function Et(t){var e=le,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),le=e}function rn(t){var e=le;t.__c=t.__(),le=e}function Kl(t,e){for(var n in e)t[n]=e[n];return t}function Qr(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 Zr(t){this.props=t}(Zr.prototype=new X).isPureReactComponent=!0,Zr.prototype.shouldComponentUpdate=function(t,e){return Qr(this.props,t)||Qr(this.state,e)};var Xr=x.__b;x.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Xr&&Xr(t)};var eo=x.__e;x.__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)}eo(t,e,n,r)};var Jr=x.unmount;function Kr(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=Kl({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return Kr(r,e,n)})),t}function ei(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return ei(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 sn(){this.__u=0,this.t=null,this.__b=null}function ti(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function St(){this.u=null,this.o=null}x.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Jr&&Jr(t)},(sn.prototype=new X).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=ti(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 u=r.state.__a;r.__v.__k[0]=ei(u,u.__c.__P,u.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.t.pop();)d.forceUpdate()}},c=e.__h===!0;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(l,l)},sn.prototype.componentWillUnmount=function(){this.t=[]},sn.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]=Kr(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&m(P,null,t.fallback);return i&&(i.__h=null),[m(P,null,e.__a?null:t.children),i]};var ni=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 to(t){return this.getChildContext=function(){return t.context},t.children}function no(t){var e=this,n=t.i;e.componentWillUnmount=function(){Xe(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)}}),Xe(m(to,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function ro(t,e){var n=m(no,{__v:t,i:e});return n.containerInfo=e,n}(St.prototype=new X).__a=function(t){var e=this,n=ti(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),ni(e,t,r)):i()};n?n(s):s()}},St.prototype.render=function(t){this.u=null,this.o=new Map;var e=bt(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},St.prototype.componentDidUpdate=St.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){ni(t,n,e)})};var io=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,so=/^(?: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]/,lo=typeof document<"u",oo=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};X.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(X.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var ri=x.event;function ao(){}function co(){return this.cancelBubble}function uo(){return this.defaultPrevented}x.event=function(t){return ri&&(t=ri(t)),t.persist=ao,t.isPropagationStopped=co,t.isDefaultPrevented=uo,t.nativeEvent=t};var ii={configurable:!0,get:function(){return this.class}},si=x.vnode;x.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];lo&&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)&&!oo(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&&so.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=bt(n.children).forEach(function(o){o.props.selected=r.value.indexOf(o.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=bt(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&&(ii.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",ii))}t.$$typeof=io,si&&si(t)};var li=x.__r;x.__r=function(t){li&&li(t),t.__c};const oi=[],ln=new Map;function on(t){oi.push(t),ln.forEach(e=>{ci(e,t)})}function fo(t){t.isConnected&&ai(t.getRootNode())}function ai(t){let e=ln.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=po();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)}ln.set(t,e),ho(e)}}function ho(t){for(const e of oi)ci(t,e)}function ci(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 an;function po(){return an===void 0&&(an=go()),an}function go(){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"&&ai(document);var mo=':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;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';on(mo);class cn{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 dn(t){t.parentNode&&t.parentNode.removeChild(t)}function W(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(vo(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function vo(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function yo(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 bo=/(top|left|right|bottom|width|height)$/i;function Je(t,e){for(let n in e)di(t,n,e[n])}function di(t,e,n){n==null?t.style[e]="":typeof n=="number"&&bo.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function ui(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 fi=0;function Ct(){return fi+=1,"fc-dom-"+fi}function _t(t){t.preventDefault()}function Eo(t,e){return n=>{let r=W(n.target,t);r&&e.call(r,n,r)}}function hi(t,e,n,r){let i=Eo(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function So(t,e,n,r){let i;return hi(t,"mouseover",e,(s,l)=>{if(l!==i){i=l,n(s,l);let o=c=>{i=null,r(c,l),l.removeEventListener("mouseleave",o)};l.addEventListener("mouseleave",o)}})}const pi=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Co(t,e){let n=r=>{e(r),pi.forEach(i=>{t.removeEventListener(i,n)})};pi.forEach(r=>{t.addEventListener(r,n)})}function gi(t){return Object.assign({onClick:t},mi(t))}function mi(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let vi=0;function De(){return vi+=1,String(vi)}function un(){document.body.classList.add("fc-not-allowed")}function fn(){document.body.classList.remove("fc-not-allowed")}function _o(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",_t)}function wo(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",_t)}function Ao(t){t.addEventListener("contextmenu",_t)}function Do(t){t.removeEventListener("contextmenu",_t)}function Ro(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 ko(t,e,n){let r,i;for(r=0;r<n.length;r+=1)if(i=To(t,e,n[r]),i)return i;return 0}function To(t,e,n){return n.func?n.func(t,e):xo(t[n.field],e[n.field])*(n.order||1)}function xo(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 Pe(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function Ke(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),t):n}function Mo(t,e){return t-e}function wt(t){return t%1===0}function No(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 yi=["years","months","days","milliseconds"],Io=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function O(t,e){return typeof t=="string"?Oo(t):typeof t=="object"&&t?bi(t):typeof t=="number"?bi({[e||"milliseconds"]:t}):null}function Oo(t){let e=Io.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 bi(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 Bo(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function hn(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function Vo(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function Ho(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function Po(t){return Le(t)/365}function Lo(t){return Le(t)/30}function Le(t){return re(t)/864e5}function re(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function pn(t,e){let n=null;for(let r=0;r<yi.length;r+=1){let i=yi[r];if(e[i]){let s=t[i]/e[i];if(!wt(s)||n!==null&&n!==s)return null;n=s}else if(t[i])return null}return n}function gn(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 ye(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 zo=["sun","mon","tue","wed","thu","fri","sat"];function Ei(t,e){let n=Ee(t);return n[2]+=e*7,Z(n)}function G(t,e){let n=Ee(t);return n[2]+=e,Z(n)}function be(t,e){let n=Ee(t);return n[6]+=e,Z(n)}function Uo(t,e){return Re(t,e)/7}function Re(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function jo(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Fo(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function Wo(t,e){return(e.valueOf()-t.valueOf())/1e3}function Go(t,e){let n=H(t),r=H(e);return{years:0,months:0,days:Math.round(Re(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function $o(t,e){let n=At(t,e);return n!==null&&n%7===0?n/7:null}function At(t,e){return Se(t)===Se(e)?Math.round(Re(t,e)):null}function H(t){return Z([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function qo(t){return Z([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function Yo(t){return Z([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function Qo(t){return Z([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function Zo(t,e,n){let r=t.getUTCFullYear(),i=mn(t,r,e,n);if(i<1)return mn(t,r-1,e,n);let s=mn(t,r+1,e,n);return s>=1?Math.min(i,s):i}function mn(t,e,n,r){let i=Z([e,0,1+Xo(e,n,r)]),s=H(t),l=Math.round(Re(i,s));return Math.floor(l/7)+1}function Xo(t,e,n){let r=7+e-n;return-((7+Z([t,0,r]).getUTCDay()-e)%7)+r-1}function Si(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Ci(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 Ee(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Z(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function _i(t){return!isNaN(t.valueOf())}function Se(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function wi(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",yn(e,!0)))),r}function vn(t){return t.toISOString().replace(/T.*$/,"")}function Jo(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function Ko(t){return Pe(t.getUTCHours(),2)+":"+Pe(t.getUTCMinutes(),2)+":"+Pe(t.getUTCSeconds(),2)}function yn(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+Pe(i,2)}:${Pe(s,2)}`:`GMT${n}${i}${s?`:${Pe(s,2)}`:""}`}function M(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!ye(r,s)){n&&n(i);let l=t.apply(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}function Dt(t,e,n){let r,i;return s=>{if(!r)i=t.call(this,s);else if(!oe(r,s)){n&&n(i);let l=t.call(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}const Ai={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Rt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},kt=/\s*([ap])\.?m\.?/i,ea=/,/g,ta=/\s+/g,na=/\u200e/g,ra=/UTC|GMT/;class ia{constructor(e){let n={},r={},i=0;for(let s in e)s in Ai?(r[s]=e[s],i=Math.max(Ai[s],i)):(n[s]=e[s],s in Rt&&(i=Math.max(Rt[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=M(Di)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:l}=this,o=da(e.marker,n.marker,r.calendarSystem);if(!o)return this.format(e,r);let c=o;c>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(c=1);let u=this.format(e,r),d=this.format(n,r);if(u===d)return u;let g=ua(s,c),p=Di(g,l,r),h=p(e),y=p(n),f=fa(u,h,d,y),v=l.separator||i||r.defaultSeparator||"";return f?f.before+h+v+y+f.after:u+v+d}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 Di(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>yn(i.timeZoneOffset):r===0&&e.week?i=>ca(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):sa(t,e,n)}function sa(t,e,n){t=Object.assign({},t),e=Object.assign({},e),la(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 c=o.format(l);return oa(c,s,t,e,n)}}function la(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 oa(t,e,n,r,i){return t=t.replace(na,""),n.timeZoneName==="short"&&(t=aa(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":yn(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(ea,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(kt,"").trim():r.meridiem==="narrow"?t=t.replace(kt,(s,l)=>l.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(kt,(s,l)=>`${l.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(kt,s=>s.toLocaleLowerCase())),t=t.replace(ta," "),t=t.trim(),t}function aa(t,e){let n=!1;return t=t.replace(ra,()=>(n=!0,e)),n||(t+=` ${e}`),t}function ca(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 da(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:Se(t)!==Se(e)?1:0}function ua(t,e){let n={};for(let r in t)(!(r in Rt)||Rt[r]<=e)&&(n[r]=t[r]);return n}function fa(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),c=0;for(;c<n.length;){let u=n.indexOf(r,c);if(u===-1)break;let d=n.substr(0,u);c=u+r.length;let g=n.substr(c);if(l===d&&o===g)return{before:l,after:o}}}return null}function Ri(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 Tt(t,e,n,r){let i=Ri(t,n.calendarSystem),s=e?Ri(e,n.calendarSystem):null;return{date:i,start:i,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class ha{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,Tt(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,Tt(e,n,r,i))}}class pa{constructor(e){this.func=e}format(e,n,r){return this.func(Tt(e,null,n,r))}formatRange(e,n,r,i){return this.func(Tt(e,n,r,i))}}function z(t){return typeof t=="object"&&t?new ia(t):typeof t=="string"?new ha(t):typeof t=="function"?new pa(t):null}const ki={navLinkDayClick:E,navLinkWeekClick:E,duration:O,bootstrapFontAwesome:E,buttonIcons:E,customButtons:E,defaultAllDayEventDuration:O,defaultTimedEventDuration:O,nextDayThreshold:O,scrollTime:O,scrollTimeReset:Boolean,slotMinTime:O,slotMaxTime:O,dayPopoverFormat:z,slotDuration:O,snapDuration:O,headerToolbar:E,footerToolbar:E,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:z,dayHeaderClassNames:E,dayHeaderContent:E,dayHeaderDidMount:E,dayHeaderWillUnmount:E,dayCellClassNames:E,dayCellContent:E,dayCellDidMount:E,dayCellWillUnmount:E,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:E,weekNumbers:Boolean,weekNumberClassNames:E,weekNumberContent:E,weekNumberDidMount:E,weekNumberWillUnmount:E,editable:Boolean,viewClassNames:E,viewDidMount:E,viewWillUnmount:E,nowIndicator:Boolean,nowIndicatorClassNames:E,nowIndicatorContent:E,nowIndicatorDidMount:E,nowIndicatorWillUnmount:E,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:E,locale:E,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:E,eventOrder:Ro,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:E,contentHeight:E,direction:String,weekNumberFormat:z,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:E,initialDate:E,now:E,eventDataTransform:E,stickyHeaderDates:E,stickyFooterScrollbar:E,viewHeight:E,defaultAllDay:Boolean,eventSourceFailure:E,eventSourceSuccess:E,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:E,eventConstraint:E,eventAllow:E,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:E,eventContent:E,eventDidMount:E,eventWillUnmount:E,selectConstraint:E,selectOverlap:E,selectAllow:E,droppable:Boolean,unselectCancel:String,slotLabelFormat:E,slotLaneClassNames:E,slotLaneContent:E,slotLaneDidMount:E,slotLaneWillUnmount:E,slotLabelClassNames:E,slotLabelContent:E,slotLabelDidMount:E,slotLabelWillUnmount:E,dayMaxEvents:E,dayMaxEventRows:E,dayMinWidth:Number,slotLabelInterval:O,allDayText:String,allDayClassNames:E,allDayContent:E,allDayDidMount:E,allDayWillUnmount:E,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:z,rerenderDelay:Number,moreLinkText:E,moreLinkHint:E,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:E,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:O,hiddenDays:E,fixedWeekCount:Boolean,validRange:E,visibleRange:E,titleFormat:E,eventInteractive:Boolean,noEventsText:String,viewHint:E,navLinkHint:E,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:E,moreLinkClassNames:E,moreLinkContent:E,moreLinkDidMount:E,moreLinkWillUnmount:E,monthStartFormat:z,handleCustomRendering:E,customRenderingMetaMap:E,customRenderingReplaces:Boolean},et={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"}},Ti={datesSet:E,eventsSet:E,eventAdd:E,eventChange:E,eventRemove:E,windowResize:E,eventClick:E,eventMouseEnter:E,eventMouseLeave:E,select:E,unselect:E,loading:E,_unmount:E,_beforeprint:E,_afterprint:E,_noEventDrop:E,_noEventResize:E,_resize:E,_scrollRequest:E},xi={buttonText:E,buttonHints:E,views:E,plugins:E,initialEvents:E,events:E,eventSources:E},ke={headerToolbar:Te,footerToolbar:Te,buttonText:Te,buttonHints:Te,buttonIcons:Te,dateIncrement:Te,plugins:xt,events:xt,eventSources:xt,resources:xt};function Te(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?oe(t,e):t===e}function xt(t,e){return Array.isArray(t)&&Array.isArray(e)?ye(t,e):t===e}const ga={type:String,component:E,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:E,usesMinMaxTime:Boolean,classNames:E,content:E,didMount:E,willUnmount:E};function bn(t){return Sn(t,ke)}function En(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 E(t){return t}const{hasOwnProperty:Mt}=Object.prototype;function Sn(t,e){let n={};if(e){for(let r in e)if(e[r]===Te){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]=Sn(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 xe(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function ce(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function Mi(t){let e={};for(let n of t)e[n]=!0;return e}function Cn(t){let e=[];for(let n in t)e.push(t[n]);return e}function oe(t,e){if(t===e)return!0;for(let n in t)if(Mt.call(t,n)&&!(n in e))return!1;for(let n in e)if(Mt.call(e,n)&&t[n]!==e[n])return!1;return!0}const ma=/^on[A-Z]/;function va(t,e){const n=_n(t,e);for(let r of n)if(!ma.test(r))return!1;return!0}function _n(t,e){let n=[];for(let r in t)Mt.call(t,r)&&(r in e||n.push(r));for(let r in e)Mt.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function wn(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&ya(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function ya(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function ba(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 Ni={};function Ea(t,e){Ni[t]=e}function Sa(t){return new Ni[t]}class Ca{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Z(e)}markerToArray(e){return Ee(e)}}Ea("gregory",Ca);const _a=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function wa(t){let e=_a.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(_i(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 Aa{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=Sa(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()):Z(Si(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=Z(e)),n===null||!_i(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=wa(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 Se(e)===Se(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 Se(e)===Se(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=$o(e,n),r!==null?{unit:"week",value:r}:(r=At(e,n),r!==null?{unit:"day",value:r}:(r=jo(e,n),wt(r)?{unit:"hour",value:r}:(r=Fo(e,n),wt(r)?{unit:"minute",value:r}:(r=Wo(e,n),wt(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/Po(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/Lo(r):r.days&&(i=At(e,n),i!==null)?i/Le(r):(n.valueOf()-e.valueOf())/re(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?H(e):n==="hour"?qo(e):n==="minute"?Yo(e):n==="second"?Qo(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)):Zo(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=be(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)),wi(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?Z(Si(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):Z(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-Ci(Ee(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Ee(e)):null}toDate(e,n){return this.timeZone==="local"?Ci(Ee(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(Ee(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class tt{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)}`:""}}tt.prototype.classes={},tt.prototype.iconClasses={},tt.prototype.baseIconClass="",tt.prototype.iconOverridePrefix="";function Ii(t){t();let e=x.debounceRendering,n=[];function r(i){n.push(i)}for(x.debounceRendering=r,Xe(m(Da,{}),document.createElement("div"));n.length;)n.shift()();x.debounceRendering=e}class Da extends X{render(){return m("div",{})}componentDidMount(){this.setState({})}}function Oi(t){let e=Zl(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 Ra{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 de=Oi({});function ka(t,e,n,r,i,s,l,o,c,u,d,g,p){return{dateEnv:i,options:n,pluginHooks:l,emitter:u,dispatch:o,getCurrentData:c,calendarApi:d,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",addResizeHandler(h){u.on("_resize",h)},removeResizeHandler(h){u.off("_resize",h)},createScrollResponder(h){return new Ra(h,u,O(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:g,unregisterInteractiveComponent:p}}class Me extends X{shouldComponentUpdate(e,n){return this.debug&&console.log(_n(e,this.props),_n(n,this.state)),!wn(this.props,e,this.propEquality)||!wn(this.state,n,this.stateEquality)}safeSetState(e){wn(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Me.addPropsEquality=Ta,Me.addStateEquality=xa,Me.contextType=de,Me.prototype.propEquality={},Me.prototype.stateEquality={};class V extends Me{}V.contextType=de;function Ta(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function xa(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function ue(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class An extends V{constructor(){super(...arguments),this.id=De(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!Dn(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&ue(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:s,renderProps:l}=e,o=Bi(e,[],this.handleEl);let c=!1,u,d=[],g;if(i!=null){const p=typeof i=="function"?i(l,m):i;if(p===!0)c=!0;else{const h=p&&typeof p=="object";h&&"html"in p?o.dangerouslySetInnerHTML={__html:p.html}:h&&"domNodes"in p?d=Array.prototype.slice.call(p.domNodes):(h?wr(p):typeof p!="function")?u=p:g=p}}else c=!Dn(e.generatorName,r);return c&&s&&(u=s(l)),this.queuedDomNodes=d,this.currentGeneratorMeta=g,m(e.elTag,o,u)}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(Ma)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!ye(e,n)){n.forEach(dn);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}An.addPropsEquality({elClasses:ye,elStyle:oe,elAttrs:va,renderProps:oe});function Dn(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Bi(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 Ma(t){return!!t}const Vi=Oi(0);class J extends X{constructor(){super(...arguments),this.InnerContent=Na.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(ue(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=Ia(e.classNameGenerator,e.renderProps);if(e.children){const r=Bi(e,n,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?m(e.elTag,r,i):i}else return m(An,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}))}}J.contextType=Vi;function Na(t,e){const n=t.props;return m(An,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function Ia(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class Nt extends V{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return m(J,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Hi(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function Hi(t){return[`fc-${t.type}-view`,"fc-view"]}function Oa(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 Pi(t,e){let n=[],{start:r}=e,i,s;for(t.sort(Ba),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 Ba(t,e){return t.start.valueOf()-e.start.valueOf()}function Ne(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 Va(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 Rn(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function It(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function fe(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function Ha(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 Li(t){let e=Math.floor(Re(t.start,t.end))||1,n=H(t.start),r=G(n,e);return{start:n,end:r}}function zi(t,e=O(0)){let n=null,r=null;if(t.end){r=H(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=re(e)&&(r=G(r,1))}return t.start&&(n=H(t.start),r&&r<=n&&(r=G(n,1))),{start:n,end:r}}function ze(t,e,n,r){return r==="year"?O(n.diffWholeYears(t,e),"year"):r==="month"?O(n.diffWholeMonths(t,e),"month"):Go(t,e)}function Pa(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function La(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):nt(t.now,e)}function nt(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class Ui{constructor(e){this.props=e,this.nowDate=nt(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,c,u,d;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=Ha(e,s)),l=this.buildCurrentRangeInfo(e,n),o=/^(year|month|week|day)$/.test(l.unit),c=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,o),c=this.trimHiddenDays(c),u=c,i.showNonCurrentDates||(u=Ne(u,l.range)),u=this.adjustActiveRange(u),u=Ne(u,s),d=Rn(l.range,s),fe(c,e)||(e=c.start),{currentDate:e,validRange:s,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:o,activeRange:u,renderRange:c,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:d,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=gn(i).unit,l=this.buildRangeFromDuration(e,n,i,s)),{duration:i,unit:s,range:l}}getFallbackDuration(){return O({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:l,end:o}=e;return r&&(Le(i)<0&&(l=H(l),l=n.add(l,i)),Le(s)>1&&(o=H(o),o=G(o,-1),o=n.add(o,s))),{start:l,end:o}}buildRangeFromDuration(e,n,r,i){let{dateEnv:s,dateAlignment:l}=this.props,o,c,u;if(!l){let{dateIncrement:g}=this.props;g&&re(g)<re(r)?l=gn(g).unit:l=i}Le(r)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,n),o=H(o));function d(){o=s.startOf(e,l),c=s.add(o,r),u={start:o,end:c}}return d(),this.trimHiddenDays(u)||(e=this.skipHiddenDays(e,n),d()),u}buildRangeFromDayCount(e,n,r){let{dateEnv:i,dateAlignment:s}=this.props,l=0,o=e,c;s&&(o=i.startOf(o,s)),o=H(o),o=this.skipHiddenDays(o,n),c=o;do c=G(c,1),this.isHiddenDay(c)||(l+=1);while(l<r);return{start:o,end:c}}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)?O(1,r):e||O({days:1}))}refineRange(e){if(e){let n=Oa(e,this.props.dateEnv);return n&&(n=zi(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=G(e,n);return e}}function kn(t,e,n,r){return{instanceId:De(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function za(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 Ie(t,e,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:l,instances:o}=t;o=xe(o,c=>!l[c.defId].recurringDef);for(let c in l){let u=l[c];if(u.recurringDef){let{duration:d}=u.recurringDef;d||(d=u.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let g=Ua(u,d,e,r,i.recurringTypes);for(let p of g){let h=kn(c,{start:p,end:r.add(p,d)});o[h.instanceId]=h}}}return{defs:l,instances:o}}function Ua(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(H)),l}const Ot={id:String,groupId:String,title:String,url:String,interactive:Boolean},ji={start:E,end:E,date:E,allDay:Boolean},ja=Object.assign(Object.assign(Object.assign({},Ot),ji),{extendedProps:E});function Fi(t,e,n,r,i=Tn(n),s,l){let{refined:o,extra:c}=Wi(t,n,i),u=Wa(e,n),d=za(o,u,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let p=xn(o,c,e?e.sourceId:"",d.allDay,!!d.duration,n,s);return p.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:p,instance:null}}let g=Fa(o,u,n,r);if(g){let p=xn(o,c,e?e.sourceId:"",g.allDay,g.hasEnd,n,s),h=kn(p.defId,g.range,g.forcedStartTzo,g.forcedEndTzo);return l&&p.publicId&&l[p.publicId]&&(h.instanceId=l[p.publicId]),{def:p,instance:h}}return null}function Wi(t,e,n=Tn(e)){return En(t,n)}function Tn(t){return Object.assign(Object.assign(Object.assign({},Vt),ja),t.pluginHooks.eventRefiners)}function xn(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]:"")||De(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:Ht(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let c of s.pluginHooks.eventDefMemberAdders)Object.assign(o,c(t));return Object.freeze(o.ui.classNames),Object.freeze(o.extendedProps),o}function Fa(t,e,n,r){let{allDay:i}=t,s,l=null,o=!1,c,u=null,d=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(d),s)l=s.marker;else if(!r)return null;return t.end!=null&&(c=n.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!c||c.isTimeUnspecified)),i&&l&&(l=H(l)),c&&(u=c.marker,i&&(u=H(u)),l&&u<=l&&(u=null)),u?o=!0:r||(o=n.options.forceEventDuration||!1,u=n.dateEnv.add(l,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:o,range:{start:l,end:u},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:c?c.forcedTzo:null}}function Wa(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function rt(t,e,n,r,i,s){let l=K(),o=Tn(n);for(let c of t){let u=Fi(c,e,n,r,o,i,s);u&&Mn(u,l)}return l}function Mn(t,e=K()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function Nn(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=Bt(t,s=>Ga(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return K()}function Ga(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function K(){return{defs:{},instances:{}}}function In(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Bt(t,e){let n=xe(t.defs,e),r=xe(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function $a(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 qa(t,e){return Array.isArray(t)?rt(t,null,e,!0):typeof t=="object"&&t?rt([t],null,e,!0):t!=null?String(t):null}function Gi(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const Vt={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:E,overlap:E,allow:E,className:Gi,classNames:Gi,color:String,backgroundColor:String,borderColor:String,textColor:String},Ya={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Ht(t,e){let n=qa(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 $i(t){return t.reduce(Qa,Ya)}function Qa(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 Za={id:String,defaultAllDay:Boolean,url:String,format:String,events:E,eventDataTransform:E,success:E,failure:E};function qi(t,e,n=Yi(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}=En(r,n),l=Xa(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:De(),sourceDefId:l.sourceDefId,meta:l.meta,ui:Ht(i,e),extendedProps:s}}return null}function Yi(t){return Object.assign(Object.assign(Object.assign({},Vt),Za),t.pluginHooks.eventSourceRefiners)}function Xa(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 Ja(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return Ka(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return ec(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return tc(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return In(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Ie(t,r.activeRange,i):t;case"REMOVE_EVENTS":return $a(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Ji(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Bt(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return K();default:return t}}function Ka(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let l=rt(Qi(i,e,s),e,s);return r&&(l=Ie(l,r,s)),In(Ji(t,e.sourceId),l)}return t}function ec(t,e,n,r,i){const{defIdMap:s,instanceIdMap:l}=rc(t);let o=rt(Qi(n,e,i),e,i,!1,s,l);return Ie(o,r,i)}function Qi(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=Zi(t,i)),r&&(t=Zi(t,r)),t}function Zi(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 tc(t,e,n,r){return n&&(e=Ie(e,n,r)),In(t,e)}function Xi(t,e,n){let{defs:r}=t,i=ce(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 Ji(t,e){return Bt(t,n=>n.sourceId!==e)}function nc(t,e){return{defs:t.defs,instances:xe(t.instances,n=>!e[n.instanceId])}}function rc(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:c}=o;c&&(i[c]=s)}return{defIdMap:r,instanceIdMap:i}}class Pt{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){ic(this.handlers,e,n)}off(e,n){sc(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 ic(t,e,n){(t[e]||(t[e]=[])).push(n)}function sc(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const lc={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function oc(t,e){return rt(ac(t),null,e)}function ac(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({},lc),n)),e}function Ki(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},On(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function cc(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function On(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,_c(t,e.dateEnv)),n}function es(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=H(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function Bn(t,e,n,r){let i=Lt(t.defs,e),s=K();for(let l in t.defs){let o=t.defs[l];s.defs[l]=dc(o,i[l],n,r)}for(let l in t.instances){let o=t.instances[l],c=s.defs[o.defId];s.instances[l]=uc(o,c,i[o.defId],n,r)}return s}function dc(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 uc(t,e,n,r,i){let{dateEnv:s}=i,l=r.standardProps&&r.standardProps.allDay===!0,o=r.standardProps&&r.standardProps.hasEnd===!1,c=Object.assign({},t);return l&&(c.range=Li(c.range)),r.datesDelta&&n.startEditable&&(c.range={start:s.add(c.range.start,r.datesDelta),end:s.add(c.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(c.range={start:s.add(c.range.start,r.startDelta),end:c.range.end}),r.endDelta&&n.durationEditable&&(c.range={start:c.range.start,end:s.add(c.range.end,r.endDelta)}),o&&(c.range={start:c.range.start,end:es(e.allDay,c.range.start,i)}),e.allDay&&(c.range={start:H(c.range.start),end:H(c.range.end)}),c.range.end<c.range.start&&(c.range.end=es(e.allDay,c.range.start,i)),c}class Ue{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 L{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in ji)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=Ot[e](n),this.mutate({standardProps:{publicId:n}});else if(e in Ot)n=Ot[e](n),this.mutate({standardProps:{[e]:n}});else if(e in Vt){let r=Vt[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=ze(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=ze(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 c=this._instance.range;r.allDay===!0&&(c=Li(c));let u=ze(c.start,l,i,r.granularity);if(o){let d=ze(c.end,o,i,r.granularity);Bo(u,d)?this.mutate({datesDelta:u,standardProps:s}):this.mutate({startDelta:u,endDelta:d,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:u,standardProps:s})}}moveStart(e){let n=O(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=O(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=O(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=z(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=Nn(s,n.instanceId);l=Bn(l,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let c=new L(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:c,event:this,relatedEvents:Oe(l,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=ts(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 Ue(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 ts(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function Oe(t,e,n){let{defs:r,instances:i}=t,s=[],l=n?n.instanceId:"";for(let o in i){let c=i[o],u=r[c.defId];c.instanceId!==l&&s.push(new L(e,u,c))}return s}function ns(t,e,n,r){let i={},s={},l={},o=[],c=[],u=Lt(t.defs,e);for(let d in t.defs){let g=t.defs[d];u[g.defId].display==="inverse-background"&&(g.groupId?(i[g.groupId]=[],l[g.groupId]||(l[g.groupId]=g)):s[d]=[])}for(let d in t.instances){let g=t.instances[d],p=t.defs[g.defId],h=u[p.defId],y=g.range,f=!p.allDay&&r?zi(y,r):y,v=Ne(f,n);v&&(h.display==="inverse-background"?p.groupId?i[p.groupId].push(v):s[g.defId].push(v):h.display!=="none"&&(h.display==="background"?o:c).push({def:p,ui:h,instance:g,range:v,isStart:f.start&&f.start.valueOf()===v.start.valueOf(),isEnd:f.end&&f.end.valueOf()===v.end.valueOf()}))}for(let d in i){let g=i[d],p=Pi(g,n);for(let h of p){let y=l[d],f=u[y.defId];o.push({def:y,ui:f,instance:null,range:h,isStart:!1,isEnd:!1})}}for(let d in s){let g=s[d],p=Pi(g,n);for(let h of p)o.push({def:t.defs[d],ui:u[d],instance:null,range:h,isStart:!1,isEnd:!1})}return{bg:o,fg:c}}function fc(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function rs(t,e){t.fcSeg=e}function je(t){return t.fcSeg||t.parentNode.fcSeg||null}function Lt(t,e){return ce(t,n=>is(n,e))}function is(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),$i(n)}function ss(t,e){let n=t.map(hc);return n.sort((r,i)=>ko(r,i,e)),n.map(r=>r._seg)}function hc(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 pc(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 gc(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function mc(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function ls(t,e,n,r,i,s,l){let{dateEnv:o,options:c}=n,{displayEventTime:u,displayEventEnd:d}=c,g=t.eventRange.def,p=t.eventRange.instance;u==null&&(u=r!==!1),d==null&&(d=i!==!1);let h=p.range.start,y=p.range.end,f=s||t.start||t.eventRange.range.start,v=l||t.end||t.eventRange.range.end,C=H(h).valueOf()===H(f).valueOf(),_=H(be(y,-1)).valueOf()===H(be(v,-1)).valueOf();return u&&!g.allDay&&(C||_)?(f=C?h:f,v=_?y:v,d&&g.hasEnd?o.formatRange(f,v,e,{forcedStartTzo:s?null:p.forcedStartTzo,forcedEndTzo:l?null:p.forcedEndTzo}):o.format(f,e,{forcedTzo:s?null:p.forcedStartTzo})):""}function Ce(t,e,n){let r=t.eventRange.range;return{isPast:r.end<(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&fe(e,r.start)}}function vc(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 os(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function as(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?mi(c=>{s.trigger("eventClick",{el:c.target,event:new L(e,n,r),jsEvent:c,view:e.viewApi})}):{}}const yc={start:E,end:E,allDay:Boolean};function bc(t,e,n){let r=Ec(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 Ec(t,e){let{refined:n,extra:r}=En(t,yc),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 Sc(t,e){return Va(t.range,e.range)&&t.allDay===e.allDay&&Cc(t,e)}function Cc(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 _c(t,e){return Object.assign(Object.assign({},ds(t.range,e,t.allDay)),{allDay:t.allDay})}function cs(t,e,n){return Object.assign(Object.assign({},ds(t,e,n)),{timeZone:e.timeZone})}function ds(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 wc(t,e,n){let r=Wi({editable:!1},n),i=xn(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:is(i,e),instance:kn(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function Ac(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 us extends Error{constructor(e,n){super(e),this.response=n}}function Dc(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 us("Failure parsing JSON",i)});throw new us("Request failed",i)})}let Vn;function fs(){return Vn==null&&(Vn=Rc()),Vn}function Rc(){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 kc extends V{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options: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 fs()||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 Fe{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Tc(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function Hn(t){return{[t.component.uid]:t}}const Pn={};class xc{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:nt(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=O(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),z(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),z(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=bc(r,i.dateEnv,O({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),Ki(s,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),cc(e,n))}addEvent(e,n){if(e instanceof L){let l=e._def,o=e._instance;return this.getCurrentData().eventStore.defs[l.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Mn({def:l,instance:o})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof Ue)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=Cn(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=Fi(e,i,r,!1);if(s){let l=new L(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Mn(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:ts(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 L(n,l,null);for(let o in i){let c=i[o];if(c.defId===l.defId)return new L(n,l,c)}}}return null}getEvents(){let e=this.getCurrentData();return Oe(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 Ue(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 Ue(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof Ue)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=qi(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Ue(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=O(e);n&&this.trigger("_scrollRequest",{time:n})}}function Mc(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function hs(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 Nc(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 Ic(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function Oc(t,e){return{left:t.left-e.left,top:t.top-e.top}}const Ln=K();class Bc{constructor(){this.getKeysForEventDefs=M(this._getKeysForEventDefs),this.splitDateSelection=M(this._splitDateSpan),this.splitEventStore=M(this._splitEventStore),this.splitIndividualUi=M(this._splitIndividualUi),this.splitEventDrag=M(this._splitInteraction),this.splitEventResize=M(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),c=this.splitEventResize(e.eventResize),u={};this.eventUiBuilders=ce(n,(d,g)=>this.eventUiBuilders[g]||M(Vc));for(let d in n){let g=n[d],p=l[d]||Ln,h=this.eventUiBuilders[d];u[d]={businessHours:g.businessHours||e.businessHours,dateSelection:i[d]||null,eventStore:p,eventUiBases:h(e.eventUiBases[""],g.ui,s[d]),eventSelection:p.instances[e.eventSelection]?e.eventSelection:"",eventDrag:o[d]||null,eventResize:c[d]||null}}return u}_splitDateSpan(e){let n={};if(e){let r=this.getKeysForDateSpan(e);for(let i of r)n[i]=e}return n}_getKeysForEventDefs(e){return ce(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]=K()),s[o].defs[l]=r[l];for(let l in i){let o=i[l];for(let c of n[o.defId])s[c]&&(s[c].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]||Ln,mutatedEvents:s[o]||Ln,isEvent:e.isEvent})};for(let o in r)l(o);for(let o in s)l(o)}return n}}function Vc(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let i={"":$i(r)};return n&&Object.assign(i,n),i}function ps(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&!fe(r.activeRange,t)),isOther:!!(r&&!fe(r.currentRange,t)),isToday:!!(e&&fe(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function zn(t,e){let n=["fc-day",`fc-day-${zo[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 Hc=z({year:"numeric",month:"long",day:"numeric"}),Pc=z({week:"long"});function zt(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:l}=t;let o=i.format(e,n==="week"?Pc:Hc);if(s.navLinks){let c=i.toDate(e);const u=d=>{let g=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof g=="function"?g.call(l,i.toDate(e),d):(typeof g=="string"&&(n=g),l.zoomTo(e,n))};return Object.assign({title:Ke(s.navLinkHint,[o,c],o),"data-navlink":""},r?gi(u):{onClick:u})}return{"aria-label":o}}let Un=null;function Lc(){return Un===null&&(Un=zc()),Un}function zc(){let t=document.createElement("div");Je(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 dn(t),n}let jn;function Uc(){return jn||(jn=jc()),jn}function jc(){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=gs(t);return document.body.removeChild(t),e}function gs(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Fc(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=gs(t),c=o.y-r-i,u=o.x-s-l,d={borderLeft:r,borderRight:i,borderTop:s,borderBottom:l,scrollbarBottom:u,scrollbarLeft:0,scrollbarRight:0};return Lc()&&n.direction==="rtl"?d.scrollbarLeft=c:d.scrollbarRight=c,e&&(d.paddingLeft=parseInt(n.paddingLeft,10)||0,d.paddingRight=parseInt(n.paddingRight,10)||0,d.paddingTop=parseInt(n.paddingTop,10)||0,d.paddingBottom=parseInt(n.paddingBottom,10)||0),d}function Wc(t,e=!1,n){let r=n?t.getBoundingClientRect():Fn(t),i=Fc(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 Fn(t){let e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function Gc(t){let e=ms(t),n=t.getBoundingClientRect();for(let r of e){let i=hs(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function ms(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 We{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 Ut(this.tops||[],e.tops||[])&&Ut(this.bottoms||[],e.bottoms||[])&&Ut(this.lefts||[],e.lefts||[])&&Ut(this.rights||[],e.rights||[])}}function Ut(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 Wn{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 $c extends Wn{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 qc extends Wn{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(e){window.scroll(window.pageXOffset,e)}setScrollLeft(e){window.scroll(e,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class ae extends V{constructor(){super(...arguments),this.uid=De()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!W(e,".fc-event-mirror")}isValidDateDownEl(e){return!W(e,".fc-event:not(.fc-bg-event)")&&!W(e,".fc-more-link")&&!W(e,"a[data-navlink]")&&!W(e,".fc-popover")}}class vs{constructor(e=n=>n.thickness){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);return this.isInsertionValid(r,e)?(this.insertEntryAt(e,r),1):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){return this.allowReslicing&&e.touchingEntry?this.splitEntry(n,e.touchingEntry,r):(r.push(n),0)}splitEntry(e,n,r){let i=0,s=[],l=e.span,o=n.span;return l.start<o.start&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:l.start,end:o.start}},s)),l.end>o.end&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.end,end:l.end}},s)),i?(r.push({index:e.index,thickness:e.thickness,span:$n(o,l)},...s),i):(r.push(e),0)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(qn(i,n.level,n.levelCoord),qn(r,n.level,[e])):qn(r[n.level],n.lateral,e),this.stackCnts[Be(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,l=n.length,o=0,c=-1,u=-1,d=null,g=0;for(let y=0;y<l;y+=1){let f=n[y];if(!i&&f>=o+this.getEntryThickness(e))break;let v=r[y],C,_=Yn(v,e.span.start,Gn),R=_[0]+_[1];for(;(C=v[R])&&C.span.start<e.span.end;){let k=f+this.getEntryThickness(C);k>o&&(o=k,d=C,c=y,u=R),k===o&&(g=Math.max(g,s[Be(C)]+1)),R+=1}}let p=0;if(d)for(p=c+1;p<l&&n[p]<o;)p+=1;let h=-1;return p<l&&n[p]===o&&(h=Yn(r[p],e.span.end,Gn)[0]),{touchingLevel:c,touchingLateral:u,touchingEntry:d,stackCnt:g,levelCoord:o,level:p,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 c of l)i.push(Object.assign(Object.assign({},c),{thickness:this.getEntryThickness(c),levelCoord:o}))}return i}}function Gn(t){return t.span.end}function Be(t){return t.index+":"+t.span.start}function Yc(t){let e=[];for(let n of t){let r=[],i={span:n.span,entries:[n]};for(let s of e)$n(s.span,i.span)?i={entries:s.entries.concat(i.entries),span:Qc(s.span,i.span)}:r.push(s);r.push(i),e=r}return e}function Qc(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function $n(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 qn(t,e,n){t.splice(e,0,n)}function Yn(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 Zc{constructor(e,n){this.emitter=new Pt}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Qn={};function Xc(t,e){return!t||e>10?z({weekday:"short"}):e>1?z({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):z({weekday:"long"})}const ys="fc-col-header-cell";function bs(t){return t.text}class Jc extends V{render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:s}=this,{date:l,dateProfile:o}=s,c=ps(l,s.todayRange,null,o),u=[ys].concat(zn(c,r)),d=e.format(l,s.dayHeaderFormat),g=!c.isDisabled&&s.colCnt>1?zt(this.context,l):{},p=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:i},s.extraRenderProps),{text:d}),c);return m(J,{elTag:"th",elClasses:u,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":c.isDisabled?void 0:vn(l)},s.extraDataAttrs),renderProps:p,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:bs,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},h=>m("div",{className:"fc-scrollgrid-sync-inner"},!c.isDisabled&&m(h,{elTag:"a",elAttrs:g,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const Kc=z({weekday:"long"});class ed extends V{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=this.context,l=G(new Date(2592e5),e.dow),o={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=n.format(l,e.dayHeaderFormat),u=Object.assign(Object.assign(Object.assign(Object.assign({date:l},o),{view:i}),e.extraRenderProps),{text:c});return m(J,{elTag:"th",elClasses:[ys,...zn(o,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:bs,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},d=>m("div",{className:"fc-scrollgrid-sync-inner"},m(d,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(l,Kc)}})))}}class it extends X{constructor(e,n){super(e,n),this.initialNowDate=nt(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=be(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,e.unit),s=n.dateEnv.add(i,O(1,e.unit)),l=s.valueOf()-r.valueOf();return l=Math.min(1e3*60*60*24,l),{currentState:{nowDate:i,todayRange:Es(i)},nextState:{nowDate:s,todayRange:Es(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)}}it.contextType=de;function Es(t){let e=H(t),n=G(e,1);return{start:e,end:n}}class Ss extends V{constructor(){super(...arguments),this.createDayHeaderFormatter=M(td)}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 m(it,{unit:"day"},(o,c)=>m("tr",{role:"row"},s&&s("day"),n.map(u=>i?m(Jc,{key:u.toISOString(),date:u,dateProfile:r,todayRange:c,colCnt:n.length,dayHeaderFormat:l}):m(ed,{key:u.getUTCDay(),dow:u.getUTCDay(),dayHeaderFormat:l}))))}}function td(t,e,n){return t||Xc(e,n)}class Cs{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=G(r,1);this.dates=l,this.indices=s,this.cnt=l.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(G(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(Re(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class _s{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 c=Math.floor(o/n),u=Math.min((c+1)*n,l+1);i.push({row:c,firstCol:o%n,lastCol:(u-1)%n,isStart:r.isStart&&o===s,isEnd:r.isEnd&&u-1===l}),o=u}}return i}}class ws{constructor(){this.sliceBusinessHours=M(this._sliceBusinessHours),this.sliceDateSelection=M(this._sliceDateSpan),this.sliceEventStore=M(this._sliceEventStore),this.sliceEventDrag=M(this._sliceInteraction),this.sliceEventResize=M(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:be(e,1)},allDay:!1},n,r,{},i,...s)}_sliceBusinessHours(e,n,r,i,...s){return e?this._sliceEventStore(Ie(e,jt(n,!!r),i),{},n,r,...s).bg:[]}_sliceEventStore(e,n,r,i,...s){if(e){let l=ns(e,n,jt(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=ns(e.mutatedEvents,n,jt(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=jt(n,!!r),c=Ne(e.range,o);if(c){e=Object.assign(Object.assign({},e),{range:c});let u=wc(e,i,s),d=this.sliceRange(e.range,...l);for(let g of d)g.eventRange=u;return d}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:G(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 jt(t,e){let n=t.activeRange;return e?n:{start:be(n.start,t.slotMinTime.milliseconds),end:be(n.end,t.slotMaxTime.milliseconds-864e5)}}function As(t,e,n){let{instances:r}=t.mutatedEvents;for(let i in r)if(!It(e.validRange,r[i].range))return!1;return Ds({eventDrag:t},n)}function nd(t,e,n){return It(e.validRange,t.range)?Ds({dateSelection:t},n):!1}function Ds(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||rd)(r,e)}function rd(t,e,n={},r){return!(t.eventDrag&&!id(t,e,n,r)||t.dateSelection&&!sd(t,e,n,r))}function id(t,e,n,r){let i=e.getCurrentData(),s=t.eventDrag,l=s.mutatedEvents,o=l.defs,c=l.instances,u=Lt(o,s.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(u=ce(u,r));let d=nc(t.eventStore,s.affectedEvents.instances),g=d.defs,p=d.instances,h=Lt(g,t.eventUiBases);for(let y in c){let f=c[y],v=f.range,C=u[f.defId],_=o[f.defId];if(!Rs(C.constraints,v,d,t.businessHours,e))return!1;let{eventOverlap:R}=e.options,k=typeof R=="function"?R:null;for(let I in p){let w=p[I];if(Rn(v,w.range)&&(h[w.defId].overlap===!1&&s.isEvent||C.overlap===!1||k&&!k(new L(e,g[w.defId],w),new L(e,_,f))))return!1}let B=i.eventStore;for(let I of C.allows){let w=Object.assign(Object.assign({},n),{range:f.range,allDay:_.allDay}),N=B.defs[_.defId],q=B.instances[y],ie;if(N?ie=new L(e,N,q):ie=new L(e,_),!I(On(w,e),ie))return!1}}return!0}function sd(t,e,n,r){let i=t.eventStore,s=i.defs,l=i.instances,o=t.dateSelection,c=o.range,{selectionConfig:u}=e.getCurrentData();if(r&&(u=r(u)),!Rs(u.constraints,c,i,t.businessHours,e))return!1;let{selectOverlap:d}=e.options,g=typeof d=="function"?d:null;for(let p in l){let h=l[p];if(Rn(c,h.range)&&(u.overlap===!1||g&&!g(new L(e,s[h.defId],h),null)))return!1}for(let p of u.allows){let h=Object.assign(Object.assign({},n),o);if(!p(On(h,e),null))return!1}return!0}function Rs(t,e,n,r,i){for(let s of t)if(!od(ld(s,e,n,r,i),e))return!1;return!0}function ld(t,e,n,r,i){return t==="businessHours"?Zn(Ie(r,e,i)):typeof t=="string"?Zn(Bt(n,s=>s.groupId===t)):typeof t=="object"&&t?Zn(Ie(t,e,i)):[]}function Zn(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function od(t,e){for(let n of t)if(It(n,e))return!0;return!1}const Ft=/^(visible|hidden)$/;class ad extends V{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,ue(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")),m("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(Ft.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(Ft.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 Ft.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Ft.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class he{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 ba(this.currentMap,e,n,r)}getAll(){return Cn(this.currentMap)}}function cd(t){let e=yo(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,No(r));return Math.ceil(n)}function ks(t,e){return t.liquid&&e.liquid}function dd(t,e){return e.maxHeight!=null||ks(t,e)}function ud(t,e,n,r){let{expandRows:i}=n;return typeof e.content=="function"?e.content(n):m("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,m(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function fd(t,e){return ye(t,e,oe)}function hd(t,e){let n=[];for(let r of t){let i=r.span||1;for(let s=0;s<i;s+=1)n.push(m("col",{style:{width:r.width==="shrink"?pd(e):r.width||"",minWidth:r.minWidth||""}}))}return m("colgroup",{},...n)}function pd(t){return t??4}function gd(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function md(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function vd(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 Xn(t){return m("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Wt(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function Ts(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class Jn extends V{constructor(){super(...arguments),this.processCols=M(e=>e,fd),this.renderMicroColGroup=M(hd),this.scrollerRefs=new he,this.scrollerElRefs=new he(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=md(e.liquid,r);e.collapsibleWidth&&o.push("fc-scrollgrid-collapsible");let c=i.length,u=0,d,g=[],p=[],h=[];for(;u<c&&(d=i[u]).type==="header";)g.push(this.renderSection(d,l,!0)),u+=1;for(;u<c&&(d=i[u]).type==="body";)p.push(this.renderSection(d,l,!1)),u+=1;for(;u<c&&(d=i[u]).type==="footer";)h.push(this.renderSection(d,l,!0)),u+=1;let y=!fs();const f={role:"rowgroup"};return m("table",{role:"grid",className:o.join(" "),style:{height:e.height}},!!(!y&&g.length)&&m("thead",f,...g),!!(!y&&p.length)&&m("tbody",f,...p),!!(!y&&h.length)&&m("tfoot",f,...h),y&&m("tbody",f,...g,...p,...h))}renderSection(e,n,r){return"outerContent"in e?m(P,{key:e.key},e.outerContent):m("tr",{key:e.key,role:"presentation",className:vd(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:c}=this.state,u=dd(s,e),d=ks(s,e),g=s.liquid?l?"scroll":u?"auto":"hidden":"visible",p=e.key,h=ud(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&o[p]!==void 0?o[p]:null,clientHeight:c[p]!==void 0?c[p]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return m(i?"th":"td",{ref:r.elRef,role:"presentation"},m("div",{className:`fc-scroller-harness${d?" fc-scroller-harness-liquid":""}`},m(ad,{ref:this.scrollerRefs.createRef(p),elRef:this.scrollerElRefs.createRef(p),overflowY:g,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:d,liquidIsAbsolute:!0},h)))}_handleScrollerEl(e,n){let r=yd(this.props.sections,n);r&&ue(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return gd(this.props.cols)?cd(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Uc(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,s={},l={};for(let o in n.currentMap){let c=n.currentMap[o];if(c&&c.needsYScrolling()){i=!0;break}}for(let o of this.props.sections){let c=o.key,u=r.currentMap[c];if(u){let d=u.parentNode;s[c]=Math.floor(d.getBoundingClientRect().width-(i?e.y:0)),l[c]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:l}}}Jn.addStateEquality({scrollerClientWidths:oe,scrollerClientHeights:oe});function yd(t,e){for(let n of t)if(n.key===e)return n;return null}class Kn extends V{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&rs(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 L(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&pc(i,n),isStartResizable:!e.disableResizing&&gc(i,n),isEndResizable:!e.disableResizing&&mc(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 m(J,Object.assign({},e,{elRef:this.handleEl,elClasses:[...vc(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&&rs(this.el,this.props.seg)}}class xs extends V{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{ui:s}=i.eventRange,l=r.eventTimeFormat||e.defaultTimeFormat,o=ls(i,l,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return m(Kn,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:as(i,n),defaultGenerator:bd,timeText:o}),(c,u)=>m(P,null,m(c,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:u.textColor}}),!!u.isStartResizable&&m("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!u.isEndResizable&&m("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function bd(t){return m("div",{className:"fc-event-main-frame"},t.timeText&&m("div",{className:"fc-event-time"},t.timeText),m("div",{className:"fc-event-title-container"},m("div",{className:"fc-event-title fc-sticky"},t.event.title||m(P,null," "))))}const er=t=>m(de.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return m(J,Object.assign({},t,{elTag:t.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),Ed=z({day:"numeric"});class tr extends V{constructor(){super(...arguments),this.refineRenderProps=Dt(Sd)}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 m(J,Object.assign({},e,{elClasses:[...zn(i,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":vn(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 nr(t){return!!(t.dayCellContent||Dn("dayCellContent",t))}function Sd(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=ps(e,t.todayRange,null,r),l=t.showDayNumber?n.format(e,i?t.monthStartFormat:Ed):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:l}),t.extraRenderProps)}class Ms extends V{render(){let{props:e}=this,{seg:n}=e;return m(Kn,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Cd,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 Cd(t){let{title:e}=t.event;return e&&m("div",{className:"fc-event-title"},t.event.title)}function Ns(t){return m("div",{className:`fc-${t}`})}const Is=t=>m(de.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 m(J,Object.assign({},t,{renderProps:{num:l,text:o,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:_d,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function _d(t){return t.text}const rr=10;class wd extends V{constructor(){super(...arguments),this.state={titleId:Ct()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&ue(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=ui(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 ro(m("div",Object.assign({},r.extraAttrs,{id:r.id,className:s.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),m("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},m("span",{className:"fc-popover-title",id:i.titleId},r.title),m("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),m("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=Gc(n);if(s){let l=i.getBoundingClientRect(),o=r?W(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,c=e?s.right-l.width:s.left;o=Math.max(o,rr),c=Math.min(c,document.documentElement.clientWidth-rr-l.width),c=Math.max(c,rr);let u=i.offsetParent.getBoundingClientRect();Je(i,{top:o-u.top,left:c-u.left})}}}class Ad extends ae{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 m(tr,{elRef:this.handleRootEl,date:i,dateProfile:l,todayRange:s},(c,u,d)=>m(wd,{elRef:d.ref,id:r.id,title:o,extraClassNames:["fc-more-popover"].concat(d.className||[]),extraAttrs:d,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},nr(e)&&m(c,{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 Os extends V{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Ct()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&ue(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,s=Bs(n).start;function l(o){let{def:c,instance:u,range:d}=o.eventRange;return{event:new L(r,c,u),start:r.dateEnv.toDate(d.start),end:r.dateEnv.toDate(d.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 m(de.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:l}=r,{moreLinkText:o}=s,{moreCnt:c}=e,u=Bs(e),d=typeof o=="function"?o.call(l,c):`+${c} ${o}`,g=Ke(s.moreLinkHint,[c],d),p={num:c,shortText:`+${c}`,text:d,view:i};return m(P,null,!!e.moreCnt&&m(J,{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),gi(this.handleClick)),{title:g,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:p,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||Dd,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&m(Ad,{id:n.popoverId,startDate:u.start,endDate:u.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=W(this.linkEl,".fc-view-harness"))}}function Dd(t){return t.text}function Bs(t){if(t.allDayDate)return{start:t.allDayDate,end:G(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Vs(e),end:kd(e)}}function Vs(t){return t.reduce(Rd).eventRange.range.start}function Rd(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function kd(t){return t.reduce(Td).eventRange.range.end}function Td(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class xd{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 Md extends xd{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 Nd=[],Hs={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"},Ps=Object.assign(Object.assign({},Hs),{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 Id(t){let e=t.length>0?t[0].code:"en",n=Nd.concat(t),r={en:Ps};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function Ls(t,e){return typeof t=="object"&&!Array.isArray(t)?zs(t.code,[t.code],t):Od(t,e)}function Od(t,e){let n=[].concat(t||[]),r=Bd(n,e)||Ps;return zs(t,n,r)}function Bd(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 zs(t,e,n){let r=Sn([Hs,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 pe(t){return{id:De(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function Vd(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,c=n[o];c===void 0?(n[o]=l.id,i(l.deps),r=Pd(r,l)):c!==l.id&&console.warn(`Duplicate plugin '${o}'`)}}return t&&i(t),i(e),r}function Hd(){let t=[],e=[],n;return(r,i)=>((!n||!ye(r,t)||!ye(i,e))&&(n=Vd(r,i)),t=r,e=i,n)}function Pd(t,e){return{premiumReleaseDate:Ld(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 Ld(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class _e extends tt{}_e.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},_e.prototype.baseIconClass="fc-icon",_e.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"},_e.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},_e.prototype.iconOverrideOption="buttonIcons",_e.prototype.iconOverrideCustomButtonOption="icon",_e.prototype.iconOverridePrefix="fc-icon-";function zd(t,e){let n={},r;for(r in t)ir(r,n,t,e);for(r in e)ir(r,n,t,e);return n}function ir(t,e,n,r){if(e[t])return e[t];let i=Ud(t,e,n,r);return i&&(e[t]=i),i}function Ud(t,e,n,r){let i=n[t],s=r[t],l=d=>i&&i[d]!==null?i[d]:s&&s[d]!==null?s[d]:null,o=l("component"),c=l("superType"),u=null;if(c){if(c===t)throw new Error("Can't have a custom view type that references itself");u=ir(c,e,n,r)}return!o&&u&&(o=u.component),o?{type:t,component:o,defaults:Object.assign(Object.assign({},u?u.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},u?u.overrides:{}),s?s.rawOptions:{})}:null}function Us(t){return ce(t,jd)}function jd(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=js(e):n&&!(n.prototype instanceof V)&&(n=js(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function js(t){return e=>m(de.Consumer,null,n=>m(J,{elTag:"div",elClasses:Hi(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 Fd(t,e,n,r){let i=Us(t),s=Us(e.views),l=zd(i,s);return ce(l,o=>Wd(o,s,e,n,r))}function Wd(t,e,n,r,i){let s=t.overrides.duration||t.defaults.duration||r.duration||n.duration,l=null,o="",c="",u={};if(s&&(l=Gd(s),l)){let p=gn(l);o=p.unit,p.value===1&&(c=o,u=e[o]?e[o].rawOptions:{})}let d=p=>{let h=p.buttonText||{},y=t.defaults.buttonTextKey;return y!=null&&h[y]!=null?h[y]:h[t.type]!=null?h[t.type]:h[c]!=null?h[c]:null},g=p=>{let h=p.buttonHints||{},y=t.defaults.buttonTextKey;return y!=null&&h[y]!=null?h[y]:h[t.type]!=null?h[t.type]:h[c]!=null?h[c]:null};return{type:t.type,component:t.component,duration:l,durationUnit:o,singleUnit:c,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},u),t.overrides),buttonTextOverride:d(r)||d(n)||t.overrides.buttonText,buttonTextDefault:d(i)||t.defaults.buttonText||d(et)||t.type,buttonTitleOverride:g(r)||g(n)||t.overrides.buttonHint,buttonTitleDefault:g(i)||t.defaults.buttonHint||g(et)}}let Fs={};function Gd(t){let e=JSON.stringify(t),n=Fs[e];return n===void 0&&(n=O(t),Fs[e]=n),n}function $d(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function qd(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Yd(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 Qd(t,e,n){let r=e?e.activeRange:null;return Gs({},nu(t,n),r,n)}function Zd(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Gs(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return Jd(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?$s(t,i,r):t;case"FETCH_EVENT_SOURCES":return sr(t,e.sourceIds?Mi(e.sourceIds):qs(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return tu(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function Xd(t,e,n){let r=e?e.activeRange:null;return sr(t,qs(t,n),r,!0,n)}function Ws(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Gs(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=$s(i,n,r)),Object.assign(Object.assign({},t),i)}function Jd(t,e){return xe(t,n=>n.sourceId!==e)}function $s(t,e,n){return sr(t,xe(t,r=>Kd(r,e,n)),e,!1,n)}function Kd(t,e,n){return Ys(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function sr(t,e,n,r,i){let s={};for(let l in t){let o=t[l];e[l]?s[l]=eu(o,n,r,i):s[l]=o}return s}function eu(t,e,n,r){let{options:i,calendarApi:s}=r,l=r.pluginHooks.eventSourceDefs[t.sourceDefId],o=De();return l.fetch({eventSource:t,range:e,isRefetch:n,context:r},c=>{let{rawEvents:u}=c;i.eventSourceSuccess&&(u=i.eventSourceSuccess.call(s,u,c.response)||u),t.success&&(u=t.success.call(s,u,c.response)||u),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:o,fetchRange:e,rawEvents:u})},c=>{let u=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,c),u=!0),t.failure&&(t.failure(c),u=!0),u||console.warn(c.message,c),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:o,fetchRange:e,error:c})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:o})}function tu(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 qs(t,e){return xe(t,n=>Ys(n,e))}function nu(t,e){let n=Yi(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=qi(s,e,n);l&&i.push(l)}return i}function Ys(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function ru(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function iu(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function su(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 lu(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 ou(t,e,n,r,i){let s=t.headerToolbar?Qs(t.headerToolbar,t,e,n,r,i):null,l=t.footerToolbar?Qs(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:l}}function Qs(t,e,n,r,i,s){let l={},o=[],c=!1;for(let u in t){let d=t[u],g=au(d,e,n,r,i,s);l[u]=g.widgets,o.push(...g.viewsWithButtons),c=c||g.hasTitle}return{sectionWidgets:l,viewsWithButtons:o,hasTitle:c}}function au(t,e,n,r,i,s){let l=e.direction==="rtl",o=e.customButtons||{},c=n.buttonText||{},u=e.buttonText||{},d=n.buttonHints||{},g=e.buttonHints||{},p=t?t.split(" "):[],h=[],y=!1;return{widgets:p.map(v=>v.split(",").map(C=>{if(C==="title")return y=!0,{buttonName:C};let _,R,k,B,I,w;if(_=o[C])k=N=>{_.click&&_.click.call(N.target,N,N.target)},(B=r.getCustomButtonIconClass(_))||(B=r.getIconClass(C,l))||(I=_.text),w=_.hint||_.text;else if(R=i[C]){h.push(C),k=()=>{s.changeView(C)},(I=R.buttonTextOverride)||(B=r.getIconClass(C,l))||(I=R.buttonTextDefault);let N=R.buttonTextOverride||R.buttonTextDefault;w=Ke(R.buttonTitleOverride||R.buttonTitleDefault||e.viewHint,[N,C],N)}else if(s[C])if(k=()=>{s[C]()},(I=c[C])||(B=r.getIconClass(C,l))||(I=u[C]),C==="prevYear"||C==="nextYear"){let N=C==="prevYear"?"prev":"next";w=Ke(d[N]||g[N],[u.year||"year","year"],u[C])}else w=N=>Ke(d[C]||g[C],[u[N]||N,N],u[C]);return{buttonName:C,buttonClick:k,buttonIcon:B,buttonText:I,buttonHint:w}})),viewsWithButtons:h,hasTitle:y}}class cu{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 du=pe({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})}}]}),uu=pe({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;Ac(i.bind(null,cs(t.range,r)),s=>e({rawEvents:s}),n)}}]}),fu=pe({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:E,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=hu(r,t.range,t.context);Dc(r.method,r.url,i).then(([s,l])=>{e({rawEvents:s,response:l})},n)}}]});function hu(t,e,n){let{dateEnv:r,options:i}=n,s,l,o,c,u={};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"?c=t.extraParams():c=t.extraParams||{},Object.assign(u,c),u[s]=r.formatIso(e.start),u[l]=r.formatIso(e.end),r.timeZone!=="local"&&(u[o]=r.timeZone),u}const pu=pe({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=Vo(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=Ne(e,{start:t.startRecur,end:t.endRecur});return r?gu(t.daysOfWeek,t.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:E,startTime:O,endTime:O,duration:O,startRecur:E,endRecur:E}});function gu(t,e,n,r){let i=t?Mi(t):null,s=H(n.start),l=n.end,o=[];for(;s<l;){let c;(!i||i[s.getUTCDay()])&&(e?c=r.add(s,e):c=s,o.push(c)),s=G(s,1)}return o}const mu=pe({name:"change-handler",optionChangeHandlers:{events(t,e){Zs([t],e)},eventSources:Zs}});function Zs(t,e){let n=Cn(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 vu(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},cs(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function yu(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Oe(t,e))}const bu=[du,uu,fu,pu,mu,pe({name:"misc",isLoadingFuncs:[t=>Ws(t.eventSources)],propSetHandlers:{dateProfile:vu,eventStore:yu}})];class Eu{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new cn(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 Su(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,z(e.titleFormat||Cu(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Cu(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=At(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class _u{constructor(e){this.computeCurrentViewData=M(this._computeCurrentViewData),this.organizeRawLocales=M(Id),this.buildLocale=M(Ls),this.buildPluginHooks=Hd(),this.buildDateEnv=M(wu),this.buildTheme=M(Au),this.parseToolbars=M(ou),this.buildViewSpecs=M(Fd),this.buildDateProfileGenerator=Dt(Du),this.buildViewApi=M(Ru),this.buildViewUiProps=Dt(xu),this.buildEventUiBySource=M(ku,oe),this.buildEventUiBases=M(Tu),this.parseContextBusinessHours=Dt(Mu),this.buildTitle=M(Su),this.emitter=new Pt,this.actionRunner=new Eu(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=p=>{this.actionRunner.request(p)},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=La(r.calendarOptions,r.dateEnv),o=s.dateProfileGenerator.build(l);fe(o.activeRange,l)||(l=o.currentRange.start);let c={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let p of r.pluginHooks.contextInit)p(c);let u=Qd(r.calendarOptions,o,c),d={dynamicOptionOverrides:n,currentViewType:i,currentDate:l,dateProfile:o,businessHours:this.parseContextBusinessHours(c),eventSources:u,eventUiBases:{},eventStore:K(),renderableEventStore:K(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(c).selectionConfig},g=Object.assign(Object.assign({},c),d);for(let p of r.pluginHooks.reducers)Object.assign(d,p(null,null,g));lr(d,c)&&this.emitter.trigger("loading",!0),this.state=d,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=qd(r.dynamicOptionOverrides,e),l=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),o=$d(r.currentViewType,e),c=this.computeCurrentViewData(o,l,n.optionOverrides,s);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(c.options);let u={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:d,dateProfile:g}=r;this.data&&this.data.dateProfileGenerator!==c.dateProfileGenerator&&(g=c.dateProfileGenerator.build(d)),d=Pa(d,e),g=Yd(g,e,d,c.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!fe(g.currentRange,d))&&(d=g.currentRange.start);let p=Zd(r.eventSources,e,g,u),h=Ja(r.eventStore,e,p,g,u),f=Ws(p)&&!c.options.progressiveEventRendering&&r.renderableEventStore||h,{eventUiSingleBase:v,selectionConfig:C}=this.buildViewUiProps(u),_=this.buildEventUiBySource(p),R=this.buildEventUiBases(f.defs,v,_),k={dynamicOptionOverrides:s,currentViewType:o,currentDate:d,dateProfile:g,eventSources:p,eventStore:h,renderableEventStore:f,selectionConfig:C,eventUiBases:R,businessHours:this.parseContextBusinessHours(u),dateSelection:ru(r.dateSelection,e),eventSelection:iu(r.eventSelection,e),eventDrag:su(r.eventDrag,e),eventResize:lu(r.eventResize,e)},B=Object.assign(Object.assign({},u),k);for(let N of l.pluginHooks.reducers)Object.assign(k,N(r,e,B));let I=lr(r,u),w=lr(k,u);!I&&w?i.trigger("loading",!0):I&&!w&&i.trigger("loading",!1),this.state=k,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,c=r&&r.calendarOptions,u=i.calendarOptions;if(c&&c!==u){c.timeZone!==u.timeZone&&(n.eventSources=l.eventSources=Xd(l.eventSources,n.dateProfile,l),n.eventStore=l.eventStore=Xi(l.eventStore,r.dateEnv,l.dateEnv),n.renderableEventStore=l.renderableEventStore=Xi(l.renderableEventStore,r.dateEnv,l.dateEnv));for(let d in o)(this.optionsForHandling.indexOf(d)!==-1||c[d]!==u[d])&&o[d](u[d],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:c}=this.processRawCalendarOptions(e,n);Xs(c);let u=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,o,i.defaultRangeSeparator),d=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l),g=this.buildTheme(i,s),p=this.parseToolbars(i,this.stableOptionOverrides,g,d,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:u,viewSpecs:d,theme:g,toolbarConfig:p,localeDefaults:l,availableRawLocales:o.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=bn([et,e,n]),s=this.organizeRawLocales(r),l=s.map,o=this.buildLocale(i||s.defaultCode,l).options,c=this.buildPluginHooks(e.plugins||[],bu),u=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ki),Ti),xi),c.listenerRefiners),c.optionRefiners),d={},g=bn([et,o,e,n]),p={},h=this.currentCalendarOptionsInput,y=this.currentCalendarOptionsRefined,f=!1;for(let v in g)this.optionsForRefining.indexOf(v)===-1&&(g[v]===h[v]||ke[v]&&v in h&&ke[v](h[v],g[v]))?p[v]=y[v]:u[v]?(p[v]=u[v](g[v]),f=!0):d[v]=h[v];return f&&(this.currentCalendarOptionsInput=g,this.currentCalendarOptionsRefined=p,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:c,availableLocaleData:s,localeDefaults:o,extra:d}}_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);Xs(o);let c=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}),u=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:l,dateProfileGenerator:c,viewApi:u}}processRawViewOptions(e,n,r,i,s){let l=bn([et,e.optionDefaults,r,i,e.optionOverrides,s]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ki),Ti),xi),ga),n.listenerRefiners),n.optionRefiners),c={},u=this.currentViewOptionsInput,d=this.currentViewOptionsRefined,g=!1,p={};for(let h in l)l[h]===u[h]||ke[h]&&ke[h](l[h],u[h])?c[h]=d[h]:(l[h]===this.currentCalendarOptionsInput[h]||ke[h]&&ke[h](l[h],this.currentCalendarOptionsInput[h])?h in this.currentCalendarOptionsRefined&&(c[h]=this.currentCalendarOptionsRefined[h]):o[h]?c[h]=o[h](l[h]):p[h]=l[h],g=!0);return g&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=c),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:p}}}function wu(t,e,n,r,i,s,l,o){let c=Ls(e||l.defaultCode,l.map);return new Aa({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:c,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:o})}function Au(t,e){let n=e.themeClasses[t.themeSystem]||_e;return new n(t)}function Du(t){let e=t.dateProfileGeneratorClass||Ui;return new e(t)}function Ru(t,e,n){return new cu(t,e,n)}function ku(t){return ce(t,e=>e.ui)}function Tu(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 xu(t){let{options:e}=t;return{eventUiSingleBase:Ht({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:Ht({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function lr(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Mu(t){return oc(t.options.businessHours,t)}function Xs(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}class Nu extends V{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return m("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:c,buttonText:u,buttonIcon:d,buttonHint:g}=l;if(o==="title")s=!1,i.push(m("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let p=o===n.activeButton,h=!n.isTodayEnabled&&o==="today"||!n.isPrevEnabled&&o==="prev"||!n.isNextEnabled&&o==="next",y=[`fc-${o}-button`,r.getClass("button")];p&&y.push(r.getClass("buttonActive")),i.push(m("button",{type:"button",title:typeof g=="function"?g(n.navUnit):g,disabled:h,"aria-pressed":p,className:y.join(" "),onClick:c},u||(d?m("span",{className:d,role:"img"}):"")))}}if(i.length>1){let l=s&&r.getClass("buttonGroup")||"";return m("div",{className:l},...i)}return i[0]}}class Js extends V{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,m("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 m(Nu,{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 Iu extends V{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,ue(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||"",m("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 Ou extends Fe{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,l=je(r);if(l&&i.isValidSegDownEl(n.target)){let o=W(n.target,".fc-event-forced-url"),c=o?o.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new L(i.context,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi}),c&&!n.defaultPrevented&&(window.location.href=c)}},this.destroy=hi(e.el,"click",".fc-event",this.handleSegClick)}}class Bu extends Fe{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{je(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=So(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,l=je(r);(!n||i.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:r,event:new L(s,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi})}}class Vu extends Me{constructor(){super(...arguments),this.buildViewContext=M(ka),this.buildViewPropTransformers=M(Pu),this.buildToolbarProps=M(Hu),this.headerRef=Q(),this.footerRef=Q(),this.interactionsStore={},this.state={viewLabelId:Ct()},this.registerInteractiveComponent=(e,n)=>{let r=Tc(e,n),l=[Ou,Bu].concat(this.props.pluginHooks.componentInteractions).map(o=>new o(r));this.interactionsStore[e.uid]=l,Pn[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 Pn[e.uid]},this.resizeRunner=new cn(()=>{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,nt(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 c=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),u=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return m(de.Provider,{value:c},n.header&&m(Js,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:u},i)),m(Iu,{liquid:s,height:l,aspectRatio:o,labeledById:u},this.renderView(e),this.buildAppendContent()),n.footer&&m(Js,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 m(P,{},...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 m(l,Object.assign({},i))}}function Hu(t,e,n,r,i,s){let l=n.build(i,void 0,!1),o=n.buildPrev(e,r,!1),c=n.buildNext(e,r,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:l.isValid&&!fe(e.currentRange,i),isPrevEnabled:o.isValid,isNextEnabled:c.isValid}}function Pu(t){return t.map(e=>new e)}let Lu=class extends xc{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;Ii(()=>{Xe(m(kc,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,l,o)=>(this.setClassNames(i),this.setHeight(s),m(Vi.Provider,{value:this.customContentRenderId},m(Vu,Object.assign({isHeightAuto:l,forPrint:o},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Xe(null,this.el),this.setClassNames([]),this.setHeight(""))},fo(e),this.el=e,this.renderRunner=new cn(this.handleRenderRequest),new _u({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(){Ii(()=>{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(!ye(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){di(this.el,"height",e)}};const zu={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Uu=a.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:Wu(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(a.h(ju,{key:e.id,customRendering:e}));return a.h("div",{attrs:{"data-fc-render-id":this.renderId}},a.h(a.Fragment,t))},mounted(){const t=new Md;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new Lu(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:Fu()}),ju=a.defineComponent({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return a.h(a.Teleport,{to:t.containerEl},e)}});function Lg(t){return t}function Fu(){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 zu)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 Wu(t){const e={};for(const n in t)e[Gu(n)]=t[n];return e}function Gu(t){return t.split("-").map((e,n)=>n?$u(e):e).join("")}function $u(t){return t.charAt(0).toUpperCase()+t.slice(1)}var qu={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 Yu extends ae{constructor(){super(...arguments),this.headerElRef=Q()}renderSimpleLayout(e,n){let{props:r,context:i}=this,s=[],l=Wt(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}}),m(Nt,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},m(Jn,{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,c=!l.forPrint&&Wt(o.options),u=!l.forPrint&&Ts(o.options),d=[];return e&&d.push({type:"header",key:"header",isSticky:c,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),d.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),u&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Xn}]}),m(Nt,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},m(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:d}))}}function Gt(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 $t(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 Ks(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 el=z({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function tl(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 nl extends V{render(){let{props:e}=this;return m(xs,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:el,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class rl extends V{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,s=r.eventTimeFormat||el,l=ls(i,s,n,!0,e.defaultDisplayEventEnd);return m(Kn,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:as(e.seg,n),defaultGenerator:Qu,timeText:l,isResizing:!1,isDateSelecting:!1}))}}function Qu(t){return m(P,null,m("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&m("div",{className:"fc-event-time"},t.timeText),m("div",{className:"fc-event-title"},t.event.title||m(P,null," ")))}class Zu extends V{constructor(){super(...arguments),this.compileSegs=M(Xu)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return m(Os,{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 m(P,null,n.map(s=>{let l=s.eventRange.instance.instanceId;return m("div",{className:"fc-daygrid-event-harness",key:l,style:{visibility:i[l]?"hidden":""}},tl(s)?m(rl,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},Ce(s,e.todayRange))):m(nl,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},Ce(s,e.todayRange))))}))}})}}function Xu(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 Ju=z({week:"narrow"});class Ku extends ae{constructor(){super(...arguments),this.rootElRef=Q(),this.state={dayNumberId:Ct()},this.handleRootEl=e=>{ue(this.rootElRef,e),ue(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:i}=this,{options:s,dateEnv:l}=e,{date:o,dateProfile:c}=n;const u=n.showDayNumber&&tf(o,c.currentRange,l);return m(tr,{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:ef,date:o,dateProfile:c,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:u,extraRenderProps:n.extraRenderProps},(d,g)=>m("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&m(Is,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:zt(e,o,"week"),date:o,defaultFormat:Ju}),!g.isDisabled&&(n.showDayNumber||nr(s)||n.forceDayTop)?m("div",{className:"fc-daygrid-day-top"},m(d,{elTag:"a",elClasses:["fc-daygrid-day-number",u&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},zt(e,o)),{id:r.dayNumberId})})):n.showDayNumber?m("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},m("a",{className:"fc-daygrid-day-number"}," ")):void 0,m("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,m("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},m(Zu,{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}))),m("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function ef(t){return t.dayNumberText||m(P,null," ")}function tf(t,e,n){const{start:r,end:i}=e,s=be(i,-1),l=n.getYear(r),o=n.getMonth(r),c=n.getYear(s),u=n.getMonth(s);return!(l===c&&o===u)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<i.valueOf())}function il(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function sl(t){return il(t)+":"+t.lastCol}function nf(t,e,n,r,i,s,l){let o=new lf(C=>{let _=t[C.index].eventRange.instance.instanceId+":"+C.span.start+":"+(C.span.end-1);return i[_]});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 c=[],u=[];for(let C=0;C<t.length;C+=1){let _=t[C],R=sl(_);i[R]!=null?c.push({index:C,span:{start:_.firstCol,end:_.lastCol+1}}):u.push(_)}let d=o.addSegs(c),g=o.toRects(),{singleColPlacements:p,multiColPlacements:h,leftoverMargins:y}=rf(g,t,l),f=[],v=[];for(let C of u){h[C.firstCol].push({seg:C,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let _=C.firstCol;_<=C.lastCol;_+=1)p[_].push({seg:Ge(C,_,_+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let C=0;C<l.length;C+=1)f.push(0);for(let C of d){let _=t[C.index],R=C.span;h[R.start].push({seg:Ge(_,R.start,R.end,l),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let k=R.start;k<R.end;k+=1)f[k]+=1,p[k].push({seg:Ge(_,k,k+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let C=0;C<l.length;C+=1)v.push(y[C]);return{singleColPlacements:p,multiColPlacements:h,moreCnts:f,moreMarginTops:v}}function rf(t,e,n){let r=sf(t,n.length),i=[],s=[],l=[];for(let o=0;o<n.length;o+=1){let c=r[o],u=[],d=0,g=0;for(let h of c){let y=e[h.index];u.push({seg:Ge(y,o,o+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:h.levelCoord-d}),d=h.levelCoord+h.thickness}let p=[];d=0,g=0;for(let h of c){let y=e[h.index],f=h.span.end-h.span.start>1,v=h.span.start===o;g+=h.levelCoord-d,d=h.levelCoord+h.thickness,f?(g+=h.thickness,v&&p.push({seg:Ge(y,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:h.levelCoord,marginTop:0})):v&&(p.push({seg:Ge(y,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:g}),g=0)}i.push(u),s.push(p),l.push(g)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:l}}function sf(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 Ge(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let i=t.eventRange,s=i.range,l=Ne(s,{start:r[e].date,end:G(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 lf extends vs{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[Be(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:c}=e;if(this.hiddenConsumes&&l){const u=Be(l);if(!s[u])if(this.allowReslicing){const d=Object.assign(Object.assign({},l),{span:$n(l.span,n.span)}),g=Be(d);s[g]=!0,i[o][c]=d,this.splitEntry(l,n,r)}else s[u]=!0,r.push(l)}return super.handleInvalidInsertion(e,n,r)}}class ll extends ae{constructor(){super(...arguments),this.cellElRefs=new he,this.frameElRefs=new he,this.fgElRefs=new he,this.segHarnessRefs=new he,this.rootElRef=Q(),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=$t(e.businessHourSegs,s),o=$t(e.bgEventSegs,s),c=$t(this.getHighlightSegs(),s),u=$t(this.getMirrorSegs(),s),{singleColPlacements:d,multiColPlacements:g,moreCnts:p,moreMarginTops:h}=nf(ss(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),y=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return m("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((f,v)=>{let C=this.renderFgSegs(v,e.forPrint?d[v]:g[v],e.todayRange,y),_=this.renderFgSegs(v,of(u[v],g),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return m(Ku,{key:f.key,elRef:this.cellElRefs.createRef(f.key),innerElRef:this.frameElRefs.createRef(f.key),dateProfile:e.dateProfile,date:f.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&v===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:f.extraRenderProps,extraDataAttrs:f.extraDataAttrs,extraClassNames:f.extraClassNames,extraDateSpan:f.extraDateSpan,moreCnt:p[v],moreMarginTop:h[v],singlePlacements:d[v],fgContentElRef:this.fgElRefs.createRef(f.key),fgContent:m(P,null,m(P,null,C),m(P,null,_)),bgContent:m(P,null,this.renderFillSegs(c[v],"highlight"),this.renderFillSegs(l[v],"non-business"),this.renderFillSegs(o[v],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!oe(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:c}=this,{eventSelection:u}=this.props,{framePositions:d}=this.state,g=this.props.cells.length===1,p=s||l||o,h=[];if(d)for(let y of n){let{seg:f}=y,{instanceId:v}=f.eventRange.instance,C=y.isVisible&&!i[v],_=y.isAbsolute,R="",k="";_&&(c.isRtl?(k=0,R=d.lefts[f.lastCol]-d.lefts[f.firstCol]):(R=0,k=d.rights[f.firstCol]-d.rights[f.lastCol])),h.push(m("div",{className:"fc-daygrid-event-harness"+(_?" fc-daygrid-event-harness-abs":""),key:il(f),ref:p?null:this.segHarnessRefs.createRef(sl(f)),style:{visibility:C?"":"hidden",marginTop:_?"":y.marginTop,top:_?y.absoluteTop:"",left:R,right:k}},tl(f)?m(rl,Object.assign({seg:f,isDragging:s,isSelected:v===u,defaultDisplayEventEnd:g},Ce(f,r))):m(nl,Object.assign({seg:f,isDragging:s,isResizing:l,isDateSelecting:o,isSelected:v===u,defaultDisplayEventEnd:g},Ce(f,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 c=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(m("div",{key:os(o.eventRange),className:"fc-daygrid-bg-harness",style:c},n==="bg-event"?m(Ms,Object.assign({seg:o},Ce(o,i))):Ns(n)))}return m(P,{},...l)}updateSizing(e){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let c=n.cells.map(u=>i.currentMap[u.key]);if(c.length){let u=this.rootElRef.current,d=new We(u,c,!0,!1);(!r.framePositions||!r.framePositions.similarTo(d))&&this.setState({framePositions:new We(u,c,!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])}}ll.addStateEquality({segHeights:oe});function of(t,e){if(!t.length)return[];let n=af(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function af(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class cf extends ae{constructor(){super(...arguments),this.splitBusinessHourSegs=M(Gt),this.splitBgEventSegs=M(Gt),this.splitFgEventSegs=M(Gt),this.splitDateSelectionSegs=M(Gt),this.splitEventDrag=M(Ks),this.splitEventResize=M(Ks),this.rowRefs=new he}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),c=this.splitEventDrag(e.eventDrag,r),u=this.splitEventResize(e.eventResize,r),d=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return m(it,{unit:"day"},(g,p)=>m(P,null,e.cells.map((h,y)=>m(ll,{ref:this.rowRefs.createRef(y),key:h.length?h[0].date.toISOString():y,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:p,dateProfile:e.dateProfile,cells:h,renderIntro:e.renderRowIntro,businessHourSegs:i[y],eventSelection:e.eventSelection,bgEventSegs:s[y].filter(df),fgEventSegs:l[y],dateSelectionSegs:o[y],eventDrag:c[y],eventResize:u[y],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:d,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 We(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new We(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=G(r,1);return{start:r,end:i}}}function df(t){return t.eventRange.def.allDay}class uf extends ae{constructor(){super(...arguments),this.elRef=Q(),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 m("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},m("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,m("tbody",{role:"presentation"},m(cf,{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=ff(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 ff(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${Jo(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${vn(e.currentDate)}"]`)),n}class hf extends ws{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class ol extends ae{constructor(){super(...arguments),this.slicer=new hf,this.tableRef=Q()}render(){let{props:e,context:n}=this;return m(uf,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 pf extends Yu{constructor(){super(...arguments),this.buildDayTableModel=M(gf),this.headerRef=Q(),this.tableRef=Q()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),s=e.dayHeaders&&m(Ss,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),l=o=>m(ol,{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 gf(t,e){let n=new Cs(t.renderRange,e);return new _s(n,/year|month|week/.test(t.currentRangeUnit))}class mf extends Ui{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return vf({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function vf(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=Ei(s,1))),t.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(G(n.end,-1))),o=Math.ceil(Uo(l,i));i=Ei(i,6-o)}return{start:r,end:i}}var yf=':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}';on(yf);var bf=pe({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:pf,dateProfileGeneratorClass:mf},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}}}}),Ef='.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-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}';on(Ef);class Sf extends Bc{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?fc(e)?["timed","allDay"]:["allDay"]:["timed"]}}const Cf=z({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function al(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return m(de.Consumer,null,n=>{if(!t.isLabeled)return m("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:r,options:i,viewApi:s}=n,l=i.slotLabelFormat==null?Cf:Array.isArray(i.slotLabelFormat)?z(i.slotLabelFormat[0]):z(i.slotLabelFormat),o={level:0,time:t.time,date:r.toDate(t.date),view:s,text:r.format(t.date,l)};return m(J,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:o,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:_f,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},c=>m("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},m(c,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function _f(t){return t.text}class wf extends V{render(){return this.props.slatMetas.map(e=>m("tr",{key:e.key},m(al,Object.assign({},e))))}}const Af=z({week:"short"}),Df=5;class Rf extends ae{constructor(){super(...arguments),this.allDaySplitter=new Sf,this.headerElRef=Q(),this.rootElRef=Q(),this.scrollerElRef=Q(),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=Re(s.start,s.end)===1?zt(this.context,s.start,"week"):{};return r.weekNumbers&&e==="day"?m(Is,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:s.start,defaultFormat:Af},c=>m("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},m(c,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:o}))):m("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},m("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 m(J,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:kf,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},s=>m("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},m(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=Wt(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:m("tr",{role:"presentation",className:"fc-scrollgrid-section"},m("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}}),m(Nt,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},m(Jn,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,cols:[{width:"shrink"}],sections:l}))}renderHScrollLayout(e,n,r,i,s,l,o){let c=this.context.pluginHooks.scrollGridImpl;if(!c)throw new Error("No ScrollGrid implementation");let{context:u,props:d}=this,g=!d.forPrint&&Wt(u.options),p=!d.forPrint&&Ts(u.options),h=[];e&&h.push({type:"header",key:"header",isSticky:g,syncRowHeights:!0,chunks:[{key:"axis",rowContent:f=>m("tr",{role:"presentation"},this.renderHeadAxis("day",f.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:f=>m("tr",{role:"presentation"},this.renderTableRowAxis(f.rowSyncHeights[0]))},{key:"cols",content:n}]}),h.push({key:"all-day-divider",type:"body",outerContent:m("tr",{role:"presentation",className:"fc-scrollgrid-section"},m("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));let y=u.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:!!u.options.expandRows,chunks:[{key:"axis",content:f=>m("div",{className:"fc-timegrid-axis-chunk"},m("table",{"aria-hidden":!0,style:{height:f.expandRows?f.clientHeight:""}},f.tableColGroupNode,m("tbody",null,m(wf,{slatMetas:l}))),m("div",{className:"fc-timegrid-now-indicator-container"},m(it,{unit:y?"minute":"day"},v=>{let C=y&&o&&o.safeComputeTop(v);return typeof C=="number"?m(er,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:C},isAxis:!0,date:v}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),p&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Xn},{key:"cols",content:Xn}]}),m(Nt,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:u.viewSpec},m(c,{liquid:!d.isHeightAuto&&!d.forPrint,forPrint:d.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=Df),{dayMaxEvents:e,dayMaxEventRows:n}}}function kf(t){return t.text}class Tf{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(fe(n.currentRange,e)){let r=H(e),i=e.valueOf()-r.valueOf();if(i>=re(n.slotMinTime)&&i<re(n.slotMaxTime))return this.computeTimeTop(O(i))}return null}computeDateTop(e,n){return n||(n=H(e)),this.computeTimeTop(O(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,i=n.els.length,s=(e.milliseconds-re(r.slotMinTime))/re(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 xf extends V{render(){let{props:e,context:n}=this,{options:r}=n,{slatElRefs:i}=e;return m("tbody",null,e.slatMetas.map((s,l)=>{let o={time:s.time,date:n.dateEnv.toDate(s.date),view:n.viewApi};return m("tr",{key:s.key,ref:i.createRef(s.key)},e.axis&&m(al,Object.assign({},s)),m(J,{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 Mf extends V{constructor(){super(...arguments),this.rootElRef=Q(),this.slatElRefs=new he}render(){let{props:e,context:n}=this;return m("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},m("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,m(xf,{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 Tf(new We(this.rootElRef.current,Nf(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function Nf(t,e){return e.map(n=>t[n.key])}function st(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 cl(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 If extends V{render(){let{props:e}=this;return m(Os,{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:()=>hl(e.hiddenSegs,e),defaultGenerator:Of,forceTimed:!0},n=>m(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Of(t){return t.shortText}function Bf(t,e,n){let r=new vs;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(t),s=Yc(i),l=Vf(r);return l=zf(l,1),{segRects:Uf(l),hiddenGroups:s}}function Vf(t){const{entriesByLevel:e}=t,n=or((r,i)=>r+":"+i,(r,i)=>{let s=Lf(t,r,i),l=dl(s,n),o=e[r][i];return[Object.assign(Object.assign({},o),{nextLevelNodes:l[0]}),o.thickness+l[1]]});return dl(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function dl(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(Hf),[l.map(Pf),l[0][1]]}function Hf(t,e){return e[1]-t[1]}function Pf(t){return t[0]}function Lf(t,e,n){let{levelCoords:r,entriesByLevel:i}=t,s=i[e][n],l=r[e]+s.thickness,o=r.length,c=e;for(;c<o&&r[c]<l;c+=1);for(;c<o;c+=1){let u=i[c],d,g=Yn(u,s.span.start,Gn),p=g[0]+g[1],h=p;for(;(d=u[h])&&d.span.start<s.span.end;)h+=1;if(p<h)return{level:c,lateralStart:p,lateralEnd:h}}return null}function zf(t,e){const n=or((r,i,s)=>Be(r),(r,i,s)=>{let{nextLevelNodes:l,thickness:o}=r,c=o+s,u=o/c,d,g=[];if(!l.length)d=e;else for(let h of l)if(d===void 0){let y=n(h,i,c);d=y[0],g.push(y[1])}else{let y=n(h,d,0);g.push(y[1])}let p=(d-i)*u;return[d-p,Object.assign(Object.assign({},r),{thickness:p,nextLevelNodes:g})]});return t.map(r=>n(r,0,0)[1])}function Uf(t){let e=[];const n=or((i,s,l)=>Be(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 c of i)o=Math.max(n(c,s,l),o);return o}return r(t,0,0),e}function or(t,e){const n={};return(...r)=>{let i=t(...r);return i in n?n[i]:n[i]=e(...r)}}function ul(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),c=Math.max(o+(r||0),n.computeDateTop(l.end,e));i.push({start:Math.round(o),end:Math.round(c)})}return i}function jf(t,e,n,r){let i=[],s=[];for(let u=0;u<t.length;u+=1){let d=e[u];d?i.push({index:u,thickness:1,span:d}):s.push(t[u])}let{segRects:l,hiddenGroups:o}=Bf(i,n,r),c=[];for(let u of l)c.push({seg:t[u.index],rect:u});for(let u of s)c.push({seg:u,rect:null});return{segPlacements:c,hiddenGroups:o}}const Ff=z({hour:"numeric",minute:"2-digit",meridiem:!1});class fl extends V{render(){return m(xs,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Ff}))}}class Wf extends V{constructor(){super(...arguments),this.sortEventSegs=M(ss)}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 m(tr,{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},c=>m("div",{className:"fc-timegrid-col-frame"},m("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),m("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,l,!1,!1,!1)),m("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,{},!!e.eventDrag,!!e.eventResize,!!i,"mirror")),m("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),nr(r)&&m(c,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,i,s,l){let{props:o}=this;return o.forPrint?hl(e,o):this.renderPositionedFgSegs(e,n,r,i,s,l)}renderPositionedFgSegs(e,n,r,i,s,l){let{eventMaxStack:o,eventShortHeight:c,eventOrderStrict:u,eventMinHeight:d}=this.context.options,{date:g,slatCoords:p,eventSelection:h,todayRange:y,nowDate:f}=this.props,v=r||i||s,C=ul(e,g,p,d),{segPlacements:_,hiddenGroups:R}=jf(e,C,u,o);return m(P,null,this.renderHiddenGroups(R,e),_.map(k=>{let{seg:B,rect:I}=k,w=B.eventRange.instance.instanceId,N=v||!!(!n[w]&&I),q=ar(I&&I.span),ie=!v&&I?this.computeSegHStyle(I):{left:0,right:0},ge=!!I&&I.stackForward>0,F=!!I&&I.span.end-I.span.start<c;return m("div",{className:"fc-timegrid-event-harness"+(ge?" fc-timegrid-event-harness-inset":""),key:l||w,style:Object.assign(Object.assign({visibility:N?"":"hidden"},q),ie)},m(fl,Object.assign({seg:B,isDragging:r,isResizing:i,isDateSelecting:s,isSelected:w===h,isShort:F},Ce(B,y,f))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:o,eventDrag:c,eventResize:u}=this.props;return m(P,null,e.map(d=>{let g=ar(d.span),p=Gf(d.entries,n);return m(If,{key:wi(Vs(p)),hiddenSegs:p,top:g.top,bottom:g.bottom,extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:o,eventDrag:c,eventResize:u})}))}renderFillSegs(e,n){let{props:r,context:i}=this,l=ul(e,r.date,r.slatCoords,i.options.eventMinHeight).map((o,c)=>{let u=e[c];return m("div",{key:os(u.eventRange),className:"fc-timegrid-bg-harness",style:ar(o)},n==="bg-event"?m(Ms,Object.assign({seg:u},Ce(u,r.todayRange,r.nowDate))):Ns(n))});return m(P,null,l)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((i,s)=>m(er,{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,c;i&&(l=Math.min(1,s+(l-s)*2)),n?(o=1-l,c=s):(o=s,c=1-l);let u={zIndex:e.stackDepth+1,left:o*100+"%",right:c*100+"%"};return i&&!e.stackForward&&(u[n?"marginLeft":"marginRight"]=10*2),u}}function hl(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let l=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return m(P,null,t.map(o=>{let c=o.eventRange.instance.instanceId;return m("div",{key:c,style:{visibility:l[c]?"hidden":""}},m(fl,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:c===r,isShort:!1},Ce(o,e,n))))}))}function ar(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function Gf(t,e){return t.map(n=>e[n.index])}class $f extends V{constructor(){super(...arguments),this.splitFgEventSegs=M(st),this.splitBgEventSegs=M(st),this.splitBusinessHourSegs=M(st),this.splitNowIndicatorSegs=M(st),this.splitDateSelectionSegs=M(st),this.splitEventDrag=M(cl),this.splitEventResize=M(cl),this.rootElRef=Q(),this.cellElRefs=new he}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),c=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i),u=this.splitDateSelectionSegs(e.dateSelectionSegs,i),d=this.splitEventDrag(e.eventDrag,i),g=this.splitEventResize(e.eventResize,i);return m("div",{className:"fc-timegrid-cols",ref:this.rootElRef},m("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,m("tbody",{role:"presentation"},m("tr",{role:"row"},e.axis&&m("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},m("div",{className:"fc-timegrid-col-frame"},m("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&m(er,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((p,h)=>m(Wf,{key:p.key,elRef:this.cellElRefs.createRef(p.key),dateProfile:e.dateProfile,date:p.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:p.extraRenderProps,extraDataAttrs:p.extraDataAttrs,extraClassNames:p.extraClassNames,extraDateSpan:p.extraDateSpan,fgEventSegs:s[h],bgEventSegs:l[h],businessHourSegs:o[h],nowIndicatorSegs:c[h],dateSelectionSegs:u[h],eventDrag:d[h],eventResize:g[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 We(this.rootElRef.current,qf(this.cellElRefs.currentMap,e.cells),!0,!1))}}function qf(t,e){return e.map(n=>t[n.key])}class Yf extends ae{constructor(){super(...arguments),this.processSlotOptions=M(Qf),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 m("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},m(Mf,{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}),m($f,{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:c,snapsPerSlot:u}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),d=s.leftToIndex(e),g=o.positions.topToIndex(n);if(d!=null&&g!=null){let p=this.props.cells[d],h=o.positions.tops[g],y=o.positions.getHeight(g),f=(n-h)/y,v=Math.floor(f*u),C=g*u+v,_=this.props.cells[d].date,R=hn(l.slotMinTime,Ho(c,C)),k=r.add(_,R),B=r.add(k,c);return{dateProfile:l,dateSpan:Object.assign({range:{start:k,end:B},allDay:!1},p.extraDateSpan),dayEl:s.els[d],rect:{left:s.lefts[d],right:s.rights[d],top:h,bottom:h+y},layer:0}}return null}}function Qf(t,e){let n=e||t,r=pn(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class Zf extends ws{sliceRange(e,n){let r=[];for(let i=0;i<n.length;i+=1){let s=Ne(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 Xf extends ae{constructor(){super(...arguments),this.buildDayRanges=M(Jf),this.slicer=new Zf,this.timeColsRef=Q()}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 m(it,{unit:s?"minute":"day"},(c,u)=>m(Yf,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:c,nowIndicatorSegs:s&&this.slicer.sliceNowDate(c,r,l,n,o),todayRange:u,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function Jf(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 pl=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Kf(t,e,n,r,i){let s=new Date(0),l=t,o=O(0),c=n||eh(r),u=[];for(;re(l)<re(e);){let d=i.add(s,l),g=pn(o,c)!==null;u.push({date:d,time:l,key:d.toISOString(),isoTimeStr:Ko(d),isLabeled:g}),l=hn(l,r),o=hn(o,r)}return u}function eh(t){let e,n,r;for(e=pl.length-1;e>=0;e-=1)if(n=O(pl[e]),r=pn(n,t),r!==null&&r>1)return n;return t}class th extends Rf{constructor(){super(...arguments),this.buildTimeColsModel=M(nh),this.buildSlatMetas=M(Kf)}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),c=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:u}=e,d=!u,g=u,p=e.dayHeaders&&m(Ss,{dates:l.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:d?this.renderHeadAxis:null}),h=e.allDaySlot!==!1&&(f=>m(ol,Object.assign({},o.allDay,{dateProfile:s,dayTableModel:l,nextDayThreshold:e.nextDayThreshold,tableMinWidth:f.tableMinWidth,colGroupNode:f.tableColGroupNode,renderRowIntro:d?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:f.clientWidth,clientHeight:f.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),y=f=>m(Xf,Object.assign({},o.timed,{dayTableModel:l,dateProfile:s,axis:d,slotDuration:e.slotDuration,slatMetas:c,forPrint:i.forPrint,tableColGroupNode:f.tableColGroupNode,tableMinWidth:f.tableMinWidth,clientWidth:f.clientWidth,clientHeight:f.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:f.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return g?this.renderHScrollLayout(p,h,y,l.colCnt,u,c,this.state.slatCoords):this.renderSimpleLayout(p,h,y)}}function nh(t,e){let n=new Cs(t.renderRange,e);return new _s(n,!1)}var rh=pe({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:th,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});Qn.touchMouseIgnoreWait=500;let cr=0,qt=0,dr=!1;class gl{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()&&ih(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,sh()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.pageXOffset-this.prevScrollX+this.prevPageX,i=window.pageYOffset-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 Pt,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),lh()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),oh()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||W(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){dr=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?W(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return cr||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(dr=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,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 ih(t){return t.button===0&&!t.ctrlKey}function sh(){cr+=1,setTimeout(()=>{cr-=1},Qn.touchMouseIgnoreWait)}function lh(){qt+=1,qt===1&&window.addEventListener("touchmove",ml,{passive:!1})}function oh(){qt-=1,qt||window.removeEventListener("touchmove",ml,{passive:!1})}function ml(t){dr&&t.preventDefault()}class ah{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.pageXOffset,this.origScreenY=r-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=n-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,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",Je(r,{left:i.left,top:i.top}),Co(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(dn(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&Je(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.classList.add("fc-event-dragging"),Je(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 vl extends Wn{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 yl extends vl{constructor(e,n){super(new $c(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Wc(this.scrollController.el)}}class ch extends vl{constructor(e){super(new qc,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 bl=typeof performance=="function"?performance.now:Date.now;class dh{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let n=bl();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.pageXOffset,i=n-window.pageYOffset,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(bl()))}}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,c=e-o.left,u=o.right-e,d=n-o.top,g=o.bottom-n;c>=0&&u>=0&&d>=0&&g>=0&&(d<=r&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>d)&&(i={scrollCache:l,name:"top",distance:d}),g<=r&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>g)&&(i={scrollCache:l,name:"bottom",distance:g}),c<=r&&this.everMovedLeft&&l.canScrollLeft()&&(!i||i.distance>c)&&(i={scrollCache:l,name:"left",distance:c}),u<=r&&this.everMovedRight&&l.canScrollRight()&&(!i||i.distance>u)&&(i={scrollCache:l,name:"right",distance:u}))}return i}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new ch(!1):new yl(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 lt extends Zc{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,_o(document.body),Ao(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:c}=i;l=o*o+c*c,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,wo(document.body),Do(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 gl(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 ah,this.autoScroller=new dh}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 uh{constructor(e){this.origRect=Fn(e),this.scrollCaches=ms(e).map(n=>new yl(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(!fh(i.getEventTarget())&&!Mc(r,i.clientRect))return!1;return!0}}function fh(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class Yt{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,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 Pt}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl,s;i instanceof HTMLElement&&(s=Fn(i),r=Nc(r,s));let l=this.initialHit=this.queryHitForOffset(r.left,r.top);if(l){if(this.useSubjectCenter&&s){let o=hs(s,l.rect);o&&(r=Ic(o))}this.coordAdjust=Oc(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||!Qt(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=ce(this.droppableStore,e=>(e.component.prepareHits(),new uh(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,c=i[l];if(c&&c.isWithinClipping(e,n)){let u=c.computeLeft(),d=c.computeTop(),g=e-u,p=n-d,{origRect:h}=c,y=h.right-h.left,f=h.bottom-h.top;if(g>=0&&g<y&&p>=0&&p<f){let v=o.queryHit(g,p,y,f);v&&It(v.dateProfile.activeRange,v.dateSpan.range)&&(!s||v.layer>s.layer)&&(v.componentId=l,v.context=o.context,v.rect.left+=u,v.rect.right+=u,v.rect.top+=d,v.rect.bottom+=d,s=v)}}}return s}}function Qt(t,e){return!t&&!e?!0:!!t!=!!e?!1:Sc(t.dateSpan,e.dateSpan)}function El(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,hh(t,e.dateEnv)),n}function hh(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class ph extends Fe{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&&Qt(l,o)){let{context:c}=i,u=Object.assign(Object.assign({},El(l.dateSpan,c)),{dayEl:l.dayEl,jsEvent:r.origEvent,view:c.viewApi||c.calendarApi.view});c.emitter.trigger("dateClick",u)}}},this.dragging=new lt(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new Yt(this.dragging,Hn(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class gh extends Fe{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=l=>{let{component:o,dragging:c}=this,{options:u}=o.context,d=u.selectable&&o.isValidDateDownEl(l.origEvent.target);c.setIgnoreMove(!d),c.delay=l.isTouch?mh(o):null},this.handleDragStart=l=>{this.component.context.calendarApi.unselect(l)},this.handleHitUpdate=(l,o)=>{let{context:c}=this.component,u=null,d=!1;if(l){let g=this.hitDragging.initialHit;l.componentId===g.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(g,l)||(u=vh(g,l,c.pluginHooks.dateSelectionTransformers)),(!u||!nd(u,l.dateProfile,c))&&(d=!0,u=null)}u?c.dispatch({type:"SELECT_DATES",selection:u}):o||c.dispatch({type:"UNSELECT_DATES"}),d?un():fn(),o||(this.dragSelection=u)},this.handlePointerUp=l=>{this.dragSelection&&(Ki(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,i=this.dragging=new lt(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Yt(this.dragging,Hn(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 mh(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function vh(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(Mo);let l={};for(let o of n){let c=o(t,e);if(c===!1)return null;c&&Object.assign(l,c)}return l.range={start:s[0],end:s[3]},l.allDay=r.allDay,l}class ot extends Fe{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:c,dragging:u}=this,{mirror:d}=u,{options:g}=c.context,p=c.context;this.subjectEl=l.subjectEl;let h=this.subjectSeg=je(l.subjectEl),f=(this.eventRange=h.eventRange).instance.instanceId;this.relevantEvents=Nn(p.getCurrentData().eventStore,f),u.minDistance=l.isTouch?0:g.eventDragMinDistance,u.delay=l.isTouch&&f!==c.props.eventSelection?bh(c):null,g.fixedMirrorParent?d.parentNode=g.fixedMirrorParent:d.parentNode=W(o,".fc"),d.revertDuration=g.dragRevertDuration;let v=c.isValidSegDownEl(o)&&!W(o,".fc-event-resizer");u.setIgnoreMove(!v),this.isDragging=v&&l.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=l=>{let o=this.component.context,c=this.eventRange,u=c.instance.instanceId;l.isTouch?u!==this.component.props.eventSelection&&o.dispatch({type:"SELECT_EVENT",eventInstanceId:u}):o.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(o.calendarApi.unselect(l),o.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new L(o,c.def,c.instance),jsEvent:l.origEvent,view:o.viewApi}))},this.handleHitUpdate=(l,o)=>{if(!this.isDragging)return;let c=this.relevantEvents,u=this.hitDragging.initialHit,d=this.component.context,g=null,p=null,h=null,y=!1,f={affectedEvents:c,mutatedEvents:K(),isEvent:!0};if(l){g=l.context;let v=g.options;d===g||v.editable&&v.droppable?(p=yh(u,l,g.getCurrentData().pluginHooks.eventDragMutationMassagers),p&&(h=Bn(c,g.getCurrentData().eventUiBases,p,g),f.mutatedEvents=h,As(f,l.dateProfile,g)||(y=!0,p=null,h=null,f.mutatedEvents=K()))):g=null}this.displayDrag(g,f),y?un():fn(),o||(d===g&&Qt(u,l)&&(p=null),this.dragging.setMirrorNeedsRevert(!p),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=g,this.validMutation=p,this.mutatedRelevantEvents=h)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=l=>{if(this.isDragging){let o=this.component.context,c=o.viewApi,{receivingContext:u,validMutation:d}=this,g=this.eventRange.def,p=this.eventRange.instance,h=new L(o,g,p),y=this.relevantEvents,f=this.mutatedRelevantEvents,{finalHit:v}=this.hitDragging;if(this.clearDrag(),o.emitter.trigger("eventDragStop",{el:this.subjectEl,event:h,jsEvent:l.origEvent,view:c}),d){if(u===o){let C=new L(o,f.defs[g.defId],p?f.instances[p.instanceId]:null);o.dispatch({type:"MERGE_EVENTS",eventStore:f});let _={oldEvent:h,event:C,relatedEvents:Oe(f,o,p),revert(){o.dispatch({type:"MERGE_EVENTS",eventStore:y})}},R={};for(let k of o.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(R,k(d,o));o.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},_),R),{el:l.subjectEl,delta:d.datesDelta,jsEvent:l.origEvent,view:c})),o.emitter.trigger("eventChange",_)}else if(u){let C={event:h,relatedEvents:Oe(y,o,p),revert(){o.dispatch({type:"MERGE_EVENTS",eventStore:y})}};o.emitter.trigger("eventLeave",Object.assign(Object.assign({},C),{draggedEl:l.subjectEl,view:c})),o.dispatch({type:"REMOVE_EVENTS",eventStore:y}),o.emitter.trigger("eventRemove",C);let _=f.defs[g.defId],R=f.instances[p.instanceId],k=new L(u,_,R);u.dispatch({type:"MERGE_EVENTS",eventStore:f});let B={event:k,relatedEvents:Oe(f,u,R),revert(){u.dispatch({type:"REMOVE_EVENTS",eventStore:f})}};u.emitter.trigger("eventAdd",B),l.isTouch&&u.dispatch({type:"SELECT_EVENT",eventInstanceId:p.instanceId}),u.emitter.trigger("drop",Object.assign(Object.assign({},El(v.dateSpan,u)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:v.context.viewApi})),u.emitter.trigger("eventReceive",Object.assign(Object.assign({},B),{draggedEl:l.subjectEl,view:v.context.viewApi}))}}else o.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,i=this.dragging=new lt(e.el);i.pointer.selector=ot.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Yt(this.dragging,Pn);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:K(),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}}ot.SELECTOR=".fc-event-draggable, .fc-event-resizable";function yh(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=r.range.start,l=i.range.start,o={};r.allDay!==i.allDay&&(o.allDay=i.allDay,o.hasEnd=e.context.options.allDayMaintainDuration,i.allDay&&(s=H(s)));let c=ze(s,l,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);c.milliseconds&&(o.allDay=!1);let u={datesDelta:c,standardProps:o};for(let d of n)d(u,t,e);return u}function bh(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class Eh extends Fe{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),c=je(o),u=this.eventRange=c.eventRange;this.dragging.minDistance=l.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==u.instance.instanceId)},this.handleDragStart=s=>{let{context:l}=this.component,o=this.eventRange;this.relevantEvents=Nn(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let c=this.querySegEl(s);this.draggingSegEl=c,this.draggingSeg=je(c),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:c,event:new L(l,o.def,o.instance),jsEvent:s.origEvent,view:l.viewApi})},this.handleHitUpdate=(s,l,o)=>{let{context:c}=this.component,u=this.relevantEvents,d=this.hitDragging.initialHit,g=this.eventRange.instance,p=null,h=null,y=!1,f={affectedEvents:u,mutatedEvents:K(),isEvent:!0};s&&(s.componentId===d.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(d,s)||(p=Sh(d,s,o.subjectEl.classList.contains("fc-event-resizer-start"),g.range))),p&&(h=Bn(u,c.getCurrentData().eventUiBases,p,c),f.mutatedEvents=h,As(f,s.dateProfile,c)||(y=!0,p=null,h=null,f.mutatedEvents=null)),h?c.dispatch({type:"SET_EVENT_RESIZE",state:f}):c.dispatch({type:"UNSET_EVENT_RESIZE"}),y?un():fn(),l||(p&&Qt(d,s)&&(p=null),this.validMutation=p,this.mutatedRelevantEvents=h)},this.handleDragEnd=s=>{let{context:l}=this.component,o=this.eventRange.def,c=this.eventRange.instance,u=new L(l,o,c),d=this.relevantEvents,g=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:u,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let p=new L(l,g.defs[o.defId],c?g.instances[c.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:g});let h={oldEvent:u,event:p,relatedEvents:Oe(g,l,c),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:d})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},h),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||O(0),endDelta:this.validMutation.endDelta||O(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 lt(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let i=this.hitDragging=new Yt(this.dragging,Hn(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 W(e.subjectEl,".fc-event")}}function Sh(t,e,n,r){let i=t.context.dateEnv,s=t.dateSpan.range.start,l=e.dateSpan.range.start,o=ze(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 Ch{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=ui(r.origEvent);this.matchesCancel=!!W(s,i),this.matchesEvent=!!W(s,ot.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 gl(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 _h={fixedMirrorParent:E},wh={dateClick:E,eventDragStart:E,eventDragStop:E,eventDrop:E,eventResizeStart:E,eventResizeStop:E,eventResize:E,drop:E,eventReceive:E,eventLeave:E};Qn.dataAttrPrefix="";var Ah=pe({name:"@fullcalendar/interaction",componentInteractions:[ph,gh,ot,Eh],calendarInteractions:[Ch],elementDraggingImpl:lt,optionRefiners:_h,listenerRefiners:wh});const Dh={},Rh={t:"1672196428320",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3618",width:"200",height:"200"},kh=[a.createElementVNode("path",{d:"M384 250V134a70 70 0 0 0-70-70H134a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70z m-80-10H144v-96h160zM890 704H710a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70V774a70 70 0 0 0-70-70z m-10 176H720v-96h160zM890 384H710a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70V454a70 70 0 0 0-70-70z m-10 176H720v-96h160zM536 504H264v-80a40 40 0 0 0-40-40 40 40 0 0 0-40 40v432a40 40 0 0 0 40 40h312a40 40 0 0 0 40-40 40 40 0 0 0-40-40H264V584h272a40 40 0 0 0 40-40 40 40 0 0 0-40-40z","p-id":"3619","data-spm-anchor-id":"a313x.7781069.0.i2",class:"selected"},null,-1)];function Th(t,e){return a.openBlock(),a.createElementBlock("svg",Rh,kh)}const ur=ne(Dh,[["render",Th]]),xh={},Mh={t:"1672197639916",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19012"},Nh=[a.createElementVNode("path",{d:"M863.1 255.1H551.3c-25.1 0-49.2-9.8-67.1-27.4l-75-73.4c-17.9-17.5-42-27.4-67.1-27.4H161c-53 0-96 43-96 96v512.8c0 53 43 96 96 96h702c53 0 96-43 96-96V351.1c0.1-53-42.9-96-95.9-96z m-31 161.1c0 17.7-14.3 32-32 32H224c-17.7 0-32-14.3-32-32v-0.1c0-17.7 14.3-32 32-32h576.1c17.7 0 32 14.3 32 32v0.1z","p-id":"19013"},null,-1)];function Ih(t,e){return a.openBlock(),a.createElementBlock("svg",Mh,Nh)}const at=ne(xh,[["render",Ih]]),Oh={},Bh={t:"1672197222005",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"14755"},Vh=[a.createElementVNode("path",{d:"M959.68 921.024c-15.232-181.696-139.648-331.968-307.84-386.624 70.464-45.632 117.248-124.48 117.248-214.464C769.152 178.624 654.208 64 512.512 64 370.752 64 255.808 178.624 255.808 319.936c0 89.984 46.784 168.832 117.248 214.528-168.192 54.592-292.544 204.864-307.84 386.56-0.192 3.456-0.64 5.44 0 10.176C66.496 947.2 80.64 960 96.704 960c17.92 0 32.064-14.656 32.064-32 16.704-197.76 182.272-351.936 383.744-351.936 201.408 0 366.976 154.176 383.68 351.936 0 17.344 14.144 32 32.064 32 16.064 0 30.208-12.8 31.424-28.8C960.32 926.464 959.936 924.416 959.68 921.024zM320 319.936C320 213.952 406.208 128 512.512 128s192.448 85.952 192.448 191.936c0 106.048-86.144 192-192.448 192S320 425.984 320 319.936z","p-id":"14756"},null,-1)];function Hh(t,e){return a.openBlock(),a.createElementBlock("svg",Bh,Vh)}const Zt=ne(Oh,[["render",Hh]]),Ph={},Lh={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"},zh=[a.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),a.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)];function Uh(t,e){return a.openBlock(),a.createElementBlock("svg",Lh,zh)}const jh=ne(Ph,[["render",Uh]]),Fh={},Wh={t:"1672212880079",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19924"},Gh=[a.createElementVNode("path",{d:"M806.4 263.2l-45.6-45.6L512 467.2 263.2 217.6l-45.6 45.6L467.2 512 217.6 760.8l45.6 45.6L512 557.6l248.8 248.8 45.6-45.6L557.6 512z","p-id":"19925"},null,-1)];function $h(t,e){return a.openBlock(),a.createElementBlock("svg",Wh,Gh)}const qh=ne(Fh,[["render",$h]]),Yh={},Qh={t:"1672216076738",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"28376"},Zh=[a.createElementVNode("path",{d:"M501.937582 545.097053c147.891962 0 268.231366-118.534055 268.223274-264.288929 0-145.746783-120.330301-264.28994-268.222263-264.28994-147.890951 0-268.221252 118.584625-268.221252 264.28994C233.71633 426.520519 354.046631 545.097053 501.937582 545.097053zM612.471463 570.546911 411.497184 570.546911c-186.760063 0-338.664249 149.569875-338.664249 333.472733l0 19.794109c0 96.139636 149.47278 96.139636 338.664249 96.139636l200.974278 0c181.747565 0 338.694591 0 338.694591-96.139636l0-19.794109C951.164031 720.158252 799.235571 570.546911 612.471463 570.546911z","p-id":"28377"},null,-1)];function Xh(t,e){return a.openBlock(),a.createElementBlock("svg",Qh,Zh)}const $e=ne(Yh,[["render",Xh]]),Jh={},Kh={t:"1680231254898",class:"icon",viewBox:"0 0 1154 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9556"},ep=[a.createElementVNode("path",{d:"M1015.808 64.512q62.464 0 99.84 31.744t37.376 96.256l0 568.32q0 27.648-10.24 52.224t-28.16 43.008-41.984 29.184-50.688 10.752l-892.928 0q-26.624 0-50.176-10.24t-40.96-27.136-27.648-39.424-10.24-48.128l0-580.608q0-55.296 33.792-90.624t95.232-35.328l886.784 0zM287.744 253.952q-19.456 0-36.864 7.168t-30.72 19.968-20.992 30.72-7.68 38.4 7.68 37.888 20.992 30.72 30.72 20.992 36.864 7.68q21.504 0 39.424-7.68t30.72-20.992 20.48-30.72 7.68-37.888q0-41.984-27.648-69.12t-70.656-27.136zM448.512 608.256q0-19.456-7.68-37.376t-20.48-30.72-30.72-20.48-37.376-7.68l-128 0q-39.936 0-67.584 28.16t-27.648 68.096l0 4.096 0 92.16 319.488 0 0-92.16 0-4.096zM923.648 709.632q20.48 0 30.208-10.24t9.728-24.576-11.264-25.088-31.744-10.752l-305.152 0q-20.48 0-30.72 10.752t-10.24 25.088 10.24 24.576 29.696 10.24l309.248 0zM924.672 577.536q20.48 0 29.696-10.24t9.216-24.576q0-15.36-8.704-25.6t-29.184-10.24l-313.344 0q-20.48 0-29.696 10.24t-9.216 25.6q0 14.336 8.704 24.576t29.184 10.24l313.344 0zM925.696 447.488q15.36 0 26.624-10.24t11.264-24.576-11.264-23.04-26.624-8.704l-207.872 0q-15.36 0-26.112 8.704t-10.752 23.04 10.752 24.576 26.112 10.24l207.872 0z","p-id":"9557"},null,-1)];function tp(t,e){return a.openBlock(),a.createElementBlock("svg",Kh,ep)}const fr=ne(Jh,[["render",tp]]),np={},rp={t:"1698719360533",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15490",width:"200",height:"200"},ip=[a.createElementVNode("path",{d:"M960 704h-63.616v-167.392a32 32 0 0 0-32-32H544V416h160a32 32 0 0 0 32-32V96a32 32 0 0 0-32-32H320a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h160v88.608H161.984a32 32 0 0 0-32 31.968L129.792 704H64a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32H193.792l0.16-135.392H480V704h-64a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32h-64v-135.392h288.384V704H768a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32zM352 128h320v224H352V128zM224 896H96v-128h128v128z m352 0h-128v-128h128v128z m352 0h-128v-128h128v128z","p-id":"15491"},null,-1)];function sp(t,e){return a.openBlock(),a.createElementBlock("svg",rp,ip)}const ct=ne(np,[["render",sp]]),Sl={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"}},lp={class:"left-pick-list"},op={class:"post-view-list"},ap=["title"],cp={class:"ik-picker-single"},dp=["title"],up=a.defineComponent({__name:"PostList",props:Sl,emits:["change","check"],setup(t,{emit:e}){var g,p;const n=t,r=a.computed(()=>{var h,y;return((h=n.handList)==null?void 0:h.length)===((y=n.list)==null?void 0:y.length)}),i=a.computed(()=>{var f,v,C,_;const h=(f=n.handList)==null?void 0:f.length,y=(v=n.list)==null?void 0:v.length;return n.multiple?s.value=n.handList.map(R=>R[n.fixPropOpt.id]):l.value=(_=(C=n.handList)==null?void 0:C[0])==null?void 0:_[n.fixPropOpt.id],h>0&&h<y}),s=a.ref(n.handList.map(h=>h[n.fixPropOpt.id])),l=a.ref((p=(g=n.handList)==null?void 0:g[0])==null?void 0:p[n.fixPropOpt.id]),o=e,c=h=>{const y=h?n.list.map(f=>f[n.fixPropOpt.id]):[];o("change",y,h?n.list:[])},u=h=>{o("change",h,n.list)},d=h=>{o("change",h,n.list)};return(h,y)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createCommentVNode(" 遍历list多选 "),a.createElementVNode("div",lp,[h.multiple?(a.openBlock(),a.createBlock(a.unref(D.ElCheckbox),{key:0,modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=f=>r.value=f),indeterminate:i.value,onChange:c},{default:a.withCtx(()=>[a.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):a.createCommentVNode("v-if",!0),a.createElementVNode("ul",op,[h.multiple?(a.openBlock(),a.createBlock(a.unref(D.ElCheckboxGroup),{key:0,modelValue:s.value,"onUpdate:modelValue":y[1]||(y[1]=f=>s.value=f),onChange:u},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.list,f=>(a.openBlock(),a.createElementBlock("li",{key:f[n.fixPropOpt.id]},[a.createVNode(a.unref(D.ElCheckbox),{label:f[n.fixPropOpt.id]},{default:a.withCtx(()=>[a.createVNode(fr),a.createElementVNode("p",{title:f[n.fixPropOpt.name]},a.toDisplayString(f[n.fixPropOpt.name]),9,ap)]),_:2},1032,["label"])]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(a.unref(D.ElRadioGroup),{key:1,isIndeterminate:i.value,modelValue:l.value,"onUpdate:modelValue":y[2]||(y[2]=f=>l.value=f),onChange:d},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.list,f=>(a.openBlock(),a.createElementBlock("li",{class:"w-full",key:f[n.fixPropOpt.id]},[a.createVNode(a.unref(D.ElRadio),{label:f[n.fixPropOpt.id]},{default:a.withCtx(()=>[a.createElementVNode("div",cp,[a.createVNode(fr),a.createElementVNode("p",{title:f[n.fixPropOpt.name]},a.toDisplayString(f[n.fixPropOpt.name]),9,dp)])]),_:2},1032,["label"])]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])])],2112))}}),Zg="",fp=ne(up,[["__scopeId","data-v-a87521f6"]]),hp={class:"left-pick-list"},pp={class:"role-view-list"},gp=["title"],mp={class:"ik-picker-single"},vp=["title"],yp=a.defineComponent({__name:"RoleList",props:Sl,emits:["change","check"],setup(t,{emit:e}){var g,p;const n=t,r=a.computed(()=>{var h,y;return((h=n.handList)==null?void 0:h.length)===((y=n.list)==null?void 0:y.length)}),i=a.computed(()=>{var f,v,C,_;const h=(f=n.handList)==null?void 0:f.length,y=(v=n.list)==null?void 0:v.length;return n.multiple?s.value=n.handList.map(R=>R[n.fixPropOpt.id]):l.value=(_=(C=n.handList)==null?void 0:C[0])==null?void 0:_[n.fixPropOpt.id],h>0&&h<y}),s=a.ref(n.handList.map(h=>h[n.fixPropOpt.id])),l=a.ref((p=(g=n.handList)==null?void 0:g[0])==null?void 0:p[n.fixPropOpt.id]),o=e,c=h=>{const y=h?n.list.map(f=>f[n.fixPropOpt.id]):[];o("change",y,h?n.list:[])},u=h=>{o("change",h,n.list)},d=h=>{o("change",h,n.list)};return(h,y)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createCommentVNode(" 遍历list多选 "),a.createElementVNode("div",hp,[h.multiple?(a.openBlock(),a.createBlock(a.unref(D.ElCheckbox),{key:0,modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=f=>r.value=f),indeterminate:i.value,onChange:c},{default:a.withCtx(()=>[a.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):a.createCommentVNode("v-if",!0),a.createElementVNode("ul",pp,[h.multiple?(a.openBlock(),a.createBlock(a.unref(D.ElCheckboxGroup),{key:0,modelValue:s.value,"onUpdate:modelValue":y[1]||(y[1]=f=>s.value=f),onChange:u},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.list,f=>(a.openBlock(),a.createElementBlock("li",{key:f[h.fixPropOpt.id]},[a.createVNode(a.unref(D.ElCheckbox),{label:f[h.fixPropOpt.id],value:f[h.fixPropOpt.id],disabled:f.disabled},{default:a.withCtx(()=>[a.createVNode($e),a.createElementVNode("p",{title:f[h.fixPropOpt.name]},a.toDisplayString(f[h.fixPropOpt.name]),9,gp)]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(a.unref(D.ElRadioGroup),{key:1,indeterminate:i.value,modelValue:l.value,"onUpdate:modelValue":y[2]||(y[2]=f=>l.value=f),onChange:d},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.list,f=>(a.openBlock(),a.createElementBlock("li",{class:"w-full",key:f[h.fixPropOpt.id]},[a.createVNode(a.unref(D.ElRadio),{label:f[h.fixPropOpt.id],value:f[h.fixPropOpt.id],disabled:f.disabled},{default:a.withCtx(()=>[a.createElementVNode("div",mp,[a.createVNode($e),a.createElementVNode("p",{title:f[h.fixPropOpt.name]},a.toDisplayString(f[h.fixPropOpt.name]),9,vp)])]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["indeterminate","modelValue"]))])])],2112))}}),Xg="",bp=ne(yp,[["__scopeId","data-v-a51e0920"]]);var $=(t=>(t.org="organization",t.dep="dep",t.user="user",t.role="role",t.post="post",t.dep_user="dep_user",t))($||{}),dt=(t=>(t.group="group",t.role="role",t.post="post",t))(dt||{});const we={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:25,bottom:8,background:"#0000"}},Ep={topLink:{type:Boolean,default:!0},children:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},pid:{type:String,default:""},orgPid:{type:String,default:"root"},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},organizationList:{type:Array,default:()=>[]},depList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:t=>{if(t===void 0)return!0;if(Array.isArray(t)){if(!(t!=null&&t.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},showDep:{type:Boolean,default:!0},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer iking"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},cache:{type:Boolean,default:!0},placeholder:{type:String,default:"模糊搜索组织、人员、角色、岗位"},emptyText:{type:String,default:"暂无数据"}},Cl=t=>{const e=window.location.search;return new URLSearchParams(e).get(t)},Sp=t=>{const e=j.ikStore.local.getItem("x_domain");e&&(t["X-DOMAIN"]=e)},Cp=t=>{var r;const e=Cl("domain");if(e){t["X-DOMAIN"]=e;const i=Cl("code");e==="APPLICATION"&&(t["X-APP"]=i)}else Sp(t);const n=(r=j.ikStore.local.getItem("tenant"))==null?void 0:r.code;n&&(t["X-TENANT"]=n)},_p=(t,e)=>{const n=a.ref([]),r=async(s,l,o)=>{var q,ie;const{url:c,methods:u,headers:d,param:g}=t.value||{},p={parentOrgId:s,...g||{},parentDepartmentId:l||"",name:o||""},h={method:u,url:c,headers:{"Content-Type":"application/json;charset=UTF-8",...d},data:JSON.stringify(p)};Cp(h.headers);const y=await Nl(h),{success:f,data:v}=y.data;if(!f)return{depList:[],roleList:[],postList:[],userList:[],organizationList:[],rootOrganization:{},rootDepartment:{}};const{departments:C,roles:_,posts:R,users:k,organizations:B,rootOrganization:I,rootDepartment:w}=v,N=I||w;return n.value[0]=e.org?{...e.org,id:e.elementId,elementType:(ie=(q=e.org)==null?void 0:q.elementType)==null?void 0:ie.toLocaleUpperCase()}:{...N,id:N.elementId},{depList:j._.cloneDeep(C),roleList:j._.cloneDeep(_),postList:j._.cloneDeep(R),userList:j._.cloneDeep(k),organizationList:j._.cloneDeep(B),rootOrganization:I,rootDepartment:w}};return{handData:r,handSetChild:(s,l)=>{r(s==null?void 0:s.elementId,l)},bannerList:n}},wp={shadow:"hover",class:"sel-list"},Ap={key:0},Dp={key:0,class:"check-all"},Rp={key:0,class:"view-list"},kp={key:0,class:"filter-user"},Tp=["title"],xp={class:"filter-user"},Mp=["title"],Np={key:2,class:"next-child"},Ip={class:"filter-user"},Op=["title"],Bp={key:1,class:"filter-user"},Vp=["title"],Hp={key:2,class:"next-child"},Pp={class:"text-over-flow"},Lp=["title"],zp=["title"],Up={key:2,class:"next-child"},jp={key:1,class:"empty"},Fp=a.createElementVNode("div",{class:"split-div"},null,-1),Wp={class:"choose-list"},Gp={class:"choose-item"},$p=a.createElementVNode("div",null,"已选",-1),qp={class:"dialog-footer"},Yp=a.defineComponent({__name:"picker",props:Ep,emits:["handChild","update:show","update:modelValue","ok","search"],setup(t,{expose:e,emit:n}){a.useCssVars(S=>({"61ff3d3c":br.value}));const r=t,i=a.ref(""),s=a.ref(""),l=a.ref(""),o=a.ref([]),c=a.ref([]),u=a.ref([]),d=a.ref([]),g=a.ref([]),p=a.ref(!1),h=r.imageBaseUrl||`${location.origin}/server/oss/download?fileUrl=`,y=S=>S?S.startsWith("http")?S:`${h}${S}`:"";a.watch(()=>r.api,()=>{r.show&&ie("")});const f=a.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...r.propOption})),v=a.computed(()=>({dep:"DEPT",user:"USER",role:"ROLE",post:"POST",organization:"ORGANIZATION",...r.typeOption})),C=a.ref([]),_=_p(a.toRef(r,"api"),r),R=_.handData,k=_.bannerList;r.immediate&&R(l.value,s.value,i.value);const B=S=>(S.forEach(A=>{var b,T;A.disabled=((T=(b=r.modelValue)==null?void 0:b.find(U=>U[f.value.id]===A[f.value.id]))==null?void 0:T.disabled)||!1}),S),I=async()=>{var S,A,b,T,U,me,Qe,ht,xl;p.value=!0;try{if((S=r.depList)!=null&&S.length||(A=r.userList)!=null&&A.length||(b=r.roleList)!=null&&b.length||(T=r.postList)!=null&&T.length){o.value=(U=r.userList)==null?void 0:U.filter(se=>se[f.value.name].includes(i.value)),c.value=(me=r.depList)==null?void 0:me.filter(se=>se[f.value.name].includes(i.value)),u.value=(Qe=r.roleList)==null?void 0:Qe.filter(se=>se[f.value.name].includes(i.value)),d.value=(ht=r.postList)==null?void 0:ht.filter(se=>se[f.value.name].includes(i.value)),g.value=(xl=r.organizationList)==null?void 0:xl.filter(se=>se[f.value.name].includes(i.value)),mr(),p.value=!1;return}const Y=await R(l.value,s.value,i.value);try{o.value=B((Y==null?void 0:Y.userList)||[]),c.value=B((Y==null?void 0:Y.depList)||[]),u.value=B((Y==null?void 0:Y.roleList)||[]),d.value=B((Y==null?void 0:Y.postList)||[]),g.value=B((Y==null?void 0:Y.organizationList)||[])}catch(se){p.value=!1,console.info("error: ",se)}mr(),p.value=!1}catch{p.value=!1}},w=a.reactive({org:new Map,dep:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),N=a.reactive({indeterminate:!1,checkAll:0}),q=S=>w.org.has(S)||w.dep.has(S)||w.user.has(S)||w.role.has(S)||w.post.has(S),ie=j.ikEvent.debounce(I,300),ge=a.computed(()=>{const S=Array.from(w.org.values()),A=Array.from(w.dep.values()),b=Array.from(w.role.values()),T=Array.from(w.user.values()),U=Array.from(w.post.values());return C.value=[...S,...A,...b,...U,...T],{list:[...S,...A,...b,...T,...U],org:{list:S,len:S.length,deps:S},dep:{list:A,len:A.length,deps:A},role:{list:b,len:b.length},user:{list:T,len:T.length},post:{list:U,len:U.length}}}),F=a.computed(()=>{const S=r.chooseType.map(b=>b.toLocaleLowerCase());let A=[...S];return S.includes("dep")&&(A=[...A,"organization","dept"]),S.includes("dep_user")&&(A=[...A,"user"]),A}),wl=a.computed(()=>F.value.includes($.dep)&&!F.value.includes($.user)&&!F.value.includes($.org)),hr=a.computed(()=>F.value.includes($.user)&&!F.value.includes($.dep)&&!F.value.includes($.org)),bg=a.computed(()=>F.value.includes($.org)&&!F.value.includes($.dep)&&!F.value.includes($.user)),Eg=a.computed(()=>!k.value.length),pr=a.computed(()=>!r.max||ge.value.list.length<r.max),Sg=S=>[v.value.dep,v.value.organization].includes(S[f.value.type])?S.hasOwnProperty("disabled"):!1,ee=a.ref([]),Cg=S=>{ee.value=S,ee.value.forEach(A=>{A.readonly=A==null?void 0:A.disabled})},Xt=n,gr=a.ref(!1),mr=(S=!1)=>{var b;const A=(b=r==null?void 0:r.userList)!=null&&b.length?j._.cloneDeep([...r==null?void 0:r.organizationList,...r==null?void 0:r.userList,...r==null?void 0:r.depList]):[...g.value,...c.value,...o.value];return!S&&Cg(A),A};a.watch(()=>r.show,async S=>{var A;if(gr.value=S,S){s.value=r.pid,l.value=((A=r.org)==null?void 0:A.elementId)||r.orgPid,!r.userList.length&&!r.depList.length&&!r.roleList.length&&!r.postList.length&&!r.organizationList.length?await I():(o.value=r.userList,c.value=r.depList,u.value=r.roleList,d.value=r.postList,g.value=r.organizationList),w.trans=[],N.checkAll=0,N.indeterminate=!1;const b=mr(!0);for(const U of b)q(U[f.value.id])&&w.trans.push(U[f.value.id]);const T=b.length===w.trans.length;N.indeterminate=!!(b.length&&!T),N.checkAll=Number(b.length&&T),a.nextTick(()=>{var U;(U=r.modelValue)!=null&&U.length?r.modelValue.forEach(me=>{ft(me),r.multiple?w.trans.push(me[f.value.id]):w.single=me[f.value.id]}):Ye()})}else Ye()}),a.watchEffect(()=>{let S;if(wl.value||hr.value){const b=o.value.length,T=c.value.length;S=wl.value?T:hr.value?b:b+b}else S=ee.value.length;const A=w.trans.length;N.indeterminate=w.trans.length?A!==S:!1,N.checkAll=+(S!==0&&A===S)});const qe=S=>{if(S){if(w.single="",S[f.value.id]){const A=w.trans.findIndex(b=>b===S[f.value.id]);A!==-1&&w.trans.splice(A,1)}switch(S[f.value.type]){case v.value.dep:return w.dep.delete(S[f.value.id]);case v.value.user:return w.user.delete(S[f.value.id]);case v.value.role:return w.role.delete(S[f.value.id]);case v.value.post:return w.post.delete(S[f.value.id]);case v.value.organization:return w.org.delete(S[f.value.id]);default:return}}},Al=S=>{qe(S)},ft=S=>{if(!q(S[f.value.id])){const A={...S};switch(S[f.value.type]){case v.value.dep:return w.dep.set(S[f.value.id],A);case v.value.user:return w.user.set(S[f.value.id],A);case v.value.role:return w.role.set(S[f.value.id],A);case v.value.post:return w.post.set(S[f.value.id],A);case v.value.organization:return w.org.set(S[f.value.id],A);default:return}}};a.watch(()=>w.trans,S=>{if(!S.length)ee.value.forEach(A=>{A.disabled=!1;try{r.multiple&&qe(A)}catch{}});else{const A=ee.value.filter(T=>!S.includes(T[f.value.id]));for(const T of A)T.disabled=!1,r.multiple&&qe(T);const b=ee.value.filter(T=>S.includes(T[f.value.id]));for(const T of b)T.disabled=Sg(T),ft(T)}},{deep:!0}),a.watch(()=>w.single,S=>{if(S){const A=ee.value.find(b=>b[f.value.id]===S);A&&(w.dep.clear(),w.user.clear(),w.role.clear(),w.post.clear(),w.org.clear(),w.trans=[],a.nextTick(()=>{ft(A)}))}});const Dl=S=>{if(S){let A=[];if(F.value.includes("dep")||F.value.includes("dep_user")){const b=ee.value.filter(T=>T[f.value.type].toLocaleUpperCase()===v.value[$.dep].toLocaleUpperCase());A=[...A,...b]}if(F.value.includes("user")||F.value.includes("dep_user")){const b=ee.value.filter(T=>T[f.value.type].toLocaleUpperCase()===v.value[$.user].toLocaleUpperCase());A=[...A,...b]}if(F.value.includes("organization")){const b=ee.value.filter(T=>T[f.value.type].toLocaleUpperCase()===v.value[$.org].toLocaleUpperCase());A=[...A,...b]}A.forEach(b=>{!w.trans.includes(b[f.value.id])&&w.trans.push(b[f.value.id])})}else ee.value.forEach(A=>{const b=w.trans.findIndex(T=>T===A[f.value.id]);b>=0&&w.trans.splice(b,1)})},vr=S=>{S[f.value.type]===v.value.organization?(l.value=S==null?void 0:S.elementId,s.value=""):(l.value="",s.value=S==null?void 0:S.elementId),I(),k.value.push(S)},_g=()=>{const S=k.value.length-2,A=S<0?0:S,b=k.value[A];b[f.value.type]===v.value.organization?(l.value=S<0?"root":(b==null?void 0:b.elementId)||(b==null?void 0:b.id),s.value=""):(l.value="",s.value=S<0?"":(b==null?void 0:b.elementId)||(b==null?void 0:b.id)),I(),k.value.pop()},yr=a.computed(()=>k.value.length),wg=(S,A)=>{!A&&!r.topLink||A!==yr.value-1&&(S[f.value.type]===v.value.organization?(l.value=S==null?void 0:S.elementId,s.value=""):(l.value="",s.value=S==null?void 0:S.elementId),I(),k.value.splice(A+1))},Ag=a.computed(()=>r.chooseType.includes("role")&&r.chooseType.length===1),Dg=a.computed(()=>r.chooseType.includes("post")&&r.chooseType.length===1),Jt=a.ref(r.tabs[0]),Ve=a.ref(r.tabs[0]);a.watchEffect(()=>(Ve.value=Ag.value?r.tabs[1]:Dg.value?r.tabs[2]:Jt.value,Ve.value));const Ye=()=>{var S;w.dep.clear(),w.user.clear(),w.role.clear(),w.post.clear(),w.org.clear(),w.trans=[],Er.value=[],Sr.value=[],Jt.value=r.tabs[0],Ve.value=r.tabs[0],i.value="",s.value=r.pid,l.value=((S=r.org)==null?void 0:S.elementId)||r.orgPid,w.single="",C.value=[]},Rg=()=>{var S;Xt("ok",j._.cloneDeep({...ge.value,sort:C.value})),Xt("update:modelValue",j._.cloneDeep(((S=ge.value)==null?void 0:S.list)||[])),Xt("update:show",!1),Ye()},Rl=()=>{Xt("update:show",!1),Ye()};e({handClear:Ye,handRomeve:Al,handDelete:qe});const kg=a.computed(()=>{const S=F.value;return!!((S.includes("post")||S.includes("role"))&&S.length>1)}),Tg=a.computed(()=>[{label:"group",name:"组织架构"},{label:"role",name:"角色列表"},{label:"post",name:"岗位列表"}].filter(S=>r.tabs.includes(S.label))),kl=a.computed(()=>`${(typeof r.width=="string"?Number.parseInt(r.width):r.width)/2-30}px`),br=a.computed(()=>`${typeof r.height=="string"?Number.parseInt(r.height):r.height}px`),Tl=()=>{r.multiple||(w.post.clear(),w.role.clear(),w.user.clear(),w.dep.clear(),w.single="")},Er=a.ref([]),xg=(S,A)=>{r.multiple||(w.single="");const b=r.multiple?S:[S];if(!b.length){w.role.clear();return}Tl(),A.forEach(T=>{b!=null&&b.includes(T[f.value.id])?ft(T):qe(T)})};a.watch(()=>ge.value.role.len,S=>{Er.value=j._.cloneDeep(ge.value.role.list)});const Sr=a.ref([]),Mg=(S,A)=>{r.multiple||(w.single="");const b=r.multiple?S:[S];if(!b.length){w.post.clear();return}Tl(),A.forEach(T=>{b!=null&&b.includes(T[f.value.id])?ft(T):qe(T)})};return a.watch(()=>ge.value.post.len,S=>{Sr.value=j._.cloneDeep(ge.value.post.list)}),a.watch(()=>i.value,S=>{ie("")}),(S,A)=>(a.openBlock(),a.createBlock(a.unref(D.ElDialog),{modelValue:gr.value,"onUpdate:modelValue":A[6]||(A[6]=b=>gr.value=b),title:S.title,"destroy-on-close":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof S.width=="string"?S.width:`${S.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal",onClose:Rl},{footer:a.withCtx(()=>[a.createElementVNode("span",qp,[a.createVNode(a.unref(D.ElButton),{onClick:a.withModifiers(Rl,["stop"])},{default:a.withCtx(()=>[a.createTextVNode("取消")]),_:1}),a.createVNode(a.unref(D.ElButton),{type:"primary",onClick:a.withModifiers(Rg,["stop"])},{default:a.withCtx(()=>[a.createTextVNode(" 确定 ")]),_:1})])]),default:a.withCtx(()=>[a.createElementVNode("div",{class:"dep-use-picker",style:a.normalizeStyle({height:br.value})},[a.createElementVNode("div",wp,[a.createElementVNode("div",null,[a.createVNode(a.unref(D.ElInput),{modelValue:i.value,"onUpdate:modelValue":A[0]||(A[0]=b=>i.value=b),clearable:"",placeholder:S.placeholder,"prefix-icon":jh,style:a.normalizeStyle({width:kl.value})},null,8,["modelValue","placeholder","style"]),kg.value?(a.openBlock(),a.createBlock(a.unref(D.ElRadioGroup),{key:0,modelValue:Jt.value,"onUpdate:modelValue":A[1]||(A[1]=b=>Jt.value=b),class:"ik-picker-tab",style:a.normalizeStyle({width:kl.value})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Tg.value,b=>(a.openBlock(),a.createBlock(a.unref(D.ElRadioButton),{label:b.label,key:b.label},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(b.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","style"])):a.createCommentVNode("v-if",!0)]),a.createCommentVNode(" 过滤 "),Ve.value===a.unref(dt).group?(a.openBlock(),a.createElementBlock("div",Ap,[a.createCommentVNode(" 面包屑 全选 "),a.createVNode(a.unref(D.ElBreadcrumb),{separator:">",class:a.normalizeClass(["banner",{"top-unlink":!S.topLink}])},{default:a.withCtx(()=>[yr.value?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(a.unref(k),(b,T)=>(a.openBlock(),a.createBlock(a.unref(D.ElBreadcrumbItem),{key:b[f.value.id],onClick:a.withModifiers(U=>wg(b,T),["stop"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(b[f.value.name]),1)]),_:2},1032,["onClick"]))),128)):a.createCommentVNode("v-if",!0)]),_:1},8,["class"]),a.createCommentVNode(" 全选框 "),S.multiple?(a.openBlock(),a.createElementBlock("div",Dp,[a.createVNode(a.unref(D.ElCheckbox),{modelValue:N.checkAll,"onUpdate:modelValue":A[2]||(A[2]=b=>N.checkAll=b),indeterminate:N.indeterminate,"true-label":1,"false-label":0,disabled:!S.multiple,onChange:Dl,onInput:Dl},{default:a.withCtx(()=>[a.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate","disabled"]),yr.value>1?a.withDirectives((a.openBlock(),a.createBlock(a.unref(D.ElButton),{key:0,link:"",type:"primary",onClick:a.withModifiers(_g,["stop"])},{default:a.withCtx(()=>[a.createTextVNode("上一级")]),_:1},512)),[[a.vShow,!Eg.value]]):a.createCommentVNode("v-if",!0)])):a.createCommentVNode("v-if",!0)])):a.createCommentVNode("v-if",!0),a.createCommentVNode(" 左侧列表 "),a.createCommentVNode(" 部门&人员 "),Ve.value===a.unref(dt).group?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[ee.value.length?a.withDirectives((a.openBlock(),a.createElementBlock("ul",Rp,[a.createCommentVNode(" +++++++++++++++++++++++ 多选 ++++++++++++++++++++++ "),S.multiple?(a.openBlock(),a.createBlock(a.unref(D.ElCheckboxGroup),{key:0,modelValue:w.trans,"onUpdate:modelValue":A[3]||(A[3]=b=>w.trans=b)},{default:a.withCtx(()=>[a.createCommentVNode(" <template> "),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(g.value,b=>(a.openBlock(),a.createElementBlock("li",{key:b[f.value.id]},[F.value.includes(a.unref($).org)?(a.openBlock(),a.createBlock(a.unref(D.ElCheckbox),{key:1,label:b[f.value.id],disabled:!pr.value||(b==null?void 0:b.readonly)},{default:a.withCtx(()=>[a.createElementVNode("div",xp,[a.createCommentVNode(" 部门icon前缀 "),a.createVNode(ct),a.createElementVNode("p",{title:b[f.value.name]},a.toDisplayString(b[f.value.name]),9,Mp)])]),_:2},1032,["label","disabled"])):(a.openBlock(),a.createElementBlock("div",kp,[a.createCommentVNode(" 部门icon前缀 "),a.createVNode(ct),a.createElementVNode("p",{title:b[f.value.name]},a.toDisplayString(b[f.value.name]),9,Tp)])),S.children?(a.openBlock(),a.createElementBlock("div",Np,[[v.value.organization,v.value.dep,v.value.role].includes(b[f.value.type])?(a.openBlock(),a.createBlock(a.unref(D.ElButton),{key:0,link:"",type:"primary",onClick:a.withModifiers(T=>vr(b),["stop"]),disabled:b.disabled},{icon:a.withCtx(()=>[a.createVNode(ur)]),default:a.withCtx(()=>[a.createTextVNode(" 下级 ")]),_:2},1032,["onClick","disabled"])):a.createCommentVNode("v-if",!0)])):a.createCommentVNode("v-if",!0)]))),128)),a.createCommentVNode(" </template> "),(!hr.value||S.showDep)&&!bg.value?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(c.value,b=>(a.openBlock(),a.createElementBlock("li",{key:b[f.value.id]},[S.chooseType.includes(a.unref($).dep)||S.chooseType.includes(a.unref($).dep_user)?(a.openBlock(),a.createBlock(a.unref(D.ElCheckbox),{key:0,label:b[f.value.id],disabled:!pr.value||(b==null?void 0:b.readonly)},{default:a.withCtx(()=>[a.createElementVNode("div",Ip,[a.createCommentVNode(" 部门icon前缀 "),a.createVNode(at),a.createElementVNode("p",{title:b[f.value.name]},a.toDisplayString(b[f.value.name]),9,Op)])]),_:2},1032,["label","disabled"])):(a.openBlock(),a.createElementBlock("div",Bp,[a.createCommentVNode(" 部门icon前缀 "),a.createVNode(at),a.createElementVNode("p",{title:b[f.value.name]},a.toDisplayString(b[f.value.name]),9,Vp)])),S.children?(a.openBlock(),a.createElementBlock("div",Hp,[[v.value.dep,v.value.role].includes(b[f.value.type])?(a.openBlock(),a.createBlock(a.unref(D.ElButton),{key:0,link:"",type:"primary",onClick:a.withModifiers(T=>vr(b),["stop"]),disabled:b.disabled},{icon:a.withCtx(()=>[a.createVNode(ur)]),default:a.withCtx(()=>[a.createTextVNode(" 下级 ")]),_:2},1032,["onClick","disabled"])):a.createCommentVNode("v-if",!0)])):a.createCommentVNode("v-if",!0)]))),128)):a.createCommentVNode("v-if",!0),S.chooseType.includes("user")||S.chooseType.includes("dep_user")?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(o.value,b=>(a.openBlock(),a.createElementBlock("li",{key:b[f.value.id]},[a.createVNode(a.unref(D.ElCheckbox),{label:b[f.value.id],disabled:!pr.value||(b==null?void 0:b.readonly)},{default:a.withCtx(()=>{var T,U;return[a.createCommentVNode(" icon前缀 "),v.value.dep===b[f.value.type]?(a.openBlock(),a.createBlock($e,{key:0})):v.value.user===b[f.value.type]?(a.openBlock(),a.createBlock(a.unref(D.ElAvatar),{key:1,size:30,src:y((T=f.value)!=null&&T.avatar?b[(U=f.value)==null?void 0:U.avatar]:""),icon:Zt},null,8,["src"])):a.createCommentVNode("v-if",!0),a.createElementVNode("span",Pp,a.toDisplayString(b[f.value.name]),1)]}),_:2},1032,["label","disabled"])]))),128)):a.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createCommentVNode(" +++++++++++++++++++++++ 单选 ++++++++++++++++++++++ "),a.createVNode(a.unref(D.ElRadioGroup),{modelValue:w.single,"onUpdate:modelValue":A[4]||(A[4]=b=>w.single=b)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ee.value,b=>{var T,U,me;return a.openBlock(),a.createElementBlock("li",{key:b[f.value.id]},[F.value.includes((T=b[f.value.type])==null?void 0:T.toLocaleLowerCase())?(a.openBlock(),a.createBlock(a.unref(D.ElRadio),{key:0,label:b[f.value.id],class:a.normalizeClass({readonly:![v.value.organization,v.value.dep,v.value.user].includes(b[f.value.type]),"w-full":!0}),disabled:b.readonly},{default:a.withCtx(()=>{var Qe,ht;return[a.createCommentVNode(" 部门icon前缀 "),v.value.organization===b[f.value.type]?(a.openBlock(),a.createBlock(ct,{key:0})):v.value.dep===b[f.value.type]?(a.openBlock(),a.createBlock(at,{key:1})):v.value.role===b[f.value.type]?(a.openBlock(),a.createBlock($e,{key:2})):v.value.user===b[f.value.type]?(a.openBlock(),a.createBlock(a.unref(D.ElAvatar),{key:3,size:30,src:y((Qe=f.value)!=null&&Qe.avatar?b[(ht=f.value)==null?void 0:ht.avatar]:""),icon:Zt},null,8,["src"])):a.createCommentVNode("v-if",!0),a.createElementVNode("span",{class:"text-over-flow",title:b[f.value.name]},a.toDisplayString(b[f.value.name]),9,Lp)]}),_:2},1032,["label","class","disabled"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[v.value.organization===b[f.value.type]?(a.openBlock(),a.createBlock(ct,{key:0})):v.value.dep===b[f.value.type]?(a.openBlock(),a.createBlock(at,{key:1})):v.value.role===b[f.value.type]?(a.openBlock(),a.createBlock($e,{key:2})):v.value.user===b[f.value.type]?(a.openBlock(),a.createBlock(a.unref(D.ElAvatar),{key:3,size:30,src:y((U=f.value)!=null&&U.avatar?b[(me=f.value)==null?void 0:me.avatar]:""),icon:Zt},null,8,["src"])):a.createCommentVNode("v-if",!0),a.createElementVNode("span",{class:"text-over-flow",title:b[f.value.name]},a.toDisplayString(b[f.value.name]),9,zp)],64)),S.children?(a.openBlock(),a.createElementBlock("div",Up,[[v.value.organization,v.value.dep,v.value.role].includes(b[f.value.type])?(a.openBlock(),a.createBlock(a.unref(D.ElButton),{key:0,link:"",type:"primary",onClick:a.withModifiers(Qe=>vr(b),["stop"])},{icon:a.withCtx(()=>[a.createVNode(ur)]),default:a.withCtx(()=>[a.createTextVNode(" 下级 ")]),_:2},1032,["onClick"])):a.createCommentVNode("v-if",!0)])):a.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["modelValue"])],2112))])),[[a.unref(D.vLoading),p.value]]):(a.openBlock(),a.createElementBlock("div",jp,a.toDisplayString(S.emptyText),1))],64)):Ve.value===a.unref(dt).role?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createCommentVNode(" 角色 "),a.withDirectives(a.createVNode(bp,{fixPropOpt:f.value,list:u.value,max:S.max,multiple:S.multiple,"hand-list":Er.value,onChange:xg},null,8,["fixPropOpt","list","max","multiple","hand-list"]),[[a.unref(D.vLoading),p.value]])],64)):Ve.value===a.unref(dt).post?(a.openBlock(),a.createElementBlock(a.Fragment,{key:3},[a.createCommentVNode(" 岗位 "),a.withDirectives(a.createVNode(fp,{fixPropOpt:f.value,list:d.value,max:S.max,multiple:S.multiple,"hand-list":Sr.value,onChange:Mg},null,8,["fixPropOpt","list","max","multiple","hand-list"]),[[a.unref(D.vLoading),p.value]])],64)):a.createCommentVNode("v-if",!0)]),Fp,a.createCommentVNode(" 已选列表 "),a.createElementVNode("div",Wp,[a.createElementVNode("div",Gp,[$p,a.createVNode(a.unref(D.ElButton),{type:"primary",link:"",onClick:a.withModifiers(Ye,["stop"])},{default:a.withCtx(()=>[a.createTextVNode("清空")]),_:1})]),a.createCommentVNode(" 已选列表可拖拽 "),a.createVNode(a.unref(Ml),{tag:"ul",name:"fade","item-key":"elementId",modelValue:C.value,"onUpdate:modelValue":A[5]||(A[5]=b=>C.value=b),style:a.normalizeStyle({height:`calc(${br.value} + 21px)`}),animation:a.unref(we).animation,group:a.unref(we).group,disabled:a.unref(we).disabled,ghostClass:a.unref(we).ghostClass,forceFallback:a.unref(we).ghostClass},{item:a.withCtx(({element:b})=>[a.createVNode(a.Transition,{type:"transition",name:"flip-list"},{default:a.withCtx(()=>[a.createElementVNode("li",{class:a.normalizeClass(["list-group-item"]),style:a.normalizeStyle({borderRadius:`${a.unref(we).itemStyle.radius}px`,marginBottom:`${a.unref(we).itemStyle.bottom}px`,backgroundColor:`${a.unref(we).itemStyle.background}`})},[a.createElementVNode("div",null,[a.createCommentVNode(" 部门icon前缀 "),v.value.organization===b[f.value.type]?(a.openBlock(),a.createBlock(ct,{key:0})):a.createCommentVNode("v-if",!0),v.value.dep===b[f.value.type]?(a.openBlock(),a.createBlock(at,{key:1})):v.value.role===b[f.value.type]?(a.openBlock(),a.createBlock($e,{key:2})):v.value.post===b[f.value.type]?(a.openBlock(),a.createBlock(fr,{key:3})):v.value.user===b[f.value.type]?(a.openBlock(),a.createBlock(a.unref(D.ElAvatar),{key:4,size:30,src:y(f.value.avatar?b[f.value.avatar]:""),icon:Zt},null,8,["src"])):a.createCommentVNode("v-if",!0),a.createElementVNode("span",null,a.toDisplayString(b[f.value.name]),1)]),a.withDirectives(a.createVNode(qh,{class:"close",onClick:a.withModifiers(T=>Al(b),["stop"])},null,8,["onClick"]),[[a.vShow,!(b!=null&&b.readonly)]])],4)]),_:2},1024)]),_:1},8,["modelValue","style","animation","group","disabled","ghostClass","forceFallback"])])],4)]),_:1},8,["modelValue","title","width"]))}}),Jg="",Qp=Cr(Yp);let Zp=0,Xp=new Date().toISOString().replace(/T.*$/,"");const Jp=[{id:Kp(),title:"All-day event",start:Xp}];function Kp(){return String(Zp++)}const ut=t=>(a.pushScopeId("data-v-5b784b52"),t=t(),a.popScopeId(),t),eg={class:"demo-app"},tg={class:"demo-app-main"},ng={class:"title-line"},rg=["title","onClick"],ig={key:0,style:{width:"90%"}},sg=ut(()=>a.createElementVNode("span",{class:"to"},"至",-1)),lg={key:1,style:{width:"90%"}},og=ut(()=>a.createElementVNode("span",{class:"to"},"至",-1)),ag={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},cg={key:0,style:{"margin-left":"2%"}},dg=ut(()=>a.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),ug={key:1},fg=ut(()=>a.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),hg={key:0,class:"placeholder"},pg={class:"info"},gg=ut(()=>a.createElementVNode("img",{src:"https://img1.baidu.com/it/u=1960110688,1786190632&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281",alt:""},null,-1)),mg={class:"dialog-footer"},vg={name:"IkApprovalProcess"},yg=a.defineComponent({...vg,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(t,{emit:e}){const n=e,r=f=>{if(o.selectInfo=f,s(),f.view.type=="dayGridMonth"){let C=f.end.getTime()-864e5;o.timeType="month",o.form.startDate=j.ikDate.toYMD(f.start),o.form.endDate=j.ikDate.toYMD(new Date(C))}else f.view.type=="timeGridWeek"?(o.timeType="week",o.form.startDate=j.ikDate.toYMDHM(f.start),o.form.endDate=j.ikDate.toYMDHM(f.end)):f.view.type=="timeGridDay"&&(o.timeType="day",o.form.startDate=j.ikDate.toYMD(f.start),o.form.endDate=j.ikDate.toYMD(f.start),o.form.startTime=j.ikDate.toDateTime(f.start),o.form.endTime=j.ikDate.toDateTime(f.end));f.view.calendar.unselect(),a.nextTick(()=>{o.title="新建日程",o.dialogVisible=!0})},i=(f,v)=>{o.title="修改日程",o.dialogVisible=!0},s=f=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:f||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(_=>{_.json().then(R=>{const{success:k,data:B}=R;if(!k)return;const{departments:I,users:w,roles:N,posts:q}=B;o.depList=I,o.userList=w,o.roleList=N,o.postList=q})}).catch(_=>{console.info("error: ",_)})},l=f=>{o.currentEvents=f},o=a.reactive({allDay:!1,dialogVisible:!1,form:{title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},formRef:null,title:"新建日程",timeType:"month",handList:[],isShow:!1,depList:[],userList:[],roleList:[],postList:[],selectInfo:{},calendarOptions:{locale:qu,plugins:[bf,rh,Ah],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:Jp,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:r,eventClick:f=>i(),eventsSet:l},currentEvents:[]}),c=()=>{var f;(f=o.formRef)==null||f.resetFields(),o.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},o.dialogVisible=!1},u=async()=>{var C,_,R,k;let f=(_=(C=o.selectInfo)==null?void 0:C.view)==null?void 0:_.calendar,v={id:new Date().getTime(),title:o.form.title,start:(R=o.selectInfo)==null?void 0:R.startStr,end:(k=o.selectInfo)==null?void 0:k.endStr,allDay:o.allDay};await f.addEvent(v),n("success",v),c()},d=f=>{D.ElMessageBox.confirm(`你确定删除事件'${f.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{D.ElMessage({type:"success",message:"删除成功"}),f.event.remove(),n("delete",f.event)})},g=f=>{o.handList=f.list,o.form.personList=f.list},p=()=>{o.isShow=!0},h=f=>{s(f==null?void 0:f.elementId)},y=f=>{o.form.personList.splice(f,1),o.handList=o.form.personList};return(f,v)=>{const C=a.resolveComponent("el-checkbox");return a.openBlock(),a.createElementBlock("div",eg,[a.createElementVNode("div",tg,[a.createVNode(a.unref(Uu),{class:"demo-app-calendar",options:o.calendarOptions},{eventContent:a.withCtx(_=>[a.createElementVNode("div",ng,[a.createElementVNode("span",{class:"title",title:_.event.title,onClick:a.withModifiers(R=>i(),["stop"])},a.toDisplayString(_.event.title),9,rg),a.createVNode(a.unref(D.ElIcon),{size:16,onClick:a.withModifiers(R=>d(_),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(zl))]),_:2},1032,["onClick"])])]),_:1},8,["options"])]),a.createCommentVNode(" 新建日程 "),a.createVNode(a.unref(D.ElDialog),{modelValue:o.dialogVisible,"onUpdate:modelValue":v[12]||(v[12]=_=>o.dialogVisible=_),title:o.title,width:"30%",ref:"formRef",onClose:c},{footer:a.withCtx(()=>[a.createElementVNode("span",mg,[a.createVNode(a.unref(D.ElButton),{onClick:c},{default:a.withCtx(()=>[a.createTextVNode("取消")]),_:1}),a.createVNode(a.unref(D.ElButton),{type:"primary",onClick:u},{default:a.withCtx(()=>[a.createTextVNode("确定")]),_:1})])]),default:a.withCtx(()=>[a.createVNode(a.unref(D.ElForm),{model:o.form},{default:a.withCtx(()=>[a.createVNode(a.unref(D.ElFormItem),null,{default:a.withCtx(()=>[a.createVNode(a.unref(D.ElIcon),{class:"icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Ol))]),_:1}),a.createVNode(a.unref(D.ElInput),{modelValue:o.form.title,"onUpdate:modelValue":v[0]||(v[0]=_=>o.form.title=_),placeholder:`添加${o.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),a.createVNode(a.unref(D.ElSelect),{modelValue:o.form.type,"onUpdate:modelValue":v[1]||(v[1]=_=>o.form.type=_),style:{width:"20%"}},{default:a.withCtx(()=>[a.createVNode(a.unref(D.ElOption),{label:"会议",value:1}),a.createVNode(a.unref(D.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),a.createVNode(a.unref(D.ElFormItem),null,{default:a.withCtx(()=>[a.createVNode(a.unref(D.ElIcon),{class:"icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Vl))]),_:1}),o.timeType=="month"?(a.openBlock(),a.createElementBlock("div",ig,[a.createVNode(a.unref(D.ElDatePicker),{modelValue:o.form.startDate,"onUpdate:modelValue":v[2]||(v[2]=_=>o.form.startDate=_),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),sg,a.createVNode(a.unref(D.ElDatePicker),{modelValue:o.form.endDate,"onUpdate:modelValue":v[3]||(v[3]=_=>o.form.endDate=_),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):a.createCommentVNode("v-if",!0),o.timeType=="week"?(a.openBlock(),a.createElementBlock("div",lg,[a.createVNode(a.unref(D.ElDatePicker),{modelValue:o.form.startDate,"onUpdate:modelValue":v[4]||(v[4]=_=>o.form.startDate=_),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),og,a.createVNode(a.unref(D.ElDatePicker),{modelValue:o.form.endDate,"onUpdate:modelValue":v[5]||(v[5]=_=>o.form.endDate=_),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):a.createCommentVNode("v-if",!0),o.timeType=="day"?(a.openBlock(),a.createElementBlock("div",ag,[a.createVNode(a.unref(D.ElDatePicker),{modelValue:o.form.startDate,"onUpdate:modelValue":v[6]||(v[6]=_=>o.form.startDate=_),type:"date",placeholder:"开始日期",style:a.normalizeStyle({width:o.allDay?"45%":"90%"})},null,8,["modelValue","style"]),o.allDay?(a.openBlock(),a.createElementBlock("div",ug,[fg,a.createVNode(a.unref(D.ElDatePicker),{modelValue:o.form.endDate,"onUpdate:modelValue":v[9]||(v[9]=_=>o.form.endDate=_),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(a.openBlock(),a.createElementBlock("div",cg,[a.createVNode(a.unref(D.ElTimePicker),{modelValue:o.form.startTime,"onUpdate:modelValue":v[7]||(v[7]=_=>o.form.startTime=_),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),dg,a.createVNode(a.unref(D.ElTimePicker),{modelValue:o.form.endTime,"onUpdate:modelValue":v[8]||(v[8]=_=>o.form.endTime=_),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),a.createVNode(C,{modelValue:o.allDay,"onUpdate:modelValue":v[10]||(v[10]=_=>o.allDay=_),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):a.createCommentVNode("v-if",!0)]),_:1}),a.createVNode(a.unref(D.ElFormItem),null,{default:a.withCtx(()=>[a.createVNode(a.unref(D.ElIcon),{class:"icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Wl))]),_:1}),a.createElementVNode("div",{class:"personBlock",onClick:a.withModifiers(p,["stop"])},[o.form.personList.length?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(o.form.personList,(_,R)=>(a.openBlock(),a.createElementBlock("div",{key:R,class:"nameBlock"},[a.createElementVNode("div",pg,[gg,a.createElementVNode("div",null,a.toDisplayString(_.elementName),1)]),a.createVNode(a.unref(D.ElIcon),{class:"close",onClick:a.withModifiers(k=>y(R),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(Pl))]),_:2},1032,["onClick"])]))),128)):(a.openBlock(),a.createElementBlock("span",hg,"添加参与人"))])]),_:1}),a.createVNode(a.unref(D.ElFormItem),null,{default:a.withCtx(()=>[a.createVNode(a.unref(D.ElIcon),{class:"icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(jl))]),_:1}),a.createVNode(a.unref(D.ElInput),{modelValue:o.form.location,"onUpdate:modelValue":v[11]||(v[11]=_=>o.form.location=_),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a.createCommentVNode(" 选人组件 "),a.createVNode(a.unref(Qp),{modelValue:o.handList,"onUpdate:modelValue":v[13]||(v[13]=_=>o.handList=_),show:o.isShow,"onUpdate:show":v[14]||(v[14]=_=>o.isShow=_),onOk:g,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":o.depList,"user-list":o.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:h},null,8,["modelValue","show","dep-list","user-list"])])}}}),Kg="",_l=Cr(ne(yg,[["__scopeId","data-v-5b784b52"]]));te.IKCalendar=_l,te.default=_l,Object.defineProperties(te,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});