1import{r as w,c as zn,a as Un,j as f,L as Xe,d as ci}from"./vendor-react-Bq0AAjM7.js";import{a as di}from"./LoadFailed-USmzVBxQ.js";import{l as V,bU as ho,eH as po,aU as go,I as Y,J as _e,cq as bn,d_ as Pr,ar as ui,e as Je,aN as mo,aO as vo,aP as bo,aQ as yo,aR as Ao,aS as Eo,ax as jr,bu as fi,a as hi,ac as Fn,$ as xo,a0 as wo,a3 as Co,a4 as So,a5 as Do,a7 as Br,a6 as _o,dN as Ro,a2 as To,dI as ko,g as pi,d as gi,C as jt,bK as Hr,ai as Lr,aj as zr,cY as Mo,V as Gt,bM as No,bO as Io,gX as Oo,b2 as mi,z as Po,db as ut,h7 as jo,dB as Bo,ca as Ho,cb as Lo,cw as zo,cx as Uo,cy as Fo,cH as Wo}from"./main-D49UUfSD.js";import{f as At}from"./index-BJfBsrKE.js";import{c as L}from"./index-mg-HgWsm.js";import{f as le}from"./index-Dh4PUTGt.js";import{bZ as Ee,a2 as rt,t as q,X as se,c0 as st,c1 as vi,c2 as bi,c3 as Vo,s as yi,an as Go,c4 as $o,o as Ai,c5 as qo,x as Qo,c6 as Yo}from"./vendor-misc-DMccS2Mw.js";import{u as Zo}from"./useCurrentMinute-eZrvrBOq.js";import{P as Ur}from"./ProviderConnectButton-DkDt69Df.js";import{u as Ko}from"./useConnectCalendar-EZEGwiGH.js";import{u as Jo}from"./useIntegrationAccessGuard-WuM0inPC.js";import{c as Xo}from"./copyText-0_NNZNe-.js";import{b as el,C as Fr}from"./buildSchedulingLink-DwW_NW6z.js";import{g as $t,a as tl,b as nl,I as St,r as rl,C as sl,c as il}from"./utils-BRCZESoD.js";import{a as ve,C as re,b as al}from"./CalendarEvent-CErJ0TeH.js";import{s as ol}from"./stripHtml-D5Ih8A3w.js";import{g as ll}from"./getRadarMeetingNotesPath-CwLWEHrK.js";import{A as cl}from"./ActionItem-Dq1aVDKK.js";import{D as dl,a as ul,b as fl,c as hl,e as pl}from"./Drawer-DvSV0I9s.js";import"./vendor-runtime-DG-GlVKR.js";import"./index-Dl4pFCyo.js";import"./vendor-icons-DePtd98t.js";import"./vendor-ui-HM9MEgw-.js";import"./vendor-analytics-DaFEZfd9.js";import"./vendor-sentry-BBJkNfRx.js";import"./SeatLocked-w6BrO7Hk.js";import"./useSignInProvider-iuhx0BUw.js";import"./usePaidIntegrationBlockReason-V3k2bmNX.js";import"./pricing2026Copy-B9umRD-S.js";import"./connectedMailboxLimit-DW5QMT-u.js";import"./getLimit-C0UR8BUV.js";import"./useManagedSettingHelpers-DU1ArCmY.js";import"./integrationSettingKey-DoJ8kxoa.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="44fa4b9a-31e8-49a7-a5ec-85e9fdfbfe1b",t._sentryDebugIdIdentifier="sentry-dbid-44fa4b9a-31e8-49a7-a5ec-85e9fdfbfe1b")}catch{}var ln,D,Ei,xi,it,Fe,Wr,wi,Ci,qt={},Si=[],gl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ie(t,e){for(var n in e)t[n]=e[n];return t}function Di(t){var e=t.parentNode;e&&e.removeChild(t)}function p(t,e,n){var r,s,i,a={};for(i in e)i=="key"?r=e[i]:i=="ref"?s=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?ln.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)a[i]===void 0&&(a[i]=t.defaultProps[i]);return Bt(t,a,r,s,null)}function Bt(t,e,n,r,s){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s??++Ei};return s==null&&D.vnode!=null&&D.vnode(i),i}function ge(){return{current:null}}function W(t){return t.children}function ml(t,e,n,r,s){var i;for(i in n)i==="children"||i==="key"||i in e||Qt(t,i,null,n[i],r);for(i in e)s&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===e[i]||Qt(t,i,e[i],n[i],r)}function Vr(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||gl.test(e)?n:n+"px"}function Qt(t,e,n,r,s){var i;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Vr(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Vr(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?$r:Gr,i):t.removeEventListener(e,i?$r:Gr,i);else if(e!=="dangerouslySetInnerHTML"){if(s)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 Gr(t){it=!0;try{return this.l[t.type+!1](D.event?D.event(t):t)}finally{it=!1}}function $r(t){it=!0;try{return this.l[t.type+!0](D.event?D.event(t):t)}finally{it=!1}}function ue(t,e){this.props=t,this.context=e}function vt(t,e){if(e==null)return t.__?vt(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"?vt(t):null}function _i(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 _i(t)}}function vl(t){it?setTimeout(t):wi(t)}function Wn(t){(!t.__d&&(t.__d=!0)&&Fe.push(t)&&!Yt.__r++||Wr!==D.debounceRendering)&&((Wr=D.debounceRendering)||vl)(Yt)}function Yt(){var t,e,n,r,s,i,a,o;for(Fe.sort(function(l,d){return l.__v.__b-d.__v.__b});t=Fe.shift();)t.__d&&(e=Fe.length,r=void 0,s=void 0,a=(i=(n=t).__v).__e,(o=n.__P)&&(r=[],(s=Ie({},i)).__v=i.__v+1,rr(o,i,s,n.__n,o.ownerSVGElement!==void 0,i.__h!=null?[a]:null,r,a??vt(i),i.__h),Ni(r,i),i.__e!=a&&_i(i)),Fe.length>e&&Fe.sort(function(l,d){return l.__v.__b-d.__v.__b}));Yt.__r=0}function Ri(t,e,n,r,s,i,a,o,l,d){var c,g,h,u,m,b,y,A=r&&r.__k||Si,E=A.length;
vendor: 12,717 bytes, line 1
1for(n.__k=[],c=0;c<e.length;c++)if((u=n.__k[c]=(u=e[c])==null||typeof u=="boolean"?null:typeof u=="string"||typeof u=="number"||typeof u=="bigint"?Bt(null,u,null,null,u):Array.isArray(u)?Bt(W,{children:u},null,null,null):u.__b>0?Bt(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):u)!=null){if(u.__=n,u.__b=n.__b+1,(h=A[c])===null||h&&u.key==h.key&&u.type===h.type)A[c]=void 0;else for(g=0;g<E;g++){if((h=A[g])&&u.key==h.key&&u.type===h.type){A[g]=void 0;break}h=null}rr(t,u,h=h||qt,s,i,a,o,l,d),m=u.__e,(g=u.ref)&&h.ref!=g&&(y||(y=[]),h.ref&&y.push(h.ref,null,u),y.push(g,u.__c||m,u)),m!=null?(b==null&&(b=m),typeof u.type=="function"&&u.__k===h.__k?u.__d=l=Ti(u,l,t):l=ki(t,u,h,A,m,l),typeof n.type=="function"&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=t&&(l=vt(h))}for(n.__e=b,c=E;c--;)A[c]!=null&&(typeof n.type=="function"&&A[c].__e!=null&&A[c].__e==n.__d&&(n.__d=Mi(r).nextSibling),Oi(A[c],A[c]));if(y)for(c=0;c<y.length;c++)Ii(y[c],y[++c],y[++c])}function Ti(t,e,n){for(var r,s=t.__k,i=0;s&&i<s.length;i++)(r=s[i])&&(r.__=t,e=typeof r.type=="function"?Ti(r,e,n):ki(n,r,r,s,r.__e,e));return e}function Zt(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){Zt(n,e)}):e.push(t)),e}function ki(t,e,n,r,s,i){var a,o,l;if(e.__d!==void 0)a=e.__d,e.__d=void 0;else if(n==null||s!=i||s.parentNode==null)e:if(i==null||i.parentNode!==t)t.appendChild(s),a=null;else{for(o=i,l=0;(o=o.nextSibling)&&l<r.length;l+=1)if(o==s)break e;t.insertBefore(s,i),a=i}return a!==void 0?a:s.nextSibling}function Mi(t){var e,n,r;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(r=Mi(n)))return r}return null}function rr(t,e,n,r,s,i,a,o,l){var d,c,g,h,u,m,b,y,A,E,R,x,G,I,N,T=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,o=e.__e=n.__e,e.__h=null,i=[o]),(d=D.__b)&&d(e);try{e:if(typeof T=="function"){if(y=e.props,A=(d=T.contextType)&&r[d.__c],E=d?A?A.props.value:d.__:r,n.__c?b=(c=e.__c=n.__c).__=c.__E:("prototype"in T&&T.prototype.render?e.__c=c=new T(y,E):(e.__c=c=new ue(y,E),c.constructor=T,c.render=yl),A&&A.sub(c),c.props=y,c.state||(c.state={}),c.context=E,c.__n=r,g=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),T.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Ie({},c.__s)),Ie(c.__s,T.getDerivedStateFromProps(y,c.__s))),h=c.props,u=c.state,c.__v=e,g)T.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(T.getDerivedStateFromProps==null&&y!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,E),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,E)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(j){j&&(j.__=e)}),R=0;R<c._sb.length;R++)c.__h.push(c._sb[R]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,E),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,u,m)})}if(c.context=E,c.props=y,c.__P=t,x=D.__r,G=0,"prototype"in T&&T.prototype.render){for(c.state=c.__s,c.__d=!1,x&&x(e),d=c.render(c.props,c.state,c.context),I=0;I<c._sb.length;I++)c.__h.push(c._sb[I]);c._sb=[]}else do c.__d=!1,x&&x(e),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++G<25);c.state=c.__s,c.getChildContext!=null&&(r=Ie(Ie({},r),c.getChildContext())),g||c.getSnapshotBeforeUpdate==null||(m=c.getSnapshotBeforeUpdate(h,u)),N=d!=null&&d.type===W&&d.key==null?d.props.children:d,Ri(t,Array.isArray(N)?N:[N],e,n,r,s,i,a,o,l),c.base=e.__e,e.__h=null,c.__h.length&&a.push(c),b&&(c.__E=c.__=null),c.__e=!1}else i==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=bl(n.__e,e,n,r,s,i,a,l);(d=D.diffed)&&d(e)}catch(j){e.__v=null,(l||i!=null)&&(e.__e=o,e.__h=!!l,i[i.indexOf(o)]=null),D.__e(j,e,n)}}function Ni(t,e){D.__c&&D.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){D.__e(r,n.__v)}})}function bl(t,e,n,r,s,i,a,o){var l,d,c,g=n.props,h=e.props,u=e.type,m=0;if(u==="svg"&&(s=!0),i!=null){for(;m<i.length;m++)if((l=i[m])&&"setAttribute"in l==!!u&&(u?l.localName===u:l.nodeType===3)){t=l,i[m]=null;break}}if(t==null){if(u===null)return document.createTextNode(h);t=s?document.createElementNS("http://www.w3.org/2000/svg",u):document.createElement(u,h.is&&h),i=null,o=!1}if(u===null)g===h||o&&t.data===h||(t.data=h);else{if(i=i&&ln.call(t.childNodes),d=(g=n.props||qt).dangerouslySetInnerHTML,c=h.dangerouslySetInnerHTML,!o){if(i!=null)for(g={},m=0;m<t.attributes.length;m++)g[t.attributes[m].name]=t.attributes[m].value;(c||d)&&(c&&(d&&c.__html==d.__html||c.__html===t.innerHTML)||(t.innerHTML=c&&c.__html||""))}if(ml(t,h,g,s,o),c)e.__k=[];else if(m=e.props.children,Ri(t,Array.isArray(m)?m:[m],e,n,r,s&&u!=="foreignObject",i,a,i?i[0]:n.__k&&vt(n,0),o),i!=null)for(m=i.length;m--;)i[m]!=null&&Di(i[m]);o||("value"in h&&(m=h.value)!==void 0&&(m!==t.value||u==="progress"&&!m||u==="option"&&m!==g.value)&&Qt(t,"value",m,g.value,!1),"checked"in h&&(m=h.checked)!==void 0&&m!==t.checked&&Qt(t,"checked",m,g.checked,!1))}return t}function Ii(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){D.__e(r,n)}}function Oi(t,e,n){var r,s;if(D.unmount&&D.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Ii(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){D.__e(i,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(s=0;s<r.length;s++)r[s]&&Oi(r[s],e,n||typeof t.type!="function");n||t.__e==null||Di(t.__e),t.__=t.__e=t.__d=void 0}function yl(t,e,n){return this.constructor(t,n)}function bt(t,e,n){var r,s,i;D.__&&D.__(t,e),s=(r=!1)?null:e.__k,i=[],rr(e,t=e.__k=p(W,null,[t]),s||qt,qt,e.ownerSVGElement!==void 0,s?null:e.firstChild?ln.call(e.childNodes):null,i,s?s.__e:e.firstChild,r),Ni(i,t)}function Al(t,e){var n={__c:e="__cC"+Ci++,__:t,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,i;return this.getChildContext||(s=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&s.some(function(o){o.__e=!0,Wn(o)})},this.sub=function(a){s.push(a);var o=a.componentWillUnmount;a.componentWillUnmount=function(){s.splice(s.indexOf(a),1),o&&o.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}ln=Si.slice,D={__e:function(t,e,n,r){for(var s,i,a;e=e.__;)if((s=e.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(t)),a=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,r||{}),a=s.__d),a)return s.__E=s}catch(o){t=o}throw t}},Ei=0,xi=function(t){return t!=null&&t.constructor===void 0},it=!1,ue.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ie({},this.state),typeof t=="function"&&(t=t(Ie({},n),this.props)),t&&Ie(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Wn(this))},ue.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Wn(this))},ue.prototype.render=W,Fe=[],wi=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Yt.__r=0,Ci=0;var Ae,yn,qr,Pi=[],An=[],Qr=D.__b,Yr=D.__r,Zr=D.diffed,Kr=D.__c,Jr=D.unmount;function El(){for(var t;t=Pi.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ht),t.__H.__h.forEach(Vn),t.__H.__h=[]}catch(e){t.__H.__h=[],D.__e(e,t.__v)}}D.__b=function(t){Ae=null,Qr&&Qr(t)},D.__r=function(t){Yr&&Yr(t);var e=(Ae=t.__c).__H;e&&(yn===Ae?(e.__h=[],Ae.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=An,n.__N=n.i=void 0})):(e.__h.forEach(Ht),e.__h.forEach(Vn),e.__h=[])),yn=Ae},D.diffed=function(t){Zr&&Zr(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Pi.push(e)!==1&&qr===D.requestAnimationFrame||((qr=D.requestAnimationFrame)||xl)(El)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==An&&(n.__=n.__V),n.i=void 0,n.__V=An})),yn=Ae=null},D.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Ht),n.__h=n.__h.filter(function(r){return!r.__||Vn(r)})}catch(r){e.some(function(s){s.__h&&(s.__h=[])}),e=[],D.__e(r,n.__v)}}),Kr&&Kr(t,e)},D.unmount=function(t){Jr&&Jr(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ht(r)}catch(s){e=s}}),n.__H=void 0,e&&D.__e(e,n.__v))};var Xr=typeof requestAnimationFrame=="function";function xl(t){var e,n=function(){clearTimeout(r),Xr&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Xr&&(e=requestAnimationFrame(n))}function Ht(t){var e=Ae,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Ae=e}function Vn(t){var e=Ae;t.__c=t.__(),Ae=e}function wl(t,e){for(var n in e)t[n]=e[n];return t}function es(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function ts(t){this.props=t}(ts.prototype=new ue).isPureReactComponent=!0,ts.prototype.shouldComponentUpdate=function(t,e){return es(this.props,t)||es(this.state,e)};var ns=D.__b;D.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),ns&&ns(t)};var Cl=D.__e;D.__e=function(t,e,n,r){if(t.then){for(var s,i=e;i=i.__;)if((s=i.__c)&&s.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),s.__c(t,e)}Cl(t,e,n,r)};var rs=D.unmount;function ji(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=wl({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return ji(r,e,n)})),t}function Bi(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return Bi(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function En(){this.__u=0,this.t=null,this.__b=null}function Hi(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Dt(){this.u=null,this.o=null}D.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),rs&&rs(t)},(En.prototype=new ue).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=Hi(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,s?s(o):o())};n.__R=a;var o=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=Bi(d,d.__c.__P,d.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}},l=e.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(a,a)},En.prototype.componentWillUnmount=function(){this.t=[]},En.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ji(this.__b,n,r.__O=r.__P)}this.__b=null}var s=e.__a&&p(W,null,t.fallback);return s&&(s.__h=null),[p(W,null,e.__a?null:t.children),s]};var ss=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 Sl(t){return this.getChildContext=function(){return t.context},t.children}function Dl(t){var e=this,n=t.i;e.componentWillUnmount=function(){bt(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,s){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),bt(p(Sl,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function _l(t,e){var n=p(Dl,{__v:t,i:e});return n.containerInfo=e,n}(Dt.prototype=new ue).__a=function(t){var e=this,n=Hi(e.__v),r=e.o.get(t);return r[0]++,function(s){var i=function(){e.props.revealOrder?(r.push(s),ss(e,t,r)):s()};n?n(i):i()}},Dt.prototype.render=function(t){this.u=null,this.o=new Map;var e=Zt(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},Dt.prototype.componentDidUpdate=Dt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){ss(t,n,e)})};var Rl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Tl=/^(?: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]/,kl=typeof document<"u",Ml=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};ue.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(ue.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]}
1,set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var is=D.event;function Nl(){}function Il(){return this.cancelBubble}function Ol(){return this.defaultPrevented}D.event=function(t){return is&&(t=is(t)),t.persist=Nl,t.isPropagationStopped=Il,t.isDefaultPrevented=Ol,t.nativeEvent=t};var as={configurable:!0,get:function(){return this.class}},os=D.vnode;D.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var s=e.indexOf("-")===-1;for(var i in r={},n){var a=n[i];kl&&i==="children"&&e==="noscript"||i==="value"&&"defaultValue"in n&&a==null||(i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!Ml(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():s&&Tl.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():a===null&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=a)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Zt(n.children).forEach(function(o){o.props.selected=r.value.indexOf(o.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=Zt(n.children).forEach(function(o){o.props.selected=r.multiple?r.defaultValue.indexOf(o.props.value)!=-1:r.defaultValue==o.props.value})),t.props=r,n.class!=n.className&&(as.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",as))}t.$$typeof=Rl,os&&os(t)};var ls=D.__r;D.__r=function(t){ls&&ls(t),t.__c};const Li=[],Gn=new Map;function sr(t){Li.push(t),Gn.forEach(e=>{Ui(e,t)})}function Pl(t){t.isConnected&&t.getRootNode&&zi(t.getRootNode())}function zi(t){let e=Gn.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=Bl();n&&(e.nonce=n);const r=t===document?document.head:t,s=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,s)}Gn.set(t,e),jl(e)}}function jl(t){for(const e of Li)Ui(t,e)}function Ui(t,e){const{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((s,i)=>{s=s.trim(),s&&n.insertRule(s+"}",r+i)})}let xn;function Bl(){return xn===void 0&&(xn=Hl()),xn}function Hl(){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"&&zi(document);var Ll
vendor: 14,303 bytes, line 1
1=':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)}';
vendor: 26,646 bytes, line 1
1sr(Ll);class ir{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function zl(t){t.parentNode&&t.parentNode.removeChild(t)}function Se(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(Ul(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function Ul(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function Fl(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let s=0;s<n.length;s+=1){let i=n[s].querySelectorAll(e);for(let a=0;a<i.length;a+=1)r.push(i[a])}return r}const Wl=/(top|left|right|bottom|width|height)$/i;function Vl(t,e){for(let n in e)Fi(t,n,e[n])}function Fi(t,e,n){n==null?t.style[e]="":typeof n=="number"&&Wl.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function Gl(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 cs=0;function cn(){return cs+=1,"fc-dom-"+cs}function $l(t,e){return n=>{let r=Se(n.target,t);r&&e.call(r,n,r)}}function Wi(t,e,n,r){let s=$l(n,r);return t.addEventListener(e,s),()=>{t.removeEventListener(e,s)}}function ql(t,e,n,r){let s;return Wi(t,"mouseover",e,(i,a)=>{if(a!==s){s=a,n(i,a);let o=l=>{s=null,r(l,a),a.removeEventListener("mouseleave",o)};a.addEventListener("mouseleave",o)}})}function Vi(t){return Object.assign({onClick:t},Gi(t))}function Gi(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let ds=0;function qe(){return ds+=1,String(ds)}function Ql(t){let e=[],n=[],r,s;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;r<n.length;r+=1)s=n[r],typeof s=="string"?e.push(s.charAt(0)==="-"?{field:s.substring(1),order:-1}:{field:s,order:1}):typeof s=="function"&&e.push({func:s});return e}function Yl(t,e,n){let r,s;for(r=0;r<n.length;r+=1)if(s=Zl(t,e,n[r]),s)return s;return 0}function Zl(t,e,n){return n.func?n.func(t,e):Kl(t[n.field],e[n.field])*(n.order||1)}function Kl(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 et(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function pt(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,s,i)=>r.replace("$"+i,s||""),t):n}function Lt(t){return t%1===0}function Jl(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 us=["years","months","days","milliseconds"],Xl=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function P(t,e){return typeof t=="string"?ec(t):typeof t=="object"&&t?fs(t):typeof t=="number"?fs({[e||"milliseconds"]:t}):null}function ec(t){let e=Xl.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 fs(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 tc(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function $n(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function nc(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function rc(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function sc(t){return tt(t)/365}function ic(t){return tt(t)/30}function tt(t){return be(t)/864e5}function be(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function ar(t,e){let n=null;for(let r=0;r<us.length;r+=1){let s=us[r];if(e[s]){let i=t[s]/e[s];if(!Lt(i)||n!==null&&n!==i)return null;n=i}else if(t[s])return null}return n}function qn(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 Be(t,e,n){if(t===e)return!0;let r=t.length,s;if(r!==e.length)return!1;for(s=0;s<r;s+=1)if(!(n?n(t[s],e[s]):t[s]===e[s]))return!1;return!0}const ac=["sun","mon","tue","wed","thu","fri","sat"];function te(t,e){let n=We(t);return n[2]+=e,de(n)}function He(t,e){let n=We(t);return n[6]+=e,de(n)}function lt(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function oc(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function lc(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function cc(t,e){return(e.valueOf()-t.valueOf())/1e3}function dc(t,e){let n=$(t),r=$(e);return{years:0,months:0,days:Math.round(lt(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function uc(t,e){let n=Kt(t,e);return n!==null&&n%7===0?n/7:null}function Kt(t,e){return Oe(t)===Oe(e)?Math.round(lt(t,e)):null}function $(t){return de([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function fc(t){return de([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function hc(t){return de([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function pc(t){return de([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function gc(t,e,n){let r=t.getUTCFullYear(),s=wn(t,r,e,n);if(s<1)return wn(t,r-1,e,n);let i=wn(t,r+1,e,n);return i>=1?Math.min(s,i):s}function wn(t,e,n,r){let s=de([e,0,1+mc(e,n,r)]),i=$(t),a=Math.round(lt(s,i));return Math.floor(a/7)+1}function mc(t,e,n){let r=7+e-n;return-((7+de([t,0,r]).getUTCDay()-e)%7)+r-1}function hs(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function ps(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 We(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function de(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function $i(t){return!isNaN(t.valueOf())}function Oe(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function qi(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",lr(e,!0)))),r}function or(t){return t.toISOString().replace(/T.*$/,"")}function vc(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function bc(t){return et(t.getUTCHours(),2)+":"+et(t.getUTCMinutes(),2)+":"+et(t.getUTCSeconds(),2)}function lr(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),s=Math.floor(r/60),i=Math.round(r%60);return e?`${n+et(s,2)}:${et(i,2)}`:`GMT${n}${s}${i?`:${et(i,2)}`:""}`}function _(t,e,n){let r,s;return function(...i){if(!r)s=t.apply(this,i);else if(!Be(r,i)){let a=t.apply(this,i);(!e||!e(a,s))&&(s=a)}return r=i,s}}function zt(t,e,n){let r,s;return i=>(r?ye(r,i)||(s=t.call(this,i)):s=t.call(this,i),r=i,s)}const Cn={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},Jt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},_t=/\s*([ap])\.?m\.?/i,yc=/,/g,Ac=/\s+/g,Ec=/\u200e/g,xc=/UTC|GMT/;class wc{constructor(e){let n={},r={},s=9;for(let i in e)i in Cn?(r[i]=e[i],Cn[i]<9&&(s=Math.min(Cn[i],s))):(n[i]=e[i],i in Jt&&(s=Math.min(Jt[i],s)));this.standardDateProps=n,this.extendedSettings=r,this.smallestUnitNum=s,this.buildFormattingFunc=_(gs)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,s){let{standardDateProps:i,extendedSettings:a}=this,o=Tc(e.marker,n.marker,r.calendarSystem);if(!o)return this.format(e,r);let l=o;l>1&&(i.year==="numeric"||i.year==="2-digit")&&(i.month==="numeric"||i.month==="2-digit")&&(i.day==="numeric"||i.day==="2-digit")&&(l=1);let d=this.format(e,r),c=this.format(n,r);if(d===c)return d;let g=kc(i,l),h=gs(g,a,r),u=h(e),m=h(n),b=Mc(d,u,c,m),y=a.separator||s||r.defaultSeparator||"";return b?b.before+u+y+m+b.after:d+y+c}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function gs(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?s=>lr(s.timeZoneOffset):r===0&&e.week?s=>Rc(n.computeWeekNumber(s.marker),n.weekText,n.weekTextLong,n.locale,e.week):Cc(t,e,n)}function Cc(t,e,n){t=Object.assign({},t),e=Object.assign({},e),Sc(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),s;if(e.omitZeroMinute){let i=Object.assign({},t);delete i.minute,s=new Intl.DateTimeFormat(n.locale.codes,i)}return i=>{let{marker:a}=i,o;s&&!a.getUTCMinutes()?o=s:o=r;let l=o.format(a);return Dc(l,i,t,e,n)}}function Sc(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 Dc(t,e,n,r,s){return t=t.replace(Ec,""),n.timeZoneName==="short"&&(t=_c(t,s.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":lr(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(yc,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(_t,"").trim():r.meridiem==="narrow"?t=t.replace(_t,(i,a)=>a.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(_t,(i,a)=>`${a.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(_t,i=>i.toLocaleLowerCase())),t=t.replace(Ac," "),t=t.trim(),t}function _c(t,e){let n=!1;return t=t.replace(xc,()=>(n=!0,e)),n||(t+=` ${e}`),t}function Rc(t,e,n,r,s){let i=[];return s==="long"?i.push(n):(s==="short"||s==="narrow")&&i.push(e),(s==="long"||s==="short")&&i.push(" "),i.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&i.reverse(),i.join("")}function Tc(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:Oe(t)!==Oe(e)?1:0}function kc(t,e){let n={};for(let r in t)(!(r in Jt)||Jt[r]<=e)&&(n[r]=t[r]);return n}function Mc(t,e,n,r){let s=0;for(;s<t.length;){let i=t.indexOf(e,s);if(i===-1)break;let a=t.substr(0,i);s=i+e.length;let o=t.substr(s),l=0;for(;l<n.length;){let d=n.indexOf(r,l);if(d===-1)break;let c=n.substr(0,d);l=d+r.length;let g=n.substr(l);if(a===c&&o===g)return{before:a,after:o}}}return null}function ms(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 Xt(t,e,n,r){let s=ms(t,n.calendarSystem),i=e?ms(e,n.calendarSystem):null;return{date:s,start:s,end:i,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class Nc{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,Xt(e,null,n,r))}formatRange(e,n,r,s){return r.cmdFormatter(this.cmdStr,Xt(e,n,r,s))}}class Ic{constructor(e){this.func=e}format(e,n,r){return this.func(Xt(e,null,n,r))}formatRange(e,n,r,s){return this.func(Xt(e,n,r,s))}}function Q(t){return typeof t=="object"&&t?new wc(t):typeof t=="string"?new Nc(t):typeof t=="function"?new Ic(t):null}const vs={navLinkDayClick:v,navLinkWeekClick:v,duration:P,bootstrapFontAwesome:v,buttonIcons:v,customButtons:v,defaultAllDayEventDuration:P,defaultTimedEventDuration:P,nextDayThreshold:P,scrollTime:P,scrollTimeReset:Boolean,slotMinTime:P,slotMaxTime:P,dayPopoverFormat:Q,slotDuration:P,snapDuration:P,headerToolbar:v,footerToolbar:v,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Q,dayHeaderClassNames:v,dayHeaderContent:v,dayHeaderDidMount:v,dayHeaderWillUnmount:v,dayCellClassNames:v,dayCellContent:v,dayCellDidMount:v,dayCellWillUnmount:v,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:v,weekNumbers:Boolean,weekNumberClassNames:v,weekNumberContent:v,weekNumberDidMount:v,weekNumberWillUnmount:v,editable:Boolean,viewClassNames:v,viewDidMount:v,viewWillUnmount:v,nowIndicator:Boolean,nowIndicatorSnap:v,nowIndicatorClassNames:v,nowIndicatorContent:v,nowIndicatorDidMount:v,nowIndicatorWillUnmount:v,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:v,locale:v,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:v,eventOrder:Ql,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:v,contentHeight:v,direction:String,weekNumberFormat:Q,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:v,initialDate:v,now:v,eventDataTransform:v,stickyHeaderDates:v,stickyFooterScrollbar:v,viewHeight:v,defaultAllDay:Boolean,eventSourceFailure:v,eventSourceSuccess:v,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:v,eventConstraint:v,eventAllow:v,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:v,eventContent:v,eventDidMount:v,eventWillUnmount:v,selectConstraint:v,selectOverlap:v,selectAllow:v,droppable:Boolean,unselectCancel:String,slotLabelFormat:v,slotLaneClassNames:v,slotLaneContent:v,slotLaneDidMount:v,slotLaneWillUnmount:v,slotLabelClassNames:v,slotLabelContent:v,slotLabelDidMount:v,slotLabelWillUnmount:v,dayMaxEvents:v,dayMaxEventRows:v,dayMinWidth:Number,slotLabelInterval:P,allDayText:String,allDayClassNames:v,allDayContent:v,allDayDidMount:v,allDayWillUnmount:v,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Q,rerenderDelay:Number,moreLinkText:v,moreLinkHint:v,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:v,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:P,hiddenDays:v,fixedWeekCount:Boolean,validRange:v,visibleRange:v,titleFormat:v,eventInteractive:Boolean,noEventsText:String,viewHint:v,navLinkHint:v,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:v,moreLinkClassNames:v,moreLinkContent:v,moreLinkDidMount:v,moreLinkWillUnmount:v,monthStartFormat:Q,handleCustomRendering:v,customRenderingMetaMap:v,customRenderingReplaces:Boolean},gt={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"},nowIndicatorSnap:"auto"},bs={datesSet:v,eventsSet:v,eventAdd:v,eventChange:v,eventRemove:v,windowResize:v,eventClick:v,eventMouseEnter:v,eventMouseLeave:v,select:v,unselect:v,loading:v,_unmount:v,_beforeprint:v,_afterprint:v,_noEventDrop:v,_noEventResize:v,_resize:v,_scrollRequest:v},ys={buttonText:v,buttonHints:v,views:v,plugins:v,initialEvents:v,events:v,eventSources:v},ze={headerToolbar:Ue,footerToolbar:Ue,buttonText:Ue,buttonHints:Ue,buttonIcons:Ue,dateIncrement:Ue,plugins:Rt,events:Rt,eventSources:Rt,resources:Rt};function Ue(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?ye(t,e):t===e}function Rt(t,e){return Array.isArray(t)&&Array.isArray(e)?Be(t,e):t===e}const Oc={type:String,component:v,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:v,usesMinMaxTime:Boolean,classNames:v,content:v,didMount:v,willUnmount:v};function Sn(t){return dr(t,ze)}function cr(t,e){let n={},r={};for(let s in e)s in t&&(n[s]=e[s](t[s]));for(let s in t)s in e||(r[s]=t[s]);return{refined:n,extra:r}}function v(t){return t}const{hasOwnProperty:en}=Object.prototype;function dr(t,e){let n={};if(e){for(let r in e)if(e[r]===Ue){let s=[];for(let i=t.length-1;i>=0;i-=1){let a=t[i][r];if(typeof a=="object"&&a)s.unshift(a);else if(a!==void 0){n[r]=a;break}}s.length&&(n[r]=dr(s))}}for(let r=t.length-1;r>=0;r-=1){let s=t[r];for(let i in s)i in n||(n[i]=s[i])}return n}function at(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function Ge(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function Qi(t){let e={};for(let n of t)e[n]=!0;return e}function ur(t){let e=[];for(let n in t)e.push(t[n]);return e}function ye(t,e){if(t===e)return!0;for(let n in t)if(en.call(t,n)&&!(n in e))return!1;for(let n in e)if(en.call(e,n)&&t[n]!==e[n])return!1;return!0}const Pc=/^on[A-Z]/;function jc(t,e){const n=Bc(t,e);for(let r of n)if(!Pc.test(r))return!1;return!0}function Bc(t,e){let n=[];for(let r in t)en.call(t,r)&&(r in e||n.push(r));for(let r in e)en.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function Dn(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&Hc(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function Hc(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function Lc(t,e=0,n,r=1){let s=[];n==null&&(n=Object.keys(t).length);for(let i=e;i<n;i+=r){let a=t[i];a!==void 0&&s.push(a)}return s}let Yi={};function zc(t,e){Yi[t]=e}function Uc(t){return new Yi[t]}class Fc{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return de(e)}markerToArray(e){return We(e)}}zc("gregory",Fc);const Wc=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Vc(t){let e=Wc.exec(t);if(e){let n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if($i(n)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}class Gc{constructor(e){let n=this.timeZone=e.timeZone,r=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=Uc(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()):de(hs(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=de(e)),n===null||!$i(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=Vc(e);if(n===null)return null;let{marker:r}=n,s=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):s=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:s}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(e,n){let r=this.calendarSystem.markerToArray(e);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,n){let{calendarSystem:r}=this;return Oe(e)===Oe(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)&&r.getMarkerMonth(e)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:r}=this;return Oe(e)===Oe(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(e)+(r.getMarkerYear(n)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let r=this.diffWholeYears(e,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,n),r!==null?{unit:"month",value:r}:(r=uc(e,n),r!==null?{unit:"week",value:r}:(r=Kt(e,n),r!==null?{unit:"day",value:r}:(r=oc(e,n),Lt(r)?{unit:"hour",value:r}:(r=lc(e,n),Lt(r)?{unit:"minute",value:r}:(r=cc(e,n),Lt(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,r){let s;return r.years&&(s=this.diffWholeYears(e,n),s!==null)?s/sc(r):r.months&&(s=this.diffWholeMonths(e,n),s!==null)?s/ic(r):r.days&&(s=Kt(e,n),s!==null)?s/tt(r):(n.valueOf()-e.valueOf())/be(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?$(e):n==="hour"?fc(e):n==="minute"?hc(e):n==="second"?pc(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)):gc(e,this.weekDow,this.weekDoy)}format(e,n,r={}){return n.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,r,s={}){return s.isEndExclusive&&(n=He(n,-1)),r.formatRange({marker:e,timeZoneOffset:s.forcedStartTzo!=null?s.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:s.forcedEndTzo!=null?s.forcedEndTzo:this.offsetForMarker(n)},this,s.defaultSeparator)}formatIso(e,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(e)),qi(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?de(hs(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):de(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-ps(We(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(We(e)):null}toDate(e,n){return this.timeZone==="local"?ps(We(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(We(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class Et{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,r;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(r in e)n[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}Et.prototype.classes={};Et.prototype.iconClasses={};Et.prototype.baseIconClass="";Et.prototype.iconOverridePrefix="";function tn(t){t();let e=D.debounceRendering,n=[];function r(s){n.push(s)}for(D.debounceRendering=r,bt(p($c,{}),document.createElement("div"));n.length;)n.shift()();D.debounceRendering=e}class $c extends ue{render(){return p("div",{})}componentDidMount(){this.setState({})}}function Zi(t){let e=Al(t),n=e.Provider;return e.Provider=function(){let r=!this.getChildContext,s=n.apply(this,arguments);if(r){let i=[];this.shouldComponentUpdate=a=>
1{this.props.value!==a.value&&i.forEach(o=>{o.context=a.value,o.forceUpdate()})},this.sub=a=>{i.push(a);let o=a.componentWillUnmount;a.componentWillUnmount=()=>{i.splice(i.indexOf(a),1),o&&o.call(a)}}}return s},e}class qc{constructor(e,n,r,s){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=s,this.handleScrollRequest=i=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},i),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 ke=Zi({});function Qc(t,e,n,r,s,i,a,o,l,d,c,g,h,u){return{dateEnv:s,nowManager:i,options:n,pluginHooks:o,emitter:c,dispatch:l,getCurrentData:d,calendarApi:g,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:a,isRtl:n.direction==="rtl",addResizeHandler(m){c.on("_resize",m)},removeResizeHandler(m){c.off("_resize",m)},createScrollResponder(m){return new qc(m,c,P(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:h,unregisterInteractiveComponent:u}}class Qe extends ue{shouldComponentUpdate(e,n){return!Dn(this.props,e,this.propEquality)||!Dn(this.state,n,this.stateEquality)}safeSetState(e){Dn(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Qe.addPropsEquality=Yc;Qe.addStateEquality=Zc;Qe.contextType=ke;Qe.prototype.propEquality={};Qe.prototype.stateEquality={};class H extends Qe{}H.contextType=ke;function Yc(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function Zc(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function xe(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class fr extends H{constructor(){super(...arguments),this.id=qe(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!Qn(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&xe(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:s,defaultGenerator:i,renderProps:a}=e,o=Ki(e,[],this.handleEl);let l=!1,d,c=[],g;if(s!=null){const h=typeof s=="function"?s(a,p):s;if(h===!0)l=!0;else{const u=h&&typeof h=="object";u&&"html"in h?o.dangerouslySetInnerHTML={__html:h.html}:u&&"domNodes"in h?c=Array.prototype.slice.call(h.domNodes):(u?xi(h):typeof h!="function")?d=h:g=h}}else l=!Qn(e.generatorName,r);return l&&i&&(d=i(a)),this.queuedDomNodes=c,this.currentGeneratorMeta=g,p(e.elTag,o,d)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:r,context:s}=this,{handleCustomRendering:i,customRenderingMetaMap:a}=s.options;if(i){const o=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:a==null?void 0:a[r.generatorName];o&&i(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:o},r),{elClasses:(r.elClasses||[]).filter(Kc)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!Be(e,n)){n.forEach(zl);for(let s of e)r.appendChild(s);this.currentDomNodes=e}}}fr.addPropsEquality({elClasses:Be,elStyle:ye,elAttrs:jc,renderProps:ye});function Qn(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Ki(t,e,n){const r=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(r.className=(t.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),t.elStyle&&(r.style=t.elStyle),r}function Kc(t){return!!t}const Ji=Zi(0);class fe extends ue{constructor(){super(...arguments),this.InnerContent=Jc.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(xe(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=Xc(e.classNameGenerator,e.renderProps);if(e.children){const r=Ki(e,n,this.handleEl),s=e.children(this.InnerContent,e.renderProps,r);return e.elTag?p(e.elTag,r,s):s}else return p(fr,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}fe.contextType=Ji;
vendor: 28,106 bytes, line 1
1function Jc(t,e){const n=t.props;return p(fr,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function Xc(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class As extends H{render(){let{props:e,context:n}=this,{options:r}=n,s={view:n.viewApi};return p(fe,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...Xi(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:s,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount},()=>e.children)}}function Xi(t){return[`fc-${t.type}-view`,"fc-view"]}function ed(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function Es(t,e){let n=[],{start:r}=e,s,i;for(t.sort(td),s=0;s<t.length;s+=1)i=t[s],i.start>r&&n.push({start:r,end:i.start}),i.end>r&&(r=i.end);return r<e.end&&n.push({start:r,end:e.end}),n}function td(t,e){return t.start.valueOf()-e.start.valueOf()}function $e(t,e){let{start:n,end:r}=t,s=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(n===null||r===null||n<r)&&(s={start:n,end:r}),s}function nd(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function Re(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function rd(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 ea(t){let e=Math.floor(lt(t.start,t.end))||1,n=$(t.start),r=te(n,e);return{start:n,end:r}}function ta(t,e=P(0)){let n=null,r=null;if(t.end){r=$(t.end);let s=t.end.valueOf()-r.valueOf();s&&s>=be(e)&&(r=te(r,1))}return t.start&&(n=$(t.start),r&&r<=n&&(r=te(n,1))),{start:n,end:r}}function Tt(t,e,n,r){return r==="year"?P(n.diffWholeYears(t,e),"year"):r==="month"?P(n.diffWholeMonths(t,e),"month"):dc(t,e)}class sd{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:s}=this.props,i=s.subtract(s.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,r)}buildNext(e,n,r){let{dateEnv:s}=this.props,i=s.add(s.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,r)}build(e,n,r=!0){let{props:s}=this,i,a,o,l,d,c;return i=this.buildValidRange(),i=this.trimHiddenDays(i),r&&(e=rd(e,i)),a=this.buildCurrentRangeInfo(e,n),o=/^(year|month|week|day)$/.test(a.unit),l=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,o),l=this.trimHiddenDays(l),d=l,s.showNonCurrentDates||(d=$e(d,a.range)),d=this.adjustActiveRange(d),d=$e(d,i),c=nd(a.range,i),Re(l,e)||(e=l.start),{currentDate:e,validRange:i,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:o,activeRange:d,renderRange:l,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,s=null,i=null,a=null,o;return r.duration?(s=r.duration,i=r.durationUnit,a=this.buildRangeFromDuration(e,n,s,i)):(o=this.props.dayCount)?(i="day",a=this.buildRangeFromDayCount(e,n,o)):(a=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(s=this.getFallbackDuration(),i=qn(s).unit,a=this.buildRangeFromDuration(e,n,s,i)),{duration:s,unit:i,range:a}}getFallbackDuration(){return P({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:s,slotMaxTime:i}=this.props,{start:a,end:o}=e;return r&&(tt(s)<0&&(a=$(a),a=n.add(a,s)),tt(i)>1&&(o=$(o),o=te(o,-1),o=n.add(o,i))),{start:a,end:o}}buildRangeFromDuration(e,n,r,s){let{dateEnv:i,dateAlignment:a}=this.props,o,l,d;if(!a){let{dateIncrement:g}=this.props;g&&be(g)<be(r)?a=qn(g).unit:a=s}tt(r)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,n),o=$(o));function c(){o=i.startOf(e,a),l=i.add(o,r),d={start:o,end:l}}return c(),this.trimHiddenDays(d)||(e=this.skipHiddenDays(e,n),c()),d}buildRangeFromDayCount(e,n,r){let{dateEnv:s,dateAlignment:i}=this.props,a=0,o=e,l;i&&(o=s.startOf(o,i)),o=$(o),o=this.skipHiddenDays(o,n),l=o;do l=te(l,1),this.isHiddenDay(l)||(a+=1);while(a<r);return{start:o,end:l}}buildCustomVisibleRange(e){let{props:n}=this,r=n.visibleRangeInput,s=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(e)):r,i=this.refineRange(s);return i&&(i.start==null||i.end==null)?null:i}buildRenderRange(e,n,r){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?P(1,r):e||P({days:1}))}refineRange(e){if(e){let n=ed(e,this.props.dateEnv);return n&&(n=ta(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],r=0,s;for(this.props.weekends===!1&&e.push(0,6),s=0;s<7;s+=1)(n[s]=e.indexOf(s)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:r}=e;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=te(e,n);return e}}function hr(t,e,n,r){return{instanceId:qe(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function id(t,e,n,r){for(let s=0;s<r.length;s+=1){let i=r[s].parse(t,n);if(i){let{allDay:a}=t;return a==null&&(a=e,a==null&&(a=i.allDayGuess,a==null&&(a=!1))),{allDay:a,duration:i.duration,typeData:i.typeData,typeId:s}}}return null}function xt(t,e,n){let{dateEnv:r,pluginHooks:s,options:i}=n,{defs:a,instances:o}=t;o=at(o,l=>!a[l.defId].recurringDef);for(let l in a){let d=a[l];if(d.recurringDef){let{duration:c}=d.recurringDef;c||(c=d.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);let g=ad(d,c,e,r,s.recurringTypes);for(let h of g){let u=hr(l,{start:h,end:r.add(h,c)});o[u.instanceId]=u}}}return{defs:a,instances:o}}function ad(t,e,n,r,s){let a=s[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(a=a.map($)),a}const Ut={id:String,groupId:String,title:String,url:String,interactive:Boolean},na={start:v,end:v,date:v,allDay:Boolean},od=Object.assign(Object.assign(Object.assign({},Ut),na),{extendedProps:v});function ra(t,e,n,r,s=pr(n),i,a){let{refined:o,extra:l}=sa(t,n,s),d=cd(e,n),c=id(o,d,n.dateEnv,n.pluginHooks.recurringTypes);if(c){let h=Yn(o,l,e?e.sourceId:"",c.allDay,!!c.duration,n,i);return h.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:h,instance:null}}let g=ld(o,d,n,r);if(g){let h=Yn(o,l,e?e.sourceId:"",g.allDay,g.hasEnd,n,i),u=hr(h.defId,g.range,g.forcedStartTzo,g.forcedEndTzo);return a&&h.publicId&&a[h.publicId]&&(u.instanceId=a[h.publicId]),{def:h,instance:u}}return null}function sa(t,e,n=pr(e)){return cr(t,n)}function pr(t){return Object.assign(Object.assign(Object.assign({},nn),od),t.pluginHooks.eventRefiners)}function Yn(t,e,n,r,s,i,a){let o={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(a&&t.id?a[t.id]:"")||qe(),sourceId:n,allDay:r,hasEnd:s,interactive:t.interactive,ui:rn(t,i),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let l of i.pluginHooks.eventDefMemberAdders)Object.assign(o,l(t));return Object.freeze(o.ui.classNames),Object.freeze(o.extendedProps),o}function ld(t,e,n,r){let{allDay:s}=t,i,a=null,o=!1,l,d=null,c=t.start!=null?t.start:t.date;if(i=n.dateEnv.createMarkerMeta(c),i)a=i.marker;else if(!r)return null;return t.end!=null&&(l=n.dateEnv.createMarkerMeta(t.end)),s==null&&(e!=null?s=e:s=(!i||i.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),s&&a&&(a=$(a)),l&&(d=l.marker,s&&(d=$(d)),a&&d<=a&&(d=null)),d?o=!0:r||(o=n.options.forceEventDuration||!1,d=n.dateEnv.add(a,s?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:s,hasEnd:o,range:{start:a,end:d},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function cd(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function yt(t,e,n,r,s,i){let a=Te(),o=pr(n);for(let l of t){let d=ra(l,e,n,r,o,s,i);d&&Zn(d,a)}return a}function Zn(t,e=Te()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function dd(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],s=mr(t,i=>ud(r,i));return s.defs[r.defId]=r,s.instances[n.instanceId]=n,s}return Te()}function ud(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function Te(){return{defs:{},instances:{}}}function gr(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function mr(t,e){let n=at(t.defs,e),r=at(t.instances,s=>n[s.defId]);return{defs:n,instances:r}}function fd(t,e){let{defs:n,instances:r}=t,s={},i={};for(let a in n)e.defs[a]||(s[a]=n[a]);for(let a in r)!e.instances[a]&&s[r[a].defId]&&(i[a]=r[a]);return{defs:s,instances:i}}function hd(t,e){return Array.isArray(t)?yt(t,null,e,!0):typeof t=="object"&&t?yt([t],null,e,!0):t!=null?String(t):null}function xs(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const nn={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:v,overlap:v,allow:v,className:xs,classNames:xs,color:String,backgroundColor:String,borderColor:String,textColor:String},pd={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function rn(t,e){let n=hd(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 ia(t){return t.reduce(gd,pd)}function gd(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 md={id:String,defaultAllDay:Boolean,url:String,format:String,events:v,eventDataTransform:v,success:v,failure:v};function aa(t,e,n=oa(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:s,extra:i}=cr(r,n),a=vd(s,e);if(a)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:s.defaultAllDay,eventDataTransform:s.eventDataTransform,success:s.success,failure:s.failure,publicId:s.id||"",sourceId:qe(),sourceDefId:a.sourceDefId,meta:a.meta,ui:rn(s,e),extendedProps:i}}return null}function oa(t){return Object.assign(Object.assign(Object.assign({},nn),md),t.pluginHooks.eventSourceRefiners)}function vd(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let i=n[r].parseMeta(t);if(i)return{sourceDefId:r,meta:i}}return null}function bd(t,e,n,r,s){switch(e.type){case"RECEIVE_EVENTS":return yd(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,s);case"RESET_RAW_EVENTS":return Ad(t,n[e.sourceId],e.rawEvents,r.activeRange,s);case"ADD_EVENTS":return Ed(t,e.eventStore,r?r.activeRange:null,s);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return gr(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?xt(t,r.activeRange,s):t;case"REMOVE_EVENTS":return fd(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return ca(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return mr(t,i=>!i.sourceId);case"REMOVE_ALL_EVENTS":return Te();default:return t}}function yd(t,e,n,r,s,i){if(e&&n===e.latestFetchId){let a=yt(la(s,e,i),e,i);return r&&(a=xt(a,r,i)),gr(ca(t,e.sourceId),a)}return t}function Ad(t,e,n,r,s){const{defIdMap:i,instanceIdMap:a}=xd(t);let o=yt(la(n,e,s),e,s,!1,i,a);return xt(o,r,s)}function la(t,e,n){let r=n.options.eventDataTransform,s=e?e.eventDataTransform:null;return s&&(t=ws(t,s)),r&&(t=ws(t,r)),t}function ws(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let s=e(r);s?n.push(s):s==null&&n.push(r)}}return n}function Ed(t,e,n,r){return n&&(e=xt(e,n,r)),gr(t,e)}function Cs(t,e,n){let{defs:r}=t,s=Ge(t.instances,i=>r[i.defId].allDay?i:Object.assign(Object.assign({},i),{range:{start:n.createMarker(e.toDate(i.range.start,i.forcedStartTzo)),end:n.createMarker(e.toDate(i.range.end,i.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:i.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:i.forcedEndTzo}));return{defs:r,instances:s}}function ca(t,e){return mr(t,n=>n.sourceId!==e)}function xd(t){const{defs:e,instances:n}=t,r={},s={};for(let i in e){const a=e[i],{publicId:o}=a;o&&(r[o]=i)}for(let i in n){const a=n[i],o=e[a.defId],{publicId:l}=o;l&&(s[l]=i)}return{defIdMap:r,instanceIdMap:s}}class wd{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){Cd(this.handlers,e,n)}off(e,n){Sd(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],s=this.options&&this.options[e],i=[].concat(s||[],r);for(let a of i)a.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function Cd(t,e,n){(t[e]||(t[e]=[])).push(n)}function Sd(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const Dd={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function _d(t,e){return yt(Rd(t),null,e)}function Rd(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({},Dd),n)),e}function Td(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},Md(t,n)),{jsEvent:null,view:n.viewApi||n.calendarApi.view}))}function kd(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function Md(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,Vd(t,e.dateEnv)),n}function Ss(t,e,n){let{dateEnv:r,options:s}=n,i=e;return t?(i=$(i),i=r.add(i,s.defaultAllDayEventDuration)):i=r.add(i,s.defaultTimedEventDuration),i}function Nd(t,e,n,r){let s=ua(t.defs,e),i=Te();for(let a in t.defs){let o=t.defs[a];i.defs[a]=Id(o,s[a],n,r)}for(let a in t.instances){let o=t.instances[a],l=i.defs[o.defId];i.instances[a]=Od(o,l,s[o.defId],n,r)}return i}function Id(t,e,n,r){let s=n.standardProps||{};s.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(s.hasEnd=!0);let i=Object.assign(Object.assign(Object.assign({},t),s),{ui:Object.assign(Object.assign({},t.ui),s.ui)});n.extendedProps&&(i.extendedProps=Object.assign(Object.assign({},i.extendedProps),n.extendedProps));for(let a of r.pluginHooks.eventDefMutationAppliers)a(i,n,r);return!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0),i}function Od(t,e,n,r,s){let{dateEnv:i}=s,a=r.standardProps&&r.standardProps.allDay===!0,o=r.standardProps&&r.standardProps.hasEnd===!1,l=Object.assign({},t);return a&&(l.range=ea(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:i.add(l.range.start,r.datesDelta),end:i.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:i.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:i.add(l.range.end,r.endDelta)}),o&&(l.range={start:l.range.start,end:Ss(e.allDay,l.range.start,s)}),e.allDay&&(l.range={start:$(l.range.start),end:$(l.range.end)}),l.range.end<l.range.start&&(l.range.end=Ss(e.allDay,l.range.start,s)),l}class Ke{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 pe{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in na)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=Ut[e](n),this.mutate({standardProps:{publicId:n}});else if(e in Ut)n=Ut[e](n),this.mutate({standardProps:{[e]:n}});else if(e in nn){let r=nn[e](n);e==="color"?r={backgroundColor:n,borderColor:n}:e==="editable"?r={startEditable:n,durationEditable:n}:r={[e]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:r}=this._context,s=r.createMarker(e);if(s&&this._instance){let i=this._instance.range,a=Tt(i.start,s,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:a}):this.mutate({startDelta:a})}}setEnd(e,n={}){let{dateEnv:r}=this._context,s;if(!(e!=null&&(s=r.createMarker(e),!s))&&this._instance)if(s){let i=Tt(this._instance.range.end,s,r,n.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,r={}){let{dateEnv:s}=this._context,i={allDay:r.allDay},a=s.createMarker(e),o;if(a&&!(n!=null&&(o=s.createMarker(n),!o))&&this._instance){let l=this._instance.range;r.allDay===!0&&(l=ea(l));let d=Tt(l.start,a,s,r.granularity);if(o){let c=Tt(l.end,o,s,r.granularity);tc(d,c)?this.mutate({datesDelta:d,standardProps:i}):this.mutate({startDelta:d,endDelta:c,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:d,standardProps:i})}}moveStart(e){let n=P(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=P(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=P(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let r={allDay:e},{maintainDuration:s}=n;s==null&&(s=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=s),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:n}=this._context,r=this._instance,s=Q(e);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,s,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,s,{forcedTzo:r.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let r=this._def,s=this._context,{eventStore:i}=s.getCurrentData(),a=dd(i,n.instanceId);a=Nd(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,s);let l=new pe(s,r,n);this._def=a.defs[r.defId],this._instance=a.instances[n.instanceId],s.dispatch({type:"MERGE_EVENTS",eventStore:a}),s.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:vr(a,s,n),revert(){s.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,n=da(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 Ke(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let n=this._def,{ui:r}=n,{startStr:s,endStr:i}=this,a={allDay:n.allDay};return n.title&&(a.title=n.title),s&&(a.start=s),i&&(a.end=i),n.publicId&&(a.id=n.publicId),n.groupId&&(a.groupId=n.groupId),n.url&&(a.url=n.url),r.display&&r.display!=="auto"&&(a.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?a.color=r.backgroundColor:(r.backgroundColor&&(a.backgroundColor=r.backgroundColor),r.borderColor&&(a.borderColor=r.borderColor)),r.textColor&&(a.textColor=r.textColor),r.classNames.length&&(a.classNames=r.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(a,n.extendedProps):a.extendedProps=n.extendedProps),a}toJSON(){return this.toPlainObject()}}function da(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function vr(t,e,n){let{defs:r,instances:s}=t,i=[],a=n?n.instanceId:"";for(let o in s){let l=s[o],d=r[l.defId];l.instanceId!==a&&i.push(new pe(e,d,l))}return i}function Ds(t,e,n,r){let s={},i={},a={},o=[],l=[],d=ua(t.defs,e);for(let c in t.defs){let g=t.defs[c];d[g.defId].display==="inverse-background"&&(g.groupId?(s[g.groupId]=[],a[g.groupId]||(a[g.groupId]=g)):i[c]=[])}for(let c in t.instances){let g=t.instances[c],h=t.defs[g.defId],u=d[h.defId],m=g.range,b=!h.allDay&&r?ta(m,r):m,y=$e(b,n);y&&(u.display==="inverse-background"?h.groupId?s[h.groupId].push(y):i[g.defId].push(y):u.display!=="none"&&(u.display==="background"?o:l).push({def:h,ui:u,instance:g,range:y,isStart:b.start&&b.start.valueOf()===y.start.valueOf(),isEnd:b.end&&b.end.valueOf()===y.end.valueOf()}))}for(let c in s){let g=s[c],h=Es(g,n);for(let u of h){let m=a[c],b=d[m.defId];o.push({def:m,ui:b,instance:null,range:u,isStart:!1,isEnd:!1})}}for(let c in i){let g=i[c],h=Es(g,n);for(let u of h)o.push({def:t.defs[c],ui:d[c],instance:null,range:u,isStart:!1,isEnd:!1})}return{bg:o,fg:l}}function Pd(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function _s(t,e){t.fcSeg=e}function Kn(t){return t.fcSeg||t.parentNode.fcSeg||null}function ua(t,e){return Ge(t,n=>fa(n,e))}function fa(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),ia(n)}function ha(t,e){let n=t.map(jd);return n.sort((r,s)=>Yl(r,s,e)),n.map(r=>r._seg)}function jd(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.range,s=r.start?r.start.valueOf():0,i=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:s,end:i,duration:i-s,allDay:Number(n.allDay),_seg:t})}function Bd(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:s,ui:i}=t.eventRange,a=i.startEditable;for(let o of r)a=o(a,s,i,e);return a}function Hd(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function Ld(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function pa(t,e,n,r,s,i,a){let{dateEnv:o,options:l}=n,{displayEventTime:d,displayEventEnd:c}=l,g=t.eventRange.def,h=t.eventRange.instance;d==null&&(d=r!==!1),c==null&&(c=s!==!1);let u=h.range.start,m=h.range.end,b=t.start||t.eventRange.range.start,y=t.end||t.eventRange.range.end,A=$(u).valueOf()===$(b).valueOf(),E=$(He(m,-1)).valueOf()===$(He(y,-1)).valueOf();return d&&!g.allDay&&(A||E)?(b=A?u:b,y=E?m:y,c&&g.hasEnd?o.formatRange(b,y,e,{forcedStartTzo:h.forcedStartTzo,forcedEndTzo:h.forcedEndTzo}):o.format(b,e,{forcedTzo:h.forcedStartTzo})):""}function je(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&Re(e,r.start)}}function zd(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 ga(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function ma(t,e){let{def:n,instance:r}=t.eventRange,{url:s}=n;if(s)return{href:s};let{emitter:i,options:a}=e,{eventInteractive:o}=a;return o==null&&(o=n.interactive,o==null&&(o=!!i.hasHandlers("eventClick"))),o?Gi(l=>{i.trigger("eventClick",{el:l.target,event:new pe(e,n,r),jsEvent:l,view:e.viewApi})}):{}}const Ud={start:v,end:v,allDay:Boolean};function Fd(t,e,n){let r=Wd(t,e),{range:s}=r;if(!s.start)return null;if(!s.end){if(n==null)return null;s.end=e.add(s.start,n)}return r}function Wd(t,e){let{refined:n,extra:r}=cr(t,Ud),s=n.start?e.createMarkerMeta(n.start):null,i=n.end?e.createMarkerMeta(n.end):null,{allDay:a}=n;return a==null&&(a=s&&s.isTimeUnspecified&&(!i||i.isTimeUnspecified)),Object.assign({range:{start:s?s.marker:null,end:i?i.marker:null},allDay:a},r)}function Vd(t,e){return Object.assign(Object.assign({},ba(t.range,e,t.allDay)),{allDay:t.allDay})}function va(t,e,n){return Object.assign(Object.assign({},ba(t,e,n)),{timeZone:e.timeZone})}function ba(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 Gd(t,e,n){let r=sa({editable:!1},n),s=Yn(r.refined,r.extra,"",t.allDay,!0,n);return{def:s,ui:fa(s,e),instance:hr(s.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function $d(t,e,n){let r=!1,s=function(o){r||(r=!0,e(o))},i=function(o){r||(r=!0,n(o))},a=t(s,i);a&&typeof a.then=="function"&&a.then(s,i)}class Rs extends Error{constructor(e,n){super(e),this.response=n}}function qd(t,e,n){t=t.toUpperCase();const r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(s=>{if(s.ok)return s.json().then(i=>[i,s],()=>{throw new Rs("Failure parsing JSON",s)});throw new Rs("Request failed",s)})}let _n;function ya(){return _n==null&&(_n=Qd()),_n}function Qd(){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 Yd extends H{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{tn(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{tn(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,s=r||n.height==="auto"||n.contentHeight==="auto",i=!s&&n.height!=null?n.height:"",a=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}
1`,e.theme.getClass("root")];return ya()||a.push("fc-liquid-hack"),e.children(a,i,s,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class Aa{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Zd(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}const Ts={};class ct extends ue{constructor(e,n){super(e,n),this.handleRefresh=()=>{let r=this.computeTiming();r.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(r.state),this.clearTimeout(),this.setTimeout(r.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let{props:e,context:n}=this,r=n.nowManager.getDateMarker(),{nowIndicatorSnap:s}=n.options;s==="auto"&&(s=/year|month|week|day/.test(e.unit)||(e.unitValue||1)===1);let i,a;return s?(i=n.dateEnv.startOf(r,e.unit),a=n.dateEnv.add(i,P(1,e.unit)).valueOf()-r.valueOf()):(i=r,a=1e3*60),a=Math.min(1e3*60*60*24,a),{state:{nowDate:i,todayRange:Kd(i)},waitMs:a}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{const n=this.computeTiming();this.setState(n.state,()=>{this.setTimeout(n.waitMs)})},e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}ct.contextType=ke;function Kd(t){let e=$(t),n=te(e,1);return{start:e,end:n}}class Jd{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let r=this.getCurrentData(),s;n=n||"day",s=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),s?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:s.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),s=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),i,a;for(let o in n)s.push(o);for(i=0;i<s.length;i+=1)if(a=n[s[i]],a&&a.singleUnit===e)return a;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:e.nowManager.getDateMarker()})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),r=P(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}
vendor: 9,503 bytes, line 1
1))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),Q(n))}formatRange(e,n,r){let{dateEnv:s}=this.getCurrentData();return s.formatRange(s.createMarker(e),s.createMarker(n),Q(r),r)}formatIso(e,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:n})}select(e,n){let r;n==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:n};let s=this.getCurrentData(),i=Fd(r,s.dateEnv,P({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),Td(i,null,s))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),kd(e,n))}addEvent(e,n){if(e instanceof pe){let a=e._def,o=e._instance;return this.getCurrentData().eventStore.defs[a.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Zn({def:a,instance:o})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),s;if(n instanceof Ke)s=n.internalEventSource;else if(typeof n=="boolean")n&&([s]=ur(r.eventSources));else if(n!=null){let a=this.getEventSourceById(n);if(!a)return console.warn(`Could not find an event source with ID "${n}"`),null;s=a.internalEventSource}let i=ra(e,s,r,!1);if(i){let a=new pe(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Zn(i)}),this.triggerEventAdd(a),a}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:da(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:s}=n.eventStore;e=String(e);for(let i in r){let a=r[i];if(a.publicId===e){if(a.recurringDef)return new pe(n,a,null);for(let o in s){let l=s[o];if(l.defId===a.defId)return new pe(n,a,l)}}}return null}getEvents(){let e=this.getCurrentData();return vr(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let s in n)r.push(new Ke(e,n[s]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let s in r)if(r[s].publicId===e)return new Ke(n,r[s]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof Ke)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=aa(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Ke(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=P(e);n&&this.trigger("_scrollRequest",{time:n})}}function Xd(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}const Rn=Te();class eu{constructor(){this.getKeysForEventDefs=_(this._getKeysForEventDefs),this.splitDateSelection=_(this._splitDateSpan),this.splitEventStore=_(this._splitEventStore),this.splitIndividualUi=_(this._splitIndividualUi),this.splitEventDrag=_(this._splitInteraction),this.splitEventResize=_(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),s=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,r),a=this.splitEventStore(e.eventStore,r),o=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),d={};this.eventUiBuilders=Ge(n,(c,g)=>this.eventUiBuilders[g]||_(tu));for(let c in n){let g=n[c],h=a[c]||Rn,u=this.eventUiBuilders[c];d[c]={businessHours:g.businessHours||e.businessHours,dateSelection:s[c]||null,eventStore:h,eventUiBases:u(e.eventUiBases[""],g.ui,i[c]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:o[c]||null,eventResize:l[c]||null}}return d}_splitDateSpan(e){let n={};if(e){let r=this.getKeysForDateSpan(e);for(let s of r)n[s]=e}return n}_getKeysForEventDefs(e){return Ge(e.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(e,n){let{defs:r,instances:s}=e,i={};for(let a in r)for(let o of n[a])i[o]||(i[o]=Te()),i[o].defs[a]=r[a];for(let a in s){let o=s[a];for(let l of n[o.defId])i[l]&&(i[l].instances[a]=o)}return i}_splitIndividualUi(e,n){let r={};for(let s in e)if(s)for(let i of n[s])r[i]||(r[i]={}),r[i][s]=e[s];return r}_splitInteraction(e){let n={};if(e){let r=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),s=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,s),a=o=>{n[o]||(n[o]={affectedEvents:r[o]||Rn,mutatedEvents:i[o]||Rn,isEvent:e.isEvent})};for(let o in r)a(o);for(let o in i)a(o)}return n}}function tu(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let s={"":ia(r)};return n&&Object.assign(s,n),s}function Ea(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&(!r.activeRange||!Re(r.activeRange,t))),isOther:!!(r&&!Re(r.currentRange,t)),isToday:!!(e&&Re(e,t)),isPast:!!(e&&t<e.start),isFuture:!!(e&&t>=e.end)}}function br(t,e){let n=["fc-day",`fc-day-${ac[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 nu=Q({year:"numeric",month:"long",day:"numeric"}),ru=Q({week:"long"});function sn(t,e,n="day",r=!0){const{dateEnv:s,options:i,calendarApi:a}=t;let o=s.format(e,n==="week"?ru:nu);if(i.navLinks){let l=s.toDate(e);const d=c=>{let g=n==="day"?i.navLinkDayClick:n==="week"?i.navLinkWeekClick:null;typeof g=="function"?g.call(a,s.toDate(e),c):(typeof g=="string"&&(n=g),a.zoomTo(e,n))};return Object.assign({title:pt(i.navLinkHint,[o,l],o),"data-navlink":""},r?Vi(d):{onClick:d})}return{"aria-label":o}}let Tn;function su(){return Tn||(Tn=iu()),Tn}function iu(){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=au(t);return document.body.removeChild(t),e}function au(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function ou(t){let e=lu(t),n=t.getBoundingClientRect();for(let r of e){let s=Xd(n,r.getBoundingClientRect());if(s)n=s;else return null}return n}function lu(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 ot{constructor(e,n,r,s){this.els=n;let i=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(i.left),s&&this.buildElVerticals(i.top)}buildElHorizontals(e){let n=[],r=[];for(let s of this.els){let i=s.getBoundingClientRect();n.push(i.left-e),r.push(i.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let s of this.els){let i=s.getBoundingClientRect();n.push(i.top-e),r.push(i.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,s=n.length,i;for(i=0;i<s;i+=1)if(e>=n[i]&&e<r[i])return i}topToIndex(e){let{tops:n,bottoms:r}=this,s=n.length,i;for(i=0;i<s;i+=1)if(e>=n[i]&&e<r[i])return i}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return kt(this.tops||[],e.tops||[])&&kt(this.bottoms||[],e.bottoms||[])&&kt(this.lefts||[],e.lefts||[])&&kt(this.rights||[],e.rights||[])}}function kt(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(Math.round(t[r])!==Math.round(e[r]))return!1;return!0}class Me extends H{constructor(){super(...arguments),this.uid=qe()}prepareHits(){}queryHit(e,n,r,s){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Se(e,".fc-event-mirror")}isValidDateDownEl(e){return!Se(e,".fc-event:not(.fc-bg-event)")&&!Se(e,".fc-more-link")&&!Se(e,"a[data-navlink]")&&!Se(e,".fc-popover")}}class xa{constructor(e=n=>n.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let r of e)this.insertEntry(r,n);return n}insertEntry(e,n){let r=this.findInsertion(e);this.isInsertionValid(r,e)?this.insertEntryAt(e,r):this.handleInvalidInsertion(r,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,r){if(this.allowReslicing&&e.touchingEntry){const s=Object.assign(Object.assign({},n),{span:yr(n.span,e.touchingEntry.span)});r.push(s),this.splitEntry(n,e.touchingEntry,r)}else r.push(n)}splitEntry(e,n,r){let s=e.span,i=n.span;s.start<i.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.start,end:i.start}},r),s.end>i.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.end,end:s.end}},r)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:s}=this;n.lateral===-1?(kn(s,n.level,n.levelCoord),kn(r,n.level,[e])):kn(r[n.level],n.lateral,e),this.stackCnts[Ve(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:s,stackCnts:i}=this,a=n.length,o=0,l=-1,d=-1,c=null,g=0;for(let m=0;m<a;m+=1){const b=n[m];if(!s&&b>=o+this.getEntryThickness(e))break;let y=r[m],A,E=Xn(y,e.span.start,Jn),R=E[0]+E[1];for(;(A=y[R])&&A.span.start<e.span.end;){let x=b+this.getEntryThickness(A);x>
vendor: 4,870 bytes, line 1
1o&&(o=x,c=A,l=m,d=R),x===o&&(g=Math.max(g,i[Ve(A)]+1)),R+=1}}let h=0;if(c)for(h=l+1;h<a&&n[h]<o;)h+=1;let u=-1;return h<a&&n[h]===o&&(u=Xn(r[h],e.span.end,Jn)[0]),{touchingLevel:l,touchingLateral:d,touchingEntry:c,stackCnt:g,levelCoord:o,level:h,lateral:u}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,r=e.length,s=[];for(let i=0;i<r;i+=1){let a=e[i],o=n[i];for(let l of a)s.push(Object.assign(Object.assign({},l),{thickness:this.getEntryThickness(l),levelCoord:o}))}return s}}function Jn(t){return t.span.end}function Ve(t){return t.index+":"+t.span.start}function cu(t){let e=[];for(let n of t){let r=[],s={span:n.span,entries:[n]};for(let i of e)yr(i.span,s.span)?s={entries:i.entries.concat(s.entries),span:du(i.span,s.span)}:r.push(i);r.push(s),e=r}return e}function du(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function yr(t,e){let n=Math.max(t.start,e.start),r=Math.min(t.end,e.end);return n<r?{start:n,end:r}:null}function kn(t,e,n){t.splice(e,0,n)}function Xn(t,e,n){let r=0,s=t.length;if(!s||e<n(t[r]))return[0,0];if(e>n(t[s-1]))return[s,0];for(;r<s;){let i=Math.floor(r+(s-r)/2),a=n(t[i]);if(e<a)s=i;else if(e>a)r=i+1;else return[i,1]}return[r,0]}function uu(t,e){return!t||e>10?Q({weekday:"short"}):e>1?Q({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Q({weekday:"long"})}const wa="fc-col-header-cell";function Ca(t){return t.text}class fu extends H{render(){let{dateEnv:e,options:n,theme:r,viewApi:s}=this.context,{props:i}=this,{date:a,dateProfile:o}=i,l=Ea(a,i.todayRange,null,o),d=[wa].concat(br(l,r)),c=e.format(a,i.dayHeaderFormat),g=!l.isDisabled&&i.colCnt>1?sn(this.context,a):{},h=e.toDate(a);e.namedTimeZoneImpl&&(h=He(h,36e5));let u=Object.assign(Object.assign(Object.assign({date:h,view:s},i.extraRenderProps),{text:c}),l);return p(fe,{elTag:"th",elClasses:d,elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan,"data-date":l.isDisabled?void 0:or(a)},i.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:Ca,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},m=>p("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&p(m,{elTag:"a",elAttrs:g,elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"]})))}}const hu=Q({weekday:"long"});class pu extends H{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:s,options:i}=this.context,a=te(new Date(2592e5),e.dow),o={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=n.format(a,e.dayHeaderFormat),d=Object.assign(Object.assign(Object.assign(Object.assign({date:a},o),{view:s}),e.extraRenderProps),{text:l});return p(fe,{elTag:"th",elClasses:[wa,...br(o,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:d,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:Ca,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},c=>p("div",{className:"fc-scrollgrid-sync-inner"},p(c,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(a,hu)}})))}}class gu extends H{constructor(){super(...arguments),this.createDayHeaderFormatter=_(mu)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:s,renderIntro:i}=this.props,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,s,n.length);return p(ct,{unit:"day"},(o,l)=>p("tr",{role:"row"},i&&i("day"),n.map(d=>s?p(fu,{key:d.toISOString(),date:d,dateProfile:r,todayRange:l,colCnt:n.length,dayHeaderFormat:a}):p(pu,{key:d.getUTCDay(),dow:d.getUTCDay(),dayHeaderFormat:a}))))}}function mu(t,e,n){return t||uu(e,n)}class vu{constructor(e,n){let r=e.start,{end:s}=e,i=[],a=[],o=-1;for(;r<s;)n.isHiddenDay(r)?i.push(o+.5):(o+=1,i.push(o),a.push(r)),r=te(r,1);this.dates=a,this.indices=i,this.cnt=a.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(te(e.end,-1)),s=Math.max(0,n),i=Math.min(this.cnt-1,r);return s=Math.ceil(s),i=Math.floor(i),s<=i?{firstIndex:s,lastIndex:i,isStart:n===s,isEnd:r===i}:null}getDateDayIndex(e){let{indices:n}=this,r=Math.floor(lt(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class bu{constructor(e,n){let{dates:r}=e,s,i,a;if(n){for(i=r[0].getUTCDay(),s=1;s<r.length&&r[s].getUTCDay()!==i;s+=1);a=Math.ceil(r.length/s)}else a=1,s=r.length;this.rowCnt=a,this.colCnt=s,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let s=0;s<this.colCnt;s+=1)r.push(this.buildCell(n,s));e.push(r)}return e}buildCell(e,n){let r=this.daySeries.dates[e*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;
vendor: 33,729 bytes, line 1
1n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,r=this.daySeries.sliceRange(e),s=[];if(r){let{firstIndex:i,lastIndex:a}=r,o=i;for(;o<=a;){let l=Math.floor(o/n),d=Math.min((l+1)*n,a+1);s.push({row:l,firstCol:o%n,lastCol:(d-1)%n,isStart:r.isStart&&o===i,isEnd:r.isEnd&&d-1===a}),o=d}}return s}}class Sa{constructor(){this.sliceBusinessHours=_(this._sliceBusinessHours),this.sliceDateSelection=_(this._sliceDateSpan),this.sliceEventStore=_(this._sliceEventStore),this.sliceEventDrag=_(this._sliceInteraction),this.sliceEventResize=_(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,r,s,...i){let{eventUiBases:a}=e,o=this.sliceEventStore(e.eventStore,a,n,r,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,r,a,s,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,r,s,...i),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(e.eventDrag,a,n,r,...i),eventResize:this.sliceEventResize(e.eventResize,a,n,r,...i),eventSelection:e.eventSelection}}sliceNowDate(e,n,r,s,...i){return this._sliceDateSpan({range:{start:e,end:He(e,1)},allDay:!1},n,r,{},s,...i)}_sliceBusinessHours(e,n,r,s,...i){return e?this._sliceEventStore(xt(e,Mt(n,!!r),s),{},n,r,...i).bg:[]}_sliceEventStore(e,n,r,s,...i){if(e){let a=Ds(e,n,Mt(r,!!s),s);return{bg:this.sliceEventRanges(a.bg,i),fg:this.sliceEventRanges(a.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,r,s,...i){if(!e)return null;let a=Ds(e.mutatedEvents,n,Mt(r,!!s),s);return{segs:this.sliceEventRanges(a.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,r,s,i,...a){if(!e)return[];let o=Mt(n,!!r),l=$e(e.range,o);if(l){e=Object.assign(Object.assign({},e),{range:l});let d=Gd(e,s,i),c=this.sliceRange(e.range,...a);for(let g of c)g.eventRange=d;return c}return[]}sliceEventRanges(e,n){let r=[];for(let s of e)r.push(...this.sliceEventRange(s,n));return r}sliceEventRange(e,n){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:te(r.start,1)});let s=this.sliceRange(r,...n);for(let i of s)i.eventRange=e,i.isStart=e.isStart&&i.isStart,i.isEnd=e.isEnd&&i.isEnd;return s}}function Mt(t,e){let n=t.activeRange;return e?n:{start:He(n.start,t.slotMinTime.milliseconds),end:He(n.end,t.slotMaxTime.milliseconds-864e5)}}const Nt=/^(visible|hidden)$/;class yu extends H{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,xe(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,s=n&&r,i=["fc-scroller"];return n&&(r?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),p("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:s&&-(e.overcomeLeft||0)||"",right:s&&-(e.overcomeRight||0)||"",bottom:s&&-(e.overcomeBottom||0)||"",marginLeft:!s&&-(e.overcomeLeft||0)||"",marginRight:!s&&-(e.overcomeRight||0)||"",marginBottom:!s&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Nt.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let s=0;s<r.length;s+=1)if(r[s].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(Nt.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let s=0;s<r.length;s+=1)if(r[s].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return Nt.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Nt.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class De{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:s,currentMap:i}=this,a=!1,o=!1;n!==null?(a=r in i,i[r]=n,s[r]=(s[r]||0)+1,o=!0):(s[r]-=1,s[r]||(delete i[r],delete this.callbackMap[r],a=!0)),this.masterCallback&&(a&&this.masterCallback(null,String(r)),o&&this.masterCallback(n,String(r)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),n}collect(e,n,r){return Lc(this.currentMap,e,n,r)}getAll(){return ur(this.currentMap)}}function Au(t){let e=Fl(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,Jl(r));return Math.ceil(n)}function Da(t,e){return t.liquid&&e.liquid}function Eu(t,e){return e.maxHeight!=null||Da(t,e)}function xu(t,e,n,r){let{expandRows:s}=n;return typeof e.content=="function"?e.content(n):p("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:s?n.clientHeight:""}},n.tableColGroupNode,p(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function wu(t,e){return Be(t,e,ye)}function Cu(t,e){let n=[];for(let r of t){let s=r.span||1;for(let i=0;i<s;i+=1)n.push(p("col",{style:{width:r.width==="shrink"?Su(e):r.width||"",minWidth:r.minWidth||""}}))}return p("colgroup",{},...n)}function Su(t){return t??4}function Du(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function _u(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Ru(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 ks(t){return p("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Ms(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function Tu(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class _a extends H{constructor(){super(...arguments),this.processCols=_(e=>e,wu),this.renderMicroColGroup=_(Cu),this.scrollerRefs=new De,this.scrollerElRefs=new De(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:r}=this,s=e.sections||[],i=this.processCols(e.cols),a=this.renderMicroColGroup(i,n.shrinkWidth),o=_u(e.liquid,r);e.collapsibleWidth&&o.push("fc-scrollgrid-collapsible");let l=s.length,d=0,c,g=[],h=[],u=[];for(;d<l&&(c=s[d]).type==="header";)g.push(this.renderSection(c,a,!0)),d+=1;for(;d<l&&(c=s[d]).type==="body";)h.push(this.renderSection(c,a,!1)),d+=1;for(;d<l&&(c=s[d]).type==="footer";)u.push(this.renderSection(c,a,!0)),d+=1;let m=!ya();const b={role:"rowgroup"};return p("table",{role:"grid",className:o.join(" "),style:{height:e.height}},!!(!m&&g.length)&&p("thead",b,...g),!!(!m&&h.length)&&p("tbody",b,...h),!!(!m&&u.length)&&p("tfoot",b,...u),m&&p("tbody",b,...g,...h,...u))}renderSection(e,n,r){return"outerContent"in e?p(W,{key:e.key},e.outerContent):p("tr",{key:e.key,role:"presentation",className:Ru(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,r))}renderChunkTd(e,n,r,s){if("outerContent"in r)return r.outerContent;let{props:i}=this,{forceYScrollbars:a,scrollerClientWidths:o,scrollerClientHeights:l}=this.state,d=Eu(i,e),c=Da(i,e),g=i.liquid?a?"scroll":d?"auto":"hidden":"visible",h=e.key,u=xu(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!i.collapsibleWidth&&o[h]!==void 0?o[h]:null,clientHeight:l[h]!==void 0?l[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},s);return p(s?"th":"td",{ref:r.elRef,role:"presentation"},p("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},p(yu,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:g,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},u)))}_handleScrollerEl(e,n){let r=ku(this.props.sections,n);r&&xe(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Du(this.props.cols)?Au(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=su(),{scrollerRefs:n,scrollerElRefs:r}=this,s=!1,i={},a={};for(let o in n.currentMap){let l=n.currentMap[o];if(l&&l.needsYScrolling()){s=!0;break}}for(let o of this.props.sections){let l=o.key,d=r.currentMap[l];if(d){let c=d.parentNode;i[l]=Math.floor(c.getBoundingClientRect().width-(s?e.y:0)),a[l]=Math.floor(c.getBoundingClientRect().height)}}return{forceYScrollbars:s,scrollerClientWidths:i,scrollerClientHeights:a}}}_a.addStateEquality({scrollerClientWidths:ye,scrollerClientHeights:ye});function ku(t,e){for(let n of t)if(n.key===e)return n;return null}class Ar extends H{constructor(){super(...arguments),this.buildPublicEvent=_((e,n,r)=>new pe(e,n,r)),this.handleEl=e=>{this.el=e,xe(this.props.elRef,e),e&&_s(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:r}=n,{seg:s}=e,{eventRange:i}=s,{ui:a}=i,o={event:this.buildPublicEvent(n,i.def,i.instance),view:n.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&Bd(s,n),isStartResizable:!e.disableResizing&&Hd(s,n),isEndResizable:!e.disableResizing&&Ld(s),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!s.isStart,isEnd:!!s.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return p(fe,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...zd(o),...s.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:o,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&_s(this.el,this.props.seg)}}class Er extends H{render(){let{props:e,context:n}=this,{options:r}=n,{seg:s}=e,{ui:i}=s.eventRange,a=r.eventTimeFormat||e.defaultTimeFormat,o=pa(s,a,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return p(Ar,Object.assign({},e,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:ma(s,n),defaultGenerator:Mu,timeText:o}),(l,d)=>p(W,null,p(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:d.textColor}}),!!d.isStartResizable&&p("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!d.isEndResizable&&p("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}Er.addPropsEquality({seg:ye});function Mu(t){return p("div",{className:"fc-event-main-frame"},t.timeText&&p("div",{className:"fc-event-time"},t.timeText),p("div",{className:"fc-event-title-container"},p("div",{className:"fc-event-title fc-sticky"},t.event.title||p(W,null,"Â "))))}const xr=t=>p(ke.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return p(fe,{elRef:t.elRef,elTag:t.elTag||"div",elAttrs:t.elAttrs,elClasses:t.elClasses,elStyle:t.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},t.children)}),Nu=Q({day:"numeric"});class wr extends H{constructor(){super(...arguments),this.refineRenderProps=zt(Iu)}render(){let{props:e,context:n}=this,{options:r}=n,s=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return p(fe,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),s.isDisabled?{}:{"data-date":or(e.date)}),elClasses:[...br(s,n.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:s,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:s.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount},e.children)}}function Cr(t){return!!(t.dayCellContent||Qn("dayCellContent",t))}function Iu(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:s}=t,i=Ea(e,t.todayRange,null,r),a=t.showDayNumber?n.format(e,s?t.monthStartFormat:Nu):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},i),{isMonthStart:s,dayNumberText:a}),t.extraRenderProps)}class Ra extends H{render(){let{props:e}=this,{seg:n}=e;return p(Ar,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Ou,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 Ou(t){let{title:e}=t.event;return e&&p("div",{className:"fc-event-title"},t.event.title)}function Ta(t){return p("div",{className:`fc-${t}`})}const ka=t=>p(ke.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:s}=t,i=r.weekNumberFormat||t.defaultFormat,a=n.computeWeekNumber(s),o=n.format(s,i),l={num:a,text:o,date:s};return p(fe,{elRef:t.elRef,elTag:t.elTag,elAttrs:t.elAttrs,elClasses:t.elClasses,elStyle:t.elStyle,renderProps:l,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:Pu,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},t.children)});function Pu(t){return t.text}const Mn=10;class ju extends H{constructor(){super(...arguments),this.state={titleId:cn()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&xe(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=Gl(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:s}=this,i=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return _l(p("div",Object.assign({},r.extraAttrs,{id:r.id,className:i.join(" "),"aria-labelledby":s.titleId,ref:this.handleRootEl}),p("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},p("span",{className:"fc-popover-title",id:s.titleId},r.title),p("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),p("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:s}=this,i=ou(n);if(i){let a=s.getBoundingClientRect(),o=r?Se(n,".fc-scrollgrid").getBoundingClientRect().top:i.top,l=e?i.right-a.width:i.left;o=Math.max(o,Mn),l=Math.min(l,document.documentElement.clientWidth-Mn-a.width),l=Math.max(l,Mn);let d=s.offsetParent.getBoundingClientRect();Vl(s,{top:o-d.top,left:l-d.left})}}}class Bu 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:r}=this,{startDate:s,todayRange:i,dateProfile:a}=r,o=n.format(s,e.dayPopoverFormat);return p(wr,{elRef:this.handleRootEl,date:s,dateProfile:a,todayRange:i},(l,d,c)=>p(ju,{elRef:c.ref,id:r.id,title:o,extraClassNames:["fc-more-popover"].concat(c.className||[]),extraAttrs:c,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},Cr(e)&&p(l,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,s){let{rootEl:i,props:a}=this;return e>=0&&e<r&&n>=0&&n<s?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!a.forceTimed,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:r,bottom:s},layer:1}:null}}class Ma extends H{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:cn()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&xe(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:s}=r.options,i=Ns(n).start;function a(o){let{def:l,instance:d,range:c}=o.eventRange;return{event:new pe(r,l,d),start:r.dateEnv.toDate(c.start),end:r.dateEnv.toDate(c.end),isStart:o.isStart,isEnd:o.isEnd}}typeof s=="function"&&(s=s({date:i,allDay:!!n.allDayDate,allSegs:n.allSegs.map(a),hiddenSegs:n.hiddenSegs.map(a),jsEvent:e,view:r.viewApi})),!s||s==="popover"?this.setState({isPopoverOpen:!0}):typeof s=="string"&&r.calendarApi.zoomTo(i,s)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return p(ke.Consumer,null,r=>{let{viewApi:s,options:i,calendarApi:a}=r,{moreLinkText:o}=i,{moreCnt:l}=e,d=Ns(e),c=typeof o=="function"?o.call(a,l):`+${l} ${o}`,g=pt(i.moreLinkHint,[l],c),h={num:l,shortText:`+${l}`,text:c,view:s};return p(W,null,!!e.moreCnt&&p(fe,{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),Vi(this.handleClick)),{title:g,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:e.defaultGenerator||Hu,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),n.isPopoverOpen&&p(Bu,{id:n.popoverId,startDate:d.start,endDate:d.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Se(this.linkEl,".fc-view-harness"))}}function Hu(t){return t.text}function Ns(t){if(t.allDayDate)return{start:t.allDayDate,end:te(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Na(e),end:zu(e)}}function Na(t){return t.reduce(Lu).eventRange.range.start}function Lu(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function zu(t){return t.reduce(Uu).eventRange.range.end}function Uu(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class Fu{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 Wu extends Fu{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let r=!1;e.isActive?(n.set(e.id,e),r=!0):n.has(e.id)&&(n.delete(e.id),r=!0),r&&this.set(n)}}const Vu=[],Ia={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"},Oa=Object.assign(Object.assign({},Ia),{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 Gu(t){let e=t.length>0?t[0].code:"en",n=Vu.concat(t),r={en:Oa};for(let s of n)r[s.code]=s;return{map:r,defaultCode:e}}function Pa(t,e){return typeof t=="object"&&!Array.isArray(t)?ja(t.code,[t.code],t):$u(t,e)}function $u(t,e){let n=[].concat(t||[]),r=qu(n,e)||Oa;return ja(t,n,r)}function qu(t,e){for(let n=0;n<t.length;n+=1){let r=t[n].toLocaleLowerCase().split("-");for(let s=r.length;s>0;s-=1){let i=r.slice(0,s).join("-");if(e[i])return e[i]}}return null}function ja(t,e,n){let r=dr([Ia,n],["buttonText"]);delete r.code;let{week:s}=r;return delete r.week,{codeArg:t,codes:e,week:s,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function Ye(t){return{id:qe(),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 Qu(t,e){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function s(i){for(let a of i){const o=a.name,l=n[o];l===void 0?(n[o]=a.id,s(a.deps),r=Zu(r,a)):l!==a.id&&console.warn(`Duplicate plugin '${o}'`)}}return t&&s(t),s(e),r}function Yu(){let t=[],e=[],n;return(r,s)=>((!n||!Be(r,t)||!Be(s,e))&&(n=Qu(r,s)),t=r,e=s,n)}function Zu(t,e){return{premiumReleaseDate:Ku(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 Ku(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class Le extends Et{}Le.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};Le.prototype.baseIconClass="fc-icon";Le.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"};Le.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};Le.prototype.iconOverrideOption="buttonIcons";Le.prototype.iconOverrideCustomButtonOption="icon";Le.prototype.iconOverridePrefix="fc-icon-";function Ju(t,e){let n={},r;for(r in t)er(r,n,t,e);for(r in e)er(r,n,t,e);return n}function er(t,e,n,r){if(e[t])return e[t];let s=Xu(t,e,n,r);return s&&(e[t]=s),s}function Xu(t,e,n,r){let s=n[t],i=r[t],a=c=>s&&s[c]!==null?s[c]:i&&i[c]!==null?i[c]:null,o=a("component"),l=a("superType"),d=null;if(l){if(l===t)throw new Error("Can't have a custom view type that references itself");d=er(l,e,n,r)}return!o&&d&&(o=d.component),o?{type:t,component:o,defaults:Object.assign(Object.assign({},d?d.defaults:{}),s?s.rawOptions:{}),overrides:Object.assign(Object.assign({},d?d.overrides:{}),i?i.rawOptions:{})}:null}function Is(t){return Ge(t,ef)}function ef(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=Os(e):n&&!(n.prototype instanceof H)&&(n=Os(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function Os(t){return e=>p(ke.Consumer,null,n=>p(fe,{elTag:"div",elClasses:Xi(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 tf(t,e,n,r){let s=Is(t),i=Is(e.views),a=Ju(s,i);return Ge(a,o=>nf(o,i,e,n,r))}function nf(t,e,n,r,s){let i=t.overrides.duration||t.defaults.duration||r.duration||n.duration,a=null,o="",l="",d={};if(i&&(a=rf(i),a)){let h=qn(a);o=h.unit,h.value===1&&(l=o,d=e[o]?e[o].rawOptions:{})}let c=h=>{let u=h.buttonText||{},m=t.defaults.buttonTextKey;return m!=null&&u[m]!=null?u[m]:u[t.type]!=null?u[t.type]:u[l]!=null?u[l]:null},g=h=>{let u=h.buttonHints||{},m=t.defaults.buttonTextKey;return m!=null&&u[m]!=null?u[m]:u[t.type]!=null?u[t.type]:u[l]!=null?u[l]:null};return{type:t.type,component:t.component,duration:a,durationUnit:o,singleUnit:l,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},d),t.overrides),buttonTextOverride:c(r)||c(n)||t.overrides.buttonText,buttonTextDefault:c(s)||t.defaults.buttonText||c(gt)||t.type,buttonTitleOverride:g(r)||g(n)||t.overrides.buttonHint,buttonTitleDefault:g(s)||t.defaults.buttonHint||g(gt)}}let Ps={};function rf(t){let e=JSON.stringify(t),n=Ps[e];return n===void 0&&(n=P(t),Ps[e]=n),n}function sf(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function af(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function of(t,e,n){let r=t.initialDate;return r!=null?e.createMarker(r):n.getDateMarker()}function lf(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function cf(t,e,n,r){let s;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(s=r.buildPrev(t,n),s.isValid)return s;break;case"NEXT":if(s=r.buildNext(t,n),s.isValid)return s;break}return t}function df(t,e,n){let r=e?e.activeRange:null;return Ha({},vf(t,n),r,n)}function uf(t,e,n,r){let s=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Ha(t,e.sources,s,r);case"REMOVE_EVENT_SOURCE":return hf(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?La(t,s,r):t;case"FETCH_EVENT_SOURCES":return Sr(t,e.sourceIds?Qi(e.sourceIds):za(t,r),s,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return mf(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function ff(t,e,n){let r=e?e.activeRange:null;return Sr(t,za(t,n),r,!0,n)}function Ba(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Ha(t,e,n,r){let s={};for(let i of e)s[i.sourceId]=i;return n&&(s=La(s,n,r)),Object.assign(Object.assign({},t),s)}function hf(t,e){return at(t,n=>n.sourceId!==e)}function La(t,e,n){return Sr(t,at(t,r=>pf(r,e,n)),e,!1,n)}function pf(t,e,n){return Ua(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function Sr(t,e,n,r,s){let i={};for(let a in t){let o=t[a];e[a]?i[a]=gf(o,n,r,s):i[a]=o}return i}function gf(t,e,n,r){let{options:s,calendarApi:i}=r,a=r.pluginHooks.eventSourceDefs[t.sourceDefId],o=qe();return a.fetch({eventSource:t,range:e,isRefetch:n,context:r},l=>{let{rawEvents:d}=l;s.eventSourceSuccess&&(d=s.eventSourceSuccess.call(i,d,l.response)||d),t.success&&(d=t.success.call(i,d,l.response)||d),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:o,fetchRange:e,rawEvents:d})},l=>{let d=!1;s.eventSourceFailure&&(s.eventSourceFailure.call(i,l),d=!0),t.failure&&(t.failure(l),d=!0),d||console.warn(l.message,l),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:o,fetchRange:e,error:l})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:o})}function mf(t,e,n,r){let s=t[e];return s&&n===s.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},s),{isFetching:!1,fetchRange:r})}):t}function za(t,e){return at(t,n=>Ua(n,e))}function vf(t,e){let n=oa(e),r=[].concat(t.eventSources||[]),s=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let i of r){let a=aa(i,e,n);a&&s.push(a)}return s}function Ua(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function bf(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function yf(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function Af(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 Ef(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 xf(t,e,n,r,s){let i=t.headerToolbar?js(t.headerToolbar,t,e,n,r,s):null,a=t.footerToolbar?js(t.footerToolbar,t,e,n,r,s):null;return{header:i,footer:a}}function js(t,e,n,r,s,i){let a={},o=[],l=!1;for(let d in t){let c=t[d],g=wf(c,e,n,r,s,i);a[d]=g.widgets,o.push(...g.viewsWithButtons),l=l||g.hasTitle}return{sectionWidgets:a,viewsWithButtons:o,hasTitle:l}}function wf(t,e,n,r,s,i){let a=e.direction==="rtl",o=e.customButtons||{},l=n.buttonText||{},d=e.buttonText||{},c=n.buttonHints||{},g=e.buttonHints||{},h=t?t.split(" "):[],u=[],m=!1;return{widgets:h.map(y=>y.split(",").map(A=>{if(A==="title")return m=!0,{buttonName:A};let E,R,x,G,I,N;if(E=o[A])x=T=>{E.click&&E.click.call(T.target,T,T.target)},(G=r.getCustomButtonIconClass(E))||(G=r.getIconClass(A,a))||(I=E.text),N=E.hint||E.text;else if(R=s[A]){u.push(A),x=()=>{i.changeView(A)},(I=R.buttonTextOverride)||(G=r.getIconClass(A,a))||(I=R.buttonTextDefault);let T=R.buttonTextOverride||R.buttonTextDefault;N=pt(R.buttonTitleOverride||R.buttonTitleDefault||e.viewHint,[T,A],T)}else if(i[A])if(x=()=>{i[A]()},(I=l[A])||(G=r.getIconClass(A,a))||(I=d[A]),A==="prevYear"||A==="nextYear"){let T=A==="prevYear"?"prev":"next";N=pt(c[T]||g[T],[d.year||"year","year"],d[A])}else N=T=>pt(c[A]||g[A],[d[T]||T,T],d[A]);return{buttonName:A,buttonClick:x,buttonIcon:G,buttonText:I,buttonHint:N}})),viewsWithButtons:u,hasTitle:m}}class Cf{constructor(e,n,r){this.type=e,this.getCurrentData=n,this.dateEnv=r}
1get 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 Sf={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const Df=Ye({name:"array-event-source",eventSourceDefs:[Sf]});let _f={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,s=t.eventSource.meta;$d(s.bind(null,va(t.range,r)),i=>e({rawEvents:i}),n)}};const Rf=Ye({name:"func-event-source",eventSourceDefs:[_f]}),Tf={method:String,extraParams:v,startParam:String,endParam:String,timeZoneParam:String};let kf={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:r}=t.eventSource,s=Nf(r,t.range,t.context);qd(r.method,r.url,s).then(([i,a])=>{e({rawEvents:i,response:a})},n)}};const Mf=Ye({name:"json-event-source",eventSourceRefiners:Tf,eventSourceDefs:[kf]});function Nf(t,e,n){let{dateEnv:r,options:s}=n,i,a,o,l,d={};return i=t.startParam,i==null&&(i=s.startParam),a=t.endParam,a==null&&(a=s.endParam),o=t.timeZoneParam,o==null&&(o=s.timeZoneParam),typeof t.extraParams=="function"?l=t.extraParams():l=t.extraParams||{},Object.assign(d,l),d[i]=r.formatIso(e.start),d[a]=r.formatIso(e.end),r.timeZone!=="local"&&(d[o]=r.timeZone),d}const If={daysOfWeek:v,startTime:P,endTime:P,duration:P,startRecur:v,endRecur:v};let Of={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,dateEnv:e},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=nc(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=$e(e,{start:t.startRecur,end:t.endRecur});return r?jf(t.daysOfWeek,t.startTime,t.dateEnv,n,r):[]}};const Pf=Ye({name:"simple-recurring-event",recurringTypes:[Of],eventRefiners:If});function jf(t,e,n,r,s){let i=t?Qi(t):null,a=$(s.start),o=s.end,l=[];for(e&&(e.milliseconds<0?o=te(o,1):e.milliseconds>=1e3*60*60*24&&(a=te(a,-1)));a<o;){let d;(!i||i[a.getUTCDay()])&&(e?d=r.add(a,e):d=a,l.push(r.createMarker(n.toDate(d)))),a=te(a,1)}return l}const Bf=Ye({name:"change-handler",optionChangeHandlers:{events(t,e){Bs([t],e)},eventSources:Bs}});function Bs(t,e){let n=ur(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let r=[];for(let s of t){let i=!1;for(let a=0;a<n.length;a+=1)if(n[a]._raw===s){n.splice(a,1),i=!0;break}i||r.push(s)}for(let s of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:s.sourceId});for(let s of r)e.calendarApi.addEventSource(s)}function Hf(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},va(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function Lf(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",vr(t,e))}const zf=[Df,Rf,Mf,Pf,Bf,Ye({name:"misc",isLoadingFuncs:[t=>Ba(t.eventSources)],propSetHandlers:{dateProfile:Hf,eventStore:Lf}})];class Uf{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new ir(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function Ff(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,Q(e.titleFormat||Wf(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Wf(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};
vendor: 19,114 bytes, line 1
1if(e==="month")return{year:"numeric",month:"long"};let n=Kt(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Hs{constructor(){this.resetListeners=new Set}handleInput(e,n){const r=this.dateEnv;if(e!==r&&(typeof n=="function"?this.nowFn=n:r||(this.nowAnchorDate=e.toDate(n?e.createMarker(n):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,r))for(const s of this.resetListeners.values())s()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}}class Vf{constructor(e){this.computeCurrentViewData=_(this._computeCurrentViewData),this.organizeRawLocales=_(Gu),this.buildLocale=_(Pa),this.buildPluginHooks=Yu(),this.buildDateEnv=_(Gf),this.buildTheme=_($f),this.parseToolbars=_(xf),this.buildViewSpecs=_(tf),this.buildDateProfileGenerator=zt(qf),this.buildViewApi=_(Qf),this.buildViewUiProps=zt(Kf),this.buildEventUiBySource=_(Yf,ye),this.buildEventUiBases=_(Zf),this.parseContextBusinessHours=zt(Jf),this.buildTitle=_(Ff),this.nowManager=new Hs,this.emitter=new wd,this.actionRunner=new Uf(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(),this.nowManager=new Hs;let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),s=r.calendarOptions.initialView||r.pluginHooks.initialView,i=this.computeCurrentViewData(s,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);let a={nowManager:this.nowManager,dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},o=of(r.calendarOptions,r.dateEnv,this.nowManager),l=i.dateProfileGenerator.build(o);Re(l.activeRange,o)||(o=l.currentRange.start);for(let h of r.pluginHooks.contextInit)h(a);let d=df(r.calendarOptions,l,a),c={dynamicOptionOverrides:n,currentViewType:s,currentDate:o,dateProfile:l,businessHours:this.parseContextBusinessHours(a),eventSources:d,eventUiBases:{},eventStore:Te(),renderableEventStore:Te(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},g=Object.assign(Object.assign({},a),c);for(let h of r.pluginHooks.reducers)Object.assign(c,h(null,null,g));Nn(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:s}=this,i=lf(r.dynamicOptionOverrides,e),a=this.computeOptionsData(n.optionOverrides,i,n.calendarApi),o=sf(r.currentViewType,e),l=this.computeCurrentViewData(o,a,n.optionOverrides,i);n.calendarApi.currentDataManager=this,s.setThisContext(n.calendarApi),s.setOptions(l.options);let d={nowManager:this.nowManager,dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:s,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:g}=r;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(g=l.dateProfileGenerator.build(c)),c=af(c,e),g=cf(g,e,c,l.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!Re(g.currentRange,c))&&(c=g.currentRange.start);let h=uf(r.eventSources,e,g,d),u=bd(r.eventStore,e,h,g,d),b=Ba(h)&&!l.options.progressiveEventRendering&&r.renderableEventStore||u,{eventUiSingleBase:y,selectionConfig:A}=this.buildViewUiProps(d),E=this.buildEventUiBySource(h),R=this.buildEventUiBases(b.defs,y,E),x={dynamicOptionOverrides:i,currentViewType:o,currentDate:c,dateProfile:g,eventSources:h,eventStore:u,renderableEventStore:b,selectionConfig:A,eventUiBases:R,businessHours:this.parseContextBusinessHours(d),dateSelection:bf(r.dateSelection,e),eventSelection:yf(r.eventSelection,e),eventDrag:Af(r.eventDrag,e),eventResize:Ef(r.eventResize,e)},G=Object.assign(Object.assign({},d),x);for(let T of a.pluginHooks.reducers)Object.assign(x,T(r,e,G));let I=Nn(r,d),N=Nn(x,d);!I&&N?s.trigger("loading",!0):I&&!N&&s.trigger("loading",!1),this.state=x,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,s=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(n.currentViewType,s,e.optionOverrides,n.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(n.dateProfile,i.options,s.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},s),i),n),o=s.pluginHooks.optionChangeHandlers,l=r&&r.calendarOptions,d=s.calendarOptions;if(l&&l!==d){l.timeZone!==d.timeZone&&(n.eventSources=a.eventSources=ff(a.eventSources,n.dateProfile,a),n.eventStore=a.eventStore=Cs(a.eventStore,r.dateEnv,a.dateEnv),n.renderableEventStore=a.renderableEventStore=Cs(a.renderableEventStore,r.dateEnv,a.dateEnv));for(let c in o)(this.optionsForHandling.indexOf(c)!==-1||l[c]!==d[c])&&o[c](d[c],a)}this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:s,pluginHooks:i,localeDefaults:a,availableLocaleData:o,extra:l}=this.processRawCalendarOptions(e,n);Ls(l);let d=this.buildDateEnv(s.timeZone,s.locale,s.weekNumberCalculation,s.firstDay,s.weekText,i,o,s.defaultRangeSeparator),c=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),g=this.buildTheme(s,i),h=this.parseToolbars(s,this.stableOptionOverrides,g,c,r);return this.stableCalendarOptionsData={calendarOptions:s,pluginHooks:i,dateEnv:d,viewSpecs:c,theme:g,toolbarConfig:h,localeDefaults:a,availableRawLocales:o.map}}processRawCalendarOptions(e,n){let{locales:r,locale:s}=Sn([gt,e,n]),i=this.organizeRawLocales(r),a=i.map,o=this.buildLocale(s||i.defaultCode,a).options,l=this.buildPluginHooks(e.plugins||[],zf),d=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vs),bs),ys),l.listenerRefiners),l.optionRefiners),c={},g=Sn([gt,o,e,n]),h={},u=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,b=!1;for(let y in g)this.optionsForRefining.indexOf(y)===-1&&(g[y]===u[y]||ze[y]&&y in u&&ze[y](u[y],g[y]))?h[y]=m[y]:d[y]?(h[y]=d[y](g[y]),b=!0):c[y]=u[y];return b&&(this.currentCalendarOptionsInput=g,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:i,localeDefaults:o,extra:c}}_computeCurrentViewData(e,n,r,s){let i=n.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:o}=this.processRawViewOptions(i,n.pluginHooks,n.localeDefaults,r,s);Ls(o),this.nowManager.handleInput(n.dateEnv,a.now);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),d=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:i,options:a,dateProfileGenerator:l,viewApi:d}}processRawViewOptions(e,n,r,s,i){let a=Sn([gt,e.optionDefaults,r,s,e.optionOverrides,i]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vs),bs),ys),Oc),n.listenerRefiners),n.optionRefiners),l={},d=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,g=!1,h={};for(let u in a)a[u]===d[u]||ze[u]&&ze[u](a[u],d[u])?l[u]=c[u]:(a[u]===this.currentCalendarOptionsInput[u]||ze[u]&&ze[u](a[u],this.currentCalendarOptionsInput[u])?u in this.currentCalendarOptionsRefined&&(l[u]=this.currentCalendarOptionsRefined[u]):o[u]?l[u]=o[u](a[u]):h[u]=a[u],g=!0);return g&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function Gf(t,e,n,r,s,i,a,o){let l=Pa(e||a.defaultCode,a.map);return new Gc({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:s,cmdFormatter:i.cmdFormatter,defaultSeparator:o})}function $f(t,e){let n=e.themeClasses[t.themeSystem]||Le;return new n(t)}function qf(t){let e=t.dateProfileGeneratorClass||sd;return new e(t)}function Qf(t,e,n){return new Cf(t,e,n)}function Yf(t){return Ge(t,e=>e.ui)}function Zf(t,e,n){let r={"":e};for(let s in t){let i=t[s];i.sourceId&&n[i.sourceId]&&(r[s]=n[i.sourceId])}return r}function Kf(t){let{options:e}=t;return{eventUiSingleBase:rn({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:rn({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function Nn(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Jf(t){return _d(t.options.businessHours,t)}function Ls(t,e){for(let n in t)console.warn(`Unknown option '${n}'`)}class Xf extends H{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return p("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,s=[],i=!0;for(let a of e){let{buttonName:o,buttonClick:l,buttonText:d,buttonIcon:c,buttonHint:g}=a;if(o==="title")i=!1,s.push(p("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=o===n.activeButton,u=!n.isTodayEnabled&&o==="today"||!n.isPrevEnabled&&o==="prev"||!n.isNextEnabled&&o==="next",m=[`fc-${o}-button`,r.getClass("button")];h&&m.push(r.getClass("buttonActive")),s.push(p("button",{type:"button",title:typeof g=="function"?g(n.navUnit):g,disabled:u,"aria-pressed":h,className:m.join(" "),onClick:l},d||(c?p("span",{className:c,role:"img"}):"")))}}if(s.length>1){let a=i&&r.getClass("buttonGroup")||"";return p("div",{className:a},...s)}return s[0]}}class zs extends H{render(){let{model:e,extraClassName:n}=this.props,r=!1,s,i,a=e.sectionWidgets,o=a.center;return a.left?(r=!0,s=a.left):s=a.start,a.right?(r=!0,i=a.right):i=a.end,p("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",s||[]),this.renderSection("center",o||[]),this.renderSection("end",i||[]))}renderSection(e,n){let{props:r}=this;return p(Xf,{key:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class eh extends H{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,xe(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,s=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",a="";return r?n.availableWidth!==null?i=n.availableWidth/r:a=`${1/r*100}%`:i=e.height||"",p("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:s.join(" "),style:{height:i,paddingBottom:a}},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 th extends Aa{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:s}=this,{context:i}=s,a=Kn(r);if(a&&s.isValidSegDownEl(n.target)){let o=Se(n.target,".fc-event-forced-url"),l=o?o.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:r,event:new pe(s.context,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:i.viewApi}),l&&!n.defaultPrevented&&(window.location.href=l)}},this.destroy=Wi(e.el,"click",".fc-event",this.handleSegClick)}}class nh extends Aa{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{Kn(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=ql(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:s}=this,{context:i}=s,a=Kn(r);(!n||s.isValidSegDownEl(n.target))&&i.emitter.trigger(e,{el:r,event:new pe(i,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:i.viewApi})}}class rh extends Qe{constructor(){super(...arguments),this.buildViewContext=_(Qc),this.buildViewPropTransformers=_(ih),this.buildToolbarProps=_(sh),this.headerRef=ge(),this.footerRef=ge(),this.interactionsStore={},this.state={viewLabelId:cn()},this.registerInteractiveComponent=(e,n)=>{let r=Zd(e,n),a=[th,nh].concat(this.props.pluginHooks.componentInteractions).map(o=>new o(r));this.interactionsStore[e.uid]=a,Ts[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete Ts[e.uid]},this.resizeRunner=new ir(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,s=!1,i="",a;e.isHeightAuto||e.forPrint?i="":r.height!=null?s=!0:r.contentHeight!=null?i=r.contentHeight:a=Math.max(r.aspectRatio,.5);let o=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.nowManager,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return p(ke.Provider,{value:o},p(ct,{unit:"day"},d=>{let c=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,d,e.viewTitle);return p(W,null,n.header&&p(zs,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},c)),p(eh,{liquid:s,height:i,aspectRatio:a,labeledById:l},this.renderView(e),this.buildAppendContent()),n.footer&&p(zs,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},c)))}))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let s in r)n[s]!==e[s]&&r[s](n[s],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return p(W,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,s={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},i=this.buildViewPropTransformers(n.viewPropsTransformers);for(let o of i)Object.assign(s,o.transform(s,e));let a=r.component;return p(a,Object.assign({},s))}}function sh(t,e,n,r,s,i){let a=n.build(s,void 0,!1),o=n.buildPrev(e,r,!1),l=n.buildNext(e,r,!1);return{title:i,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:a.isValid&&!Re(e.currentRange,s),isPrevEnabled:o.isValid,isNextEnabled:l.isValid}}function ih(t){return t.map(e=>new e)}class ah extends Jd{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;tn(()=>{bt(p(Yd,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(s,i,a,o)=>(this.setClassNames(s),this.setHeight(i),p(Ji.Provider,{value:this.customContentRenderId},p(rh,Object.assign({isHeightAuto:a,forPrint:o},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,bt(null,this.el),this.setClassNames([]),this.setHeight(""))},Pl(e),this.el=e,this.renderRunner=new ir(this.handleRenderRequest),new Vf({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(){tn(()=>{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(!Be(e,this.currentClassNames)){let{classList:n}=this.el;
1for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){Fi(this.el,"height",e)}}const oh=parseInt(String(zn.version).split(".")[0]),lh=oh<18;class Fa extends w.Component{constructor(){super(...arguments),this.elRef=w.createRef(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame(()=>{this.doResize()}))}}render(){const e=[];for(const n of this.state.customRenderingMap.values())e.push(zn.createElement(ch,{key:n.id,customRendering:n}));return zn.createElement("div",{ref:this.elRef},e)}componentDidMount(){this.isUnmounting=!1;const e=new Wu;this.handleCustomRendering=e.handle.bind(e),this.calendar=new ah(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),this.calendar.on("_beforeprint",()=>{Un.flushSync(()=>{})});let n;e.subscribe(r=>{const s=Date.now(),i=!n;(lh||i||this.isUpdating||this.isUnmounting||s-n<100?Wa:Un.flushSync)(()=>{this.setState({customRenderingMap:r},()=>{n=s,i?this.doResize():this.requestResize()})})})}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){this.resizeId!==void 0&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}Fa.act=Wa;class ch extends w.PureComponent{render(){const{customRendering:e}=this.props,{generatorMeta:n}=e,r=typeof n=="function"?n(e.renderProps):n;return Un.createPortal(r,e.containerEl)}}function Wa(t){t()}function Ft(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.row].push(r);return n}function It(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.firstCol].push(r);return n}function Us(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.row].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}const Va=Q({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Ga(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 $a extends H{render(){let{props:e}=this;return p(Er,Object.assign({}
vendor: 2,319 bytes, line 1
1,e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Va,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class qa extends H{render(){let{props:e,context:n}=this,{options:r}=n,{seg:s}=e,i=r.eventTimeFormat||Va,a=pa(s,i,n,!0,e.defaultDisplayEventEnd);return p(Ar,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:ma(e.seg,n),defaultGenerator:dh,timeText:a,isResizing:!1,isDateSelecting:!1}))}}function dh(t){return p(W,null,p("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&p("div",{className:"fc-event-time"},t.timeText),p("div",{className:"fc-event-title"},t.event.title||p(W,null,"Â ")))}class uh extends H{constructor(){super(...arguments),this.compileSegs=_(fh)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return p(Ma,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let s=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return p(W,null,n.map(i=>{let a=i.eventRange.instance.instanceId;return p("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:s[a]?"hidden":""}},Ga(i)?p(qa,Object.assign({seg:i,isDragging:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},je(i,e.todayRange))):p($a,Object.assign({seg:i,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},je(i,e.todayRange))))}))}})}}function fh(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}const hh=Q({week:"narrow"});class ph extends Me{constructor(){super(...arguments),this.rootElRef=ge(),this.state={dayNumberId:cn()},this.handleRootEl=e=>{xe(this.rootElRef,e),xe(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:s}=this,{options:i,dateEnv:a}=e,{date:o,dateProfile:l}=n;const d=n.showDayNumber&&mh(o,l.currentRange,a);return p(wr,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygri
1d-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:gh,date:o,dateProfile:l,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:d,extraRenderProps:n.extraRenderProps},(c,g)=>p("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&p(ka,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:sn(e,o,"week"),date:o,defaultFormat:hh}),!g.isDisabled&&(n.showDayNumber||Cr(i)||n.forceDayTop)?p("div",{className:"fc-daygrid-day-top"},p(c,{elTag:"a",elClasses:["fc-daygrid-day-number",d&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},sn(e,o)),{id:r.dayNumberId})})):n.showDayNumber?p("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},p("a",{className:"fc-daygrid-day-number"},"Â ")):void 0,p("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,p("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},p(uh,{allDayDate:o,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:s,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),p("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function gh(t){return t.dayNumberText||p(W,null,"Â ")}function mh(t,e,n){const{start:r,end:s}=e,i=He(s,-1),a=n.getYear(r),o=n.getMonth(r),l=n.getYear(i),d=n.getMonth(i);return!(a===l&&o===d)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<s.valueOf())}function Qa(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Ya(t){return Qa(t)+":"+t.lastCol}function vh(t,e,n,r,s,i,a){let o=new Ah(A=>{let E=t[A.index].eventRange.instance.instanceId+":"+A.span.start+":"+(A.span.end-1);return s[E]||1});o.allowReslicing=!0,o.strictOrder=r,e===!0||n===!0?(o.maxCoord=i,o.hiddenConsumes=!0):typeof e=="number"?o.maxStackCnt=e:typeof n=="number"&&(o.maxStackCnt=n,o.hiddenConsumes=!0);let l=[],d=[];for(let A=0;A<t.length;A+=1){let E=t[A],R=Ya(E);s[R]!=null?l.push({index:A,span:{start:E.firstCol,end:E.lastCol+1}}):d.push(E)}let c=o.addSegs(l),g=o.toRects(),{singleColPlacements:h,multiColPlacements:u,leftoverMargins:m}=bh(g,t,a),b=[],y=[];for(let A of d){u[A.firstCol].push({seg:A,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let E=A.firstCol;E<=A.lastCol;E+=1)h[E].push({seg:nt(A,E,E+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let A=0;A<a.length;A+=1)b.push(0);for(let A of c){let E=t[A.index],R=A.span;u[R.start].push({seg:nt(E,R.start,R.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let x=R.start;x<R.end;x+=1)b[x]+=1,h[x].push({seg:nt(E,x,x+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let A=0;A<a.length;A+=1)y.push(m[A]);return{singleColPlacements:h,multiColPlacements:u,moreCnts:b,moreMarginTops:y}}function bh(t,e,n){let r=yh(t,n.length),s=[],i=[],a=[];for(let o=0;o<n.length;o+=1){let l=r[o],d=[],c=0,g=0;for(let u of l){let m=e[u.index];d.push({seg:nt(m,o,o+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:u.levelCoord,marginTop:u.levelCoord-c}),c=u.levelCoord+u.thickness}let h=[];c=0,g=0;for(let u of l){let m=e[u.index],b=u.span.end-u.span.start>1,y=u.span.start===o;g+=u.levelCoord-c,c=u.levelCoord+u.thickness,b?(g+=u.thickness,y&&h.push({seg:nt(m,u.span.start,u.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:u.levelCoord,marginTop:0})):y&&(h.push({seg:nt(m,u.span.start,u.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:u.levelCoord,marginTop:g}),g=0)}s.push(d),i.push(h),a.push(g)}return{singleColPlacements:s,multiColPlacements:i,leftoverMargins:a}}function yh(t,e){let n=[];for(let r=0;r<e;r+=1)n.push([]);for(let r of t)for(let s=r.span.start;s<r.span.end;s+=1)n[s].push(r);return n}function nt(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let s=t.eventRange,i=s.range,a=$e(i,{start:r[e].date,end:te(r[n-1].date,1)});return Object.assign(Object.assign({}
vendor: 8,472 bytes, line 1
1,t),{firstCol:e,lastCol:n-1,eventRange:{def:s.def,ui:Object.assign(Object.assign({},s.ui),{durationEditable:!1}),instance:s.instance,range:a},isStart:t.isStart&&a.start.valueOf()===i.start.valueOf(),isEnd:t.isEnd&&a.end.valueOf()===i.end.valueOf()})}class Ah extends xa{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,s=i=>!this.forceHidden[Ve(i)];for(let i=0;i<r.length;i+=1)r[i]=r[i].filter(s);return n}handleInvalidInsertion(e,n,r){const{entriesByLevel:s,forceHidden:i}=this,{touchingEntry:a,touchingLevel:o,touchingLateral:l}=e;if(this.hiddenConsumes&&a){const d=Ve(a);if(!i[d])if(this.allowReslicing){const c=Object.assign(Object.assign({},a),{span:yr(a.span,n.span)}),g=Ve(c);i[g]=!0,s[o][l]=c,r.push(c),this.splitEntry(a,n,r)}else i[d]=!0,r.push(a)}super.handleInvalidInsertion(e,n,r)}}class Za extends Me{constructor(){super(...arguments),this.cellElRefs=new De,this.frameElRefs=new De,this.fgElRefs=new De,this.segHarnessRefs=new De,this.rootElRef=ge(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:s}=r,i=e.cells.length,a=It(e.businessHourSegs,i),o=It(e.bgEventSegs,i),l=It(this.getHighlightSegs(),i),d=It(this.getMirrorSegs(),i),{singleColPlacements:c,multiColPlacements:g,moreCnts:h,moreMarginTops:u}=vh(ha(e.fgEventSegs,s.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,s.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),m=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return p("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((b,y)=>{let A=this.renderFgSegs(y,e.forPrint?c[y]:g[y],e.todayRange,m),E=this.renderFgSegs(y,Eh(d[y],g),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return p(ph,{key:b.key,elRef:this.cellElRefs.createRef(b.key),innerElRef:this.frameElRefs.createRef(b.key),dateProfile:e.dateProfile,date:b.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&y===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:b.extraRenderProps,extraDataAttrs:b.extraDataAttrs,extraClassNames:b.extraClassNames,extraDateSpan:b.extraDateSpan,moreCnt:h[y],moreMarginTop:u[y],singlePlacements:c[y],fgContentElRef:this.fgElRefs.createRef(b.key),fgContent:p(W,null,p(W,null,A),p(W,null,E)),bgContent:p(W,null,this.renderFillSegs(l[y],"highlight"),this.renderFillSegs(a[y],"non-business"),this.renderFillSegs(o[y],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!ye(e,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,r,s,i,a,o){let{context:l}=this,{eventSelection:d}=this.props,{framePositions:c}=this.state,g=this.props.cells.length===1,h=i||a||o,u=[];if(c)for(let m of n){let{seg:b}=m,{instanceId:y}=b.eventRange.instance,A=m.isVisible&&!s[y],E=m.isAbsolute,R="",x="";E&&(l.isRtl?(x=0,R=c.lefts[b.lastCol]-c.lefts[b.firstCol]):(R=0,x=c.rights[b.firstCol]-c.rights[b.lastCol])),u.push(p("div",{className:"fc-daygrid-event-harness"+(E?" fc-daygrid-event-harness-abs":""),key:Qa(b),ref:h?null:this.segHarnessRefs.createRef(Ya(b)),style:{visibility:A?"":"hidden",marginTop:E?"":m.marginTop,top:E?m.absoluteTop:"",left:R,right:x}},Ga(b)?p(qa,Object.assign({seg:b,isDragging:i,isSelected:y===d,defaultDisplayEventEnd:g},je(b,r))):p($a,Object.assign({seg:b,isDragging:i,isResizing:a,isDateSelecting:o,isSelected:y===d,defaultDisplayEventEnd:g},je(b,r)))))}return u}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:s}=this.props,{framePositions:i}=this.state,a=[];if(i)for(let o of e){let l=r?{right:0,left:i.lefts[o.lastCol]-i.lefts[o.firstCol]}:{left:0,right:i.rights[o.firstCol]-i.rights[o.lastCol]};a.push(p("div",{key:ga(o.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?p(Ra,Object.assign({seg:o},je(o,s))):Ta(n)))}return p(W,{},...a)}updateSizing(e){let{props:n,state:r,frameElRefs:s}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let l=n.cells.map(d=>s.currentMap[d.key]);if(l.length){let d=this.rootElRef.current,c=new ot(d,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(c))&&this.setState({framePositions:new ot(d,l,!0,!1)})}}const i=this.state.segHeights,a=this.querySegHeights(),o=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},i),a),maxContentHeight:o?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let s=Math.round(e[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,s)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}Za.addStateEquality({segHeights:ye});function Eh(t,e){if(!t.length)return[];let n=xh(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function xh(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class wh extends Me{constructor(){super(...arguments),this.splitBusinessHourSegs=_(Ft),this.splitBgEventSegs=_(Ch),this.splitFgEventSegs=_(Ft),this.splitDateSelectionSegs=_(Ft),this.splitEventDrag=_(Us),this.splitEventResize=_(Us),this.rowRefs=new De}render(){let{props:e,context:n}=this,r=e.cells.length,s=this.splitBusinessHourSegs(e.businessHourSegs,r),i=this.splitBgEventSegs(e.bgEventSegs,r),a=this.splitFgEventSegs(e.fgEventSegs,r),o=this.splitDateSelectionSegs(e.dateSelectionSegs,r),l=this.splitEventDrag(e.eventDrag,r),d=this.splitEventResize(e.eventResize,r),c=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return p(ct,{unit:"day"},(g,h)=>p(W,null,e.cells.map((u,m)=>p(Za,{ref:this.rowRefs.createRef(m),key:u.length?u[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:u,renderIntro:e.renderRowIntro,businessHourSegs:s[m],eventSelection:e.eventSelection,bgEventSegs:i[m],fgEventSegs:a[m],dateSelectionSegs:o[m],eventDrag:l[m],eventResize:d[m],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new ot(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new ot(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:s}=this,i=r.leftToIndex(e),a=s.topToIndex(n);if(a!=null&&i!=null){let o=this.props.cells[a][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,i),allDay:!0},o.extraDateSpan),dayEl:this.getCellEl(a,i),rect:{left:r.lefts[i],right:r.rights[i],top:s.tops[a],bottom:s.bottoms[a]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let r=this.props.cells[e][n].date,s=te(r,1);return{start:r,end:s}}}function Ch(t,e){return Ft(t.filter(Sh),e)}function Sh(t){return t.eventRange.def.allDay}class Dh extends Me{constructor(){super(...arguments),this.elRef=ge(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:s}=e,i=r===!0||n===!0;i&&!s&&(i=!1,n=null,r=null);
1let a=["fc-daygrid-body",i?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",s?"":"fc-daygrid-body-natural"];return p("div",{ref:this.elRef,className:a.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},p("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:s?e.clientHeight:""}},e.colGroupNode,p("tbody",{role:"presentation"},p(wh,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=_h(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),s=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=s?s+1:0}this.needsScrollReset=!1}}}function _h(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${vc(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${or(e.currentDate)}"]`)),n}class Rh extends Sa{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class Th extends Me{constructor(){super(...arguments),this.slicer=new Rh,this.tableRef=ge()}render(){let{props:e,context:n}=this;return p(Dh,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}))}}var kh=
vendor: 3,522 bytes, line 1
1':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}'
vendor: 24,354 bytes, line 1
1;sr(kh);class Mh extends eu{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?Pd(e)?["timed","allDay"]:["allDay"]:["timed"]}}const Nh=Q({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Ka(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return p(ke.Consumer,null,n=>{if(!t.isLabeled)return p("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:r,options:s,viewApi:i}=n,a=s.slotLabelFormat==null?Nh:Array.isArray(s.slotLabelFormat)?Q(s.slotLabelFormat[0]):Q(s.slotLabelFormat),o={level:0,time:t.time,date:r.toDate(t.date),view:i,text:r.format(t.date,a)};return p(fe,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:o,generatorName:"slotLabelContent",customGenerator:s.slotLabelContent,defaultGenerator:Ih,classNameGenerator:s.slotLabelClassNames,didMount:s.slotLabelDidMount,willUnmount:s.slotLabelWillUnmount},l=>p("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},p(l,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function Ih(t){return t.text}class Oh extends H{render(){return this.props.slatMetas.map(e=>p("tr",{key:e.key},p(Ka,Object.assign({},e))))}}const Ph=Q({week:"short"}),jh=5;class Bh extends Me{constructor(){super(...arguments),this.allDaySplitter=new Mh,this.headerElRef=ge(),this.rootElRef=ge(),this.scrollerElRef=ge(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=e)},this.renderHeadAxis=(e,n="")=>{let{options:r}=this.context,{dateProfile:s}=this.props,i=s.renderRange,o=lt(i.start,i.end)===1?sn(this.context,i.start,"week"):{};return r.weekNumbers&&e==="day"?p(ka,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:i.start,defaultFormat:Ph},l=>p("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},p(l,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:o}))):p("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},p("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:r}=this.context,s={text:n.allDayText,view:r};return p(fe,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:s,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:Hh,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},i=>p("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},p(i,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,n,r){let{context:s,props:i}=this,a=[],o=Ms(s.options);return e&&a.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),n&&(a.push({type:"body",key:"all-day",chunk:{content:n}}),a.push({type:"body",key:"all-day-divider",outerContent:p("tr",{role:"presentation",className:"fc-scrollgrid-section"},p("td",{className:"fc-timegrid-divider "+s.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:!!s.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),p(As,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:s.viewSpec},p(_a,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:"shrink"}],sections:a}))}renderHScrollLayout(e,n,r,s,i,a,o){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{context:d,props:c}=this,g=!c.forPrint&&Ms(d.options),h=!c.forPrint&&Tu(d.options),u=[];e&&u.push({type:"header",key:"header",isSticky:g,syncRowHeights:!0,chunks:[{key:"axis",rowContent:b=>p("tr",{role:"presentation"},this.renderHeadAxis("day",b.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(u.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:b=>p("tr",{role:"presentation"},this.renderTableRowAxis(b.rowSyncHeights[0]))},{key:"cols",content:n}]}),u.push({key:"all-day-divider",type:"body",outerContent:p("tr",{role:"presentation",className:"fc-scrollgrid-section"},p("td",{colSpan:2,className:"fc-timegrid-divider "+d.theme.getClass("tableCellShaded")}))}));let m=d.options.nowIndicator;return u.push({type:"body",key:"body",liquid:!0,expandRows:!!d.options.expandRows,chunks:[{key:"axis",content:b=>p("div",{className:"fc-timegrid-axis-chunk"},p("table",{"aria-hidden":!0,style:{height:b.expandRows?b.clientHeight:""}},b.tableColGroupNode,p("tbody",null,p(Oh,{slatMetas:a}))),p("div",{className:"fc-timegrid-now-indicator-container"},p(ct,{unit:m?"minute":"day"},y=>{let A=m&&o&&o.safeComputeTop(y);return typeof A=="number"?p(xr,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:A},isAxis:!0,date:y}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),h&&u.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:ks},{key:"cols",content:ks}]}),p(As,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:d.viewSpec},p(l,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:s,minWidth:i}]}],sections:u}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=jh),{dayMaxEvents:e,dayMaxEventRows:n}}}function Hh(t){return t.text}class Lh{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(Re(n.currentRange,e)){let r=$(e),s=e.valueOf()-r.valueOf();if(s>=be(n.slotMinTime)&&s<be(n.slotMaxTime))return this.computeTimeTop(P(s))}return null}computeDateTop(e,n){return n||(n=$(e)),this.computeTimeTop(P(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,s=n.els.length,i=(e.milliseconds-be(r.slotMinTime))/be(this.slotDuration),a,o;return i=Math.max(0,i),i=Math.min(s,i),a=Math.floor(i),a=Math.min(a,s-1),o=i-a,n.tops[a]+n.getHeight(a)*o}}class zh extends H{render(){let{props:e,context:n}=this,{options:r}=n,{slatElRefs:s}=e;return p("tbody",null,e.slatMetas.map((i,a)=>{let o={time:i.time,date:n.dateEnv.toDate(i.date),view:n.viewApi};return p("tr",{key:i.key,ref:s.createRef(i.key)},e.axis&&p(Ka,Object.assign({},i)),p(fe,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!i.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":i.isoTimeStr},renderProps:o,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class Uh extends H{constructor(){super(...arguments),this.rootElRef=ge(),this.slatElRefs=new De}render(){let{props:e,context:n}=this;return p("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},p("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,p(zh,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new Lh(new ot(this.rootElRef.current,Fh(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function Fh(t,e){return e.map(n=>t[n.key])}function ft(t,e){let n=[],r;for(r=0;r<e;r+=1)n.push([]);if(t)for(r=0;r<t.length;r+=1)n[t[r].col].push(t[r]);return n}function Fs(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.col].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}class Wh extends H{render(){let{props:e}=this;return p(Ma,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>Xa(e.hiddenSegs,e),defaultGenerator:Vh,forceTimed:!0},n=>p(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Vh(t){return t.shortText}function Gh(t,e,n){let r=new xa;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let s=r.addSegs(t),i=cu(s),a=$h(r);return a=Zh(a,1),{segRects:Kh(a),hiddenGroups:i}}function $h(t){const{entriesByLevel:e}=t,n=Dr((r,s)=>r+":"+s,(r,s)=>{let i=Yh(t,r,s),a=Ws(i,n),o=e[r][s];return[Object.assign(Object.assign({},o),{nextLevelNodes:a[0]}),o.thickness+a[1]]});return Ws(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function Ws(t,e){if(!t)return[[],0];let{level:n,lateralStart:r,lateralEnd:s}=t,i=r,a=[];for(;i<s;)a.push(e(n,i)),i+=1;return a.sort(qh),[a.map(Qh),a[0][1]]}function qh(t,e){return e[1]-t[1]}function Qh(t){return t[0]}function Yh(t,e,n){let{levelCoords:r,entriesByLevel:s}=t,i=s[e][n],a=r[e]+i.thickness,o=r.length,l=e;for(;l<o&&r[l]<a;l+=1);for(;l<o;l+=1){let d=s[l],c,g=Xn(d,i.span.start,Jn),h=g[0]+g[1],u=h;for(;(c=d[u])&&c.span.start<i.span.end;)u+=1;if(h<u)return{level:l,lateralStart:h,lateralEnd:u}}return null}function Zh(t,e){const n=Dr((r,s,i)=>Ve(r),(r,s,i)=>{let{nextLevelNodes:a,thickness:o}=r,l=o+i,d=o/l,c,g=[];if(!a.length)c=e;else for(let u of a)if(c===void 0){let m=n(u,s,l);c=m[0],g.push(m[1])}else{let m=n(u,c,0);g.push(m[1])}let h=(c-s)*d;return[c-h,Object.assign(Object.assign({},r),{thickness:h,nextLevelNodes:g})]});return t.map(r=>n(r,0,0)[1])}function Kh(t){let e=[];const n=Dr((s,i,a)=>Ve(s),(s,i,a)=>{let o=Object.assign(Object.assign({},s),{levelCoord:i,stackDepth:a,stackForward:0});return e.push(o),o.stackForward=r(s.nextLevelNodes,i+s.thickness,a+1)+1});function r(s,i,a){let o=0;for(let l of s)o=Math.max(n(l,i,a),o);return o}return r(t,0,0),e}function Dr(t,e){const n={};return(...r)=>{let s=t(...r);return s in n?n[s]:n[s]=e(...r)}}function Vs(t,e,n=null,r=0){let s=[];if(n)for(let i=0;i<t.length;i+=1){let a=t[i],o=n.computeDateTop(a.start,e),l=Math.max(o+(r||0),n.computeDateTop(a.end,e));s.push({start:Math.round(o),end:Math.round(l)})}return s}function Jh(t,e,n,r){let s=[],i=[];for(let d=0;d<t.length;d+=1){let c=e[d];c?s.push({index:d,thickness:1,span:c}):i.push(t[d])}let{segRects:a,hiddenGroups:o}=Gh(s,n,r),l=[];for(let d of a)l.push({seg:t[d.index],rect:d});for(let d of i)l.push({seg:d,rect:null});return{segPlacements:l,hiddenGroups:o}}const Xh=Q({hour:"numeric",minute:"2-digit",meridiem:!1});class Ja extends H{render(){return p(Er,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Xh}))}}class ep extends H{constructor(){super(...arguments),this.sortEventSegs=_(ha)}render(){let{props:e,context:n}=this,{options:r}=n,s=r.selectMirror,i=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||s&&e.dateSelectionSegs||[],a=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},o=this.sortEventSegs(e.fgEventSegs,r.eventOrder);return p(wr,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},l=>p("div",{className:"fc-timegrid-col-frame"},p("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),p("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,a,!1,!1,!1)),p("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(i,{},!!e.eventDrag,!!e.eventResize,!!s,"mirror")),p("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),Cr(r)&&p(l,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,s,i,a){let{props:o}=this;return o.forPrint?Xa(e,o):this.renderPositionedFgSegs(e,n,r,s,i,a)}renderPositionedFgSegs(e,n,r,s,i,a){let{eventMaxStack:o,eventShortHeight:l,eventOrderStrict:d,eventMinHeight:c}=this.context.options,{date:g,slatCoords:h,eventSelection:u,todayRange:m,nowDate:b}=this.props,y=r||s||i,A=Vs(e,g,h,c),{segPlacements:E,hiddenGroups:R}=Jh(e,A,d,o);return p(W,null,this.renderHiddenGroups(R,e),E.map(x=>{let{seg:G,rect:I}=x,N=G.eventRange.instance.instanceId,T=y||!!(!n[N]&&I),j=In(I&&I.span),ie=!y&&I?this.computeSegHStyle(I):{left:0,right:0},Z=!!I&&I.stackForward>0,he=!!I&&I.span.end-I.span.start<l;return p("div",{className:"fc-timegrid-event-harness"+(Z?" fc-timegrid-event-harness-inset":""),key:a||N,style:Object.assign(Object.assign({visibility:T?"":"hidden"},j),ie)},p(Ja,Object.assign({seg:G,isDragging:r,isResizing:s,isDateSelecting:i,isSelected:N===u,isShort:he},je(G,m,b))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:s,todayRange:i,nowDate:a,eventSelection:o,eventDrag:l,eventResize:d}=this.props;return p(W,null,e.map(c=>{let g=In(c.span),h=tp(c.entries,n);return p(Wh,{key:qi(Na(h)),hiddenSegs:h,top:g.top,bottom:g.bottom,extraDateSpan:r,dateProfile:s,todayRange:i,nowDate:a,eventSelection:o,eventDrag:l,eventResize:d})}))}renderFillSegs(e,n){let{props:r,context:s}=this,a=Vs(e,r.date,r.slatCoords,s.options.eventMinHeight).map((o,l)=>{let d=e[l];return p("div",{key:ga(d.eventRange),className:"fc-timegrid-bg-harness",style:In(o)},n==="bg-event"?p(Ra,Object.assign({seg:d},je(d,r.todayRange,r.nowDate))):Ta(n))});return p(W,null,a)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((s,i)=>p(xr,{key:i,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(s.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(e){let{isRtl:n,options:r}=this.context,s=r.slotEventOverlap,i=e.levelCoord,a=e.levelCoord+e.thickness,o,l;s&&(a=Math.min(1,i+(a-i)*2)),n?(o=1-a,l=i):(o=i,l=1-a);let d={zIndex:e.stackDepth+1,left:o*100+"%",right:l*100+"%"};return s&&!e.stackForward&&(d[n?"marginLeft":"marginRight"]=20),d}}function Xa(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:s,eventResize:i}){let a=(s?s.affectedInstances:null)||(i?i.affectedInstances:null)||{};return p(W,null,t.map(o=>{let l=o.eventRange.instance.instanceId;return p("div",{key:l,style:{visibility:a[l]?"hidden":""}},p(Ja,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===r,isShort:!1},je(o,e,n))))}))}function In(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function tp(t,e){return t.map(n=>e[n.index])}class np extends H{constructor(){super(...arguments),this.splitFgEventSegs=_(ft),this.splitBgEventSegs=_(ft),this.splitBusinessHourSegs=_(ft),this.splitNowIndicatorSegs=_(ft),this.splitDateSelectionSegs=_(ft),this.splitEventDrag=_(Fs),this.splitEventResize=_(Fs),this.rootElRef=ge(),this.cellElRefs=new De}render(){let{props:e,context:n}=this,r=n.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),s=e.cells.length,i=this.splitFgEventSegs(e.fgEventSegs,s),a=this.splitBgEventSegs(e.bgEventSegs,s),o=this.splitBusinessHourSegs(e.businessHourSegs,s),l=this.splitNowIndicatorSegs(e.nowIndicatorSegs,s),d=this.splitDateSelectionSegs(e.dateSelectionSegs,s),c=this.splitEventDrag(e.eventDrag,s),g=this.splitEventResize(e.eventResize,s);return p("div",{className:"fc-timegrid-cols",ref:this.rootElRef},p("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,p("tbody",{role:"presentation"},p("tr",{role:"row"},e.axis&&p("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},p("div",{className:"fc-timegrid-col-frame"},p("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&p(xr,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((h,u)=>p(ep,{key:h.key,elRef:this.cellElRefs.createRef(h.key),dateProfile:e.dateProfile,date:h.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:h.extraRenderProps,extraDataAttrs:h.extraDataAttrs,extraClassNames:h.extraClassNames,extraDateSpan:h.extraDateSpan,fgEventSegs:i[u],bgEventSegs:a[u],businessHourSegs:o[u],nowIndicatorSegs:l[u],dateSelectionSegs:d[u],eventDrag:c[u],eventResize:g[u],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new ot(this.rootElRef.current,rp(this.cellElRefs.currentMap,e.cells),!0,!1))}}function rp(t,e){return e.map(n=>t[n.key])}class sp extends Me{constructor(){super(...arguments),this.processSlotOptions=_(ip),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(e.time){let s=r.computeTimeTop(e.time);s=Math.ceil(s),s&&(s+=1),n(s)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:n}=this;return p("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},p(Uh,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),p(np,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,n){let{dateEnv:r,options:s}=this.context,{colCoords:i}=this,{dateProfile:a}=this.props,{slatCoords:o}=this.state,{snapDuration:l,snapsPerSlot:d}=this.processSlotOptions(this.props.slotDuration,s.snapDuration),c=i.leftToIndex(e),g=o.positions.topToIndex(n);if(c!=null&&g!=null){let h=this.props.cells[c],u=o.positions.tops[g],m=o.positions.getHeight(g),b=(n-u)/m,y=Math.floor(b*d),A=g*d+y,E=this.props.cells[c].date,R=$n(a.slotMinTime,rc(l,A)),x=r.add(E,R),G=r.add(x,l);return{dateProfile:a,dateSpan:Object.assign({range:{start:x,end:G},allDay:!1},h.extraDateSpan),dayEl:i.els[c],rect:{left:i.lefts[c],right:i.rights[c],top:u,bottom:u+m},layer:0}}return null}}function ip(t,e){let n=e||t,r=ar(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class ap extends Sa{sliceRange(e,n){let r=[];for(let s=0;s<n.length;s+=1){let i=$e(e,n[s]);i&&r.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:s})}return r}}class op extends Me{constructor(){super(...arguments),this.buildDayRanges=_(lp),this.slicer=new ap,this.timeColsRef=ge()}render(){let{props:e,context:n}=this,{dateProfile:r,dayTableModel:s}=e,{nowIndicator:i,nextDayThreshold:a}=n.options,o=this.buildDayRanges(s,r,n.dateEnv);return p(ct,{unit:i?"minute":"day"},(l,d)=>p(sp,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,r,null,n,o),{forPrint:e.forPrint,axis:e.axis,dateProfile:r,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:s.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:l,nowIndicatorSegs:i&&this.slicer.sliceNowDate(l,r,a,n,o),todayRange:d,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function lp(t,e,n){let r=[];for(let s of t.headerDates)r.push({start:n.add(s,e.slotMinTime),end:n.add(s,e.slotMaxTime)});return r}const Gs=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function cp(t,e,n,r,s){let i=new Date(0),a=t,o=P(0),l=n||dp(r),d=[];for(;be(a)<be(e);){let c=s.add(i,a),g=ar(o,l)!==null;d.push({date:c,time:a,key:c.toISOString(),isoTimeStr:bc(c),isLabeled:g}),a=$n(a,r),o=$n(o,r)}return d}function dp(t){let e,n,r;for(e=Gs.length-1;e>=0;e-=1)if(n=P(Gs[e]),r=ar(n,t),r!==null&&r>1)return n;return t}class up extends Bh{constructor(){super(...arguments),this.buildTimeColsModel=_(fp),this.buildSlatMetas=_(cp)}render(){let{options:e,dateEnv:n,dateProfileGenerator:r}=this.context,{props:s}=this,{dateProfile:i}=s,a=this.buildTimeColsModel(i,r),o=this.allDaySplitter.splitProps(s),l=this.buildSlatMetas(i.slotMinTime,i.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:d}=e,c=!d,g=d,h=e.dayHeaders&&p(gu,{dates:a.headerDates,dateProfile:i,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),u=e.allDaySlot!==!1&&(b=>p(Th,Object.assign({},o.allDay,{dateProfile:i,dayTableModel:a,nextDayThreshold:e.nextDayThreshold,tableMinWidth:b.tableMinWidth,colGroupNode:b.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:b.clientWidth,clientHeight:b.clientHeight,forPrint:s.forPrint},this.getAllDayMaxEventProps()))),m=b=>p(op,Object.assign({},o.timed,{dayTableModel:a,dateProfile:i,axis:c,slotDuration:e.slotDuration,slatMetas:l,forPrint:s.forPrint,tableColGroupNode:b.tableColGroupNode,tableMinWidth:b.tableMinWidth,clientWidth:b.clientWidth,clientHeight:b.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:b.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return g?this.renderHScrollLayout(h,u,m,a.colCnt,d,l,this.state.slatCoords):this.renderSimpleLayout(h,u,m)}}function fp(t,e){let n=new vu(t.renderRange,e);return new bu(n,!1)}var hp='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}
1.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';sr(hp);const pp={allDaySlot:Boolean};var gp=Ye({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:pp,views:{timeGrid:{component:up,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});const On=({date:t,timezone:e})=>new Date(At(t,e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")),oe=(t,e)=>At(t,"UTC",e),tr=t=>oe(t,oe(t,"mm")==="00"?"ha":"h:mma").toLowerCase(),eo=(t,e)=>{const n=oe(t,"a").toLowerCase(),r=oe(e,"a").toLowerCase(),s=oe(t,oe(t,"mm")==="00"?"h":"h:mm").toLowerCase(),i=oe(e,oe(e,"mm")==="00"?"h":"h:mm").toLowerCase();return n===r?`${s}-${i}${r}`:`${s}${n}-${i}${r}`},mp=t=>{const e=t.getDay();return e===0?7:e},vp={containerClasses:["[&_.fc-bg-event.p-meeting-window]:opacity-100","[&_.fc-bg-event.p-meeting-window]:border-b [&_.fc-bg-event.p-meeting-window]:border-t","[&_.fc-bg-event.p-meeting-window]:border-dashed [&_.fc-bg-event.p-meeting-window]:border-rb-secondary-dark/60"],buildEvents:(t,{weekDays:e,timezone:n})=>e.flatMap(r=>t.filter(i=>i.dayOfWeek===mp(r)).map((i,a)=>{const o=Ee(r);return{id:`window-${q(r,"yyyy-MM-dd")}-${a}`,start:le(rt(o,i.startMinsSinceMidnight),n),end:le(rt(o,i.endMinsSinceMidnight),n),display:"background",classNames:["p-meeting-window"]}})),renderContent:()=>null,onMount:(t,e)=>{e.el.style.setProperty("background-color","rgb(228 228 220 / 0.4)","important"),e.el.style.setProperty("transform","translateY(-1px)","important"),e.el.style.setProperty("height","calc(100% + 1px)","important")},onSlotLabelMount:(t,e,n)=>{const r=n.querySelector(".p-meeting-window-axis-line");r&&r.remove();const s=t.filter(c=>c.dayOfWeek===1),i=s.some(c=>c.startMinsSinceMidnight===e),a=s.some(c=>c.endMinsSinceMidnight===e);if(i||a){const c=document.createElement("span");c.className="p-meeting-window-axis-line",c.style.position="absolute",c.style.left="0",c.style.right="0",c.style.top="0",(i||a&&!i)&&(c.style.transform="translateY(-1px)"),c.style.borderTop="1px dashed rgba(120,121,108,0.6
1)",c.style.pointerEvents="none",n.style.position="relative",n.appendChild(c)}const l=n.closest("td")??n;if(l.style.position="relative",l.querySelectorAll(".p-axis-overlay").forEach(c=>c.remove()),s.some(c=>e>=c.startMinsSinceMidnight&&e<c.endMinsSinceMidnight)){const c=document.createElement("span");c.className="p-axis-overlay",Object.assign(c.style,{position:"absolute",left:"0",top:"0",bottom:"0",right:"0",backgroundColor:"rgb(228 228 220 / 0.4)",pointerEvents:"none"}),l.appendChild(c)}}},$s={background:"#dcfce7",border:"#86efac"},bp={containerClasses:[],skipOverlapShadow:!0,buildEvents:t=>t.map((e,n)=>({id:`slot-${n}`,start:e.startsAt,end:e.endsAt,classNames:["bg-rb-bookable!","border-rb-bookable-line!","text-rb-bookable-ink!"],backgroundColor:$s.background,borderColor:$s.border,textColor:"#15803d"})),renderContent:(t,e)=>{const n=e.event.start&&e.event.end?e.event.end.getTime()-e.event.start.getTime():0,r=n>0&&n<2700*1e3,s=e.event.start&&e.event.end?eo(e.event.start,e.event.end):"";return f.jsx("div",{className:V("flex h-full min-w-0 overflow-hidden pl-1 text-label",r?"items-center":"items-start pt-0.5"),children:f.jsx("div",{className:"truncate leading-tight font-medium",children:s})})}},to="repeating-linear-gradient(135deg, rgba(120,121,108,0.22) 0 2px, transparent 2px 8px)",yp={containerClasses:["[&_.fc-bg-event.p-notice-window]:opacity-100"],buildEvents:t=>t&&t.endsAt>t.startsAt?[{id:"notice-window",start:t.startsAt,end:t.endsAt,display:"background",classNames:["p-notice-window"]}]:[],renderContent:t=>t?f.jsx("div",{className:"pt-0.5 pl-1 text-caption leading-tight text-rb-secondary-dark",children:t.label}):null,onMount:(t,e)=>{e.el.style.setProperty("background",to,"important")}},no=t=>{const n=(t.attendees??[]).map(a=>ho(a.email)),r=po(n);return r.length<n.length?!0:go(r).length>1},qs=({startsAt:t,endsAt:e,timezone:n})=>{const r=n??"UTC",s=L(t,r),i=L(e,r),a=s.getHours()===0&&s.getMinutes()===0&&s.getSeconds()===0&&s.getMilliseconds()===0,o=i.getHours()===0&&i.getMinutes()===0&&i.getSeconds()===0&&i.getMilliseconds()===0,l=e.getTime()-t.getTime();return a&&o&&l>=1440*60*1e3},Qs=({date:t,timezone:e})=>q(L(t,e??"UTC"),"yyyy-MM-dd"),Ap=({title:t,location:e})=>e&&e.trim().length>0?e.trim():t&&t.replace(/^working location:\s*/i,"").trim()||"Working location",Ys=({title:t,location:e})=>{const n=(t??"").replace(/^working location:\s*/i,"").trim();let r=Ap({title:t,location:e}),s="MapPin";const i=n.toLowerCase();i==="home"&&(s="House"),i==="office"&&(s="Buildings");const a=r.match(/\s*\((home|office)\)\s*$/i);return a&&(s=String(a[1]).toLowerCase()==="home"?"House":"Buildings",r=r.replace(/\s*\((home|office)\)\s*$/i,"").trim()),{label:r||"Working location",iconName:s}},Ep=t=>{const e=t.trim(),n=e.startsWith("#")?e.slice(1):e,r=/^[0-9a-fA-F]{6}$/.test(n),s=e.match(/^rgba?\(\s*(\d{1,3})(?:\.\d+)?\s*,\s*(\d{1,3})(?:\.\d+)?\s*,\s*(\d{1,3})(?:\.\d+)?(?:\s*,\s*[\d.]+\s*)?\)$/i),i=d=>Math.max(0,Math.min(255,d)),a=d=>d.toString(16).padStart(2,"0"),o=d=>Math.max(0,Math.round(d*.75)),l=(d,c,g)=>({light:`#${a(d)}${a(c)}${a(g)}`,dark:`#${a(o(d))}${a(o(c))}${a(o(g))}`});return r?l(parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16)):s?l(i(parseInt(s[1]??"0")),i(parseInt(s[2]??"0")),i(parseInt(s[3]??"0"))):l(107,114,128)},ro="#6b7280",so="#3e3f34",Zs="#6b7280",an=({sizePx:t=7})=>f.jsx("span",{"aria-label":"Fyxer joins to take notes",title:"Fyxer joins to take notes",role:"img",className:"mr-1 inline-block shrink-0 rounded-full bg-rb-orange-neutral",style:{width:t,height:t}}),nr="#6b7280",_r="#e5e7eb",xp=t=>{const e=typeof t.event.borderColor=="string"&&t.event.borderColor.trim().length>0?t.event.borderColor:"#039be5",n=_r,r=t.event.extendedProps.workingLocationIconName??"MapPin",s=typeof t.event.extendedProps.workingLocationLabel=="string"?t.event.extendedProps.workingLocationLabel:t.event.title;return f.jsxs("div",{className:"relative flex h-full min-w-0 items-start overflow-hidden pt-0.5 pl-1 text-label",children:[f.jsx("span",{className:"pointer-events-none absolute top-4 bottom-1 left-[10px] z-0 w-1 rounded-full",style:{backgroundColor:n}}),f.jsx("span",{className:"relative z-10 mt-px mr-1 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full",style:{backgroundColor:n},children:f.jsx(Y,{name:r,size:11,style:{color:e}})}),f.jsx("div",{className:"truncate leading-tight font-medium text-rb-black",children:s})]})},wp=t=>{const e=typeof t.event.borderColor=="string"&&t.event.borderColor.trim().length>0?t.event.borderColor:"#039be5",n=_r,r=t.event.extendedProps.workingLocationIconName??"MapPin",s=typeof t.event.extendedProps.workingLocationLabel=="string"?t.event.extendedProps.workingLocationLabel:t.event.title,i=!!t.event.extendedProps.workingLocationMatchesPrevDay,a=!!t.event.extendedProps.workingLocationMatchesNextDay;return i?f.jsx("div",{className:V("flex h-full min-w-0 items-center overflow-hidden pl-0 text-label",a?"pr-0":"pr-1"),children:f.jsx("div",{className:"flex h-5 w-full items-center",children:f.jsx("span",{className:V("h-1 w-full",a?"-mx-px rounded-none":"-ml-px rounded-l-none rounded-r-full"),style:{backgroundColor:n}})})}):f.jsxs("div",{className:V("flex h-full min-w-0 items-center overflow-hidden pl-1 text-label",a?"pr-0":"pr-1"),children:[f.jsxs("span",{className:"inline-flex h-5 max-w-full shrink-0 items-center gap-1 rounded-full px-1",style:{backgroundColor:n},children:[f.jsx(Y,{name:r,size:11,style:{color:e}}),f.jsx("span",{className:"truncate leading-tight font-medium text-rb-black",children:s})]}),f.jsx("span",{className:V("-ml-px h-1 min-w-0 flex-1 rounded-l-none",a?"-mr-px rounded-r-none":"rounded-r-full"),style:{backgroundColor:n}})]})},io=t=>{const{eventType:e,workingLocationIconName:n}=t.event.extendedProps;return e===ve.OUT_OF_OFFICE?"CalendarX":e===ve.FOCUS_TIME?"Headphones":e===ve.WORKING_LOCATION?n??"MapPin":null},Cp=t=>{if(t.event.extendedProps.eventType===ve.WORKING_LOCATION)return wp(t);const e=t.event.extendedProps.eventType===ve.OUT_OF_OFFICE,n=io(t);return f.jsxs("div",{className:"flex h-full min-w-0 items-center overflow-hidden pl-1 text-label",children:[n&&f.jsx(Y,{name:n,size:12,className:"mr-1 shrink-0 text-inherit",style:e?{color:nr}:void 0}),f.jsx("div",{className:"truncate leading-tight font-medium",children:t.event.title})]})},Sp=t=>{const e=t.event.start&&t.event.end?t.event.end.getTime()-t.event.start.getTime():0,n=t.event.extendedProps.eventType===ve.OUT_OF_OFFICE,r=io(t),s=e>
10&&e<2700*1e3,i=e>3600*1e3,a=e>0&&e<1800*1e3,o=e>1800*1e3,l=a?"text-caption":"text-label",d=typeof t.event.extendedProps.location=="string"?t.event.extendedProps.location:"",c=typeof t.event.extendedProps.meetingUrl=="string"?t.event.extendedProps.meetingUrl:"",g=d.trim()||c.replace(/^https?:\/\//,"").trim(),u=[t.event.start?tr(t.event.start):"",g].filter(Boolean).join(", "),m=t.event.start&&t.event.end?eo(t.event.start,t.event.end):t.timeText,b=u||t.timeText;if(s)return f.jsx("div",{className:V("flex h-full min-w-0 overflow-hidden pl-1",o?"items-start pt-0.5":"items-center",l),children:f.jsxs("div",{className:"flex min-w-0 items-center truncate leading-tight",children:[r&&f.jsx(Y,{name:r,size:12,className:"mr-1 shrink-0 text-inherit",style:n?{color:nr}:void 0}),t.event.extendedProps.hasNotetaker&&f.jsx(an,{}),f.jsx("span",{className:"min-w-0 shrink truncate font-medium",children:t.event.title}),u&&f.jsx("span",{className:"min-w-0 shrink-[4] truncate font-normal",children:`, ${u}`})]})});const y=f.jsxs(f.Fragment,{children:[r&&f.jsx(Y,{name:r,size:12,className:"pointer-events-none absolute top-0.5 left-1 shrink-0 text-inherit",style:n?{color:nr}:void 0}),f.jsxs("div",{className:"flex min-w-0 items-center truncate leading-tight font-medium",children:[t.event.extendedProps.hasNotetaker&&f.jsx(an,{}),f.jsx("span",{className:"truncate",children:t.event.title})]}),f.jsx("div",{className:"truncate font-normal",children:i?m:b}),i&&g&&f.jsx("div",{className:"truncate font-normal",children:g})]});return f.jsx("div",{className:V("relative flex h-full min-w-0 flex-col justify-start overflow-hidden pt-0.5",r?"pl-5":"pl-1",l),children:y})},Dp={isSelectable:!0,containerClasses:["[&_.fc-bg-event.p-working-location-bg]:opacity-100","[&_.fc-timegrid-event.p-status-pending]:bg-rb-white!","[&_.fc-timegrid-event.p-status-tentative]:bg-rb-white!","[&_.fc-timegrid-event.p-status-declined]:bg-rb-white!","[&_.fc-timegrid-event.p-status-declined_.fc-event-main]:line-through","[&_.fc-timegrid-event.p-non-blocking]:opacity-25","[&_.fc-daygrid-event.p-non-blocking]:opacity-25"],buildEvents:t=>{const e=new Set,n=new Set;for(const s of t){if(s.eventType!==ve.WORKING_LOCATION)continue;const i=!s.isAllDay&&qs({startsAt:s.startsAt,endsAt:s.endsAt,timezone:s.timeZone??void 0});if(!(s.isAllDay||i))continue;const a=Ys({title:s.title,location:s.location}),o=Qs({date:s.startsAt,timezone:s.timeZone??void 0}),l=a.label;e.add(`${o}::${l}`),n.add(o)}const r=n.size>0;return t.flatMap(s=>{const i=no(s)?so:ro,a=s.attendeeStatus===re.PENDING,o=s.attendeeStatus===re.TENTATIVE,l=s.attendeeStatus===re.DECLINED,d=s.eventType===ve.OUT_OF_OFFICE,c=s.eventType===ve.WORKING_LOCATION,g=d&&!s.isAllDay&&qs({startsAt:s.startsAt,endsAt:s.endsAt,timezone:s.timeZone??void 0}),h=s.isAllDay||g,u=c&&!h,m=c?Ys({title:s.title,location:s.location}):void 0,b=c&&h&&m?m.label:void 0,y=c&&h?Qs({date:s.startsAt,timezone:s.timeZone??void 0}):void 0,A=s.timeZone??void 0,E=y?L(s.startsAt,A??"UTC"):void 0,R=E?q(se(E,-1),"yyyy-MM-dd"):void 0,x=E?q(se(E,1),"yyyy-MM-dd"):void 0,G=!!(R&&b)&&e.has(`${R}::${b}`),I=!!(x&&b)&&e.has(`${x}::${b}`),N=h&&!c&&r,T=a||o||l,j=d?"#111827":c&&!h?i:o?"#ffffff":T?i:"#ffffff",ie=s.selectionId??s.providerId,Z={id:ie,title:s.title??"Busy",start:s.startsAt,end:s.endsAt,allDay:h,display:u?"background":void 0,classNames:[...u?["p-working-location-bg"]:["p-busy-event"],...h?["p-all-day-event"]:[],...a?["p-status-pending"]:[],...o?["p-status-tentative"]:[],...l?["p-status-declined"]:[],...d?["p-status-out-of-office"]:[],...s.isBusy?[]:["p-non-blocking"]],backgroundColor:d?_r:u?"transparent":T?"#ffffff":i,borderColor:d?"transparent":i,textColor:j,extendedProps:{hasNotetaker:s.hasNotetaker===!0,meetingUrl:s.meetingUrl??void 0,location:s.location??void 0,eventType:s.eventType,hasDateOnlyBoundaries:s.isAllDay,isDerivedAllDayOutOfOffice:g,workingLocationLabel:m==null?void 0:m.label,workingLocationIconName:m==null?void 0:m.iconName,workingLocationSortPriority:c&&h?-1:0,workingLocationMatchesPrevDay:G,workingLocationMatchesNextDay:I,allDayShouldUseSecondaryRow:N}};return d&&h?[Z,{...Z,id:`${ie}-grid-block`,title:"",allDay:!1,classNames:[...Z.classNames.filter(he=>he!=="hidden"),"p-status-out-of-office-grid-block"],extendedProps:{...Z.extendedProps,isDerivedAllDayOutOfOfficeGridBlock:!0}}]:[Z]})},renderContent:(t,e)=>{if(e.event.display==="background"){if(e.event.extendedProps.eventType===ve.WORKING_LOCATION)return xp(e);const n=e.event.start?tr(e.event.start):"",r=e.event.end?tr(e.event.end
1):"";return f.jsx("div",{className:"flex h-full min-w-0 items-start overflow-hidden pt-0.5 pl-1 text-label font-normal text-rb-secondary-dark",children:f.jsx("div",{className:"truncate leading-tight",children:n&&r?`${n}-${r}`:""})})}return e.event.extendedProps.isDerivedAllDayOutOfOffice&&!e.event.allDay||e.event.extendedProps.isDerivedAllDayOutOfOfficeGridBlock?null:e.event.allDay?Cp(e):Sp(e)},onMount:(t,e)=>{if(e.event.allDay&&e.event.extendedProps.eventType===ve.WORKING_LOCATION){e.el.style.boxShadow="none",e.el.style.outline="none",e.el.style.setProperty("--fc-event-bg-color","transparent"),e.el.style.setProperty("--fc-event-border-color","transparent"),e.el.style.setProperty("border","0","important"),e.el.style.setProperty("background","transparent","important"),e.event.extendedProps.workingLocationMatchesPrevDay&&e.el.style.setProperty("margin-left","-1px","important"),e.event.extendedProps.workingLocationMatchesNextDay&&e.el.style.setProperty("margin-right","-1px","important");return}if(e.event.allDay&&e.event.extendedProps.allDayShouldUseSecondaryRow&&e.el.style.setProperty("margin-top","6px","important"),e.event.classNames.includes("p-status-out-of-office")){e.el.style.boxShadow="none",e.el.style.outline="none",e.el.style.setProperty("--fc-event-border-color","transparent"),e.el.style.setProperty("border","0","important");return}if(e.event.classNames.includes("p-working-location-bg")){e.el.style.boxShadow="none",e.el.style.outline="none",e.el.style.setProperty("--fc-event-bg-color","transparent"),e.el.style.setProperty("border","0","important"),e.el.style.setProperty("background","transparent","important");return}if(e.event.classNames.includes("p-status-pending")||e.event.classNames.includes("p-status-tentative")||e.event.classNames.includes("p-status-declined")){const n=typeof e.event.borderColor=="string"&&e.event.borderColor.trim().length>0?e.event.borderColor:Zs,r=e.event.classNames.includes("p-status-tentative"),s=r?Zs:n,i=r?"#ffffff"
1:n,a=Ep(s);e.el.style.boxShadow="none",e.el.style.outline="none",e.el.style.setProperty("--fc-event-border-color",i),e.el.style.setProperty("--fc-event-bg-color","#ffffff"),e.el.style.setProperty("--fc-event-text-color",s),e.el.style.setProperty("border",`1px solid ${i}`,"important"),e.el.style.setProperty("background",r?`repeating-linear-gradient(45deg, ${a.light} 0px, ${a.light} 7px, ${a.dark} 7px, ${a.dark} 10px)`:"#ffffff","important")}}},ao=1440,Pn=t=>{const e=Math.max(0,Math.min(ao,t)),n=Math.floor(e/60),r=e%60;return`${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}:00`},_p=t=>t.replace(/(\d)([AaPp][Mm])$/,(e,n,r)=>`${n} ${String(r).toLowerCase()}`),Rp=t=>{const n=t.trim().toLowerCase().replace(/\s+/g,"").match(/^(\d{1,2})(?::(\d{2}))?(am|pm)$/);if(!n)return null;const r=Number(n[1]),s=n[2]?Number(n[2]):0,i=n[3];return Number.isNaN(r)||Number.isNaN(s)||r<1||r>12||s<0||s>59?null:(i==="pm"?r%12+12:r%12)*60+s},Tp=["relative min-h-0 flex-1 rounded-lg bg-rb-white p-0 overflow-hidden","[--fc-today-bg-color:transparent]","[--fc-page-bg-color:transparent]","[--fc-border-color:var(--color-rb-gray-neutral)]","[&_.fc-scrollgrid]:border-0!","[&_.fc-scrollgrid-section>td]:border-0! [&_.fc-scrollgrid-section>th]:border-0!","[&_.fc-col-header_th]:border-t-0!","[&_.fc-timegrid-axis]:border-l-0! [&_.fc-timegrid-slot-label]:border-l-0!","[&_.fc-col-header-cell:last-child]:border-r-0! [&_.fc-timegrid-col:last-child]:border-r-0!","[&_.fc-timegrid-col]:border-b-0!","[&_.fc-col-header-cell-cushion]:px-1 [&_.fc-col-header-cell-cushion]:py-2","[&_.fc-col-header-cell-cushion]:inline-flex [&_.fc-col-header-cell-cushion]:items-center","[&_.fc-col-header-cell-cushion]:justify-center [&_.fc-col-header-cell-cushion]:align-middle","[&_.fc-col-header-cell-cushion]:text-label","[&_.fc-col-header-cell-cushion]:text-primary-dark [&_.fc-col-header-cell-cushion]:font-medium","[&_.fc-col-header-cell]:border-b-0","[&_.fc-col-header>table]:border-b-0","[&_.fc-col-header>table>thead>tr>th]:border-b-0","[&_.fc-col-header_.fc-timegrid-axis]:border-b-0","[&_.fc-timegrid-allday_.fc-timegrid-axis]:border-b-0 [&_.fc-timegrid-allday_.fc-timegrid-axis]:border-t-0","[&_.fc-timegrid-slot-label-cushion]:text-caption","[&_.fc-timegrid-slot-label-cushion]:px-0","[&_.fc-timegrid-slot-label-cushion]:text-secondary-dark","[&_.fc-timegrid-slot-label]:p-0","[&_.fc-timegrid-slot-label-frame]:w-full [&_.fc-timegrid-slot-label-frame]:px-0","[&_.fc-timegrid-axis-cushion]:max-w-none","[&_.fc-timegrid-axis-cushion]:w-[48px]","[&_.fc-timegrid-axis-cushion]:px-0","[&_.fc-timegrid-axis-chunk]:relative","[&_.fc-timegrid-col-bg]:z-auto!","[&_.fc-timegrid-col.fc-day-today]:bg-transparent","[&_.fc-col-header-cell.fc-day-today]:bg-transparent","[&_.fc-timegrid-allday_.fc-day-today]:bg-transparent","[&_.fc-timegrid-allday_.fc-timegrid-axis]:bg-transparent","[&_.fc-timegrid-divider]:border-0","[&_.fc-timegrid-divider>td]:border-0","[&_.fc-timegrid-allday>table]:border-0","[&_.fc-timegrid-allday>table>tbody>tr>td]:border-top-0 [&_.fc-timegrid-allday>table>tbody>tr>td]:border-b-0","[&_.fc-scrollgrid-section.fc-scrollgrid-section-liquid>td]:border-top-0","[&_.fc-daygrid-day-events]:mb-[4px]! [&_.fc-daygrid-day-events]:min-h-0!","[&_.fc-timegrid-body_.fc-scroller-harness]:overflow-visible","[&_.fc-timegrid-body_.fc-scroller]:overflow-x-visible","[&_.fc-timegrid-now-indicator-container]:overflow-visible","[&_.fc-timegrid-now-indicator-line]:relative","[&_.fc-timegrid-now-indicator-line]:after:absolute","[&_.fc-timegrid-now-indicator-line]:after:left-0","[&_.fc-timegrid-now-indicator-line]:after:top-1/2","[&_.fc-timegrid-now-indicator-line]:after:h-2","[&_.fc-timegrid-now-indicator-line]:after:w-2","[&_.fc-timegrid-now-indicator-line]:after:-translate-x-1/2","[&_.fc-timegrid-now-indicator-line]:after:-translate-y-1/2","[&_.fc-timegrid-now-indicator-line]:after:rounded-full","[&_.fc-timegrid-now-indicator-line]:after:bg-(--fc-now-indicator-color)","[&_.fc-timegrid-now-indicator-line]:after:content-['']","[&_.fc-timegrid-now-indicator-arrow]:hidden","[&_.fc-toolbar]:hidden","[&_.fc-event.p-selected]:ring-2! [&_.fc-event.p-selected]:ring-rb-orange-neutral [&_.fc-event.p-selected]:ring-offset-1","[&_.fc-event[role=button]]:cursor-pointer"],kp=({layers:t,timezone:e,loading:n,toolbar:r,className:s,onWeekChange:i,referenceDate:a,visibleDate:o,onVisibleDateChange:l,showNavigation:d=!0,fillContainer:c=!1,scrollToHour:g,axisCornerLabel:h,onEventClick:u,selectedEventId:m})=>{const b=w.useRef(null),y=w.useRef(null),A=w.useRef(new Map);w.useEffect(()=>{A.current.forEach((C,k)=>{k.setAttribute("aria-expanded",String(C===m))})},[m]);const[E,R]=w.useState(a??new Date),[x,G]=w.useState("show-all"),I=o??E,N=C=>{o===void 0&&R(C),l==null||l(C)},T=()=>On({date:a??new Date,timezone:e}),j=w.useMemo(()=>{const C=L(I,e),k=st(C,{weekStartsOn:1}
1);return Array.from({length:7},(z,U)=>se(k,U))},[e,I]);w.useEffect(()=>{if(j.length===0||!i)return;const C=le(Ee(j[0]),e),k=new Date(Ee(j[6]).getTime()+1440*60*1e3-1),z=le(k,e);i(C,z)},[j,e,i]);const ie=w.useMemo(()=>({weekDays:j,timezone:e}),[j,e]),Z=w.useMemo(()=>n?[]:t.flatMap(({layer:k,data:z},U)=>k.buildEvents(z,ie).map(S=>({...S,id:`${U}-${S.id}`,classNames:S.id===m?[...S.classNames,"p-selected"]:S.classNames,extendedProps:{...S.extendedProps,layerIndex:U,layerEventId:S.id}}))).map(k=>{var U;const z=((U=k.extendedProps)==null?void 0:U.hasDateOnlyBoundaries)===!0;return{...k,start:z?k.start:On({date:k.start,timezone:e}),end:z?k.end:On({date:k.end,timezone:e})}}),[n,t,ie,e,m]),he=w.useMemo(()=>Z.some(C=>C.allDay),[Z]),J=w.useMemo(()=>t.flatMap(({layer:C})=>C.containerClasses),[t]);return w.useEffect(()=>{const C=q(j[0],"yyyy-MM-dd");queueMicrotask(()=>{var k;return(k=b.current)==null?void 0:k.getApi().gotoDate(C)})},[j]),w.useEffect(()=>{const C=y.current;if(!C)return;const z=requestAnimationFrame(()=>{for(const U of C.querySelectorAll(".fc-timegrid-col-events")){const S=U.querySelectorAll(":scope > .fc-timegrid-event-harness-inset");if(!(S.length<=1))for(const B of S){const F=B.querySelector(".fc-timegrid-event");
1if(!F)continue;const ae=B.getBoundingClientRect(),X=parseInt(B.style.zIndex||"0",10);Array.from(S).some(ee=>{if(ee===B)return!1;const M=ee.getBoundingClientRect();return ae.top<M.bottom&&ae.bottom>M.top?X>parseInt(ee.style.zIndex||"0",10):!1})&&!F.dataset.skipOverlapShadow&&F.style.setProperty("box-shadow","0 0 0 1px #fff","important")}}});return()=>cancelAnimationFrame(z)},[Z]),f.jsxs("div",{className:V("flex flex-col",c&&"h-full min-h-[500px]",s),style:c?void 0:{height:"calc(100vh - 220px)",minHeight:"500px"},children:[d&&f.jsxs("div",{className:"mb-2 flex flex-wrap items-center gap-2.5",children:[f.jsx(_e,{size:"md",onClick:()=>N(new Date),children:"Today"}),f.jsx(bn,{label:"Previous week",children:f.jsx(Pr,{icon:"ArrowLeft",label:"Previous week",variant:"ghost",size:"md",onClick:()=>N(vi(I))})}),f.jsx(bn,{label:"Next week",children:f.jsx(Pr,{icon:"ArrowRight",label:"Next week",variant:"ghost",size:"md",onClick:()=>N(bi(I,1))})}),f.jsx("h3",{className:"ml-1 text-title-sm font-medium",children:q(j[0],"MMMM yyyy")}),f.jsx("div",{className:"ml-2 w-4",children:n&&f.jsx(ui,{size:"md",className:"text-rb-secondary-dark","aria-hidden":!0})}),r&&f.jsx("div",{className:"flex flex-wrap items-center justify-center gap-4 px-4 sm:ml-auto sm:justify-end sm:pl-0",children:r})]}),f.jsxs("div",{ref:y,className:V(...Tp,...J),children:[h&&f.jsx("span",{title:h.title,className:"pointer-events-auto absolute top-[38px] left-0 z-40 w-[48px] pr-1.5 text-right text-[10px] leading-none text-rb-secondary-dark/70",children:h.text}),he&&f.jsx(bn,{label:x==="show-all"?"Hide all-day events":"Show all-day events",children:f.jsx("button",{type:"button",onClick:()=>G(C=>C==="show-all"?"hide-all":"show-all"),className:"absolute right-3 z-40 inline-flex h-5 w-5 items-center justify-center rounded-full border border-rb-gray-neutral bg-rb-white text-rb-secondary-dark transition-colors hover:bg-rb-parchment",style:{top:"57px",transform:"translateY(-50%)"},"aria-label":x==="show-all"?"Hide all-day events":"Show all-day events",children:f.jsx(Y,{name:x==="show-all"?"CaretUp":"CaretDown",size:12})})}),f.jsx(Fa,{ref:b,plugins:[gp],initialView:"timeGridWeek",initialDate:j[0],firstDay:1,headerToolbar:!1,allDaySlot:he&&x==="show-all",allDayText:"",editable:!1,selectable:!1,nowIndicator:!0,now:T,eventOrder:(C,k)=>{var F,ae,X,ce,ee,M;const z=C,U=k,S=((F=z.extendedProps)==null?void 0:F.workingLocationSortPriority)??0,B=((ae=U.extendedProps)==null?void 0:ae.workingLocationSortPriority)??0;return S!==B?S-B:(((ce=(X=z.start)==null?void 0:X.getTime)==null?void 0:ce.call(X))??0)-(((M=(ee=U.start)==null?void 0:ee.getTime)==null?void 0:M.call(ee))??0)},timeZone:"UTC",events:Z,scrollTime:Pn(g!==void 0?g*60:Math.max(0,Number(oe(T(),"H"))*60-60)),slotMinTime:Pn(0),slotMaxTime:Pn(ao),slotDuration:"00:30:00",slotLabelInterval:"00:30:00",eventMinHeight:12,slotLabelContent:C=>{const k=oe(C.date,"mm")==="00";return f.jsx("div",{className:"flex h-full w-[48px] items-center justify-end",children:f.jsx("span",{className:"text-secondary-dark pr-2 text-right tabular-nums",children:k?_p(C.text):""})})},slotLabelDidMount:C=>{var z;const k=Rp(C.text)??Number(oe(C.date,"H"))*60+Number(oe(C.date,"m"));for(const{layer:U,data:S}of t)(z=U.onSlotLabelMount)==null||z.call(U,S,k,C.el)},height:"100%",eventDisplay:"block",eventClick:C=>{var k;!u||!((k=t[C.event.extendedProps.layerIndex])!=null&&k.layer.isSelectable)||(C.jsEvent.preventDefault(),u({id:C.event.extendedProps.layerEventId,el:C.el}))},eventDidMount:C=>{var z,U;const k=t[C.event.extendedProps.layerIndex];if(k){if(k.layer.skipOverlapShadow&&(C.el.dataset.skipOverlapShadow="true"),u&&k.layer.isSelectable){const S=C.event.extendedProps.layerEventId;A.current.set(C.el,S),C.el.setAttribute("role","button"),C.el.setAttribute("aria-expanded",String(S===m))}(U=(z=k.layer).onMount)==null||U.call(z,k.data,C)}},eventWillUnmount:C=>{A.current.delete(C.el)},eventContent:C=>{var U,S,B;const k=t[(U=C.event.extendedProps)==null?void 0:U.layerIndex];if(!k)return;const z=(B=(S=k.layer).renderContent)==null?void 0:B.call(S,k.data,C);if(z!==void 0)return z},dayHeaderContent:C=>f.jsxs("span",{className:"inline-flex flex-col items-center gap-1",children:[f.jsx("span",{className:V("text-caption leading-[1.1] uppercase",C.isToday?"text-rb-orange-neutral":"text-secondary-dark"),children:oe(C.date,"EEE")}),f.jsx("span",{className:V("inline-flex h-10 w-10 items-center justify-center rounded-full text-title-sm leading-none font-medium",C.isToday?"bg-rb-orange-neutral text-rb-white":"text-primary-dark"),children:oe(C.date,"d")})]})})]})]})},Ks=()=>{const{redirectingIntegration:t,connectWith:e}=Ko(),{isConnectionAllowed:n}=Jo(),r=n(Je.GOOGLE_CALENDAR),s=n(Je.MICROSOFT_OUTLOOK_CALENDAR);return f.jsx("section",{"aria-label":"Connect a calendar",className:"flex min-h-[420px] min-w-0 flex-1 items-center justify-center rounded-rb-card border border-rb-gray-neutral bg-rb-white p-6 shadow-rb-shadow-soft-sm",children:f.jsxs(mo,{size:"lg",children:[f.jsxs(vo,{children:[f.jsx(bo,{children:f.jsx(Y,{name:"CalendarBlank"})}),f.jsx(yo,{role:"heading","aria-level":2,children:"Connect your calendar"}),f.jsx(Ao,{children:"Fyxer reads your calendar to show what is booked, keep your scheduling link accurate and join the meetings
1you ask it to."})]}),f.jsx(Eo,{children:r||s?f.jsxs(f.Fragment,{children:[r&&f.jsx(Ur,{serviceType:jr.CALENDAR,integration:Je.GOOGLE_CALENDAR,redirectingIntegration:t,onConnect:e,label:"Connect Google Calendar",variant:"brand",className:"w-auto"}),s&&f.jsx(Ur,{serviceType:jr.CALENDAR,integration:Je.MICROSOFT_OUTLOOK_CALENDAR,redirectingIntegration:t,onConnect:e,label:"Connect Outlook",className:"w-auto"})]}):f.jsx("p",{className:"text-body-sm text-rb-secondary-dark",children:"Calendar connection is not available. Contact your administrator."})})]})})},Mp=[15,30,45,60,90,120],Js=1800,Np=({defaultDurationMins:t,isLinkDisabled:e,hasCalendar:n,compact:r=!1})=>{const{user:s}=fi(),{logButtonPress:i}=hi(),[a,o]=w.useState(!1),l=w.useRef(null);w.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]);const d=s==null?void 0:s.slug,c=d!==void 0&&!e&&n,g=m=>d?el({slug:d,durationMins:m}):null,h=g(t),u=w.useCallback(async m=>{i(Fn.SCHEDULING_LINK_CTA_CLICK,{schedulingLink:m,isTeam:!1}),await Xo({text:m,copied:{id:"copy-scheduling-link",duration:Js,description:`Copied ${m.replace(/^https?:\/\//,"")}`}})&&(o(!0),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>o(!1),Js))},[i]);return f.jsxs("div",{className:"flex items-center",children:[f.jsxs(_e,{variant:"brand",size:r?"icon-md":"md","aria-label":r?a?"Copied":"Copy link":void 0,title:e?"Your scheduling link is off":h==null?void 0:h.replace(/^https?:\/\//,""),disabled:!c,className:"rounded-r-none",onClick:()=>h&&void u(h),children:[f.jsx(Y,{name:"Copy",color:"current","data-icon":r?void 0:"inline-start"}),r?void 0:a?"Copied":"Copy link"]}),f.jsxs(xo,{modal:!1,children:[f.jsx(wo,{disabled:!c,render:f.jsx(_e,{variant:"brand",size:"icon-md","aria-label":"Copy a link for another duration",disabled:!c,className:"rounded-l-none border-l border-rb-white/35",children:f.jsx(Y,{name:"CaretDown",color:"current"})})}),f.jsx(Co,{align:"end",className:"w-52",children:f.jsxs(So,{children:[f.jsx(Do,{children:"Copy a link for"}),Mp.map(m=>f.jsxs(Br,{onClick:()=>{const b=g(m);b&&u(b)},children:[f.jsxs("span",{children:[m," min"]}),m===t&&f.jsx("span",{className:"ml-auto text-caption text-rb-secondary-dark",children:"Default"})]},m)),f.jsx(_o,{}),f.jsx(Br,{render:f.jsxs("a",{href:h??void 0,target:"_blank",rel:"noreferrer",children:["Preview as a client",f.jsx(Y,{name:"ArrowUpRight",size:13,className:"ml-auto","aria-hidden":"true"})]})})]})})]})]})},Rr=t=>{if(t%1440===0&&t>0){const e=t/1440;return`${e} ${e===1?"day":"days"}`}return t%60===0&&t>0?`${t/60} h`:`${t} min`},Pe=({date:t,timeZone:e})=>q(L(t,e),"yyyy-MM-dd"),Xs=({date:t,count:e,offset:n=0,timeZone:r})=>{const s=se(Ee(L(t,r)),n);return Array.from({length:e},(i,a)=>le(se(s,a),r))},Ip=({slots:t,timeZone:e})=>{const n=new Map;for(const r of[...t].sort((s,i)=>s.startsAt.getTime()-i.startsAt.getTime())){const s=Pe({date:r.startsAt,timeZone:e}),i=n.get(s)??[],a=i.at(-1),o=a&&r.startsAt.getTime()<=a.endsAt.getTime()?[...i.slice(0,-1),{startsAt:a.startsAt,endsAt:Vo([a.endsAt,r.endsAt])}]:[...i,{startsAt:r.startsAt,endsAt:r.endsAt}];n.set(s,o)}return n},Op=({days:t,slots:e,timeZone:n})=>{const r=Ip({slots:e,timeZone:n});return t.map(s=>({date:s,windows:r.get(Pe({date:s,timeZone:n}))??[]}))},Ze=({date:t,timeZone:e})=>{const n=L(t,e);return n.getHours()*60+n.getMinutes()},Pp=({left:t,right:e,timeZone:n})=>Pe({date:t,timeZone:n})===Pe({date:e,timeZone:n}),Wt=({date:t,timeZone:e,withMeridiem:n})=>{const r=L(t,e),s=(q(r,"mm")==="00"?"h":"h:mm")+(n?"a":"");return q(r,s).toLowerCase()},jp=({date:t,timeZone:e})=>Wt({date:t,timeZone:e,withMeridiem:!0}),ei=({start:t,end:e,timeZone:n})=>{const r=q(L(t,n),"a").toLowerCase(),s=q(L(e,n),"a").toLowerCase(),i=Wt({date:e,timeZone:n,withMeridiem:!0});return r===s?`${Wt({date:t,timeZone:n,withMeridiem:!1})}-${i}`:`${Wt({date:t,timeZone:n,withMeridiem:!0})}-${i}`},Bp=({location:t,meetingUrl:e})=>(t==null?void 0:t.trim())||(e??"").replace(/^https?:\/\//,"").trim(),jn=44,ti=3,me=7,Ne=20,dn=56,Bn=64,Hn=(Ne-me)*dn,Hp=45,Lp=60,zp=49,ni=14,ri=5,Up=({date:t,availableRange:e,timeZone:n})=>{if(!e)return!1;const r=Ee(L(t,n)),s=le(r,n),i=le(se(r,1),n);return s>=e.start&&i<=rt(e.end,1)},Fp=({date:t,meetingWindows:e,timeZone:n})=>{const s=L(t,n).getDay()||7;return e.filter(i=>i.dayOfWeek===s)},ht=t=>(t-me*60)/60*dn,Ot=(t,e)=>(e-t)/60*dn,Wp=t=>`repeating-linear-gradient(45deg, ${t}26 0px, ${t}26 7px, ${t}59 7px, ${t}59 10px)`,Vp=({selectedDate:t,onSelectedDateChange:e,timeZone:n,meetingWindows:r,calendars:s,troubleshoot:i,selectedEventId:a,onEventSelect:o,availableRange:l,isFetching:d,isError:c,onRetry:g,now:h})=>{const[u,m]=w.useState(()=>{const S=L(t,n);return le(se(st(S,{weekStartsOn:1}
1),-21),n)}),b=w.useRef(null),y=w.useRef(!1),A=w.useRef(null),E=w.useRef(!1),R=w.useRef(null),[x,G]=w.useState(null),[I,N]=w.useState(0),T=w.useRef(""),j=w.useMemo(()=>Xs({date:u,count:zp,timeZone:n}),[n,u]),ie=(i==null?void 0:i.minimumNoticeMins)??0,Z=i==null?void 0:i.slots,he=w.useMemo(()=>Op({days:j,slots:Z??[],timeZone:n}),[j,n,Z]),J=w.useMemo(()=>s.flatMap(S=>S.events.map(B=>({...B,sourceConnectionId:S.connectionId}))),[s]),C=w.useCallback(S=>yi(L(S,n),L(u,n)),[n,u]);w.useLayoutEffect(()=>{const S=b.current;if(!S)return;const B=()=>G((S.clientWidth-jn)/ti);B();const F=new ResizeObserver(B);return F.observe(S),()=>F.disconnect()},[]),w.useLayoutEffect(()=>{const S=b.current;if(!S||x===null)return;const B=R.current;if(B){S.scrollLeft=C(B)*x,R.current=null,y.current=!0,E.current=!1;return}E.current=!1,!(y.current&&A.current===x)&&(S.scrollLeft=C(t)*x,T.current=Pe({date:t,timeZone:n}),y.current=!0,A.current=x)},[x,C,I,t,n]);const k=w.useCallback(S=>{E.current=!1,R.current=S,T.current=Pe({date:S,timeZone:n});const B=L(S,n);m(le(se(st(B,{weekStartsOn:1}),-21),n)),N(F=>F+1)},[n]);w.useEffect(()=>{!y.current||T.current===Pe({date:t,timeZone:n})||k(t)},[k,t,n]);const z=()=>{k(h),e(h)},U=()=>{const S=b.current;if(!S||x===null)return;const B=Math.max(0,Math.min(j.length-1,Math.round(S.scrollLeft/x))),F=j[B];if(!F)return;const ae=Pe({date:F,timeZone:n});if(T.current!==ae&&(T.current=ae,e(F)),E.current)return;const X=S.scrollLeft<x*ri,ce=S.scrollLeft>S.scrollWidth-S.clientWidth-x*ri;if(!X&&!ce)return;E.current=!0,R.current=F;const ee=X?-ni:ni;m(M=>Xs({date:M,count:1,offset:ee,timeZone:n})[0])};return f.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col overflow-hidden bg-rb-white",children:[f.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between gap-2 px-3",children:[f.jsx("h2",{className:"text-title-sm leading-5 font-medium text-rb-darkbtn",children:q(L(t,n),"MMMM")}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{title:n,className:"text-caption text-rb-secondary-dark/70",children:At(t,n,"zzz")}),f.jsx(_e,{size:"icon-md","aria-label":"Go to today",onClick:z,children:f.jsx(Y,{name:"CalendarBlank",color:"current"})})]})]}),f.jsx("div",{ref:b,className:"min-h-0 flex-1 snap-x snap-mandatory scroll-pl-11 overflow-auto overscroll-contain",onScroll:U,children:f.jsxs("div",{className:"flex w-max",style:{minHeight:Bn+Hn},children:[f.jsxs("div",{className:"sticky left-0 z-30 shrink-0 bg-rb-white",style:{width:jn},children:[f.jsx("div",{className:"sticky top-0 z-40 border-b border-rb-gray-neutral bg-rb-white",style:{height:Bn}}),f.jsx("div",{className:"relative bg-rb-white",style:{height:Hn},children:Array.from({length:Ne-me},(S,B)=>{const F=me+B;return f.jsx("span",{className:"absolute right-1.5 text-caption text-rb-secondary-dark",style:{top:B===0?2:B*dn-7},children:q(new Date(2e3,0,1,F),"h a")},F)})})]}),he.map(({date:S,windows:B})=>{const F=L(S,n),ae=Ee(F),X=le(ae,n),ce=le(se(ae,1),n),ee=Up({date:S,availableRange:l,timeZone:n}),M=ee?J.filter(O=>!O.isAllDay&&O.endsAt>X&&O.startsAt<ce):[],K=Fp({date:S,meetingWindows:r,timeZone:n}),ne=Pp({left:S,right:h,timeZone:n}),wt=Ze({date:h,timeZone:n}),un=rt(h,ie),fo=i!==null&&h<ce&&un>X,fn=h<=X?0:wt,kr=un>=ce?1440:Ze({date:un,timeZone:n});return f.jsxs("div",{className:"shrink-0 snap-start",style:{width:x??`calc((100vw - ${jn}px) / ${ti})`},children:[f.jsxs("div",{className:"sticky top-0 z-20 flex flex-col items-center justify-center gap-0.5 border-b border-l border-rb-gray-neutral bg-rb-white",style:{height:Bn},children:[f.jsx("span",{className:V("text-caption font-medium tracking-[0.04em] uppercase",ne?"text-rb-orange-neutral":"text-rb-secondary-dark"),children:q(F,"EEE")}),f.jsx("span",{className:V("inline-flex size-[34px] items-center justify-center rounded-full text-title-sm font-medium",ne?"bg-rb-orange-neutral text-rb-white":"text-rb-darkbtn"),children:q(F,"d")})]}),f.jsxs("div",{"aria-label":`${q(F,"EEEE d MMMM")} calendar`,"aria-busy":!ee&&d?!0:void 0,className:"relative w-full border-l border-rb-gray-neutral",style:{height:Hn,backgroundImage:"repeating-linear-gradient(to bottom, #E4E4DC 0 1px, transparent 1px 56px), repeating-linear-gradient(to bottom, transparent 0 28px, rgba(228,228,220,0.55) 28px 29px, transparent 29px 56px)"},children:[K.map((O,we)=>{const Ce=Math.max(me*60,O.startMinsSinceMidnight),dt=Math.min(Ne*60,O.endMinsSinceMidnight);return dt<=Ce?null:f.jsx("span",{"aria-hidden":"true",className:"absolute inset-x-0 border-y border-dashed border-rb-secondary-dark/60 bg-rb-gray-neutral/40",style:{to
1p:ht(Ce),height:Ot(Ce,dt)}},we)}),fo&&ie>0&&kr>me*60&&fn<Ne*60&&f.jsx("span",{"aria-hidden":"true",className:"absolute inset-x-0 z-[1] overflow-hidden text-[10px] text-rb-secondary-dark",style:{top:ht(Math.max(fn,me*60)),height:Ot(Math.max(fn,me*60),Math.min(kr,Ne*60)),backgroundImage:to},children:f.jsx("span",{className:"pl-1",children:`${Rr(ie)} notice`})}),B.map(O=>{const we=Math.max(me*60,Ze({date:O.startsAt,timeZone:n})),Ce=Math.min(Ne*60,Ze({date:O.endsAt,timeZone:n}));return Ce<=we?null:f.jsx("span",{"aria-hidden":"true",className:"absolute right-0.5 left-0.5 z-[2] overflow-hidden rounded border border-rb-bookable-line bg-rb-bookable px-1.5 py-1 text-caption font-medium text-rb-bookable-ink",style:{top:ht(we),height:Math.max(12,Ot(we,Ce)-2)},children:"Bookable"},O.startsAt.toISOString())}),M.map(O=>{const we=Math.max(me*60,O.startsAt<=X?0:Ze({date:O.startsAt,timeZone:n})),Ce=Math.min(Ne*60,O.endsAt>=ce?1440:Ze({date:O.endsAt,timeZone:n}));if(Ce<=we)return null;const dt=(O.endsAt.getTime()-O.startsAt.getTime())/6e4,Ct=no(O)?so:ro,Mr=O.attendeeStatus===re.TENTATIVE,hn=O.attendeeStatus===re.DECLINED,pn=Mr||hn,gn=O.title||"Busy",mn=Bp({location:O.location,meetingUrl:O.meetingUrl}),Nr=dt<Hp,Ir=[jp({date:O.startsAt,timeZone:n}),mn].filter(Boolean).join(", "),vn=$t({connectionId:O.sourceConnectionId,providerId:O.providerId}),Or=vn===a;return f.jsx("button",{type:"button","aria-label":`${gn}, ${ei({start:O.startsAt,end:O.endsAt,timeZone:n})}`,"aria-expanded":Or,onClick:()=>o(vn),className:V("absolute right-0.5 left-0.5 z-[3] flex flex-col overflow-hidden rounded px-1.5 text-left text-caption",Or&&"ring-2 ring-rb-orange-neutral ring-offset-1",Nr?"justify-center":"py-0.5",pn?"border":"text-rb-white",hn&&"line-through",!O.isBusy&&"opacity-25"),style:{top:ht(we),height:Math.max(12,Ot(we,Ce)-2),color:pn?Ct:void 0,borderColor:pn?Ct:void 0,background:Mr?Wp(Ct):hn?"#ffffff":Ct},children:Nr?f.jsxs("span",{className:"flex min-w-0 items-center",children:[O.hasNotetaker&&f.jsx(an,{sizePx:6}),f.jsx("span",{className:"min-w-0 shrink truncate font-medium",children:gn}),Ir&&f.jsx("span",{className:"min-w-0 shrink-[4] truncate",children:`, ${Ir}`})]}):f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:"flex min-w-0 items-center font-medium",children:[O.hasNotetaker&&f.jsx(an,{sizePx:6}),f.jsx("span",{className:"truncate",children:gn})]}),f.jsx("span",{className:"truncate opacity-85",children:ei({start:O.startsAt,end:O.endsAt,timeZone:n})}),dt>Lp&&mn&&f.jsx("span",{className:"truncate opacity-85",children:mn})]})},`${vn}-${O.startsAt.toISOString()}`)}),ne&&wt>=me*60&&wt<=Ne*60&&f.jsx("span",{"aria-hidden":"true",className:"absolute inset-x-0 z-[4] h-0.5 bg-red-500",style:{to
1p:ht(wt)},children:f.jsx("span",{className:"absolute top-1/2 left-0 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-red-500"})}),!ee&&f.jsx("span",{className:"absolute inset-0 z-[6] flex items-start justify-center bg-rb-white/75 pt-3 text-center text-caption font-medium text-rb-secondary-dark",children:d?"Loadingâ¦":"Unavailable"})]})]},S.toISOString())})]})}),f.jsxs("div",{"aria-live":"polite",className:"pointer-events-none absolute top-[120px] right-3 z-30 text-label text-rb-secondary-dark",children:[d&&f.jsx("span",{className:"sr-only",children:"Loading availability"}),c&&f.jsx(di,{title:"Availability couldnât be loaded",onRetry:g,isRetrying:d,className:"pointer-events-auto rounded-md bg-rb-white px-2 py-1 shadow-rb-shadow-soft-xs"})]})]})},si=42,ii=21,Gp=({date:t,timeZone:e})=>{const n=L(t,e),r=st(n,{weekStartsOn:1});return Array.from({length:7},(s,i)=>se(r,i))},$p=({date:t,timeZone:e})=>{const n=Gp({date:t,timeZone:e});return{start:le(Ee(se(n[0],-si)),e),end:le($o(se(n[6],si)),e)}},qp=({range:t,date:e,timeZone:n})=>{const r=Ee(L(e,n)),s=se(Ee(L(t.start,n)),ii),i=se(Ee(L(t.end,n)),-ii);return s>i?!1:Go(r,{start:s,end:i})},ai=5,Qp=110,Yp=2,Zp=t=>{const e=t==null?void 0:t.trim();return e&&(/<[a-z][\s\S]*>/i.test(e)?ol(e):e).trim()||null},Kp=t=>t.attendeeStatus===re.DECLINED?"Declined":t.attendeeStatus===re.TENTATIVE?"Maybe":t.isBusy?null:"Free",on=({date:t,timeZone:e})=>q(L(t,e),"HH:mm"),Jp=({event:t,timeZone:e})=>{const n=t.isAllDay?At(t.startsAt,"UTC","EEE d MMM"):q(L(t.startsAt,e),"EEE d MMM");return t.isAllDay?`${n} · All day`:`${n} · ${on({date:t.startsAt,timeZone:e})} â ${on({date:t.endsAt,timeZone:e})}`},Xp=t=>{const e=t.toLowerCase();return e.includes("zoom")?"Join Zoom":e.includes("teams")?"Join Teams":e.includes("meet.google")?"Join Google Meet":"Join meeting"},eg=t=>{switch(t){case re.ACCEPTED:return{label:"Accepted",tone:"accepted"};case re.DECLINED:return{label:"Declined",tone:"muted"};case re.TENTATIVE:return{label:"Maybe",tone:"muted"};case re.PENDING:return{label:"No reply yet",tone:"pending"};default:return ko(t)}},Tr=t=>t.isResource,tg=({attendees:t,calendarEmail:e,yourName:n})=>t.filter(r=>!Tr(r)).map(r=>{var a;
1const s=r.email.toLowerCase()===e.toLowerCase(),i=s?"You":((a=r.name)==null?void 0:a.trim())||r.email;return{key:r.email,initials:To(s?n:i===r.email?r.email:i),name:i,domain:s||i===r.email?null:Ro(r.email),isOptional:r.isOptional,isYou:s,reply:eg(r.responseStatus)}}).sort((r,s)=>Number(s.isYou)-Number(r.isYou)),ng=t=>{const e=t.filter(a=>!Tr(a)),n=a=>e.filter(o=>o.responseStatus===a).length,s=[[n(re.ACCEPTED),"yes"],[n(re.DECLINED),"no"],[n(re.TENTATIVE),"maybe"],[n(re.PENDING),"awaiting"]].filter(([a])=>a>0).map(([a,o])=>`${a} ${o}`),i=`${e.length} ${e.length===1?"guest":"guests"}`;return s.length>0?`${i} · ${s.join(", ")}`:i},rg=t=>{const e=t.filter(Tr).map(n=>{var r;return((r=n.name)==null?void 0:r.trim())||n.email});return e.length>0?e.join(", "):null},sg=t=>{const e=t.integration===Je.MICROSOFT_OUTLOOK_CALENDAR?"Outlook":"Google Calendar";return`${t.calendarEmail} · ${e}`},ig=t=>t===Je.MICROSOFT_OUTLOOK_CALENDAR?"Open in Outlook":"Open in Google Calendar",ag=({event:t,calendarEmail:e})=>{var r;if(!t.organiserEmail)return null;if(t.isOrganiser||t.organiserEmail.toLowerCase()===e.toLowerCase())return"Organized by you";const n=t.attendees.find(s=>{var i;return s.email.toLowerCase()===((i=t.organiserEmail)==null?void 0:i.toLowerCase())});return`Organized by ${((r=n==null?void 0:n.name)==null?void 0:r.trim())||t.organiserEmail}`},og=t=>t.visibility===al.PRIVATE&&!t.title&&t.attendees.length===0,lg={[St.NO_MEETING_LINK]:"no meeting link",[St.UNSUPPORTED_MEETING_LINK]:"no meeting link",[St.NOT_ACCEPTED]:"you have not accepted",[St.NOT_ENOUGH_ATTENDEES]:null},oo=({event:t,calendar:e,synced:n,now:r})=>{if(!n||t.endsAt<=r||tl(t)<2)return null;const s=nl({calendarEvent:{...t,integration:e.integration},calendarEmail:e.calendarEmail});return s.isEligible?n.isBotInvited?{isJoining:!0}:{isJoining:!1,reason:"turned off"}:{isJoining:!1,reason:lg[s.reason]}},cg=t=>{var e;return((e=oo(t))==null?void 0:e.isJoining)===!0},dg=t=>{var e;return((e=t.split("/").pop())==null?void 0:e.replace(/_/g," "))??t},ug=({event:t,synced:e,timeZone:n})=>{var a,o;const r=e==null?void 0:e.bookedBy;if(!(r!=null&&r.timeZone)||r.timeZone===n||t.isAllDay)return null;const s=r.name??((o=(a=t.attendees)==null?void 0:a.find(l=>l.email.toLowerCase()===r.email.toLowerCase()))==null?void 0:o.name)??r.email;return`${`${on({date:t.startsAt,timeZone:r.timeZone})} â ${on({date:t.endsAt,timeZone:r.timeZone})}`} for ${s} in ${dg(r.timeZone)}`},fg=({connectionId:t,providerEventId:e})=>`ce_${t}_${e}`,hg=t=>t.eventDeduplicationId??t.providerId,pg=t=>t instanceof Error&&"code"in t&&t.code==="permission-denied",Vt=t=>t.catch(e=>{if(pg(e))return null;throw e}),gg=async t=>{var a;const e=await Vt(pi(gi(jt.CallRecording,t)));if(!(e!=null&&e.exists()))return{notes:null,openActionItems:null};const[n,r]=await Promise.all([Vt(Hr(Lr(jt.CallAnalysis,zr("callRecordingId","==",t)))),Vt(Hr(Lr(jt.ActionItem,zr("creationSource.callRecordingId","==",t))))]),s=(a=n==null?void 0:n.docs[0])==null?void 0:a.data().callDurationMs,i=(r==null?void 0:r.docs.filter(o=>o.data().status===cl.PENDING).length)??0;return{notes:{callRecordingId:t,durationMins:s?Math.round(s/6e4):null},openActionItems:i>0?{callRecordingId:t,count:i}:null}},mg=async t=>{const e=await Vt(pi(gi(jt.MeetingPreread,t)));return e!=null&&e.exists()?{calendarEventId:t}:null},vg=async({organisationId:t,event:e,calendar:n})=>{const[r,s]=await Promise.all([gg(`${t}:${hg(e)}`),mg(fg({connectionId:n.connectionId,providerEventId:e.providerId}))]);return{...r,preread:s}},lo=({organisationId:t,event:e,calendar:n})=>Ai({queryKey:["calendar-event-links",t,n.connectionId,e.providerId],queryFn:()=>vg({organisationId:t,event:e,calendar:n}),staleTime:6e4}).data,bg=t=>{if(t<60)return`${t} min`;const e=Math.floor(t/60),n=t%60;return n===0?`${e} h`:`${e} h ${n} min`},yg=({organisationId:t,callRecordingId:e})=>ll({organisationId:t,callRecordingId:e}),Ag=({organisationId:t,callRecordingId:e})=>`/org/${t}/meeting-assistant/call-recordings/${e}#tab=notes`,Eg=t=>`/meeting-prereads/${t}`,mt="text-label text-rb-secondary-dark",oi=({icon:t,children:e})=>f.jsxs("div",{className:"flex items-start gap-2 text-body-sm",children:[f.jsx(Y,{name:t,size:13,className:"mt-0.5 shrink-0 text-rb-secondary-dark","aria-hidden":"true"}),f.jsx("span",{className:"min-w-0 break-words",children:e})]}),xg=({initials:t})=>f.jsx("span",{className:"inline-flex size-5 shrink-0 items-center justify-center rounded-full bg-rb-parchment text-[9px] font-medium text-rb-secondary-dark",children:t}),wg=({guest:t})=>f.jsxs("li",{className:"flex items-center gap-2 text-body-sm",children:[f.jsx(xg,{initials:t.initials}),f.jsxs("span",{className:"min-w-0 flex-1 truncate",children:[t.name,t.domain&&f.jsx("span",{className:"text-rb-secondary-dark",children:` · ${t.domain}`}),t.isOptional&&f.jsx("span",{className:"text-rb-secondary-dark",children:" · optional"})]}),f.jsx("span",{className:V("shrink-0 text-caption",{"text-rb-bookable-ink":t.reply.tone==="accepted","text-rb-secondary-dark":t.reply.tone==="muted","text-rb-orange-dark":t.reply.tone==="pending"}),children:t.reply.label})]}),Cg=({event:t,calendarEmail:e,yourName:n})=>{const[r,s]=w.useState(!1),i=tg({attendees:t.attendees,calendarEmail:e,yourName:n});if(i.length===0)return null;const a=i.length-ai,o=r||a<=0?i:i.slice(0,ai);return f.jsxs("div",{className:"mt-0.5 flex flex-col gap-[5px]",children:[f.jsx("p",{className:mt,children:ng(t.attendees)}),f.jsx("ul",{className:"flex flex-col gap-[5px]",children:o.map(l
1=>f.jsx(wg,{guest:l},l.key))}),a>0&&f.jsx("button",{type:"button",className:"pl-7 text-left text-label font-medium text-rb-secondary-dark hover:text-rb-darkbtn",onClick:()=>s(l=>!l),children:r?"Show fewer":`Show ${a} more`})]})},Sg=({row:t})=>f.jsxs("div",{className:"mt-0.5 flex items-center gap-2 text-body-sm",children:[f.jsx("span",{className:V("inline-flex size-5 shrink-0 items-center justify-center rounded-full",t.isJoining?"bg-rb-white ring-1 ring-rb-orange-neutral/30":"bg-rb-parchment"),children:f.jsx(Y,{name:t.isJoining?"Microphone":"MicrophoneSlash",size:11,className:t.isJoining?"text-rb-orange-neutral":"text-rb-secondary-dark","aria-hidden":"true"})}),f.jsx("span",{className:"min-w-0 break-words",children:t.isJoining?"Fyxer joins to take notes":`Fyxer not joining${t.reason?` · ${t.reason}`:""}`})]}),Ln="underline underline-offset-2 hover:text-rb-darkbtn",Dg=({organisationId:t,links:e})=>!e.notes&&!e.openActionItems&&!e.preread?null:f.jsxs("div",{className:V("mt-0.5 flex flex-wrap gap-x-3 gap-y-1 font-medium",mt),children:[e.notes&&f.jsx(Xe,{to:yg({organisationId:t,callRecordingId:e.notes.callRecordingId}),className:Ln,children:e.notes.durationMins===null?"Notes":`Notes · ${bg(e.notes.durationMins)}`}),e.openActionItems&&f.jsx(Xe,{to:Ag({organisationId:t,callRecordingId:e.openActionItems.callRecordingId}),className:Ln,children:`${e.openActionItems.count} action ${e.openActionItems.count===1?"item":"items"} open`}),e.preread&&f.jsx(Xe,{to:Eg(e.preread.calendarEventId),className:Ln,children:"Pre-read"})]}),_g=({text:t})=>{const[e,n]=w.useState(!1),r=t.length>Qp||t.split(` 2`).length>Yp;return f.jsxs("div",{className:"mt-0.5 flex flex-col gap-0.5",children:[f.jsx("p",{className:V("text-label break-words whitespace-pre-line",!e&&"line-clamp-2"),children:t}),r&&f.jsx("button",{type:"button",className:"self-start text-label font-medium text-rb-secondary-dark hover:text-rb-darkbtn",onClick:()=>n(s=>!s),children:e?"Less":"More"})]})},co=({organisationId:t,event:e,calendar:n,synced:r,links:s,now:i,timeZone:a,yourName:o,onClose:l})=>{const d=og(e),c=Kp(e),g=rg(e.attendees),h=d?null:ag({event:e,calendarEmail:n.calendarEmail}),u=sg(n),m=Zp(e.description),b=ug({event:e,synced:r,timeZone:a}),y=oo({event:e,calendar:n,synced:r,now:i}),A=(y==null?void 0:y.isJoining)===!1&&(s!=null&&s.notes)?null:y;return f.jsxs("div",{className:"flex flex-col gap-1.5 text-body-sm text-rb-darkbtn",children:[f.jsxs("div",{className:"flex items-start gap-2",children:[f.jsx("h2",{className:"min-w-0 flex-1 text-body font-medium break-words",children:e.title||"Busy"}),f.jsx(_e,{variant:"ghost",size:"icon-sm","aria-label":"Close",onClick:l,className:"-mt-1 -mr-1",children:f.jsx(Y,{name:"X",color:"current"})})]}),f.jsxs("div",{className:V("flex flex-wrap items-center gap-1.5",mt),children:[f.jsx("span",{children:Jp({event:e,timeZone:a})}),c&&f.jsx(Mo,{children:c})]}),b&&f.jsx("p",{className:V("-mt-1",mt),children:b}),d&&f.jsx("p",{className:"text-label",children:"Details are private to this calendar."}),e.meetingUrl&&f.jsx("div",{className:"mt-0.5",children:f.jsxs("a",{href:e.meetingUrl,target:"_blank",rel:"noreferrer",className:V(Gt({variant:"brand",size:"md"})),children:[f.jsx(Y,{name:"VideoCamera",size:13,"aria-hidden":"true"}),Xp(e.meetingUrl)]})}),e.location&&f.jsx(oi,{icon:"MapPin",children:e.location}),g&&f.jsx(oi,{icon:"Buildings",children:g}),f.jsx(Cg,{event:e,calendarEmail:n.calendarEmail,yourName:o}),m&&f.jsx(_g,{text:m}),A&&f.jsx(Sg,{row:A}),s&&f.jsx(Dg,{organisationId:t,links:s}),f.jsx("p",{className:V("mt-0.5",mt),children:h?`${h} · ${u}`:u}),e.webLink&&f.jsxs("a",{href:e.webLink,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1 text-label font-medium text-rb-secondary-dark hover:text-rb-darkbtn hover:underline",children:[ig(n.integration),f.jsx(Y,{name:"ArrowSquareOut",size:12,"aria-hidden":"true"})]})]})},Pt=48,uo=288,li=6,Rg=3,Tg=t=>t<=Rg?`calc(${Pt}px + (100% - ${Pt}px) * ${(t+1)/7} + ${li}px)`:`calc(${Pt}px + (100% - ${Pt}px) * ${t/7} - ${uo+li}px)`,kg=({organisationId:t,event:e,calendar:n,synced:r,now:s,dayIndex:i,timeZone:a,yourName:o,returnFocusTo:l,onClose:d})=>{const c=w.useRef(null),g=lo({organisationId:t,event:e,calendar:n});return w.useEffect(()=>{var h;
2return(h=c.current)==null||h.focus(),()=>l==null?void 0:l.focus()},[e.providerId,l]),w.useEffect(()=>{const h=u=>{var b;const m=u.target;m instanceof Node&&((b=c.current)!=null&&b.contains(m)||l!=null&&l.contains(m)||m instanceof Element&&m.closest(".fc-event:not(.fc-bg-event)")||d())};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[d,l]),f.jsx("div",{ref:c,role:"dialog","aria-label":e.title||"Busy",tabIndex:-1,onKeyDown:h=>{h.key==="Escape"&&(h.stopPropagation(),d())},style:{left:Tg(i),width:uo},className:"absolute top-3 z-20 max-h-[calc(100%-24px)] overflow-y-auto rounded-[10px] border border-rb-gray-neutral bg-rb-white p-3 shadow-[0_12px_32px_rgba(0,0,0,0.12)] outline-hidden",children:f.jsx(co,{organisationId:t,event:e,calendar:n,synced:r,links:g,now:s,timeZone:a,yourName:o,onClose:d})})},Mg=({organisationId:t,event:e,calendar:n,synced:r,now:s,timeZone:i,yourName:a,onClose:o})=>{const l=lo({organisationId:t,event:e,calendar:n});return f.jsx(co,{organisationId:t,event:e,calendar:n,synced:r,links:l,now:s,timeZone:i,yourName:a,onClose:o})},Ng=({organisationId:t,event:e,calendar:n,synced:r,now:s,timeZone:i,yourName:a,onClose:o})=>f.jsx(dl,{open:e!==null,onOpenChange:l=>!l&&o(),children:f.jsxs(ul,{className:"max-h-[78dvh] bg-rb-white","aria-describedby":void 0,children:[f.jsx(fl,{showHandle:!0,className:"sr-only",children:f.jsx(hl,{children:(e==null?void 0:e.title)||"Busy"})}),f.jsx(pl,{className:"px-4 pt-2 pb-7",children:e&&n&&f.jsx(Mg,{organisationId:t,event:e,calendar:n,synced:r,now:s,timeZone:i,yourName:a,onClose:o},$t({connectionId:n.connectionId,providerId:e.providerId}))})]})}),Ig=({isSchedulingLinkDisabled:t,defaultDurationMins:e,minimumNoticeMins:n,isPastWeek:r,compact:s})=>{if(t)return s?"Your scheduling link is off, so nothing is bookable.":"Your scheduling link is off, so nothing is bookable. Turn it on in Scheduling settings to see bookable windows.";const i=Rr(n);if(s){const l=n>0?` and the ${i} hatch`:"";return`Green is bookable for a ${e} min meeting; gray blocks, the hours band${l} rule a time out.`}const a=n>0?`Gray blocks, the shaded hours band and the hatched ${i} notice`:"Gray blocks and the shaded hours band",o=`Bookable windows are drawn for a ${e} min meeting. ${a} are what rule a time out; events marked free do not.`;return r?`${o} Past weeks never show what is bookable.`:o},Og=({organisationId:t,isSchedulingLinkDisabled:e,defaultDurationMins:n,minimumNoticeMins:r,isPastWeek:s,onClose:i,compact:a=!1})=>f.jsxs(No,{variant:"brand",role:"status",className:V("shrink-0",a&&"mx-4 my-2 w-auto"),children:[f.jsx(Y,{name:"Wrench","aria-hidden":"true"}),f.jsxs(Io,{children:[f.jsx("span",{className:"font-medium text-foreground",children:"Troubleshooting availability. "}),Ig({isSchedulingLinkDisabled:e,defaultDurationMins:n,minimumNoticeMins:r,isPastWeek:s,compact:a})]}),!a&&f.jsx("div",{className:"mt-2 group-has-[>svg]/alert:col-start-2",children:f.jsx(Xe,{to:`/org/${t}/scheduling#availability`,className:V(Gt({size:"sm"})),children:"Back to Scheduling"})}),f.jsx(Oo,{children:f.jsx(_e,{variant:"ghost",size:"icon-sm","aria-label":"Stop troubleshooting",onClick:i,children:f.jsx(Y,{name:"X",color:"current"})})})]}),Pg=()=>{const{calendarEvents:t}=jo();return w.useMemo(()=>new Map((t.value??[]).map(e=>{const n=e.data();return[n.providerId,{isBotInvited:n.isBotInvited===!0,bookedBy:n.bookedBy}]})),[t.value])},jg=({dateRange:t,keepPreviousData:e})=>{const{organisationId:n,userMembership:r,calendarConnections:s}=mi(),i=Po(),a=Pg(),o=r.data(),l=o.timeZone??ut.timeZone,d=o.meetingWindows??ut.meetingWindows,c=o.minimumMeetingNoticeMins??ut.minimumMeetingNoticeMins,g=o.defaultMeetingDurationMins??ut.defaultMeetingDurationMins,h=o.isSchedulingLinkDisabled??ut.isSchedulingLinkDisabled,u={defaultMeetingDurationMins:o.defaultMeetingDurationMins,meetingWindows:o.meetingWindows,minimumMeetingNoticeMins:o.minimumMeetingNoticeMins,timeZone:o.timeZone,calendars:s.map(b=>({id:b.id,calendarIdsForAvailability:b.data().metadata.calendarIdsForAvailability}))},m=Ai({queryKey:["scheduling-calendar",n,t==null?void 0:t.start.toISOString(),t==null?void 0:t.end.toISOString(),u],queryFn:async()=>({...await i.organisations.id(n).scheduling.availability({startsAt:t.start,endsAt:t.end}),requestedRange:t}),enabled:t!==null,placeholderData:e?(b,y)=>(y==null?void 0:y.queryKey[1])===n&&JSON.stringify(y.queryKey[4])===JSON.stringify(u)?b:void 0:void 0,staleTime:6e4});return{availability:{data:m.data,isFetching:m.isFetching,isError:m.isError,refetch:()=>void m.refetch()},hasCalendar:s.length>0,isSchedulingLinkDisabled:h,syncedEventsById:a,timeZone:l,meetingWindows:d,minimumNoticeMins:c,defaultDurationMins:g}},Bg=8,Hg=({visibleDate:t,timeZone:e})=>{const n=L(t,e),r=st(n,{weekStartsOn:1}
2),s=se(r,6);return Qo(r,s)?Yo(r,s)?`${q(r,"d")}â${q(s,"d MMM yyyy")}`:`${q(r,"d MMM")} â ${q(s,"d MMM yyyy")}`:`${q(r,"d MMM yyyy")} â ${q(s,"d MMM yyyy")}`},Lg=()=>{const[t,e]=ci(),n=t.has(Fr),r=w.useCallback(()=>e(s=>(s.delete(Fr),s),{replace:!0}),[e]);return{isTroubleshooting:n,stopTroubleshooting:r}},zg=()=>{const[t,e]=ci(),n=w.useMemo(()=>rl(t),[t]),r=w.useCallback(()=>e(s=>(s.delete(sl),s.delete(il),s),{replace:!0}),[e]);return{request:n,clearRequest:r}},Ug=({event:t,visibleDate:e,timeZone:n})=>{const r=st(L(e,n),{weekStartsOn:1}),s=L(t.startsAt,t.isAllDay?"UTC":n);return Math.min(6,Math.max(0,yi(s,r)))},Fg=({visibleDate:t,timeZone:e,now:n})=>le(qo(L(t,e),{weekStartsOn:1}),e)<n,xm=()=>{var ce,ee;const{organisationId:t}=mi(),{user:e}=fi(),n=Bo(),{request:r,clearRequest:s}=zg(),[i,a]=w.useState(()=>(r==null?void 0:r.startsAt)??new Date),[o,l]=w.useState(null),[d,c]=w.useState(null),{isTroubleshooting:g,stopTroubleshooting:h}=Lg(),{logButtonPress:u}=hi();Ho(Lo.CALENDAR,{isTroubleshooting:g,surface:n?"phone":"desktop"});const{availability:m,hasCalendar:b,isSchedulingLinkDisabled:y,syncedEventsById:A,timeZone:E,meetingWindows:R,minimumNoticeMins:x,defaultDurationMins:G}=jg({dateRange:d,keepPreviousData:n}),I=w.useCallback((M,K)=>{c(ne=>(ne==null?void 0:ne.start.getTime())===M.getTime()&&ne.end.getTime()===K.getTime()?ne:{start:M,end:K})},[]);w.useEffect(()=>{n&&c(M=>M&&qp({range:M,date:i,timeZone:E})?M:$p({date:i,timeZone:E}))},[n,E,i]);const N=Zo(),T=w.useMemo(()=>{var M;return(((M=m.data)==null?void 0:M.calendars)??[]).map(K=>({...K,events:K.events.map(ne=>({...ne,hasNotetaker:cg({event:ne,calendar:K,synced:A.get(ne.providerId),now:N}),selectionId:$t({connectionId:K.connectionId,providerId:ne.providerId})}))}))},[m.data,N,A]),j=g&&!y,ie=w.useMemo(()=>j?{startsAt:N,endsAt:rt(N,x),label:`${Rr(x)} notice`}:null,[j,x,N]),Z=w.useMemo(()=>{var K;if(!j)return[];const M=rt(N,x);return(((K=m.data)==null?void 0:K.slots)??[]).filter(ne=>ne.startsAt>=M)},[m.data,j,x,N]),he=w.useMemo(()=>new Map(T.flatMap(M=>M.events.map(K=>[$t({connectionId:M.connectionId,providerId:K.providerId}),{event:K,calendar:M}]))),[T]),J=o?he.get(o.id):void 0,C=w.useCallback(()=>l(null),[]),k=w.useCallback(M=>{(o==null?void 0:o.id)!==M.id&&u(Fn.CALENDAR_EVENT_OPENED,{isTroubleshooting:g,surface:n?"phone":"desktop",via:"click"}),l(K=>(K==null?void 0:K.id)===M.id?null:M)},[n,g,u,o==null?void 0:o.id]),z=w.useCallback(M=>{l(null),a(M)},[]),U=r==null?void 0:r.selectionId,S=(ce=r==null?void 0:r.startsAt)==null?void 0:ce.getTime();w.useEffect(()=>{U!==void 0&&(l(null),S!==void 0&&a(new Date(S)))},[U,S]);const B=r!==null&&!m.isFetching&&(m.isError||m.data!==void 0);w.useEffect(()=>{if(!r)return;const M=he.get(r.selectionId);if(M){u(Fn.CALENDAR_EVENT_OPENED,{isTroubleshooting:g,surface:n?"phone":"desktop",via:"link"}),a(M.event.startsAt),l({id:r.selectionId,el:null}),s();return}B&&s()},[s,he,B,n,g,u,r]);const F=w.useMemo(()=>[{layer:vp,data:R},...j?[{layer:bp,data:Z}]:[],{layer:yp,data:ie},...T.map(M=>({layer:Dp,data:M.events}))],[Z,T,j,R,ie]),ae=g&&b&&f.jsx(Og,{organisationId:t,isSchedulingLinkDisabled:y,defaultDurationMins:G,minimumNoticeMins:x,isPastWeek:!n&&Fg({visibleDate:i,timeZone:E,now:N}),onClose:h,compact:n}),X=f.jsxs(zo,{children:[f.jsx(Uo,{children:f.jsx(Fo,{children:f.jsx("span",{className:"whitespace-nowrap",children:"Calendar"})})}),f.jsx(Wo,{children:f.jsxs(f.Fragment,{children:[f.jsx(Np,{defaultDurationMins:G,isLinkDisabled:y,hasCalendar:b,compact:n}),n?f.jsx(Xe,{to:`/org/${t}/scheduling`,"aria-label":"Scheduling settings",className:V(Gt({size:"icon-md"})),children:f.jsx(Y,{name:"Gear",size:14})}):f.jsxs(Xe,{to:`/org/${t}/scheduling`,className:V(Gt({size:"md"})),children:[f.jsx(Y,{name:"Gear",size:14,"aria-hidden":"true"}),"Scheduling settings"]})]})})]});return n?f.jsxs("div",{className:"flex h-[calc(100dvh-3.5rem)] min-h-0 min-w-0 flex-col overflow-hidden bg-rb-white",children:[f.jsx("div",{className:"shrink-0 border-b border-rb-gray-neutral px-4 py-3",children:X}),ae,b?f.jsx(Vp,{selectedDate:i,onSelectedDateChange:a,timeZone:E,meetingWindows:R,calendars:T,selectedEventId:o==null?void 0:o.id,onEventSelect:M=>k({id:M,el:null}),troubleshoot:j?{slots:Z,minimumNoticeMins:x}:null,availableRange:((ee=m.data)==null?void 0:ee.requestedRange)??null,isFetching:m.isFetching,isError:m.isError,onRetry:m.refetch,now:N}):f.jsx("div",{className:"flex min-h-0 flex-1 flex-col p-4",children:f.jsx(Ks,{})}),f.jsx(Ng,{event:(J==null?void 0:J.event)??null,calendar:(J==null?void 0:J.calendar)??null,organisationId:t,synced:J?A.get(J.event.providerId):void 0,now:N,timeZone:E,yourName:(e==null?void 0:e.name)??"",onClose:C})]}):f.jsxs("div",{className:"flex h-[calc(100dvh-3.5rem)] min-w-0 flex-col gap-5 bg-rb-canvas p-6 lg:h-dvh xl:px-8",children:[X,ae,!b&&f.jsx(Ks,{}),b&&f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex shrink-0 flex-wrap items-center gap-2",role:"toolbar","aria-label":"Calendar controls",children:[f.jsx(_e,{size:"md",onClick:()=>z(new Date),children:"Today"}),f.jsx(_e,{size:"icon-md","aria-label":"Previous week",onClick:()=>z(M=>vi(M)),children:f.jsx(Y,{name:"ArrowLeft",color:"current"})}),f.jsx(_e,{size:"icon-md","aria-label":"Next week",onClick:()=>z(M=>bi(M,1)),children:f.jsx(Y,{name:"ArrowRight",color:"current"})}),f.jsx("p",{className:"min-w-0 px-1 text-title-sm leading-5 font-medium text-rb-darkbtn",children:Hg({visibleDate:i,timeZone:E})}),f.jsxs("div",{"aria-live":"polite",className:"flex min-w-0 items-center gap-1.5 text-label text-rb-secondary-dark",children:[m.isFetching&&f.jsxs(f.Fragment,{children:[f.jsx(ui,{size:"sm","aria-hidden":!0}
2),f.jsx("span",{className:"sr-only",children:"Loading calendar availability"})]}),m.isError&&f.jsx(di,{title:"Availability couldnât be loaded",onRetry:()=>void m.refetch(),isRetrying:m.isFetching})]})]}),f.jsxs("section",{"aria-label":"Weekly calendar",className:"relative min-h-[620px] min-w-0 flex-1 overflow-x-auto rounded-rb-card border border-rb-gray-neutral bg-rb-white shadow-rb-shadow-soft-sm",children:[f.jsx(kp,{className:"min-w-[760px]",layers:F,timezone:E,loading:!1,onWeekChange:I,visibleDate:i,onVisibleDateChange:z,showNavigation:!1,fillContainer:!0,scrollToHour:Bg,axisCornerLabel:{text:At(i,E,"zzz"),title:E},onEventClick:k,selectedEventId:o==null?void 0:o.id}),J&&f.jsx(kg,{event:J.event,calendar:J.calendar,dayIndex:Ug({event:J.event,visibleDate:i,timeZone:E}),organisationId:t,synced:A.get(J.event.providerId),now:N,timeZone:E,yourName:(e==null?void 0:e.name)??"",returnFocusTo:(o==null?void 0:o.el)??null,onClose:C},o==null?void 0:o.id)]})]})]})};export{xm as CalendarPage};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.