Files
PORTAL_COD2/src/front/dist/assets/HomePage-89a3118c.js
T
2023-11-20 16:54:06 +03:00

7 lines
330 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{p as nn,a0 as Nl,a6 as bt,a9 as Hn,a7 as Hl,r as O,w as at,o as et,ac as sn,F as b,Z as F,ar as Pl,H as ue,P as Vl,b as Bl,aF as Ll,aq as Wt,_ as ke,aG as rt,C as _,D as j,E as w,Y as A,$ as Z,aH as ft,R as K,I as Dt,K as ie,L as te,G,ad as I,J as Ge,ah as Wl,a1 as jl,aI as Fl,ai as Ul,aJ as zl,aK as $l,aj as Yl,a4 as Gl,a5 as ql,a8 as Ql,ak as Zl,al as Xl,am as Jl,aL as Kl,an as ea,aM as ta,aN as na,ao as ia,X as ee,aO as Ls,aP as Ht,aQ as sa,a as ra,af as ce,A as Ws,aR as la,aS as aa,aT as oa,S as P,V as ge,aE as J,aU as ca,aV as da,c as Pn,U as js,W as Fs,M as ua,aW as ha,h as fa,aX as ga,aY as pa,aZ as ma,N as va,O as ya,a_ as Ue,ae as k,a$ as H,b0 as ae,Q as Si,b1 as ba,az as jt,b2 as Vn,b3 as Da,b4 as Ci,b5 as R,B as wa,aB as _a}from"./index-4d363895.js";import{m as Ea,a as Ti,b as Aa,c as Ri,d as Sa,e as Ca,C as Us,V as Bn}from"./VTooltip-1721061c.js";import{V as wt,a as Ta,b as Ra}from"./VBtn-7b927828.js";import{V as zs}from"./VContainer-481a8ec1.js";import{d as ka,b as Ma,c as Kn,V as xa,e as Ia,g as Oa,a as $s}from"./VTextarea-20d9c5bb.js";import{m as Na,u as Ha}from"./group-9eedc7d3.js";import{f as Pa,m as Va,V as ki}from"./VSelectionControl-aa098573.js";import{V as Ba,L as La}from"./load-round-8aa0347e.js";import{m as Wa,u as ja,V as Mi}from"./VInput-c7eeedb4.js";import"./VChip-50fda6d0.js";const Fa=nn({color:String,cycle:Boolean,delimiterIcon:{type:Nl,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:t=>Number(t)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...Ea({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),Ua=bt()({name:"VCarousel",props:Fa(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const i=Hn(t,"modelValue"),{t:r}=Hl(),s=O();let l=-1;at(i,o),at(()=>t.interval,o),at(()=>t.cycle,c=>{c?o():window.clearTimeout(l)}),et(a);function a(){!t.cycle||!s.value||(l=window.setTimeout(s.value.group.next,+t.interval>0?+t.interval:6e3))}function o(){window.clearTimeout(l),window.requestAnimationFrame(a)}return sn(()=>{const[c]=Ti.filterProps(t);return b(Ti,ue({ref:s},c,{modelValue:i.value,"onUpdate:modelValue":d=>i.value=d,class:["v-carousel",{"v-carousel--hide-delimiter-background":t.hideDelimiterBackground,"v-carousel--vertical-delimiters":t.verticalDelimiters},t.class],style:[{height:Bl(t.height)},t.style]}),{default:n.default,additional:d=>{let{group:u}=d;return b(F,null,[!t.hideDelimiters&&b("div",{class:"v-carousel__controls",style:{left:t.verticalDelimiters==="left"&&t.verticalDelimiters?0:"auto",right:t.verticalDelimiters==="right"?0:"auto"}},[u.items.value.length>0&&b(Pl,{defaults:{VBtn:{color:t.color,icon:t.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[u.items.value.map((h,f)=>{const p={id:`carousel-item-${h.id}`,"aria-label":r("$vuetify.carousel.ariaLabel.delimiter",f+1,u.items.value.length),class:[u.isSelected(h.id)&&"v-btn--active"],onClick:()=>u.select(h.id,!0)};return n.item?n.item({props:p,item:h}):b(wt,ue(h,p),null)})]})]),t.progress&&b(Vl,{class:"v-carousel__progress",color:typeof t.progress=="string"?t.progress:void 0,modelValue:(u.getItemIndex(i.value)+1)/u.items.value.length*100},null)])},prev:n.prev,next:n.next})}),{}}}),za=nn({...Ll(),...Aa()},"VCarouselItem"),$a=bt()({name:"VCarouselItem",inheritAttrs:!1,props:za(),setup(t,e){let{slots:n,attrs:i}=e;sn(()=>{const[r]=Wt.filterProps(t),[s]=Ri.filterProps(t);return b(Ri,ue({class:"v-carousel-item"},s),{default:()=>[b(Wt,ue(i,r),n)]})})}}),Ya={setup(){const t=ft.slice(0,-1),e=O([{link:""}]);return rt("api/navigation/carousels/",e),{burl:t,carous:e}}};function Ga(t,e,n,i,r,s){return _(),j(Ua,{interval:"10000",cover:"",height:"450","hide-delimiters":"","hide-delimiter-background":"","show-arrows":"hover",color:"white",cycle:""},{default:w(()=>[(_(!0),A(F,null,Z(i.carous,(l,a)=>(_(),j($a,{key:a,src:`${i.burl}${l.link}`,cover:"",eager:""},{default:w(()=>[b(zs,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:w(()=>[b(K,{class:"bgCard h-100 d-flex flex-column"},{default:w(()=>[b(Dt,{class:"ma-2 text-h3 text-uppercase titles text-text_carous py-5 flex-column"},{default:w(()=>[b(ie,null,{default:w(()=>[b(te,{class:"pa-0 pl-1 align-self-center"},{default:w(()=>[G(I(l.title),1)]),_:2},1024),b(te,{class:"flex-grow-0 pa-0 pr-1"},{default:w(()=>[b(Wt,{width:"50","aspect-ratio":1,src:`${i.burl}${l.sender}`,cover:""},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024),b(Ge,{class:"ml-2 mb-0 mb-2 w-50 flex-grow-0 pb-3 text-h6 bgText overflow-auto"},{default:w(()=>[b(ka,{class:"text-text_carous mt-n3 text-black textareas pt-2 font-weight-medium","model-value":l.text,variant:"plain",readonly:"","auto-grow":"",rows:"1","hide-details":""},null,8,["model-value"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"]))),128))]),_:1})}const qa=ke(Ya,[["render",Ga]]);const Qa=nn({color:String,...Wl(),...jl(),...Fl(),...Ul(),...zl(),...$l(),...Yl(),...Gl(),...ql()},"VSheet"),Za=bt()({name:"VSheet",props:Qa(),setup(t,e){let{slots:n}=e;const{themeClasses:i}=Ql(t),{backgroundColorClasses:r,backgroundColorStyles:s}=Zl(Xl(t,"color")),{borderClasses:l}=Jl(t),{dimensionStyles:a}=Kl(t),{elevationClasses:o}=ea(t),{locationStyles:c}=ta(t),{positionClasses:d}=na(t),{roundedClasses:u}=ia(t);return sn(()=>b(t.tag,{class:["v-sheet",i.value,r.value,l.value,o.value,d.value,u.value,t.class],style:[s.value,a.value,c.value,t.style]},n)),{}}}),Xa=bt()({name:"VSlideGroupItem",props:Na(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:n}=e;const i=Ha(t,Sa);return()=>{var r;return(r=n.default)==null?void 0:r.call(n,{isSelected:i.isSelected.value,select:i.select,toggle:i.toggle,selectedClass:i.selectedClass.value})}}}),Ja={props:{digitalData:{type:Object,default:{}}},setup(){const t=ft.slice(0,-1);return{model:O(!1),burl:t}}};function Ka(t,e,n,i,r,s){const l=ee("vue3-autocounter");return _(),j(K,{class:"d-flex ml-3"},{default:w(()=>[b(Za,{class:"mx-auto",elevation:"0","max-width":"813"},{default:w(()=>[b(Ca,{modelValue:i.model,"onUpdate:modelValue":e[0]||(e[0]=a=>i.model=a),class:"pa-0","selected-class":"bg-primary",mandatory:"","show-arrows":""},{default:w(()=>[(_(!0),A(F,null,Z(n.digitalData,a=>(_(),j(Xa,{key:a},{default:w(()=>[b(K,{class:"ma-2 mt-4 d-flex flex-column",height:"100",width:"169",elevation:"0"},{default:w(()=>[b(K,{class:"h-100 text-center g text-black_grey"},{default:w(()=>[b(Dt,{class:"statstyle my-2 py-0 text-overline font-weight-bold"},{default:w(()=>[G(I(a.status),1)]),_:2},1024),b(Ge,{class:"numstyle mt-4 py-0 font-weight-bold"},{default:w(()=>[b(l,{ref_for:!0,ref:"counter",startAmount:0,endAmount:Number(a.num),duration:1},null,8,["endAmount"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})}const eo=ke(Ja,[["render",Ka]]);var rn,T,Ys,Gs,Xe,Oe,xi,qs,Qs,Ft={},Zs=[],to=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _e(t,e){for(var n in e)t[n]=e[n];return t}function Xs(t){var e=t.parentNode;e&&e.removeChild(t)}function g(t,e,n){var i,r,s,l={};for(s in e)s=="key"?i=e[s]:s=="ref"?r=e[s]:l[s]=e[s];if(arguments.length>2&&(l.children=arguments.length>3?rn.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 Pt(t,l,i,r,null)}function Pt(t,e,n,i,r){var s={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Ys};return r==null&&T.vnode!=null&&T.vnode(s),s}function he(){return{current:null}}function q(t){return t.children}function no(t,e,n,i,r){var s;for(s in n)s==="children"||s==="key"||s in e||Ut(t,s,null,n[s],i);for(s in e)r&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===e[s]||Ut(t,s,e[s],n[s],i)}function Ii(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||to.test(e)?n:n+"px"}function Ut(t,e,n,i,r){var s;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof i=="string"&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||Ii(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||Ii(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?i||t.addEventListener(e,s?Ni:Oi,s):t.removeEventListener(e,s?Ni:Oi,s);else if(e!=="dangerouslySetInnerHTML"){if(r)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 Oi(t){Xe=!0;try{return this.l[t.type+!1](T.event?T.event(t):t)}finally{Xe=!1}}function Ni(t){Xe=!0;try{return this.l[t.type+!0](T.event?T.event(t):t)}finally{Xe=!1}}function re(t,e){this.props=t,this.context=e}function gt(t,e){if(e==null)return t.__?gt(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"?gt(t):null}function Js(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 Js(t)}}function io(t){Xe?setTimeout(t):qs(t)}function Ln(t){(!t.__d&&(t.__d=!0)&&Oe.push(t)&&!zt.__r++||xi!==T.debounceRendering)&&((xi=T.debounceRendering)||io)(zt)}function zt(){var t,e,n,i,r,s,l,a;for(Oe.sort(function(o,c){return o.__v.__b-c.__v.__b});t=Oe.shift();)t.__d&&(e=Oe.length,i=void 0,r=void 0,l=(s=(n=t).__v).__e,(a=n.__P)&&(i=[],(r=_e({},s)).__v=s.__v+1,ei(a,s,r,n.__n,a.ownerSVGElement!==void 0,s.__h!=null?[l]:null,i,l??gt(s),s.__h),ir(i,s),s.__e!=l&&Js(s)),Oe.length>e&&Oe.sort(function(o,c){return o.__v.__b-c.__v.__b}));zt.__r=0}function Ks(t,e,n,i,r,s,l,a,o,c){var d,u,h,f,p,y,v,D=i&&i.__k||Zs,E=D.length;for(n.__k=[],d=0;d<e.length;d++)if((f=n.__k[d]=(f=e[d])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?Pt(null,f,null,null,f):Array.isArray(f)?Pt(q,{children:f},null,null,null):f.__b>0?Pt(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(h=D[d])===null||h&&f.key==h.key&&f.type===h.type)D[d]=void 0;else for(u=0;u<E;u++){if((h=D[u])&&f.key==h.key&&f.type===h.type){D[u]=void 0;break}h=null}ei(t,f,h=h||Ft,r,s,l,a,o,c),p=f.__e,(u=f.ref)&&h.ref!=u&&(v||(v=[]),h.ref&&v.push(h.ref,null,f),v.push(u,f.__c||p,f)),p!=null?(y==null&&(y=p),typeof f.type=="function"&&f.__k===h.__k?f.__d=o=er(f,o,t):o=tr(t,f,h,D,p,o),typeof n.type=="function"&&(n.__d=o)):o&&h.__e==o&&o.parentNode!=t&&(o=gt(h))}for(n.__e=y,d=E;d--;)D[d]!=null&&(typeof n.type=="function"&&D[d].__e!=null&&D[d].__e==n.__d&&(n.__d=nr(i).nextSibling),rr(D[d],D[d]));if(v)for(d=0;d<v.length;d++)sr(v[d],v[++d],v[++d])}function er(t,e,n){for(var i,r=t.__k,s=0;r&&s<r.length;s++)(i=r[s])&&(i.__=t,e=typeof i.type=="function"?er(i,e,n):tr(n,i,i,r,i.__e,e));return e}function $t(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){$t(n,e)}):e.push(t)),e}function tr(t,e,n,i,r,s){var l,a,o;if(e.__d!==void 0)l=e.__d,e.__d=void 0;else if(n==null||r!=s||r.parentNode==null)e:if(s==null||s.parentNode!==t)t.appendChild(r),l=null;else{for(a=s,o=0;(a=a.nextSibling)&&o<i.length;o+=1)if(a==r)break e;t.insertBefore(r,s),l=s}return l!==void 0?l:r.nextSibling}function nr(t){var e,n,i;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])&&(i=nr(n)))return i}return null}function ei(t,e,n,i,r,s,l,a,o){var c,d,u,h,f,p,y,v,D,E,S,C,V,z,B,M=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(o=n.__h,a=e.__e=n.__e,e.__h=null,s=[a]),(c=T.__b)&&c(e);try{e:if(typeof M=="function"){if(v=e.props,D=(c=M.contextType)&&i[c.__c],E=c?D?D.props.value:c.__:i,n.__c?y=(d=e.__c=n.__c).__=d.__E:("prototype"in M&&M.prototype.render?e.__c=d=new M(v,E):(e.__c=d=new re(v,E),d.constructor=M,d.render=ro),D&&D.sub(d),d.props=v,d.state||(d.state={}),d.context=E,d.__n=i,u=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),M.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=_e({},d.__s)),_e(d.__s,M.getDerivedStateFromProps(v,d.__s))),h=d.props,f=d.state,d.__v=e,u)M.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(M.getDerivedStateFromProps==null&&v!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(v,E),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(v,d.__s,E)===!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(we){we&&(we.__=e)}),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[],d.__h.length&&l.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(v,d.__s,E),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,f,p)})}if(d.context=E,d.props=v,d.__P=t,C=T.__r,V=0,"prototype"in M&&M.prototype.render){for(d.state=d.__s,d.__d=!1,C&&C(e),c=d.render(d.props,d.state,d.context),z=0;z<d._sb.length;z++)d.__h.push(d._sb[z]);d._sb=[]}else do d.__d=!1,C&&C(e),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++V<25);d.state=d.__s,d.getChildContext!=null&&(i=_e(_e({},i),d.getChildContext())),u||d.getSnapshotBeforeUpdate==null||(p=d.getSnapshotBeforeUpdate(h,f)),B=c!=null&&c.type===q&&c.key==null?c.props.children:c,Ks(t,Array.isArray(B)?B:[B],e,n,i,r,s,l,a,o),d.base=e.__e,e.__h=null,d.__h.length&&l.push(d),y&&(d.__E=d.__=null),d.__e=!1}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=so(n.__e,e,n,i,r,s,l,o);(c=T.diffed)&&c(e)}catch(we){e.__v=null,(o||s!=null)&&(e.__e=a,e.__h=!!o,s[s.indexOf(a)]=null),T.__e(we,e,n)}}function ir(t,e){T.__c&&T.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(i){i.call(n)})}catch(i){T.__e(i,n.__v)}})}function so(t,e,n,i,r,s,l,a){var o,c,d,u=n.props,h=e.props,f=e.type,p=0;if(f==="svg"&&(r=!0),s!=null){for(;p<s.length;p++)if((o=s[p])&&"setAttribute"in o==!!f&&(f?o.localName===f:o.nodeType===3)){t=o,s[p]=null;break}}if(t==null){if(f===null)return document.createTextNode(h);t=r?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,h.is&&h),s=null,a=!1}if(f===null)u===h||a&&t.data===h||(t.data=h);else{if(s=s&&rn.call(t.childNodes),c=(u=n.props||Ft).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!a){if(s!=null)for(u={},p=0;p<t.attributes.length;p++)u[t.attributes[p].name]=t.attributes[p].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===t.innerHTML)||(t.innerHTML=d&&d.__html||""))}if(no(t,h,u,r,a),d)e.__k=[];else if(p=e.props.children,Ks(t,Array.isArray(p)?p:[p],e,n,i,r&&f!=="foreignObject",s,l,s?s[0]:n.__k&&gt(n,0),a),s!=null)for(p=s.length;p--;)s[p]!=null&&Xs(s[p]);a||("value"in h&&(p=h.value)!==void 0&&(p!==t.value||f==="progress"&&!p||f==="option"&&p!==u.value)&&Ut(t,"value",p,u.value,!1),"checked"in h&&(p=h.checked)!==void 0&&p!==t.checked&&Ut(t,"checked",p,u.checked,!1))}return t}function sr(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(i){T.__e(i,n)}}function rr(t,e,n){var i,r;if(T.unmount&&T.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||sr(i,null,e)),(i=t.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(s){T.__e(s,e)}i.base=i.__P=null,t.__c=void 0}if(i=t.__k)for(r=0;r<i.length;r++)i[r]&&rr(i[r],e,n||typeof t.type!="function");n||t.__e==null||Xs(t.__e),t.__=t.__e=t.__d=void 0}function ro(t,e,n){return this.constructor(t,n)}function pt(t,e,n){var i,r,s;T.__&&T.__(t,e),r=(i=typeof n=="function")?null:n&&n.__k||e.__k,s=[],ei(e,t=(!i&&n||e).__k=g(q,null,[t]),r||Ft,Ft,e.ownerSVGElement!==void 0,!i&&n?[n]:r?null:e.firstChild?rn.call(e.childNodes):null,s,!i&&n?n:r?r.__e:e.firstChild,i),ir(s,t)}function lo(t,e){var n={__c:e="__cC"+Qs++,__:t,Consumer:function(i,r){return i.children(r)},Provider:function(i){var r,s;return this.getChildContext||(r=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&r.some(function(a){a.__e=!0,Ln(a)})},this.sub=function(l){r.push(l);var a=l.componentWillUnmount;l.componentWillUnmount=function(){r.splice(r.indexOf(l),1),a&&a.call(l)}}),i.children}};return n.Provider.__=n.Consumer.contextType=n}rn=Zs.slice,T={__e:function(t,e,n,i){for(var r,s,l;e=e.__;)if((r=e.__c)&&!r.__)try{if((s=r.constructor)&&s.getDerivedStateFromError!=null&&(r.setState(s.getDerivedStateFromError(t)),l=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(t,i||{}),l=r.__d),l)return r.__E=r}catch(a){t=a}throw t}},Ys=0,Gs=function(t){return t!=null&&t.constructor===void 0},Xe=!1,re.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=_e({},this.state),typeof t=="function"&&(t=t(_e({},n),this.props)),t&&_e(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ln(this))},re.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ln(this))},re.prototype.render=q,Oe=[],qs=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,zt.__r=0,Qs=0;var pe,yn,Hi,lr=[],bn=[],Pi=T.__b,Vi=T.__r,Bi=T.diffed,Li=T.__c,Wi=T.unmount;function ao(){for(var t;t=lr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Vt),t.__H.__h.forEach(Wn),t.__H.__h=[]}catch(e){t.__H.__h=[],T.__e(e,t.__v)}}T.__b=function(t){pe=null,Pi&&Pi(t)},T.__r=function(t){Vi&&Vi(t);var e=(pe=t.__c).__H;e&&(yn===pe?(e.__h=[],pe.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=bn,n.__N=n.i=void 0})):(e.__h.forEach(Vt),e.__h.forEach(Wn),e.__h=[])),yn=pe},T.diffed=function(t){Bi&&Bi(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(lr.push(e)!==1&&Hi===T.requestAnimationFrame||((Hi=T.requestAnimationFrame)||oo)(ao)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==bn&&(n.__=n.__V),n.i=void 0,n.__V=bn})),yn=pe=null},T.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Vt),n.__h=n.__h.filter(function(i){return!i.__||Wn(i)})}catch(i){e.some(function(r){r.__h&&(r.__h=[])}),e=[],T.__e(i,n.__v)}}),Li&&Li(t,e)},T.unmount=function(t){Wi&&Wi(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(i){try{Vt(i)}catch(r){e=r}}),n.__H=void 0,e&&T.__e(e,n.__v))};var ji=typeof requestAnimationFrame=="function";function oo(t){var e,n=function(){clearTimeout(i),ji&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);ji&&(e=requestAnimationFrame(n))}function Vt(t){var e=pe,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),pe=e}function Wn(t){var e=pe;t.__c=t.__(),pe=e}function co(t,e){for(var n in e)t[n]=e[n];return t}function Fi(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var i in e)if(i!=="__source"&&t[i]!==e[i])return!0;return!1}function Ui(t){this.props=t}(Ui.prototype=new re).isPureReactComponent=!0,Ui.prototype.shouldComponentUpdate=function(t,e){return Fi(this.props,t)||Fi(this.state,e)};var zi=T.__b;T.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),zi&&zi(t)};var uo=T.__e;T.__e=function(t,e,n,i){if(t.then){for(var r,s=e;s=s.__;)if((r=s.__c)&&r.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e)}uo(t,e,n,i)};var $i=T.unmount;function ar(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(i){typeof i.__c=="function"&&i.__c()}),t.__c.__H=null),(t=co({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(i){return ar(i,e,n)})),t}function or(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(i){return or(i,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 Dn(){this.__u=0,this.t=null,this.__b=null}function cr(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Tt(){this.u=null,this.o=null}T.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),$i&&$i(t)},(Dn.prototype=new re).__c=function(t,e){var n=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(n);var r=cr(i.__v),s=!1,l=function(){s||(s=!0,n.__R=null,r?r(a):a())};n.__R=l;var a=function(){if(!--i.__u){if(i.state.__a){var c=i.state.__a;i.__v.__k[0]=or(c,c.__c.__P,c.__c.__O)}var d;for(i.setState({__a:i.__b=null});d=i.t.pop();)d.forceUpdate()}},o=e.__h===!0;i.__u++||o||i.setState({__a:i.__b=i.__v.__k[0]}),t.then(l,l)},Dn.prototype.componentWillUnmount=function(){this.t=[]},Dn.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=ar(this.__b,n,i.__O=i.__P)}this.__b=null}var r=e.__a&&g(q,null,t.fallback);return r&&(r.__h=null),[g(q,null,e.__a?null:t.children),r]};var Yi=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 ho(t){return this.getChildContext=function(){return t.context},t.children}function fo(t){var e=this,n=t.i;e.componentWillUnmount=function(){pt(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(i){this.childNodes.push(i),e.i.appendChild(i)},insertBefore:function(i,r){this.childNodes.push(i),e.i.appendChild(i)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),e.i.removeChild(i)}}),pt(g(ho,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function go(t,e){var n=g(fo,{__v:t,i:e});return n.containerInfo=e,n}(Tt.prototype=new re).__a=function(t){var e=this,n=cr(e.__v),i=e.o.get(t);return i[0]++,function(r){var s=function(){e.props.revealOrder?(i.push(r),Yi(e,t,i)):r()};n?n(s):s()}},Tt.prototype.render=function(t){this.u=null,this.o=new Map;var e=$t(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},Tt.prototype.componentDidUpdate=Tt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Yi(t,n,e)})};var po=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,mo=/^(?: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]/,vo=typeof document<"u",yo=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};re.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(re.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Gi=T.event;function bo(){}function Do(){return this.cancelBubble}function wo(){return this.defaultPrevented}T.event=function(t){return Gi&&(t=Gi(t)),t.persist=bo,t.isPropagationStopped=Do,t.isDefaultPrevented=wo,t.nativeEvent=t};var qi={configurable:!0,get:function(){return this.class}},Qi=T.vnode;T.vnode=function(t){var e=t.type,n=t.props,i=n;if(typeof e=="string"){var r=e.indexOf("-")===-1;for(var s in i={},n){var l=n[s];vo&&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)&&!yo(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():r&&mo.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():l===null&&(l=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),i[s]&&(s="oninputCapture")),i[s]=l)}e=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=$t(n.children).forEach(function(a){a.props.selected=i.value.indexOf(a.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=$t(n.children).forEach(function(a){a.props.selected=i.multiple?i.defaultValue.indexOf(a.props.value)!=-1:i.defaultValue==a.props.value})),t.props=i,n.class!=n.className&&(qi.enumerable="className"in n,n.className!=null&&(i.class=n.className),Object.defineProperty(i,"className",qi))}t.$$typeof=po,Qi&&Qi(t)};var Zi=T.__r;T.__r=function(t){Zi&&Zi(t),t.__c};const dr=[],jn=new Map;function ln(t){dr.push(t),jn.forEach(e=>{hr(e,t)})}function _o(t){t.isConnected&&ur(t.getRootNode())}function ur(t){let e=jn.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=Ao();n&&(e.nonce=n);const i=t===document?document.head:t,r=t===document?i.querySelector("script,link[rel=stylesheet],link[as=style],style"):i.firstChild;i.insertBefore(e,r)}jn.set(t,e),Eo(e)}}function Eo(t){for(const e of dr)hr(t,e)}function hr(t,e){const{sheet:n}=t,i=n.cssRules.length;e.split("}").forEach((r,s)=>{r=r.trim(),r&&n.insertRule(r+"}",i+s)})}let wn;function Ao(){return wn===void 0&&(wn=So()),wn}function So(){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"&&ur(document);var Co=':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)}';ln(Co);class ti{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:i}=this;e in i&&(n?delete i[e]:(i[e]-=1,i[e]<=0&&delete i[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 ni(t){t.parentNode&&t.parentNode.removeChild(t)}function ne(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(To(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function To(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function Ro(t,e){let n=t instanceof HTMLElement?[t]:t,i=[];for(let r=0;r<n.length;r+=1){let s=n[r].querySelectorAll(e);for(let l=0;l<s.length;l+=1)i.push(s[l])}return i}const ko=/(top|left|right|bottom|width|height)$/i;function ot(t,e){for(let n in e)fr(t,n,e[n])}function fr(t,e,n){n==null?t.style[e]="":typeof n=="number"&&ko.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function gr(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 Xi=0;function be(){return Xi+=1,"fc-dom-"+Xi}function an(t){t.preventDefault()}function Mo(t,e){return n=>{let i=ne(n.target,t);i&&e.call(i,n,i)}}function pr(t,e,n,i){let r=Mo(n,i);return t.addEventListener(e,r),()=>{t.removeEventListener(e,r)}}function xo(t,e,n,i){let r;return pr(t,"mouseover",e,(s,l)=>{if(l!==r){r=l,n(s,l);let a=o=>{r=null,i(o,l),l.removeEventListener("mouseleave",a)};l.addEventListener("mouseleave",a)}})}const Ji=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Io(t,e){let n=i=>{e(i),Ji.forEach(r=>{t.removeEventListener(r,n)})};Ji.forEach(i=>{t.addEventListener(i,n)})}function mr(t){return Object.assign({onClick:t},vr(t))}function vr(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let Ki=0;function Be(){return Ki+=1,String(Ki)}function ii(){document.body.classList.add("fc-not-allowed")}function si(){document.body.classList.remove("fc-not-allowed")}function Oo(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",an)}function No(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",an)}function Ho(t){t.addEventListener("contextmenu",an)}function Po(t){t.removeEventListener("contextmenu",an)}function Vo(t){let e=[],n=[],i,r;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),i=0;i<n.length;i+=1)r=n[i],typeof r=="string"?e.push(r.charAt(0)==="-"?{field:r.substring(1),order:-1}:{field:r,order:1}):typeof r=="function"&&e.push({func:r});return e}function Bo(t,e,n){let i,r;for(i=0;i<n.length;i+=1)if(r=Lo(t,e,n[i]),r)return r;return 0}function Lo(t,e,n){return n.func?n.func(t,e):Wo(t[n.field],e[n.field])*(n.order||1)}function Wo(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 _n(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function ct(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((i,r,s)=>i.replace("$"+s,r||""),t):n}function jo(t,e){return t-e}function En(t){return t%1===0}function Fo(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 Uo=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function N(t,e){return typeof t=="string"?zo(t):typeof t=="object"&&t?es(t):typeof t=="number"?es({[e||"milliseconds"]:t}):null}function zo(t){let e=Uo.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 es(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 $o(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function Yo(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function Go(t){return qe(t)/365}function qo(t){return qe(t)/30}function qe(t){return mt(t)/864e5}function mt(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Fn(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 Ce(t,e,n){if(t===e)return!0;let i=t.length,r;if(i!==e.length)return!1;for(r=0;r<i;r+=1)if(!(n?n(t[r],e[r]):t[r]===e[r]))return!1;return!0}const Qo=["sun","mon","tue","wed","thu","fri","sat"];function ts(t,e){let n=Ee(t);return n[2]+=e*7,se(n)}function X(t,e){let n=Ee(t);return n[2]+=e,se(n)}function Te(t,e){let n=Ee(t);return n[6]+=e,se(n)}function Zo(t,e){return Le(t,e)/7}function Le(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function Xo(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Jo(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function Ko(t,e){return(e.valueOf()-t.valueOf())/1e3}function ec(t,e){let n=L(t),i=L(e);return{years:0,months:0,days:Math.round(Le(n,i)),milliseconds:e.valueOf()-i.valueOf()-(t.valueOf()-n.valueOf())}}function tc(t,e){let n=Yt(t,e);return n!==null&&n%7===0?n/7:null}function Yt(t,e){return Ae(t)===Ae(e)?Math.round(Le(t,e)):null}function L(t){return se([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function nc(t){return se([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function ic(t){return se([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function sc(t){return se([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function rc(t,e,n){let i=t.getUTCFullYear(),r=An(t,i,e,n);if(r<1)return An(t,i-1,e,n);let s=An(t,i+1,e,n);return s>=1?Math.min(r,s):r}function An(t,e,n,i){let r=se([e,0,1+lc(e,n,i)]),s=L(t),l=Math.round(Le(r,s));return Math.floor(l/7)+1}function lc(t,e,n){let i=7+e-n;return-((7+se([t,0,i]).getUTCDay()-e)%7)+i-1}function ns(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function is(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 se(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function yr(t){return!isNaN(t.valueOf())}function Ae(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function ac(t,e,n=!1){let i=t.toISOString();return i=i.replace(".000",""),n&&(i=i.replace("T00:00:00Z","")),i.length>10&&(e==null?i=i.replace("Z",""):e!==0&&(i=i.replace("Z",ri(e,!0)))),i}function _t(t){return t.toISOString().replace(/T.*$/,"")}function Un(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function ri(t,e=!1){let n=t<0?"-":"+",i=Math.abs(t),r=Math.floor(i/60),s=Math.round(i%60);return e?`${n+_n(r,2)}:${_n(s,2)}`:`GMT${n}${r}${s?`:${_n(s,2)}`:""}`}function x(t,e,n){let i,r;return function(...s){if(!i)r=t.apply(this,s);else if(!Ce(i,s)){n&&n(r);let l=t.apply(this,s);(!e||!e(l,r))&&(r=l)}return i=s,r}}function Bt(t,e,n){let i,r;return s=>{if(!i)r=t.call(this,s);else if(!fe(i,s)){n&&n(r);let l=t.call(this,s);(!e||!e(l,r))&&(r=l)}return i=s,r}}const ss={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Gt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Rt=/\s*([ap])\.?m\.?/i,oc=/,/g,cc=/\s+/g,dc=/\u200e/g,uc=/UTC|GMT/;class hc{constructor(e){let n={},i={},r=0;for(let s in e)s in ss?(i[s]=e[s],r=Math.max(ss[s],r)):(n[s]=e[s],s in Gt&&(r=Math.max(Gt[s],r)));this.standardDateProps=n,this.extendedSettings=i,this.severity=r,this.buildFormattingFunc=x(rs)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,i,r){let{standardDateProps:s,extendedSettings:l}=this,a=yc(e.marker,n.marker,i.calendarSystem);if(!a)return this.format(e,i);let o=a;o>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(o=1);let c=this.format(e,i),d=this.format(n,i);if(c===d)return c;let u=bc(s,o),h=rs(u,l,i),f=h(e),p=h(n),y=Dc(c,f,d,p),v=l.separator||r||i.defaultSeparator||"";return y?y.before+f+v+p+y.after:c+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 rs(t,e,n){let i=Object.keys(t).length;return i===1&&t.timeZoneName==="short"?r=>ri(r.timeZoneOffset):i===0&&e.week?r=>vc(n.computeWeekNumber(r.marker),n.weekText,n.weekTextLong,n.locale,e.week):fc(t,e,n)}function fc(t,e,n){t=Object.assign({},t),e=Object.assign({},e),gc(t,e),t.timeZone="UTC";let i=new Intl.DateTimeFormat(n.locale.codes,t),r;if(e.omitZeroMinute){let s=Object.assign({},t);delete s.minute,r=new Intl.DateTimeFormat(n.locale.codes,s)}return s=>{let{marker:l}=s,a;r&&!l.getUTCMinutes()?a=r:a=i;let o=a.format(l);return pc(o,s,t,e,n)}}function gc(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 pc(t,e,n,i,r){return t=t.replace(dc,""),n.timeZoneName==="short"&&(t=mc(t,r.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":ri(e.timeZoneOffset))),i.omitCommas&&(t=t.replace(oc,"").trim()),i.omitZeroMinute&&(t=t.replace(":00","")),i.meridiem===!1?t=t.replace(Rt,"").trim():i.meridiem==="narrow"?t=t.replace(Rt,(s,l)=>l.toLocaleLowerCase()):i.meridiem==="short"?t=t.replace(Rt,(s,l)=>`${l.toLocaleLowerCase()}m`):i.meridiem==="lowercase"&&(t=t.replace(Rt,s=>s.toLocaleLowerCase())),t=t.replace(cc," "),t=t.trim(),t}function mc(t,e){let n=!1;return t=t.replace(uc,()=>(n=!0,e)),n||(t+=` ${e}`),t}function vc(t,e,n,i,r){let s=[];return r==="long"?s.push(n):(r==="short"||r==="narrow")&&s.push(e),(r==="long"||r==="short")&&s.push(" "),s.push(i.simpleNumberFormat.format(t)),i.options.direction==="rtl"&&s.reverse(),s.join("")}function yc(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:Ae(t)!==Ae(e)?1:0}function bc(t,e){let n={};for(let i in t)(!(i in Gt)||Gt[i]<=e)&&(n[i]=t[i]);return n}function Dc(t,e,n,i){let r=0;for(;r<t.length;){let s=t.indexOf(e,r);if(s===-1)break;let l=t.substr(0,s);r=s+e.length;let a=t.substr(r),o=0;for(;o<n.length;){let c=n.indexOf(i,o);if(c===-1)break;let d=n.substr(0,c);o=c+i.length;let u=n.substr(o);if(l===d&&a===u)return{before:l,after:a}}}return null}function ls(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 qt(t,e,n,i){let r=ls(t,n.calendarSystem),s=e?ls(e,n.calendarSystem):null;return{date:r,start:r,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:i||n.defaultSeparator}}class wc{constructor(e){this.cmdStr=e}format(e,n,i){return n.cmdFormatter(this.cmdStr,qt(e,null,n,i))}formatRange(e,n,i,r){return i.cmdFormatter(this.cmdStr,qt(e,n,i,r))}}class _c{constructor(e){this.func=e}format(e,n,i){return this.func(qt(e,null,n,i))}formatRange(e,n,i,r){return this.func(qt(e,n,i,r))}}function Q(t){return typeof t=="object"&&t?new hc(t):typeof t=="string"?new wc(t):typeof t=="function"?new _c(t):null}const as={navLinkDayClick:m,navLinkWeekClick:m,duration:N,bootstrapFontAwesome:m,buttonIcons:m,customButtons:m,defaultAllDayEventDuration:N,defaultTimedEventDuration:N,nextDayThreshold:N,scrollTime:N,scrollTimeReset:Boolean,slotMinTime:N,slotMaxTime:N,dayPopoverFormat:Q,slotDuration:N,snapDuration:N,headerToolbar:m,footerToolbar:m,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Q,dayHeaderClassNames:m,dayHeaderContent:m,dayHeaderDidMount:m,dayHeaderWillUnmount:m,dayCellClassNames:m,dayCellContent:m,dayCellDidMount:m,dayCellWillUnmount:m,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:m,weekNumbers:Boolean,weekNumberClassNames:m,weekNumberContent:m,weekNumberDidMount:m,weekNumberWillUnmount:m,editable:Boolean,viewClassNames:m,viewDidMount:m,viewWillUnmount:m,nowIndicator:Boolean,nowIndicatorClassNames:m,nowIndicatorContent:m,nowIndicatorDidMount:m,nowIndicatorWillUnmount:m,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:m,locale:m,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:m,eventOrder:Vo,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:m,contentHeight:m,direction:String,weekNumberFormat:Q,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:m,initialDate:m,now:m,eventDataTransform:m,stickyHeaderDates:m,stickyFooterScrollbar:m,viewHeight:m,defaultAllDay:Boolean,eventSourceFailure:m,eventSourceSuccess:m,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:m,eventConstraint:m,eventAllow:m,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:m,eventContent:m,eventDidMount:m,eventWillUnmount:m,selectConstraint:m,selectOverlap:m,selectAllow:m,droppable:Boolean,unselectCancel:String,slotLabelFormat:m,slotLaneClassNames:m,slotLaneContent:m,slotLaneDidMount:m,slotLaneWillUnmount:m,slotLabelClassNames:m,slotLabelContent:m,slotLabelDidMount:m,slotLabelWillUnmount:m,dayMaxEvents:m,dayMaxEventRows:m,dayMinWidth:Number,slotLabelInterval:N,allDayText:String,allDayClassNames:m,allDayContent:m,allDayDidMount:m,allDayWillUnmount:m,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Q,rerenderDelay:Number,moreLinkText:m,moreLinkHint:m,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:m,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:N,hiddenDays:m,fixedWeekCount:Boolean,validRange:m,visibleRange:m,titleFormat:m,eventInteractive:Boolean,noEventsText:String,viewHint:m,navLinkHint:m,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:m,moreLinkClassNames:m,moreLinkContent:m,moreLinkDidMount:m,moreLinkWillUnmount:m,monthStartFormat:Q,handleCustomRendering:m,customRenderingMetaMap:m},dt={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"}},os={datesSet:m,eventsSet:m,eventAdd:m,eventChange:m,eventRemove:m,windowResize:m,eventClick:m,eventMouseEnter:m,eventMouseLeave:m,select:m,unselect:m,loading:m,_unmount:m,_beforeprint:m,_afterprint:m,_noEventDrop:m,_noEventResize:m,_resize:m,_scrollRequest:m},cs={buttonText:m,buttonHints:m,views:m,plugins:m,initialEvents:m,events:m,eventSources:m},xe={headerToolbar:Ie,footerToolbar:Ie,buttonText:Ie,buttonHints:Ie,buttonIcons:Ie,dateIncrement:Ie,plugins:kt,events:kt,eventSources:kt,resources:kt};function Ie(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?fe(t,e):t===e}function kt(t,e){return Array.isArray(t)&&Array.isArray(e)?Ce(t,e):t===e}const Ec={type:String,component:m,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:m,usesMinMaxTime:Boolean,classNames:m,content:m,didMount:m,willUnmount:m};function Sn(t){return ai(t,xe)}function li(t,e){let n={},i={};for(let r in e)r in t&&(n[r]=e[r](t[r]));for(let r in t)r in e||(i[r]=t[r]);return{refined:n,extra:i}}function m(t){return t}const{hasOwnProperty:Qt}=Object.prototype;function ai(t,e){let n={};if(e){for(let i in e)if(e[i]===Ie){let r=[];for(let s=t.length-1;s>=0;s-=1){let l=t[s][i];if(typeof l=="object"&&l)r.unshift(l);else if(l!==void 0){n[i]=l;break}}r.length&&(n[i]=ai(r))}}for(let i=t.length-1;i>=0;i-=1){let r=t[i];for(let s in r)s in n||(n[s]=r[s])}return n}function Pe(t,e){let n={};for(let i in t)e(t[i],i)&&(n[i]=t[i]);return n}function We(t,e){let n={};for(let i in t)n[i]=e(t[i],i);return n}function br(t){let e={};for(let n of t)e[n]=!0;return e}function oi(t){let e=[];for(let n in t)e.push(t[n]);return e}function fe(t,e){if(t===e)return!0;for(let n in t)if(Qt.call(t,n)&&!(n in e))return!1;for(let n in e)if(Qt.call(e,n)&&t[n]!==e[n])return!1;return!0}const Ac=/^on[A-Z]/;function Sc(t,e){const n=zn(t,e);for(let i of n)if(!Ac.test(i))return!1;return!0}function zn(t,e){let n=[];for(let i in t)Qt.call(t,i)&&(i in e||n.push(i));for(let i in e)Qt.call(e,i)&&t[i]!==e[i]&&n.push(i);return n}function Cn(t,e,n={}){if(t===e)return!0;for(let i in e)if(!(i in t&&Cc(t[i],e[i],n[i])))return!1;for(let i in t)if(!(i in e))return!1;return!0}function Cc(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function Tc(t,e=0,n,i=1){let r=[];n==null&&(n=Object.keys(t).length);for(let s=e;s<n;s+=i){let l=t[s];l!==void 0&&r.push(l)}return r}let Dr={};function Rc(t,e){Dr[t]=e}function kc(t){return new Dr[t]}class Mc{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return se(e)}markerToArray(e){return Ee(e)}}Rc("gregory",Mc);const xc=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Ic(t){let e=xc.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(yr(n)){let i=null;return e[13]&&(i=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:i}}}return null}class Oc{constructor(e){let n=this.timeZone=e.timeZone,i=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&i&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!i||this.namedTimeZoneImpl),this.calendarSystem=kc(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()):se(ns(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=se(e)),n===null||!yr(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=Ic(e);if(n===null)return null;let{marker:i}=n,r=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?i=this.timestampToMarker(i.valueOf()-n.timeZoneOffset*60*1e3):r=n.timeZoneOffset),{marker:i,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let i=this.calendarSystem.markerToArray(e);return i[0]+=n.years,i[1]+=n.months,i[2]+=n.days,i[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(i)}subtract(e,n){let i=this.calendarSystem.markerToArray(e);return i[0]-=n.years,i[1]-=n.months,i[2]-=n.days,i[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(i)}addYears(e,n){let i=this.calendarSystem.markerToArray(e);return i[0]+=n,this.calendarSystem.arrayToMarker(i)}addMonths(e,n){let i=this.calendarSystem.markerToArray(e);return i[1]+=n,this.calendarSystem.arrayToMarker(i)}diffWholeYears(e,n){let{calendarSystem:i}=this;return Ae(e)===Ae(n)&&i.getMarkerDay(e)===i.getMarkerDay(n)&&i.getMarkerMonth(e)===i.getMarkerMonth(n)?i.getMarkerYear(n)-i.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:i}=this;return Ae(e)===Ae(n)&&i.getMarkerDay(e)===i.getMarkerDay(n)?i.getMarkerMonth(n)-i.getMarkerMonth(e)+(i.getMarkerYear(n)-i.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let i=this.diffWholeYears(e,n);return i!==null?{unit:"year",value:i}:(i=this.diffWholeMonths(e,n),i!==null?{unit:"month",value:i}:(i=tc(e,n),i!==null?{unit:"week",value:i}:(i=Yt(e,n),i!==null?{unit:"day",value:i}:(i=Xo(e,n),En(i)?{unit:"hour",value:i}:(i=Jo(e,n),En(i)?{unit:"minute",value:i}:(i=Ko(e,n),En(i)?{unit:"second",value:i}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,i){let r;return i.years&&(r=this.diffWholeYears(e,n),r!==null)?r/Go(i):i.months&&(r=this.diffWholeMonths(e,n),r!==null)?r/qo(i):i.days&&(r=Yt(e,n),r!==null)?r/qe(i):(n.valueOf()-e.valueOf())/mt(i)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?L(e):n==="hour"?nc(e):n==="minute"?ic(e):n==="second"?sc(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)):rc(e,this.weekDow,this.weekDoy)}format(e,n,i={}){return n.format({marker:e,timeZoneOffset:i.forcedTzo!=null?i.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,i,r={}){return r.isEndExclusive&&(n=Te(n,-1)),i.formatRange({marker:e,timeZoneOffset:r.forcedStartTzo!=null?r.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:r.forcedEndTzo!=null?r.forcedEndTzo:this.offsetForMarker(n)},this,r.defaultSeparator)}formatIso(e,n={}){let i=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?i=n.forcedTzo:i=this.offsetForMarker(e)),ac(e,i,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?se(ns(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):se(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-is(Ee(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Ee(e)):null}toDate(e,n){return this.timeZone==="local"?is(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 Et{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,i;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(i in e)n[i]=this.applyIconOverridePrefix(e[i]);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 i;return n&&this.rtlIconClasses?i=this.rtlIconClasses[e]||this.iconClasses[e]:i=this.iconClasses[e],i?`${this.baseIconClass} ${i}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}Et.prototype.classes={};Et.prototype.iconClasses={};Et.prototype.baseIconClass="";Et.prototype.iconOverridePrefix="";function ds(t){t();let e=T.debounceRendering,n=[];function i(r){n.push(r)}for(T.debounceRendering=i,pt(g(Nc,{}),document.createElement("div"));n.length;)n.shift()();T.debounceRendering=e}class Nc extends re{render(){return g("div",{})}componentDidMount(){this.setState({})}}function wr(t){let e=lo(t),n=e.Provider;return e.Provider=function(){let i=!this.getChildContext,r=n.apply(this,arguments);if(i){let s=[];this.shouldComponentUpdate=l=>{this.props.value!==l.value&&s.forEach(a=>{a.context=l.value,a.forceUpdate()})},this.sub=l=>{s.push(l);let a=l.componentWillUnmount;l.componentWillUnmount=()=>{s.splice(s.indexOf(l),1),a&&a.call(l)}}}return r},e}class Hc{constructor(e,n,i,r){this.execFunc=e,this.emitter=n,this.scrollTime=i,this.scrollTimeReset=r,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 je=wr({});function Pc(t,e,n,i,r,s,l,a,o,c,d,u,h){return{dateEnv:r,options:n,pluginHooks:l,emitter:c,dispatch:a,getCurrentData:o,calendarApi:d,viewSpec:t,viewApi:e,dateProfileGenerator:i,theme:s,isRtl:n.direction==="rtl",addResizeHandler(f){c.on("_resize",f)},removeResizeHandler(f){c.off("_resize",f)},createScrollResponder(f){return new Hc(f,c,N(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:u,unregisterInteractiveComponent:h}}class Fe extends re{shouldComponentUpdate(e,n){return this.debug&&console.log(zn(e,this.props),zn(n,this.state)),!Cn(this.props,e,this.propEquality)||!Cn(this.state,n,this.stateEquality)}safeSetState(e){Cn(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Fe.addPropsEquality=Vc;Fe.addStateEquality=Bc;Fe.contextType=je;Fe.prototype.propEquality={};Fe.prototype.stateEquality={};class W extends Fe{}W.contextType=je;function Vc(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function Bc(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function De(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class ci extends W{constructor(){super(...arguments),this.id=Be(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{$n(this.props.generatorName,this.context.options)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&De(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:i}=n,{customGenerator:r,defaultGenerator:s,renderProps:l}=e,a=_r(e,[],this.handleEl);let o=!1,c,d=[],u;if(r!=null){const h=typeof r=="function"?r(l,g):r;if(h===!0)o=!0;else{const f=h&&typeof h=="object";f&&"html"in h?a.dangerouslySetInnerHTML={__html:h.html}:f&&"domNodes"in h?d=Array.prototype.slice.call(h.domNodes):(f?Gs(h):typeof h!="function")?c=h:u=h}}else o=!$n(e.generatorName,i);return o&&s&&(c=s(l)),this.queuedDomNodes=d,this.currentGeneratorMeta=u,g(e.elTag,a,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:i,context:r}=this,{handleCustomRendering:s,customRenderingMetaMap:l}=r.options;if(s){const a=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:l==null?void 0:l[i.generatorName];a&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},i),{elClasses:(i.elClasses||[]).filter(Lc)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,i=this.base;if(!Ce(e,n)){n.forEach(ni);for(let r of e)i.appendChild(r);this.currentDomNodes=e}}}ci.addPropsEquality({elClasses:Ce,elStyle:fe,elAttrs:Sc,renderProps:fe});function $n(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function _r(t,e,n){const i=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(i.className=(t.elClasses||[]).concat(e||[]).concat(i.className||[]).filter(Boolean).join(" ")),t.elStyle&&(i.style=t.elStyle),i}function Lc(t){return!!t}const Er=wr(0);class oe extends re{constructor(){super(...arguments),this.InnerContent=Wc.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&De(this.props.elRef,e)}}render(){const{props:e}=this,n=jc(e.classNameGenerator,e.renderProps);if(e.children){const i=_r(e,n,this.handleEl),r=e.children(this.InnerContent,e.renderProps,i);return e.elTag?g(e.elTag,i,r):r}else return g(ci,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}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}))}}oe.contextType=Er;function Wc(t,e){const n=t.props;return g(ci,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function jc(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class Zt extends W{render(){let{props:e,context:n}=this,{options:i}=n,r={view:n.viewApi};return g(oe,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Ar(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:i.viewClassNames,generatorName:void 0,didMount:i.viewDidMount,willUnmount:i.viewWillUnmount}),()=>e.children)}}function Ar(t){return[`fc-${t.type}-view`,"fc-view"]}function Fc(t,e){let n=null,i=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(i=e.createMarker(t.end)),!n&&!i||n&&i&&i<n?null:{start:n,end:i}}function us(t,e){let n=[],{start:i}=e,r,s;for(t.sort(Uc),r=0;r<t.length;r+=1)s=t[r],s.start>i&&n.push({start:i,end:s.start}),s.end>i&&(i=s.end);return i<e.end&&n.push({start:i,end:e.end}),n}function Uc(t,e){return t.start.valueOf()-e.start.valueOf()}function Re(t,e){let{start:n,end:i}=t,r=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(i===null?i=e.end:i=new Date(Math.min(i.valueOf(),e.end.valueOf()))),(n===null||i===null||n<i)&&(r={start:n,end:i}),r}function zc(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 di(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function on(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function Se(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function $c(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 Sr(t){let e=Math.floor(Le(t.start,t.end))||1,n=L(t.start),i=X(n,e);return{start:n,end:i}}function ui(t,e=N(0)){let n=null,i=null;if(t.end){i=L(t.end);let r=t.end.valueOf()-i.valueOf();r&&r>=mt(e)&&(i=X(i,1))}return t.start&&(n=L(t.start),i&&i<=n&&(i=X(n,1))),{start:n,end:i}}function Yc(t){let e=ui(t);return Le(e.start,e.end)>1}function Ye(t,e,n,i){return i==="year"?N(n.diffWholeYears(t,e),"year"):i==="month"?N(n.diffWholeMonths(t,e),"month"):ec(t,e)}function Gc(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function qc(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):At(t.now,e)}function At(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class Cr{constructor(e){this.props=e,this.nowDate=At(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,i){let{dateEnv:r}=this.props,s=r.subtract(r.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,i)}buildNext(e,n,i){let{dateEnv:r}=this.props,s=r.add(r.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,i)}build(e,n,i=!0){let{props:r}=this,s,l,a,o,c,d;return s=this.buildValidRange(),s=this.trimHiddenDays(s),i&&(e=$c(e,s)),l=this.buildCurrentRangeInfo(e,n),a=/^(year|month|week|day)$/.test(l.unit),o=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,a),o=this.trimHiddenDays(o),c=o,r.showNonCurrentDates||(c=Re(c,l.range)),c=this.adjustActiveRange(c),c=Re(c,s),d=di(l.range,s),Se(o,e)||(e=o.start),{currentDate:e,validRange:s,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:a,activeRange:c,renderRange:o,slotMinTime:r.slotMinTime,slotMaxTime:r.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:i}=this,r=null,s=null,l=null,a;return i.duration?(r=i.duration,s=i.durationUnit,l=this.buildRangeFromDuration(e,n,r,s)):(a=this.props.dayCount)?(s="day",l=this.buildRangeFromDayCount(e,n,a)):(l=this.buildCustomVisibleRange(e))?s=i.dateEnv.greatestWholeUnit(l.start,l.end).unit:(r=this.getFallbackDuration(),s=Fn(r).unit,l=this.buildRangeFromDuration(e,n,r,s)),{duration:r,unit:s,range:l}}getFallbackDuration(){return N({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:i,slotMinTime:r,slotMaxTime:s}=this.props,{start:l,end:a}=e;return i&&(qe(r)<0&&(l=L(l),l=n.add(l,r)),qe(s)>1&&(a=L(a),a=X(a,-1),a=n.add(a,s))),{start:l,end:a}}buildRangeFromDuration(e,n,i,r){let{dateEnv:s,dateAlignment:l}=this.props,a,o,c;if(!l){let{dateIncrement:u}=this.props;u&&mt(u)<mt(i)?l=Fn(u).unit:l=r}qe(i)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=L(a));function d(){a=s.startOf(e,l),o=s.add(a,i),c={start:a,end:o}}return d(),this.trimHiddenDays(c)||(e=this.skipHiddenDays(e,n),d()),c}buildRangeFromDayCount(e,n,i){let{dateEnv:r,dateAlignment:s}=this.props,l=0,a=e,o;s&&(a=r.startOf(a,s)),a=L(a),a=this.skipHiddenDays(a,n),o=a;do o=X(o,1),this.isHiddenDay(o)||(l+=1);while(l<i);return{start:a,end:o}}buildCustomVisibleRange(e){let{props:n}=this,i=n.visibleRangeInput,r=typeof i=="function"?i.call(n.calendarApi,n.dateEnv.toDate(e)):i,s=this.refineRange(r);return s&&(s.start==null||s.end==null)?null:s}buildRenderRange(e,n,i){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,i;return n||((i=this.props.dateAlignment)?N(1,i):e||N({days:1}))}refineRange(e){if(e){let n=Fc(e,this.props.dateEnv);return n&&(n=ui(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],i=0,r;for(this.props.weekends===!1&&e.push(0,6),r=0;r<7;r+=1)(n[r]=e.indexOf(r)!==-1)||(i+=1);if(!i)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:i}=e;return n&&(n=this.skipHiddenDays(n)),i&&(i=this.skipHiddenDays(i,-1,!0)),n==null||i==null||n<i?{start:n,end:i}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,i=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(i?n:0)+7)%7];)e=X(e,n);return e}}function hi(t,e,n,i){return{instanceId:Be(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:i??null}}function Qc(t,e,n,i){for(let r=0;r<i.length;r+=1){let s=i[r].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:r}}}return null}function Ve(t,e,n){let{dateEnv:i,pluginHooks:r,options:s}=n,{defs:l,instances:a}=t;a=Pe(a,o=>!l[o.defId].recurringDef);for(let o in l){let c=l[o];if(c.recurringDef){let{duration:d}=c.recurringDef;d||(d=c.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let u=Zc(c,d,e,i,r.recurringTypes);for(let h of u){let f=hi(o,{start:h,end:i.add(h,d)});a[f.instanceId]=f}}}return{defs:l,instances:a}}function Zc(t,e,n,i,r){let l=r[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:i.subtract(n.start,e),end:n.end},i);return t.allDay&&(l=l.map(L)),l}const Lt={id:String,groupId:String,title:String,url:String,interactive:Boolean},Tr={start:m,end:m,date:m,allDay:Boolean},Xc=Object.assign(Object.assign(Object.assign({},Lt),Tr),{extendedProps:m});function Rr(t,e,n,i,r=fi(n),s,l){let{refined:a,extra:o}=kr(t,n,r),c=Kc(e,n),d=Qc(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let h=Yn(a,o,e?e.sourceId:"",d.allDay,!!d.duration,n,s);return h.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:h,instance:null}}let u=Jc(a,c,n,i);if(u){let h=Yn(a,o,e?e.sourceId:"",u.allDay,u.hasEnd,n,s),f=hi(h.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);return l&&h.publicId&&l[h.publicId]&&(f.instanceId=l[h.publicId]),{def:h,instance:f}}return null}function kr(t,e,n=fi(e)){return li(t,n)}function fi(t){return Object.assign(Object.assign(Object.assign({},Xt),Xc),t.pluginHooks.eventRefiners)}function Yn(t,e,n,i,r,s,l){let a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(l&&t.id?l[t.id]:"")||Be(),sourceId:n,allDay:i,hasEnd:r,interactive:t.interactive,ui:Jt(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let o of s.pluginHooks.eventDefMemberAdders)Object.assign(a,o(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Jc(t,e,n,i){let{allDay:r}=t,s,l=null,a=!1,o,c=null,d=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(d),s)l=s.marker;else if(!i)return null;return t.end!=null&&(o=n.dateEnv.createMarkerMeta(t.end)),r==null&&(e!=null?r=e:r=(!s||s.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),r&&l&&(l=L(l)),o&&(c=o.marker,r&&(c=L(c)),l&&c<=l&&(c=null)),c?a=!0:i||(a=n.options.forceEventDuration||!1,c=n.dateEnv.add(l,r?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:r,hasEnd:a,range:{start:l,end:c},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function Kc(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function vt(t,e,n,i,r,s){let l=de(),a=fi(n);for(let o of t){let c=Rr(o,e,n,i,a,r,s);c&&Gn(c,l)}return l}function Gn(t,e=de()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function gi(t,e){let n=t.instances[e];if(n){let i=t.defs[n.defId],r=cn(t,s=>ed(i,s));return r.defs[i.defId]=i,r.instances[n.instanceId]=n,r}return de()}function ed(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function de(){return{defs:{},instances:{}}}function pi(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function cn(t,e){let n=Pe(t.defs,e),i=Pe(t.instances,r=>n[r.defId]);return{defs:n,instances:i}}function td(t,e){let{defs:n,instances:i}=t,r={},s={};for(let l in n)e.defs[l]||(r[l]=n[l]);for(let l in i)!e.instances[l]&&r[i[l].defId]&&(s[l]=i[l]);return{defs:r,instances:s}}function nd(t,e){return Array.isArray(t)?vt(t,null,e,!0):typeof t=="object"&&t?vt([t],null,e,!0):t!=null?String(t):null}function hs(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const Xt={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:m,overlap:m,allow:m,className:hs,classNames:hs,color:String,backgroundColor:String,borderColor:String,textColor:String},id={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Jt(t,e){let n=nd(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 sd(t){return t.reduce(rd,id)}function rd(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 ld={id:String,defaultAllDay:Boolean,url:String,format:String,events:m,eventDataTransform:m,success:m,failure:m};function Mr(t,e,n=xr(e)){let i;if(typeof t=="string"?i={url:t}:typeof t=="function"||Array.isArray(t)?i={events:t}:typeof t=="object"&&t&&(i=t),i){let{refined:r,extra:s}=li(i,n),l=ad(r,e);if(l)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:r.defaultAllDay,eventDataTransform:r.eventDataTransform,success:r.success,failure:r.failure,publicId:r.id||"",sourceId:Be(),sourceDefId:l.sourceDefId,meta:l.meta,ui:Jt(r,e),extendedProps:s}}return null}function xr(t){return Object.assign(Object.assign(Object.assign({},Xt),ld),t.pluginHooks.eventSourceRefiners)}function ad(t,e){let n=e.pluginHooks.eventSourceDefs;for(let i=n.length-1;i>=0;i-=1){let s=n[i].parseMeta(t);if(s)return{sourceDefId:i,meta:s}}return null}function od(t,e,n,i,r){switch(e.type){case"RECEIVE_EVENTS":return cd(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,r);case"RESET_RAW_EVENTS":return dd(t,n[e.sourceId],e.rawEvents,i.activeRange,r);case"ADD_EVENTS":return ud(t,e.eventStore,i?i.activeRange:null,r);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return pi(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return i?Ve(t,i.activeRange,r):t;case"REMOVE_EVENTS":return td(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Or(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return cn(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return de();default:return t}}function cd(t,e,n,i,r,s){if(e&&n===e.latestFetchId){let l=vt(Ir(r,e,s),e,s);return i&&(l=Ve(l,i,s)),pi(Or(t,e.sourceId),l)}return t}function dd(t,e,n,i,r){const{defIdMap:s,instanceIdMap:l}=fd(t);let a=vt(Ir(n,e,r),e,r,!1,s,l);return Ve(a,i,r)}function Ir(t,e,n){let i=n.options.eventDataTransform,r=e?e.eventDataTransform:null;return r&&(t=fs(t,r)),i&&(t=fs(t,i)),t}function fs(t,e){let n;if(!e)n=t;else{n=[];for(let i of t){let r=e(i);r?n.push(r):r==null&&n.push(i)}}return n}function ud(t,e,n,i){return n&&(e=Ve(e,n,i)),pi(t,e)}function gs(t,e,n){let{defs:i}=t,r=We(t.instances,s=>i[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:i,instances:r}}function Or(t,e){return cn(t,n=>n.sourceId!==e)}function hd(t,e){return{defs:t.defs,instances:Pe(t.instances,n=>!e[n.instanceId])}}function fd(t){const{defs:e,instances:n}=t,i={},r={};for(let s in e){const l=e[s],{publicId:a}=l;a&&(i[a]=s)}for(let s in n){const l=n[s],a=e[l.defId],{publicId:o}=a;o&&(r[o]=s)}return{defIdMap:i,instanceIdMap:r}}class dn{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){gd(this.handlers,e,n)}off(e,n){pd(this.handlers,e,n)}trigger(e,...n){let i=this.handlers[e]||[],r=this.options&&this.options[e],s=[].concat(r||[],i);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 gd(t,e,n){(t[e]||(t[e]=[])).push(n)}function pd(t,e,n){n?t[e]&&(t[e]=t[e].filter(i=>i!==n)):delete t[e]}const md={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function vd(t,e){return vt(yd(t),null,e)}function yd(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({},md),n)),e}function Nr(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},mi(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function bd(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function mi(t,e){let n={};for(let i of e.pluginHooks.dateSpanTransforms)Object.assign(n,i(t,e));return Object.assign(n,Od(t,e.dateEnv)),n}function ps(t,e,n){let{dateEnv:i,options:r}=n,s=e;return t?(s=L(s),s=i.add(s,r.defaultAllDayEventDuration)):s=i.add(s,r.defaultTimedEventDuration),s}function vi(t,e,n,i){let r=Kt(t.defs,e),s=de();for(let l in t.defs){let a=t.defs[l];s.defs[l]=Dd(a,r[l],n,i)}for(let l in t.instances){let a=t.instances[l],o=s.defs[a.defId];s.instances[l]=wd(a,o,r[a.defId],n,i)}return s}function Dd(t,e,n,i){let r=n.standardProps||{};r.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(r.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),r),{ui:Object.assign(Object.assign({},t.ui),r.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let l of i.pluginHooks.eventDefMutationAppliers)l(s,n,i);return!s.hasEnd&&i.options.forceEventDuration&&(s.hasEnd=!0),s}function wd(t,e,n,i,r){let{dateEnv:s}=r,l=i.standardProps&&i.standardProps.allDay===!0,a=i.standardProps&&i.standardProps.hasEnd===!1,o=Object.assign({},t);return l&&(o.range=Sr(o.range)),i.datesDelta&&n.startEditable&&(o.range={start:s.add(o.range.start,i.datesDelta),end:s.add(o.range.end,i.datesDelta)}),i.startDelta&&n.durationEditable&&(o.range={start:s.add(o.range.start,i.startDelta),end:o.range.end}),i.endDelta&&n.durationEditable&&(o.range={start:o.range.start,end:s.add(o.range.end,i.endDelta)}),a&&(o.range={start:o.range.start,end:ps(e.allDay,o.range.start,r)}),e.allDay&&(o.range={start:L(o.range.start),end:L(o.range.end)}),o.range.end<o.range.start&&(o.range.end=ps(e.allDay,o.range.start,r)),o}class $e{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 U{constructor(e,n,i){this._context=e,this._def=n,this._instance=i||null}setProp(e,n){if(e in Tr)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=Lt[e](n),this.mutate({standardProps:{publicId:n}});else if(e in Lt)n=Lt[e](n),this.mutate({standardProps:{[e]:n}});else if(e in Xt){let i=Xt[e](n);e==="color"?i={backgroundColor:n,borderColor:n}:e==="editable"?i={startEditable:n,durationEditable:n}:i={[e]:n},this.mutate({standardProps:{ui:i}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:i}=this._context,r=i.createMarker(e);if(r&&this._instance){let s=this._instance.range,l=Ye(s.start,r,i,n.granularity);n.maintainDuration?this.mutate({datesDelta:l}):this.mutate({startDelta:l})}}setEnd(e,n={}){let{dateEnv:i}=this._context,r;if(!(e!=null&&(r=i.createMarker(e),!r))&&this._instance)if(r){let s=Ye(this._instance.range.end,r,i,n.granularity);this.mutate({endDelta:s})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,i={}){let{dateEnv:r}=this._context,s={allDay:i.allDay},l=r.createMarker(e),a;if(l&&!(n!=null&&(a=r.createMarker(n),!a))&&this._instance){let o=this._instance.range;i.allDay===!0&&(o=Sr(o));let c=Ye(o.start,l,r,i.granularity);if(a){let d=Ye(o.end,a,r,i.granularity);$o(c,d)?this.mutate({datesDelta:c,standardProps:s}):this.mutate({startDelta:c,endDelta:d,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:c,standardProps:s})}}moveStart(e){let n=N(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=N(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=N(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let i={allDay:e},{maintainDuration:r}=n;r==null&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(i.hasEnd=r),this.mutate({standardProps:i})}formatRange(e){let{dateEnv:n}=this._context,i=this._instance,r=Q(e);return this._def.hasEnd?n.formatRange(i.range.start,i.range.end,r,{forcedStartTzo:i.forcedStartTzo,forcedEndTzo:i.forcedEndTzo}):n.format(i.range.start,r,{forcedTzo:i.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let i=this._def,r=this._context,{eventStore:s}=r.getCurrentData(),l=gi(s,n.instanceId);l=vi(l,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let o=new U(r,i,n);this._def=l.defs[i.defId],this._instance=l.instances[n.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:l}),r.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:He(l,r,n),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=Hr(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 $e(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:i}=n,{startStr:r,endStr:s}=this,l={allDay:n.allDay};return n.title&&(l.title=n.title),r&&(l.start=r),s&&(l.end=s),n.publicId&&(l.id=n.publicId),n.groupId&&(l.groupId=n.groupId),n.url&&(l.url=n.url),i.display&&i.display!=="auto"&&(l.display=i.display),e.collapseColor&&i.backgroundColor&&i.backgroundColor===i.borderColor?l.color=i.backgroundColor:(i.backgroundColor&&(l.backgroundColor=i.backgroundColor),i.borderColor&&(l.borderColor=i.borderColor)),i.textColor&&(l.textColor=i.textColor),i.classNames.length&&(l.classNames=i.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(l,n.extendedProps):l.extendedProps=n.extendedProps),l}toJSON(){return this.toPlainObject()}}function Hr(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function He(t,e,n){let{defs:i,instances:r}=t,s=[],l=n?n.instanceId:"";for(let a in r){let o=r[a],c=i[o.defId];o.instanceId!==l&&s.push(new U(e,c,o))}return s}function qn(t,e,n,i){let r={},s={},l={},a=[],o=[],c=Kt(t.defs,e);for(let d in t.defs){let u=t.defs[d];c[u.defId].display==="inverse-background"&&(u.groupId?(r[u.groupId]=[],l[u.groupId]||(l[u.groupId]=u)):s[d]=[])}for(let d in t.instances){let u=t.instances[d],h=t.defs[u.defId],f=c[h.defId],p=u.range,y=!h.allDay&&i?ui(p,i):p,v=Re(y,n);v&&(f.display==="inverse-background"?h.groupId?r[h.groupId].push(v):s[u.defId].push(v):f.display!=="none"&&(f.display==="background"?a:o).push({def:h,ui:f,instance:u,range:v,isStart:y.start&&y.start.valueOf()===v.start.valueOf(),isEnd:y.end&&y.end.valueOf()===v.end.valueOf()}))}for(let d in r){let u=r[d],h=us(u,n);for(let f of h){let p=l[d],y=c[p.defId];a.push({def:p,ui:y,instance:null,range:f,isStart:!1,isEnd:!1})}}for(let d in s){let u=s[d],h=us(u,n);for(let f of h)a.push({def:t.defs[d],ui:c[d],instance:null,range:f,isStart:!1,isEnd:!1})}return{bg:a,fg:o}}function ms(t,e){t.fcSeg=e}function Je(t){return t.fcSeg||t.parentNode.fcSeg||null}function Kt(t,e){return We(t,n=>Pr(n,e))}function Pr(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),sd(n)}function Vr(t,e){let n=t.map(_d);return n.sort((i,r)=>Bo(i,r,e)),n.map(i=>i._seg)}function _d(t){let{eventRange:e}=t,n=e.def,i=e.instance?e.instance.range:e.range,r=i.start?i.start.valueOf():0,s=i.end?i.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:r,end:s,duration:s-r,allDay:Number(n.allDay),_seg:t})}function Ed(t,e){let{pluginHooks:n}=e,i=n.isDraggableTransformers,{def:r,ui:s}=t.eventRange,l=s.startEditable;for(let a of i)l=a(l,r,s,e);return l}function Ad(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function Sd(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function ut(t,e,n,i,r,s,l){let{dateEnv:a,options:o}=n,{displayEventTime:c,displayEventEnd:d}=o,u=t.eventRange.def,h=t.eventRange.instance;c==null&&(c=i!==!1),d==null&&(d=r!==!1);let f=h.range.start,p=h.range.end,y=s||t.start||t.eventRange.range.start,v=l||t.end||t.eventRange.range.end,D=L(f).valueOf()===L(y).valueOf(),E=L(Te(p,-1)).valueOf()===L(Te(v,-1)).valueOf();return c&&!u.allDay&&(D||E)?(y=D?f:y,v=E?p:v,d&&u.hasEnd?a.formatRange(y,v,e,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:l?null:h.forcedEndTzo}):a.format(y,e,{forcedTzo:s?null:h.forcedStartTzo})):""}function Qe(t,e,n){let i=t.eventRange.range;return{isPast:i.end<(n||e.start),isFuture:i.start>=(n||e.end),isToday:e&&Se(e,i.start)}}function Cd(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 Td(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function yi(t,e){let{def:n,instance:i}=t.eventRange,{url:r}=n;if(r)return{href:r};let{emitter:s,options:l}=e,{eventInteractive:a}=l;return a==null&&(a=n.interactive,a==null&&(a=!!s.hasHandlers("eventClick"))),a?vr(o=>{s.trigger("eventClick",{el:o.target,event:new U(e,n,i),jsEvent:o,view:e.viewApi})}):{}}const Rd={start:m,end:m,allDay:Boolean};function kd(t,e,n){let i=Md(t,e),{range:r}=i;if(!r.start)return null;if(!r.end){if(n==null)return null;r.end=e.add(r.start,n)}return i}function Md(t,e){let{refined:n,extra:i}=li(t,Rd),r=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:l}=n;return l==null&&(l=r&&r.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:r?r.marker:null,end:s?s.marker:null},allDay:l},i)}function xd(t,e){return zc(t.range,e.range)&&t.allDay===e.allDay&&Id(t,e)}function Id(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 Od(t,e){return Object.assign(Object.assign({},Lr(t.range,e,t.allDay)),{allDay:t.allDay})}function Br(t,e,n){return Object.assign(Object.assign({},Lr(t,e,n)),{timeZone:e.timeZone})}function Lr(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 Nd(t,e,n){let i=kr({editable:!1},n),r=Yn(i.refined,i.extra,"",t.allDay,!0,n);return{def:r,ui:Pr(r,e),instance:hi(r.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function Hd(t,e,n){let i=!1,r=function(a){i||(i=!0,e(a))},s=function(a){i||(i=!0,n(a))},l=t(r,s);l&&typeof l.then=="function"&&l.then(r,s)}class vs extends Error{constructor(e,n){super(e),this.response=n}}function Pd(t,e,n){t=t.toUpperCase();const i={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(i.body=new URLSearchParams(n),i.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,i).then(r=>{if(r.ok)return r.json().then(s=>[s,r],()=>{throw new vs("Failure parsing JSON",r)});throw new vs("Request failed",r)})}let Tn;function Wr(){return Tn==null&&(Tn=Vd()),Tn}function Vd(){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 Bd extends W{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:i}=this.state,r=i||n.height==="auto"||n.contentHeight==="auto",s=!r&&n.height!=null?n.height:"",l=["fc",i?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Wr()||l.push("fc-liquid-hack"),e.children(l,s,r,i)}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 tt{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Ld(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function bi(t){return{[t.component.uid]:t}}const Qn={};class Wd{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:i}=this;i.currentCalendarOptionsRefiners[e]?i.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:i}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:i.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let i=this.getCurrentData(),r;n=n||"day",r=i.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),r?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:i}=this.getCurrentData(),r=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]),s,l;for(let a in n)r.push(a);for(s=0;s<r.length;s+=1)if(l=n[r[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:At(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(),i=N(e);i&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,i)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:i}=this.getCurrentData();return i.format(i.createMarker(e),Q(n))}formatRange(e,n,i){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(n),Q(i),i)}formatIso(e,n){let{dateEnv:i}=this.getCurrentData();return i.formatIso(i.createMarker(e),{omitTime:n})}select(e,n){let i;n==null?e.start!=null?i=e:i={start:e,end:null}:i={start:e,end:n};let r=this.getCurrentData(),s=kd(i,r.dateEnv,N({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),Nr(s,null,r))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),bd(e,n))}addEvent(e,n){if(e instanceof U){let l=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[l.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Gn({def:l,instance:a})}),this.triggerEventAdd(e)),e}let i=this.getCurrentData(),r;if(n instanceof $e)r=n.internalEventSource;else if(typeof n=="boolean")n&&([r]=oi(i.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;r=l.internalEventSource}let s=Rr(e,r,i,!1);if(s){let l=new U(i,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Gn(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:Hr(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:i,instances:r}=n.eventStore;e=String(e);for(let s in i){let l=i[s];if(l.publicId===e){if(l.recurringDef)return new U(n,l,null);for(let a in r){let o=r[a];if(o.defId===l.defId)return new U(n,l,o)}}}return null}getEvents(){let e=this.getCurrentData();return He(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,i=[];for(let r in n)i.push(new $e(e,n[r]));return i}getEventSourceById(e){let n=this.getCurrentData(),i=n.eventSources;e=String(e);for(let r in i)if(i[r].publicId===e)return new $e(n,i[r]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof $e)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let i=Mr(e,n);return i?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[i]}),new $e(n,i)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=N(e);n&&this.trigger("_scrollRequest",{time:n})}}function jd(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function jr(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 Fd(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 Ud(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function zd(t,e){return{left:t.left-e.left,top:t.top-e.top}}function Di(t,e,n,i){return{dow:t.getUTCDay(),isDisabled:!!(i&&!Se(i.activeRange,t)),isOther:!!(i&&!Se(i.currentRange,t)),isToday:!!(e&&Se(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function un(t,e){let n=["fc-day",`fc-day-${Qo[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 $d=Q({year:"numeric",month:"long",day:"numeric"}),Yd=Q({week:"long"});function yt(t,e,n="day",i=!0){const{dateEnv:r,options:s,calendarApi:l}=t;let a=r.format(e,n==="week"?Yd:$d);if(s.navLinks){let o=r.toDate(e);const c=d=>{let u=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof u=="function"?u.call(l,r.toDate(e),d):(typeof u=="string"&&(n=u),l.zoomTo(e,n))};return Object.assign({title:ct(s.navLinkHint,[a,o],a),"data-navlink":""},i?mr(c):{onClick:c})}return{"aria-label":a}}let Rn=null;function Gd(){return Rn===null&&(Rn=qd()),Rn}function qd(){let t=document.createElement("div");ot(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 ni(t),n}let kn;function Qd(){return kn||(kn=Zd()),kn}function Zd(){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=Fr(t);return document.body.removeChild(t),e}function Fr(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Xd(t,e=!1){let n=window.getComputedStyle(t),i=parseInt(n.borderLeftWidth,10)||0,r=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,l=parseInt(n.borderBottomWidth,10)||0,a=Fr(t),o=a.y-i-r,c=a.x-s-l,d={borderLeft:i,borderRight:r,borderTop:s,borderBottom:l,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return Gd()&&n.direction==="rtl"?d.scrollbarLeft=o:d.scrollbarRight=o,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 Jd(t,e=!1,n){let i=n?t.getBoundingClientRect():wi(t),r=Xd(t,e),s={left:i.left+r.borderLeft+r.scrollbarLeft,right:i.right-r.borderRight-r.scrollbarRight,top:i.top+r.borderTop,bottom:i.bottom-r.borderBottom-r.scrollbarBottom};return e&&(s.left+=r.paddingLeft,s.right-=r.paddingRight,s.top+=r.paddingTop,s.bottom-=r.paddingBottom),s}function wi(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 Kd(t){let e=Ur(t),n=t.getBoundingClientRect();for(let i of e){let r=jr(n,i.getBoundingClientRect());if(r)n=r;else return null}return n}function Ur(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 en{constructor(e,n,i,r){this.els=n;let s=this.originClientRect=e.getBoundingClientRect();i&&this.buildElHorizontals(s.left),r&&this.buildElVerticals(s.top)}buildElHorizontals(e){let n=[],i=[];for(let r of this.els){let s=r.getBoundingClientRect();n.push(s.left-e),i.push(s.right-e)}this.lefts=n,this.rights=i}buildElVerticals(e){let n=[],i=[];for(let r of this.els){let s=r.getBoundingClientRect();n.push(s.top-e),i.push(s.bottom-e)}this.tops=n,this.bottoms=i}leftToIndex(e){let{lefts:n,rights:i}=this,r=n.length,s;for(s=0;s<r;s+=1)if(e>=n[s]&&e<i[s])return s}topToIndex(e){let{tops:n,bottoms:i}=this,r=n.length,s;for(s=0;s<r;s+=1)if(e>=n[s]&&e<i[s])return s}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Mt(this.tops||[],e.tops||[])&&Mt(this.bottoms||[],e.bottoms||[])&&Mt(this.lefts||[],e.lefts||[])&&Mt(this.rights||[],e.rights||[])}}function Mt(t,e){const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(Math.round(t[i])!==Math.round(e[i]))return!1;return!0}class _i{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 eu extends _i{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 tu extends _i{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 me extends W{constructor(){super(...arguments),this.uid=Be()}prepareHits(){}queryHit(e,n,i,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!ne(e,".fc-event-mirror")}isValidDateDownEl(e){return!ne(e,".fc-event:not(.fc-bg-event)")&&!ne(e,".fc-more-link")&&!ne(e,"a[data-navlink]")&&!ne(e,".fc-popover")}}class nu{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 i of e)this.insertEntry(i,n);return n}insertEntry(e,n){let i=this.findInsertion(e);return this.isInsertionValid(i,e)?(this.insertEntryAt(e,i),1):this.handleInvalidInsertion(i,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,i){return this.allowReslicing&&e.touchingEntry?this.splitEntry(n,e.touchingEntry,i):(i.push(n),0)}splitEntry(e,n,i){let r=0,s=[],l=e.span,a=n.span;return l.start<a.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:l.start,end:a.start}},s)),l.end>a.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.end,end:l.end}},s)),r?(i.push({index:e.index,thickness:e.thickness,span:zr(a,l)},...s),r):(i.push(e),0)}insertEntryAt(e,n){let{entriesByLevel:i,levelCoords:r}=this;n.lateral===-1?(Mn(r,n.level,n.levelCoord),Mn(i,n.level,[e])):Mn(i[n.level],n.lateral,e),this.stackCnts[ht(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:i,strictOrder:r,stackCnts:s}=this,l=n.length,a=0,o=-1,c=-1,d=null,u=0;for(let p=0;p<l;p+=1){let y=n[p];if(!r&&y>=a+this.getEntryThickness(e))break;let v=i[p],D,E=bs(v,e.span.start,ys),S=E[0]+E[1];for(;(D=v[S])&&D.span.start<e.span.end;){let C=y+this.getEntryThickness(D);C>a&&(a=C,d=D,o=p,c=S),C===a&&(u=Math.max(u,s[ht(D)]+1)),S+=1}}let h=0;if(d)for(h=o+1;h<l&&n[h]<a;)h+=1;let f=-1;return h<l&&n[h]===a&&(f=bs(i[h],e.span.end,ys)[0]),{touchingLevel:o,touchingLateral:c,touchingEntry:d,stackCnt:u,levelCoord:a,level:h,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,i=e.length,r=[];for(let s=0;s<i;s+=1){let l=e[s],a=n[s];for(let o of l)r.push(Object.assign(Object.assign({},o),{thickness:this.getEntryThickness(o),levelCoord:a}))}return r}}function ys(t){return t.span.end}function ht(t){return t.index+":"+t.span.start}function zr(t,e){let n=Math.max(t.start,e.start),i=Math.min(t.end,e.end);return n<i?{start:n,end:i}:null}function Mn(t,e,n){t.splice(e,0,n)}function bs(t,e,n){let i=0,r=t.length;if(!r||e<n(t[i]))return[0,0];if(e>n(t[r-1]))return[r,0];for(;i<r;){let s=Math.floor(i+(r-i)/2),l=n(t[s]);if(e<l)r=s;else if(e>l)i=s+1;else return[s,1]}return[i,0]}class iu{constructor(e,n){this.emitter=new dn}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Ei={};function su(t,e){return!t||e>10?Q({weekday:"short"}):e>1?Q({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Q({weekday:"long"})}const $r="fc-col-header-cell";function Yr(t){return t.text}class ru extends W{render(){let{dateEnv:e,options:n,theme:i,viewApi:r}=this.context,{props:s}=this,{date:l,dateProfile:a}=s,o=Di(l,s.todayRange,null,a),c=[$r].concat(un(o,i)),d=e.format(l,s.dayHeaderFormat),u=!o.isDisabled&&s.colCnt>1?yt(this.context,l):{},h=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:r},s.extraRenderProps),{text:d}),o);return g(oe,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":o.isDisabled?void 0:_t(l)},s.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:Yr,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},f=>g("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&g(f,{elTag:"a",elAttrs:u,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const lu=Q({weekday:"long"});class au extends W{render(){let{props:e}=this,{dateEnv:n,theme:i,viewApi:r,options:s}=this.context,l=X(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},o=n.format(l,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:l},a),{view:r}),e.extraRenderProps),{text:o});return g(oe,{elTag:"th",elClasses:[$r,...un(a,i),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:Yr,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},d=>g("div",{className:"fc-scrollgrid-sync-inner"},g(d,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(l,lu)}})))}}class hn extends re{constructor(e,n){super(e,n),this.initialNowDate=At(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,i=Te(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),r=n.dateEnv.startOf(i,e.unit),s=n.dateEnv.add(r,N(1,e.unit)),l=s.valueOf()-i.valueOf();return l=Math.min(1e3*60*60*24,l),{currentState:{nowDate:r,todayRange:Ds(r)},nextState:{nowDate:s,todayRange:Ds(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)}}hn.contextType=je;function Ds(t){let e=L(t),n=X(e,1);return{start:e,end:n}}class Gr extends W{constructor(){super(...arguments),this.createDayHeaderFormatter=x(ou)}render(){let{context:e}=this,{dates:n,dateProfile:i,datesRepDistinctDays:r,renderIntro:s}=this.props,l=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,n.length);return g(hn,{unit:"day"},(a,o)=>g("tr",{role:"row"},s&&s("day"),n.map(c=>r?g(ru,{key:c.toISOString(),date:c,dateProfile:i,todayRange:o,colCnt:n.length,dayHeaderFormat:l}):g(au,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:l}))))}}function ou(t,e,n){return t||su(e,n)}class cu{constructor(e,n){let i=e.start,{end:r}=e,s=[],l=[],a=-1;for(;i<r;)n.isHiddenDay(i)?s.push(a+.5):(a+=1,s.push(a),l.push(i)),i=X(i,1);this.dates=l,this.indices=s,this.cnt=l.length}sliceRange(e){let n=this.getDateDayIndex(e.start),i=this.getDateDayIndex(X(e.end,-1)),r=Math.max(0,n),s=Math.min(this.cnt-1,i);return r=Math.ceil(r),s=Math.floor(s),r<=s?{firstIndex:r,lastIndex:s,isStart:n===r,isEnd:i===s}:null}getDateDayIndex(e){let{indices:n}=this,i=Math.floor(Le(this.dates[0],e));return i<0?n[0]-1:i>=n.length?n[n.length-1]+1:n[i]}}class du{constructor(e,n){let{dates:i}=e,r,s,l;if(n){for(s=i[0].getUTCDay(),r=1;r<i.length&&i[r].getUTCDay()!==s;r+=1);l=Math.ceil(i.length/r)}else l=1,r=i.length;this.rowCnt=l,this.colCnt=r,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let i=[];for(let r=0;r<this.colCnt;r+=1)i.push(this.buildCell(n,r));e.push(i)}return e}buildCell(e,n){let i=this.daySeries.dates[e*this.colCnt+n];return{key:i.toISOString(),date:i}}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,i=this.daySeries.sliceRange(e),r=[];if(i){let{firstIndex:s,lastIndex:l}=i,a=s;for(;a<=l;){let o=Math.floor(a/n),c=Math.min((o+1)*n,l+1);r.push({row:o,firstCol:a%n,lastCol:(c-1)%n,isStart:i.isStart&&a===s,isEnd:i.isEnd&&c-1===l}),a=c}}return r}}class uu{constructor(){this.sliceBusinessHours=x(this._sliceBusinessHours),this.sliceDateSelection=x(this._sliceDateSpan),this.sliceEventStore=x(this._sliceEventStore),this.sliceEventDrag=x(this._sliceInteraction),this.sliceEventResize=x(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,i,r,...s){let{eventUiBases:l}=e,a=this.sliceEventStore(e.eventStore,l,n,i,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,i,l,r,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,i,r,...s),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,l,n,i,...s),eventResize:this.sliceEventResize(e.eventResize,l,n,i,...s),eventSelection:e.eventSelection}}sliceNowDate(e,n,i,r,...s){return this._sliceDateSpan({range:{start:e,end:Te(e,1)},allDay:!1},n,i,{},r,...s)}_sliceBusinessHours(e,n,i,r,...s){return e?this._sliceEventStore(Ve(e,xt(n,!!i),r),{},n,i,...s).bg:[]}_sliceEventStore(e,n,i,r,...s){if(e){let l=qn(e,n,xt(i,!!r),r);return{bg:this.sliceEventRanges(l.bg,s),fg:this.sliceEventRanges(l.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,i,r,...s){if(!e)return null;let l=qn(e.mutatedEvents,n,xt(i,!!r),r);return{segs:this.sliceEventRanges(l.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,i,r,s,...l){if(!e)return[];let a=xt(n,!!i),o=Re(e.range,a);if(o){e=Object.assign(Object.assign({},e),{range:o});let c=Nd(e,r,s),d=this.sliceRange(e.range,...l);for(let u of d)u.eventRange=c;return d}return[]}sliceEventRanges(e,n){let i=[];for(let r of e)i.push(...this.sliceEventRange(r,n));return i}sliceEventRange(e,n){let i=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(i={start:i.start,end:X(i.start,1)});let r=this.sliceRange(i,...n);for(let s of r)s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd;return r}}function xt(t,e){let n=t.activeRange;return e?n:{start:Te(n.start,t.slotMinTime.milliseconds),end:Te(n.end,t.slotMaxTime.milliseconds-864e5)}}function qr(t,e,n){let{instances:i}=t.mutatedEvents;for(let r in i)if(!on(e.validRange,i[r].range))return!1;return Qr({eventDrag:t},n)}function hu(t,e,n){return on(e.validRange,t.range)?Qr({dateSelection:t},n):!1}function Qr(t,e){let n=e.getCurrentData(),i=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||fu)(i,e)}function fu(t,e,n={},i){return!(t.eventDrag&&!gu(t,e,n,i)||t.dateSelection&&!pu(t,e,n,i))}function gu(t,e,n,i){let r=e.getCurrentData(),s=t.eventDrag,l=s.mutatedEvents,a=l.defs,o=l.instances,c=Kt(a,s.isEvent?t.eventUiBases:{"":r.selectionConfig});i&&(c=We(c,i));let d=hd(t.eventStore,s.affectedEvents.instances),u=d.defs,h=d.instances,f=Kt(u,t.eventUiBases);for(let p in o){let y=o[p],v=y.range,D=c[y.defId],E=a[y.defId];if(!Zr(D.constraints,v,d,t.businessHours,e))return!1;let{eventOverlap:S}=e.options,C=typeof S=="function"?S:null;for(let z in h){let B=h[z];if(di(v,B.range)&&(f[B.defId].overlap===!1&&s.isEvent||D.overlap===!1||C&&!C(new U(e,u[B.defId],B),new U(e,E,y))))return!1}let V=r.eventStore;for(let z of D.allows){let B=Object.assign(Object.assign({},n),{range:y.range,allDay:E.allDay}),M=V.defs[E.defId],we=V.instances[p],nt;if(M?nt=new U(e,M,we):nt=new U(e,E),!z(mi(B,e),nt))return!1}}return!0}function pu(t,e,n,i){let r=t.eventStore,s=r.defs,l=r.instances,a=t.dateSelection,o=a.range,{selectionConfig:c}=e.getCurrentData();if(i&&(c=i(c)),!Zr(c.constraints,o,r,t.businessHours,e))return!1;let{selectOverlap:d}=e.options,u=typeof d=="function"?d:null;for(let h in l){let f=l[h];if(di(o,f.range)&&(c.overlap===!1||u&&!u(new U(e,s[f.defId],f),null)))return!1}for(let h of c.allows){let f=Object.assign(Object.assign({},n),a);if(!h(mi(f,e),null))return!1}return!0}function Zr(t,e,n,i,r){for(let s of t)if(!vu(mu(s,e,n,i,r),e))return!1;return!0}function mu(t,e,n,i,r){return t==="businessHours"?xn(Ve(i,e,r)):typeof t=="string"?xn(cn(n,s=>s.groupId===t)):typeof t=="object"&&t?xn(Ve(t,e,r)):[]}function xn(t){let{instances:e}=t,n=[];for(let i in e)n.push(e[i].range);return n}function vu(t,e){for(let n of t)if(on(n,e))return!0;return!1}const It=/^(visible|hidden)$/;class Xr extends W{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,De(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:i}=e,r=n&&i,s=["fc-scroller"];return n&&(i?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),g("div",{ref:this.handleEl,className:s.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(It.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:i}=e;for(let r=0;r<i.length;r+=1)if(i[r].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(It.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:i}=e;for(let r=0;r<i.length;r+=1)if(i[r].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return It.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return It.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class Ne{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,i)=>{let{depths:r,currentMap:s}=this,l=!1,a=!1;n!==null?(l=i in s,s[i]=n,r[i]=(r[i]||0)+1,a=!0):(r[i]-=1,r[i]||(delete s[i],delete this.callbackMap[i],l=!0)),this.masterCallback&&(l&&this.masterCallback(null,String(i)),a&&this.masterCallback(n,String(i)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=i=>{this.handleValue(i,String(e))}),n}collect(e,n,i){return Tc(this.currentMap,e,n,i)}getAll(){return oi(this.currentMap)}}function yu(t){let e=Ro(t,".fc-scrollgrid-shrink"),n=0;for(let i of e)n=Math.max(n,Fo(i));return Math.ceil(n)}function Jr(t,e){return t.liquid&&e.liquid}function bu(t,e){return e.maxHeight!=null||Jr(t,e)}function Du(t,e,n,i){let{expandRows:r}=n;return typeof e.content=="function"?e.content(n):g("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:r?n.clientHeight:""}},n.tableColGroupNode,g(i?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function wu(t,e){return Ce(t,e,fe)}function _u(t,e){let n=[];for(let i of t){let r=i.span||1;for(let s=0;s<r;s+=1)n.push(g("col",{style:{width:i.width==="shrink"?Eu(e):i.width||"",minWidth:i.minWidth||""}}))}return g("colgroup",{},...n)}function Eu(t){return t??4}function Au(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function Su(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Cu(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 Tu(t){return g("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function ws(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function Ru(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class Kr extends W{constructor(){super(...arguments),this.processCols=x(e=>e,wu),this.renderMicroColGroup=x(_u),this.scrollerRefs=new Ne,this.scrollerElRefs=new Ne(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:i}=this,r=e.sections||[],s=this.processCols(e.cols),l=this.renderMicroColGroup(s,n.shrinkWidth),a=Su(e.liquid,i);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let o=r.length,c=0,d,u=[],h=[],f=[];for(;c<o&&(d=r[c]).type==="header";)u.push(this.renderSection(d,l,!0)),c+=1;for(;c<o&&(d=r[c]).type==="body";)h.push(this.renderSection(d,l,!1)),c+=1;for(;c<o&&(d=r[c]).type==="footer";)f.push(this.renderSection(d,l,!0)),c+=1;let p=!Wr();const y={role:"rowgroup"};return g("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!p&&u.length)&&g("thead",y,...u),!!(!p&&h.length)&&g("tbody",y,...h),!!(!p&&f.length)&&g("tfoot",y,...f),p&&g("tbody",y,...u,...h,...f))}renderSection(e,n,i){return"outerContent"in e?g(q,{key:e.key},e.outerContent):g("tr",{key:e.key,role:"presentation",className:Cu(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,i))}renderChunkTd(e,n,i,r){if("outerContent"in i)return i.outerContent;let{props:s}=this,{forceYScrollbars:l,scrollerClientWidths:a,scrollerClientHeights:o}=this.state,c=bu(s,e),d=Jr(s,e),u=s.liquid?l?"scroll":c?"auto":"hidden":"visible",h=e.key,f=Du(e,i,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&a[h]!==void 0?a[h]:null,clientHeight:o[h]!==void 0?o[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return g(r?"th":"td",{ref:i.elRef,role:"presentation"},g("div",{className:`fc-scroller-harness${d?" fc-scroller-harness-liquid":""}`},g(Xr,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:u,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:d,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,n){let i=ku(this.props.sections,n);i&&De(i.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Au(this.props.cols)?yu(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Qd(),{scrollerRefs:n,scrollerElRefs:i}=this,r=!1,s={},l={};for(let a in n.currentMap){let o=n.currentMap[a];if(o&&o.needsYScrolling()){r=!0;break}}for(let a of this.props.sections){let o=a.key,c=i.currentMap[o];if(c){let d=c.parentNode;s[o]=Math.floor(d.getBoundingClientRect().width-(r?e.y:0)),l[o]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:s,scrollerClientHeights:l}}}Kr.addStateEquality({scrollerClientWidths:fe,scrollerClientHeights:fe});function ku(t,e){for(let n of t)if(n.key===e)return n;return null}class fn extends W{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&ms(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:i}=n,{seg:r}=e,{eventRange:s}=r,{ui:l}=s,a={event:new U(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&Ed(r,n),isStartResizable:!e.disableResizing&&Ad(r,n),isEndResizable:!e.disableResizing&&Sd(r),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!r.isStart,isEnd:!!r.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return g(oe,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Cd(a),...r.eventRange.ui.classNames,...e.elClasses||[]],renderProps:a,generatorName:"eventContent",customGenerator:i.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.eventClassNames,didMount:i.eventDidMount,willUnmount:i.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&ms(this.el,this.props.seg)}}class Mu extends W{render(){let{props:e,context:n}=this,{options:i}=n,{seg:r}=e,{ui:s}=r.eventRange,l=i.eventTimeFormat||e.defaultTimeFormat,a=ut(r,l,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return g(fn,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:yi(r,n),defaultGenerator:xu,timeText:a}),(o,c)=>g(q,null,g(o,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:c.textColor}}),!!c.isStartResizable&&g("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!c.isEndResizable&&g("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function xu(t){return g("div",{className:"fc-event-main-frame"},t.timeText&&g("div",{className:"fc-event-time"},t.timeText),g("div",{className:"fc-event-title-container"},g("div",{className:"fc-event-title fc-sticky"},t.event.title||g(q,null," "))))}const Iu=Q({day:"numeric"});class el extends W{constructor(){super(...arguments),this.refineRenderProps=Bt(Ou)}render(){let{props:e,context:n}=this,{options:i}=n,r=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:i.monthStartFormat});return g(oe,Object.assign({},e,{elClasses:[...un(r,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":_t(e.date)}),renderProps:r,generatorName:"dayCellContent",customGenerator:i.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:i.dayCellClassNames,didMount:i.dayCellDidMount,willUnmount:i.dayCellWillUnmount}))}}function tl(t){return!!(t.dayCellContent||$n("dayCellContent",t))}function Ou(t){let{date:e,dateEnv:n,dateProfile:i,isMonthStart:r}=t,s=Di(e,t.todayRange,null,i),l=t.showDayNumber?n.format(e,r?t.monthStartFormat:Iu):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:r,dayNumberText:l}),t.extraRenderProps)}class Nu extends W{render(){let{props:e}=this,{seg:n}=e;return g(fn,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Hu,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 Hu(t){let{title:e}=t.event;return e&&g("div",{className:"fc-event-title"},t.event.title)}function Pu(t){return g("div",{className:`fc-${t}`})}const Vu=t=>g(je.Consumer,null,e=>{let{dateEnv:n,options:i}=e,{date:r}=t,s=i.weekNumberFormat||t.defaultFormat,l=n.computeWeekNumber(r),a=n.format(r,s);return g(oe,Object.assign({},t,{renderProps:{num:l,text:a,date:r},generatorName:"weekNumberContent",customGenerator:i.weekNumberContent,defaultGenerator:Bu,classNameGenerator:i.weekNumberClassNames,didMount:i.weekNumberDidMount,willUnmount:i.weekNumberWillUnmount}))});function Bu(t){return t.text}const In=10;class Lu extends W{constructor(){super(...arguments),this.state={titleId:be()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&De(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=gr(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:i,state:r}=this,s=["fc-popover",e.getClass("popover")].concat(i.extraClassNames||[]);return go(g("div",Object.assign({},i.extraAttrs,{id:i.id,className:s.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),g("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},g("span",{className:"fc-popover-title",id:r.titleId},i.title),g("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),g("div",{className:"fc-popover-body "+e.getClass("popoverContent")},i.children)),i.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:i}=this.props,{rootEl:r}=this,s=Kd(n);if(s){let l=r.getBoundingClientRect(),a=i?ne(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,o=e?s.right-l.width:s.left;a=Math.max(a,In),o=Math.min(o,document.documentElement.clientWidth-In-l.width),o=Math.max(o,In);let c=r.offsetParent.getBoundingClientRect();ot(r,{top:a-c.top,left:o-c.left})}}}class Wu extends me{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:i}=this,{startDate:r,todayRange:s,dateProfile:l}=i,a=n.format(r,e.dayPopoverFormat);return g(el,{elRef:this.handleRootEl,date:r,dateProfile:l,todayRange:s},(o,c,d)=>g(Lu,{elRef:d.ref,id:i.id,title:a,extraClassNames:["fc-more-popover"].concat(d.className||[]),extraAttrs:d,parentEl:i.parentEl,alignmentEl:i.alignmentEl,alignGridTop:i.alignGridTop,onClose:i.onClose},tl(e)&&g(o,{elTag:"div",elClasses:["fc-more-popover-misc"]}),i.children))}queryHit(e,n,i,r){let{rootEl:s,props:l}=this;return e>=0&&e<i&&n>=0&&n<r?{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:i,bottom:r},layer:1}:null}}class ju extends W{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:be()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&De(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:i}=this,{moreLinkClick:r}=i.options,s=_s(n).start;function l(a){let{def:o,instance:c,range:d}=a.eventRange;return{event:new U(i,o,c),start:i.dateEnv.toDate(d.start),end:i.dateEnv.toDate(d.end),isStart:a.isStart,isEnd:a.isEnd}}typeof r=="function"&&(r=r({date:s,allDay:!!n.allDayDate,allSegs:n.allSegs.map(l),hiddenSegs:n.hiddenSegs.map(l),jsEvent:e,view:i.viewApi})),!r||r==="popover"?this.setState({isPopoverOpen:!0}):typeof r=="string"&&i.calendarApi.zoomTo(s,r)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return g(je.Consumer,null,i=>{let{viewApi:r,options:s,calendarApi:l}=i,{moreLinkText:a}=s,{moreCnt:o}=e,c=_s(e),d=typeof a=="function"?a.call(l,o):`+${o} ${a}`,u=ct(s.moreLinkHint,[o],d),h={num:o,shortText:`+${o}`,text:d,view:r};return g(q,null,!!e.moreCnt&&g(oe,{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),mr(this.handleClick)),{title:u,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||Fu,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&g(Wu,{id:n.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=ne(this.linkEl,".fc-view-harness"))}}function Fu(t){return t.text}function _s(t){if(t.allDayDate)return{start:t.allDayDate,end:X(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Uu(e),end:$u(e)}}function Uu(t){return t.reduce(zu).eventRange.range.start}function zu(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function $u(t){return t.reduce(Yu).eventRange.range.end}function Yu(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class Gu{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 qu extends Gu{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let i=!1;e.isActive?(n.set(e.id,e),i=!0):n.has(e.id)&&(n.delete(e.id),i=!0),i&&this.set(n)}}const Qu=[],nl={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"},il=Object.assign(Object.assign({},nl),{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 Zu(t){let e=t.length>0?t[0].code:"en",n=Qu.concat(t),i={en:il};for(let r of n)i[r.code]=r;return{map:i,defaultCode:e}}function sl(t,e){return typeof t=="object"&&!Array.isArray(t)?rl(t.code,[t.code],t):Xu(t,e)}function Xu(t,e){let n=[].concat(t||[]),i=Ju(n,e)||il;return rl(t,n,i)}function Ju(t,e){for(let n=0;n<t.length;n+=1){let i=t[n].toLocaleLowerCase().split("-");for(let r=i.length;r>0;r-=1){let s=i.slice(0,r).join("-");if(e[s])return e[s]}}return null}function rl(t,e,n){let i=ai([nl,n],["buttonText"]);delete i.code;let{week:r}=i;return delete i.week,{codeArg:t,codes:e,week:r,simpleNumberFormat:new Intl.NumberFormat(t),options:i}}function ve(t){return{id:Be(),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 Ku(t,e){let n={},i={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function r(s){for(let l of s){const a=l.name,o=n[a];o===void 0?(n[a]=l.id,r(l.deps),i=th(i,l)):o!==l.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&r(t),r(e),i}function eh(){let t=[],e=[],n;return(i,r)=>((!n||!Ce(i,t)||!Ce(r,e))&&(n=Ku(i,r)),t=i,e=r,n)}function th(t,e){return{premiumReleaseDate:nh(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 nh(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class Me extends Et{}Me.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};Me.prototype.baseIconClass="fc-icon";Me.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"};Me.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};Me.prototype.iconOverrideOption="buttonIcons";Me.prototype.iconOverrideCustomButtonOption="icon";Me.prototype.iconOverridePrefix="fc-icon-";function ih(t,e){let n={},i;for(i in t)Zn(i,n,t,e);for(i in e)Zn(i,n,t,e);return n}function Zn(t,e,n,i){if(e[t])return e[t];let r=sh(t,e,n,i);return r&&(e[t]=r),r}function sh(t,e,n,i){let r=n[t],s=i[t],l=d=>r&&r[d]!==null?r[d]:s&&s[d]!==null?s[d]:null,a=l("component"),o=l("superType"),c=null;if(o){if(o===t)throw new Error("Can't have a custom view type that references itself");c=Zn(o,e,n,i)}return!a&&c&&(a=c.component),a?{type:t,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),r?r.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}:null}function Es(t){return We(t,rh)}function rh(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=As(e):n&&!(n.prototype instanceof W)&&(n=As(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function As(t){return e=>g(je.Consumer,null,n=>g(oe,{elTag:"div",elClasses:Ar(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 lh(t,e,n,i){let r=Es(t),s=Es(e.views),l=ih(r,s);return We(l,a=>ah(a,s,e,n,i))}function ah(t,e,n,i,r){let s=t.overrides.duration||t.defaults.duration||i.duration||n.duration,l=null,a="",o="",c={};if(s&&(l=oh(s),l)){let h=Fn(l);a=h.unit,h.value===1&&(o=a,c=e[a]?e[a].rawOptions:{})}let d=h=>{let f=h.buttonText||{},p=t.defaults.buttonTextKey;return p!=null&&f[p]!=null?f[p]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null},u=h=>{let f=h.buttonHints||{},p=t.defaults.buttonTextKey;return p!=null&&f[p]!=null?f[p]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null};return{type:t.type,component:t.component,duration:l,durationUnit:a,singleUnit:o,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},c),t.overrides),buttonTextOverride:d(i)||d(n)||t.overrides.buttonText,buttonTextDefault:d(r)||t.defaults.buttonText||d(dt)||t.type,buttonTitleOverride:u(i)||u(n)||t.overrides.buttonHint,buttonTitleDefault:u(r)||t.defaults.buttonHint||u(dt)}}let Ss={};function oh(t){let e=JSON.stringify(t),n=Ss[e];return n===void 0&&(n=N(t),Ss[e]=n),n}function ch(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function dh(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function uh(t,e,n,i){let r;switch(e.type){case"CHANGE_VIEW_TYPE":return i.build(e.dateMarker||n);case"CHANGE_DATE":return i.build(e.dateMarker);case"PREV":if(r=i.buildPrev(t,n),r.isValid)return r;break;case"NEXT":if(r=i.buildNext(t,n),r.isValid)return r;break}return t}function hh(t,e,n){let i=e?e.activeRange:null;return al({},bh(t,n),i,n)}function fh(t,e,n,i){let r=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return al(t,e.sources,r,i);case"REMOVE_EVENT_SOURCE":return ph(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?ol(t,r,i):t;case"FETCH_EVENT_SOURCES":return Ai(t,e.sourceIds?br(e.sourceIds):cl(t,i),r,e.isRefetch||!1,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return yh(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function gh(t,e,n){let i=e?e.activeRange:null;return Ai(t,cl(t,n),i,!0,n)}function ll(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function al(t,e,n,i){let r={};for(let s of e)r[s.sourceId]=s;return n&&(r=ol(r,n,i)),Object.assign(Object.assign({},t),r)}function ph(t,e){return Pe(t,n=>n.sourceId!==e)}function ol(t,e,n){return Ai(t,Pe(t,i=>mh(i,e,n)),e,!1,n)}function mh(t,e,n){return dl(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function Ai(t,e,n,i,r){let s={};for(let l in t){let a=t[l];e[l]?s[l]=vh(a,n,i,r):s[l]=a}return s}function vh(t,e,n,i){let{options:r,calendarApi:s}=i,l=i.pluginHooks.eventSourceDefs[t.sourceDefId],a=Be();return l.fetch({eventSource:t,range:e,isRefetch:n,context:i},o=>{let{rawEvents:c}=o;r.eventSourceSuccess&&(c=r.eventSourceSuccess.call(s,c,o.response)||c),t.success&&(c=t.success.call(s,c,o.response)||c),i.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:c})},o=>{let c=!1;r.eventSourceFailure&&(r.eventSourceFailure.call(s,o),c=!0),t.failure&&(t.failure(o),c=!0),c||console.warn(o.message,o),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:o})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:a})}function yh(t,e,n,i){let r=t[e];return r&&n===r.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},r),{isFetching:!1,fetchRange:i})}):t}function cl(t,e){return Pe(t,n=>dl(n,e))}function bh(t,e){let n=xr(e),i=[].concat(t.eventSources||[]),r=[];t.initialEvents&&i.unshift(t.initialEvents),t.events&&i.unshift(t.events);for(let s of i){let l=Mr(s,e,n);l&&r.push(l)}return r}function dl(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function Dh(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function wh(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function _h(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 Eh(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 Ah(t,e,n,i,r){let s=t.headerToolbar?Cs(t.headerToolbar,t,e,n,i,r):null,l=t.footerToolbar?Cs(t.footerToolbar,t,e,n,i,r):null;return{header:s,footer:l}}function Cs(t,e,n,i,r,s){let l={},a=[],o=!1;for(let c in t){let d=t[c],u=Sh(d,e,n,i,r,s);l[c]=u.widgets,a.push(...u.viewsWithButtons),o=o||u.hasTitle}return{sectionWidgets:l,viewsWithButtons:a,hasTitle:o}}function Sh(t,e,n,i,r,s){let l=e.direction==="rtl",a=e.customButtons||{},o=n.buttonText||{},c=e.buttonText||{},d=n.buttonHints||{},u=e.buttonHints||{},h=t?t.split(" "):[],f=[],p=!1;return{widgets:h.map(v=>v.split(",").map(D=>{if(D==="title")return p=!0,{buttonName:D};let E,S,C,V,z,B;if(E=a[D])C=M=>{E.click&&E.click.call(M.target,M,M.target)},(V=i.getCustomButtonIconClass(E))||(V=i.getIconClass(D,l))||(z=E.text),B=E.hint||E.text;else if(S=r[D]){f.push(D),C=()=>{s.changeView(D)},(z=S.buttonTextOverride)||(V=i.getIconClass(D,l))||(z=S.buttonTextDefault);let M=S.buttonTextOverride||S.buttonTextDefault;B=ct(S.buttonTitleOverride||S.buttonTitleDefault||e.viewHint,[M,D],M)}else if(s[D])if(C=()=>{s[D]()},(z=o[D])||(V=i.getIconClass(D,l))||(z=c[D]),D==="prevYear"||D==="nextYear"){let M=D==="prevYear"?"prev":"next";B=ct(d[M]||u[M],[c.year||"year","year"],c[D])}else B=M=>ct(d[D]||u[D],[c[M]||M,M],c[D]);return{buttonName:D,buttonClick:C,buttonIcon:V,buttonText:z,buttonHint:B}})),viewsWithButtons:f,hasTitle:p}}class Ch{constructor(e,n,i){this.type=e,this.getCurrentData=n,this.dateEnv=i}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]}}let Th={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const Rh=ve({name:"array-event-source",eventSourceDefs:[Th]});let kh={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:i}=t.context,r=t.eventSource.meta;Hd(r.bind(null,Br(t.range,i)),s=>e({rawEvents:s}),n)}};const Mh=ve({name:"func-event-source",eventSourceDefs:[kh]}),xh={method:String,extraParams:m,startParam:String,endParam:String,timeZoneParam:String};let Ih={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:i}=t.eventSource,r=Nh(i,t.range,t.context);Pd(i.method,i.url,r).then(([s,l])=>{e({rawEvents:s,response:l})},n)}};const Oh=ve({name:"json-event-source",eventSourceRefiners:xh,eventSourceDefs:[Ih]});function Nh(t,e,n){let{dateEnv:i,options:r}=n,s,l,a,o,c={};return s=t.startParam,s==null&&(s=r.startParam),l=t.endParam,l==null&&(l=r.endParam),a=t.timeZoneParam,a==null&&(a=r.timeZoneParam),typeof t.extraParams=="function"?o=t.extraParams():o=t.extraParams||{},Object.assign(c,o),c[s]=i.formatIso(e.start),c[l]=i.formatIso(e.end),i.timeZone!=="local"&&(c[a]=i.timeZone),c}const Hh={daysOfWeek:m,startTime:N,endTime:N,duration:N,startRecur:m,endRecur:m};let Ph={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},i;return t.duration&&(i=t.duration),!i&&t.startTime&&t.endTime&&(i=Yo(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:i,typeData:n}}return null},expand(t,e,n){let i=Re(e,{start:t.startRecur,end:t.endRecur});return i?Bh(t.daysOfWeek,t.startTime,i,n):[]}};const Vh=ve({name:"simple-recurring-event",recurringTypes:[Ph],eventRefiners:Hh});function Bh(t,e,n,i){let r=t?br(t):null,s=L(n.start),l=n.end,a=[];for(;s<l;){let o;(!r||r[s.getUTCDay()])&&(e?o=i.add(s,e):o=s,a.push(o)),s=X(s,1)}return a}const Lh=ve({name:"change-handler",optionChangeHandlers:{events(t,e){Ts([t],e)},eventSources:Ts}});function Ts(t,e){let n=oi(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 i=[];for(let r of t){let s=!1;for(let l=0;l<n.length;l+=1)if(n[l]._raw===r){n.splice(l,1),s=!0;break}s||i.push(r)}for(let r of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:r.sourceId});for(let r of i)e.calendarApi.addEventSource(r)}function Wh(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},Br(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function jh(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",He(t,e))}const Fh=[Rh,Mh,Oh,Vh,Lh,ve({name:"misc",isLoadingFuncs:[t=>ll(t.eventSources)],propSetHandlers:{dateProfile:Wh,eventStore:jh}})];class Uh{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new ti(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=[],i;for(;i=e.shift();)this.runTask(i),n.push(i);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function zh(t,e,n){let i;return/^(year|month)$/.test(t.currentRangeUnit)?i=t.currentRange:i=t.activeRange,n.formatRange(i.start,i.end,Q(e.titleFormat||$h(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function $h(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=Yt(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Yh{constructor(e){this.computeCurrentViewData=x(this._computeCurrentViewData),this.organizeRawLocales=x(Zu),this.buildLocale=x(sl),this.buildPluginHooks=eh(),this.buildDateEnv=x(Gh),this.buildTheme=x(qh),this.parseToolbars=x(Ah),this.buildViewSpecs=x(lh),this.buildDateProfileGenerator=Bt(Qh),this.buildViewApi=x(Zh),this.buildViewUiProps=Bt(Kh),this.buildEventUiBySource=x(Xh,fe),this.buildEventUiBases=x(Jh),this.parseContextBusinessHours=Bt(ef),this.buildTitle=x(zh),this.emitter=new dn,this.actionRunner=new Uh(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=h=>{this.actionRunner.request(h)},this.props=e,this.actionRunner.pause();let n={},i=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),r=i.calendarOptions.initialView||i.pluginHooks.initialView,s=this.computeCurrentViewData(r,i,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let l=qc(i.calendarOptions,i.dateEnv),a=s.dateProfileGenerator.build(l);Se(a.activeRange,l)||(l=a.currentRange.start);let o={dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let h of i.pluginHooks.contextInit)h(o);let c=hh(i.calendarOptions,a,o),d={dynamicOptionOverrides:n,currentViewType:r,currentDate:l,dateProfile:a,businessHours:this.parseContextBusinessHours(o),eventSources:c,eventUiBases:{},eventStore:de(),renderableEventStore:de(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig},u=Object.assign(Object.assign({},o),d);for(let h of i.pluginHooks.reducers)Object.assign(d,h(null,null,u));On(d,o)&&this.emitter.trigger("loading",!0),this.state=d,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:i}=this;n===void 0?i.optionOverrides=e:(i.optionOverrides=Object.assign(Object.assign({},i.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:i,emitter:r}=this,s=dh(i.dynamicOptionOverrides,e),l=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),a=ch(i.currentViewType,e),o=this.computeCurrentViewData(a,l,n.optionOverrides,s);n.calendarApi.currentDataManager=this,r.setThisContext(n.calendarApi),r.setOptions(o.options);let c={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:d,dateProfile:u}=i;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(u=o.dateProfileGenerator.build(d)),d=Gc(d,e),u=uh(u,e,d,o.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!Se(u.currentRange,d))&&(d=u.currentRange.start);let h=fh(i.eventSources,e,u,c),f=od(i.eventStore,e,h,u,c),y=ll(h)&&!o.options.progressiveEventRendering&&i.renderableEventStore||f,{eventUiSingleBase:v,selectionConfig:D}=this.buildViewUiProps(c),E=this.buildEventUiBySource(h),S=this.buildEventUiBases(y.defs,v,E),C={dynamicOptionOverrides:s,currentViewType:a,currentDate:d,dateProfile:u,eventSources:h,eventStore:f,renderableEventStore:y,selectionConfig:D,eventUiBases:S,businessHours:this.parseContextBusinessHours(c),dateSelection:Dh(i.dateSelection,e),eventSelection:wh(i.eventSelection,e),eventDrag:_h(i.eventDrag,e),eventResize:Eh(i.eventResize,e)},V=Object.assign(Object.assign({},c),C);for(let M of l.pluginHooks.reducers)Object.assign(C,M(i,e,V));let z=On(i,c),B=On(C,c);!z&&B?r.trigger("loading",!0):z&&!B&&r.trigger("loading",!1),this.state=C,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,i=this.data,r=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(n.currentViewType,r,e.optionOverrides,n.dynamicOptionOverrides),l=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,s.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),s),n),a=r.pluginHooks.optionChangeHandlers,o=i&&i.calendarOptions,c=r.calendarOptions;if(o&&o!==c){o.timeZone!==c.timeZone&&(n.eventSources=l.eventSources=gh(l.eventSources,n.dateProfile,l),n.eventStore=l.eventStore=gs(l.eventStore,i.dateEnv,l.dateEnv),n.renderableEventStore=l.renderableEventStore=gs(l.renderableEventStore,i.dateEnv,l.dateEnv));for(let d in a)(this.optionsForHandling.indexOf(d)!==-1||o[d]!==c[d])&&a[d](c[d],l)}this.optionsForHandling=[],e.onData&&e.onData(l)}computeOptionsData(e,n,i){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:s,localeDefaults:l,availableLocaleData:a,extra:o}=this.processRawCalendarOptions(e,n);Rs(o);let c=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,s,a,r.defaultRangeSeparator),d=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l),u=this.buildTheme(r,s),h=this.parseToolbars(r,this.stableOptionOverrides,u,d,i);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:s,dateEnv:c,viewSpecs:d,theme:u,toolbarConfig:h,localeDefaults:l,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:i,locale:r}=Sn([dt,e,n]),s=this.organizeRawLocales(i),l=s.map,a=this.buildLocale(r||s.defaultCode,l).options,o=this.buildPluginHooks(e.plugins||[],Fh),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},as),os),cs),o.listenerRefiners),o.optionRefiners),d={},u=Sn([dt,a,e,n]),h={},f=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,y=!1;for(let v in u)this.optionsForRefining.indexOf(v)===-1&&(u[v]===f[v]||xe[v]&&v in f&&xe[v](f[v],u[v]))?h[v]=p[v]:c[v]?(h[v]=c[v](u[v]),y=!0):d[v]=f[v];return y&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:s,localeDefaults:a,extra:d}}_computeCurrentViewData(e,n,i,r){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:a}=this.processRawViewOptions(s,n.pluginHooks,n.localeDefaults,i,r);Rs(a);let o=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}),c=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:l,dateProfileGenerator:o,viewApi:c}}processRawViewOptions(e,n,i,r,s){let l=Sn([dt,e.optionDefaults,i,r,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},as),os),cs),Ec),n.listenerRefiners),n.optionRefiners),o={},c=this.currentViewOptionsInput,d=this.currentViewOptionsRefined,u=!1,h={};for(let f in l)l[f]===c[f]||xe[f]&&xe[f](l[f],c[f])?o[f]=d[f]:(l[f]===this.currentCalendarOptionsInput[f]||xe[f]&&xe[f](l[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(o[f]=this.currentCalendarOptionsRefined[f]):a[f]?o[f]=a[f](l[f]):h[f]=l[f],u=!0);return u&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function Gh(t,e,n,i,r,s,l,a){let o=sl(e||l.defaultCode,l.map);return new Oc({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:o,weekNumberCalculation:n,firstDay:i,weekText:r,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function qh(t,e){let n=e.themeClasses[t.themeSystem]||Me;return new n(t)}function Qh(t){let e=t.dateProfileGeneratorClass||Cr;return new e(t)}function Zh(t,e,n){return new Ch(t,e,n)}function Xh(t){return We(t,e=>e.ui)}function Jh(t,e,n){let i={"":e};for(let r in t){let s=t[r];s.sourceId&&n[s.sourceId]&&(i[r]=n[s.sourceId])}return i}function Kh(t){let{options:e}=t;return{eventUiSingleBase:Jt({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:Jt({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function On(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function ef(t){return vd(t.options.businessHours,t)}function Rs(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}class tf extends W{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return g("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:i}=this.context,r=[],s=!0;for(let l of e){let{buttonName:a,buttonClick:o,buttonText:c,buttonIcon:d,buttonHint:u}=l;if(a==="title")s=!1,r.push(g("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=a===n.activeButton,f=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",p=[`fc-${a}-button`,i.getClass("button")];h&&p.push(i.getClass("buttonActive")),r.push(g("button",{type:"button",title:typeof u=="function"?u(n.navUnit):u,disabled:f,"aria-pressed":h,className:p.join(" "),onClick:o},c||(d?g("span",{className:d}):"")))}}if(r.length>1){let l=s&&i.getClass("buttonGroup")||"";return g("div",{className:l},...r)}return r[0]}}class ks extends W{render(){let{model:e,extraClassName:n}=this.props,i=!1,r,s,l=e.sectionWidgets,a=l.center;return l.left?(i=!0,r=l.left):r=l.start,l.right?(i=!0,s=l.right):s=l.end,g("div",{className:[n||"","fc-toolbar",i?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",r||[]),this.renderSection("center",a||[]),this.renderSection("end",s||[]))}renderSection(e,n){let{props:i}=this;return g(tf,{key:e,widgetGroups:n,title:i.title,navUnit:i.navUnit,activeButton:i.activeButton,isTodayEnabled:i.isTodayEnabled,isPrevEnabled:i.isPrevEnabled,isNextEnabled:i.isNextEnabled,titleId:i.titleId})}}class nf extends W{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,De(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:i}=e,r=["fc-view-harness",i||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",l="";return i?n.availableWidth!==null?s=n.availableWidth/i:l=`${1/i*100}%`:s=e.height||"",g("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.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 sf extends tt{constructor(e){super(e),this.handleSegClick=(n,i)=>{let{component:r}=this,{context:s}=r,l=Je(i);if(l&&r.isValidSegDownEl(n.target)){let a=ne(n.target,".fc-event-forced-url"),o=a?a.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:i,event:new U(r.context,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi}),o&&!n.defaultPrevented&&(window.location.href=o)}},this.destroy=pr(e.el,"click",".fc-event",this.handleSegClick)}}class rf extends tt{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,i)=>{Je(i)&&(this.currentSegEl=i,this.triggerEvent("eventMouseEnter",n,i))},this.handleSegLeave=(n,i)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,i))},this.removeHoverListeners=xo(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,i){let{component:r}=this,{context:s}=r,l=Je(i);(!n||r.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:i,event:new U(s,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi})}}class lf extends Fe{constructor(){super(...arguments),this.buildViewContext=x(Pc),this.buildViewPropTransformers=x(of),this.buildToolbarProps=x(af),this.headerRef=he(),this.footerRef=he(),this.interactionsStore={},this.state={viewLabelId:be()},this.registerInteractiveComponent=(e,n)=>{let i=Ld(e,n),l=[sf,rf].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(i));this.interactionsStore[e.uid]=l,Qn[e.uid]=i},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let i of n)i.destroy();delete this.interactionsStore[e.uid]}delete Qn[e.uid]},this.resizeRunner=new ti(()=>{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:i}=e,r=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,At(e.options.now,e.dateEnv),e.viewTitle),s=!1,l="",a;e.isHeightAuto||e.forPrint?l="":i.height!=null?s=!0:i.contentHeight!=null?l=i.contentHeight:a=Math.max(i.aspectRatio,.5);let o=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),c=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return g(je.Provider,{value:o},n.header&&g(ks,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},r)),g(nf,{liquid:s,height:l,aspectRatio:a,labeledById:c},this.renderView(e),this.buildAppendContent()),n.footer&&g(ks,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},r)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(i=>new i(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let i in n)n[i](e[i],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:i}=n.pluginHooks;for(let r in i)n[r]!==e[r]&&i[r](n[r],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(i=>i(e));return g(q,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:i}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},s=this.buildViewPropTransformers(n.viewPropsTransformers);for(let a of s)Object.assign(r,a.transform(r,e));let l=i.component;return g(l,Object.assign({},r))}}function af(t,e,n,i,r,s){let l=n.build(r,void 0,!1),a=n.buildPrev(e,i,!1),o=n.buildNext(e,i,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:l.isValid&&!Se(e.currentRange,r),isPrevEnabled:a.isValid,isNextEnabled:o.isValid}}function of(t){return t.map(e=>new e)}class cf extends Wd{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=i=>{switch(i.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=i=>{this.currentData=i,this.renderRunner.request(i.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:i}=this;ds(()=>{pt(g(Bd,{options:i.calendarOptions,theme:i.theme,emitter:i.emitter},(r,s,l,a)=>(this.setClassNames(r),this.setHeight(s),g(Er.Provider,{value:this.customContentRenderId},g(lf,Object.assign({isHeightAuto:l,forPrint:a},i))))),this.el)})}else this.isRendered&&(this.isRendered=!1,pt(null,this.el),this.setClassNames([]),this.setHeight(""))},_o(e),this.el=e,this.renderRunner=new ti(this.handleRenderRequest),new Yh({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(){ds(()=>{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(!Ce(e,this.currentClassNames)){let{classList:n}=this.el;for(let i of this.currentClassNames)n.remove(i);for(let i of e)n.add(i);this.currentClassNames=e}}setHeight(e){fr(this.el,"height",e)}}const df={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},uf=Ls({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:pf(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(Ht(ff,{key:e.id,customRendering:e}));return Ht("div",{attrs:{"data-fc-render-id":this.renderId}},Ht(F,t))},mounted(){const t=new qu;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new cf(this.$el,e);this.calendar=n,n.render(),t.subscribe(i=>{this.customRenderingMap=i,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:gf()}),hf=uf,ff=Ls({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return Ht(sa,{to:t.containerEl},e)}});function gf(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let i=this.buildOptions(e);n.resetOptions(i),this.renderId++}}};for(let e in df)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let i=this.getApi();i.pauseRendering(),i.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function pf(t){const e={};for(const n in t)e[mf(n)]=t[n];return e}function mf(t){return t.split("-").map((e,n)=>n?vf(e):e).join("")}function vf(t){return t.charAt(0).toUpperCase()+t.slice(1)}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}';ln(yf);function Ot(t,e){let n=[];for(let i=0;i<e;i+=1)n[i]=[];for(let i of t)n[i.row].push(i);return n}function Nt(t,e){let n=[];for(let i=0;i<e;i+=1)n[i]=[];for(let i of t)n[i.firstCol].push(i);return n}function Ms(t,e){let n=[];if(t){for(let i=0;i<e;i+=1)n[i]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let i of t.segs)n[i.row].segs.push(i)}else for(let i=0;i<e;i+=1)n[i]=null;return n}const ul=Q({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function hl(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 fl extends W{render(){let{props:e}=this;return g(Mu,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:ul,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class gl extends W{render(){let{props:e,context:n}=this,{options:i}=n,{seg:r}=e,s=i.eventTimeFormat||ul,l=ut(r,s,n,!0,e.defaultDisplayEventEnd);return g(fn,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:yi(e.seg,n),defaultGenerator:bf,timeText:l,isResizing:!1,isDateSelecting:!1}))}}function bf(t){return g(q,null,g("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&g("div",{className:"fc-event-time"},t.timeText),g("div",{className:"fc-event-title"},t.event.title||g(q,null," ")))}class Df extends W{constructor(){super(...arguments),this.compileSegs=x(wf)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:i}=this.compileSegs(e.singlePlacements);return g(ju,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:i,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let r=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return g(q,null,n.map(s=>{let l=s.eventRange.instance.instanceId;return g("div",{className:"fc-daygrid-event-harness",key:l,style:{visibility:r[l]?"hidden":""}},hl(s)?g(gl,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},Qe(s,e.todayRange))):g(fl,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},Qe(s,e.todayRange))))}))}})}}function wf(t){let e=[],n=[];for(let i of t)e.push(i.seg),i.isVisible||n.push(i.seg);return{allSegs:e,invisibleSegs:n}}const _f=Q({week:"narrow"});class Ef extends me{constructor(){super(...arguments),this.rootElRef=he(),this.state={dayNumberId:be()},this.handleRootEl=e=>{De(this.rootElRef,e),De(this.props.elRef,e)}}render(){let{context:e,props:n,state:i,rootElRef:r}=this,{options:s,dateEnv:l}=e,{date:a,dateProfile:o}=n;const c=n.showDayNumber&&Sf(a,o.currentRange,l);return g(el,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":i.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Af,date:a,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:c,extraRenderProps:n.extraRenderProps},(d,u)=>g("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&g(Vu,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:yt(e,a,"week"),date:a,defaultFormat:_f}),!u.isDisabled&&(n.showDayNumber||tl(s)||n.forceDayTop)?g("div",{className:"fc-daygrid-day-top"},g(d,{elTag:"a",elClasses:["fc-daygrid-day-number",c&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},yt(e,a)),{id:i.dayNumberId})})):n.showDayNumber?g("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},g("a",{className:"fc-daygrid-day-number"}," ")):void 0,g("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,g("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},g(Df,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:r,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),g("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function Af(t){return t.dayNumberText||g(q,null," ")}function Sf(t,e,n){const{start:i,end:r}=e,s=Te(r,-1),l=n.getYear(i),a=n.getMonth(i),o=n.getYear(s),c=n.getMonth(s);return!(l===o&&a===c)&&(t.valueOf()===i.valueOf()||n.getDay(t)===1&&t.valueOf()<r.valueOf())}function pl(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function ml(t){return pl(t)+":"+t.lastCol}function Cf(t,e,n,i,r,s,l){let a=new kf(D=>{let E=t[D.index].eventRange.instance.instanceId+":"+D.span.start+":"+(D.span.end-1);return r[E]});a.allowReslicing=!0,a.strictOrder=i,e===!0||n===!0?(a.maxCoord=s,a.hiddenConsumes=!0):typeof e=="number"?a.maxStackCnt=e:typeof n=="number"&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let o=[],c=[];for(let D=0;D<t.length;D+=1){let E=t[D],S=ml(E);r[S]!=null?o.push({index:D,span:{start:E.firstCol,end:E.lastCol+1}}):c.push(E)}let d=a.addSegs(o),u=a.toRects(),{singleColPlacements:h,multiColPlacements:f,leftoverMargins:p}=Tf(u,t,l),y=[],v=[];for(let D of c){f[D.firstCol].push({seg:D,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let E=D.firstCol;E<=D.lastCol;E+=1)h[E].push({seg:Ze(D,E,E+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let D=0;D<l.length;D+=1)y.push(0);for(let D of d){let E=t[D.index],S=D.span;f[S.start].push({seg:Ze(E,S.start,S.end,l),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let C=S.start;C<S.end;C+=1)y[C]+=1,h[C].push({seg:Ze(E,C,C+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let D=0;D<l.length;D+=1)v.push(p[D]);return{singleColPlacements:h,multiColPlacements:f,moreCnts:y,moreMarginTops:v}}function Tf(t,e,n){let i=Rf(t,n.length),r=[],s=[],l=[];for(let a=0;a<n.length;a+=1){let o=i[a],c=[],d=0,u=0;for(let f of o){let p=e[f.index];c.push({seg:Ze(p,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:f.levelCoord-d}),d=f.levelCoord+f.thickness}let h=[];d=0,u=0;for(let f of o){let p=e[f.index],y=f.span.end-f.span.start>1,v=f.span.start===a;u+=f.levelCoord-d,d=f.levelCoord+f.thickness,y?(u+=f.thickness,v&&h.push({seg:Ze(p,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:f.levelCoord,marginTop:0})):v&&(h.push({seg:Ze(p,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:u}),u=0)}r.push(c),s.push(h),l.push(u)}return{singleColPlacements:r,multiColPlacements:s,leftoverMargins:l}}function Rf(t,e){let n=[];for(let i=0;i<e;i+=1)n.push([]);for(let i of t)for(let r=i.span.start;r<i.span.end;r+=1)n[r].push(i);return n}function Ze(t,e,n,i){if(t.firstCol===e&&t.lastCol===n-1)return t;let r=t.eventRange,s=r.range,l=Re(s,{start:i[e].date,end:X(i[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:r.def,ui:Object.assign(Object.assign({},r.ui),{durationEditable:!1}),instance:r.instance,range:l},isStart:t.isStart&&l.start.valueOf()===s.start.valueOf(),isEnd:t.isEnd&&l.end.valueOf()===s.end.valueOf()})}class kf extends nu{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:i}=this,r=s=>!this.forceHidden[ht(s)];for(let s=0;s<i.length;s+=1)i[s]=i[s].filter(r);return n}handleInvalidInsertion(e,n,i){const{entriesByLevel:r,forceHidden:s}=this,{touchingEntry:l,touchingLevel:a,touchingLateral:o}=e;if(this.hiddenConsumes&&l){const c=ht(l);if(!s[c])if(this.allowReslicing){const d=Object.assign(Object.assign({},l),{span:zr(l.span,n.span)}),u=ht(d);s[u]=!0,r[a][o]=d,this.splitEntry(l,n,i)}else s[c]=!0,i.push(l)}return super.handleInvalidInsertion(e,n,i)}}class vl extends me{constructor(){super(...arguments),this.cellElRefs=new Ne,this.frameElRefs=new Ne,this.fgElRefs=new Ne,this.segHarnessRefs=new Ne,this.rootElRef=he(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:i}=this,{options:r}=i,s=e.cells.length,l=Nt(e.businessHourSegs,s),a=Nt(e.bgEventSegs,s),o=Nt(this.getHighlightSegs(),s),c=Nt(this.getMirrorSegs(),s),{singleColPlacements:d,multiColPlacements:u,moreCnts:h,moreMarginTops:f}=Cf(Vr(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),p=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return g("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((y,v)=>{let D=this.renderFgSegs(v,e.forPrint?d[v]:u[v],e.todayRange,p),E=this.renderFgSegs(v,Mf(c[v],u),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return g(Ef,{key:y.key,elRef:this.cellElRefs.createRef(y.key),innerElRef:this.frameElRefs.createRef(y.key),dateProfile:e.dateProfile,date:y.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:y.extraRenderProps,extraDataAttrs:y.extraDataAttrs,extraClassNames:y.extraClassNames,extraDateSpan:y.extraDateSpan,moreCnt:h[v],moreMarginTop:f[v],singlePlacements:d[v],fgContentElRef:this.fgElRefs.createRef(y.key),fgContent:g(q,null,g(q,null,D),g(q,null,E)),bgContent:g(q,null,this.renderFillSegs(o[v],"highlight"),this.renderFillSegs(l[v],"non-business"),this.renderFillSegs(a[v],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let i=this.props;this.updateSizing(!fe(e,i))}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,i,r,s,l,a){let{context:o}=this,{eventSelection:c}=this.props,{framePositions:d}=this.state,u=this.props.cells.length===1,h=s||l||a,f=[];if(d)for(let p of n){let{seg:y}=p,{instanceId:v}=y.eventRange.instance,D=p.isVisible&&!r[v],E=p.isAbsolute,S="",C="";E&&(o.isRtl?(C=0,S=d.lefts[y.lastCol]-d.lefts[y.firstCol]):(S=0,C=d.rights[y.firstCol]-d.rights[y.lastCol])),f.push(g("div",{className:"fc-daygrid-event-harness"+(E?" fc-daygrid-event-harness-abs":""),key:pl(y),ref:h?null:this.segHarnessRefs.createRef(ml(y)),style:{visibility:D?"":"hidden",marginTop:E?"":p.marginTop,top:E?p.absoluteTop:"",left:S,right:C}},hl(y)?g(gl,Object.assign({seg:y,isDragging:s,isSelected:v===c,defaultDisplayEventEnd:u},Qe(y,i))):g(fl,Object.assign({seg:y,isDragging:s,isResizing:l,isDateSelecting:a,isSelected:v===c,defaultDisplayEventEnd:u},Qe(y,i)))))}return f}renderFillSegs(e,n){let{isRtl:i}=this.context,{todayRange:r}=this.props,{framePositions:s}=this.state,l=[];if(s)for(let a of e){let o=i?{right:0,left:s.lefts[a.lastCol]-s.lefts[a.firstCol]}:{left:0,right:s.rights[a.firstCol]-s.rights[a.lastCol]};l.push(g("div",{key:Td(a.eventRange),className:"fc-daygrid-bg-harness",style:o},n==="bg-event"?g(Nu,Object.assign({seg:a},Qe(a,r))):Pu(n)))}return g(q,{},...l)}updateSizing(e){let{props:n,state:i,frameElRefs:r}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let o=n.cells.map(c=>r.currentMap[c.key]);if(o.length){let c=this.rootElRef.current,d=new en(c,o,!0,!1);(!i.framePositions||!i.framePositions.similarTo(d))&&this.setState({framePositions:new en(c,o,!0,!1)})}}const s=this.state.segHeights,l=this.querySegHeights(),a=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},s),l),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let i in e){let r=Math.round(e[i].getBoundingClientRect().height);n[i]=Math.max(n[i]||0,r)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],i=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-i.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}vl.addStateEquality({segHeights:fe});function Mf(t,e){if(!t.length)return[];let n=xf(e);return t.map(i=>({seg:i,isVisible:!0,isAbsolute:!0,absoluteTop:n[i.eventRange.instance.instanceId],marginTop:0}))}function xf(t){let e={};for(let n of t)for(let i of n)e[i.seg.eventRange.instance.instanceId]=i.absoluteTop;return e}class yl extends me{constructor(){super(...arguments),this.splitBusinessHourSegs=x(Ot),this.splitBgEventSegs=x(Ot),this.splitFgEventSegs=x(Ot),this.splitDateSelectionSegs=x(Ot),this.splitEventDrag=x(Ms),this.splitEventResize=x(Ms),this.rowRefs=new Ne}render(){let{props:e,context:n}=this,i=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,i),s=this.splitBgEventSegs(e.bgEventSegs,i),l=this.splitFgEventSegs(e.fgEventSegs,i),a=this.splitDateSelectionSegs(e.dateSelectionSegs,i),o=this.splitEventDrag(e.eventDrag,i),c=this.splitEventResize(e.eventResize,i),d=i>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return g(hn,{unit:"day"},(u,h)=>g(q,null,e.cells.map((f,p)=>g(vl,{ref:this.rowRefs.createRef(p),key:f.length?f[0].date.toISOString():p,showDayNumbers:i>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:f,renderIntro:e.renderRowIntro,businessHourSegs:r[p],eventSelection:e.eventSelection,bgEventSegs:s[p].filter(If),fgEventSegs:l[p],dateSelectionSegs:a[p],eventDrag:o[p],eventResize:c[p],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 en(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new en(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:i,rowPositions:r}=this,s=i.leftToIndex(e),l=r.topToIndex(n);if(l!=null&&s!=null){let a=this.props.cells[l][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(l,s),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(l,s),rect:{left:i.lefts[s],right:i.rights[s],top:r.tops[l],bottom:r.bottoms[l]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let i=this.props.cells[e][n].date,r=X(i,1);return{start:i,end:r}}}function If(t){return t.eventRange.def.allDay}class Of extends me{constructor(){super(...arguments),this.elRef=he(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:i,expandRows:r}=e,s=i===!0||n===!0;s&&!r&&(s=!1,n=null,i=null);let l=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return g("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},g("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,g("tbody",{role:"presentation"},g(yl,{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:i,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=Nf(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),i=n.closest(".fc-scroller"),r=e.getBoundingClientRect().top-n.getBoundingClientRect().top;i.scrollTop=r?r+1:0}this.needsScrollReset=!1}}}function Nf(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${Un(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${_t(e.currentDate)}"]`)),n}class bl extends uu{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class Hf extends me{constructor(){super(...arguments),this.slicer=new bl,this.tableRef=he()}render(){let{props:e,context:n}=this;return g(Of,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 Dl extends Cr{buildRenderRange(e,n,i){let r=super.buildRenderRange(e,n,i),{props:s}=this;return wl({currentRange:r,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function wl(t){let{dateEnv:e,currentRange:n}=t,{start:i,end:r}=n,s;if(t.snapToWeek&&(i=e.startOfWeek(i),s=e.startOfWeek(r),s.valueOf()!==r.valueOf()&&(r=ts(s,1))),t.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(X(n.end,-1))),a=Math.ceil(Zo(l,r));r=ts(r,6-a)}return{start:i,end:r}}class Pf extends me{constructor(){super(...arguments),this.headerElRef=he()}renderSimpleLayout(e,n){let{props:i,context:r}=this,s=[],l=ws(r.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}}),g(Zt,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},g(Kr,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,n,i,r){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:l,context:a}=this,o=!l.forPrint&&ws(a.options),c=!l.forPrint&&Ru(a.options),d=[];return e&&d.push({type:"header",key:"header",isSticky:o,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}]}),c&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Tu}]}),g(Zt,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},g(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:i,minWidth:r}]}],sections:d}))}}class Vf extends Pf{constructor(){super(...arguments),this.buildDayTableModel=x(_l),this.headerRef=he(),this.tableRef=he()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:i}=this,r=this.buildDayTableModel(i.dateProfile,n),s=e.dayHeaders&&g(Gr,{ref:this.headerRef,dateProfile:i.dateProfile,dates:r.headerDates,datesRepDistinctDays:r.rowCnt===1}),l=a=>g(Hf,{ref:this.tableRef,dateProfile:i.dateProfile,dayTableModel:r,businessHours:i.businessHours,dateSelection:i.dateSelection,eventStore:i.eventStore,eventUiBases:i.eventUiBases,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!i.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:i.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,l,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,l)}}function _l(t,e){let n=new cu(t.renderRange,e);return new du(n,/year|month|week/.test(t.currentRangeUnit))}var Bf=ve({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Vf,dateProfileGeneratorClass:Dl},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}}}});Ei.touchMouseIgnoreWait=500;let Xn=0,tn=0,Jn=!1;class El{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()&&Lf(n)&&this.tryStart(n)){let i=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",i),this.initScrollWatch(i),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let i=this.createEventFromMouse(n);this.recordCoords(i),this.emitter.trigger("pointermove",i)},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 i=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",i),this.initScrollWatch(i);let r=n.target;this.shouldIgnoreMove||r.addEventListener("touchmove",this.handleTouchMove),r.addEventListener("touchend",this.handleTouchEnd),r.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let i=this.createEventFromTouch(n);this.recordCoords(i),this.emitter.trigger("pointermove",i)},this.handleTouchEnd=n=>{if(this.isDragging){let i=n.target;i.removeEventListener("touchmove",this.handleTouchMove),i.removeEventListener("touchend",this.handleTouchEnd),i.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,Wf()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let i=window.pageXOffset-this.prevScrollX+this.prevPageX,r=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:i,pageY:r,deltaX:i-this.origPageX,deltaY:r-this.origPageY})}},this.containerEl=e,this.emitter=new dn,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),jf()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Ff()}tryStart(e){let n=this.querySubjectEl(e),i=e.target;return n&&(!this.handleSelector||ne(i,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){Jn=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?ne(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Xn||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Jn=!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 i=0,r=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(i=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:i,deltaY:r}}createEventFromTouch(e,n){let i=e.touches,r,s,l=0,a=0;return i&&i.length?(r=i[0].pageX,s=i[0].pageY):(r=e.pageX,s=e.pageY),n?(this.origPageX=r,this.origPageY=s):(l=r-this.origPageX,a=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:r,pageY:s,deltaX:l,deltaY:a}}}function Lf(t){return t.button===0&&!t.ctrlKey}function Wf(){Xn+=1,setTimeout(()=>{Xn-=1},Ei.touchMouseIgnoreWait)}function jf(){tn+=1,tn===1&&window.addEventListener("touchmove",Al,{passive:!1})}function Ff(){tn-=1,tn||window.removeEventListener("touchmove",Al,{passive:!1})}function Al(t){Jn&&t.preventDefault()}class Uf{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,i){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.pageXOffset,this.origScreenY=i-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 i=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(i,this.revertDuration):setTimeout(i,0)}doRevertAnimation(e,n){let i=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();i.style.transition="top "+n+"ms,left "+n+"ms",ot(i,{left:r.left,top:r.top}),Io(i,()=>{i.style.transition="",e()})}cleanup(){this.mirrorEl&&(ni(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&ot(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.classList.add("fc-event-dragging"),ot(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 Sl extends _i{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 Cl extends Sl{constructor(e,n){super(new eu(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Jd(this.scrollController.el)}}class zf extends Sl{constructor(e){super(new tu,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 xs=typeof performance=="function"?performance.now:Date.now;class $f{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=xs();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,i){this.isEnabled&&(this.scrollCaches=this.buildCaches(i),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 i=e-window.pageXOffset,r=n-window.pageYOffset,s=this.pointerScreenY===null?0:r-this.pointerScreenY,l=this.pointerScreenX===null?0:i-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),l<0?this.everMovedLeft=!0:l>0&&(this.everMovedRight=!0),this.pointerScreenX=i,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(xs()))}}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:i}=e,{edgeThreshold:r}=this,s=r-e.distance,l=s*s/(r*r)*this.maxVelocity*n,a=1;switch(e.name){case"left":a=-1;case"right":i.setScrollLeft(i.getScrollLeft()+l*a);break;case"top":a=-1;case"bottom":i.setScrollTop(i.getScrollTop()+l*a);break}}computeBestEdge(e,n){let{edgeThreshold:i}=this,r=null,s=this.scrollCaches||[];for(let l of s){let a=l.clientRect,o=e-a.left,c=a.right-e,d=n-a.top,u=a.bottom-n;o>=0&&c>=0&&d>=0&&u>=0&&(d<=i&&this.everMovedUp&&l.canScrollUp()&&(!r||r.distance>d)&&(r={scrollCache:l,name:"top",distance:d}),u<=i&&this.everMovedDown&&l.canScrollDown()&&(!r||r.distance>u)&&(r={scrollCache:l,name:"bottom",distance:u}),o<=i&&this.everMovedLeft&&l.canScrollLeft()&&(!r||r.distance>o)&&(r={scrollCache:l,name:"left",distance:o}),c<=i&&this.everMovedRight&&l.canScrollRight()&&(!r||r.distance>c)&&(r={scrollCache:l,name:"right",distance:c}))}return r}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new zf(!1):new Cl(n,!1))}queryScrollEls(e){let n=[];for(let i of this.scrollQuery)typeof i=="object"?n.push(i):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(i)));return n}}class St extends iu{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=r=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Oo(document.body),Ho(document.body),r.isTouch||r.origEvent.preventDefault(),this.emitter.trigger("pointerdown",r),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(r.subjectEl,r.pageX,r.pageY),this.startDelay(r),this.minDistance||this.handleDistanceSurpassed(r)))},this.onPointerMove=r=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",r),!this.isDistanceSurpassed){let s=this.minDistance,l,{deltaX:a,deltaY:o}=r;l=a*a+o*o,l>=s*s&&this.handleDistanceSurpassed(r)}this.isDragging&&(r.origEvent.type!=="scroll"&&(this.mirror.handleMove(r.pageX,r.pageY),this.autoScroller.handleMove(r.pageX,r.pageY)),this.emitter.trigger("dragmove",r))}},this.onPointerUp=r=>{this.isInteracting&&(this.isInteracting=!1,No(document.body),Po(document.body),this.emitter.trigger("pointerup",r),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(r)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let i=this.pointer=new El(e);i.emitter.on("pointerdown",this.onPointerDown),i.emitter.on("pointermove",this.onPointerMove),i.emitter.on("pointerup",this.onPointerUp),n&&(i.selector=n),this.mirror=new Uf,this.autoScroller=new $f}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 Yf{constructor(e){this.origRect=wi(e),this.scrollCaches=Ur(e).map(n=>new Cl(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 i={left:e,top:n};for(let r of this.scrollCaches)if(!Gf(r.getEventTarget())&&!jd(i,r.clientRect))return!1;return!0}}function Gf(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class gn{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=i=>{let{dragging:r}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(i),this.initialHit||!this.requireInitial?(r.setIgnoreMove(!1),this.emitter.trigger("pointerdown",i)):r.setIgnoreMove(!0)},this.handleDragStart=i=>{this.emitter.trigger("dragstart",i),this.handleMove(i,!0)},this.handleDragMove=i=>{this.emitter.trigger("dragmove",i),this.handleMove(i)},this.handlePointerUp=i=>{this.releaseHits(),this.emitter.trigger("pointerup",i)},this.handleDragEnd=i=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,i),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",i)},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 dn}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},i=n,r=e.subjectEl,s;r instanceof HTMLElement&&(s=wi(r),i=Fd(i,s));let l=this.initialHit=this.queryHitForOffset(i.left,i.top);if(l){if(this.useSubjectCenter&&s){let a=jr(s,l.rect);a&&(i=Ud(a))}this.coordAdjust=zd(i,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let i=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!pn(this.movingHit,i))&&(this.movingHit=i,this.emitter.trigger("hitupdate",i,!1,e))}prepareHits(){this.offsetTrackers=We(this.droppableStore,e=>(e.component.prepareHits(),new Yf(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:i,offsetTrackers:r}=this,s=null;for(let l in i){let a=i[l].component,o=r[l];if(o&&o.isWithinClipping(e,n)){let c=o.computeLeft(),d=o.computeTop(),u=e-c,h=n-d,{origRect:f}=o,p=f.right-f.left,y=f.bottom-f.top;if(u>=0&&u<p&&h>=0&&h<y){let v=a.queryHit(u,h,p,y);v&&on(v.dateProfile.activeRange,v.dateSpan.range)&&(!s||v.layer>s.layer)&&(v.componentId=l,v.context=a.context,v.rect.left+=c,v.rect.right+=c,v.rect.top+=d,v.rect.bottom+=d,s=v)}}}return s}}function pn(t,e){return!t&&!e?!0:!!t!=!!e?!1:xd(t.dateSpan,e.dateSpan)}function Tl(t,e){let n={};for(let i of e.pluginHooks.datePointTransforms)Object.assign(n,i(t,e));return Object.assign(n,qf(t,e.dateEnv)),n}function qf(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class Qf extends tt{constructor(e){super(e),this.handlePointerDown=i=>{let{dragging:r}=this,s=i.origEvent.target;r.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=i=>{let{component:r}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:l,finalHit:a}=this.hitDragging;if(l&&a&&pn(l,a)){let{context:o}=r,c=Object.assign(Object.assign({},Tl(l.dateSpan,o)),{dayEl:l.dayEl,jsEvent:i.origEvent,view:o.viewApi||o.calendarApi.view});o.emitter.trigger("dateClick",c)}}},this.dragging=new St(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new gn(this.dragging,bi(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class Zf extends tt{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=l=>{let{component:a,dragging:o}=this,{options:c}=a.context,d=c.selectable&&a.isValidDateDownEl(l.origEvent.target);o.setIgnoreMove(!d),o.delay=l.isTouch?Xf(a):null},this.handleDragStart=l=>{this.component.context.calendarApi.unselect(l)},this.handleHitUpdate=(l,a)=>{let{context:o}=this.component,c=null,d=!1;if(l){let u=this.hitDragging.initialHit;l.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,l)||(c=Jf(u,l,o.pluginHooks.dateSelectionTransformers)),(!c||!hu(c,l.dateProfile,o))&&(d=!0,c=null)}c?o.dispatch({type:"SELECT_DATES",selection:c}):a||o.dispatch({type:"UNSELECT_DATES"}),d?ii():si(),a||(this.dragSelection=c)},this.handlePointerUp=l=>{this.dragSelection&&(Nr(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:i}=n.context,r=this.dragging=new St(e.el);r.touchScrollAllowed=!1,r.minDistance=i.selectMinDistance||0,r.autoScroller.isEnabled=i.dragScroll;let s=this.hitDragging=new gn(this.dragging,bi(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 Xf(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function Jf(t,e,n){let i=t.dateSpan,r=e.dateSpan,s=[i.range.start,i.range.end,r.range.start,r.range.end];s.sort(jo);let l={};for(let a of n){let o=a(t,e);if(o===!1)return null;o&&Object.assign(l,o)}return l.range={start:s[0],end:s[3]},l.allDay=i.allDay,l}class Ct extends tt{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 a=l.origEvent.target,{component:o,dragging:c}=this,{mirror:d}=c,{options:u}=o.context,h=o.context;this.subjectEl=l.subjectEl;let f=this.subjectSeg=Je(l.subjectEl),y=(this.eventRange=f.eventRange).instance.instanceId;this.relevantEvents=gi(h.getCurrentData().eventStore,y),c.minDistance=l.isTouch?0:u.eventDragMinDistance,c.delay=l.isTouch&&y!==o.props.eventSelection?eg(o):null,u.fixedMirrorParent?d.parentNode=u.fixedMirrorParent:d.parentNode=ne(a,".fc"),d.revertDuration=u.dragRevertDuration;let v=o.isValidSegDownEl(a)&&!ne(a,".fc-event-resizer");c.setIgnoreMove(!v),this.isDragging=v&&l.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=l=>{let a=this.component.context,o=this.eventRange,c=o.instance.instanceId;l.isTouch?c!==this.component.props.eventSelection&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:c}):a.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(a.calendarApi.unselect(l),a.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new U(a,o.def,o.instance),jsEvent:l.origEvent,view:a.viewApi}))},this.handleHitUpdate=(l,a)=>{if(!this.isDragging)return;let o=this.relevantEvents,c=this.hitDragging.initialHit,d=this.component.context,u=null,h=null,f=null,p=!1,y={affectedEvents:o,mutatedEvents:de(),isEvent:!0};if(l){u=l.context;let v=u.options;d===u||v.editable&&v.droppable?(h=Kf(c,l,u.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(f=vi(o,u.getCurrentData().eventUiBases,h,u),y.mutatedEvents=f,qr(y,l.dateProfile,u)||(p=!0,h=null,f=null,y.mutatedEvents=de()))):u=null}this.displayDrag(u,y),p?ii():si(),a||(d===u&&pn(c,l)&&(h=null),this.dragging.setMirrorNeedsRevert(!h),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=u,this.validMutation=h,this.mutatedRelevantEvents=f)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=l=>{if(this.isDragging){let a=this.component.context,o=a.viewApi,{receivingContext:c,validMutation:d}=this,u=this.eventRange.def,h=this.eventRange.instance,f=new U(a,u,h),p=this.relevantEvents,y=this.mutatedRelevantEvents,{finalHit:v}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:f,jsEvent:l.origEvent,view:o}),d){if(c===a){let D=new U(a,y.defs[u.defId],h?y.instances[h.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:y});let E={oldEvent:f,event:D,relatedEvents:He(y,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:p})}},S={};for(let C of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(S,C(d,a));a.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},E),S),{el:l.subjectEl,delta:d.datesDelta,jsEvent:l.origEvent,view:o})),a.emitter.trigger("eventChange",E)}else if(c){let D={event:f,relatedEvents:He(p,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:p})}};a.emitter.trigger("eventLeave",Object.assign(Object.assign({},D),{draggedEl:l.subjectEl,view:o})),a.dispatch({type:"REMOVE_EVENTS",eventStore:p}),a.emitter.trigger("eventRemove",D);let E=y.defs[u.defId],S=y.instances[h.instanceId],C=new U(c,E,S);c.dispatch({type:"MERGE_EVENTS",eventStore:y});let V={event:C,relatedEvents:He(y,c,S),revert(){c.dispatch({type:"REMOVE_EVENTS",eventStore:y})}};c.emitter.trigger("eventAdd",V),l.isTouch&&c.dispatch({type:"SELECT_EVENT",eventInstanceId:h.instanceId}),c.emitter.trigger("drop",Object.assign(Object.assign({},Tl(v.dateSpan,c)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:v.context.viewApi})),c.emitter.trigger("eventReceive",Object.assign(Object.assign({},V),{draggedEl:l.subjectEl,view:v.context.viewApi}))}}else a.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:i}=n.context,r=this.dragging=new St(e.el);r.pointer.selector=Ct.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=i.dragScroll;let s=this.hitDragging=new gn(this.dragging,Qn);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 i=this.component.context,r=this.receivingContext;r&&r!==e&&(r===i?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:de(),isEvent:!0}}):r.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}}Ct.SELECTOR=".fc-event-draggable, .fc-event-resizable";function Kf(t,e,n){let i=t.dateSpan,r=e.dateSpan,s=i.range.start,l=r.range.start,a={};i.allDay!==r.allDay&&(a.allDay=r.allDay,a.hasEnd=e.context.options.allDayMaintainDuration,r.allDay&&(s=L(s)));let o=Ye(s,l,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);o.milliseconds&&(a.allDay=!1);let c={datesDelta:o,standardProps:a};for(let d of n)d(c,t,e);return c}function eg(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class tg extends tt{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,a=this.querySegEl(s),o=Je(a),c=this.eventRange=o.eventRange;this.dragging.minDistance=l.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==c.instance.instanceId)},this.handleDragStart=s=>{let{context:l}=this.component,a=this.eventRange;this.relevantEvents=gi(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let o=this.querySegEl(s);this.draggingSegEl=o,this.draggingSeg=Je(o),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:o,event:new U(l,a.def,a.instance),jsEvent:s.origEvent,view:l.viewApi})},this.handleHitUpdate=(s,l,a)=>{let{context:o}=this.component,c=this.relevantEvents,d=this.hitDragging.initialHit,u=this.eventRange.instance,h=null,f=null,p=!1,y={affectedEvents:c,mutatedEvents:de(),isEvent:!0};s&&(s.componentId===d.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(d,s)||(h=ng(d,s,a.subjectEl.classList.contains("fc-event-resizer-start"),u.range))),h&&(f=vi(c,o.getCurrentData().eventUiBases,h,o),y.mutatedEvents=f,qr(y,s.dateProfile,o)||(p=!0,h=null,f=null,y.mutatedEvents=null)),f?o.dispatch({type:"SET_EVENT_RESIZE",state:y}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),p?ii():si(),l||(h&&pn(d,s)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=f)},this.handleDragEnd=s=>{let{context:l}=this.component,a=this.eventRange.def,o=this.eventRange.instance,c=new U(l,a,o),d=this.relevantEvents,u=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:c,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let h=new U(l,u.defs[a.defId],o?u.instances[o.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:u});let f={oldEvent:c,event:h,relatedEvents:He(u,l,o),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:d})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},f),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||N(0),endDelta:this.validMutation.endDelta||N(0),jsEvent:s.origEvent,view:l.viewApi})),l.emitter.trigger("eventChange",f)}else l.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,i=this.dragging=new St(e.el);i.pointer.selector=".fc-event-resizer",i.touchScrollAllowed=!1,i.autoScroller.isEnabled=n.context.options.dragScroll;let r=this.hitDragging=new gn(this.dragging,bi(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return ne(e.subjectEl,".fc-event")}}function ng(t,e,n,i){let r=t.context.dateEnv,s=t.dateSpan.range.start,l=e.dateSpan.range.start,a=Ye(s,l,r,t.largeUnit);if(n){if(r.add(i.start,a)<i.end)return{startDelta:a}}else if(r.add(i.end,a)>i.start)return{endDelta:a};return null}class ig{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=i=>{i.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=i=>{let r=this.context.options.unselectCancel,s=gr(i.origEvent);this.matchesCancel=!!ne(s,r),this.matchesEvent=!!ne(s,Ct.SELECTOR)},this.onDocumentPointerUp=i=>{let{context:r}=this,{documentPointer:s}=this,l=r.getCurrentData();if(!s.wasTouchScroll){if(l.dateSelection&&!this.isRecentPointerDateSelect){let a=r.options.unselectAuto;a&&(!a||!this.matchesCancel)&&r.calendarApi.unselect(i)}l.eventSelection&&!this.matchesEvent&&r.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new El(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 sg={fixedMirrorParent:m},rg={dateClick:m,eventDragStart:m,eventDragStop:m,eventDrop:m,eventResizeStart:m,eventResizeStop:m,eventResize:m,drop:m,eventReceive:m,eventLeave:m};Ei.dataAttrPrefix="";var Is=ve({name:"@fullcalendar/interaction",componentInteractions:[Qf,Zf,Ct,tg],calendarInteractions:[ig],elementDraggingImpl:St,optionRefiners:sg,listenerRefiners:rg}),lg=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';ln(lg);class ag extends W{constructor(){super(...arguments),this.state={textId:be()}}render(){let{theme:e,dateEnv:n,options:i,viewApi:r}=this.context,{cellId:s,dayDate:l,todayRange:a}=this.props,{textId:o}=this.state,c=Di(l,a),d=i.listDayFormat?n.format(l,i.listDayFormat):"",u=i.listDaySideFormat?n.format(l,i.listDaySideFormat):"",h=Object.assign({date:n.toDate(l),view:r,textId:o,text:d,sideText:u,navLinkAttrs:yt(this.context,l),sideNavLinkAttrs:yt(this.context,l,"day",!1)},c);return g(oe,{elTag:"tr",elClasses:["fc-list-day",...un(c,e)],elAttrs:{"data-date":_t(l)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:og,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},f=>g("th",{scope:"colgroup",colSpan:3,id:s,"aria-labelledby":o},g(f,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function og(t){return g(q,null,t.text&&g("a",Object.assign({id:t.textId,className:"fc-list-day-text"},t.navLinkAttrs),t.text),t.sideText&&g("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},t.sideNavLinkAttrs),t.sideText))}const cg=Q({hour:"numeric",minute:"2-digit",meridiem:"short"});class dg extends W{render(){let{props:e,context:n}=this,{options:i}=n,{seg:r,timeHeaderId:s,eventHeaderId:l,dateHeaderId:a}=e,o=i.eventTimeFormat||cg;return g(fn,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",r.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>ug(r,n),seg:r,timeText:"",disableDragging:!0,disableResizing:!0}),(c,d)=>g(q,null,hg(r,o,n,s,a),g("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},g("span",{className:"fc-list-event-dot",style:{borderColor:d.borderColor||d.backgroundColor}})),g(c,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${l} ${a}`}})))}}function ug(t,e){let n=yi(t,e);return g("a",Object.assign({},n),t.eventRange.def.title)}function hg(t,e,n,i,r){let{options:s}=n;if(s.displayEventTime!==!1){let l=t.eventRange.def,a=t.eventRange.instance,o=!1,c;if(l.allDay?o=!0:Yc(t.eventRange.range)?t.isStart?c=ut(t,e,n,null,null,a.range.start,t.end):t.isEnd?c=ut(t,e,n,null,null,t.start,a.range.end):o=!0:c=ut(t,e,n),o){let d={text:n.options.allDayText,view:n.viewApi};return g(oe,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${i} ${r}`},renderProps:d,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:fg,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return g("td",{className:"fc-list-event-time"},c)}return null}function fg(t){return t.text}class gg extends me{constructor(){super(...arguments),this.computeDateVars=x(mg),this.eventStoreToSegs=x(this._eventStoreToSegs),this.state={timeHeaderId:be(),eventHeaderId:be(),dateHeaderIdRoot:be()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:n}=this,{dayDates:i,dayRanges:r}=this.computeDateVars(e.dateProfile),s=this.eventStoreToSegs(e.eventStore,e.eventUiBases,r);return g(Zt,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},g(Xr,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},s.length>0?this.renderSegList(s,i):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:n}=this.context,i={text:e.noEventsText,view:n};return g(oe,{elTag:"div",elClasses:["fc-list-empty"],renderProps:i,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:pg,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},r=>g(r,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,n){let{theme:i,options:r}=this.context,{timeHeaderId:s,eventHeaderId:l,dateHeaderIdRoot:a}=this.state,o=vg(e);return g(hn,{unit:"day"},(c,d)=>{let u=[];for(let h=0;h<o.length;h+=1){let f=o[h];if(f){let p=_t(n[h]),y=a+"-"+p;u.push(g(ag,{key:p,cellId:y,dayDate:n[h],todayRange:d})),f=Vr(f,r.eventOrder);for(let v of f)u.push(g(dg,Object.assign({key:p+":"+v.eventRange.instance.instanceId,seg:v,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:s,eventHeaderId:l,dateHeaderId:y},Qe(v,d,c))))}}return g("table",{className:"fc-list-table "+i.getClass("table")},g("thead",null,g("tr",null,g("th",{scope:"col",id:s},r.timeHint),g("th",{scope:"col","aria-hidden":!0}),g("th",{scope:"col",id:l},r.eventHint))),g("tbody",null,u))})}_eventStoreToSegs(e,n,i){return this.eventRangesToSegs(qn(e,n,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,i)}eventRangesToSegs(e,n){let i=[];for(let r of e)i.push(...this.eventRangeToSegs(r,n));return i}eventRangeToSegs(e,n){let{dateEnv:i}=this.context,{nextDayThreshold:r}=this.context.options,s=e.range,l=e.def.allDay,a,o,c,d=[];for(a=0;a<n.length;a+=1)if(o=Re(s,n[a]),o&&(c={component:this,eventRange:e,start:o.start,end:o.end,isStart:e.isStart&&o.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===s.end.valueOf(),dayIndex:a},d.push(c),!c.isEnd&&!l&&a+1<n.length&&s.end<i.add(n[a+1].start,r))){c.end=s.end,c.isEnd=!0;break}return d}}function pg(t){return t.text}function mg(t){let e=L(t.renderRange.start),n=t.renderRange.end,i=[],r=[];for(;e<n;)i.push(e),r.push({start:e,end:X(e,1)}),e=X(e,1);return{dayDates:i,dayRanges:r}}function vg(t){let e=[],n,i;for(n=0;n<t.length;n+=1)i=t[n],(e[i.dayIndex]||(e[i.dayIndex]=[])).push(i);return e}const yg={listDayFormat:Os,listDaySideFormat:Os,noEventsClassNames:m,noEventsContent:m,noEventsDidMount:m,noEventsWillUnmount:m};function Os(t){return t===!1?null:Q(t)}var bg=ve({name:"@fullcalendar/list",optionRefiners:yg,views:{list:{component:gg,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});class Dg extends me{constructor(){super(...arguments),this.buildDayTableModel=x(_l),this.slicer=new bl,this.state={labelId:be()}}render(){const{props:e,state:n,context:i}=this,{dateProfile:r,forPrint:s}=e,{options:l}=i,a=this.buildDayTableModel(r,i.dateProfileGenerator),o=this.slicer.sliceProps(e,r,l.nextDayThreshold,i,a),c=e.tableWidth!=null?e.tableWidth/l.aspectRatio:null,d=a.cells.length,u=c!=null?c/d:null;return g("div",{ref:e.elRef,"data-date":e.isoDateStr,className:"fc-multimonth-month",style:{width:e.width},role:"grid","aria-labelledby":n.labelId},g("div",{className:"fc-multimonth-header",style:{marginBottom:u},role:"presentation"},g("div",{className:"fc-multimonth-title",id:n.labelId},i.dateEnv.format(e.dateProfile.currentRange.start,e.titleFormat)),g("table",{className:["fc-multimonth-header-table",i.theme.getClass("table")].join(" "),role:"presentation"},g("thead",{role:"rowgroup"},g(Gr,{dateProfile:e.dateProfile,dates:a.headerDates,datesRepDistinctDays:!1})))),g("div",{className:["fc-multimonth-daygrid","fc-daygrid","fc-daygrid-body",!s&&"fc-daygrid-body-balanced",s&&"fc-daygrid-body-unbalanced",s&&"fc-daygrid-body-natural"].join(" "),style:{marginTop:-u}},g("table",{className:["fc-multimonth-daygrid-table",i.theme.getClass("table")].join(" "),style:{height:s?"":c},role:"presentation"},g("tbody",{role:"rowgroup"},g(yl,Object.assign({},o,{dateProfile:r,cells:a.cells,eventSelection:e.eventSelection,dayMaxEvents:!s,dayMaxEventRows:!s,showWeekNumbers:l.weekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:s}))))))}}class wg extends me{constructor(){super(...arguments),this.splitDateProfileByMonth=x(Eg),this.buildMonthFormat=x(Cg),this.scrollElRef=he(),this.firstMonthElRef=he(),this.needsScrollReset=!1,this.handleSizing=e=>{e&&this.updateSize()}}render(){const{context:e,props:n,state:i}=this,{options:r}=e,{clientWidth:s,clientHeight:l}=i,a=i.monthHPadding||0,o=Math.min(s!=null?Math.floor(s/(r.multiMonthMinWidth+a)):1,r.multiMonthMaxColumns)||1,c=100/o+"%",d=s==null?null:s/o-a,u=s!=null&&o===1,h=this.splitDateProfileByMonth(e.dateProfileGenerator,n.dateProfile,e.dateEnv,u?!1:r.fixedWeekCount,r.showNonCurrentDates),f=this.buildMonthFormat(r.multiMonthTitleFormat,h),p=["fc-multimonth",u?"fc-multimonth-singlecol":"fc-multimonth-multicol",d!=null&&d<400?"fc-multimonth-compact":""];return g(Zt,{elRef:this.scrollElRef,elClasses:p,viewSpec:e.viewSpec},h.map((y,v)=>{const D=Un(y.currentRange.start);return g(Dg,Object.assign({},n,{key:D,isoDateStr:D,elRef:v===0?this.firstMonthElRef:void 0,titleFormat:f,dateProfile:y,width:c,tableWidth:d,clientWidth:s,clientHeight:l}))}))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleSizing),this.requestScrollReset()}componentDidUpdate(e){fe(e,this.props)||this.handleSizing(!1),e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}updateSize(){const e=this.scrollElRef.current,n=this.firstMonthElRef.current;e&&this.setState({clientWidth:e.clientWidth,clientHeight:e.clientHeight}),n&&e&&this.state.monthHPadding==null&&this.setState({monthHPadding:e.clientWidth-n.firstChild.offsetWidth})}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.state.monthHPadding!=null){const{currentDate:e}=this.props.dateProfile,n=this.scrollElRef.current,i=n.querySelector(`[data-date="${Un(e)}"]`);n.scrollTop=i.getBoundingClientRect().top-this.firstMonthElRef.current.getBoundingClientRect().top,this.needsScrollReset=!1}}shouldComponentUpdate(){return!0}}const _g=N(1,"month");function Eg(t,e,n,i,r){const{start:s,end:l}=e.currentRange;let a=s;const o=[];for(;a.valueOf()<l.valueOf();){const c=n.add(a,_g),d={start:t.skipHiddenDays(a),end:t.skipHiddenDays(c,-1,!0)};let u=wl({currentRange:d,snapToWeek:!0,fixedWeekCount:i,dateEnv:n});u={start:t.skipHiddenDays(u.start),end:t.skipHiddenDays(u.end,-1,!0)};const h=e.activeRange?Re(e.activeRange,r?u:d):null;o.push({currentDate:e.currentDate,isValid:e.isValid,validRange:e.validRange,renderRange:u,activeRange:h,currentRange:d,currentRangeUnit:"month",isRangeAllDay:!0,dateIncrement:e.dateIncrement,slotMinTime:e.slotMaxTime,slotMaxTime:e.slotMinTime}),a=c}return o}const Ag=Q({year:"numeric",month:"long"}),Sg=Q({month:"long"});function Cg(t,e){return t||(e[0].currentRange.start.getUTCFullYear()!==e[e.length-1].currentRange.start.getUTCFullYear()?Ag:Sg)}const Tg={multiMonthTitleFormat:Q,multiMonthMaxColumns:Number,multiMonthMinWidth:Number};var Rg=".fc .fc-multimonth{border:1px solid var(--fc-border-color);display:flex;flex-wrap:wrap;overflow-x:hidden;overflow-y:auto}.fc .fc-multimonth-title{font-size:1.2em;font-weight:700;padding:1em 0;text-align:center}.fc .fc-multimonth-daygrid{background:var(--fc-page-bg-color)}.fc .fc-multimonth-daygrid-table,.fc .fc-multimonth-header-table{table-layout:fixed;width:100%}.fc .fc-multimonth-daygrid-table{border-top-style:hidden!important}.fc .fc-multimonth-singlecol .fc-multimonth{position:relative}.fc .fc-multimonth-singlecol .fc-multimonth-header{background:var(--fc-page-bg-color);position:relative;top:0;z-index:2}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid{position:relative;z-index:1}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid-table,.fc .fc-multimonth-singlecol .fc-multimonth-header-table{border-left-style:hidden;border-right-style:hidden}.fc .fc-multimonth-singlecol .fc-multimonth-month:last-child .fc-multimonth-daygrid-table{border-bottom-style:hidden}.fc .fc-multimonth-multicol{line-height:1}.fc .fc-multimonth-multicol .fc-multimonth-month{padding:0 1.2em 1.2em}.fc .fc-multimonth-multicol .fc-daygrid-more-link{border:1px solid var(--fc-event-border-color);display:block;float:none;padding:1px}.fc .fc-multimonth-compact{line-height:1}.fc .fc-multimonth-compact .fc-multimonth-daygrid-table,.fc .fc-multimonth-compact .fc-multimonth-header-table{font-size:.9em}.fc-media-screen .fc-multimonth-singlecol .fc-multimonth-header{position:sticky}.fc-media-print .fc-multimonth{overflow:visible}";ln(Rg);var kg=ve({name:"@fullcalendar/multimonth",initialView:"multiMonthYear",optionRefiners:Tg,views:{multiMonth:{component:wg,dateProfileGeneratorClass:Dl,multiMonthMinWidth:350,multiMonthMaxColumns:3},multiMonthYear:{type:"multiMonth",duration:{years:1},fixedWeekCount:!0,showNonCurrentDates:!1}}});const Mg={name:"calendar-full",props:{initial:{type:String,default:"multiMonthYear"}},components:{FullCalendar:hf},setup(t){const e=ra({plugins:[Bf,Is,Is,bg,kg],initialView:t.initial,dayMaxEventRows:3,locale:"ru",buttonText:{today:"Сегодня",month:"Месяц",week:"Неделя",day:"День",list:"Список",year:"Год"},firstDay:"1",events:[],editable:!0,headerToolbar:{left:"prev",center:"title",right:"next"},aspectRatio:1,multiMonthMaxColumns:2,displayEventEnd:!0,height:"100%",stickyHeaderDates:!0,dayMaxEventRows:2,moreLinkContent:function(i){return i.shortText+" события"},views:{multiMonthYear:{moreLinkContent:function(i){return i.num}}},allDayText:"Весь день",noEventsContent:"На сегодня событий нет",selectable:!0,dateClick:i=>{console.log(i.date)}});function n(){ce.get("api/general_vacation/generalvacation/").then(i=>{for(let r in i.data)r=="План-график"&&i.data[r].map(s=>{e.events.push({description:"description for All Day Event",title:s.name,start:s.start_work_period,end:s.end_work_period})})})}return et(()=>{n()}),{calendarOptions:e}}};function xg(t,e,n,i,r,s){const l=ee("full-calendar");return _(),j(l,{options:i.calendarOptions},null,8,["options"])}const Ig=ke(Mg,[["render",xg]]);const Ns=Ws(),Og={components:{myHelper:la},setup(){const t=O([]);aa(()=>{t.value=[]});const e=O([]),n=O(!1),i=ft.slice(0,-1),r=O(""),s=O(0),l=O(1),a=O(2),o=oa();let c=`api/navigation/news/?name=${o.path}&page=${l.value-1}&selected=${a.value}`;o.path=="/news"&&"id"in o.query&&(c=`api/navigation/news/?name=${o.path}&page=${l.value-1}&selected=${a.value}&id=${o.query.id}`),rt(c,e);const d=(E,S)=>{ce.post("api/navigation/news/",{news:E,scores:S}).then(C=>{e.value.result[e.value.result.findIndex(V=>V.id==E)].scores=C.data})},u=()=>{ce.post("api/navigation/news/",{news:s.value,text:r.value}).then(E=>{n.value=!n.value,e.value.result[e.value.result.findIndex(S=>S.id==E.data.news)].comment=E.data.comment}),r.value=""},h=(E,S)=>{ce.post("api/navigation/news/",{delid:E,news:S}).then(C=>{e.value.result[e.value.result.findIndex(V=>V.id==C.data.news)].comment=C.data.comment})},f=()=>{rt(`api/navigation/news/?name=${o.path}&page=${l.value-1}&selected=${a.value}`,e)};return at(()=>Ns.cod2user,(E,S)=>{E&&rt(`api/navigation/news/?name=${o.path}&page=${l.value-1}&selected=${a.value}`,e)},{deep:!0}),at(()=>a,(E,S)=>{E&&rt(`api/navigation/news/?name=${o.path}&page=${l.value-1}&selected=${E.value}`,e)},{deep:!0}),{newss:e,burl:i,limitText:E=>{const S=E.split(" ").slice(0,25);return`${E.split(" ").slice(0,25).join(" ")} ${S.length<25?"":"..."}`},toggleIncrementLike:d,dialogCommentShow:n,accountStore:Ns,dateformat:E=>Pa(new Date(E),"dd.MM.yyyy HH:mm"),splitname:E=>E.familyname+" "+E.name[0]+"."+E.parentname[0]+".",textcomment:r,openComent:E=>{n.value=!n.value,s.value=E},addComment:u,idnews:s,deletComment:h,pagelistNews:f,divs:t,page:l,selecnews:a,route:o}}},Rl=t=>(ca("data-v-1f3339bc"),t=t(),da(),t),Ng={class:"flex-column h-100"},Hg={class:"justify-self-start mt-1"},Pg={class:"text-caption me-2"},Vg={class:"justify-self-end"},Bg={class:"subheading me-2"},Lg=Rl(()=>P("span",{class:"me-1"},"·",-1)),Wg={class:"subheading me-2"},jg=Rl(()=>P("span",{class:"me-1"},"·",-1)),Fg={class:"pointer subheading"},Ug={class:"pt-1 pl-1 pb-2"};function zg(t,e,n,i,r,s){return _(),A("div",Ng,[(_(!0),A(F,null,Z(i.newss.result,(l,a)=>(_(),j(K,{ref_for:!0,ref:a,class:J(["mx-auto px-3 pt-3",a>0?"mt-1":""]),key:a},{default:w(()=>[b(Dt,{class:"py-1"},{default:w(()=>[G(I(l.title),1)]),_:2},1024),b(Wt,{src:`${i.burl}${l.link}`,height:"175px",cover:"",width:"92%",class:"mx-auto"},null,8,["src"]),b(Ma,{class:"w-100"},{append:w(()=>[P("div",Vg,[b(ge,{size:"x-small",class:"me-1",icon:l.scores.filter(o=>o.user==i.accountStore.user.login&&o.score==!0).length>0?"mdi-thumb-up":"mdi-thumb-up-outline",onClick:o=>i.toggleIncrementLike(l.id,!0)},null,8,["icon","onClick"]),P("span",Bg,I(l.scores.filter(o=>o.score==!0).length),1),Lg,b(ge,{size:"x-small",class:"me-1",icon:l.scores.filter(o=>o.user==i.accountStore.user.login&&o.score==!1).length>0?"mdi-thumb-down":"mdi-thumb-down-outline",onClick:o=>i.toggleIncrementLike(l.id,!1)},null,8,["icon","onClick"]),P("span",Wg,I(l.scores.filter(o=>o.score==!1).length),1),jg,b(ge,{size:"x-small",class:"me-1",icon:"mdi-message-text-outline",onClick:o=>i.openComent(l.id)},null,8,["onClick"]),P("span",Fg,I(l.comment.length),1)])]),default:w(()=>[P("div",Hg,[b(ge,{size:"x-small",class:"me-1",icon:"mdi-account"}),P("span",Pg,I(i.splitname(l.author)),1)])]),_:2},1024),b(Kn),b(Ge,{class:"pb-0"},{default:w(()=>[G(I(i.limitText(l.text)),1)]),_:2},1024),P("div",Ug,[b(wt,{color:"more_details_btn",variant:"text",to:`/news?id=${l.id}`,size:"small","append-icon":"mdi-step-forward-2"},{default:w(()=>[G(" Подробнее ")]),_:2},1032,["to"])])]),_:2},1032,["class"]))),128))])}const $g=ke(Og,[["render",zg],["__scopeId","data-v-1f3339bc"]]),Yg={components:{CardUsers:Us},props:{idpos:{type:Number,default:""},namepos:{type:Text,default:""}},setup(t,{emit:e}){const n=O(!1),i=O({}),r=O(""),s=O(""),l=()=>{e("searchClose")};et(()=>{ce.get(`api/general_vacation/dailyload/?id=${t.idpos}`).then(c=>{console.log(c.data),i.value=c.data.daily})});const a=async c=>{n.value=!0,r.value=c},o=Pn({get(){let c={};return Object.keys(i.value).map(d=>{let u=i.value[d].filter(h=>h.fio.toLowerCase().includes(s.value));u.length>0&&(c[d]=u)}),c}});return{onSubmit:l,checkremote:js,searchname:s,spravURL:Fs,t_dailyRound:i,result:o,menuGetUserDialog:n,getcard:a,iduser:r}}};function Gg(t,e,n,i,r,s){const l=ee("Card-users");return _(),A("div",null,[b(K,{class:"bg-white pa-3 px-0",width:"550",height:"600"},{default:w(()=>[b(K,{class:"mx-auto overflow-auto mx-0 px-3",width:"550",height:"600",flat:""},{default:w(()=>[b(Dt,{class:"fixed-bar bg-white"},{default:w(()=>[b(ie,{class:"bggrad"},{default:w(()=>[b(te,{class:"text-center text-black_and_white"},{default:w(()=>[G(I(n.namepos),1)]),_:1})]),_:1}),b(ie,null,{default:w(()=>[b(te,{class:"pa-0 mb-3"},{default:w(()=>[b(xa,{modelValue:i.searchname,"onUpdate:modelValue":e[0]||(e[0]=a=>i.searchname=a),clearable:"","prepend-inner-icon":"mdi-magnify","hide-details":"",class:"mx-0",label:"Поиск",rows:"1","no-resize":""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),(_(!0),A(F,null,Z(i.result,(a,o)=>(_(),A("div",{key:o,class:"px-3"},[b(Ia,{class:"py-0"},{default:w(()=>[b(Oa,null,{default:w(()=>[G(I(o),1)]),_:2},1024)]),_:2},1024),(_(!0),A(F,null,Z(a,c=>(_(),j(K,{key:c,class:"bg-transparent",density:"compact","prepend-avatar":i.checkremote(`${i.spravURL}${c.login}.jpg`),title:c.fio,subtitle:c.post,variant:"text",onClick:d=>i.getcard(c.login)},null,8,["prepend-avatar","title","subtitle","onClick"]))),128))]))),128))]),_:1}),b(Kn),b(ua,{class:"align-self-end pb-0"},{default:w(()=>[b(wt,{color:"more_details_btn",variant:"text",onClick:i.onSubmit},{default:w(()=>[G(" Закрыть ")]),_:1},8,["onClick"])]),_:1})]),_:1}),b($s,{modelValue:i.menuGetUserDialog,"onUpdate:modelValue":e[2]||(e[2]=a=>i.menuGetUserDialog=a),persistent:"",width:"800"},{default:w(()=>[b(l,{menuGetUserDialog:i.menuGetUserDialog,loging:i.iduser,onMenusClose:e[1]||(e[1]=a=>i.menuGetUserDialog=!1)},null,8,["menuGetUserDialog","loging"])]),_:1},8,["modelValue"])])}const qg=ke(Yg,[["render",Gg]]);const Qg=nn({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Wa(),...Va()},"VSwitch"),Zg=bt()({name:"VSwitch",inheritAttrs:!1,props:Qg(),emits:{"update:focused":t=>!0,"update:modelValue":()=>!0,"update:indeterminate":t=>!0},setup(t,e){let{attrs:n,slots:i}=e;const r=Hn(t,"indeterminate"),s=Hn(t,"modelValue"),{loaderClasses:l}=ha(t),{isFocused:a,focus:o,blur:c}=ja(t),d=Pn(()=>typeof t.loading=="string"&&t.loading!==""?t.loading:t.color),u=fa(),h=Pn(()=>t.id||`switch-${u}`);function f(){r.value&&(r.value=!1)}return sn(()=>{const[p,y]=ga(n),[v,D]=Mi.filterProps(t),[E,S]=ki.filterProps(t),C=O();function V(z){var B,M;z.stopPropagation(),z.preventDefault(),(M=(B=C.value)==null?void 0:B.input)==null||M.click()}return b(Mi,ue({class:["v-switch",{"v-switch--inset":t.inset},{"v-switch--indeterminate":r.value},l.value,t.class],style:t.style},p,v,{id:h.value,focused:a.value}),{...i,default:z=>{let{id:B,messagesId:M,isDisabled:we,isReadonly:nt,isValid:xl}=z;return b(ki,ue({ref:C},E,{modelValue:s.value,"onUpdate:modelValue":[mn=>s.value=mn,f],id:B.value,"aria-describedby":M.value,type:"checkbox","aria-checked":r.value?"mixed":void 0,disabled:we.value,readonly:nt.value,onFocus:o,onBlur:c},y),{...i,default:()=>b("div",{class:"v-switch__track",onClick:V},null),input:mn=>{let{textColorClasses:Il,textColorStyles:Ol}=mn;return b("div",{class:["v-switch__thumb",Il.value],style:Ol.value},[t.loading&&b(pa,{name:"v-switch",active:!0,color:xl.value===!1?void 0:d.value},{default:vn=>i.loader?i.loader(vn):b(Ta,{active:vn.isActive,color:vn.color,indeterminate:!0,size:"16",width:"2"},null)})])}})}})}),{}}}),Xg={components:{CardUsers:Us,DialogSearch:qg},setup(){const t=O([]),e=O(""),n=O(""),i=O(""),r=O(!1),s=O({}),l=O([]),a=O({}),o=O(""),c=O(!1),d=O(""),u=O({}),h=O(!1),f=async S=>{c.value=!0,d.value=S},p=(S,C)=>{n.value=S,i.value=C,r.value=!r.value,ce.get(`api/general_vacation/dailyload/?id=${S}`).then(V=>{s.value=V.data,u.value=JSON.parse(JSON.stringify(V.data.daily))})},y=ft.slice(0,-1);function v(){ce.get("api/feedback/feedbackdata/").then(S=>{t.value=S.data.results})}const D=()=>{const S=new FormData;S.append("dailyfiles",l.value[0]),ce.post("api/general_vacation/dailyroundup/",S).then(C=>{a.value=C.data,E()}),l.value=""};function E(){ce.get("api/general_vacation/dailyload/").then(S=>{e.value=S.data.daily})}return ma(),et(()=>{E(),v()}),{t_daily:e,detailRound:p,dialogDetailRound:r,t_dailyRound:s,dailyfiles:l,onPickFile:D,info:a,checkremote:js,searchname:o,spravURL:Fs,menuGetUserDialog:c,iduser:d,getcard:f,result:u,idpos:n,namepos:i,changeData:h,baseURL:ft,burl:y}}},Jg={class:"d-flex h-100"},Kg={class:"text-center"};function ep(t,e,n,i,r,s){const l=ee("vue3-autocounter"),a=ee("dialog-search");return _(),A("div",Jg,[i.t_daily.length>0?(_(),j(K,{key:0,class:"h-100 w-100 d-flex flex-column"},{default:w(()=>[(_(!0),A(F,null,Z(i.t_daily,o=>va((_(),j(ie,{key:o},{default:w(()=>[b(Kn),b(te,null,{default:w(()=>[b(K,{class:"ma-2 d-flex flex-column",height:"100",elevation:"0"},{default:w(()=>[b(K,{class:"h-100 text-center text-black_grey bg-black_and_white"},{default:w(()=>[b(Dt,{class:"statstyle py-0 text-overline font-weight-bold bg-black_and_white"},{default:w(()=>[G(I(o.position__name),1)]),_:2},1024),b(Ge,{onClick:c=>i.detailRound(o.position,o.position__name),class:"numstyle mt-2 py-0 font-weight-bold pointer bg-black_and_white"},{default:w(()=>[b(l,{ref_for:!0,ref:"counter",startAmount:0,endAmount:Number(o.user__count),duration:2},null,8,["endAmount"])]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)),[[ya,o.position!=6]])),128))]),_:1})):(_(),j(K,{key:1,class:"h-100 w-100 d-flex justify-center flex-column",image:`${i.burl}/media/newsimage/2023/09/28/sea.jpg`},{default:w(()=>[b(ie,{class:"flex-grow-0"},{default:w(()=>[b(te,{class:"py-0"},{default:w(()=>[b(Zg,{modelValue:i.changeData,"onUpdate:modelValue":e[0]||(e[0]=o=>i.changeData=o),class:"pl-3 d-flex justify-end",color:"teal",onClick:e[1]||(e[1]=o=>i.changeData=!i.changeData)},null,8,["modelValue"])]),_:1})]),_:1}),b(ie,null,{default:w(()=>[i.changeData?(_(),j(Ge,{key:0,class:"d-flex flex-column align-self-center"},{default:w(()=>[b(Ba,{accept:".xlsx",modelValue:i.dailyfiles,"onUpdate:modelValue":e[2]||(e[2]=o=>i.dailyfiles=o),variant:"underlined",density:"compact",label:"Выберите ф-л","hide-details":"",class:"pt-2 ml-0 text-white"},null,8,["modelValue"]),b(wt,{class:"align-self-center",icon:"mdi-google-play text-white",size:"x-large",variant:"text",color:"teal-darken-4",disabled:i.dailyfiles==0,onClick:i.onPickFile},null,8,["disabled","onClick"])]),_:1})):(_(),j(Ge,{key:1},{default:w(()=>[b(ie,{class:"text-h5 text-white text-center h-100","align-content":"center"},{default:w(()=>[G("Данные не загружены ")]),_:1})]),_:1}))]),_:1})]),_:1},8,["image"])),P("div",Kg,[b($s,{modelValue:i.dialogDetailRound,"onUpdate:modelValue":e[4]||(e[4]=o=>i.dialogDetailRound=o),width:"500"},{default:w(()=>[b(a,{idpos:i.idpos,namepos:i.namepos,onSearchClose:e[3]||(e[3]=o=>i.dialogDetailRound=!i.dialogDetailRound)},null,8,["idpos","namepos"])]),_:1},8,["modelValue"])])])}const tp=ke(Xg,[["render",ep]]);var np=Object.defineProperty,ip=(t,e,n)=>e in t?np(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ye=(t,e,n)=>(ip(t,typeof e!="symbol"?e+"":e,n),n);/**
* vue-cal v4.8.1
* (c) 2022 Antoni Andre <antoniandre.web@gmail.com>
* @license MIT
*/let it,Hs,Ps,le,st={},ze={};class sp{constructor(e){ye(this,"_vuecal",null),ye(this,"selectCell",(n=!1,i,r)=>{this._vuecal.$emit("cell-click",r?{date:i,split:r}:i),this._vuecal.clickToNavigate||n?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout(()=>this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",r?{date:i,split:r}:i)))}),ye(this,"keyPressEnterCell",(n,i)=>{this._vuecal.$emit("cell-keypress-enter",i?{date:n,split:i}:n),this._vuecal.switchToNarrowerView()}),ye(this,"getPosition",n=>{const{left:i,top:r}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:s,clientY:l}="ontouchstart"in window&&n.touches?n.touches[0]:n;return{x:s-i,y:l-r}}),ye(this,"minutesAtCursor",n=>{let i=0,r={x:0,y:0};const{timeStep:s,timeCellHeight:l,timeFrom:a}=this._vuecal.$props;return typeof n=="number"?i=n:typeof n=="object"&&(r=this.getPosition(n),i=Math.round(r.y*s/parseInt(l)+a)),{minutes:Math.max(Math.min(i,1440),0),cursorCoords:r}}),this._vuecal=e}}let $,Y,Nn;class rp{constructor(e,n){ye(this,"_vuecal",null),ye(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=e,$=n}createAnEvent(e,n,i){if(typeof e=="string"&&(e=$.stringToDate(e)),!(e instanceof Date))return!1;const r=$.dateToMinutes(e),s=r+(n=1*n||120),l=$.addMinutes(new Date(e),n);i.end&&(typeof i.end=="string"&&(i.end=$.stringToDate(i.end)),i.endTimeMinutes=$.dateToMinutes(i.end));const a={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:e,startTimeMinutes:r,end:l,endTimeMinutes:s,segments:null,...i};return typeof this._vuecal.onEventCreate!="function"||this._vuecal.onEventCreate(a,()=>this.deleteAnEvent(a))?(a.startDateF!==a.endDateF&&(a.daysCount=$.countDays(a.start,a.end)),this._vuecal.mutableEvents.push(a),this._vuecal.addEventsToView([a]),this._vuecal.emitWithEvent("event-create",a),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(a),originalEvent:null}),a):void 0}addEventSegment(e){e.segments||(e.segments={},e.segments[$.formatDateLite(e.start)]={start:e.start,startTimeMinutes:e.startTimeMinutes,endTimeMinutes:1440,isFirstDay:!0,isLastDay:!1});const n=e.segments[$.formatDateLite(e.end)];n&&(n.isLastDay=!1,n.endTimeMinutes=1440);const i=$.addDays(e.end,1),r=$.formatDateLite(i);return i.setHours(0,0,0,0),e.segments[r]={start:i,startTimeMinutes:0,endTimeMinutes:e.endTimeMinutes,isFirstDay:!1,isLastDay:!0},e.end=$.addMinutes(i,e.endTimeMinutes),e.daysCount=Object.keys(e.segments).length,r}removeEventSegment(e){let n=Object.keys(e.segments).length;if(n<=1)return $.formatDateLite(e.end);delete e.segments[$.formatDateLite(e.end)],n--;const i=$.subtractDays(e.end,1),r=$.formatDateLite(i),s=e.segments[r];return n?s&&(s.isLastDay=!0,s.endTimeMinutes=e.endTimeMinutes):e.segments=null,e.daysCount=n||1,e.end=i,r}createEventSegments(e,n,i){const r=n.getTime(),s=i.getTime();let l,a,o,c=e.start.getTime(),d=e.end.getTime(),u=!1;for(e.end.getHours()||e.end.getMinutes()||(d-=1e3),e.segments={},e.repeat?(l=r,a=Math.min(s,e.repeat.until?$.stringToDate(e.repeat.until).getTime():s)):(l=Math.max(r,c),a=Math.min(s,d));l<=a;){let h=!1;const f=$.addDays(new Date(l),1).setHours(0,0,0,0);let p,y,v,D;if(e.repeat){const E=new Date(l),S=$.formatDateLite(E);(u||e.occurrences&&e.occurrences[S])&&(u||(c=e.occurrences[S].start,o=new Date(c).setHours(0,0,0,0),d=e.occurrences[S].end),u=!0,h=!0),p=l===o,y=S===$.formatDateLite(new Date(d)),v=new Date(p?c:l),D=$.formatDateLite(v),y&&(u=!1)}else h=!0,p=l===c,y=a===d&&f>a,v=p?e.start:new Date(l),D=$.formatDateLite(p?e.start:v);h&&(e.segments[D]={start:v,startTimeMinutes:p?e.startTimeMinutes:0,endTimeMinutes:y?e.endTimeMinutes:1440,isFirstDay:p,isLastDay:y}),l=f}return e}deleteAnEvent(e){this._vuecal.emitWithEvent("event-delete",e),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter(n=>n._eid!==e._eid),this._vuecal.view.events=this._vuecal.view.events.filter(n=>n._eid!==e._eid)}checkCellOverlappingEvents(e,n){Nn=e.slice(0),Y={},e.forEach(r=>{Nn.shift(),Y[r._eid]||(Y[r._eid]={overlaps:[],start:r.start,position:0}),Y[r._eid].position=0,Nn.forEach(s=>{Y[s._eid]||(Y[s._eid]={overlaps:[],start:s.start,position:0});const l=this.eventInRange(s,r.start,r.end),a=n.overlapsPerTimeStep?$.datesInSameTimeStep(r.start,s.start,n.timeStep):1;if(r.background||r.allDay||s.background||s.allDay||!l||!a){let o,c;(o=(Y[r._eid]||{overlaps:[]}).overlaps.indexOf(s._eid))>-1&&Y[r._eid].overlaps.splice(o,1),(c=(Y[s._eid]||{overlaps:[]}).overlaps.indexOf(r._eid))>-1&&Y[s._eid].overlaps.splice(c,1),Y[s._eid].position--}else Y[r._eid].overlaps.push(s._eid),Y[r._eid].overlaps=[...new Set(Y[r._eid].overlaps)],Y[s._eid].overlaps.push(r._eid),Y[s._eid].overlaps=[...new Set(Y[s._eid].overlaps)],Y[s._eid].position++})});let i=0;for(const r in Y){const s=Y[r],l=s.overlaps.map(a=>({id:a,start:Y[a].start}));l.push({id:r,start:s.start}),l.sort((a,o)=>a.start<o.start?-1:a.start>o.start?1:a.id>o.id?-1:1),s.position=l.findIndex(a=>a.id===r),i=Math.max(this.getOverlapsStreak(s,Y),i)}return[Y,i]}getOverlapsStreak(e,n={}){let i=e.overlaps.length+1,r=[];return e.overlaps.forEach(s=>{r.includes(s)||e.overlaps.filter(l=>l!==s).forEach(l=>{n[l].overlaps.includes(s)||r.push(l)})}),r=[...new Set(r)],i-=r.length,i}eventInRange(e,n,i){if(e.allDay||!this._vuecal.time){const l=new Date(e.start).setHours(0,0,0,0);return new Date(e.end).setHours(23,59,0,0)>=new Date(n).setHours(0,0,0,0)&&l<=new Date(i).setHours(0,0,0,0)}const r=e.start.getTime(),s=e.end.getTime();return r<i.getTime()&&s>n.getTime()}}const lp={class:"vuecal__flex vuecal__weekdays-headings"},ap=["onClick"],op={class:"vuecal__flex weekday-label",grow:""},cp={class:"full"},dp={class:"small"},up={class:"xsmall"},hp={key:0},fp={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""},Ke=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n},kl=Ke({inject:["vuecal","utils","view"],props:{transitionDirection:{type:String,default:"right"},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},methods:{selectCell(t,e){t.getTime()!==this.view.selectedDate.getTime()&&(this.view.selectedDate=t),this.utils.cell.selectCell(!1,t,e)},cleanupHeading:t=>({label:t.full,date:t.date,...t.today?{today:t.today}:{}})},computed:{headings(){if(!["month","week"].includes(this.view.id))return[];let t=!1;return this.weekDays.map((e,n)=>{const i=this.utils.date.addDays(this.view.startDate,this.vuecal.startWeekOnSunday?n-1:n);return{hide:e.hide,full:e.label,small:e.short||e.label.substr(0,3),xsmall:e.short||e.label.substr(0,1),...this.view.id==="week"?{dayOfMonth:i.getDate(),date:i,today:!t&&this.utils.date.isToday(i)&&!t++}:{}}})},cellWidth(){return 100/(7-this.weekDays.reduce((t,e)=>t+e.hide,0))},weekdayCellStyles(){return{...this.vuecal.hideWeekdays.length?{width:`${this.cellWidth}%`}:{}}},cellHeadingsClickable(){return this.view.id==="week"&&(this.vuecal.clickToNavigate||this.vuecal.dblclickToNavigate)}}},[["render",function(t,e,n,i,r,s){return _(),A("div",lp,[(_(!0),A(F,null,Z(s.headings,(l,a)=>(_(),A(F,{key:a},[l.hide?k("",!0):(_(),A("div",{key:0,class:J(["vuecal__flex vuecal__heading",{today:l.today,clickable:s.cellHeadingsClickable}]),style:ae(s.weekdayCellStyles),onClick:o=>s.view.id==="week"&&s.selectCell(l.date,o),onDblclick:e[0]||(e[0]=o=>s.view.id==="week"&&s.vuecal.dblclickToNavigate&&n.switchToNarrowerView())},[b(jt,{name:`slide-fade--${n.transitionDirection}`,appear:s.vuecal.transitions},{default:w(()=>[(_(),A("div",{class:"vuecal__flex",column:"",key:!!s.vuecal.transitions&&`${a}-${l.dayOfMonth}`},[P("div",op,[H(t.$slots,"weekday-heading",{heading:s.cleanupHeading(l),view:s.view},()=>[P("span",cp,I(l.full),1),P("span",dp,I(l.small),1),P("span",up,I(l.xsmall),1),l.dayOfMonth?(_(),A("span",hp," "+I(l.dayOfMonth),1)):k("",!0)])]),s.vuecal.hasSplits&&s.vuecal.stickySplitLabels?(_(),A("div",fp,[(_(!0),A(F,null,Z(s.vuecal.daySplits,(o,c)=>(_(),A("div",{class:J(["day-split-header",o.class||!1]),key:c},[H(t.$slots,"split-label",{split:o,view:s.view},()=>[G(I(o.label),1)])],2))),128))])):k("",!0)]))]),_:2},1032,["name","appear"])],46,ap))],64))),128))])}]]),gp={class:"vuecal__header"},pp={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},mp=["onDragenter","onDragleave","onClick","aria-label"],vp={key:1,class:"vuecal__title-bar"},yp=["aria-label"],bp={class:"vuecal__flex vuecal__title",grow:""},Dp=["aria-label"],wp={key:0,class:"vuecal__flex vuecal__split-days-headers"},_p=Ke({inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:kl},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},hasSplits:{type:[Boolean,Number],default:!1},daySplits:{type:Array,default:()=>[]},viewProps:{type:Object,default:()=>({})},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},data:()=>({highlightedControl:null}),methods:{goToToday(){this.updateSelectedDate(new Date(new Date().setHours(0,0,0,0)))},switchToBroaderView(){this.transitionDirection="left",this.broaderView&&this.switchView(this.broaderView)}},computed:{transitionDirection:{get(){return this.vuecal.transitionDirection},set(t){this.vuecal.transitionDirection=t}},broaderView(){const{enabledViews:t}=this.vuecal;return t[t.indexOf(this.view.id)-1]},showDaySplits(){return this.view.id==="day"&&this.hasSplits&&this.options.stickySplitLabels&&!this.options.minSplitWidth},dnd(){return this.modules.dnd}}},[["render",function(t,e,n,i,r,s){const l=ee("weekdays-headings");return _(),A("div",gp,[n.options.hideViewSelector?k("",!0):(_(),A("div",pp,[(_(!0),A(F,null,Z(n.viewProps.views,(a,o)=>(_(),A(F,{key:o},[a.enabled?(_(),A("button",{key:0,class:J(["vuecal__view-btn",{"vuecal__view-btn--active":s.view.id===o,"vuecal__view-btn--highlighted":t.highlightedControl===o}]),type:"button",onDragenter:c=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragEnter(c,o,t.$data),onDragleave:c=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragLeave(c,o,t.$data),onClick:c=>s.switchView(o,null,!0),"aria-label":`${a.label} view`},I(a.label),43,mp)):k("",!0)],64))),128))])),n.options.hideTitleBar?k("",!0):(_(),A("div",vp,[P("button",{class:J(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":t.highlightedControl==="previous"}]),type:"button",onClick:e[0]||(e[0]=(...a)=>s.previous&&s.previous(...a)),onDragenter:e[1]||(e[1]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragEnter(a,"previous",t.$data)),onDragleave:e[2]||(e[2]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragLeave(a,"previous",t.$data)),"aria-label":`Previous ${s.view.id}`},[H(t.$slots,"arrow-prev")],42,yp),P("div",bp,[b(jt,{name:n.options.transitions?`slide-fade--${s.transitionDirection}`:""},{default:w(()=>[(_(),j(ba(s.broaderView?"button":"span"),{type:!!s.broaderView&&"button",key:`${s.view.id}${s.view.startDate.toString()}`,onClick:e[3]||(e[3]=a=>!!s.broaderView&&s.switchToBroaderView()),"aria-label":!!s.broaderView&&`Go to ${s.broaderView} view`},{default:w(()=>[H(t.$slots,"title")]),_:3},8,["type","aria-label"]))]),_:3},8,["name"])]),n.options.todayButton?(_(),A("button",{key:0,class:J(["vuecal__today-btn",{"vuecal__today-btn--highlighted":t.highlightedControl==="today"}]),type:"button",onClick:e[4]||(e[4]=(...a)=>s.goToToday&&s.goToToday(...a)),onDragenter:e[5]||(e[5]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragEnter(a,"today",t.$data)),onDragleave:e[6]||(e[6]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragLeave(a,"today",t.$data)),"aria-label":"Today"},[H(t.$slots,"today-button")],34)):k("",!0),P("button",{class:J(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":t.highlightedControl==="next"}]),type:"button",onClick:e[7]||(e[7]=(...a)=>s.next&&s.next(...a)),onDragenter:e[8]||(e[8]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragEnter(a,"next",t.$data)),onDragleave:e[9]||(e[9]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragLeave(a,"next",t.$data)),"aria-label":`Next ${s.view.id}`},[H(t.$slots,"arrow-next")],42,Dp)])),n.viewProps.weekDaysInHeader?(_(),j(l,{key:2,"week-days":n.weekDays,"transition-direction":s.transitionDirection,"switch-to-narrower-view":n.switchToNarrowerView},Vn({_:2},[t.$slots["weekday-heading"]?{name:"weekday-heading",fn:w(({heading:a,view:o})=>[H(t.$slots,"weekday-heading",{heading:a,view:o})]),key:"0"}:void 0,t.$slots["split-label"]?{name:"split-label",fn:w(({split:a})=>[H(t.$slots,"split-label",{split:a,view:s.view})]),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):k("",!0),b(jt,{name:`slide-fade--${s.transitionDirection}`},{default:w(()=>[s.showDaySplits?(_(),A("div",wp,[(_(!0),A(F,null,Z(n.daySplits,(a,o)=>(_(),A("div",{class:J(["day-split-header",a.class||!1]),key:o},[H(t.$slots,"split-label",{split:a,view:s.view.id},()=>[G(I(a.label),1)])],2))),128))])):k("",!0)]),_:3},8,["name"])])}]]),Ep=["draggable"],Ap={inject:["vuecal","utils","modules","view","domEvents","editEvents"],props:{cellFormattedDate:{type:String,default:""},event:{type:Object,default:()=>({})},cellEvents:{type:Array,default:()=>[]},overlaps:{type:Array,default:()=>[]},eventPosition:{type:Number,default:0},overlapsStreak:{type:Number,default:0},allDay:{type:Boolean,default:!1}},data:()=>({touch:{dragThreshold:30,startX:0,startY:0,dragged:!1}}),methods:{onMouseDown(t,e=!1){if("ontouchstart"in window&&!e)return!1;const{clickHoldAnEvent:n,focusAnEvent:i,resizeAnEvent:r,dragAnEvent:s}=this.domEvents;if(i._eid===this.event._eid&&n._eid===this.event._eid)return!0;this.focusEvent(),n._eid=null,this.vuecal.editEvents.delete&&this.event.deletable&&(n.timeoutId=setTimeout(()=>{r._eid||s._eid||(n._eid=this.event._eid,this.event.deleting=!0)},n.timeout))},onMouseUp(t){this.domEvents.focusAnEvent._eid!==this.event._eid||this.touch.dragged||(this.domEvents.focusAnEvent.mousedUp=!0),this.touch.dragged=!1},onMouseEnter(t){t.preventDefault(),this.vuecal.emitWithEvent("event-mouse-enter",this.event)},onMouseLeave(t){t.preventDefault(),this.vuecal.emitWithEvent("event-mouse-leave",this.event)},onTouchMove(t){if(typeof this.vuecal.onEventClick!="function")return;const{clientX:e,clientY:n}=t.touches[0],{startX:i,startY:r,dragThreshold:s}=this.touch;(Math.abs(e-i)>s||Math.abs(n-r)>s)&&(this.touch.dragged=!0)},onTouchStart(t){this.touch.startX=t.touches[0].clientX,this.touch.startY=t.touches[0].clientY,this.onMouseDown(t,!0)},onEnterKeypress(t){if(typeof this.vuecal.onEventClick=="function")return this.vuecal.onEventClick(this.event,t)},onDblClick(t){if(typeof this.vuecal.onEventDblclick=="function")return this.vuecal.onEventDblclick(this.event,t)},onDragStart(t){this.dnd&&this.dnd.eventDragStart(t,this.event)},onDragEnd(){this.dnd&&this.dnd.eventDragEnd(this.event)},onResizeHandleMouseDown(){this.focusEvent(),this.domEvents.dragAnEvent._eid=null,this.domEvents.resizeAnEvent=Object.assign(this.domEvents.resizeAnEvent,{_eid:this.event._eid,start:(this.segment||this.event).start,split:this.event.split||null,segment:!!this.segment&&this.utils.date.formatDateLite(this.segment.start),originalEnd:new Date((this.segment||this.event).end),originalEndTimeMinutes:this.event.endTimeMinutes}),this.event.resizing=!0},deleteEvent(t=!1){if("ontouchstart"in window&&!t)return!1;this.utils.event.deleteAnEvent(this.event)},touchDeleteEvent(t){this.deleteEvent(!0)},cancelDeleteEvent(){this.event.deleting=!1},focusEvent(){const{focusAnEvent:t}=this.domEvents,e=t._eid;if(e!==this.event._eid){if(e){const n=this.view.events.find(i=>i._eid===e);n&&(n.focused=!1)}this.vuecal.cancelDelete(),this.vuecal.emitWithEvent("event-focus",this.event),t._eid=this.event._eid,this.event.focused=!0}}},computed:{eventDimensions(){const{startTimeMinutes:t,endTimeMinutes:e}=this.segment||this.event;let n=t-this.vuecal.timeFrom;const i=Math.max(Math.round(n*this.vuecal.timeCellHeight/this.vuecal.timeStep),0);n=Math.min(e,this.vuecal.timeTo)-this.vuecal.timeFrom;const r=Math.round(n*this.vuecal.timeCellHeight/this.vuecal.timeStep);return{top:i,height:Math.max(r-i,5)}},eventStyles(){if(this.event.allDay||!this.vuecal.time||!this.event.endTimeMinutes||this.view.id==="month"||this.allDay)return{};let t=100/Math.min(this.overlaps.length+1,this.overlapsStreak),e=100/(this.overlaps.length+1)*this.eventPosition;this.vuecal.minEventWidth&&t<this.vuecal.minEventWidth&&(t=this.vuecal.minEventWidth,e=(100-this.vuecal.minEventWidth)/this.overlaps.length*this.eventPosition);const{top:n,height:i}=this.eventDimensions;return{top:`${n}px`,height:`${i}px`,width:`${t}%`,left:this.event.left&&`${this.event.left}px`||`${e}%`}},eventClasses(){const{isFirstDay:t,isLastDay:e}=this.segment||{};return{[this.event.class]:!!this.event.class,"vuecal__event--focus":this.event.focused,"vuecal__event--resizing":this.event.resizing,"vuecal__event--background":this.event.background,"vuecal__event--deletable":this.event.deleting,"vuecal__event--all-day":this.event.allDay,"vuecal__event--dragging":!this.event.draggingStatic&&this.event.dragging,"vuecal__event--static":this.event.dragging&&this.event.draggingStatic,"vuecal__event--multiple-days":!!this.segment,"event-start":this.segment&&t&&!e,"event-middle":this.segment&&!t&&!e,"event-end":this.segment&&e&&!t}},segment(){return this.event.segments&&this.event.segments[this.cellFormattedDate]||null},draggable(){const{draggable:t,background:e,daysCount:n}=this.event;return this.vuecal.editEvents.drag&&t&&!e&&n===1},resizable(){const{editEvents:t,time:e}=this.vuecal;return t.resize&&this.event.resizable&&e&&!this.allDay&&(!this.segment||this.segment&&this.segment.isLastDay)&&this.view.id!=="month"},dnd(){return this.modules.dnd}}},Sp=["data-split","aria-label","onTouchstart","onMousedown","onDragover","onDrop"],Cp={key:0,class:"cell-time-labels"},Tp=["innerHTML"],Rp={key:2,class:"vuecal__cell-events"},kp=["title"],Ml=Ke({inject:["vuecal","utils","modules","view","domEvents"],components:{Event:Ke(Ap,[["render",function(t,e,n,i,r,s){return _(),A("div",{class:J(["vuecal__event",s.eventClasses]),style:ae(s.eventStyles),tabindex:"0",onFocus:e[4]||(e[4]=(...l)=>s.focusEvent&&s.focusEvent(...l)),onKeypress:e[5]||(e[5]=Si(Ue((...l)=>s.onEnterKeypress&&s.onEnterKeypress(...l),["stop"]),["enter"])),onMouseenter:e[6]||(e[6]=(...l)=>s.onMouseEnter&&s.onMouseEnter(...l)),onMouseleave:e[7]||(e[7]=(...l)=>s.onMouseLeave&&s.onMouseLeave(...l)),onTouchstart:e[8]||(e[8]=Ue((...l)=>s.onTouchStart&&s.onTouchStart(...l),["stop"])),onMousedown:e[9]||(e[9]=l=>s.onMouseDown(l)),onMouseup:e[10]||(e[10]=(...l)=>s.onMouseUp&&s.onMouseUp(...l)),onTouchend:e[11]||(e[11]=(...l)=>s.onMouseUp&&s.onMouseUp(...l)),onTouchmove:e[12]||(e[12]=(...l)=>s.onTouchMove&&s.onTouchMove(...l)),onDblclick:e[13]||(e[13]=(...l)=>s.onDblClick&&s.onDblClick(...l)),draggable:s.draggable,onDragstart:e[14]||(e[14]=l=>s.draggable&&s.onDragStart(l)),onDragend:e[15]||(e[15]=l=>s.draggable&&s.onDragEnd())},[s.vuecal.editEvents.delete&&n.event.deletable?(_(),A("div",{key:0,class:"vuecal__event-delete",onClick:e[0]||(e[0]=Ue((...l)=>s.deleteEvent&&s.deleteEvent(...l),["stop"])),onTouchstart:e[1]||(e[1]=Ue((...l)=>s.touchDeleteEvent&&s.touchDeleteEvent(...l),["stop"]))},I(s.vuecal.texts.deleteEvent),33)):k("",!0),H(t.$slots,"event",{event:n.event,view:s.view.id}),s.resizable?(_(),A("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:e[2]||(e[2]=Ue((...l)=>s.onResizeHandleMouseDown&&s.onResizeHandleMouseDown(...l),["stop","prevent"])),onTouchstart:e[3]||(e[3]=Ue((...l)=>s.onResizeHandleMouseDown&&s.onResizeHandleMouseDown(...l),["stop","prevent"]))},null,32)):k("",!0)],46,Ep)}]])},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},data:{type:Object,required:!0},cellSplits:{type:Array,default:()=>[]},minTimestamp:{type:[Number,null],default:null},maxTimestamp:{type:[Number,null],default:null},cellWidth:{type:[Number,Boolean],default:!1},allDay:{type:Boolean,default:!1}},data:()=>({cellOverlaps:{},cellOverlapsStreak:1,timeAtCursor:null,highlighted:!1,highlightedSplit:null}),methods:{getSplitAtCursor({target:t}){let e=t.classList.contains("vuecal__cell-split")?t:this.vuecal.findAncestor(t,"vuecal__cell-split");return e&&(e=e.attributes["data-split"].value,parseInt(e).toString()===e.toString()&&(e=parseInt(e))),e||null},splitClasses(t){return{"vuecal__cell-split":!0,"vuecal__cell-split--highlighted":this.highlightedSplit===t.id,[t.class]:!!t.class}},checkCellOverlappingEvents(){this.options.time&&this.eventsCount&&!this.splitsCount&&(this.eventsCount===1?(this.cellOverlaps=[],this.cellOverlapsStreak=1):[this.cellOverlaps,this.cellOverlapsStreak]=this.utils.event.checkCellOverlappingEvents(this.events,this.options))},isDOMElementAnEvent(t){return this.vuecal.isDOMElementAnEvent(t)},selectCell(t,e=!1){const n=this.splitsCount?this.getSplitAtCursor(t):null;this.utils.cell.selectCell(e,this.timeAtCursor,n),this.timeAtCursor=null},onCellkeyPressEnter(t){this.isSelected||this.onCellFocus(t);const e=this.splitsCount?this.getSplitAtCursor(t):null;this.utils.cell.keyPressEnterCell(this.timeAtCursor,e),this.timeAtCursor=null},onCellFocus(t){if(!this.isSelected&&!this.isDisabled){this.isSelected=this.data.startDate;const e=this.splitsCount?this.getSplitAtCursor(t):null,n=this.timeAtCursor||this.data.startDate;this.vuecal.$emit("cell-focus",e?{date:n,split:e}:n)}},onCellMouseDown(t,e=null,n=!1){if("ontouchstart"in window&&!n)return!1;this.isSelected||this.onCellFocus(t);const{clickHoldACell:i,focusAnEvent:r}=this.domEvents;this.domEvents.cancelClickEventCreation=!1,i.eventCreated=!1,this.timeAtCursor=new Date(this.data.startDate);const{minutes:s,cursorCoords:{y:l}}=this.vuecal.minutesAtCursor(t);this.timeAtCursor.setMinutes(s);const a=this.isDOMElementAnEvent(t.target);!a&&r._eid&&((this.view.events.find(o=>o._eid===r._eid)||{}).focused=!1),this.editEvents.create&&!a&&this.setUpEventCreation(t,l)},setUpEventCreation(t,e){if(this.options.dragToCreateEvent&&["week","day"].includes(this.view.id)){const{dragCreateAnEvent:n}=this.domEvents;if(n.startCursorY=e,n.split=this.splitsCount?this.getSplitAtCursor(t):null,n.start=this.timeAtCursor,this.options.snapToTime){let i=60*this.timeAtCursor.getHours()+this.timeAtCursor.getMinutes();const r=i+this.options.snapToTime/2;i=r-r%this.options.snapToTime,n.start.setHours(0,i,0,0)}}else this.options.cellClickHold&&["month","week","day"].includes(this.view.id)&&this.setUpCellHoldTimer(t)},setUpCellHoldTimer(t){const{clickHoldACell:e}=this.domEvents;e.cellId=`${this.vuecal._.uid}_${this.data.formattedDate}`,e.split=this.splitsCount?this.getSplitAtCursor(t):null,e.timeoutId=setTimeout(()=>{if(e.cellId&&!this.domEvents.cancelClickEventCreation){const{_eid:n}=this.utils.event.createAnEvent(this.timeAtCursor,null,e.split?{split:e.split}:{});e.eventCreated=n}},e.timeout)},onCellTouchStart(t,e=null){this.onCellMouseDown(t,e,!0)},onCellClick(t){this.isDOMElementAnEvent(t.target)||this.selectCell(t)},onCellDblClick(t){const e=new Date(this.data.startDate);e.setMinutes(this.vuecal.minutesAtCursor(t).minutes);const n=this.splitsCount?this.getSplitAtCursor(t):null;this.vuecal.$emit("cell-dblclick",n?{date:e,split:n}:e),this.options.dblclickToNavigate&&this.vuecal.switchToNarrowerView()},onCellContextMenu(t){t.stopPropagation(),t.preventDefault();const e=new Date(this.data.startDate),{cursorCoords:n,minutes:i}=this.vuecal.minutesAtCursor(t);e.setMinutes(i);const r=this.splitsCount?this.getSplitAtCursor(t):null;this.vuecal.$emit("cell-contextmenu",{date:e,...n,...r||{},e:t})}},computed:{dnd(){return this.modules.dnd},nowInMinutes(){return this.utils.date.dateToMinutes(this.vuecal.now)},isBeforeMinDate(){return this.minTimestamp!==null&&this.minTimestamp>this.data.endDate.getTime()},isAfterMaxDate(){return this.maxTimestamp&&this.maxTimestamp<this.data.startDate.getTime()},isDisabled(){const{disableDays:t}=this.options,{isYearsOrYearView:e}=this.vuecal;return!(!t.length||!t.includes(this.data.formattedDate)||e)||this.isBeforeMinDate||this.isAfterMaxDate},isSelected:{get(){let t=!1;const{selectedDate:e}=this.view;return t=this.view.id==="years"?e.getFullYear()===this.data.startDate.getFullYear():this.view.id==="year"?e.getFullYear()===this.data.startDate.getFullYear()&&e.getMonth()===this.data.startDate.getMonth():e.getTime()===this.data.startDate.getTime(),t},set(t){this.view.selectedDate=t,this.vuecal.$emit("update:selected-date",this.view.selectedDate)}},isWeekOrDayView(){return["week","day"].includes(this.view.id)},transitionDirection(){return this.vuecal.transitionDirection},specialHours(){return this.data.specialHours.map(t=>{let{from:e,to:n}=t;return e=Math.max(e,this.options.timeFrom),n=Math.min(n,this.options.timeTo),{...t,height:(n-e)*this.timeScale,top:(e-this.options.timeFrom)*this.timeScale}})},events(){const{startDate:t,endDate:e}=this.data;let n=[];if(!["years","year"].includes(this.view.id)||this.options.eventsCountOnYearView){if(n=this.view.events.slice(0),this.view.id==="month"&&n.push(...this.view.outOfScopeEvents),n=n.filter(i=>this.utils.event.eventInRange(i,t,e)),this.options.showAllDayEvents&&this.view.id!=="month"&&(n=n.filter(i=>!!i.allDay===this.allDay)),this.options.time&&this.isWeekOrDayView&&!this.allDay){const{timeFrom:i,timeTo:r}=this.options;n=n.filter(s=>{const l=s.daysCount>1&&s.segments[this.data.formattedDate]||{},a=s.daysCount===1&&s.startTimeMinutes<r&&s.endTimeMinutes>i,o=s.daysCount>1&&l.startTimeMinutes<r&&l.endTimeMinutes>i;return s.allDay||a||o||!1})}!this.options.time||!this.isWeekOrDayView||this.options.showAllDayEvents&&this.allDay||n.sort((i,r)=>i.start<r.start?-1:1),this.cellSplits.length||this.$nextTick(this.checkCellOverlappingEvents)}return n},eventsCount(){return this.events.length},splits(){return this.cellSplits.map((t,e)=>{const n=this.events.filter(s=>s.split===t.id),[i,r]=this.utils.event.checkCellOverlappingEvents(n.filter(s=>!s.background&&!s.allDay),this.options);return{...t,overlaps:i,overlapsStreak:r,events:n}})},splitsCount(){return this.splits.length},cellClasses(){return{[this.data.class]:!!this.data.class,"vuecal__cell--current":this.data.current,"vuecal__cell--today":this.data.today,"vuecal__cell--out-of-scope":this.data.outOfScope,"vuecal__cell--before-min":this.isDisabled&&this.isBeforeMinDate,"vuecal__cell--after-max":this.isDisabled&&this.isAfterMaxDate,"vuecal__cell--disabled":this.isDisabled,"vuecal__cell--selected":this.isSelected,"vuecal__cell--highlighted":this.highlighted,"vuecal__cell--has-splits":this.splitsCount,"vuecal__cell--has-events":this.eventsCount}},cellStyles(){return{...this.cellWidth?{width:`${this.cellWidth}%`}:{}}},timelineVisible(){const{time:t,timeTo:e}=this.options;return this.data.today&&this.isWeekOrDayView&&t&&!this.allDay&&this.nowInMinutes<=e},todaysTimePosition(){if(!this.data.today||!this.options.time)return;const t=this.nowInMinutes-this.options.timeFrom;return Math.round(t*this.timeScale)},timeScale(){return this.options.timeCellHeight/this.options.timeStep}}},[["render",function(t,e,n,i,r,s){const l=ee("event");return _(),j(Da,{class:J(["vuecal__cell",s.cellClasses]),name:`slide-fade--${s.transitionDirection}`,tag:"div",appear:n.options.transitions,style:ae(s.cellStyles)},{default:w(()=>[(_(!0),A(F,null,Z(s.splitsCount?s.splits:1,(a,o)=>(_(),A("div",{class:J(["vuecal__flex vuecal__cell-content",s.splitsCount&&s.splitClasses(a)]),key:n.options.transitions?`${s.view.id}-${n.data.content}-${o}`:o,"data-split":!!s.splitsCount&&a.id,column:"",tabindex:"0","aria-label":n.data.content,onFocus:e[0]||(e[0]=c=>s.onCellFocus(c)),onKeypress:e[1]||(e[1]=Si(c=>s.onCellkeyPressEnter(c),["enter"])),onTouchstart:c=>!s.isDisabled&&s.onCellTouchStart(c,s.splitsCount?a.id:null),onMousedown:c=>!s.isDisabled&&s.onCellMouseDown(c,s.splitsCount?a.id:null),onClick:e[2]||(e[2]=c=>!s.isDisabled&&s.onCellClick(c)),onDblclick:e[3]||(e[3]=c=>!s.isDisabled&&s.onCellDblClick(c)),onContextmenu:e[4]||(e[4]=c=>!s.isDisabled&&n.options.cellContextmenu&&s.onCellContextMenu(c)),onDragenter:e[5]||(e[5]=c=>!s.isDisabled&&n.editEvents.drag&&s.dnd&&s.dnd.cellDragEnter(c,t.$data,n.data.startDate)),onDragover:c=>!s.isDisabled&&n.editEvents.drag&&s.dnd&&s.dnd.cellDragOver(c,t.$data,n.data.startDate,s.splitsCount?a.id:null),onDragleave:e[6]||(e[6]=c=>!s.isDisabled&&n.editEvents.drag&&s.dnd&&s.dnd.cellDragLeave(c,t.$data,n.data.startDate)),onDrop:c=>!s.isDisabled&&n.editEvents.drag&&s.dnd&&s.dnd.cellDragDrop(c,t.$data,n.data.startDate,s.splitsCount?a.id:null)},[n.options.showTimeInCells&&n.options.time&&s.isWeekOrDayView&&!n.allDay?(_(),A("div",Cp,[(_(!0),A(F,null,Z(s.vuecal.timeCells,(c,d)=>(_(),A("span",{class:"cell-time-label",key:d},I(c.label),1))),128))])):k("",!0),s.isWeekOrDayView&&!n.allDay&&s.specialHours.length?(_(!0),A(F,{key:1},Z(s.specialHours,(c,d)=>(_(),A("div",{class:J(["vuecal__special-hours",`vuecal__special-hours--day${c.day} ${c.class}`]),style:ae(`height: ${c.height}px;top: ${c.top}px`)},[c.label?(_(),A("div",{key:0,class:"special-hours-label",innerHTML:c.label},null,8,Tp)):k("",!0)],6))),256)):k("",!0),H(t.$slots,"cell-content",{events:s.events,selectCell:c=>s.selectCell(c,!0),split:!!s.splitsCount&&a}),s.eventsCount&&(s.isWeekOrDayView||s.view.id==="month"&&n.options.eventsOnMonthView)?(_(),A("div",Rp,[(_(!0),A(F,null,Z(s.splitsCount?a.events:s.events,(c,d)=>(_(),j(l,{key:d,"cell-formatted-date":n.data.formattedDate,event:c,"all-day":n.allDay,"cell-events":s.splitsCount?a.events:s.events,overlaps:((s.splitsCount?a.overlaps[c._eid]:t.cellOverlaps[c._eid])||[]).overlaps,"event-position":((s.splitsCount?a.overlaps[c._eid]:t.cellOverlaps[c._eid])||[]).position,"overlaps-streak":s.splitsCount?a.overlapsStreak:t.cellOverlapsStreak},{event:w(({event:u,view:h})=>[H(t.$slots,"event",{view:h,event:u})]),_:2},1032,["cell-formatted-date","event","all-day","cell-events","overlaps","event-position","overlaps-streak"]))),128))])):k("",!0)],42,Sp))),128)),s.timelineVisible?(_(),A("div",{class:"vuecal__now-line",style:ae(`top: ${s.todaysTimePosition}px`),key:n.options.transitions?`${s.view.id}-now-line`:"now-line",title:s.utils.date.formatTime(s.vuecal.now)},null,12,kp)):k("",!0)]),_:3},8,["class","name","appear","style"])}]]),Mp={key:0,class:"vuecal__all-day-text",style:{width:"3em"}},xp=Ke({inject:["vuecal","view","editEvents"],components:{"vuecal-cell":Ml},props:{options:{type:Object,required:!0},cells:{type:Array,required:!0},label:{type:String,required:!0},daySplits:{type:Array,default:()=>[]},shortEvents:{type:Boolean,default:!0},height:{type:String,default:""},cellOrSplitMinWidth:{type:Number,default:null}},computed:{hasCellOrSplitWidth(){return!!(this.options.minCellWidth||this.daySplits.length&&this.options.minSplitWidth)}}},[["render",function(t,e,n,i,r,s){const l=ee("vuecal-cell");return _(),A("div",{class:"vuecal__flex vuecal__all-day",style:ae(n.cellOrSplitMinWidth&&{height:n.height})},[n.cellOrSplitMinWidth?k("",!0):(_(),A("div",Mp,[P("span",null,I(n.label),1)])),P("div",{class:J(["vuecal__flex vuecal__cells",`${s.view.id}-view`]),grow:"",style:ae(n.cellOrSplitMinWidth?`min-width: ${n.cellOrSplitMinWidth}px`:"")},[(_(!0),A(F,null,Z(n.cells,(a,o)=>(_(),j(l,{key:o,options:n.options,"edit-events":s.editEvents,data:a,"all-day":!0,"cell-width":n.options.hideWeekdays.length&&(s.vuecal.isWeekView||s.vuecal.isMonthView)&&s.vuecal.cellWidth,"min-timestamp":n.options.minTimestamp,"max-timestamp":n.options.maxTimestamp,"cell-splits":n.daySplits},{event:w(({event:c,view:d})=>[H(t.$slots,"event",{view:d,event:c})]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],6)],4)}]]),Ip=["lang"],Op=P("i",{class:"angle"},null,-1),Np=P("i",{class:"angle"},null,-1),Hp={class:"default"},Pp={key:0,class:"vuecal__flex vuecal__body",grow:""},Vp=["onBlur","innerHTML"],Bp=["innerHTML"],Lp=["innerHTML"],Wp={class:"vuecal__flex",row:"",grow:""},jp={key:0,class:"vuecal__time-column"},Fp=P("span",{class:"vuecal__time-cell-line"},null,-1),Up={class:"vuecal__time-cell-label"},zp={key:1,class:"vuecal__flex vuecal__week-numbers",column:""},$p=["wrap","column"],Yp=["onBlur","innerHTML"],Gp=["innerHTML"],qp=["innerHTML"],Qp=["wrap"],Zp=["innerHTML"],Xp=["innerHTML"],Jp={key:2,class:"vuecal__cell-events-count"},Kp={key:3,class:"vuecal__no-event"},em=["onBlur","innerHTML"],tm=["innerHTML"],nm={key:2,class:"vuecal__event-time"},im={key:0},sm={key:1,class:"days-to-end"},rm=["innerHTML"],lm={key:0,class:"vuecal__scrollbar-check"},am=[P("div",null,null,-1)],lt={weekDays:Array(7).fill(""),weekDaysShort:[],months:Array(12).fill(""),years:"",year:"",month:"",week:"",day:"",today:"",noEvent:"",allDay:"",deleteEvent:"",createEvent:"",dateFormat:"dddd MMMM D, YYYY",am:"am",pm:"pm"},Vs=["years","year","month","week","day"],Bs=new class{constructor(t,e=!1){ye(this,"texts",{}),ye(this,"dateToMinutes",n=>60*n.getHours()+n.getMinutes()),le=this,this._texts=t,e||!Date||Date.prototype.addDays||this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(t){return le.addDays(this,t)},Date.prototype.subtractDays=function(t){return le.subtractDays(this,t)},Date.prototype.addHours=function(t){return le.addHours(this,t)},Date.prototype.subtractHours=function(t){return le.subtractHours(this,t)},Date.prototype.addMinutes=function(t){return le.addMinutes(this,t)},Date.prototype.subtractMinutes=function(t){return le.subtractMinutes(this,t)},Date.prototype.getWeek=function(){return le.getWeek(this)},Date.prototype.isToday=function(){return le.isToday(this)},Date.prototype.isLeapYear=function(){return le.isLeapYear(this)},Date.prototype.format=function(t="YYYY-MM-DD"){return le.formatDate(this,t)},Date.prototype.formatTime=function(t="HH:mm"){return le.formatTime(this,t)}}removePrototypes(){delete Date.prototype.addDays,delete Date.prototype.subtractDays,delete Date.prototype.addHours,delete Date.prototype.subtractHours,delete Date.prototype.addMinutes,delete Date.prototype.subtractMinutes,delete Date.prototype.getWeek,delete Date.prototype.isToday,delete Date.prototype.isLeapYear,delete Date.prototype.format,delete Date.prototype.formatTime}updateTexts(t){this._texts=t}_todayFormatted(){return Hs!==new Date().getDate()&&(it=new Date,Hs=it.getDate(),Ps=`${it.getFullYear()}-${it.getMonth()}-${it.getDate()}`),Ps}addDays(t,e){const n=new Date(t.valueOf());return n.setDate(n.getDate()+e),n}subtractDays(t,e){const n=new Date(t.valueOf());return n.setDate(n.getDate()-e),n}addHours(t,e){const n=new Date(t.valueOf());return n.setHours(n.getHours()+e),n}subtractHours(t,e){const n=new Date(t.valueOf());return n.setHours(n.getHours()-e),n}addMinutes(t,e){const n=new Date(t.valueOf());return n.setMinutes(n.getMinutes()+e),n}subtractMinutes(t,e){const n=new Date(t.valueOf());return n.setMinutes(n.getMinutes()-e),n}getWeek(t){const e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),n=e.getUTCDay()||7;e.setUTCDate(e.getUTCDate()+4-n);const i=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-i)/864e5+1)/7)}isToday(t){return`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`===this._todayFormatted()}isLeapYear(t){const e=t.getFullYear();return!(e%400)||e%100&&!(e%4)}getPreviousFirstDayOfWeek(t=null,e){const n=t&&new Date(t.valueOf())||new Date,i=e?7:6;return n.setDate(n.getDate()-(n.getDay()+i)%7),n}stringToDate(t){return t instanceof Date?t:(t.length===10&&(t+=" 00:00"),new Date(t.replace(/-/g,"/")))}countDays(t,e){typeof t=="string"&&(t=t.replace(/-/g,"/")),typeof e=="string"&&(e=e.replace(/-/g,"/")),t=new Date(t).setHours(0,0,0,0),e=new Date(e).setHours(0,0,1,0);const n=60*(new Date(e).getTimezoneOffset()-new Date(t).getTimezoneOffset())*1e3;return Math.ceil((e-t-n)/864e5)}datesInSameTimeStep(t,e,n){return Math.abs(t.getTime()-e.getTime())<=60*n*1e3}formatDate(t,e="YYYY-MM-DD",n=null){if(n||(n=this._texts),e||(e="YYYY-MM-DD"),e==="YYYY-MM-DD")return this.formatDateLite(t);st={},ze={};const i={YYYY:()=>this._hydrateDateObject(t,n).YYYY,YY:()=>this._hydrateDateObject(t,n).YY(),M:()=>this._hydrateDateObject(t,n).M,MM:()=>this._hydrateDateObject(t,n).MM(),MMM:()=>this._hydrateDateObject(t,n).MMM(),MMMM:()=>this._hydrateDateObject(t,n).MMMM(),MMMMG:()=>this._hydrateDateObject(t,n).MMMMG(),D:()=>this._hydrateDateObject(t,n).D,DD:()=>this._hydrateDateObject(t,n).DD(),S:()=>this._hydrateDateObject(t,n).S(),d:()=>this._hydrateDateObject(t,n).d,dd:()=>this._hydrateDateObject(t,n).dd(),ddd:()=>this._hydrateDateObject(t,n).ddd(),dddd:()=>this._hydrateDateObject(t,n).dddd(),HH:()=>this._hydrateTimeObject(t,n).HH,H:()=>this._hydrateTimeObject(t,n).H,hh:()=>this._hydrateTimeObject(t,n).hh,h:()=>this._hydrateTimeObject(t,n).h,am:()=>this._hydrateTimeObject(t,n).am,AM:()=>this._hydrateTimeObject(t,n).AM,mm:()=>this._hydrateTimeObject(t,n).mm,m:()=>this._hydrateTimeObject(t,n).m};return e.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(r,s)=>{const l=i[s.replace(/\{|\}/g,"")];return l!==void 0?l():s})}formatDateLite(t){const e=t.getMonth()+1,n=t.getDate();return`${t.getFullYear()}-${e<10?"0":""}${e}-${n<10?"0":""}${n}`}formatTime(t,e="HH:mm",n=null,i=!1){let r=!1;if(i){const[a,o,c]=[t.getHours(),t.getMinutes(),t.getSeconds()];a+o+c===141&&(r=!0)}if(t instanceof Date&&e==="HH:mm")return r?"24:00":this.formatTimeLite(t);ze={},n||(n=this._texts);const s=this._hydrateTimeObject(t,n),l=e.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(a,o)=>{const c=s[o.replace(/\{|\}/g,"")];return c!==void 0?c:o});return r?l.replace("23:59","24:00"):l}formatTimeLite(t){const e=t.getHours(),n=t.getMinutes();return`${(e<10?"0":"")+e}:${(n<10?"0":"")+n}`}_nth(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}_hydrateDateObject(t,e){if(st.D)return st;const n=t.getFullYear(),i=t.getMonth()+1,r=t.getDate(),s=(t.getDay()-1+7)%7;return st={YYYY:n,YY:()=>n.toString().substring(2),M:i,MM:()=>(i<10?"0":"")+i,MMM:()=>e.months[i-1].substring(0,3),MMMM:()=>e.months[i-1],MMMMG:()=>(e.monthsGenitive||e.months)[i-1],D:r,DD:()=>(r<10?"0":"")+r,S:()=>this._nth(r),d:s+1,dd:()=>e.weekDays[s][0],ddd:()=>e.weekDays[s].substr(0,3),dddd:()=>e.weekDays[s]},st}_hydrateTimeObject(t,e){if(ze.am)return ze;let n,i;t instanceof Date?(n=t.getHours(),i=t.getMinutes()):(n=Math.floor(t/60),i=Math.floor(t%60));const r=n%12?n%12:12,s=(e||{am:"am",pm:"pm"})[n===24||n<12?"am":"pm"];return ze={H:n,h:r,HH:(n<10?"0":"")+n,hh:(r<10?"0":"")+r,am:s,AM:s.toUpperCase(),m:i,mm:(i<10?"0":"")+i},ze}}(lt),om={name:"vue-cal",components:{"vuecal-cell":Ml,"vuecal-header":_p,WeekdaysHeadings:kl,AllDayBar:xp},provide(){return{vuecal:this,utils:this.utils,modules:this.modules,previous:this.previous,next:this.next,switchView:this.switchView,updateSelectedDate:this.updateSelectedDate,editEvents:this.editEvents,view:this.view,domEvents:this.domEvents}},props:{activeView:{type:String,default:"week"},allDayBarHeight:{type:[String,Number],default:"25px"},cellClickHold:{type:Boolean,default:!0},cellContextmenu:{type:Boolean,default:!1},clickToNavigate:{type:Boolean,default:!1},dblclickToNavigate:{type:Boolean,default:!0},disableDatePrototypes:{type:Boolean,default:!1},disableDays:{type:Array,default:()=>[]},disableViews:{type:Array,default:()=>[]},dragToCreateEvent:{type:Boolean,default:!0},dragToCreateThreshold:{type:Number,default:15},editableEvents:{type:[Boolean,Object],default:!1},events:{type:Array,default:()=>[]},eventsCountOnYearView:{type:Boolean,default:!1},eventsOnMonthView:{type:[Boolean,String],default:!1},hideBody:{type:Boolean,default:!1},hideTitleBar:{type:Boolean,default:!1},hideViewSelector:{type:Boolean,default:!1},hideWeekdays:{type:Array,default:()=>[]},hideWeekends:{type:Boolean,default:!1},locale:{type:[String,Object],default:"en"},maxDate:{type:[String,Date],default:""},minCellWidth:{type:Number,default:0},minDate:{type:[String,Date],default:""},minEventWidth:{type:Number,default:0},minSplitWidth:{type:Number,default:0},onEventClick:{type:[Function,null],default:null},onEventCreate:{type:[Function,null],default:null},onEventDblclick:{type:[Function,null],default:null},overlapsPerTimeStep:{type:Boolean,default:!1},resizeX:{type:Boolean,default:!1},selectedDate:{type:[String,Date],default:""},showAllDayEvents:{type:[Boolean,String],default:!1},showTimeInCells:{type:Boolean,default:!1},showWeekNumbers:{type:[Boolean,String],default:!1},snapToTime:{type:Number,default:0},small:{type:Boolean,default:!1},specialHours:{type:Object,default:()=>({})},splitDays:{type:Array,default:()=>[]},startWeekOnSunday:{type:Boolean,default:!1},stickySplitLabels:{type:Boolean,default:!1},time:{type:Boolean,default:!0},timeCellHeight:{type:Number,default:40},timeFormat:{type:String,default:""},timeFrom:{type:Number,default:0},timeStep:{type:Number,default:60},timeTo:{type:Number,default:1440},todayButton:{type:Boolean,default:!1},transitions:{type:Boolean,default:!0},twelveHour:{type:Boolean,default:!1},watchRealTime:{type:Boolean,default:!1},xsmall:{type:Boolean,default:!1}},data(){return{ready:!1,texts:{...lt},utils:{date:!!this.disableDatePrototypes&&Bs.removePrototypes()||Bs,cell:null,event:null},modules:{dnd:null},cellsEl:null,view:{id:"",title:"",startDate:null,endDate:null,firstCellDate:null,lastCellDate:null,selectedDate:null,events:[]},eventIdIncrement:1,now:new Date,timeTickerIds:[null,null],domEvents:{resizeAnEvent:{_eid:null,start:null,split:null,segment:null,originalEndTimeMinutes:0,originalEnd:null,end:null,startCell:null,endCell:null},dragAnEvent:{_eid:null},dragCreateAnEvent:{startCursorY:null,start:null,split:null,event:null},focusAnEvent:{_eid:null,mousedUp:!1},clickHoldAnEvent:{_eid:null,timeout:1200,timeoutId:null},dblTapACell:{taps:0,timeout:500},clickHoldACell:{cellId:null,split:null,timeout:1200,timeoutId:null,eventCreated:!1},cancelClickEventCreation:!1},mutableEvents:[],transitionDirection:"right"}},methods:{async loadLocale(t){if(typeof this.locale=="object")return this.texts=Object.assign({},lt,t),void this.utils.date.updateTexts(this.texts);if(this.locale==="en"){const e=await R(()=>import("./en.es-713916b0.js"),[]);this.texts=Object.assign({},lt,e)}else((e,n)=>{const i=e[n];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((r,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+n)))})})(Object.assign({"./i18n/ar.json":()=>R(()=>import("./ar.es-4173cb29.js"),[]),"./i18n/bg.json":()=>R(()=>import("./bg.es-3542f853.js"),[]),"./i18n/bn.json":()=>R(()=>import("./bn.es-55ab5212.js"),[]),"./i18n/bs.json":()=>R(()=>import("./bs.es-ba9dd541.js"),[]),"./i18n/ca.json":()=>R(()=>import("./ca.es-3f4af411.js"),[]),"./i18n/cs.json":()=>R(()=>import("./cs.es-4bf8e61a.js"),[]),"./i18n/da.json":()=>R(()=>import("./da.es-084484fb.js"),[]),"./i18n/de.json":()=>R(()=>import("./de.es-0185602c.js"),[]),"./i18n/el.json":()=>R(()=>import("./el.es-b3db55e7.js"),[]),"./i18n/en.json":()=>R(()=>import("./en.es-713916b0.js"),[]),"./i18n/es.json":()=>R(()=>import("./es.es-2f81ef8f.js"),[]),"./i18n/et.json":()=>R(()=>import("./et.es-feab242e.js"),[]),"./i18n/fa.json":()=>R(()=>import("./fa.es-e30ec481.js"),[]),"./i18n/fr.json":()=>R(()=>import("./fr.es-fd781cdb.js"),[]),"./i18n/he.json":()=>R(()=>import("./he.es-ab017da7.js"),[]),"./i18n/hr.json":()=>R(()=>import("./hr.es-8ff4208c.js"),[]),"./i18n/hu.json":()=>R(()=>import("./hu.es-a826dbea.js"),[]),"./i18n/id.json":()=>R(()=>import("./id.es-09894c24.js"),[]),"./i18n/is.json":()=>R(()=>import("./is.es-9608cdad.js"),[]),"./i18n/it.json":()=>R(()=>import("./it.es-8f484e02.js"),[]),"./i18n/ja.json":()=>R(()=>import("./ja.es-b7fc0eb9.js"),[]),"./i18n/ka.json":()=>R(()=>import("./ka.es-446e6e19.js"),[]),"./i18n/ko.json":()=>R(()=>import("./ko.es-45e7d699.js"),[]),"./i18n/lt.json":()=>R(()=>import("./lt.es-bc184482.js"),[]),"./i18n/mn.json":()=>R(()=>import("./mn.es-5fa17a96.js"),[]),"./i18n/nl.json":()=>R(()=>import("./nl.es-f5998f61.js"),[]),"./i18n/no.json":()=>R(()=>import("./no.es-7a7b8685.js"),[]),"./i18n/pl.json":()=>R(()=>import("./pl.es-2dc4cbea.js"),[]),"./i18n/pt-br.json":()=>R(()=>import("./pt-br.es-82c2bfad.js"),[]),"./i18n/ro.json":()=>R(()=>import("./ro.es-0b230c59.js"),[]),"./i18n/ru.json":()=>R(()=>import("./ru.es-3bc3c295.js"),[]),"./i18n/sk.json":()=>R(()=>import("./sk.es-477d958c.js"),[]),"./i18n/sl.json":()=>R(()=>import("./sl.es-7f9e39ca.js"),[]),"./i18n/sq.json":()=>R(()=>import("./sq.es-484abfbf.js"),[]),"./i18n/sr.json":()=>R(()=>import("./sr.es-79173882.js"),[]),"./i18n/sv.json":()=>R(()=>import("./sv.es-cc28424b.js"),[]),"./i18n/tr.json":()=>R(()=>import("./tr.es-73d31d0a.js"),[]),"./i18n/uk.json":()=>R(()=>import("./uk.es-72aa5132.js"),[]),"./i18n/vi.json":()=>R(()=>import("./vi.es-e48f04c7.js"),[]),"./i18n/zh-cn.json":()=>R(()=>import("./zh-cn.es-d3b0ce92.js"),[]),"./i18n/zh-hk.json":()=>R(()=>import("./zh-hk.es-f0804a56.js"),[])}),`./i18n/${t}.json`).then(e=>{this.texts=Object.assign({},lt,e.default),this.utils.date.updateTexts(this.texts)})},loadDragAndDrop(){R(()=>import("./drag-and-drop.es-801b9187.js"),[]).then(t=>{const{DragAndDrop:e}=t;this.modules.dnd=new e(this)}).catch(()=>console.warn("Vue Cal: Missing drag & drop module."))},validateView(t){return Vs.includes(t)||(console.error(`Vue Cal: invalid active-view parameter provided: "${t}".
A valid view must be one of: ${Vs.join(", ")}.`),t="week"),this.enabledViews.includes(t)||(console.warn(`Vue Cal: the provided active-view "${t}" is disabled. Using the "${this.enabledViews[0]}" view instead.`),t=this.enabledViews[0]),t},switchToNarrowerView(t=null){this.transitionDirection="right";const e=this.enabledViews[this.enabledViews.indexOf(this.view.id)+1];e&&this.switchView(e,t)},switchView(t,e=null,n=!1){t=this.validateView(t);const i=this.utils.date,r=this.view.startDate&&this.view.startDate.getTime();if(this.transitions&&n){if(this.view.id===t)return;const a=this.enabledViews;this.transitionDirection=a.indexOf(this.view.id)>a.indexOf(t)?"left":"right"}const s=this.view.id;switch(this.view.events=[],this.view.id=t,this.view.firstCellDate=null,this.view.lastCellDate=null,e||(e=this.view.selectedDate||this.view.startDate),t){case"years":this.view.startDate=new Date(25*Math.floor(e.getFullYear()/25)||2e3,0,1),this.view.endDate=new Date(this.view.startDate.getFullYear()+25,0,1),this.view.endDate.setSeconds(-1);break;case"year":this.view.startDate=new Date(e.getFullYear(),0,1),this.view.endDate=new Date(e.getFullYear()+1,0,1),this.view.endDate.setSeconds(-1);break;case"month":{this.view.startDate=new Date(e.getFullYear(),e.getMonth(),1),this.view.endDate=new Date(e.getFullYear(),e.getMonth()+1,1),this.view.endDate.setSeconds(-1);let a=new Date(this.view.startDate);if(a.getDay()!==(this.startWeekOnSunday?0:1)&&(a=i.getPreviousFirstDayOfWeek(a,this.startWeekOnSunday)),this.view.firstCellDate=a,this.view.lastCellDate=i.addDays(a,41),this.view.lastCellDate.setHours(23,59,59,0),this.hideWeekends){if([0,6].includes(this.view.firstCellDate.getDay())){const o=this.view.firstCellDate.getDay()!==6||this.startWeekOnSunday?1:2;this.view.firstCellDate=i.addDays(this.view.firstCellDate,o)}if([0,6].includes(this.view.startDate.getDay())){const o=this.view.startDate.getDay()===6?2:1;this.view.startDate=i.addDays(this.view.startDate,o)}if([0,6].includes(this.view.lastCellDate.getDay())){const o=this.view.lastCellDate.getDay()!==0||this.startWeekOnSunday?1:2;this.view.lastCellDate=i.subtractDays(this.view.lastCellDate,o)}if([0,6].includes(this.view.endDate.getDay())){const o=this.view.endDate.getDay()===0?2:1;this.view.endDate=i.subtractDays(this.view.endDate,o)}}break}case"week":{e=i.getPreviousFirstDayOfWeek(e,this.startWeekOnSunday);const a=this.hideWeekends?5:7;this.view.startDate=this.hideWeekends&&this.startWeekOnSunday?i.addDays(e,1):e,this.view.startDate.setHours(0,0,0,0),this.view.endDate=i.addDays(e,a),this.view.endDate.setSeconds(-1);break}case"day":this.view.startDate=e,this.view.startDate.setHours(0,0,0,0),this.view.endDate=new Date(e),this.view.endDate.setHours(23,59,59,0)}this.addEventsToView();const l=this.view.startDate&&this.view.startDate.getTime();if((s!==t||l!==r)&&(this.$emit("update:activeView",t),this.ready)){const a=this.view.startDate,o={view:t,startDate:a,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate,outOfScopeEvents:this.view.outOfScopeEvents.map(this.cleanupEvent)}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:i.getWeek(this.startWeekOnSunday?i.addDays(a,1):a)}:{}};this.$emit("view-change",o)}},previous(){this.previousNext(!1)},next(){this.previousNext()},previousNext(t=!0){const e=this.utils.date;this.transitionDirection=t?"right":"left";const n=t?1:-1;let i=null;const{startDate:r,id:s}=this.view;switch(s){case"years":i=new Date(r.getFullYear()+25*n,0,1);break;case"year":i=new Date(r.getFullYear()+1*n,1,1);break;case"month":i=new Date(r.getFullYear(),r.getMonth()+1*n,1);break;case"week":i=e[t?"addDays":"subtractDays"](e.getPreviousFirstDayOfWeek(r,this.startWeekOnSunday),7);break;case"day":i=e[t?"addDays":"subtractDays"](r,1);const l=i.getDay(),a=this.startWeekOnSunday?l:(l||7)-1;if(this.weekDays[a].hide){const o=this.weekDays.map((d,u)=>({...d,i:u}));let c=0;t?([...o.slice(a),...o].find(d=>(c++,!d.hide)).i,c--):[...o,...o.slice(0,a)].reverse().find(d=>(c++,!d.hide)).i,i=e[t?"addDays":"subtractDays"](i,c)}}i&&this.switchView(s,i)},addEventsToView(t=[]){const e=this.utils.event,{startDate:n,endDate:i,firstCellDate:r,lastCellDate:s}=this.view;if(t.length||(this.view.events=[]),!(t=t.length?t:[...this.mutableEvents])||this.isYearsOrYearView&&!this.eventsCountOnYearView)return;let l=t.filter(a=>e.eventInRange(a,n,i));this.isYearsOrYearView||this.isMonthView&&!this.eventsOnMonthView||(l=l.map(a=>a.daysCount>1?e.createEventSegments(a,r||n,s||i):a)),this.view.events.push(...l),this.isMonthView&&(this.view.outOfScopeEvents=[],t.forEach(a=>{(e.eventInRange(a,r,n)||e.eventInRange(a,i,s))&&(this.view.events.some(o=>o._eid===a._eid)||this.view.outOfScopeEvents.push(a))}))},findAncestor(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t},isDOMElementAnEvent(t){return t.classList.contains("vuecal__event")||this.findAncestor(t,"vuecal__event")},onMouseMove(t){const{resizeAnEvent:e,dragAnEvent:n,dragCreateAnEvent:i}=this.domEvents;(e._eid!==null||n._eid!==null||i.start)&&(t.preventDefault(),e._eid?this.eventResizing(t):this.dragToCreateEvent&&i.start&&this.eventDragCreation(t))},onMouseUp(t){const{focusAnEvent:e,resizeAnEvent:n,clickHoldAnEvent:i,clickHoldACell:r,dragCreateAnEvent:s}=this.domEvents,{_eid:l}=i,{_eid:a}=n;let o=!1;const{event:c,start:d}=s,u=this.isDOMElementAnEvent(t.target),h=e.mousedUp;if(e.mousedUp=!1,u&&(this.domEvents.cancelClickEventCreation=!0),r.eventCreated)return;if(a){const{originalEnd:p,originalEndTimeMinutes:y,endTimeMinutes:v}=n,D=this.view.events.find(E=>E._eid===n._eid);if(o=v&&v!==y,D&&D.end.getTime()!==p.getTime()){const E=this.mutableEvents.find(V=>V._eid===n._eid);E.endTimeMinutes=D.endTimeMinutes,E.end=D.end;const S=this.cleanupEvent(D),C={...this.cleanupEvent(D),end:p,endTimeMinutes:D.originalEndTimeMinutes};this.$emit("event-duration-change",{event:S,oldDate:n.originalEnd,originalEvent:C}),this.$emit("event-change",{event:S,originalEvent:C})}D&&(D.resizing=!1),n._eid=null,n.start=null,n.split=null,n.segment=null,n.originalEndTimeMinutes=null,n.originalEnd=null,n.endTimeMinutes=null,n.startCell=null,n.endCell=null}else d&&(c&&(this.emitWithEvent("event-drag-create",c),s.event.resizing=!1),s.start=null,s.split=null,s.event=null);u||a||this.unfocusEvent(),i.timeoutId&&!l&&(clearTimeout(i.timeoutId),i.timeoutId=null),r.timeoutId&&(clearTimeout(r.timeoutId),r.timeoutId=null);const f=typeof this.onEventClick=="function";if(h&&!o&&!l&&!c&&f){let p=this.view.events.find(y=>y._eid===e._eid);return!p&&this.isMonthView&&(p=this.view.outOfScopeEvents.find(y=>y._eid===e._eid)),p&&this.onEventClick(p,t)}},onKeyUp(t){t.keyCode===27&&this.cancelDelete()},eventResizing(t){const{resizeAnEvent:e}=this.domEvents,n=this.view.events.find(c=>c._eid===e._eid)||{segments:{}},{minutes:i,cursorCoords:r}=this.minutesAtCursor(t),s=n.segments&&n.segments[e.segment],{date:l,event:a}=this.utils,o=Math.max(i,this.timeFrom+1,(s||n).startTimeMinutes+1);if(n.endTimeMinutes=e.endTimeMinutes=o,this.snapToTime){const c=n.endTimeMinutes+this.snapToTime/2;n.endTimeMinutes=c-c%this.snapToTime}if(s&&(s.endTimeMinutes=n.endTimeMinutes),n.end.setHours(0,n.endTimeMinutes,n.endTimeMinutes===1440?-1:0,0),this.resizeX&&this.isWeekView){n.daysCount=l.countDays(n.start,n.end);const c=this.cellsEl,d=c.offsetWidth/c.childElementCount,u=Math.floor(r.x/d);if(e.startCell===null&&(e.startCell=u-(n.daysCount-1)),e.endCell!==u){e.endCell=u;const h=l.addDays(n.start,u-e.startCell),f=Math.max(l.countDays(n.start,h),1);if(f!==n.daysCount){let p=null;p=f>n.daysCount?a.addEventSegment(n):a.removeEventSegment(n),e.segment=p,n.endTimeMinutes+=.001}}}this.$emit("event-resizing",{_eid:n._eid,end:n.end,endTimeMinutes:n.endTimeMinutes})},eventDragCreation(t){const{dragCreateAnEvent:e}=this.domEvents,{start:n,startCursorY:i,split:r}=e,s=new Date(n),{minutes:l,cursorCoords:{y:a}}=this.minutesAtCursor(t);if(e.event||!(Math.abs(i-a)<this.dragToCreateThreshold))if(e.event){if(s.setHours(0,l,l===1440?-1:0,0),this.snapToTime){let d=60*s.getHours()+s.getMinutes();const u=d+this.snapToTime/2;d=u-u%this.snapToTime,s.setHours(0,d,0,0)}const o=n<s,{event:c}=e;c.start=o?n:s,c.end=o?s:n,c.startTimeMinutes=60*c.start.getHours()+c.start.getMinutes(),c.endTimeMinutes=60*c.end.getHours()+c.end.getMinutes()}else{if(e.event=this.utils.event.createAnEvent(n,1,{split:r}),!e.event)return e.start=null,e.split=null,void(e.event=null);e.event.resizing=!0}},unfocusEvent(){const{focusAnEvent:t,clickHoldAnEvent:e}=this.domEvents,n=this.view.events.find(i=>i._eid===(t._eid||e._eid));t._eid=null,e._eid=null,n&&(n.focused=!1,n.deleting=!1)},cancelDelete(){const{clickHoldAnEvent:t}=this.domEvents;if(t._eid){const e=this.view.events.find(n=>n._eid===t._eid);e&&(e.deleting=!1),t._eid=null,t.timeoutId=null}},onEventTitleBlur(t,e){if(e.title===t.target.innerHTML)return;const n=e.title;e.title=t.target.innerHTML;const i=this.cleanupEvent(e);this.$emit("event-title-change",{event:i,oldTitle:n}),this.$emit("event-change",{event:i,originalEvent:{...i,title:n}})},updateMutableEvents(){const t=this.utils.date;this.mutableEvents=[],this.events.forEach(e=>{const n=typeof e.start=="string"?t.stringToDate(e.start):e.start,i=t.formatDateLite(n),r=t.dateToMinutes(n);let s=null;typeof e.end=="string"&&e.end.includes("24:00")?(s=new Date(e.end.replace(" 24:00","")),s.setHours(23,59,59,0)):s=typeof e.end=="string"?t.stringToDate(e.end):e.end;let l=t.formatDateLite(s),a=t.dateToMinutes(s);a&&a!==1440||(!this.time||typeof e.end=="string"&&e.end.length===10?s.setHours(23,59,59,0):s.setSeconds(s.getSeconds()-1),l=t.formatDateLite(s),a=1440);const o=i!==l;e=Object.assign({...this.utils.event.eventDefaults},e,{_eid:`${this._.uid}_${this.eventIdIncrement++}`,segments:o?{}:null,start:n,startTimeMinutes:r,end:s,endTimeMinutes:a,daysCount:o?t.countDays(n,s):1,class:e.class}),this.mutableEvents.push(e)})},minutesAtCursor(t){return this.utils.cell.minutesAtCursor(t)},createEvent(t,e,n={}){return this.utils.event.createAnEvent(t,e,n)},cleanupEvent(t){return t={...t},["segments","deletable","deleting","titleEditable","resizable","resizing","draggable","dragging","draggingStatic","focused"].forEach(e=>{e in t&&delete t[e]}),t.repeat||delete t.repeat,t},emitWithEvent(t,e){this.$emit(t,this.cleanupEvent(e))},updateSelectedDate(t){if((t=t&&typeof t=="string"?this.utils.date.stringToDate(t):new Date(t))&&t instanceof Date){const{selectedDate:e}=this.view;e&&(this.transitionDirection=e.getTime()>t.getTime()?"left":"right"),t.setHours(0,0,0,0),e&&e.getTime()===t.getTime()||(this.view.selectedDate=t),this.switchView(this.view.id)}this.$emit("update:selected-date",this.view.selectedDate)},getWeekNumber(t){const e=this.utils.date,n=this.firstCellDateWeekNumber+t,i=this.startWeekOnSunday?1:0;return n>52?e.getWeek(e.addDays(this.view.firstCellDate,7*t+i)):n},timeTick(){this.now=new Date,this.timeTickerIds[1]=setTimeout(this.timeTick,6e4)},updateDateTexts(){this.utils.date.updateTexts(this.texts)},alignWithScrollbar(){if(document.getElementById("vuecal-align-with-scrollbar"))return;const t=this.$refs.vuecal.getElementsByClassName("vuecal__scrollbar-check")[0],e=t.offsetWidth-t.children[0].offsetWidth;if(e){const n=document.createElement("style");n.id="vuecal-align-with-scrollbar",n.type="text/css",n.innerHTML=`.vuecal--view-with-time .vuecal__weekdays-headings,.vuecal--view-with-time .vuecal__all-day {padding-right: ${e}px}`,document.head.appendChild(n)}},cellOrSplitHasEvents:(t,e=null)=>t.length&&(!e&&t.length||e&&t.some(n=>n.split===e.id))},created(){this.utils.cell=new sp(this),this.utils.event=new rp(this,this.utils.date),this.loadLocale(this.locale),this.editEvents.drag&&this.loadDragAndDrop(),this.updateMutableEvents(this.events),this.view.id=this.currentView,this.selectedDate?this.updateSelectedDate(this.selectedDate):(this.view.selectedDate=new Date,this.switchView(this.currentView)),this.time&&this.watchRealTime&&(this.timeTickerIds[0]=setTimeout(this.timeTick,1e3*(60-this.now.getSeconds())))},mounted(){const t=this.utils.date,e="ontouchstart"in window,{resize:n,drag:i,create:r,delete:s,title:l}=this.editEvents,a=this.onEventClick&&typeof this.onEventClick=="function";(n||i||r||s||l||a)&&window.addEventListener(e?"touchend":"mouseup",this.onMouseUp),(n||i||r&&this.dragToCreateEvent)&&window.addEventListener(e?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),l&&window.addEventListener("keyup",this.onKeyUp),e&&(this.$refs.vuecal.oncontextmenu=function(d){d.preventDefault(),d.stopPropagation()}),this.hideBody||this.alignWithScrollbar();const o=this.view.startDate,c={view:this.view.id,startDate:o,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:t.getWeek(this.startWeekOnSunday?t.addDays(o,1):o)}:{}};this.$emit("ready",c),this.ready=!0},beforeUnmount(){const t="ontouchstart"in window;window.removeEventListener(t?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),window.removeEventListener(t?"touchend":"mouseup",this.onMouseUp),window.removeEventListener("keyup",this.onKeyUp),this.timeTickerIds[0]&&clearTimeout(this.timeTickerIds[0]),this.timeTickerIds[1]&&clearTimeout(this.timeTickerIds[1]),this.timeTickerIds=[null,null]},computed:{editEvents(){return this.editableEvents&&typeof this.editableEvents=="object"?{title:!!this.editableEvents.title,drag:!!this.editableEvents.drag,resize:!!this.editableEvents.resize,create:!!this.editableEvents.create,delete:!!this.editableEvents.delete}:{title:!!this.editableEvents,drag:!!this.editableEvents,resize:!!this.editableEvents,create:!!this.editableEvents,delete:!!this.editableEvents}},views(){return{years:{label:this.texts.years,enabled:!this.disableViews.includes("years")},year:{label:this.texts.year,enabled:!this.disableViews.includes("year")},month:{label:this.texts.month,enabled:!this.disableViews.includes("month")},week:{label:this.texts.week,enabled:!this.disableViews.includes("week")},day:{label:this.texts.day,enabled:!this.disableViews.includes("day")}}},currentView(){return this.validateView(this.activeView)},enabledViews(){return Object.keys(this.views).filter(t=>this.views[t].enabled)},hasTimeColumn(){return this.time&&this.isWeekOrDayView},isShortMonthView(){return this.isMonthView&&this.eventsOnMonthView==="short"},firstCellDateWeekNumber(){const t=this.utils.date,e=this.view.firstCellDate;return t.getWeek(this.startWeekOnSunday?t.addDays(e,1):e)},timeCells(){const t=[];for(let e=this.timeFrom,n=this.timeTo;e<n;e+=this.timeStep)t.push({hours:Math.floor(e/60),minutes:e%60,label:this.utils.date.formatTime(e,this.TimeFormat),value:e});return t},TimeFormat(){return this.timeFormat||(this.twelveHour?"h:mm{am}":"HH:mm")},daySplits(){return(this.splitDays.filter(t=>!t.hide)||[]).map((t,e)=>({...t,id:t.id||e+1}))},hasSplits(){return this.daySplits.length&&this.isWeekOrDayView},hasShortEvents(){return this.showAllDayEvents==="short"},cellOrSplitMinWidth(){let t=null;return this.hasSplits&&this.minSplitWidth?t=this.visibleDaysCount*this.minSplitWidth*this.daySplits.length:this.minCellWidth&&this.isWeekView&&(t=this.visibleDaysCount*this.minCellWidth),t},allDayBar(){let t=this.allDayBarHeight||null;return t&&!isNaN(t)&&(t+="px"),{cells:this.viewCells,options:this.$props,label:this.texts.allDay,shortEvents:this.hasShortEvents,daySplits:this.hasSplits&&this.daySplits||[],cellOrSplitMinWidth:this.cellOrSplitMinWidth,height:t}},minTimestamp(){let t=null;return this.minDate&&typeof this.minDate=="string"?t=this.utils.date.stringToDate(this.minDate):this.minDate&&this.minDate instanceof Date&&(t=this.minDate),t?t.getTime():null},maxTimestamp(){let t=null;return this.maxDate&&typeof this.maxDate=="string"?t=this.utils.date.stringToDate(this.maxDate):this.maxDate&&this.minDate instanceof Date&&(t=this.maxDate),t?t.getTime():null},weekDays(){let{weekDays:t,weekDaysShort:e=[]}=this.texts;return t=t.slice(0).map((n,i)=>({label:n,...e.length?{short:e[i]}:{},hide:this.hideWeekends&&i>=5||this.hideWeekdays.length&&this.hideWeekdays.includes(i+1)})),this.startWeekOnSunday&&t.unshift(t.pop()),t},weekDaysInHeader(){return this.isMonthView||this.isWeekView&&!this.minCellWidth&&!(this.hasSplits&&this.minSplitWidth)},months(){return this.texts.months.map(t=>({label:t}))},specialDayHours(){return this.specialHours&&Object.keys(this.specialHours).length?Array(7).fill("").map((t,e)=>{let n=this.specialHours[e+1]||[];return Array.isArray(n)||(n=[n]),t=[],n.forEach(({from:i,to:r,class:s,label:l},a)=>{t[a]={day:e+1,from:[null,void 0].includes(i)?null:1*i,to:[null,void 0].includes(r)?null:1*r,class:s||"",label:l||""}}),t}):{}},viewTitle(){const t=this.utils.date;let e="";const n=this.view.startDate,i=n.getFullYear(),r=n.getMonth();switch(this.view.id){case"years":e=this.texts.years;break;case"year":e=i;break;case"month":e=`${this.months[r].label} ${i}`;break;case"week":{const s=this.view.endDate,l=n.getFullYear();let a=this.texts.months[n.getMonth()];this.xsmall&&(a=a.substring(0,3));let o=`${a} ${l}`;if(s.getMonth()!==n.getMonth()){const c=s.getFullYear();let d=this.texts.months[s.getMonth()];this.xsmall&&(d=d.substring(0,3)),o=l===c?`${a} - ${d} ${l}`:this.small?`${a.substring(0,3)} ${l} - ${d.substring(0,3)} ${c}`:`${a} ${l} - ${d} ${c}`}e=`${this.texts.week} ${t.getWeek(this.startWeekOnSunday?t.addDays(n,1):n)} (${o})`;break}case"day":e=this.utils.date.formatDate(n,this.texts.dateFormat,this.texts)}return e},viewCells(){const t=this.utils.date;let e=[],n=null,i=!1;this.watchRealTime||(this.now=new Date);const r=this.now;switch(this.view.id){case"years":n=this.view.startDate.getFullYear(),e=Array.apply(null,Array(25)).map((s,l)=>{const a=new Date(n+l,0,1),o=new Date(n+l+1,0,1);return o.setSeconds(-1),{startDate:a,formattedDate:t.formatDateLite(a),endDate:o,content:n+l,current:n+l===r.getFullYear()}});break;case"year":n=this.view.startDate.getFullYear(),e=Array.apply(null,Array(12)).map((s,l)=>{const a=new Date(n,l,1),o=new Date(n,l+1,1);return o.setSeconds(-1),{startDate:a,formattedDate:t.formatDateLite(a),endDate:o,content:this.xsmall?this.months[l].label.substr(0,3):this.months[l].label,current:l===r.getMonth()&&n===r.getFullYear()}});break;case"month":{const s=this.view.startDate.getMonth(),l=new Date(this.view.firstCellDate);i=!1,e=Array.apply(null,Array(42)).map((a,o)=>{const c=t.addDays(l,o),d=new Date(c);d.setHours(23,59,59,0);const u=!i&&t.isToday(c)&&!i++;return{startDate:c,formattedDate:t.formatDateLite(c),endDate:d,content:c.getDate(),today:u,outOfScope:c.getMonth()!==s,class:`vuecal__cell--day${c.getDay()||7}`}}),(this.hideWeekends||this.hideWeekdays.length)&&(e=e.filter(a=>{const o=a.startDate.getDay()||7;return!(this.hideWeekends&&o>=6||this.hideWeekdays.length&&this.hideWeekdays.includes(o))}));break}case"week":{i=!1;const s=this.view.startDate,l=this.weekDays;e=l.map((a,o)=>{const c=t.addDays(s,this.startWeekOnSunday?o-1:o),d=new Date(c);d.setHours(23,59,59,0);const u=(c.getDay()||7)-1;return{startDate:c,formattedDate:t.formatDateLite(c),endDate:d,today:!i&&t.isToday(c)&&!i++,specialHours:this.specialDayHours[u]||[]}}).filter((a,o)=>!l[o].hide);break}case"day":{const s=this.view.startDate,l=new Date(this.view.startDate);l.setHours(23,59,59,0);const a=(s.getDay()||7)-1;e=[{startDate:s,formattedDate:t.formatDateLite(s),endDate:l,today:t.isToday(s),specialHours:this.specialDayHours[a]||[]}];break}}return e},visibleDaysCount(){return this.isDayView?1:7-this.weekDays.reduce((t,e)=>t+e.hide,0)},cellWidth(){return 100/this.visibleDaysCount},cssClasses(){const{resizeAnEvent:t,dragAnEvent:e,dragCreateAnEvent:n}=this.domEvents;return{[`vuecal--${this.view.id}-view`]:!0,[`vuecal--${this.locale}`]:this.locale,"vuecal--no-time":!this.time,"vuecal--view-with-time":this.hasTimeColumn,"vuecal--week-numbers":this.showWeekNumbers&&this.isMonthView,"vuecal--twelve-hour":this.twelveHour,"vuecal--click-to-navigate":this.clickToNavigate,"vuecal--hide-weekends":this.hideWeekends,"vuecal--split-days":this.hasSplits,"vuecal--sticky-split-labels":this.hasSplits&&this.stickySplitLabels,"vuecal--overflow-x":this.minCellWidth&&this.isWeekView||this.hasSplits&&this.minSplitWidth,"vuecal--small":this.small,"vuecal--xsmall":this.xsmall,"vuecal--resizing-event":t._eid,"vuecal--drag-creating-event":n.event,"vuecal--dragging-event":e._eid,"vuecal--events-on-month-view":this.eventsOnMonthView,"vuecal--short-events":this.isMonthView&&this.eventsOnMonthView==="short","vuecal--has-touch":typeof window<"u"&&"ontouchstart"in window}},isYearsOrYearView(){return["years","year"].includes(this.view.id)},isYearsView(){return this.view.id==="years"},isYearView(){return this.view.id==="year"},isMonthView(){return this.view.id==="month"},isWeekOrDayView(){return["week","day"].includes(this.view.id)},isWeekView(){return this.view.id==="week"},isDayView(){return this.view.id==="day"}},watch:{events:{handler(t,e){this.updateMutableEvents(t),this.addEventsToView()},deep:!0},locale(t){this.loadLocale(t)},selectedDate(t){this.updateSelectedDate(t)},activeView(t){this.switchView(t)}}},cm=Ke(om,[["render",function(t,e,n,i,r,s){const l=ee("vuecal-header"),a=ee("all-day-bar"),o=ee("weekdays-headings"),c=ee("vuecal-cell");return _(),A("div",{class:J(["vuecal__flex vuecal",s.cssClasses]),column:"",ref:"vuecal",lang:n.locale},[b(l,{options:t.$props,"edit-events":s.editEvents,"view-props":{views:s.views,weekDaysInHeader:s.weekDaysInHeader},"week-days":s.weekDays,"has-splits":s.hasSplits,"day-splits":s.daySplits,"switch-to-narrower-view":s.switchToNarrowerView},Vn({"arrow-prev":w(()=>[H(t.$slots,"arrow-prev",{},()=>[G(" "),Op,G(" ")])]),"arrow-next":w(()=>[H(t.$slots,"arrow-next",{},()=>[G(" "),Np,G(" ")])]),"today-button":w(()=>[H(t.$slots,"today-button",{},()=>[P("span",Hp,I(r.texts.today),1)])]),title:w(()=>[H(t.$slots,"title",{title:s.viewTitle,view:r.view},()=>[G(I(s.viewTitle),1)])]),_:2},[t.$slots["weekday-heading"]?{name:"weekday-heading",fn:w(({heading:d,view:u})=>[H(t.$slots,"weekday-heading",{heading:d,view:u})]),key:"0"}:void 0,t.$slots["split-label"]?{name:"split-label",fn:w(({split:d})=>[H(t.$slots,"split-label",{split:d,view:r.view.id})]),key:"1"}:void 0]),1032,["options","edit-events","view-props","week-days","has-splits","day-splits","switch-to-narrower-view"]),n.hideBody?k("",!0):(_(),A("div",Pp,[b(jt,{name:`slide-fade--${r.transitionDirection}`,appear:n.transitions},{default:w(()=>[(_(),A("div",{class:"vuecal__flex",style:{"min-width":"100%"},key:!!n.transitions&&r.view.id,column:""},[n.showAllDayEvents&&s.hasTimeColumn&&(!s.cellOrSplitMinWidth||s.isDayView&&!n.minSplitWidth)?(_(),j(a,Ci(ue({key:0},s.allDayBar)),{event:w(({event:d,view:u})=>[H(t.$slots,"event",{view:u,event:d},()=>[s.editEvents.title&&d.titleEditable?(_(),A("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>s.onEventTitleBlur(h,d),innerHTML:d.title},null,40,Vp)):d.title?(_(),A("div",{key:1,class:"vuecal__event-title",innerHTML:d.title},null,8,Bp)):k("",!0),!d.content||s.hasShortEvents||s.isShortMonthView?k("",!0):(_(),A("div",{key:2,class:"vuecal__event-content",innerHTML:d.content},null,8,Lp))])]),_:3},16)):k("",!0),P("div",{class:J(["vuecal__bg",{vuecal__flex:!s.hasTimeColumn}]),column:""},[P("div",Wp,[s.hasTimeColumn?(_(),A("div",jp,[n.showAllDayEvents&&s.cellOrSplitMinWidth&&(!s.isDayView||n.minSplitWidth)?(_(),A("div",{key:0,class:"vuecal__all-day-text",style:ae({height:s.allDayBar.height})},[P("span",null,I(r.texts.allDay),1)],4)):k("",!0),(_(!0),A(F,null,Z(s.timeCells,(d,u)=>(_(),A("div",{class:"vuecal__time-cell",key:u,style:ae(`height: ${n.timeCellHeight}px`)},[H(t.$slots,"time-cell",{hours:d.hours,minutes:d.minutes},()=>[Fp,P("span",Up,I(d.label),1)])],4))),128))])):k("",!0),n.showWeekNumbers&&s.isMonthView?(_(),A("div",zp,[(_(),A(F,null,Z(6,d=>P("div",{class:"vuecal__flex vuecal__week-number-cell",key:d,grow:""},[H(t.$slots,"week-number-cell",{week:s.getWeekNumber(d-1)},()=>[G(I(s.getWeekNumber(d-1)),1)])])),64))])):k("",!0),P("div",{class:J(["vuecal__flex vuecal__cells",`${r.view.id}-view`]),grow:"",wrap:!s.cellOrSplitMinWidth||!s.isWeekView,column:!!s.cellOrSplitMinWidth},[s.cellOrSplitMinWidth&&s.isWeekView?(_(),j(o,{key:0,"transition-direction":r.transitionDirection,"week-days":s.weekDays,"switch-to-narrower-view":s.switchToNarrowerView,style:ae(s.cellOrSplitMinWidth?`min-width: ${s.cellOrSplitMinWidth}px`:"")},Vn({_:2},[t.$slots["weekday-heading"]?{name:"weekday-heading",fn:w(({heading:d,view:u})=>[H(t.$slots,"weekday-heading",{heading:d,view:u})]),key:"0"}:void 0,t.$slots["split-label"]?{name:"split-label",fn:w(({split:d})=>[H(t.$slots,"split-label",{split:d,view:r.view.id})]),key:"1"}:void 0]),1032,["transition-direction","week-days","switch-to-narrower-view","style"])):s.hasSplits&&n.stickySplitLabels&&n.minSplitWidth?(_(),A("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",style:ae(s.cellOrSplitMinWidth?`min-width: ${s.cellOrSplitMinWidth}px`:"")},[(_(!0),A(F,null,Z(s.daySplits,(d,u)=>(_(),A("div",{class:J(["day-split-header",d.class||!1]),key:u},[H(t.$slots,"split-label",{split:d,view:r.view.id},()=>[G(I(d.label),1)])],2))),128))],4)):k("",!0),n.showAllDayEvents&&s.hasTimeColumn&&(s.isWeekView&&s.cellOrSplitMinWidth||s.isDayView&&s.hasSplits&&n.minSplitWidth)?(_(),j(a,Ci(ue({key:2},s.allDayBar)),{event:w(({event:d,view:u})=>[H(t.$slots,"event",{view:u,event:d},()=>[s.editEvents.title&&d.titleEditable?(_(),A("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>s.onEventTitleBlur(h,d),innerHTML:d.title},null,40,Yp)):d.title?(_(),A("div",{key:1,class:"vuecal__event-title",innerHTML:d.title},null,8,Gp)):k("",!0),!d.content||s.hasShortEvents||s.isShortMonthView?k("",!0):(_(),A("div",{key:2,class:"vuecal__event-content",innerHTML:d.content},null,8,qp))])]),_:3},16)):k("",!0),P("div",{class:"vuecal__flex",ref:d=>r.cellsEl=d,grow:"",wrap:!s.cellOrSplitMinWidth||!s.isWeekView,style:ae(s.cellOrSplitMinWidth?`min-width: ${s.cellOrSplitMinWidth}px`:"")},[(_(!0),A(F,null,Z(s.viewCells,(d,u)=>(_(),j(c,{key:u,options:t.$props,"edit-events":s.editEvents,data:d,"cell-width":n.hideWeekdays.length&&(s.isWeekView||s.isMonthView)&&s.cellWidth,"min-timestamp":s.minTimestamp,"max-timestamp":s.maxTimestamp,"cell-splits":s.hasSplits&&s.daySplits||[]},{"cell-content":w(({events:h,split:f,selectCell:p})=>[H(t.$slots,"cell-content",{cell:d,view:r.view,goNarrower:p,events:h},()=>[f&&!n.stickySplitLabels?(_(),A("div",{key:0,class:"split-label",innerHTML:f.label},null,8,Zp)):k("",!0),d.content?(_(),A("div",{key:1,class:"vuecal__cell-date",innerHTML:d.content},null,8,Xp)):k("",!0),(s.isMonthView&&!n.eventsOnMonthView||s.isYearsOrYearView&&n.eventsCountOnYearView)&&h.length?(_(),A("div",Jp,[H(t.$slots,"events-count",{view:r.view,events:h},()=>[G(I(h.length),1)])])):k("",!0),!s.cellOrSplitHasEvents(h,f)&&s.isWeekOrDayView?(_(),A("div",Kp,[H(t.$slots,"no-event",{},()=>[G(I(r.texts.noEvent),1)])])):k("",!0)])]),event:w(({event:h,view:f})=>[H(t.$slots,"event",{view:f,event:h},()=>[s.editEvents.title&&h.titleEditable?(_(),A("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:p=>s.onEventTitleBlur(p,h),innerHTML:h.title},null,40,em)):h.title?(_(),A("div",{key:1,class:"vuecal__event-title",innerHTML:h.title},null,8,tm)):k("",!0),!n.time||h.allDay||s.isMonthView&&(h.allDay||n.showAllDayEvents==="short")||s.isShortMonthView?k("",!0):(_(),A("div",nm,[G(I(r.utils.date.formatTime(h.start,s.TimeFormat)),1),h.endTimeMinutes?(_(),A("span",im," - "+I(r.utils.date.formatTime(h.end,s.TimeFormat,null,!0)),1)):k("",!0),h.daysCount>1&&(h.segments[d.formattedDate]||{}).isFirstDay?(_(),A("small",sm," +"+I(h.daysCount-1)+I((r.texts.day[0]||"").toLowerCase()),1)):k("",!0)])),!h.content||s.isMonthView&&h.allDay&&n.showAllDayEvents==="short"||s.isShortMonthView?k("",!0):(_(),A("div",{key:3,class:"vuecal__event-content",innerHTML:h.content},null,8,rm))])]),"no-event":w(()=>[H(t.$slots,"no-event",{},()=>[G(I(r.texts.noEvent),1)])]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],12,Qp)],10,$p)])],2)]))]),_:3},8,["name","appear"]),r.ready?k("",!0):(_(),A("div",lm,am))]))],10,Ip)}]]);const dm={components:{VueCal:cm},setup(){const t=O([]);function e(){ce.get("api/general_vacation/generalvacation/").then(i=>{console.log(i.data,"----------------------");for(let r in i.data)r=="План-график"&&i.data[r].map(s=>{t.value.push({name:s.name,start:s.start_work_period,end:s.end_work_period,content:s.name})})})}et(()=>{e()});const n=O(null);return{events:t,selectedDate:n,f_generalvacation:e}}};function um(t,e,n,i,r,s){const l=ee("vue-cal");return _(),j(ie,null,{default:w(()=>[b(te,{class:"flex-column"},{default:w(()=>[b(K,{class:"h-100"},{default:w(()=>[b(l,{locale:"ru",xsmall:"",time:!1,"hide-view-selector":"","disable-views":["years","year","week","day"],"events-count-on-year-view":"","active-view":"month",events:i.events,todayButton:"",onCellFocus:e[1]||(e[1]=a=>i.selectedDate=a)},{"arrow-prev":w(()=>[b(ge,{icon:"mdi-menu-left"})]),"arrow-next":w(()=>[b(ge,{icon:"mdi-menu-right"})]),"today-button":w(()=>[b(Bn,{text:"Сегодня",location:"bottom"},{activator:w(({props:a})=>[b(ge,ue({onClick:e[0]||(e[0]=o=>i.selectedDate=new Date)},a,{icon:"mdi-crosshairs-gps",size:"x-small",class:"pt-1 pr-3",color:"more_details_btn"}),null,16)]),_:1})]),_:1},8,["events"])]),_:1})]),_:1}),b(te,null,{default:w(()=>[b(K,{class:"h-100"},{default:w(()=>[b(l,{locale:"ru",xsmall:"",time:!1,"hide-view-selector":"",todayButton:"",split:"",hideTitleBar:"",events:i.events,"active-view":"day","disable-views":["years","year","month","week"],"selected-date":i.selectedDate},{"arrow-prev":w(()=>[b(ge,{icon:"mdi-menu-left"})]),"arrow-next":w(()=>[b(ge,{icon:"mdi-menu-right"})]),"today-button":w(()=>[b(Bn,{text:"Сегодня",location:"bottom"},{activator:w(({props:a})=>[b(ge,ue(a,{icon:"mdi-crosshairs-gps",size:"x-small",class:"pt-1 pr-3",color:"more_details_btn"}),null,16)]),_:1})]),_:1},8,["events","selected-date"])]),_:1})]),_:1})]),_:1})}const hm=ke(dm,[["render",um]]);const fm={components:{CarouselList:qa,CarouselNumbers:eo,CalendarFull:Ig,NewsListHome:$g,LoadRound:La,DigitalLetna:tp,EventCalendar:hm},setup(){const t=wa(),e=O([]),n=O(null);_a();const i=Ws();et(()=>{r()});const r=()=>{ce.get("api/watcher/selectedlinks/").then(s=>{e.value=s.data})};return{accountStore:i,appStore:t,favoritLinks:r,favorit:e,toggle:n}}};function gm(t,e,n,i,r,s){const l=ee("Carousel-list"),a=ee("event-calendar"),o=ee("digital-letna"),c=ee("News-list-home");return _(),j(zs,{fluid:"",class:"d-flex mx-0"},{default:w(()=>[b(ie,null,{default:w(()=>[b(te,{class:"d-flex flex-column",lg:"7"},{default:w(()=>[b(ie,{class:"flex-grow-0"},{default:w(()=>[b(te,{class:"pr-0 pb-0"},{default:w(()=>[b(l)]),_:1})]),_:1}),b(ie,null,{default:w(()=>[b(te,{class:"pr-0 pt-0 flex-column"},{default:w(()=>[b(K,{class:"h-100 bg-transparent pa-2 d-flex flex-column"},{default:w(()=>[b(ie,{class:"d-flex"},{default:w(()=>[b(te,{class:"flex-column d-flex"},{default:w(()=>[b(a)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),b(te,{class:"flex-column d-flex ma-3"},{default:w(()=>[b(ie,null,{default:w(()=>[b(te,{cols:"3",class:"flex-grow-0 pa-0 pb-3"},{default:w(()=>[b(o)]),_:1}),b(te,{class:"flex-column d-flex pr-0 pt-0 pb-0"},{default:w(()=>[b(K,{class:"flex-column pik overflow-auto"},{default:w(()=>[b(c)]),_:1})]),_:1})]),_:1}),b(ie,{class:"flex-grow-0"},{default:w(()=>[b(te,{class:"pa-0"},{default:w(()=>[b(K,{class:"flex-colmn"},{default:w(()=>[b(Ra,{modelValue:i.toggle,"onUpdate:modelValue":e[0]||(e[0]=d=>i.toggle=d),divided:"",variant:"outlined"},{default:w(()=>[(_(!0),A(F,null,Z(i.favorit,d=>(_(),j(Bn,{key:d,text:d.page,location:"top"},{activator:w(({props:u})=>[b(wt,ue(u,{icon:d.ico,to:d.fullPath}),null,16,["icon","to"])]),_:2},1032,["text"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const Sm=ke(fm,[["render",gm]]);export{Sm as default};