PageSourceSearch

https://lipscombsports.com/_nuxt/CzIuzAN8.js

js lipscombsports.com collected 2026-10-02 04:33:04 UTC 295,809 bytes, 1 lines download raw bytes

1import{a as e}from"./DH_oPWig.js";import{B as t,D as n,Dt as r,E as i,I as a,N as o,O as s,Ot as c,P as l,Rt as u,T as d,W as f,Y as p,_ as m,at as h,dn as g,hn as _,it as v,j as y,mt as b,nt as x,pt as S,qt as C,st as w,ut as T,w as E,wt as D,zt as O}from"./BaBhFZm2.js";import{l as k,r as ee,s as A}from"./Cm8_Znr6.js";import{f as j}from"./PTSJo-lX.js";import{t as te}from"./oQPVSlJP.js";import{S as ne,nt as re}from"./DGJ9b2SS.js";import{r as ie}from"./P-CSN9-n.js";import{t as ae}from"./axonmJ2t.js";import{t as M}from"./BTR1pb_e.js";import{t as oe}from"./BNGBAOvu.js";import{t as se}from"./DSQl5yOh.js";import{t as N}from"./DFQ7m00a.js";import{n as ce}from"./HfQoVW9a2.js";import{t as le}from"./C2ANWNt82.js";import{t as ue}from"./hoZcCBOQ2.js";import{A as de,Mt as fe,O as pe,Pt as me,V as he,jt as ge}from"./Cz4n-81e2.js";import"./DiILT5Ul2.js";import{n as _e}from"./Nmdt_FzL2.js";import{t as ve}from"./BPt6qwYx2.js";import{t as ye}from"./BDNMzG2s2.js";import{t as be}from"./BoClOdCa2.js";import{t as xe}from"./C3KW6e0m2.js";import{t as Se}from"./Dzb0g_to2.js";import{t as Ce}from"./DTo2fRA82.js";import{t as we}from"./D8fhqYzU2.js";import{t as Te}from"./BKw-uE3p2.js";import{t as Ee}from"./CvA7ECzf2.js";import{t as De}from"./C8m49MID2.js";import{t as Oe}from"./7CAKNlMg.js";import{t as ke}from"./BEVL-s39.js";var Ae={__name:`CalendarTextOnlyButton`,setup(e){let t=j(),n=Oe(),a=E(()=>n.getCurrentParams),o=E(()=>a.value?`${t.path}/print/${a.value.type}/${a.value.sport_id}/${a.value.start_date.replaceAll(`%2F`,`-`)}/${a.value.end_date.replaceAll(`%2F`,`-`)}/${a.value.location?a.value.location:`null`}`:``);return(e,t)=>(h(),i(C(ue),{"aria-label":`Text only view, raw text file opens in new window.`,tag:`a`,href:C(o),size:`regular`,theme:`light-theme`,iconLeft:`icon-text`,type:`alternate`,class:`!flex w-full sm:w-auto`,target:`_blank`,"data-allow-mismatch":`attribute`},{default:r(()=>[...t[0]||=[d(`span`,{class:``},`Text Only`,-1)]]),_:1},8,[`href`]))}},je={class:`c-calendar__header c-calendar__header--desktop flex flex-wrap items-center pb-4`},Me={class:`flex-align-center flex flex-initial gap-2`},Ne={class:`w-full py-4 sm:ml-2 sm:w-auto lg:py-0`},Pe={__name:`CalendarHeaderDesktop`,props:{...N(),viewType:String,sportsFilter:Array,initialSportSelected:Object,gameLocationOptions:Array,initialLocation:Object},emits:[`selectSport`,`filterLocation`,`changeView`,`print`],setup(e,{emit:t}){let r=e,a=t,o=f(`calendarFilters`),c=e=>{a(`selectSport`,e)},u=O(r.initialLocation),p=e=>{u.value=e,a(`filterLocation`,e)},m=e=>{a(`changeView`,e)},_=()=>{a(`print`)};return(t,r)=>(h(),s(`div`,je,[d(`div`,Me,[l(C(ue),{size:`regular`,theme:`light-theme`,buttonIcon:``,icon:`icon-print`,"aria-label":`Print Schedule, opens in print dialog window`,onClick:_}),l(C(ge),{sport_id:C(o)?.sport_id,location_indicator:C(o)?.location_indicator},null,8,[`sport_id`,`location_indicator`])]),d(`div`,Ne,[l(Ae)]),d(`div`,{class:g([`ml-2 grid h-[53px] w-auto gap-2`,[C(o)?.showSportSelect?`grid-cols-2`:`grid-cols-1`]])},[C(o)?.showSportSelect?(h(),i(C(he),{key:0,id:`calendar-sport-select`,theme:`light-theme`,options:e.sportsFilter,selected:e.initialSportSelected,class:`!mx-0 basis-1/2`,"aria-label":e.initialSportSelected?.name+` filter selected; filter calendar by sport`,"max-height-locked":``,onSelectionChanged:c},null,8,[`options`,`selected`,`aria-label`])):n(``,!0),l(C(he),{id:`calendar-location-select`,theme:`light-theme`,options:e.gameLocationOptions,selected:e.initialLocation,placeholder:`Select`,class:`!mx-0 w-[160px]`,noWrapSelection:``,"aria-label":C(u)?.name+` filter selected; filter calendar by home and away games`,"max-height-locked":``,onSelectionChanged:p},null,8,[`options`,`selected`,`aria-label`])],2),l(De,{class:`ml-auto`,viewType:e.viewType,viewTypeDefault:`grid`,viewTypeConfig:{list:!0,grid:!0},onChangeView:m},null,8,[`viewType`])]))}},Fe={class:`c-calendar__header c-calendar__header--tablet flex flex-wrap items-center pb-4`},Ie={class:`flex-align-center flex flex-initial`},Le={class:`ml-2`},Re={__name:`CalendarHeaderTablet`,props:{...N(),viewType:String,sportsFilter:Array,initialSportSelected:Object,gameLocationOptions:Array,initialLocation:Object},emits:[`selectSport`,`filterLocation`,`changeView`,`print`],setup(e,{emit:t}){let r=e,a=t,o=f(`calendarFilters`),c=e=>{a(`selectSport`,e)}
1,u=O(r.initialLocation),p=e=>{u.value=e,a(`filterLocation`,e)},m=e=>{a(`changeView`,e)},_=()=>{a(`print`)};return(t,r)=>(h(),s(`div`,Fe,[d(`div`,Ie,[l(C(ue),{size:`regular`,theme:`light-theme`,buttonIcon:``,icon:`icon-print`,class:`mr-2`,"aria-label":`Print Schedule, opens in print dialog window`,onClick:_}),l(C(ge),{sport_id:C(o)?.sport_id,location_indicator:C(o)?.location_indicator},null,8,[`sport_id`,`location_indicator`]),d(`div`,Le,[l(Ae)])]),l(De,{class:`ml-auto`,viewType:e.viewType,viewTypeDefault:`grid`,viewTypeConfig:{list:!0,grid:!0},onChangeView:m},null,8,[`viewType`]),d(`div`,{class:g([`mt-4 grid w-full gap-2`,[C(o)?.showSportSelect?`grid-cols-2`:`grid-cols-1`]])},[C(o)?.showSportSelect?(h(),i(C(he),{key:0,id:`calendar-sport-select`,theme:`light-theme`,options:e.sportsFilter,selected:e.initialSportSelected,class:`!mx-0 w-full basis-full pr-0`,"aria-label":e.initialSportSelected?.name+` filter selected; filter calendar by sport`,"max-height-locked":``,onSelectionChanged:c},null,8,[`options`,`selected`,`aria-label`])):n(``,!0),l(C(he),{id:`calendar-location-select`,theme:`light-theme`,options:e.gameLocationOptions,selected:e.initialLocation,placeholder:`Select`,class:`!mx-0 w-full`,noWrapSelection:``,"aria-label":C(u)?.name+` filter selected; filter calendar by home and away games`,"max-height-locked":``,onSelectionChanged:p},null,8,[`options`,`selected`,`aria-label`])],2)]))}},ze={class:`c-calendar__header c-calendar__header--mobile flex flex-wrap items-center pb-4`},Be={class:`flex-align-center flex flex-initial`},Ve={class:`mt-4 w-full`},He={class:`mt-4 grid w-full grid-cols-1 gap-2`},Ue={__name:`CalendarHeaderMobile`,props:{...N(),viewType:String,sportsFilter:Array,initialSportSelected:Object,gameLocationOptions:Array,initialLocation:Object},emits:[`selectSport`,`filterLocation`,`changeView`,`print`],setup(e,{emit:t}){let r=e,a=t,o=f(`calendarFilters`),c=e=>{a(`selectSport`,e)},u=O(r.initialLocation),p=e=>{u.value=e,a(`filterLocation`,e)},m=e=>{a(`changeView`,e)},g=()=>{a(`print`)};return(t,r)=>(h(),s(`div`,ze,[d(`div`,Be,[l(C(ue),{size:`regular`,theme:`light-theme`,buttonIcon:``,icon:`icon-print`,class:`mr-2`,"aria-label":`Print Schedule, opens in print dialog window`,onClick:g}),l(C(ge),{sport_id:C(o).sport_id,location_indicator:C(o).location_indicator},null,8,[`sport_id`,`location_indicator`])]),l(De,{class:`ml-auto`,viewType:e.viewType,viewTypeDefault:`grid`,viewTypeConfig:{list:!0,grid:!0},onChangeView:m},null,8,[`viewType`]),d(`div`,Ve,[l(Ae)]),d(`div`,He,[C(o).showSportSelect?(h(),i(C(he),{key:0,id:`calendar-sport-select`,theme:`light-theme`,options:e.sportsFilter,selected:e.initialSportSelected,class:`!mx-0 basis-full`,"aria-label":e.initialSportSelected?.name+` filter selected; filter calendar by sport`,"max-height-locked":``,onSelectionChanged:c},null,8,[`options`,`selected`,`aria-label`])):n(``,!0),l(C(he),{id:`calendar-location-select`,theme:`light-theme`,options:e.gameLocationOptions,selected:e.initialLocation,placeholder:`Select`,class:`!mx-0 w-full`,noWrapSelection:``,"aria-label":C(u)?.name+` filter selected; filter calendar by home and away games`,"max-height-locked":``,onSelectionChanged:p},null,8,[`options`,`selected`,`aria-label`])])]))}},We={__name:`CalendarHeader`,props:{...N(),viewType:String},emits:[`selectSport`,`filterLocation`,`changeView`],setup(e,{emit:t}){let n=Oe(),r=te(),a=t,{isTablet:o,isDesktop:s}=se(),c={desktop:Pe,tablet:Re,mobile:Ue},l=E(()=>s.value?c.desktop:o.value?c.tablet:c.mobile),u=f(`calendarFilters`),d=E(()=>[{name:`All Sports`,value:0},...r.getRealSportsSortedByTitle.map(e=>({name:e.title,value:e.id}))]),p=E(()=>d.value&&d.value&&d.value.find(e=>e.value===u.sport_id)),m=E(()=>ie.map(e=>({name:e.label,value:e.value}))),g=E(()=>{if(m.value&&m.value)return m.value.find(e=>e.value===``)}),_=E(()=>n.getCurrentParams),v=e=>{a(`selectSport`,e.value)},y=e=>{a(`filterLocation`,e.value)},x=e=>{a(`changeView`,e)},S=()=>{let e=_.value?`${window.location.href.split(`?`)[0]}/print/${_.value.type}/${_.value.sport_id}/${_.value.start_date.replaceAll(`%2F`,`-`)}/${_.value.end_date.replaceAll(`%2F`,`-`)}/${_.value.location?_.value.location:`null`}?print=auto`:null;e&&window.open(e,`_blank`,`menubar=no,location=no,status=no,scrollbars=yes,width=800,height=800`)};return(t,n)=>
1(h(),i(b(C(l)),{viewType:e.viewType,sportsFilter:C(d),initialSportSelected:C(p),gameLocationOptions:C(m),initialLocation:C(g),onSelectSport:v,onFilterLocation:y,onChangeView:x,onPrint:S},null,40,[`viewType`,`sportsFilter`,`initialSportSelected`,`gameLocationOptions`,`initialLocation`]))}},Ge=function(e,t){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ge(e,t)};function P(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Ge(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var F=function(){return F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},F.apply(this,arguments)};function I(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Ke,L,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt={},it=[],at=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ot=Array.isArray;function st(e,t){for(var n in t)e[n]=t[n];return e}function ct(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function lt(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?Ke.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]
1);return ut(e,o,r,i,null)}function ut(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++qe,__i:-1,__u:0};return i==null&&L.vnode!=null&&L.vnode(a),a}function dt(){return{current:null}}function ft(e){return e.children}function pt(e,t){this.props=e,this.context=t}function mt(e,t){if(t==null)return e.__?mt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?mt(e):null}function ht(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ht(e)}}function gt(e){(!e.__d&&(e.__d=!0)&&Je.push(e)&&!_t.__r++||Ye!=L.debounceRendering)&&((Ye=L.debounceRendering)||Xe)(_t)}function _t(){for(var e,t,n,r,i,a,o,s=1;Je.length;)Je.length>s&&Je.sort(Ze),e=Je.shift(),s=Je.length,e.__d&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],t.__P&&((n=st({},r)).__v=r.__v+1,L.vnode&&L.vnode(n),Et(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,a,i??mt(r),!!(32&r.__u),o),n.__v=r.__v,n.__.__k[n.__i]=n,Dt(a,n,o),n.__e!=i&&ht(n)));_t.__r=0}function vt(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_=r&&r.__k||it,v=t.length;for(c=yt(n,t,_,c,v),d=0;d<v;d++)(p=n.__k[d])!=null&&(f=p.__i==-1?rt:_[p.__i]||rt,p.__i=d,g=Et(e,p,f,i,a,o,s,c,l,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&At(f.ref,null,p),u.push(p.ref,p.__c||m,p)),h==null&&m!=null&&(h=m),4&p.__u||f.__k===p.__k?c=bt(p,c,e):typeof p.type==`function`&&g!==void 0?c=g:m&&(c=m.nextSibling),p.__u&=-7);return n.__e=h,c}function yt(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(c=a+f,(o=e.__k[a]=typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?ut(null,o,null,null,null):ot(o)?ut(ft,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?ut(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(l=o.__i=St(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=mt(s)),jt(s,s));return r}function bt(e,t,n){var r,i;if(typeof e.type==`function`){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=bt(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=mt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function xt(e,t){return t||=[],e==null||typeof e==`boolean`||(ot(e)?e.some(function(e){xt(e,t)}):t.push(e)),t}function St(e,t,n,r){var i,a,o=e.key,s=e.type,c=t[n];if(c===null&&e.key==null||c&&o==c.key&&s==c.type&&!(2&c.__u))return n;if(r>+(c!=null&&!(2&c.__u)))for(i=n-1,a=n+1;i>=0||a<t.length;){if(i>=0){if((c=t[i])&&!(2&c.__u)&&o==c.key&&s==c.type)return i;i--}if(a<t.length){if((c=t[a])&&!(2&c.__u)&&o==c.key&&s==c.type)return a;a++}}return-1}function Ct(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||at.test(t)?n:n+`px`}function wt(e,t,n,r,i){var a,o;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||Ct(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||Ct(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(Qe,`$1`)),o=t.toLowerCase(),t=o in e||t==`onFocusOut`||t==`onFocusIn`?o.slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r?n.u=r.u:(n.u=$e,e.addEventListener(t,a?tt:et,a)):e.removeEventListener(t,a?tt:et,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function Tt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=$e++;else if(t.t<n.u)return;return n(L.event?L.event(t):t)}}}function Et(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),a=[s=t.__e=n.__e]),(u=L.__b)&&u(t);n:if(typeof D==`function`)try{if(_=t.props,v=`prototype`in D&&D.prototype.render,y=(u=D.contextType)&&r[u.__c],b=u?y?
vendor: 4,261 bytes, line 1
1y.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:(v?t.__c=d=new D(_,b):(t.__c=d=new pt(_,b),d.constructor=D,d.render=Mt),y&&y.sub(d),d.props=_,d.state||(d.state={}),d.context=b,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),v&&d.__s==null&&(d.__s=d.state),v&&D.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=st({},d.__s)),st(d.__s,D.getDerivedStateFromProps(_,d.__s))),p=d.props,m=d.state,d.__v=t,f)v&&D.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),v&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(v&&D.getDerivedStateFromProps==null&&_!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(_,b),!d.__e&&d.shouldComponentUpdate!=null&&!1===d.shouldComponentUpdate(_,d.__s,b)||t.__v==n.__v){for(t.__v!=n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[],d.__h.length&&o.push(d);break n}d.componentWillUpdate!=null&&d.componentWillUpdate(_,d.__s,b),v&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,m,h)})}if(d.context=b,d.props=_,d.__P=e,d.__e=!1,S=L.__r,C=0,v){for(d.state=d.__s,d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),w=0;w<d._sb.length;w++)d.__h.push(d._sb[w]);d._sb=[]}else do d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++C<25);d.state=d.__s,d.getChildContext!=null&&(r=st(st({},r),d.getChildContext())),v&&!f&&d.getSnapshotBeforeUpdate!=null&&(h=d.getSnapshotBeforeUpdate(p,m)),T=u,u!=null&&u.type===ft&&u.key==null&&(T=Ot(u.props.children)),s=vt(e,ot(T)?T:[T],t,n,r,i,a,o,s,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),g&&(d.__E=d.__=null)}catch(e){if(t.__v=null,c||a!=null){if(e.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__e=s}else for(E=a.length;E--;)ct(a[E])}else t.__e=n.__e,t.__k=n.__k;L.__e(e,t,n)}else a==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=kt(n.__e,t,n,r,i,a,o,c,l);return(u=L.diffed)&&u(t),128&t.__u?void 0:s}function Dt(e,t,n){for(var r=0;r<n.length;r++)At(n[r],n[++r],n[++r]);L.__c&&L.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){L.__e(e,t.__v)}})}function Ot(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:ot(e)?e.map(Ot):st({},e)}function kt(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h,g=n.props,_=t.props,v=t.type;if(v==`svg`?i=`http://www.w3.org/2000/svg`:v==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(l=0;l<a.length;l++)if((p=a[l])&&`setAttribute`in p==!!v&&(v?p.localName==v:p.nodeType==3)){e=p,a[l]=null;break}}if(e==null){if(v==null)return document.createTextNode(_);e=document.createElementNS(i,v,_.is&&_),s&&=(L.__m&&L.__m(t,a),!1),a=null}if(v==null)g===_||s&&e.data==_||(e.data=_);else{if(a&&=Ke.call(e.childNodes),g=n.props||rt,!s&&a!=null)for(g={},l=0;l<e.attributes.length;l++)g[(p=e.attributes[l]).name]=p.value;for(l in g)if(p=g[l],l!=`children`){if(l==`dangerouslySetInnerHTML`)d=p;else if(!(l in _)){if(l==`value`&&`defaultValue`in _||l==`checked`&&`defaultChecked`in _)continue;wt(e,l,null,p,i)}}for(l in _)p=_[l],l==`children`?f=p:l==`dangerouslySetInnerHTML`?u=p:l==`value`?m=p:l==`checked`?h=p:s&&typeof p!=`function`||g[l]===p||wt(e,l,p,g[l],i);if(u)s||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=``),vt(t.type==`template`?e.content:e,ot(f)?f:[f],t,n,r,v==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&mt(n,0),s,c),a!=null)for(l=a.length;l--;)ct(a[l]);s||(l=`value`,v==`progress`&&m==null?e.removeAttribute(`value`):m!=null&&(m!==e[l]||v==`progress`&&!m||v==`option`&&m!=g[l])&&wt(e,l,m,g[l],i),l=`checked`,h!=null&&h!=e[l]&&wt(e,l,h,g[l],i))}return e}function At(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){L.__e(e,n)}}function jt(e,t,n){var r,i;if(L.unmount&&L.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||At(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){L.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&jt(r[i],t,n||typeof e.type!=`function`);
vendor: 1,645 bytes, line 1
1n||ct(e.__e),e.__c=e.__=e.__e=void 0}function Mt(e,t,n){return this.constructor(e,n)}function Nt(e,t,n){var r,i,a,o;t==document&&(t=document.documentElement),L.__&&L.__(e,t),i=(r=typeof n==`function`)?null:n&&n.__k||t.__k,a=[],o=[],Et(t,e=(!r&&n||t).__k=lt(ft,null,[e]),i||rt,rt,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?Ke.call(t.childNodes):null,a,!r&&n?n:i?i.__e:t.firstChild,r,o),Dt(a,e,o)}function Pt(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,gt(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c=`__cC`+nt++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}Ke=it.slice,L={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},qe=0,pt.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=st({},this.state);typeof e==`function`&&(e=e(st({},n),this.props)),e&&st(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),gt(this))},pt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),gt(this))},pt.prototype.render=ft,Je=[],Xe=typeof Promise==`function`?Promise.prototype.then.bind(Prom
vendor: 6,104 bytes, line 1
1ise.resolve()):setTimeout,Ze=function(e,t){return e.__v.__b-t.__v.__b},_t.__r=0,Qe=/(PointerCapture)$|Capture$/i,$e=0,et=Tt(!1),tt=Tt(!0),nt=0;var Ft,It,Lt,Rt=[],R=L,zt=R.__b,Bt=R.__r,Vt=R.diffed,Ht=R.__c,Ut=R.unmount,Wt=R.__;function Gt(){for(var e;e=Rt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Jt),e.__H.__h.forEach(Yt),e.__H.__h=[]}catch(t){e.__H.__h=[],R.__e(t,e.__v)}}R.__b=function(e){Ft=null,zt&&zt(e)},R.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Wt&&Wt(e,t)},R.__r=function(e){Bt&&Bt(e);var t=(Ft=e.__c).__H;t&&(It===Ft?(t.__h=[],Ft.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(Jt),t.__h.forEach(Yt),t.__h=[])),It=Ft},R.diffed=function(e){Vt&&Vt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Rt.push(t)!==1&&Lt===R.requestAnimationFrame||((Lt=R.requestAnimationFrame)||qt)(Gt)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),It=Ft=null},R.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Jt),e.__h=e.__h.filter(function(e){return!e.__||Yt(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],R.__e(n,e.__v)}}),Ht&&Ht(e,t)},R.unmount=function(e){Ut&&Ut(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Jt(e)}catch(e){t=e}}),n.__H=void 0,t&&R.__e(t,n.__v))};var Kt=typeof requestAnimationFrame==`function`;function qt(e){var t,n=function(){clearTimeout(r),Kt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Kt&&(t=requestAnimationFrame(n))}function Jt(e){var t=Ft,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),Ft=t}function Yt(e){var t=Ft;e.__c=e.__(),Ft=t}function Xt(e,t){for(var n in t)e[n]=t[n];return e}function Zt(e,t){for(var n in e)if(n!==`__source`&&!(n in t))return!0;for(var r in t)if(r!==`__source`&&e[r]!==t[r])return!0;return!1}function Qt(e,t){this.props=e,this.context=t}(Qt.prototype=new pt).isPureReactComponent=!0,Qt.prototype.shouldComponentUpdate=function(e,t){return Zt(this.props,e)||Zt(this.state,t)};var $t=L.__b;L.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),$t&&$t(e)},typeof Symbol<`u`&&Symbol.for;var en=L.__e;L.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}en(e,t,n,r)};var tn=L.unmount;function nn(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){typeof e.__c==`function`&&e.__c()}),e.__c.__H=null),(e=Xt({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return nn(e,t,n)})),e}function rn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return rn(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function an(){this.__u=0,this.o=null,this.__b=null}function on(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function sn(){this.i=null,this.l=null}L.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),tn&&tn(e)},(an.prototype=new pt).__c=function(e,t){var n=t.__c,r=this;r.o??=[],r.o.push(n);var i=on(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=rn(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},an.prototype.componentWillUnmount=function(){this.o=[]},an.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement(`div`),r=this.__v.__k[0].__c;this.__v.__k[0]=nn(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&lt(ft,null,e.fallback);return i&&(i.__u&=-33),[lt(ft,null,t.__a?null:e.children),i]};var cn=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==`t`||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function ln(e){return this.getChildContext=function(){return e.context},e.children}function un(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){Nt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}Nt(lt(ln,{context:t.context},e.__v),t.v)}function dn(e,t){var n=lt(un,{__v:e,h:t});return n.containerInfo=t,n}(sn.prototype=new pt).__a=function(e){var t=this,n=on(t.__v),r=t.l.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),cn(t,e,r)):i()};n?n(a):a()}},sn.prototype.render=function(e){this.i=null,this.l=new Map;var t=xt(e.children);e.revealOrder&&e.revealOrder[0]===`b`&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},sn.prototype.componentDidUpdate=sn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){cn(e,n,t)})};var fn=typeof Symbol<`u`&&Symbol.for&&Symbol.for(`react.element`)||60103,pn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|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]/,mn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,hn=/[A-Z0-9]/g,gn=typeof document<`u`,_n=function(e){return(typeof Symbol<`u`&&typeof Symbol()==`symbol`?/fil|che|rad/:/fil|che|ra/).test(e)};pt.prototype.isReactComponent={},[`componentWillMount`,`componentWillReceiveProps`,`componentWillUpdate`].forEach(function(e){Object.defineProperty(pt.prototype,e,{configurable:!0,get:function(){return this[`UNSAFE_`+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var vn=L.event;function yn(){}function bn(){return this.cancelBubble}function xn(){return this.defaultPrevented}L.event=function(e){return vn&&(e=vn(e)),e.persist=yn,e.isPropagationStopped=bn,e.isDefaultPrevented=xn,e.nativeEvent=e};
1var Sn={enumerable:!1,configurable:!0,get:function(){return this.class}},Cn=L.vnode;L.vnode=function(e){typeof e.type==`string`&&function(e){var t=e.props,n=e.type,r={},i=n.indexOf(`-`)===-1;for(var a in t){var o=t[a];if(!(a===`value`&&`defaultValue`in t&&o==null||gn&&a===`children`&&n===`noscript`||a===`class`||a===`className`)){var s=a.toLowerCase();a===`defaultValue`&&`value`in t&&t.value==null?a=`value`:a===`download`&&!0===o?o=``:s===`translate`&&o===`no`?o=!1:s[0]===`o`&&s[1]===`n`?s===`ondoubleclick`?a=`ondblclick`:s!==`onchange`||n!==`input`&&n!==`textarea`||_n(t.type)?s===`onfocus`?a=`onfocusin`:s===`onblur`?a=`onfocusout`:mn.test(a)&&(a=s):s=a=`oninput`:i&&pn.test(a)?a=a.replace(hn,`-$&`).toLowerCase():o===null&&(o=void 0),s===`oninput`&&r[a=s]&&(a=`oninputCapture`),r[a]=o}}n==`select`&&r.multiple&&Array.isArray(r.value)&&(r.value=xt(t.children).forEach(function(e){e.props.selected=r.value.indexOf(e.props.value)!=-1})),n==`select`&&r.defaultValue!=null&&(r.value=xt(t.children).forEach(function(e){e.props.selected=r.multiple?r.defaultValue.indexOf(e.props.value)!=-1:r.defaultValue==e.props.value})),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",Sn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=fn,Cn&&Cn(e)};var wn=L.__r;L.__r=function(e){wn&&wn(e),e.__c};var Tn=L.diffed;L.diffed=function(e){Tn&&Tn(e);var t=e.props,n=e.__e;n!=null&&e.type===`textarea`&&`value`in t&&t.value!==n.value&&(n.value=t.value==null?``:t.value)};var En=typeof globalThis<`u`?globalThis:window;En.FullCalendarVDom?console.warn(`FullCalendar VDOM already loaded`):En.FullCalendarVDom={Component:pt,createElement:lt,render:Nt,createRef:dt,Fragment:ft,createContext:kn,createPortal:dn,flushToDom:Dn,unmountComponentAtNode:An};function Dn(){var e=L.debounceRendering,t=[];function n(e){t.push(e)}for(L.debounceRendering=n,Nt(lt(On,{}),document.createElement(`div`));t.length;)t.shift()();L.debounceRendering=e}var On=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return lt(`div`,{})},t.prototype.componentDidMount=function(){this.setState({})},t}(pt);function kn(e){var t=Pt(e),n=t.Provider;return t.Provider=function(){var e=this,t=!this.getChildContext,r=n.apply(this,arguments);if(t){var i=[];this.shouldComponentUpdate=function(t){e.props.value!==t.value&&i.forEach(function(e){e.context=t.value,e.forceUpdate()})},this.sub=function(e){i.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){i.splice(i.indexOf(e),1),t&&t.call(e)}}}return r},t}function An(e){Nt(null,e)}if(typeof FullCalendarVDom>`u`)throw Error(`Please import the top-level fullcalendar lib before attempting to import a plugin.`);var jn=FullCalendarVDom.Component,z=FullCalendarVDom.createElement,Mn=FullCalendarVDom.render,B=FullCalendarVDom.createRef,V=FullCalendarVDom.Fragment,Nn=FullCalendarVDom.createContext,Pn=FullCalendarVDom.createPortal,Fn=FullCalendarVDom.flushToDom,In=FullCalendarVDom.unmountComponentAtNode,Ln=function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:`REMOVE_EVENT_SOURCE`,sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:`FETCH_EVENT_SOURCES`,sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}();function Rn(e){e.parentNode&&e.parentNode.removeChild(e)}function H(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(zn(e,t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}function zn(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function Bn(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i+=1)for(var a=n[i].querySelectorAll(t),o=0;o<a.length;o+=1)r.push(a[o]);return r}var Vn=/(top|left|right|bottom|width|height)$/i;function Hn(e,t){for(var n in t)Un(e,n,t[n])}
1function Un(e,t,n){n==null?e.style[t]=``:typeof n==`number`&&Vn.test(t)?e.style[t]=n+`px`:e.style[t]=n}function Wn(e){return e.composedPath?.call(e)[0]??e.target}function Gn(e){return e.getRootNode?e.getRootNode():document}var Kn=0;function qn(){return Kn+=1,`fc-dom-`+Kn}function Jn(e){e.preventDefault()}function Yn(e,t){return function(n){var r=H(n.target,e);r&&t.call(r,n,r)}}function Xn(e,t,n,r){var i=Yn(n,r);return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}function Zn(e,t,n,r){var i;return Xn(e,`mouseover`,t,function(e,t){if(t!==i){i=t,n(e,t);var a=function(e){i=null,r(e,t),t.removeEventListener(`mouseleave`,a)};t.addEventListener(`mouseleave`,a)}})}var Qn=[`webkitTransitionEnd`,`otransitionend`,`oTransitionEnd`,`msTransitionEnd`,`transitionend`];function $n(e,t){var n=function(r){t(r),Qn.forEach(function(t){e.removeEventListener(t,n)})};Qn.forEach(function(t){e.addEventListener(t,n)})}function er(e){return F({onClick:e},tr(e))}function tr(e){return{tabIndex:0,onKeyDown:function(t){(t.key===`Enter`||t.key===` `)&&(e(t),t.preventDefault())}}}var nr=0;function rr(){return nr+=1,String(nr)}function ir(){document.body.classList.add(`fc-not-allowed`)}function ar(){document.body.classList.remove(`fc-not-allowed`)}function or(e){e.classList.add(`fc-unselectable`),e.addEventListener(`selectstart`,Jn)}function sr(e){e.classList.remove(`fc-unselectable`),e.removeEventListener(`selectstart`,Jn)}function cr(e){e.addEventListener(`contextmenu`,Jn)}function lr(e){e.removeEventListener(`contextmenu`,Jn)}function ur(e){var t=[],n=[],r,i;for(typeof e==`string`?n=e.split(/\s*,\s*/):typeof e==`function`?n=[e]:Array.isArray(e)&&(n=e),r=0;r<n.length;r+=1)i=n[r],typeof i==`string`?t.push(i.charAt(0)===`-`?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i==`function`&&t.push({func:i});return t}function dr(e,t,n){var r,i;for(r=0;r<n.length;r+=1)if(i=fr(e,t,n[r]),i)return i;return 0}function fr(e,t,n){return n.func?n.func(e,t):pr(e[n.field],t[n.field])*(n.order||1)}function pr(e,t){return!e&&!t?0:t==null?-1:e==null?1:typeof e==`string`||typeof t==`string`?String(e).localeCompare(String(t)):e-t}function mr(e,t){var n=String(e);return`000`.substr(0,t-n.length)+n}function hr(e,t,n){return typeof e==`function`?e.apply(void 0,t):typeof e==`string`?t.reduce(function(e,t,n){return e.replace(`$`+n,t||``)},e):n}function gr(e,t){return e-t}function _r(e){return e%1==0}function vr(e){var t=e.querySelector(`.fc-scrollgrid-shrink-frame`),n=e.querySelector(`.fc-scrollgrid-shrink-cushion`);if(!t)throw Error(`needs fc-scrollgrid-shrink-frame className`);if(!n)throw Error(`needs fc-scrollgrid-shrink-cushion className`);return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var yr=[`sun`,`mon`,`tue`,`wed`,`thu`,`fri`,`sat`];function br(e,t){var n=Rr(e);return n[2]+=t*7,G(n)}function U(e,t){var n=Rr(e);return n[2]+=t,G(n)}function xr(e,t){var n=Rr(e);return n[6]+=t,G(n)}function Sr(e,t){return Cr(e,t)/7}function Cr(e,t){return(t.valueOf()-e.valueOf())/864e5}function wr(e,t){return(t.valueOf()-e.valueOf())/36e5}function Tr(e,t){return(t.valueOf()-e.valueOf())/6e4}function Er(e,t){return(t.valueOf()-e.valueOf())/1e3}function Dr(e,t){var n=W(e),r=W(t);return{years:0,months:0,days:Math.round(Cr(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function Or(e,t){var n=kr(e,t);return n!==null&&n%7==0?n/7:null}function kr(e,t){return Br(e)===Br(t)?Math.round(Cr(e,t)):null}function W(e){return G([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function Ar(e){return G([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function jr(e){return G([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function Mr(e){return G([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function Nr(e,t,n){var r=e.getUTCFullYear(),i=Pr(e,r,t,n);if(i<1)return Pr(e,r-1,t,n);var a=Pr(e,r+1,t,n);return a>=1?Math.min(i,a):i}function Pr(e,t,n,r){var i=G([t,0,1+Fr(t,n,r)]),a=W(e),o=Math.round(Cr(i,a));return Math.floor(o/7)+1}function Fr(e,t,n){var r=7+t-n;return-((7+G([e,0,r]).getUTCDay()-t)%7)+r-1}function Ir(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Lr(e){return new Date(e[0],e[1]||0,e[2]==null?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function Rr(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function G(e){return e.length===1&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function zr(e){return!isNaN(e.valueOf())}function Br(e){return e.getUTCHours()*1e3*60*60+e.getUTCMinutes()*1e3*60+e.getUTCSeconds()*1e3+e.getUTCMilliseconds()}function Vr(e,t,n,r){return{instanceId:rr(),defId:e,range:t,forcedStartTzo:n??null,forcedEndTzo:r??null}}var Hr=Object.prototype.hasOwnProperty;function Ur(e,t){var n={};if(t)for(var r in t){for(var i=[],a=e.length-1;a>=0;--a){var o=e[a][r];if(typeof o==`object`&&o)i.unshift(o);else if(o!==void 0){n[r]=o;break}}i.length&&(n[r]=Ur(i))}for(var a=e.length-1;a>=0;--a){var s=e[a];for(var c in s)c in n||(n[c]=s[c])}return n}function Wr(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Gr(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function Kr(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];t[i]=!0}return t}function qr(e){var t=[];for(var n in e)t.push(e[n]);return t}function Jr(e,t){if(e===t)return!0;for(var n in e)if(Hr.call(e,n)&&!(n in t))return!1;for(var n in t)if(Hr.call(t,n)&&e[n]!==t[n])return!1;return!0}function Yr(e,t){var n=[];for(var r in e)Hr.call(e,r)&&(r in t||n.push(r));for(var r in t)Hr.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function Xr(e,t,n){if(n===void 0&&(n={}),e===t)return!0;for(var r in t)if(!(r in e&&Zr(e[r],t[r],n[r])))return!1;for(var r in e)if(!(r in t))return!1;return!0}function Zr(e,t,n){return e===t||n===!0?!0:n?n(e,t):!1}function Qr(e,t,n,r){t===void 0&&(t=0),r===void 0&&(r=1);var i=[];n??=Object.keys(e).length;for(var a=t;a<n;a+=r){var o=e[a];o!==void 0&&i.push(o)}return i}function $r(e,t,n,r){for(var i=0;i<r.length;i+=1){var a=r[i].parse(e,n);if(a){var o=e.allDay;return o??(o=t,o??(o=a.allDayGuess,o??=!1)),{allDay:o,duration:a.duration,typeData:a.typeData,typeId:i}}}return null}
1function ei(e,t,n){var r=n.dateEnv,i=n.pluginHooks,a=n.options,o=e.defs,s=e.instances;for(var c in s=Wr(s,function(e){return!o[e.defId].recurringDef}),o){var l=o[c];if(l.recurringDef){var u=l.recurringDef.duration;u||=l.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration;for(var d=ti(l,u,t,r,i.recurringTypes),f=0,p=d;f<p.length;f++){var m=p[f],h=Vr(c,{start:m,end:r.add(m,u)});s[h.instanceId]=h}}}return{defs:o,instances:s}}function ti(e,t,n,r,i){var a=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(a=a.map(W)),a}var ni=[`years`,`months`,`days`,`milliseconds`],ri=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function K(e,t){var n;return typeof e==`string`?ii(e):typeof e==`object`&&e?ai(e):typeof e==`number`?ai((n={},n[t||`milliseconds`]=e,n)):null}function ii(e){var t=ri.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*((t[3]?parseInt(t[3],10):0)*60*60*1e3+(t[4]?parseInt(t[4],10):0)*60*1e3+(t[5]?parseInt(t[5],10):0)*1e3+(t[6]?parseInt(t[6],10):0))}}return null}function ai(e){var t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:(e.hours||e.hour||0)*60*60*1e3+(e.minutes||e.minute||0)*60*1e3+(e.seconds||e.second||0)*1e3+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=n*7,t.specifiedWeeks=!0),t}function oi(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function si(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function ci(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function li(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function ui(e){return fi(e)/365}function di(e){return fi(e)/30}function fi(e){return pi(e)/864e5}function pi(e){return e.years*31536e6+e.months*2592e6+e.days*864e5+e.milliseconds}function mi(e,t){for(var n=null,r=0;r<ni.length;r+=1){var i=ni[r];if(t[i]){var a=e[i]/t[i];if(!_r(a)||n!==null&&n!==a)return null;n=a}else if(e[i])return null}return n}function hi(e){var t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:`millisecond`,value:t};if(t%6e4!=0)return{unit:`second`,value:t/1e3};if(t%36e5!=0)return{unit:`minute`,value:t/6e4};if(t)return{unit:`hour`,value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:`week`,value:e.days/7}:{unit:`day`,value:e.days}:e.months?{unit:`month`,value:e.months}:e.years?{unit:`year`,value:e.years}:{unit:`millisecond`,value:0}}function gi(e,t,n){n===void 0&&(n=!1);var r=e.toISOString();return r=r.replace(`.000`,``),n&&(r=r.replace(`T00:00:00Z`,``)),r.length>10&&(t==null?r=r.replace(`Z`,``):t!==0&&(r=r.replace(`Z`,yi(t,!0)))),r}function _i(e){return e.toISOString().replace(/T.*$/,``)}function vi(e){return mr(e.getUTCHours(),2)+`:`+mr(e.getUTCMinutes(),2)+`:`+mr(e.getUTCSeconds(),2)}function yi(e,t){t===void 0&&(t=!1);var n=e<0?`-`:`+`,r=Math.abs(e),i=Math.floor(r/60),a=Math.round(r%60);return t?n+mr(i,2)+`:`+mr(a,2):`GMT`+n+i+(a?`:`+mr(a,2):``)}function bi(e,t,n){if(e===t)return!0;var r=e.length,i;if(r!==t.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(e[i],t[i]):e[i]===t[i]))return!1;return!0}function q(e,t,n){var r,i;return function(){var a=[...arguments];if(!r)i=e.apply(this,a);else if(!bi(r,a)){n&&n(i);var o=e.apply(this,a);(!t||!t(o,i))&&(i=o)}return r=a,i}}function xi(e,t,n){var r=this,i,a;return function(o){if(!i)a=e.call(r,o);else if(!Jr(i,o)){n&&n(a);var s=e.call(r,o);(!t||!t(s,a))&&(a=s)}return i=o,a}}var Si={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Ci={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},wi=/\s*([ap])\.?m\.?/i,Ti=/,/g,Ei=/\s+/g,Di=/\u200e/g,Oi=/UTC|GMT/,ki=function(){function e(e){var t={},n={},r=0;for(var i in e)i in Si?(n[i]=e[i],r=Math.max(Si[i],r)):(t[i]=e[i],i in Ci&&(r=Math.max(Ci[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=q(Ai)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n,r){var i=this,a=i.standardDateProps,o=i.extendedSettings,s=Ii(e.marker,t.marker,n.calendarSystem);if(!s)return this.format(e,n);var c=s;c>1&&(a.year===`numeric`||a.year===`2-digit`)&&(a.month===`numeric`||a.month===`2-digit`)&&(a.day===`numeric`||a.day===`2-digit`)&&(c=1);var l=this.format(e,n),u=this.format(t,n);if(l===u)return l;var d=Ai(Li(a,c),o,n),f=d(e),p=d(t),m=Ri(l,f,u,p),h=o.separator||r||n.defaultSeparator||``;return m?m.before+f+h+p+m.after:l+h+u},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 
16:case 5:return`year`;case 4:return`month`;case 3:return`week`;case 2:return`day`;default:return`time`}},e}();function Ai(e,t,n){var r=Object.keys(e).length;return r===1&&e.timeZoneName===`short`?function(e){return yi(e.timeZoneOffset)}:r===0&&t.week?function(e){return Fi(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week)}:ji(e,t,n)}function ji(e,t,n){e=F({},e),t=F({},t),Mi(e,t),e.timeZone=`UTC`;var r=new Intl.DateTimeFormat(n.locale.codes,e),i;if(t.omitZeroMinute){var a=F({},e);delete a.minute,i=new Intl.DateTimeFormat(n.locale.codes,a)}return function(a){var o=a.marker;return Ni((i&&!o.getUTCMinutes()?i:r).format(o),a,e,t,n)}}function Mi(e,t){e.timeZoneName&&(e.hour||=`2-digit`,e.minute||=`2-digit`),e.timeZoneName===`long`&&(e.timeZoneName=`short`),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function Ni(e,t,n,r,i){return e=e.replace(Di,``),n.timeZoneName===`short`&&(e=Pi(e,i.timeZone===`UTC`||t.timeZoneOffset==null?`UTC`:yi(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(Ti,``).trim()),r.omitZeroMinute&&(e=e.replace(`:00`,``)),r.meridiem===!1?e=e.replace(wi,``).trim():r.meridiem===`narrow`?e=e.replace(wi,function(e,t){return t.toLocaleLowerCase()}):r.meridiem===`short`?e=e.replace(wi,function(e,t){return t.toLocaleLowerCase()+`m`}):r.meridiem===`lowercase`&&(e=e.replace(wi,function(e){return e.toLocaleLowerCase()})),e=e.replace(Ei,` `),e=e.trim(),e}function Pi(e,t){var n=!1;return e=e.replace(Oi,function(){return n=!0,t}),n||(e+=` `+t),e}function Fi(e,t,n,r,i){var a=[];return i===`long`?a.push(n):(i===`short`||i===`narrow`)&&a.push(t),(i===`long`||i===`short`)&&a.push(` `),a.push(r.simpleNumberFormat.format(e)),r.options.direction===`rtl`&&a.reverse(),a.join(``)}function Ii(e,t,n){return n.getMarkerYear(e)===n.getMarkerYear(t)?n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerDay(e)===n.getMarkerDay(t)?Br(e)===Br(t)?0:1:2:4:5}function Li(e,t){var n={};for(var r in e)(!(r in Ci)||Ci[r]<=t)&&(n[r]=e[r]);return n}function Ri(e,t,n,r){for(var i=0;i<e.length;){var a=e.indexOf(t,i);if(a===-1)break;var o=e.substr(0,a);i=a+t.length;for(var s=e.substr(i),c=0;c<n.length;){var l=n.indexOf(r,c);if(l===-1)break;var u=n.substr(0,l);c=l+r.length;var d=n.substr(c);if(o===u&&s===d)return{before:o,after:s}}}return null}function zi(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.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 Bi(e,t,n,r){var i=zi(e,n.calendarSystem);return{date:i,start:i,end:t?zi(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var Vi=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,Bi(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,Bi(e,t,n,r))},e}(),Hi=function(){function e(e){this.func=e}return e.prototype.format=function(e,t,n){return this.func(Bi(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return this.func(Bi(e,t,n,r))},e}();function J(e){return typeof e==`object`&&e?new ki(e):typeof e==`string`?new Vi(e):typeof e==`function`?new Hi(e):null}var Ui={navLinkDayClick:Y,navLinkWeekClick:Y,duration:K,bootstrapFontAwesome:Y,buttonIcons:Y,customButtons:Y,defaultAllDayEventDuration:K,defaultTimedEventDuration:K,nextDayThreshold:K,scrollTime:K,scrollTimeReset:Boolean,slotMinTime:K,slotMaxTime:K,dayPopoverFormat:J,slotDuration:K,snapDuration:K,headerToolbar:Y,footerToolbar:Y,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:J,dayHeaderClassNames:Y,dayHeaderContent:Y,dayHeaderDidMount:Y,dayHeaderWillUnmount:Y,dayCellClassNames:Y,dayCellContent:Y,dayCellDidMount:Y,dayCellWillUnmount:Y,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Y,weekNumbers:Boolean,weekNumberClassNames:Y,weekNumberContent:Y,weekNumberDidMount:Y,weekNumberWillUnmount:Y,editable:Boolean,viewClassNames:Y,viewDidMount:Y,viewWillUnmount:Y,nowIndicator:Boolean,nowIndicatorClassNames:Y,nowIndicatorContent:Y,nowIndicatorDidMount:Y,nowIndicatorWillUnmount:Y,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Y,locale:Y,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Y,eventOrder:ur,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Y,contentHeight:Y,direction:String,weekNumberFormat:J,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:Y,initialDate:Y,now:Y,eventDataTransform:Y,stickyHeaderDates:Y,stickyFooterScrollbar:Y,viewHeight:Y,defaultAllDay:Boolean,eventSourceFailure:Y,eventSourceSuccess:Y,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Y,eventConstraint:Y,eventAllow:Y,eventBackgroun
1dColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Y,eventContent:Y,eventDidMount:Y,eventWillUnmount:Y,selectConstraint:Y,selectOverlap:Y,selectAllow:Y,droppable:Boolean,unselectCancel:String,slotLabelFormat:Y,slotLaneClassNames:Y,slotLaneContent:Y,slotLaneDidMount:Y,slotLaneWillUnmount:Y,slotLabelClassNames:Y,slotLabelContent:Y,slotLabelDidMount:Y,slotLabelWillUnmount:Y,dayMaxEvents:Y,dayMaxEventRows:Y,dayMinWidth:Number,slotLabelInterval:K,allDayText:String,allDayClassNames:Y,allDayContent:Y,allDayDidMount:Y,allDayWillUnmount:Y,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:J,rerenderDelay:Number,moreLinkText:Y,moreLinkHint:Y,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Y,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:K,hiddenDays:Y,monthMode:Boolean,fixedWeekCount:Boolean,validRange:Y,visibleRange:Y,titleFormat:Y,eventInteractive:Boolean,noEventsText:String,viewHint:Y,navLinkHint:Y,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:Y,moreLinkClassNames:Y,moreLinkContent:Y,moreLinkDidMount:Y,moreLinkWillUnmount:Y},Wi={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},Gi={datesSet:Y,eventsSet:Y,eventAdd:Y,eventChange:Y,eventRemove:Y,windowResize:Y,eventClick:Y,eventMouseEnter:Y,eventMouseLeave:Y,select:Y,unselect:Y,loading:Y,_unmount:Y,_beforeprint:Y,_afterprint:Y,_noEventDrop:Y,_noEventResize:Y,_resize:Y,_scrollRequest:Y},Ki={buttonText:Y,buttonHints:Y,views:Y,plugins:Y,initialEvents:Y,events:Y,eventSources:Y},qi={headerToolbar:Ji,footerToolbar:Ji,buttonText:Ji,buttonHints:Ji,buttonIcons:Ji};function Ji(e,t){return typeof e==`object`&&typeof t==`object`&&e&&t?Jr(e,t):e===t}var Yi={type:String,component:Y,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Y,usesMinMaxTime:Boolean,classNames:Y,content:Y,didMount:Y,willUnmount:Y};function Xi(e){return Ur(e,qi)}function Zi(e,t){var n={},r={};for(var i in t)i in e&&(n[i]=t[i](e[i]));for(var i in e)i in t||(r[i]=e[i]);return{refined:n,extra:r}}function Y(e){return e}function Qi(e,t,n,r){for(var i=X(),a=_a(n),o=0,s=e;o<s.length;o++){var c=s[o],l=ha(c,t,n,r,a);l&&$i(l,i)}return i}function $i(e,t){return t===void 0&&(t=X()),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function ea(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],i=ra(e,function(e){return ta(r,e)});return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return X()}function ta(e,t){return!!(e.groupId&&e.groupId===t.groupId)}function X(){return{defs:{},instances:{}}}function na(e,t){return{defs:F(F({},e.defs),t.defs),instances:F(F({},e.instances),t.instances)}}function ra(e,t){var n=Wr(e.defs,t);return{defs:n,instances:Wr(e.instances,function(e){return n[e.defId]})}}function ia(e,t){var n=e.defs,r=e.instances,i={},a={};for(var o in n)t.defs[o]||(i[o]=n[o]);for(var s in r)!t.instances[s]&&i[r[s].defId]&&(a[s]=r[s]);return{defs:i,instances:a}}function aa(e,t){return Array.isArray(e)?Qi(e,null,t,!0):typeof e==`object`&&e?Qi([e],null,t,!0):e==null?null:String(e)}function oa(e){return Array.isArray(e)?e:typeof e==`string`?e.split(/\s+/):[]}
1var sa={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Y,overlap:Y,allow:Y,className:oa,classNames:oa,color:String,backgroundColor:String,borderColor:String,textColor:String},ca={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:``,borderColor:``,textColor:``,classNames:[]};function la(e,t){var n=aa(e.constraint,t);return{display:e.display||null,startEditable:e.startEditable==null?e.editable:e.startEditable,durationEditable:e.durationEditable==null?e.editable:e.durationEditable,constraints:n==null?[]:[n],overlap:e.overlap==null?null:e.overlap,allows:e.allow==null?[]:[e.allow],backgroundColor:e.backgroundColor||e.color||``,borderColor:e.borderColor||e.color||``,textColor:e.textColor||``,classNames:(e.className||[]).concat(e.classNames||[])}}function ua(e){return e.reduce(da,ca)}function da(e,t){return{display:t.display==null?e.display:t.display,startEditable:t.startEditable==null?e.startEditable:t.startEditable,durationEditable:t.durationEditable==null?e.durationEditable:t.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:typeof t.overlap==`boolean`?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var fa={id:String,groupId:String,title:String,url:String,interactive:Boolean},pa={start:Y,end:Y,date:Y,allDay:Boolean},ma=F(F(F({},fa),pa),{extendedProps:Y});function ha(e,t,n,r,i){i===void 0&&(i=_a(n));var a=ga(e,n,i),o=a.refined,s=a.extra,c=ba(t,n),l=$r(o,c,n.dateEnv,n.pluginHooks.recurringTypes);if(l){var u=va(o,s,t?t.sourceId:``,l.allDay,!!l.duration,n);return u.recurringDef={typeId:l.typeId,typeData:l.typeData,duration:l.duration},{def:u,instance:null}}var d=ya(o,c,n,r);if(d){var u=va(o,s,t?t.sourceId:``,d.allDay,d.hasEnd,n);return{def:u,instance:Vr(u.defId,d.range,d.forcedStartTzo,d.forcedEndTzo)}}return null}function ga(e,t,n){return n===void 0&&(n=_a(t)),Zi(e,n)}function _a(e){return F(F(F({},sa),ma),e.pluginHooks.eventRefiners)}function va(e,t,n,r,i,a){for(var o={title:e.title||``,groupId:e.groupId||``,publicId:e.id||``,url:e.url||``,recurringDef:null,defId:rr(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:la(e,a),extendedProps:F(F({},e.extendedProps||{}),t)},s=0,c=a.pluginHooks.eventDefMemberAdders;s<c.length;s++){var l=c[s];F(o,l(e))}return Object.freeze(o.ui.classNames),Object.freeze(o.extendedProps),o}function ya(e,t,n,r){var i=e.allDay,a,o=null,s=!1,c,l=null,u=e.start==null?e.date:e.start;if(a=n.dateEnv.createMarkerMeta(u),a)o=a.marker;else if(!r)return null;return e.end!=null&&(c=n.dateEnv.createMarkerMeta(e.end)),i??=t??((!a||a.isTimeUnspecified)&&(!c||c.isTimeUnspecified)),i&&o&&(o=W(o)),c&&(l=c.marker,i&&(l=W(l)),o&&l<=o&&(l=null)),l?s=!0:r||(s=n.options.forceEventDuration||!1,l=n.dateEnv.add(o,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:s,range:{start:o,end:l},forcedStartTzo:a?a.forcedTzo:null,forcedEndTzo:c?c.forcedTzo:null}}function ba(e,t){var n=null;return e&&(n=e.defaultAllDay),n??=t.options.defaultAllDay,n}function xa(e){var t=Math.floor(Cr(e.start,e.end))||1,n=W(e.start);return{start:n,end:U(n,t)}}function Sa(e,t){t===void 0&&(t=K(0));var n=null,r=null;if(e.end){r=W(e.end);var i=e.end.valueOf()-r.valueOf();i&&i>=pi(t)&&(r=U(r,1))}return e.start&&(n=W(e.start),r&&r<=n&&(r=U(n,1))),{start:n,end:r}}function Ca(e){var t=Sa(e);return Cr(t.start,t.end)>1}function wa(e,t,n,r){return r===`year`?K(n.diffWholeYears(e,t),`year`):r===`month`?K(n.diffWholeMonths(e,t),`month`):Dr(e,t)}function Ta(e,t){var n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function Ea(e,t){var n=[],r=t.start,i,a;for(e.sort(Da),i=0;i<e.length;i+=1)a=e[i],a.start>r&&n.push({start:r,end:a.start}),a.end>r&&(r=a.end);return r<t.end&&n.push({start:r,end:t.end}),n}function Da(e,t){return e.start.valueOf()-t.start.valueOf()}function Oa(e,t){var n=e.start,r=e.end,i=null;return t.start!==null&&(n=n===null?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),t.end!=null&&(r=r===null?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function ka(e,t){return(e.start===null?null:e.start.valueOf())===(t.start===null?null:t.start.valueOf())&&(e.end===null?null:e.end.valueOf())===(t.end===null?null:t.end.valueOf())}function Aa(e,t){return(e.end===null||t.start===null||e.end>t.start)&&(e.start===null||t.end===null||e.start<t.end)}function ja(e,t){return(e.start===null||t.start!==null&&t.start>=e.start)&&(e.end===null||t.end!==null&&t.end<=e.end)}function Ma(e,t){return(e.start===null||t>=e.start)&&(e.end===null||t<e.end)}function Na(e,t){return t.start!=null&&e<t.start?t.start:t.end!=null&&e>=t.end?new Date(t.end.valueOf()-1):e}function Pa(e,t,n,r){var i={},a={},o={},s=[],c=[],l=Ra(e.defs,t);for(var u in e.defs){var d=e.defs[u],f=l[d.defId];f.display===`inverse-background`&&(d.groupId?(i[d.groupId]=[],o[d.groupId]||(o[d.groupId]=d)):a[u]=[])}
1for(var p in e.instances){var m=e.instances[p],d=e.defs[m.defId],f=l[d.defId],h=m.range,g=!d.allDay&&r?Sa(h,r):h,_=Oa(g,n);_&&(f.display===`inverse-background`?d.groupId?i[d.groupId].push(_):a[m.defId].push(_):f.display!==`none`&&(f.display===`background`?s:c).push({def:d,ui:f,instance:m,range:_,isStart:g.start&&g.start.valueOf()===_.start.valueOf(),isEnd:g.end&&g.end.valueOf()===_.end.valueOf()}))}for(var v in i)for(var y=i[v],b=Ea(y,n),x=0,S=b;x<S.length;x++){var C=S[x],d=o[v],f=l[d.defId];s.push({def:d,ui:f,instance:null,range:C,isStart:!1,isEnd:!1})}for(var u in a)for(var y=a[u],b=Ea(y,n),w=0,T=b;w<T.length;w++){var C=T[w];s.push({def:e.defs[u],ui:l[u],instance:null,range:C,isStart:!1,isEnd:!1})}return{bg:s,fg:c}}function Fa(e){return e.ui.display===`background`||e.ui.display===`inverse-background`}function Ia(e,t){e.fcSeg=t}function La(e){return e.fcSeg||e.parentNode.fcSeg||null}function Ra(e,t){return Gr(e,function(e){return za(e,t)})}function za(e,t){var n=[];return t[``]&&n.push(t[``]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),ua(n)}function Ba(e,t){var n=e.map(Va);return n.sort(function(e,n){return dr(e,n,t)}),n.map(function(e){return e._seg})}function Va(e){var t=e.eventRange,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,a=r.end?r.end.valueOf():0;return F(F(F({},n.extendedProps),n),{id:n.publicId,start:i,end:a,duration:a-i,allDay:Number(n.allDay),_seg:e})}function Ha(e,t){for(var n=t.pluginHooks.isDraggableTransformers,r=e.eventRange,i=r.def,a=r.ui,o=a.startEditable,s=0,c=n;s<c.length;s++){var l=c[s];o=l(o,i,a,t)}return o}function Ua(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Wa(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Ga(e,t,n,r,i,a,o){var s=n.dateEnv,c=n.options,l=c.displayEventTime,u=c.displayEventEnd,d=e.eventRange.def,f=e.eventRange.instance;l??=r!==!1,u??=i!==!1;var p=f.range.start,m=f.range.end,h=a||e.start||e.eventRange.range.start,g=o||e.end||e.eventRange.range.end,_=W(p).valueOf()===W(h).valueOf(),v=W(xr(m,-1)).valueOf()===W(xr(g,-1)).valueOf();return l&&!d.allDay&&(_||v)?(h=_?p:h,g=v?m:g,u&&d.hasEnd?s.formatRange(h,g,t,{forcedStartTzo:a?null:f.forcedStartTzo,forcedEndTzo:o?null:f.forcedEndTzo}):s.format(h,t,{forcedTzo:a?null:f.forcedStartTzo})):``}function Ka(e,t,n){var r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Ma(t,r.start)}}function qa(e){var t=[`fc-event`];return e.isMirror&&t.push(`fc-event-mirror`),e.isDraggable&&t.push(`fc-event-draggable`),(e.isStartResizable||e.isEndResizable)&&t.push(`fc-event-resizable`),e.isDragging&&t.push(`fc-event-dragging`),e.isResizing&&t.push(`fc-event-resizing`),e.isSelected&&t.push(`fc-event-selected`),e.isStart&&t.push(`fc-event-start`),e.isEnd&&t.push(`fc-event-end`),e.isPast&&t.push(`fc-event-past`),e.isToday&&t.push(`fc-event-today`),e.isFuture&&t.push(`fc-event-future`),t}function Ja(e){return e.instance?e.instance.instanceId:e.def.defId+`:`+e.range.start.toISOString()}function Ya(e,t){var n=e.eventRange,r=n.def,i=n.instance,a=r.url;if(a)return{href:a};var o=t.emitter,s=t.options.eventInteractive;return s??(s=r.interactive,s??=!!o.hasHandlers(`eventClick`)),s?tr(function(e){o.trigger(`eventClick`,{el:e.target,event:new Z(t,r,i),jsEvent:e,view:t.viewApi})}):{}}var Xa={start:Y,end:Y,allDay:Boolean};function Za(e,t,n){var r=Qa(e,t),i=r.range;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=t.add(i.start,n)}return r}function Qa(e,t){var n=Zi(e,Xa),r=n.refined,i=n.extra,a=r.start?t.createMarkerMeta(r.start):null,o=r.end?t.createMarkerMeta(r.end):null,s=r.allDay;return s??=a&&a.isTimeUnspecified&&(!o||o.isTimeUnspecified),F({range:{start:a?a.marker:null,end:o?o.marker:null},allDay:s},i)}function $a(e,t){return ka(e.range,t.range)&&e.allDay===t.allDay&&eo(e,t)}function eo(e,t){for(var n in t)if(n!==`range`&&n!==`allDay`&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}function to(e,t){return F(F({},ro(e.range,t,e.allDay)),{allDay:e.allDay})}function no(e,t,n){return F(F({},ro(e,t,n)),{timeZone:t.timeZone})}function ro(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function io(e,t,n){var r=ga({editable:!1},n),i=va(r.refined,r.extra,``,e.allDay,!0,n);return{def:i,ui:za(i,t),instance:Vr(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}
1function ao(e,t,n){n.emitter.trigger(`select`,F(F({},so(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function oo(e,t){t.emitter.trigger(`unselect`,{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function so(e,t){for(var n={},r=0,i=t.pluginHooks.dateSpanTransforms;r<i.length;r++){var a=i[r];F(n,a(e,t))}return F(n,to(e,t.dateEnv)),n}function co(e,t,n){var r=n.dateEnv,i=n.options,a=t;return e?(a=W(a),a=r.add(a,i.defaultAllDayEventDuration)):a=r.add(a,i.defaultTimedEventDuration),a}function lo(e,t,n,r){var i=Ra(e.defs,t),a=X();for(var o in e.defs){var s=e.defs[o];a.defs[o]=uo(s,i[o],n,r)}for(var c in e.instances){var l=e.instances[c],s=a.defs[l.defId];a.instances[c]=fo(l,s,i[l.defId],n,r)}return a}function uo(e,t,n,r){var i=n.standardProps||{};i.hasEnd==null&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);var a=F(F(F({},e),i),{ui:F(F({},e.ui),i.ui)});n.extendedProps&&(a.extendedProps=F(F({},a.extendedProps),n.extendedProps));for(var o=0,s=r.pluginHooks.eventDefMutationAppliers;o<s.length;o++){var c=s[o];c(a,n,r)}return!a.hasEnd&&r.options.forceEventDuration&&(a.hasEnd=!0),a}function fo(e,t,n,r,i){var a=i.dateEnv,o=r.standardProps&&r.standardProps.allDay===!0,s=r.standardProps&&r.standardProps.hasEnd===!1,c=F({},e);return o&&(c.range=xa(c.range)),r.datesDelta&&n.startEditable&&(c.range={start:a.add(c.range.start,r.datesDelta),end:a.add(c.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(c.range={start:a.add(c.range.start,r.startDelta),end:c.range.end}),r.endDelta&&n.durationEditable&&(c.range={start:c.range.start,end:a.add(c.range.end,r.endDelta)}),s&&(c.range={start:c.range.start,end:co(t.allDay,c.range.start,i)}),t.allDay&&(c.range={start:W(c.range.start),end:W(c.range.end)}),c.range.end<c.range.start&&(c.range.end=co(t.allDay,c.range.start,i)),c}var po=function(){function e(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),e.prototype.getOption=function(e){return this.getCurrentData().options[e]},e}(),mo={id:String,defaultAllDay:Boolean,url:String,format:String,events:Y,eventDataTransform:Y,success:Y,failure:Y};function ho(e,t,n){n===void 0&&(n=go(t));var r;if(typeof e==`string`?r={url:e}:typeof e==`function`||Array.isArray(e)?r={events:e}:typeof e==`object`&&e&&(r=e),r){var i=Zi(r,n),a=i.refined,o=i.extra,s=_o(a,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:``,fetchRange:null,defaultAllDay:a.defaultAllDay,eventDataTransform:a.eventDataTransform,success:a.success,failure:a.failure,publicId:a.id||``,sourceId:rr(),sourceDefId:s.sourceDefId,meta:s.meta,ui:la(a,t),extendedProps:o}}return null}function go(e){return F(F(F({},sa),mo),e.pluginHooks.eventSourceRefiners)}function _o(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;--r){var i=n[r].parseMeta(e);if(i)return{sourceDefId:r,meta:i}}return null}function vo(e,t){switch(t.type){case`CHANGE_DATE`:return t.dateMarker;default:return e}}function yo(e,t){var n=e.initialDate;return n==null?bo(e.now,t):t.createMarker(n)}function bo(e,t){return typeof e==`function`&&(e=e()),e==null?t.createNowMarker():t.createMarker(e)}var xo=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi}
1,enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger(`_resize`,!0)},e.prototype.setOption=function(e,t){this.dispatch({type:`SET_OPTION`,optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '`+e+`'`)},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.currentDataManager.emitter).trigger.apply(t,I([e],n))},e.prototype.changeView=function(e,t){var n=this;this.batchRendering(function(){if(n.unselect(),t){if(t.start&&t.end)n.dispatch({type:`CHANGE_VIEW_TYPE`,viewType:e}),n.dispatch({type:`SET_OPTION`,optionName:`visibleRange`,rawOptionValue:t});else{var r=n.getCurrentData().dateEnv;n.dispatch({type:`CHANGE_VIEW_TYPE`,viewType:e,dateMarker:r.createMarker(t)})}}else n.dispatch({type:`CHANGE_VIEW_TYPE`,viewType:e})})},e.prototype.zoomTo=function(e,t){var n=this.getCurrentData(),r;t||=`day`,r=n.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),r?this.dispatch({type:`CHANGE_VIEW_TYPE`,viewType:r.type,dateMarker:e}):this.dispatch({type:`CHANGE_DATE`,dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t=this.getCurrentData(),n=t.viewSpecs,r=t.toolbarConfig,i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),a,o;for(var s in n)i.push(s);for(a=0;a<i.length;a+=1)if(o=n[i[a]],o&&o.singleUnit===e)return o;return null},e.prototype.prev=function(){this.unselect(),this.dispatch({type:`PREV`})},e.prototype.next=function(){this.unselect(),this.dispatch({type:`NEXT`})},e.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},e.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:e.dateEnv.addYears(e.currentDate,1)})},e.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:bo(e.calendarOptions.now,e.dateEnv)})},e.prototype.gotoDate=function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:t.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=this.getCurrentData(),n=K(e);n&&(this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:t.dateEnv.add(t.currentDate,n)}))},e.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},e.prototype.formatDate=function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),J(t))},e.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),J(n),n)},e.prototype.formatIso=function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.select=function(e,t){var n=t==null?e.start==null?{start:e,end:null}:e:{start:e,end:t},r=this.getCurrentData(),i=Za(n,r.dateEnv,K({days:1}));i&&(this.dispatch({type:`SELECT_DATES`,selection:i}),ao(i,null,r))},e.prototype.unselect=function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:`UNSELECT_DATES`}),oo(e,t))},e.prototype.addEvent=function(e,t){if(e instanceof Z){var n=e._def,r=e._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:`ADD_EVENTS`,eventStore:$i({def:n,instance:r})}),this.triggerEventAdd(e)),e}var i=this.getCurrentData(),a;if(t instanceof Ln)a=t.internalEventSource;else if(typeof t==`boolean`)t&&(a=qr(i.eventSources)[0]);else if(t!=null){var o=this.getEventSourceById(t);if(!o)return console.warn(`Could not find an event source with ID "`+t+`"`),null;a=o.internalEventSource}var s=ha(e,a,i,!1);if(s){var c=new Z(i,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:`ADD_EVENTS`,eventStore:$i(s)}),this.triggerEventAdd(c),c}return null},e.prototype.triggerEventAdd=function(e){var t=this;this.getCurrentData().emitter.trigger(`eventAdd`,{event:e,relatedEvents:[],revert:function(){t.dispatch({type:`REMOVE_
1EVENTS`,eventStore:So(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,i=n.instances;for(var a in e=String(e),r){var o=r[a];if(o.publicId===e){if(o.recurringDef)return new Z(t,o,null);for(var s in i){var c=i[s];if(c.defId===o.defId)return new Z(t,o,c)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return Co(e.eventStore,e)},e.prototype.removeAllEvents=function(){this.dispatch({type:`REMOVE_ALL_EVENTS`})},e.prototype.getEventSources=function(){var e=this.getCurrentData(),t=e.eventSources,n=[];for(var r in t)n.push(new Ln(e,t[r]));return n},e.prototype.getEventSourceById=function(e){var t=this.getCurrentData(),n=t.eventSources;for(var r in e=String(e),n)if(n[r].publicId===e)return new Ln(t,n[r]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof Ln)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:`ADD_EVENT_SOURCES`,sources:[e.internalEventSource]}),e;var n=ho(e,t);return n?(this.dispatch({type:`ADD_EVENT_SOURCES`,sources:[n]}),new Ln(t,n)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:`REMOVE_ALL_EVENT_SOURCES`})},e.prototype.refetchEvents=function(){this.dispatch({type:`FETCH_EVENT_SOURCES`,isRefetch:!0})},e.prototype.scrollToTime=function(e){var t=K(e);t&&this.trigger(`_scrollRequest`,{time:t})},e}(),Z=function(){function e(e,t,n){this._context=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in pa)console.warn(`Could not set date-related prop 'name'. Use one of the date-related methods instead.`);else if(e===`id`)t=fa[e](t),this.mutate({standardProps:{publicId:t}});else if(e in fa)t=fa[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in sa){var i=sa[e](t);i=e===`color`?{backgroundColor:t,borderColor:t}:e===`editable`?{startEditable:t,durationEditable:t}:(r={},r[e]=t,r),this.mutate({standardProps:{ui:i}})}else console.warn(`Could not set prop '`+e+`'. Use setExtendedProp instead.`)},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){t===void 0&&(t={});var n=this._context.dateEnv,r=n.createMarker(e);if(r&&this._instance){var i=this._instance.range,a=wa(i.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:a}):this.mutate({startDelta:a})}},e.prototype.setEnd=function(e,t){t===void 0&&(t={});var n=this._context.dateEnv,r;if(!(e!=null&&(r=n.createMarker(e),!r))&&this._instance){if(r){var i=wa(this._instance.range.end,r,n,t.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})}},e.prototype.setDates=function(e,t,n){n===void 0&&(n={});var r=this._context.dateEnv,i={allDay:n.allDay},a=r.createMarker(e),o;if(a&&!(t!=null&&(o=r.createMarker(t),!o))&&this._instance){var s=this._instance.range;n.allDay===!0&&(s=xa(s));var c=wa(s.start,a,r,n.granularity);if(o){var l=wa(s.end,o,r,n.granularity);oi(c,l)?this.mutate({datesDelta:c,standardProps:i}):this.mutate({startDelta:c,endDelta:l,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:c,standardProps:i})}},e.prototype.moveStart=function(e){var t=K(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=K(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=K(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){t===void 0&&(t={});var n={allDay:e},r=t.maintainDuration;r??=this._context.options.allDayMaintainDuration,this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._context.dateEnv,n=this._instance,r=J(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},e.prototype.mutate=function(t){var n=this._instance;if(n){var r=this._def,i=this._context,a=i.getCurrentData().eventStore,o=ea(a,n.instanceId);o=lo(o,{"":{display:``,startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:``,borderColor:``,textColor:``,classNames:[]}},t,i);var s=new e(i,r,n);this._def=o.defs[r.defId],this._instance=o.instances[n.instanceId],i.dispatch({type:`MERGE_EVENTS`,eventStore:o}),i.emitter.trigger(`eventChange`,{oldEvent:s,event:this,relatedEvents:Co(o,i,n),revert:function(){i.dispatch({type:`RESET_EVENTS`,eventStore:a})}})}},e.prototype.remove=function(){var e=this._context,t=So(this);
1e.dispatch({type:`REMOVE_EVENTS`,eventStore:t}),e.emitter.trigger(`eventRemove`,{event:this,relatedEvents:[],revert:function(){e.dispatch({type:`MERGE_EVENTS`,eventStore:t})}})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new Ln(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):``},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):``},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this._def.ui.display||`auto`},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){e===void 0&&(e={});var t=this._def,n=t.ui,r=this,i=r.startStr,a=r.endStr,o={};return t.title&&(o.title=t.title),i&&(o.start=i),a&&(o.end=a),t.publicId&&(o.id=t.publicId),t.groupId&&(o.groupId=t.groupId),t.url&&(o.url=t.url),n.display&&n.display!==`auto`&&(o.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?o.color=n.backgroundColor:(n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.borderColor&&(o.borderColor=n.borderColor)),n.textColor&&(o.textColor=n.textColor),n.classNames.length&&(o.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?F(o,t.extendedProps):o.extendedProps=t.extendedProps),o},e.prototype.toJSON=function(){return this.toPlainObject()},e}();function So(e){var t,n,r=e._def,i=e._instance;return{defs:(t={},t[r.defId]=r,t),instances:i?(n={},n[i.instanceId]=i,n):{}}}function Co(e,t,n){var r=e.defs,i=e.instances,a=[],o=n?n.instanceId:``;for(var s in i){var c=i[s],l=r[c.defId];c.instanceId!==o&&a.push(new Z(t,l,c))}return a}var wo={};function To(e,t){wo[e]=t}function Eo(e){return new wo[e]}To(`gregory`,function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return G(e)},e.prototype.markerToArray=function(e){return Rr(e)},e}());var Do=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Oo(e){var t=Do.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?Number(`0.`+t[12])*1e3:0));if(zr(n)){var r=null;return t[13]&&(r=(t[15]===`-`?-1:1)*(Number(t[16]||0)*60+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}var ko=function(){function e(e){var t=this.timeZone=e.timeZone,n=t!==`local`&&t!==`UTC`;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=!!(!n||this.namedTimeZoneImpl),this.calendarSystem=Eo(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.locale.options.weekText:e.weekText,this.weekTextLong=(e.weekTextLong==null?e.locale.options.weekTextLong:e.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return t===null?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):G(Ir(new Date))},e.prototype.createMarkerMeta=function(e){if(typeof e==`string`)return this.parse(e);var t=null;return typeof e==`number`?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=G(e)),t===null||!zr(t)?null:{marker:t,isTimeUnspecified:!1,forcedTzo:null}},e.prototype.parse=function(e){var t=Oo(e);if(t===null)return null;var n=t.marker,r=null;return t.timeZoneOffset!==null&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-t.timeZoneOffset*60*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return Br(e)===Br(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return Br(e)===Br(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+(n.getMarkerYear(t)-n.getMarkerYear(e))*12:null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return n===null?(n=this.diffWholeMonths(e,t),n===null?(n=Or(e,t),n===null?(n=kr(e,t),n===null?(n=wr(e,t),_r(n)?{unit:`hour`,value:n}:(n=Tr(e,t),_r(n)?{unit:`minute`,value:n}:(n=Er(e,t),_r(n)?{unit:`second`,value:n}:{unit:`millisecond`,value:t.valueOf()-e.valueOf()}))):{unit:`day`,value:n}):{unit:`week`,value:n}):{unit:`month`,value:n}):{unit:`year`,value:n}},e.prototype.countDurationsBetween=function(e,t,n){var r;
1return n.years&&(r=this.diffWholeYears(e,t),r!==null)?r/ui(n):n.months&&(r=this.diffWholeMonths(e,t),r!==null)?r/di(n):n.days&&(r=kr(e,t),r!==null)?r/fi(n):(t.valueOf()-e.valueOf())/pi(n)},e.prototype.startOf=function(e,t){return t===`year`?this.startOfYear(e):t===`month`?this.startOfMonth(e):t===`week`?this.startOfWeek(e):t===`day`?W(e):t===`hour`?Ar(e):t===`minute`?jr(e):t===`second`?Mr(e):null},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):Nr(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return n===void 0&&(n={}),t.format({marker:e,timeZoneOffset:n.forcedTzo==null?this.offsetForMarker(e):n.forcedTzo},this)},e.prototype.formatRange=function(e,t,n,r){return r===void 0&&(r={}),r.isEndExclusive&&(t=xr(t,-1)),n.formatRange({marker:e,timeZoneOffset:r.forcedStartTzo==null?this.offsetForMarker(e):r.forcedStartTzo},{marker:t,timeZoneOffset:r.forcedEndTzo==null?this.offsetForMarker(t):r.forcedEndTzo},this,r.defaultSeparator)},e.prototype.formatIso=function(e,t){t===void 0&&(t={});var n=null;return t.omitTimeZoneOffset||(n=t.forcedTzo==null?this.offsetForMarker(e):t.forcedTzo),gi(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return this.timeZone===`local`?G(Ir(new Date(e))):this.timeZone===`UTC`||!this.namedTimeZoneImpl?new Date(e):G(this.namedTimeZoneImpl.timestampToArray(e))},e.prototype.offsetForMarker=function(e){return this.timeZone===`local`?-Lr(Rr(e)).getTimezoneOffset():this.timeZone===`UTC`?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Rr(e)):null},e.prototype.toDate=function(e,t){return this.timeZone===`local`?Lr(Rr(e)):this.timeZone===`UTC`?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(Rr(e))*1e3*60):new Date(e.valueOf()-(t||0))},e}(),Ao=[],jo={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`},Mo=F(F({},jo),{buttonHints:{prev:`Previous $0`,next:`Next $0`,today:function(e,t){return t===`day`?`Today`:`This `+e}},viewHint:`$0 view`,navLinkHint:`Go to $0`,moreLinkHint:function(e){return`Show `+e+` more event`+(e===1?``:`s`)}});function No(e){for(var t=e.length>0?e[0].code:`en`,n=Ao.concat(e),r={en:Mo},i=0,a=n;i<a.length;i++){var o=a[i];r[o.code]=o}return{map:r,defaultCode:t}}function Po(e,t){return typeof e==`object`&&!Array.isArray(e)?Lo(e.code,[e.code],e):Fo(e,t)}function Fo(e,t){var n=[].concat(e||[]);return Lo(e,n,Io(n,t)||Mo)}function Io(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split(`-`),i=r.length;i>0;--i){var a=r.slice(0,i).join(`-`);if(t[a])return t[a]}return null}function Lo(e,t,n){var r=Ur([jo,n],[`buttonText`]);delete r.code;var i=r.week;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var Ro={startTime:`09:00`,endTime:`17:00`,daysOfWeek:[1,2,3,4,5],display:`inverse-background`,classNames:`fc-non-business`,groupId:`_businessHours`};function zo(e,t){return Qi(Bo(e),null,t)}function Bo(e){var t=e===!0?[{}]:Array.isArray(e)?e.filter(function(e){return e.daysOfWeek}):typeof e==`object`&&e?[e]:[];return t=t.map(function(e){return F(F({},Ro),e)}),t}function Vo(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function Ho(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function Uo(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function Wo(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function Go(e,t){return{left:e.left-t.left,top:e.top-t.top}}var Ko;function qo(){return Ko??=Jo(),Ko}function Jo(){if(typeof document>`u`)return!0;var e=document.createElement(`div`);e.style.position=`absolute`,e.style.top=`0px`,e.style.left=`0px`,e.innerHTML=`<table><tr><td><div></div></td></tr></table>`,e.querySelector(`table`).style.height=`100px`,e.querySelector(`div`).style.height=`100%`,document.body.appendChild(e);var t=e.querySelector(`div`).offsetHeight>0;return document.body.removeChild(e),t}
1var Yo=X(),Xo=function(){function e(){this.getKeysForEventDefs=q(this._getKeysForEventDefs),this.splitDateSelection=q(this._splitDateSpan),this.splitEventStore=q(this._splitEventStore),this.splitIndividualUi=q(this._splitIndividualUi),this.splitEventDrag=q(this._splitInteraction),this.splitEventResize=q(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),a=this.splitIndividualUi(e.eventUiBases,r),o=this.splitEventStore(e.eventStore,r),s=this.splitEventDrag(e.eventDrag),c=this.splitEventResize(e.eventResize),l={};for(var u in this.eventUiBuilders=Gr(n,function(e,n){return t.eventUiBuilders[n]||q(Zo)}),n){var d=n[u],f=o[u]||Yo,p=this.eventUiBuilders[u];l[u]={businessHours:d.businessHours||e.businessHours,dateSelection:i[u]||null,eventStore:f,eventUiBases:p(e.eventUiBases[``],d.ui,a[u]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:``,eventDrag:s[u]||null,eventResize:c[u]||null}}return l},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=this.getKeysForDateSpan(e),r=0,i=n;r<i.length;r++){var a=i[r];t[a]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return Gr(e.defs,function(e){return t.getKeysForEventDef(e)})},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,i={};for(var a in n)for(var o=0,s=t[a];o<s.length;o++){var c=s[o];i[c]||(i[c]=X()),i[c].defs[a]=n[a]}for(var l in r)for(var u=r[l],d=0,f=t[u.defId];d<f.length;d++){var c=f[d];i[c]&&(i[c].instances[l]=u)}return i},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var i=0,a=t[r];i<a.length;i++){var o=a[i];n[o]||(n[o]={}),n[o][r]=e[r]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),a=function(r){t[r]||(t[r]={affectedEvents:n[r]||Yo,mutatedEvents:i[r]||Yo,isEvent:e.isEvent})};for(var o in n)a(o);for(var o in i)a(o)}return t},e}();function Zo(e,t,n){var r=[];e&&r.push(e),t&&r.push(t);var i={"":ua(r)};return n&&F(i,n),i}function Qo(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:!!(r&&!Ma(r.activeRange,e)),isOther:!!(r&&!Ma(r.currentRange,e)),isToday:!!(t&&Ma(t,e)),isPast:!!(n?e<n:t&&e<t.start),isFuture:!!(n?e>n:t&&e>=t.end)}}function $o(e,t){var n=[`fc-day`,`fc-day-`+yr[e.dow]];return e.isDisabled?n.push(`fc-day-disabled`):(e.isToday&&(n.push(`fc-day-today`),n.push(t.getClass(`today`))),e.isPast&&n.push(`fc-day-past`),e.isFuture&&n.push(`fc-day-future`),e.isOther&&n.push(`fc-day-other`)),n}var es=J({year:`numeric`,month:`long`,day:`numeric`}),ts=J({week:`long`});function ns(e,t,n,r){n===void 0&&(n=`day`),r===void 0&&(r=!0);var i=e.dateEnv,a=e.options,o=e.calendarApi,s=i.format(t,n===`week`?ts:es);if(a.navLinks){var c=i.toDate(t),l=function(e){var r=n===`day`?a.navLinkDayClick:n===`week`?a.navLinkWeekClick:null;typeof r==`function`?r.call(o,i.toDate(t),e):(typeof r==`string`&&(n=r),o.zoomTo(t,n))};return F({title:hr(a.navLinkHint,[s,c],s),"data-navlink":``},r?er(l):{onClick:l})}return{"aria-label":s}}var rs=null;function is(){return rs===null&&(rs=as()),rs}function as(){var e=document.createElement(`div`);Hn(e,{position:`absolute`,top:-1e3,left:0,border:0,padding:0,overflow:`scroll`,direction:`rtl`}),e.innerHTML=`<div></div>`,document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return Rn(e),t}var os;function ss(){return os||=cs(),os}function cs(){var e=document.createElement(`div`);e.style.overflow=`scroll`,e.style.position=`absolute`,e.style.top=`-9999px`,e.style.left=`-9999px`,document.body.appendChild(e);var t=ls(e);return document.body.removeChild(e),t}function ls(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function us(e,t){t===void 0&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,a=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,s=ls(e),c=s.y-r-i,l={borderLeft:r,borderRight:i,borderTop:a,borderBottom:o,scrollbarBottom:s.x-a-o,scrollbarLeft:0,scrollbarRight:0};return is()&&n.direction===`rtl`?l.scrollbarLeft=c:l.scrollbarRight=c,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function ds(e,t,n){t===void 0&&(t=!1);var r=n?e.getBoundingClientRect():fs(e),i=us(e,t),a={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return t&&(a.left+=i.paddingLeft,a.right-=i.paddingRight,a.top+=i.paddingTop,a.bottom-=i.paddingBottom),a}function fs(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function ps(e){for(var t=ms(e),n=e.getBoundingClientRect(),r=0,i=t;r<i.length;r++){var a=i[r],o=Ho(n,a.getBoundingClientRect());if(o)n=o;else return null}return n}function ms(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);
1if(n.position===`fixed`)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function hs(e,t,n){var r=!1,i=function(){r||(r=!0,t.apply(this,arguments))},a=function(){r||(r=!0,n&&n.apply(this,arguments))},o=e(i,a);o&&typeof o.then==`function`&&o.then(i,a)}var gs=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){_s(this.handlers,e,t)},e.prototype.off=function(e,t){vs(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[...arguments].slice(1),n=this.handlers[e]||[],r=this.options&&this.options[e],i=[].concat(r||[],n),a=0,o=i;a<o.length;a++)o[a].apply(this.thisContext,t)},e.prototype.hasHandlers=function(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])},e}();function _s(e,t,n){(e[t]||(e[t]=[])).push(n)}function vs(e,t,n){n?e[t]&&(e[t]=e[t].filter(function(e){return e!==n})):delete e[t]}var ys=function(){function e(e,t,n,r){this.els=t;var i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}return e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var a=i[r].getBoundingClientRect();t.push(a.left-e),n.push(a.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var a=i[r].getBoundingClientRect();t.push(a.top-e),n.push(a.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t=this,n=t.lefts,r=t.rights,i=n.length,a;for(a=0;a<i;a+=1)if(e>=n[a]&&e<r[a])return a},e.prototype.topToIndex=function(e){var t=this,n=t.tops,r=t.bottoms,i=n.length,a;for(a=0;a<i;a+=1)if(e>=n[a]&&e<r[a])return a},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),bs=function(){function e(){}return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),xs=function(e){P(t,e);function t(t){var n=e.call(this)||this;return n.el=t,n}return t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}(bs),Ss=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth},t}(bs),Cs=function(){function e(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}return e.prototype.setIconOverride=function(e){var t,n;if(typeof e==`object`&&e){for(n in t=F({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else e===!1&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&e.indexOf(t)!==0&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||``},e.prototype.getIconClass=function(e,t){var n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e];return n?this.baseIconClass+` `+n:``},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?this.baseIconClass+` `+this.applyIconOverridePrefix(t):``},e}();Cs.prototype.classes={},Cs.prototype.iconClasses={},Cs.prototype.baseIconClass=``,Cs.prototype.iconOverridePrefix=``;var ws=function(){function e(e,t,n,r){var i=this;this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=function(e){i.queuedRequest=F({},i.queuedRequest||{},e),i.drain()},t.on(`_scrollRequest`,this.handleScrollRequest),this.fireInitialScroll()}return e.prototype.detach=function(){this.emitter.off(`_scrollRequest`,this.handleScrollRequest)},e.prototype.update=function(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},e.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},e.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},e}(),Ts=Nn({});function Es(e,t,n,r,i,a,o,s,c,l,u,d,f){return{dateEnv:i,options:n,pluginHooks:o,emitter:l,dispatch:s,getCurrentData:c,calendarApi:u,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:a,isRtl:n.direction===`rtl`,addResizeHandler:function(e){l.on(`_resize`,e)},removeResizeHandler:function(e){l.off(`_resize`,e)},createScrollResponder:function(e){return new ws(e,l,K(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:f}}var Ds=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(Yr(e,this.props),Yr(t,this.state)),!Xr(this.props,e,this.propEquality)||!Xr(this.state,t,this.stateEquality)},t.addPropsEquality=Os,t.addStateEquality=ks,t.contextType=Ts,t}(jn);Ds.prototype.propEquality={},Ds.prototype.stateEquality={};var Q=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.contextType=Ts,t}(Ds);function Os(e){var t=Object.create(this.prototype.propEquality);F(t,e),this.prototype.propEquality=t}function ks(e){var t=Object.create(this.prototype.stateEquality);F(t,e),this.prototype.stateEquality=t}function As(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var js=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.uid=rr(),t}return t.prototype.prepareHits=function(){},t.prototype.queryHit=function(e,t,n,r){return null},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!H(e,`.fc-event-mirror`)},t.prototype.isValidDateDownEl=function(e){return!H(e,`.fc-event:not(.fc-bg-event)`)&&!H(e,`.fc-more-link`)&&!H(e,`a[data-navlink]`)&&!H(e,`.fc-popover`)},t}(Q);function Ms(e){return{id:rr(),deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||``,elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,contentTypeHandlers:e.contentTypeHandlers||{},listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function Ns(e,t){var n={},r={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,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(var t=0,a=e;t<a.length;t++){var o=a[t];n[o.id]||(n[o.id]=!0,i(o.deps),r=Fs(r,o))}}return e&&i(e),i(t),r}function Ps(){var e=[],t=[],n;return function(r,i){return(!n||!bi(r,e)||!bi(i,t))&&(n=Ns(r,i)),e=r,t=i,n}}function Fs(e,t){return{reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:F(F({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:F(F({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:F(F({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),theme
1Classes:F(F({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:F(F({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,contentTypeHandlers:F(F({},e.contentTypeHandlers),t.contentTypeHandlers),listenerRefiners:F(F({},e.listenerRefiners),t.listenerRefiners),optionRefiners:F(F({},e.optionRefiners),t.optionRefiners),propSetHandlers:F(F({},e.propSetHandlers),t.propSetHandlers)}}var Is=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Cs);Is.prototype.classes={root:`fc-theme-standard`,tableCellShaded:`fc-cell-shaded`,buttonGroup:`fc-button-group`,button:`fc-button fc-button-primary`,buttonActive:`fc-button-active`},Is.prototype.baseIconClass=`fc-icon`,Is.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`},Is.prototype.rtlIconClasses={prev:`fc-icon-chevron-right`,next:`fc-icon-chevron-left`,prevYear:`fc-icon-chevrons-right`,nextYear:`fc-icon-chevrons-left`},Is.prototype.iconOverrideOption=`buttonIcons`,Is.prototype.iconOverrideCustomButtonOption=`icon`,Is.prototype.iconOverridePrefix=`fc-icon-`;function Ls(e,t){var n={},r;for(r in e)Rs(r,n,e,t);for(r in t)Rs(r,n,e,t);return n}function Rs(e,t,n,r){if(t[e])return t[e];var i=zs(e,t,n,r);return i&&(t[e]=i),i}function zs(e,t,n,r){var i=n[e],a=r[e],o=function(e){return i&&i[e]!==null?i[e]:a&&a[e]!==null?a[e]:null},s=o(`component`),c=o(`superType`),l=null;if(c){if(c===e)throw Error(`Can't have a custom view type that references itself`);l=Rs(c,t,n,r)}return!s&&l&&(s=l.component),s?{type:e,component:s,defaults:F(F({},l?l.defaults:{}),i?i.rawOptions:{}),overrides:F(F({},l?l.overrides:{}),a?a.rawOptions:{})}:null}var $=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.rootElRef=B(),t.handleRootEl=function(e){As(t.rootElRef,e),t.props.elRef&&As(t.props.elRef,e)},t}return t.prototype.render=function(){var e=this,t=this.props,n=t.hookProps;return z(Us,{hookProps:n,didMount:t.didMount,willUnmount:t.willUnmount,elRef:this.handleRootEl},function(r){return z(Vs,{hookProps:n,content:t.content,defaultContent:t.defaultContent,backupElRef:e.rootElRef},function(e,i){return t.children(r,Gs(t.classNames,n),e,i)})})},t}(Q),Bs=Nn(0);function Vs(e){return z(Bs.Consumer,null,function(t){return z(Hs,F({renderId:t},e))})}var Hs=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.innerElRef=B(),t}return t.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},t.prototype.componentDidMount=function(){this.updateCustomContent()},t.prototype.componentDidUpdate=function(){this.updateCustomContent()},t.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},t.prototype.renderInnerContent=function(){var e=this.customContentInfo,t=this.getInnerContent(),n=this.getContentMeta(t);return!e||e.contentKey!==n.contentKey?(e&&=(e.destroy&&e.destroy(),this.customContentInfo=null),n.contentKey&&(e=this.customContentInfo=F({contentKey:n.contentKey,contentVal:t[n.contentKey]},n.buildLifecycleFuncs()))):e&&(e.contentVal=t[n.contentKey]),e?[]:t},t.prototype.getInnerContent=function(){var e=this.props,t=Ks(e.content,e.hookProps);return t===void 0&&(t=Ks(e.defaultContent,e.hookProps)),t??null},t.prototype.getContentMeta=function(e){var t=this.context.pluginHooks.contentTypeHandlers,n=``,r=null;if(e){for(var i in t)if(e[i]!==void 0){n=i,r=t[i];break}}return{contentKey:n,buildLifecycleFuncs:r}},t.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},t}(Q),Us=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&As(t.props.elRef,e)},t}return t.prototype.render=function(){return this.props.children(this.handleRootEl)},t.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e(F(F({},this.props.hookProps),{el:this.rootEl}))},t.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e(F(F({},this.props.hookProps),{el:this.rootEl}))},t}(Q);function Ws(){var e,t,n=[];return function(r,i){return(!t||!Jr(t,i)||r!==e)&&(e=r,t=i,n=Gs(r,i)),n}}function Gs(e,t){return typeof e==`function`&&(e=e(t)),oa(e)}function Ks(e,t){return typeof e==`function`?e(t,z):e}var qs=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.normalizeClassNames=Ws(),t}return t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,i={view:n.viewApi},a=this.normalizeClassNames(r.viewClassNames,i);return z(Us,{hookProps:i,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount,elRef:t.elRef},function(e){return t.children(e,[`fc-`+t.viewSpec.type+`-view`,`fc-view`].concat(a))})},t}(Q);function Js(e){return Gr(e,Ys)}function Ys(e){var t=typeof e==`function`?{component:e}:e,n=t.component;return t.content&&(n=Xs(t)),{superType:t.type,component:n,rawOptions:t}}function Xs(e){return function(t){return z(Ts.Consumer,null,function(n){return z(qs,{viewSpec:n.viewSpec},function(r,i){return z($,{hookProps:F(F({},t),{nextDayThreshold:n.options.nextDayThreshold}),classNames:e.classNames,content:e.content,didMount:e.didMount,willUnmount:e.willUnmount,elRef:r},function(e,t,n,r){return z(`div`,{className:i.concat(t).join(` `),ref:e},r)})})})}}function Zs(e,t,n,r){var i=Js(e),a=Js(t.views);return Gr(Ls(i,a),function(e){return Qs(e,a,t,n,r)})}function Qs(e,t,n,r,i){var a=e.overrides.duration||e.defaults.duration||r.duration||n.duration,o=null,s=``,c=``,l={};
1if(a&&(o=ec(a),o)){var u=hi(o);s=u.unit,u.value===1&&(c=s,l=t[s]?t[s].rawOptions:{})}var d=function(t){var n=t.buttonText||{},r=e.defaults.buttonTextKey;return r!=null&&n[r]!=null?n[r]:n[e.type]==null?n[c]==null?null:n[c]:n[e.type]},f=function(t){var n=t.buttonHints||{},r=e.defaults.buttonTextKey;return r!=null&&n[r]!=null?n[r]:n[e.type]==null?n[c]==null?null:n[c]:n[e.type]};return{type:e.type,component:e.component,duration:o,durationUnit:s,singleUnit:c,optionDefaults:e.defaults,optionOverrides:F(F({},l),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(i)||e.defaults.buttonText||d(Wi)||e.type,buttonTitleOverride:f(r)||f(n)||e.overrides.buttonHint,buttonTitleDefault:f(i)||e.defaults.buttonHint||f(Wi)}}var $s={};function ec(e){var t=JSON.stringify(e),n=$s[t];return n===void 0&&(n=K(e),$s[t]=n),n}var tc=function(){function e(e){this.props=e,this.nowDate=bo(e.nowInput,e.dateEnv),this.initHiddenDays()}return e.prototype.buildPrev=function(e,t,n){var r=this.props.dateEnv,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)},e.prototype.buildNext=function(e,t,n){var r=this.props.dateEnv,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)},e.prototype.build=function(e,t,n){n===void 0&&(n=!0);var r=this.props,i=this.buildValidRange(),a,o,s,c,l;return i=this.trimHiddenDays(i),n&&(e=Na(e,i)),a=this.buildCurrentRangeInfo(e,t),o=/^(year|month|week|day)$/.test(a.unit),s=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,o),s=this.trimHiddenDays(s),c=s,r.showNonCurrentDates||(c=Oa(c,a.range)),c=this.adjustActiveRange(c),c=Oa(c,i),l=Aa(a.range,i),{validRange:i,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:o,activeRange:c,renderRange:s,slotMinTime:r.slotMinTime,slotMaxTime:r.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(a.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t=typeof e==`function`?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n=this.props,r=null,i=null,a=null,o;return n.duration?(r=n.duration,i=n.durationUnit,a=this.buildRangeFromDuration(e,t,r,i)):(o=this.props.dayCount)?(i=`day`,a=this.buildRangeFromDayCount(e,t,o)):(a=this.buildCustomVisibleRange(e))?i=n.dateEnv.greatestWholeUnit(a.start,a.end).unit:(r=this.getFallbackDuration(),i=hi(r).unit,a=this.buildRangeFromDuration(e,t,r,i)),{duration:r,unit:i,range:a}},e.prototype.getFallbackDuration=function(){return K({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,i=t.slotMinTime,a=t.slotMaxTime,o=e.start,s=e.end;return r&&(fi(i)<0&&(o=W(o),o=n.add(o,i)),fi(a)>1&&(s=W(s),s=U(s,-1),s=n.add(s,a))),{start:o,end:s}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var i=this.props,a=i.dateEnv,o=i.dateAlignment,s,c,l;if(!o){var u=this.props.dateIncrement;o=u&&pi(u)<pi(n)?hi(u).unit:r}fi(n)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,t),s=W(s));function d(){s=a.startOf(e,o),c=a.add(s,n),l={start:s,end:c}}return d(),this.trimHiddenDays(l)||(e=this.skipHiddenDays(e,t),d()),l},e.prototype.buildRangeFromDayCount=function(e,t,n){var r=this.props,i=r.dateEnv,a=r.dateAlignment,o=0,s=e,c;a&&(s=i.startOf(s,a)),s=W(s),s=this.skipHiddenDays(s,t),c=s;do c=U(c,1),this.isHiddenDay(c)||(o+=1);while(o<n);return{start:s,end:c}},e.prototype.buildCustomVisibleRange=function(e){var t=this.props,n=t.visibleRangeInput,r=typeof n==`function`?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);return i&&(i.start==null||i.end==null)?null:i},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t=this.props.dateIncrement,n;return t||((n=this.props.dateAlignment)?K(1,n):e||K({days:1}))},e.prototype.refineRange=function(e){if(e){var t=Ta(e,this.props.dateEnv);return t&&=Sa(t),t}return null},e.prototype.initHiddenDays=function(){var e=this.props.hiddenDays||[],t=[],n=0,r;for(this.props.weekends===!1&&e.push(0,6),r=0;r<7;r+=1)(t[r]=e.indexOf(r)!==-1)||(n+=1);if(!n)throw Error(`invalid hiddenDays`);
1this.isHiddenDayHash=t},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&=this.skipHiddenDays(t),n&&=this.skipHiddenDays(n,-1,!0),t==null||n==null||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){for(t===void 0&&(t=1),n===void 0&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=U(e,t);return e},e}();function nc(e,t){return t.type===`CHANGE_VIEW_TYPE`&&(e=t.viewType),e}function rc(e,t){var n;switch(t.type){case`SET_OPTION`:return F(F({},e),(n={},n[t.optionName]=t.rawOptionValue,n));default:return e}}function ic(e,t,n,r){var i;switch(t.type){case`CHANGE_VIEW_TYPE`:return r.build(t.dateMarker||n);case`CHANGE_DATE`:return r.build(t.dateMarker);case`PREV`:if(i=r.buildPrev(e,n),i.isValid)return i;break;case`NEXT`:if(i=r.buildNext(e,n),i.isValid)return i}return e}function ac(e,t,n){var r=t?t.activeRange:null;return lc({},_c(e,n),r,n)}function oc(e,t,n,r){var i=n?n.activeRange:null;switch(t.type){case`ADD_EVENT_SOURCES`:return lc(e,t.sources,i,r);case`REMOVE_EVENT_SOURCE`:return uc(e,t.sourceId);case`PREV`:case`NEXT`:case`CHANGE_DATE`:case`CHANGE_VIEW_TYPE`:return n?dc(e,i,r):e;case`FETCH_EVENT_SOURCES`:return pc(e,t.sourceIds?Kr(t.sourceIds):gc(e,r),i,t.isRefetch||!1,r);case`RECEIVE_EVENTS`:case`RECEIVE_EVENT_ERROR`:return hc(e,t.sourceId,t.fetchId,t.fetchRange);case`REMOVE_ALL_EVENT_SOURCES`:return{};default:return e}}function sc(e,t,n){var r=t?t.activeRange:null;return pc(e,gc(e,n),r,!0,n)}function cc(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function lc(e,t,n,r){for(var i={},a=0,o=t;a<o.length;a++){var s=o[a];i[s.sourceId]=s}return n&&(i=dc(i,n,r)),F(F({},e),i)}function uc(e,t){return Wr(e,function(e){return e.sourceId!==t})}function dc(e,t,n){return pc(e,Wr(e,function(e){return fc(e,t,n)}),t,!1,n)}function fc(e,t,n){return vc(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function pc(e,t,n,r,i){var a={};for(var o in e){var s=e[o];a[o]=t[o]?mc(s,n,r,i):s}return a}function mc(e,t,n,r){var i=r.options,a=r.calendarApi,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],s=rr();return o.fetch({eventSource:e,range:t,isRefetch:n,context:r},function(n){var o=n.rawEvents;i.eventSourceSuccess&&(o=i.eventSourceSuccess.call(a,o,n.xhr)||o),e.success&&(o=e.success.call(a,o,n.xhr)||o),r.dispatch({type:`RECEIVE_EVENTS`,sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:o})},function(n){console.warn(n.message,n),i.eventSourceFailure&&i.eventSourceFailure.call(a,n),e.failure&&e.failure(n),r.dispatch({type:`RECEIVE_EVENT_ERROR`,sourceId:e.sourceId,fetchId:s,fetchRange:t,error:n})}),F(F({},e),{isFetching:!0,latestFetchId:s})}function hc(e,t,n,r){var i,a=e[t];return a&&n===a.latestFetchId?F(F({},e),(i={},i[t]=F(F({},a),{isFetching:!1,fetchRange:r}),i)):e}function gc(e,t){return Wr(e,function(e){return vc(e,t)})}function _c(e,t){var n=go(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(var a=0,o=r;a<o.length;a++){var s=o[a],c=ho(s,t,n);c&&i.push(c)}return i}function vc(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function yc(e,t,n,r,i){switch(t.type){case`RECEIVE_EVENTS`:return bc(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case`ADD_EVENTS`:return Cc(e,t.eventStore,r?r.activeRange:null,i);case`RESET_EVENTS`:return t.eventStore;case`MERGE_EVENTS`:return na(e,t.eventStore);case`PREV`:case`NEXT`:case`CHANGE_DATE`:case`CHANGE_VIEW_TYPE`:return r?ei(e,r.activeRange,i):e;case`REMOVE_EVENTS`:return ia(e,t.eventStore);case`REMOVE_EVENT_SOURCE`:return Tc(e,t.sourceId);case`REMOVE_ALL_EVENT_SOURCES`:return ra(e,function(e){return!e.sourceId});case`REMOVE_ALL_EVENTS`:return X();default:return e}}function bc(e,t,n,r,i,a){if(t&&n===t.latestFetchId){var o=Qi(xc(i,t,a),t,a);return r&&(o=ei(o,r,a)),na(Tc(e,t.sourceId),o)}return e}function xc(e,t,n){var r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=Sc(e,i)),r&&(e=Sc(e,r)),e}function Sc(e,t){var n;if(!t)n=e;else{n=[];for(var r=0,i=e;r<i.length;r++){var a=i[r],o=t(a);o?n.push(o):o??n.push(a)}}return n}function Cc(e,t,n,r){return n&&(t=ei(t,n,r)),na(e,t)}function wc(e,t,n){var r=e.defs;return{defs:r,instances:Gr(e.instances,function(e){var i=r[e.defId];return i.allDay||i.recurringDef?e:F(F({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})})}}function Tc(e,t){return ra(e,function(e){return e.sourceId!==t})}function Ec(e,t){return{defs:e.defs,instances:Wr(e.instances,function(e){return!t[e.instanceId]})}}function Dc(e,t){switch(t.type){case`UNSELECT_DATES`:return null;case`SELECT_DATES`:return t.selection;default:return e}}function Oc(e,t){switch(t.type){case`UNSELECT_EVENT`:return``;case`SELECT_EVENT`:return t.eventInstanceId;default:return e}}function kc(e,t){var n;switch(t.type){case`UNSET_EVENT_DRAG`:return null;case`SET_EVENT_DRAG`:return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Ac(e,t){var n;switch(t.type){case`UNSET_EVENT_RESIZE`:return null;case`SET_EVENT_RESIZE`:return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function jc(e,t,n,r,i){return{header:e.headerToolbar?Mc(e.headerToolbar,e,t,n,r,i):null,footer
1:e.footerToolbar?Mc(e.footerToolbar,e,t,n,r,i):null}}function Mc(e,t,n,r,i,a){var o={},s=[],c=!1;for(var l in e){var u=e[l],d=Nc(u,t,n,r,i,a);o[l]=d.widgets,s.push.apply(s,d.viewsWithButtons),c||=d.hasTitle}return{sectionWidgets:o,viewsWithButtons:s,hasTitle:c}}function Nc(e,t,n,r,i,a){var o=t.direction===`rtl`,s=t.customButtons||{},c=n.buttonText||{},l=t.buttonText||{},u=n.buttonHints||{},d=t.buttonHints||{},f=e?e.split(` `):[],p=[],m=!1;return{widgets:f.map(function(e){return e.split(`,`).map(function(e){if(e===`title`)return m=!0,{buttonName:e};var n,f,h,g,_,v;if(n=s[e])h=function(e){n.click&&n.click.call(e.target,e,e.target)},(g=r.getCustomButtonIconClass(n))||(g=r.getIconClass(e,o))||(_=n.text),v=n.hint||n.text;else if(f=i[e]){p.push(e),h=function(){a.changeView(e)},(_=f.buttonTextOverride)||(g=r.getIconClass(e,o))||(_=f.buttonTextDefault);var y=f.buttonTextOverride||f.buttonTextDefault;v=hr(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[y,e],y)}else if(a[e]){if(h=function(){a[e]()},(_=c[e])||(g=r.getIconClass(e,o))||(_=l[e]),e===`prevYear`||e===`nextYear`){var b=e===`prevYear`?`prev`:`next`;v=hr(u[b]||d[b],[l.year||`year`,`year`],l[e])}else v=function(t){return hr(u[e]||d[e],[l[t]||t,t],l[e])}}return{buttonName:e,buttonClick:h,buttonIcon:g,buttonText:_,buttonHint:v}})}),viewsWithButtons:p,hasTitle:m}}var Pc=Ms({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),Fc=Ms({eventSourceDefs:[{parseMeta:function(e){return typeof e.events==`function`?e.events:null},fetch:function(e,t,n){var r=e.context.dateEnv,i=e.eventSource.meta;hs(i.bind(null,no(e.range,r)),function(e){t({rawEvents:e})},n)}}]});function Ic(e,t,n,r,i){e=e.toUpperCase();var a=null;e===`GET`?t=Lc(t,n):a=Rc(n);var o=new XMLHttpRequest;o.open(e,t,!0),e!==`GET`&&o.setRequestHeader(`Content-Type`,`application/x-www-form-urlencoded`),o.onload=function(){if(o.status>=200&&o.status<400){var e=!1,t=void 0;try{t=JSON.parse(o.responseText),e=!0}catch{}e?r(t,o):i(`Failure parsing JSON`,o)}else i(`Request failed`,o)},o.onerror=function(){i(`Request failed`,o)},o.send(a)}function Lc(e,t){return e+(e.indexOf(`?`)===-1?`?`:`&`)+Rc(t)}function Rc(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+`=`+encodeURIComponent(e[n]));return t.join(`&`)}var zc=Ms({eventSourceRefiners:{method:String,extraParams:Y,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:function(e){return e.url&&(e.format===`json`||!e.format)?{url:e.url,format:`json`,method:(e.method||`GET`).toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}:null},fetch:function(e,t,n){var r=e.eventSource.meta,i=Bc(r,e.range,e.context);Ic(r.method,r.url,i,function(e,n){t({rawEvents:e,xhr:n})},function(e,t){n({message:e,xhr:t})})}}]});function Bc(e,t,n){var r=n.dateEnv,i=n.options,a,o,s,c,l={};return a=e.startParam,a??=i.startParam,o=e.endParam,o??=i.endParam,s=e.timeZoneParam,s??=i.timeZoneParam,c=typeof e.extraParams==`function`?e.extraParams():e.extraParams||{},F(l,c),l[a]=r.formatIso(t.start),l[o]=r.formatIso(t.end),r.timeZone!==`local`&&(l[s]=r.timeZone),l}var Vc=Ms({recurringTypes:[{parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r=void 0;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(r=ci(e.endTime,e.startTime)),{allDayGuess:!e.startTime&&!e.endTime,duration:r,typeData:n}}return null},expand:function(e,t,n){var r=Oa(t,{start:e.startRecur,end:e.endRecur});return r?Hc(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:Y,startTime:K,endTime:K,duration:K,startRecur:Y,endRecur:Y}});function Hc(e,t,n,r){for(var i=e?Kr(e):null,a=W(n.start),o=n.end,s=[];a<o;){var c=void 0;(!i||i[a.getUTCDay()])&&(c=t?r.add(a,t):a,s.push(c)),a=U(a,1)}return s}var Uc=Ms({optionChangeHandlers:{events:function(e,t){Wc([e],t)},eventSources:Wc}});function Wc(e,t){for(var n=qr(t.getCurrentData().eventSources),r=[],i=0,a=e;i<a.length;i++){for(var o=a[i],s=!1,c=0;c<n.length;c+=1)if(n[c]._raw===o){n.splice(c,1),s=!0;break}s||r.push(o)}for(var l=0,u=n;l<u.length;l++){var d=u[l];
1t.dispatch({type:`REMOVE_EVENT_SOURCE`,sourceId:d.sourceId})}for(var f=0,p=r;f<p.length;f++){var m=p[f];t.calendarApi.addEventSource(m)}}function Gc(e,t){t.emitter.trigger(`datesSet`,F(F({},no(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function Kc(e,t){var n=t.emitter;n.hasHandlers(`eventsSet`)&&n.trigger(`eventsSet`,Co(e,t))}var qc=[Pc,Fc,zc,Vc,Uc,Ms({isLoadingFuncs:[function(e){return cc(e.eventSources)}],contentTypeHandlers:{html:Jc,domNodes:Yc},propSetHandlers:{dateProfile:Gc,eventStore:Kc}})];function Jc(){var e=null,t=``;function n(n,r){(n!==e||r!==t)&&(n.innerHTML=r),e=n,t=r}function r(){e.innerHTML=``,e=null,t=``}return{render:n,destroy:r}}function Yc(){var e=null,t=[];function n(n,i){var a=Array.prototype.slice.call(i);if(n!==e||!bi(t,a)){for(var o=0,s=a;o<s.length;o++){var c=s[o];n.appendChild(c)}r()}e=n,t=a}function r(){t.forEach(Rn),t=[],e=null}return{render:n,destroy:r}}var Xc=function(){function e(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return e.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},e.prototype.pause=function(e){e===void 0&&(e=``);var t=this.pauseDepths;t[e]=(t[e]||0)+1,this.clearTimeout()},e.prototype.resume=function(e,t){e===void 0&&(e=``);var n=this.pauseDepths;e in n&&(t?delete n[e]:(--n[e],n[e]<=0&&delete n[e]),this.tryDrain())},e.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},e.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},e.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},e.prototype.clearTimeout=function(){this.timeoutId&&=(clearTimeout(this.timeoutId),0)},e.prototype.drained=function(){this.drainedOption&&this.drainedOption()},e}(),Zc=function(){function e(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Xc(this.drain.bind(this))}return e.prototype.request=function(e,t){this.queue.push(e),this.delayedRunner.request(t)},e.prototype.pause=function(e){this.delayedRunner.pause(e)},e.prototype.resume=function(e,t){this.delayedRunner.resume(e,t)},e.prototype.drain=function(){for(var e=this.queue;e.length;){for(var t=[],n=void 0;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}},e.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},e.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},e}();function Qc(e,t,n){var r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange;return n.formatRange(r.start,r.end,J(t.titleFormat||$c(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function $c(e){var t=e.currentRangeUnit;if(t===`year`)return{year:`numeric`};if(t===`month`)return{year:`numeric`,month:`long`};var n=kr(e.currentRange.start,e.currentRange.end);return n!==null&&n>1?{year:`numeric`,month:`short`,day:`numeric`}:{year:`numeric`,month:`long`,day:`numeric`}}var el=function(){function e(e){var t=this;this.computeOptionsData=q(this._computeOptionsData),this.computeCurrentViewData=q(this._computeCurrentViewData),this.organizeRawLocales=q(No),this.buildLocale=q(Po),this.buildPluginHooks=Ps(),this.buildDateEnv=q(tl),this.buildTheme=q(nl),this.parseToolbars=q(jc),this.buildViewSpecs=q(Zs),this.buildDateProfileGenerator=xi(rl),this.buildViewApi=q(il),this.buildViewUiProps=xi(sl),this.buildEventUiBySource=q(al,Jr),this.buildEventUiBases=q(ol),this.parseContextBusinessHours=xi(ll),this.buildTitle=q(Qc),this.emitter=new gs,this.actionRunner=new Zc(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return t.data},this.dispatch=function(e){t.actionRunner.request(e)},this.props=e,this.actionRunner.pause();var n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,a=this.computeCurrentViewData(i,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(a.options);var o=yo(r.calendarOptions,r.dateEnv),s=a.dateProfileGenerator.build(o);Ma(s.activeRange,o)||(o=s.currentRange.start);for(var c={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},l=0,u=r.pluginHooks.contextInit;l<u.length;l++){var d=u[l];d(c)}for(var f=ac(r.calendarOptions,s,c),p={dynamicOptionOverrides:n,currentViewType:i,currentDate:o,dateProfile:s,businessHours:this.parseContextBusinessHours(c),eventSources:f,eventUiBases:{},eventStore:X(),renderableEventStore:X(),dateSelection:null,eventSelection:``,eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(c).selectionConfig},m=F(F({},c),p),h=0,g=r.pluginHooks.reducers;h<g.length;h++){var _=g[h];F(p,_(null,null,m))}cl(p,c)&&this.emitter.trigger(`loading`,!0),this.state=p,this.updateData(),this.actionRunner.resume()}return e.prototype.resetOptions=function(e,t){var n=this.props;n.optionOverrides=t?F(F({},n.optionOverrides),e):e,this.actionRunner.request({type:`NOTHING`})},e.prototype._handleAction=function(e){var t=this,n=t.props,r=t.state,i=t.emitter,a=rc(r.dynamicOptionOverrides,e),o=this.computeOptionsData(n.optionOverrides,a,n.calendarApi),s=nc(r.currentViewType,e),c=this.computeCurrentViewData(s,o,n.optionOverrides,a);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(c.options);var l={dateEnv:o.dateEnv,options:o.calendarOptions,pluginHooks:o.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},u=r.currentDate,d=r.dateProfile;this.data&&this.data.dateProfileGenerator!==c.dateProfileGenerator&&(d=c.dateProfileGenerator.build(u)),u=vo(u,e),d=ic(d,e,u,c.dateProfileGenerator),(e.type===`PREV`||e.type===`NEXT`||!Ma(d.currentRange,u))&&(u=d.currentRange.start);for(var f=oc(r.eventSources,e,d,l),p=yc(r.eventStore,e,f,d,l),m=cc(f)&&!c.options.progressiveEventRendering&&r.renderableEventStore||p,h=this.buildViewUiProps(l),g=h.eventUiSingleBase,_=h.selectionConfig,v=this.buildEventUiBySource(f),y=this.buildEventUiBases(m.defs,g,v),b={dynamicOptionOverrides:a,currentViewType:s,currentDate:u,dateProfile:d,eventSources:f,eventStore:p,renderableEventStore:m,selectionConfig:_,eventUiBases:y,businessHours:this.parseContextBusinessHours(l),dateSelection:Dc(r.dateSelection,e),eventSelection:Oc(r.eventSelection,e),eventDrag:kc(r.eventDrag,e),eventResize:Ac(r.eventResize,e)},x=F(F({},l),b),S=0,C=o.pluginHooks.reducers;S<C.length;S++){var w=C[S];F(b,w(r,e,x))}var T=cl(r,l),E=cl(b,l);!T&&E?i.trigger(`loading`,!0):T&&!E&&i.trigger(`loading`,!1),this.state=b,n.onAction&&n.onAction(e)},e.prototype.updateData=function(){var e=this,t=e.props,n=e.state,r=this.data,i=this.computeOptionsData(t.optionOverrides,n.dynamicOptionOverrides,t.calendarApi),a=this.computeCurrentViewData(n.currentViewType,i,t.optionOverrides,n.dynamicOptionOverrides),o=this.data=F(F(F({viewTitle:this.buildTitle(n.dateProfile,a.options,i.dateEnv),calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),a),n),s=i.pluginHooks.optionChangeHandlers,c=r&&r.calendarOptions,l=i.calendarOptions;if(c&&c!==l)for(var u in c.timeZone!==l.timeZone&&(n.eventSources=o.eventSources=sc(o.eventSources,n.dateProfile,o),n.eventStore=o.eventStore=wc(o.eventStore,r.dateEnv,o.dateEnv)),s)c[u]!==l[u]&&s[u](l[u],o);t.onData&&t.onData(o)},e.prototype._computeOptionsData=function(e,t,n){var r=this.processRawCalendarOptions(e,t),i=r.refinedOptions,a=r.pluginHooks,o=r.localeDefaults,s=r.availableLocaleData,c=r.extra;ul(c);var l=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,a,s,i.defaultRangeSeparator),u=this.buildViewSpecs(a.views,e,t,o),d=this.buildTheme(i,a);return{calendarOptions:i,pluginHooks:a,dateEnv:l,viewSpecs:u,theme:d,toolbarConfig:this.parseToolbars(i,e,d,u,n),localeDefaults:o,availableRawLocales:s.map}},e.prototype.processRawCalendarOptions=function(e,t){var n=Xi([Wi,e,t]),r=n.locales,i=n.locale,a=this.organizeRawLocales(r),o=a.map,s=this.buildLocale(i||a.defaultCode,o).options,c=this.buildPluginHooks(e.plugins||[],qc),l=this.currentCalendarOptionsRefiners=F(F(F(F(F({},Ui),Gi),Ki),c.listenerRefiners),c.optionRefiners),u={},d=Xi([Wi,s,e,t]),f={},p=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,h=!1;for(var g in d)g!==`plugins`&&(d[g]===p[g]||qi[g]&&g in p&&qi[g](p[g],d[g])?f[g]=m[g]:l[g]?(f[g]=l[g](d[g]),h=!0):u[g]=p[g]);return h&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=f),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:c,availableLocaleData:a,localeDefaults:s,extra:u}},e.prototype._computeCurrentViewData=function(e,t,n,r){var i=t.viewSpecs[e];if(!i)throw Error(`viewType "`+e+`" is not available. Please make sure you've loaded all neccessary plugins`);var a=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r),o=a.refinedOptions,s=a.extra;return ul(s),{viewSpec:i,options:o,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,showNonCurrentDates:o.showNonCurrentDates,dayCount:o.dayCount,dateAlignment:o.dateAlignment,dateIncrement:o.dateIncrement,hiddenDays:o.hiddenDays,weekends:o.weekends,nowInput:o.now,validRangeInput:o.validRange,visibleRangeInput:o.visibleRange,monthMode:o.monthMode,fixedWeekCount:o.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}},e.prototype.processRawViewOptions=function(e,t,n,r,i){var a=Xi([Wi,e.optionDefaults,n,r,e.optionOverrides,i]),o=F(F(F(F(F(F({},Ui),Gi),Ki),Yi),t.listenerRefiners),t.optionRefiners),s={},c=this.currentViewOptionsInput,l=this.currentViewOptionsRefined,u=!1,d={};for(var f in a)a[f]===c[f]?s[f]=l[f]:(a[f]===this.currentCalendarOptionsInput[f]?f in this.currentCalendarOptionsRefined&&(s[f]=this.currentCalendarOptionsRefined[f]):o[f]?s[f]=o[f](a[f]):d[f]=a[f],u=!0);return u&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=s),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}},e}();function tl(e,t,n,r,i,a,o,s){var c=Po(t||o.defaultCode,o.map);return new ko({calendarSystem:`gregory`,timeZone:e,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:c,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:a.cmdFormatter,defaultSeparator:s})}function nl(e,t){return new(t.themeClasses[e.themeSystem]||Is)(e)}function rl(e){return new(e.dateProfileGeneratorClass||tc)(e)}
1function il(e,t,n){return new po(e,t,n)}function al(e){return Gr(e,function(e){return e.ui})}function ol(e,t,n){var r={"":t};for(var i in e){var a=e[i];a.sourceId&&n[a.sourceId]&&(r[i]=n[a.sourceId])}return r}function sl(e){var t=e.options;return{eventUiSingleBase:la({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:typeof t.eventOverlap==`boolean`?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:la({constraint:t.selectConstraint,overlap:typeof t.selectOverlap==`boolean`?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function cl(e,t){for(var n=0,r=t.pluginHooks.isLoadingFuncs;n<r.length;n++){var i=r[n];if(i(e))return!0}return!1}function ll(e){return zo(e.options.businessHours,e)}function ul(e,t){for(var n in e)console.warn(`Unknown option '`+n+`'`+(t?` for view '`+t+`'`:``))}(function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.handleData=function(e){n.dataManager?n.setState(e):n.state=e},n.dataManager=new el({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:n.handleData}),n}return t.prototype.render=function(){return this.props.children(this.state)},t.prototype.componentDidUpdate=function(e){var t=this.props.optionOverrides;t!==e.optionOverrides&&this.dataManager.resetOptions(t)},t})(jn);var dl=function(){function e(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return e.prototype.addSegs=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];this.insertEntry(i,t)}return t},e.prototype.insertEntry=function(e,t){var n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)},e.prototype.isInsertionValid=function(e,t){return(this.maxCoord===-1||e.levelCoord+t.thickness<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)},e.prototype.handleInvalidInsertion=function(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)},e.prototype.splitEntry=function(e,t,n){var r=0,i=[],a=e.span,o=t.span;return a.start<o.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.start,end:o.start}},i)),a.end>o.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.end,end:a.end}},i)),r?(n.push.apply(n,I([{index:e.index,thickness:e.thickness,span:gl(o,a)}],i)),r):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this,r=n.entriesByLevel,i=n.levelCoords;t.lateral===-1?(_l(i,t.level,t.levelCoord),_l(r,t.level,[e])):_l(r[t.level],t.lateral,e),this.stackCnts[pl(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this,n=t.levelCoords,r=t.entriesByLevel,i=t.strictOrder,a=t.stackCnts,o=n.length,s=0,c=-1,l=-1,u=null,d=0,f=0;f<o;f+=1){var p=n[f];if(!i&&p>=s+e.thickness)break;for(var m=r[f],h=void 0,g=vl(m,e.span.start,fl),_=g[0]+g[1];(h=m[_])&&h.span.start<e.span.end;){var v=p+h.thickness;v>s&&(s=v,u=h,c=f,l=_),v===s&&(d=Math.max(d,a[pl(h)]+1)),_+=1}}var y=0;if(u)for(y=c+1;y<o&&n[y]<s;)y+=1;var b=-1;return y<o&&n[y]===s&&(b=vl(r[y],e.span.end,fl)[0]),{touchingLevel:c,touchingLateral:l,touchingEntry:u,stackCnt:d,levelCoord:s,level:y,lateral:b}},e.prototype.toRects=function(){for(var e=this,t=e.entriesByLevel,n=e.levelCoords,r=t.length,i=[],a=0;a<r;a+=1)for(var o=t[a],s=n[a],c=0,l=o;c<l.length;c++){var u=l[c];i.push(F(F({},u),{levelCoord:s}))}return i},e}();function fl(e){return e.span.end}function pl(e){return e.index+`:`+e.span.start}function ml(e){for(var t=[],n=0,r=e;n<r.length;n++){for(var i=r[n],a=[],o={span:i.span,entries:[i]},s=0,c=t;s<c.length;s++){var l=c[s];gl(l.span,o.span)?o={entries:l.entries.concat(o.entries),span:hl(l.span,o.span)}:a.push(l)}a.push(o),t=a}return t}function hl(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function gl(e,t){var n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function _l(e,t,n){e.splice(t,0,n)}function vl(e,t,n){var r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){var a=Math.floor(r+(i-r)/2),o=n(e[a]);if(t<o)i=a;else if(t>o)r=a+1;else return[a,1]}return[r,0]}var yl=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}();function bl(e,t){return{component:e,el:t.el,useEventCenter:t.useEventCenter==null||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function xl(e){var t;return t={},t[e.component.uid]=e,t}var Sl={},Cl=function(){function e(e,t){this.emitter=new gs}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),wl={},Tl={startTime:K,duration:K,create:Boolean,sourceId:String};function El(e){var t=Zi(e,Tl),n=t.refined,r=t.extra;return{startTime:n.startTime||null,duration:n.duration||null,create:n.create==null||n.create,sourceId:n.sourceId,leftoverProps:r}}var Dl=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map(function(t){return e.renderWidgetGroup(t)});return z.apply(void 0,I([`div`,{className:`fc-toolbar-chunk`}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,r=[],i=!0,a=0,o=e;a<o.length;a++){var s=o[a],c=s.buttonName,l=s.buttonClick,u=s.buttonText,d=s.buttonIcon,f=s.buttonHint;if(c===`title`)i=!1,r.push(z(`h2`,{className:`fc-toolbar-title`,id:t.titleId},t.title));else{var p=c===t.activeButton,m=!t.isTodayEnabled&&c===`today`||!t.isPrevEnabled&&c===`prev`||!t.isNextEnabled&&c===`next`,h=[`fc-`+c+`-button`,n.getClass(`button`)];p&&h.push(n.getClass(`buttonActive`)),r.push(z(`button`,{type:`button`,title:typeof f==`function`?f(t.navUnit):f,disabled:m,"aria-pressed":p,className:h.join(` `),onClick:l},u||(d?z(`span`,{className:d}):``)))}}if(r.length>1){var g=i&&n.getClass(`buttonGroup`)||``;return z.apply(void 0,I([`div`,{className:g}],r))}return r[0]},t}(Q),Ol=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.props,t=e.model,n=e.extraClassName,r=!1,i,a,o=t.sectionWidgets,s=o.center;
1return o.left?(r=!0,i=o.left):i=o.start,o.right?(r=!0,a=o.right):a=o.end,z(`div`,{className:[n||``,`fc-toolbar`,r?`fc-toolbar-ltr`:``].join(` `)},this.renderSection(`start`,i||[]),this.renderSection(`center`,s||[]),this.renderSection(`end`,a||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return z(Dl,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})},t}(Q),kl=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,As(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=t.aspectRatio,i=[`fc-view-harness`,r||t.liquid||t.height?`fc-view-harness-active`:`fc-view-harness-passive`],a=``,o=``;return r?n.availableWidth===null?o=1/r*100+`%`:a=n.availableWidth/r:a=t.height||``,z(`div`,{"aria-labelledby":t.labeledById,ref:this.handleEl,className:i.join(` `),style:{height:a,paddingBottom:o}},t.children)},t.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},t.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},t}(Q),Al=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var r=n.component,i=r.context,a=La(t);if(a&&r.isValidSegDownEl(e.target)){var o=H(e.target,`.fc-event-forced-url`),s=o?o.querySelector(`a[href]`).href:``;i.emitter.trigger(`eventClick`,{el:t,event:new Z(r.context,a.eventRange.def,a.eventRange.instance),jsEvent:e,view:i.viewApi}),s&&!e.defaultPrevented&&(window.location.href=s)}},n.destroy=Xn(t.el,`click`,`.fc-event`,n.handleSegClick),n}return t}(yl),jl=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){La(t)&&(n.currentSegEl=t,n.triggerEvent(`eventMouseEnter`,e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(n.currentSegEl=null,n.triggerEvent(`eventMouseLeave`,e,t))},n.removeHoverListeners=Zn(t.el,`.fc-event`,n.handleSegEnter,n.handleSegLeave),n}return t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var r=this.component,i=r.context,a=La(n);(!t||r.isValidSegDownEl(t.target))&&i.emitter.trigger(e,{el:n,event:new Z(i,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:i.viewApi})},t}(yl),Ml=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.buildViewContext=q(Es),t.buildViewPropTransformers=q(Pl),t.buildToolbarProps=q(Nl),t.headerRef=B(),t.footerRef=B(),t.interactionsStore={},t.state={viewLabelId:qn()},t.registerInteractiveComponent=function(e,n){var r=bl(e,n),i=[Al,jl].concat(t.props.pluginHooks.componentInteractions).map(function(e){return new e(r)});t.interactionsStore[e.uid]=i,Sl[e.uid]=r},t.unregisterInteractiveComponent=function(e){for(var n=0,r=t.interactionsStore[e.uid];n<r.length;n++)r[n].destroy();delete t.interactionsStore[e.uid],delete Sl[e.uid]},t.resizeRunner=new Xc(function(){t.props.emitter.trigger(`_resize`,!0),t.props.emitter.trigger(`windowResize`,{view:t.props.viewApi})}),t.handleWindowResize=function(e){var n=t.props.options;n.handleWindowResize&&e.target===window&&t.resizeRunner.request(n.windowResizeDelay)},t}return t.prototype.render=function(){var e=this.props,t=e.toolbarConfig,n=e.options,r=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,bo(e.options.now,e.dateEnv),e.viewTitle),i=!1,a=``,o;e.isHeightAuto||e.forPrint?a=``:n.height==null?n.contentHeight==null?o=Math.max(n.aspectRatio,.5):a=n.contentHeight:i=!0;var s=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=t.header&&t.header.hasTitle?this.state.viewLabelId:``;return z(Ts.Provider,{value:s},t.header&&z(Ol,F({ref:this.headerRef,extraClassName:`fc-header-toolbar`,model:t.header,titleId:c},r)),z(kl,{liquid:i,height:a,aspectRatio:o,labeledById:c},this.renderView(e),this.buildAppendContent()),t.footer&&z(Ol,F({ref:this.footerRef,extraClassName:`fc-footer-toolbar`,model:t.footer,titleId:``},r)))},t.prototype.componentDidMount=function(){var e=this.props;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(function(t){return new t(e)}),window.addEventListener(`resize`,this.handleWindowResize);var t=e.pluginHooks.propSetHandlers;for(var n in t)t[n](e[n],e)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.pluginHooks.propSetHandlers;for(var r in n)t[r]!==e[r]&&n[r](t[r],t)},t.prototype.componentWillUnmount=function(){window.removeEventListener(`resize`,this.handleWindowResize),this.resizeRunner.clear();for(var e=0,t=this.calendarInteractions;e<t.length;e++)t[e].destroy();this.props.emitter.trigger(`_unmount`)},t.prototype.buildAppendContent=function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map(function(t){return t(e)});return z.apply(void 0,I([V,{}],t))},t.prototype.renderView=function(e){for(var t=e.pluginHooks,n=e.viewSpec,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},i=this.buildViewPropTransformers(t.viewPropsTransformers),a=0,o=i;a<o.length;a++){var s=o[a];F(r,s.transform(r,e))}var c=n.component;return z(c,F({},r))},t}(Ds);function Nl(e,t,n,r,i,a){var o=n.build(i,void 0,!1),s=n.buildPrev(t,r,!1),c=n.buildNext(t,r,!1);return{title:a,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:o.isValid&&!Ma(t.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:c.isValid}}function Pl(e){return e.map(function(e){return new e})}var Fl=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={forPrint:!1},t.handleBeforePrint=function(){t.setState({forPrint:!0})},t.handleAfterPrint=function(){t.setState({forPrint:!1})},t}return t.prototype.render=function(){var e=this.props,t=e.options,n=this.state.forPrint,r=n||t.height===`auto`||t.contentHeight===`auto`,i=!r&&t.height!=null?t.height:``,a=[`fc`,n?`fc-media-print`:`fc-media-screen`,`fc-direction-`+t.direction,e.theme.getClass(`root`)];return qo()||a.push(`fc-liquid-hack`),e.children(a,i,r,n)},t.prototype.componentDidMount=function(){var e=this.props.emitter;e.on(`_beforeprint`,this.handleBeforePrint),e.on(`_afterprint`,this.handleAfterPrint)},t.prototype.componentWillUnmount=function(){var e=this.props.emitter;e.off(`_beforeprint`,this.handleBeforePrint),e.off(`_afterprint`,this.handleAfterPrint)},t}(Q);function Il(e,t){return J(!e||t>10?{weekday:`short`}:t>1?{weekday:`short`,month:`numeric`,day:`numeric`,omitCommas:!0}:{weekday:`long`})}var Ll=`fc-col-header-cell`;function Rl(e){return e.text}var zl=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,r=e.theme,i=e.viewApi,a=this.props,o=a.date,s=a.dateProfile,c=Qo(o,a.todayRange,null,s),l=[Ll].concat($o(c,r)),u=t.format(o,a.dayHeaderFormat),d=!c.isDisabled&&a.colCnt>1?ns(this.context,o):{};return z($,{hookProps:F(F(F({date:t.toDate(o),view:i},a.extraHookProps),{text:u}),c),classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:Rl,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},function(e,t,n,r){return z(`th`,F({ref:e,role:`columnheader`,className:l.concat(t).join(` `),"data-date":c.isDisabled?void 0:_i(o),colSpan:a.colSpan},a.extraDataAttrs),z(`div`,{className:`fc-scrollgrid-sync-inner`}
1,!c.isDisabled&&z(`a`,F({ref:n,className:[`fc-col-header-cell-cushion`,a.isSticky?`fc-sticky`:``].join(` `)},d),r)))})},t}(Q),Bl=J({weekday:`long`}),Vl=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,r=t.theme,i=t.viewApi,a=t.options,o=U(new Date(2592e5),e.dow),s={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=[Ll].concat($o(s,r),e.extraClassNames||[]),l=n.format(o,e.dayHeaderFormat);return z($,{hookProps:F(F(F(F({date:o},s),{view:i}),e.extraHookProps),{text:l}),classNames:a.dayHeaderClassNames,content:a.dayHeaderContent,defaultContent:Rl,didMount:a.dayHeaderDidMount,willUnmount:a.dayHeaderWillUnmount},function(t,r,i,a){return z(`th`,F({ref:t,role:`columnheader`,className:c.concat(r).join(` `),colSpan:e.colSpan},e.extraDataAttrs),z(`div`,{className:`fc-scrollgrid-sync-inner`},z(`a`,{"aria-label":n.format(o,Bl),className:[`fc-col-header-cell-cushion`,e.isSticky?`fc-sticky`:``].join(` `),ref:i},a)))})},t}(Q),Hl=function(e){P(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=bo(n.options.now,n.dateEnv),r.initialNowQueriedMs=new Date().valueOf(),r.state=r.computeTiming().currentState,r}return t.prototype.render=function(){var e=this,t=e.props,n=e.state;return t.children(n.nowDate,n.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var e=this,t=e.props,n=e.context,r=xr(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,t.unit),a=n.dateEnv.add(i,K(1,t.unit)),o=a.valueOf()-r.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:i,todayRange:Ul(i)},nextState:{nowDate:a,todayRange:Ul(a)},waitMs:o}},t.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,r=t.waitMs;this.timeoutId=setTimeout(function(){e.setState(n,function(){e.setTimeout()})},r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=Ts,t}(jn);function Ul(e){var t=W(e);return{start:t,end:U(t,1)}}var Wl=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=q(Gl),t}return t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,i=t.datesRepDistinctDays,a=t.renderIntro,o=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return z(Hl,{unit:`day`},function(e,t){return z(`tr`,{role:`row`},a&&a(`day`),n.map(function(e){return i?z(zl,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:o}):z(Vl,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:o})}))})},t}(Q);function Gl(e,t,n){return e||Il(t,n)}var Kl=function(){function e(e,t){for(var n=e.start,r=e.end,i=[],a=[],o=-1;n<r;)t.isHiddenDay(n)?i.push(o+.5):(o+=1,i.push(o),a.push(n)),n=U(n,1);this.dates=a,this.indices=i,this.cnt=a.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(U(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return r=Math.ceil(r),i=Math.floor(i),r<=i?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(Cr(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),ql=function(){function e(e,t){var n=e.dates,r,i,a;if(t){for(i=n[0].getUTCDay(),r=1;r<n.length&&n[r].getUTCDay()!==i;r+=1);a=Math.ceil(n.length/r)}else a=1,r=n.length;this.rowCnt=a,this.colCnt=r,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t+=1){for(var n=[],r=0;r<this.colCnt;r+=1)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){var n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var i=n.firstIndex,a=n.lastIndex,o=i;o<=a;){var s=Math.floor(o/t),c=Math.min((s+1)*t,a+1);
1r.push({row:s,firstCol:o%t,lastCol:(c-1)%t,isStart:n.isStart&&o===i,isEnd:n.isEnd&&c-1===a}),o=c}return r},e}(),Jl=function(){function e(){this.sliceBusinessHours=q(this._sliceBusinessHours),this.sliceDateSelection=q(this._sliceDateSpan),this.sliceEventStore=q(this._sliceEventStore),this.sliceEventDrag=q(this._sliceInteraction),this.sliceEventResize=q(this._sliceInteraction),this.forceDayIfListItem=!1}return e.prototype.sliceProps=function(e,t,n,r){var i=[...arguments].slice(4),a=e.eventUiBases,o=this.sliceEventStore.apply(this,I([e.eventStore,a,t,n],i));return{dateSelectionSegs:this.sliceDateSelection.apply(this,I([e.dateSelection,a,r],i)),businessHourSegs:this.sliceBusinessHours.apply(this,I([e.businessHours,t,n,r],i)),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag.apply(this,I([e.eventDrag,a,t,n],i)),eventResize:this.sliceEventResize.apply(this,I([e.eventResize,a,t,n],i)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){var n=[...arguments].slice(2);return this._sliceDateSpan.apply(this,I([{range:{start:e,end:xr(e,1)},allDay:!1},{},t],n))},e.prototype._sliceBusinessHours=function(e,t,n,r){var i=[...arguments].slice(4);return e?this._sliceEventStore.apply(this,I([ei(e,Yl(t,!!n),r),{},t,n],i)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r){var i=[...arguments].slice(4);if(e){var a=Pa(e,t,Yl(n,!!r),r);return{bg:this.sliceEventRanges(a.bg,i),fg:this.sliceEventRanges(a.fg,i)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r){var i=[...arguments].slice(4);if(!e)return null;var a=Pa(e.mutatedEvents,t,Yl(n,!!r),r);return{segs:this.sliceEventRanges(a.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},e.prototype._sliceDateSpan=function(e,t,n){var r=[...arguments].slice(3);if(!e)return[];for(var i=io(e,t,n),a=this.sliceRange.apply(this,I([e.range],r)),o=0,s=a;o<s.length;o++){var c=s[o];c.eventRange=i}return a},e.prototype.sliceEventRanges=function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var a=i[r];n.push.apply(n,this.sliceEventRange(a,t))}return n},e.prototype.sliceEventRange=function(e,t){var n=e.range;this.forceDayIfListItem&&e.ui.display===`list-item`&&(n={start:n.start,end:U(n.start,1)});for(var r=this.sliceRange.apply(this,I([n],t)),i=0,a=r;i<a.length;i++){var o=a[i];o.eventRange=e,o.isStart=e.isStart&&o.isStart,o.isEnd=e.isEnd&&o.isEnd}return r},e}();function Yl(e,t){var n=e.activeRange;return t?n:{start:xr(n.start,e.slotMinTime.milliseconds),end:xr(n.end,e.slotMaxTime.milliseconds-864e5)}}function Xl(e,t,n){var r=e.mutatedEvents.instances;for(var i in r)if(!ja(t.validRange,r[i].range))return!1;return Ql({eventDrag:e},n)}function Zl(e,t,n){return ja(t.validRange,e.range)?Ql({dateSelection:e},n):!1}function Ql(e,t){var n=t.getCurrentData(),r=F({businessHours:n.businessHours,dateSelection:``,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:``,eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||$l)(r,t)}function $l(e,t,n,r){return n===void 0&&(n={}),!(e.eventDrag&&!eu(e,t,n,r)||e.dateSelection&&!tu(e,t,n,r))}function eu(e,t,n,r){var i=t.getCurrentData(),a=e.eventDrag,o=a.mutatedEvents,s=o.defs,c=o.instances,l=Ra(s,a.isEvent?e.eventUiBases:{"":i.selectionConfig});r&&(l=Gr(l,r));var u=Ec(e.eventStore,a.affectedEvents.instances),d=u.defs,f=u.instances,p=Ra(d,e.eventUiBases);for(var m in c){var h=c[m],g=h.range,_=l[h.defId],v=s[h.defId];if(!nu(_.constraints,g,u,e.businessHours,t))return!1;var y=t.options.eventOverlap,b=typeof y==`function`?y:null;for(var x in f){var S=f[x];if(Aa(g,S.range)&&(p[S.defId].overlap===!1&&a.isEvent||_.overlap===!1||b&&!b(new Z(t,d[S.defId],S),new Z(t,v,h))))return!1}for(var C=i.eventStore,w=0,T=_.allows;w<T.length;w++){var E=T[w],D=F(F({},n),{range:h.range,allDay:v.allDay}),O=C.defs[v.defId],k=C.instances[m],ee=void 0;if(ee=O?new Z(t,O,k):new Z(t,v),!E(so(D,t),ee))return!1}}return!0}function tu(e,t,n,r){var i=e.eventStore,a=i.defs,o=i.instances,s=e.dateSelection,c=s.range,l=t.getCurrentData().selectionConfig;if(r&&(l=r(l)),!nu(l.constraints,c,i,e.businessHours,t))return!1;var u=t.options.selectOverlap,d=typeof u==`function`?u:null;for(var f in o){var p=o[f];if(Aa(c,p.range)&&(l.overlap===!1||d&&!d(new Z(t,a[p.defId],p),null)))return!1}for(var m=0,h=l.allows;m<h.length;m++){var g=h[m];if(!g(so(F(F({},n),s),t),null))return!1}return!0}function nu(e,t,n,r,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(!au(ru(s,t,n,r,i),t))return!1}return!0}function ru(e,t,n,r,i){return e===`businessHours`?iu(ei(r,t,i)):typeof e==`string`?iu(ra(n,function(t){return t.groupId===e})):typeof e==`object`&&e?iu(ei(e,t,i)):[]}function iu(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function au(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(ja(i,t))return!0}return!1}var ou=/^(visible|hidden)$/,su=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,As(t.props.elRef,e)},t}return t.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,i=[`fc-scroller`];return t&&(n?i.push(`fc-scroller-liquid-absolute`):i.push(`fc-scroller-liquid`)),z(`div`,{ref:this.handleEl,className:i.join(` `),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||``,right:r&&-(e.overcomeRight||0)||``,bottom:r&&-(e.overcomeBottom||0)||``,marginLeft:!r&&-(e.overcomeLeft||0)||``,marginRight:!r&&-(e.overcomeRight||0)||``,marginBottom:!r&&-(e.overcomeBottom||0)||``,maxHeight:e.maxHeight||``}},e.children)},t.prototype.needsXScrolling=function(){if(ou.test(this.props.overflowX))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1)if(n[r].getBoundingClientRect().width>t)return!0;return!1},t.prototype.needsYScrolling=function(){if(ou.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1)if(n[r].getBoundingClientRect().height>t)return!0;return!1},t.prototype.getXScrollbarWidth=function(){return ou.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return ou.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(Q),cu=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var r=t,i=r.depths,a=r.currentMap,o=!1,s=!1;e===null?(--i[n],i[n]||(delete a[n],delete t.callbackMap[n],o=!0)):(o=n in a,a[n]=e,i[n]=(i[n]||0)+1,s=!0),t.masterCallback&&(o&&t.masterCallback(null,String(n)),s&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||=this.callbackMap[e]=function(n){t.handleValue(n,String(e))},n},e.prototype.collect=function(e,t,n){return Qr(this.currentMap,e,t,n)},e.prototype.getAll=function(){return qr(this.currentMap)},e}();function lu(e){for(var t=Bn(e,`.fc-scrollgrid-shrink`),n=0,r=0,i=t;r<i.length;r++){var a=i[r];n=Math.max(n,vr(a))}return Math.ceil(n)}function uu(e,t){return e.liquid&&t.liquid}function du(e,t){return t.maxHeight!=null||uu(e,t)}function fu(e,t,n,r){var i=n.expandRows;return typeof t.content==`function`?t.content(n):z(`table`,{role:`presentation`,className:[t.tableClassName,e.syncRowHeights?`fc-scrollgrid-sync-table`:``].join(` `),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:``}},n.tableColGroupNode,z(r?`thead`:`tbody`,{role:`presentation`},typeof t.rowContent==`function`?t.rowContent(n):t.rowContent))}function pu(e,t){return bi(e,t,Jr)}function mu(e,t){for(var n=[],r=0,i=e;r<i.length;r++)for(var a=i[r],o=a.span||1,s=0;s<o;s+=1)n.push(z(`col`,{style:{width:a.width===`shrink`?hu(t):a.width||``,minWidth:a.minWidth||``}}));return z.apply(void 0,I([`colgroup`,{}],n))}function hu(e){return e??4}function gu(e){for(var t=0,n=e;t<n.length;t++)if(n[t].width===`shrink`)return!0;return!1}function _u(e,t){var n=[`fc-scrollgrid`,t.theme.getClass(`table`)];return e&&n.push(`fc-scrollgrid-liquid`),n}function vu(e,t){var n=[`fc-scrollgrid-section`,`fc-scrollgrid-section-`+e.type,e.className];return t&&e.liquid&&e.maxHeight==null&&n.push(`fc-scrollgrid-section-liquid`),e.isSticky&&n.push(`fc-scrollgrid-section-sticky`),n}function yu(e){return z(`div`,{className:`fc-scrollgrid-sticky-shim`,style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function bu(e){var t=e.stickyHeaderDates;return(t==null||t===`auto`)&&(t=e.height===`auto`||e.viewHeight===`auto`),t}function xu(e){var t=e.stickyFooterScrollbar;return(t==null||t===`auto`)&&(t=e.height===`auto`||e.viewHeight===`auto`),t}var Su=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.processCols=q(function(e){return e},pu),t.renderMicroColGroup=q(mu),t.scrollerRefs=new cu,t.scrollerElRefs=new cu(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.setState(F({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=e.context,i=t.sections||[],a=this.processCols(t.cols),o=this.renderMicroColGroup(a,n.shrinkWidth),s=_u(t.liquid,r);t.collapsibleWidth&&s.push(`fc-scrollgrid-collapsible`);for(var c=i.length,l=0,u,d=[],f=[],p=[];l<c&&(u=i[l]).type===`header`;)d.push(this.renderSection(u,o,!0)),l+=1;for(;l<c&&(u=i[l]).type===`body`;)f.push(this.renderSection(u,o,!1)),l+=1;for(;l<c&&(u=i[l]).type===`footer`;)p.push(this.renderSection(u,o,!0)),l+=1;var m=!qo(),h={role:`rowgroup`};return z(`table`,{role:`grid`,className:s.join(` `),style:{height:t.height}},!!(!m&&d.length)&&z.apply(void 0,I([`thead`,h],d)),!!(!m&&f.length)&&z.apply(void 0,I([`tbody`,h],f)),!!(!m&&p.length)&&z.apply(void 0,I([`tfoot`,h],p)),m&&z.apply(void 0,I(I(I([`tbody`,h],d),f),p)))},t.prototype.renderSection=function(e,t,n){return`outerContent`in e?z(V,{key:e.key},e.outerContent):z(`tr`,{key:e.key,role:`presentation`,className:vu(e,this.props.liquid
1).join(` `)},this.renderChunkTd(e,t,e.chunk,n))},t.prototype.renderChunkTd=function(e,t,n,r){if(`outerContent`in n)return n.outerContent;var i=this.props,a=this.state,o=a.forceYScrollbars,s=a.scrollerClientWidths,c=a.scrollerClientHeights,l=du(i,e),u=uu(i,e),d=i.liquid?o?`scroll`:l?`auto`:`hidden`:`visible`,f=e.key,p=fu(e,n,{tableColGroupNode:t,tableMinWidth:``,clientWidth:!i.collapsibleWidth&&s[f]!==void 0?s[f]:null,clientHeight:c[f]===void 0?null:c[f],expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},r);return z(r?`th`:`td`,{ref:n.elRef,role:`presentation`},z(`div`,{className:`fc-scroller-harness`+(u?` fc-scroller-harness-liquid`:``)},z(su,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:d,overflowX:i.liquid?`hidden`:`visible`,maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},p)))},t.prototype._handleScrollerEl=function(e,t){var n=Cu(this.props.sections,t);n&&As(n.chunk.scrollerElRef,e)},t.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(){this.handleSizing()},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},t.prototype.computeShrinkWidth=function(){return gu(this.props.cols)?lu(this.scrollerElRefs.getAll()):0},t.prototype.computeScrollerDims=function(){var e=ss(),t=this,n=t.scrollerRefs,r=t.scrollerElRefs,i=!1,a={},o={};for(var s in n.currentMap){var c=n.currentMap[s];if(c&&c.needsYScrolling()){i=!0;break}}for(var l=0,u=this.props.sections;l<u.length;l++){var s=u[l].key,d=r.currentMap[s];if(d){var f=d.parentNode;a[s]=Math.floor(f.getBoundingClientRect().width-(i?e.y:0)),o[s]=Math.floor(f.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:a,scrollerClientHeights:o}},t}(Q);Su.addStateEquality({scrollerClientWidths:Jr,scrollerClientHeights:Jr});function Cu(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i.key===t)return i}return null}var wu=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.elRef=B(),t}return t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,i=t.seg,a=i.eventRange,o=a.ui,s={event:new Z(n,a.def,a.instance),view:n.viewApi,timeText:t.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!t.disableDragging&&Ha(i,n),isStartResizable:!t.disableResizing&&Ua(i,n),isEndResizable:!t.disableResizing&&Wa(i),isMirror:!!(t.isDragging||t.isResizing||t.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!t.isPast,isFuture:!!t.isFuture,isToday:!!t.isToday,isSelected:!!t.isSelected,isDragging:!!t.isDragging,isResizing:!!t.isResizing},c=qa(s).concat(o.classNames);return z($,{hookProps:s,classNames:r.eventClassNames,content:r.eventContent,defaultContent:t.defaultContent,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount,elRef:this.elRef},function(e,n,r,i){return t.children(e,c.concat(n),r,i,s)})},t.prototype.componentDidMount=function(){Ia(this.elRef.current,this.props.seg)},t.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&Ia(this.elRef.current,t)},t}(Q),Tu=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=t.seg;return z(wu,{seg:r,timeText:Ga(r,n.options.eventTimeFormat||t.defaultTimeFormat,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd),disableDragging:t.disableDragging,disableResizing:t.disableResizing,defaultContent:t.defaultContent||Eu,isDragging:t.isDragging,isResizing:t.isResizing,isDateSelecting:t.isDateSelecting,isSelected:t.isSelected,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},function(e,i,a,o,s){return z(`a`,F({className:t.extraClassNames.concat(i).join(` `),style:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},ref:e},Ya(r,n)),z(`div`,{className:`fc-event-main`,ref:a,style:{color:s.textColor}},o),s.isStartResizable&&z(`div`,{className:`fc-event-resizer fc-event-resizer-start`}),s.isEndResizable&&z(`div`,{className:`fc-event-resizer fc-event-resizer-end`}))})},t}(Q);function Eu(e){return z(`div`,{className:`fc-event-main-frame`},e.timeText&&z(`div`,{className:`fc-event-time`},e.timeText),z(`div`,{className:`fc-event-title-container`},z(`div`,{className:`fc-event-title fc-sticky`},e.event.title||z(V,null,`\xA0`))))}var Du=function(e){return z(Ts.Consumer,null,function(t){var n=t.options;return z($,{hookProps:{isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi},classNames:n.nowIndicatorClassNames,content:n.nowIndicatorContent,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)})},Ou=J({day:`numeric`}),ku=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options;return z(Vs,{hookProps:Au({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:n.viewApi,dateEnv:n.dateEnv}),content:r.dayCellContent,defaultContent:t.defaultContent},t.children)},t}(Q);function Au(e){var t=e.date,n=e.dateEnv,r=Qo(t,e.todayRange,null,e.dateProfile);return F(F(F({date:n.toDate(t),view:e.viewApi},r),{dayNumberText:e.showDayNumber?n.format(t,Ou):``}),e.extraProps)}var ju=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.refineHookProps=xi(Au),t.normalizeClassNames=Ws(),t}return t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,i=this.refineHookProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:n.viewApi,dateEnv:n.dateEnv}),a=$o(i,n.theme).concat(i.isDisabled?[]:this.normalizeClassNames(r.dayCellClassNames,i)),o=i.isDisabled?{}:{"data-date":_i(t.date)};return z(Us,{hookProps:i,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount,elRef:t.elRef},function(e){return t.children(e,a,o,i.isDisabled)})},t}(Q);function Mu(e){return z(`div`,{className:`fc-`+e})}var Nu=function(e){return z(wu,{defaultContent:Pu,seg:e.seg,timeText:``,disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},function(e,t,n,r,i){return z(`div`,{ref:e,className:[`fc-bg-event`].concat(t).join(` `),style:{backgroundColor:i.backgroundColor}},r)})};function Pu(e){return e.event.title&&z(`div`,{className:`fc-event-title`},e.event.title)}var Fu=function(e){return z(Ts.Consumer,null,function(t){var n=t.dateEnv,r=t.options,i=e.date,a=r.weekNumberFormat||e.defaultFormat;return z($,{hookProps:{num:n.computeWeekNumber(i),text:n.format(i,a),date:i}
1,classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:Iu,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)})};function Iu(e){return e.text}var Lu=10,Ru=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={titleId:qn()},t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&As(t.props.elRef,e)},t.handleDocumentMouseDown=function(e){var n=Wn(e);t.rootEl.contains(n)||t.handleCloseClick()},t.handleDocumentKeyDown=function(e){e.key===`Escape`&&t.handleCloseClick()},t.handleCloseClick=function(){var e=t.props.onClose;e&&e()},t}return t.prototype.render=function(){var e=this.context,t=e.theme,n=e.options,r=this,i=r.props,a=r.state,o=[`fc-popover`,t.getClass(`popover`)].concat(i.extraClassNames||[]);return Pn(z(`div`,F({id:i.id,className:o.join(` `),"aria-labelledby":a.titleId},i.extraAttrs,{ref:this.handleRootEl}),z(`div`,{className:`fc-popover-header `+t.getClass(`popoverHeader`)},z(`span`,{className:`fc-popover-title`,id:a.titleId},i.title),z(`span`,{className:`fc-popover-close `+t.getIconClass(`close`),title:n.closeHint,onClick:this.handleCloseClick})),z(`div`,{className:`fc-popover-body `+t.getClass(`popoverContent`)},i.children)),i.parentEl)},t.prototype.componentDidMount=function(){document.addEventListener(`mousedown`,this.handleDocumentMouseDown),document.addEventListener(`keydown`,this.handleDocumentKeyDown),this.updateSize()},t.prototype.componentWillUnmount=function(){document.removeEventListener(`mousedown`,this.handleDocumentMouseDown),document.removeEventListener(`keydown`,this.handleDocumentKeyDown)},t.prototype.updateSize=function(){var e=this.context.isRtl,t=this.props,n=t.alignmentEl,r=t.alignGridTop,i=this.rootEl,a=ps(n);if(a){var o=i.getBoundingClientRect(),s=r?H(n,`.fc-scrollgrid`).getBoundingClientRect().top:a.top,c=e?a.right-o.width:a.left;s=Math.max(s,Lu),c=Math.min(c,document.documentElement.clientWidth-Lu-o.width),c=Math.max(c,Lu);var l=i.offsetParent.getBoundingClientRect();Hn(i,{top:s-l.top,left:c-l.left})}},t}(Q),zu=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,useEventCenter:!1}):t.context.unregisterInteractiveComponent(t)},t}return t.prototype.render=function(){var e=this.context,t=e.options,n=e.dateEnv,r=this.props,i=r.startDate,a=r.todayRange,o=r.dateProfile,s=n.format(i,t.dayPopoverFormat);return z(ju,{date:i,dateProfile:o,todayRange:a,elRef:this.handleRootEl},function(e,t,n){return z(Ru,{elRef:e,id:r.id,title:s,extraClassNames:[`fc-more-popover`].concat(t),extraAttrs:n,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},z(ku,{date:i,dateProfile:o,todayRange:a},function(e,t){return t&&z(`div`,{className:`fc-more-popover-misc`,ref:e},t)}),r.children)})},t.prototype.queryHit=function(e,t,n,r){var i=this,a=i.rootEl,o=i.props;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:o.dateProfile,dateSpan:F({allDay:!0,range:{start:o.startDate,end:o.endDate}},o.extraDateSpan),dayEl:a,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null},t}(js),Bu=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.linkElRef=B(),t.state={isPopoverOpen:!1,popoverId:qn()},t.handleClick=function(e){var n=t,r=n.props,i=n.context,a=i.options.moreLinkClick,o=Hu(r).start;function s(e){var t=e.eventRange,n=t.def,r=t.instance,a=t.range;return{event:new Z(i,n,r),start:i.dateEnv.toDate(a.start),end:i.dateEnv.toDate(a.end),isStart:e.isStart,isEnd:e.isEnd}}typeof a==`function`&&(a=a({date:o,allDay:!!r.allDayDate,allSegs:r.allSegs.map(s),hiddenSegs:r.hiddenSegs.map(s),jsEvent:e,view:i.viewApi})),!a||a===`popover`?t.setState({isPopoverOpen:!0}):typeof a==`string`&&i.calendarApi.zoomTo(o,a)},t.handlePopoverClose=function(){t.setState({isPopoverOpen:!1})},t}return t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.state;return z(Ts.Consumer,null,function(t){var i=t.viewApi,a=t.options,o=t.calendarApi,s=a.moreLinkText,c=n.moreCnt,l=Hu(n),u=typeof s==`function`?s.call(o,c):`+`+c+` `+s,d=hr(a.moreLinkHint,[c],u),f={num:c,shortText:`+`+c,text:u,view:i};return z(V,null,!!n.moreCnt&&z($,{elRef:e.linkElRef,hookProps:f,classNames:a.moreLinkClassNames,content:a.moreLinkContent,defaultContent:n.defaultContent||Vu,didMount:a.moreLinkDidMount,willUnmount:a.moreLinkWillUnmount},function(t,i,a,o){return n.children(t,[`fc-more-link`].concat(i),a,o,e.handleClick,d,r.isPopoverOpen,r.isPopoverOpen?r.popoverId:``)}),r.isPopoverOpen&&z(zu,{id:r.popoverId,startDate:l.start,endDate:l.end,dateProfile:n.dateProfile,todayRange:n.todayRange,extraDateSpan:n.extraDateSpan,parentEl:e.parentEl,alignmentEl:n.alignmentElRef.current,alignGridTop:n.alignGridTop,onClose:e.handlePopoverClose},n.popoverContent()))})},t.prototype.componentDidMount=function(){this.updateParentEl()},t.prototype.componentDidUpdate=function(){this.updateParentEl()},t.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=H(this.linkElRef.current,`.fc-view-harness`))},t}(Q);function Vu(e){return e.text}function Hu(e){if(e.allDayDate)return{start:e.allDayDate,end:U(e.allDayDate,1)};var t=e.hiddenSegs;return{start:Uu(t),end:Gu(t)}}function Uu(e){return e.reduce(Wu).eventRange.range.start}function Wu(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Gu(e){return e.reduce(Ku).eventRange.range.end}function Ku(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}var qu=function(e){P(t,e);function t(t,n){n===void 0&&(n={});var r=e.call(this)||this;return r.isRendering=!1,r.isRendered=!1,r.currentClassNames=[],r.customContentRenderId=0,r.handleAction=function(e){switch(e.type){case`SET_EVENT_DRAG`:case`SET_EVENT_RESIZE`:r.renderRunner.tryDrain()}},r.handleData=function(e){r.currentData=e,r.renderRunner.request(e.calendarOptions.rerenderDelay)},r.handleRenderRequest=function(){if(r.isRendering){r.isRendered=!0;var e=r.currentData;Mn(z(Fl,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},function(t,n,i,a){return r.setClassNames(t),r.setHeight(n),z(Bs.Provider,{value:r.customContentRenderId},z(Ml,F({isHeightAuto:i,forPrint:a},e)))}),r.el)}else r.isRendered&&(r.isRendered=!1,In(r.el),r.setClassNames([]),r.setHeight(``));Fn()},r.el=t,r.renderRunner=new Xc(r.handleRenderRequest),new el({optionOverrides:n,calendarApi:r,onAction:r.handleAction,onData:r.handleData}),r}return Object.defineProperty(t.prototype,"view",{get:function(){return this.currentData.viewApi}
1,enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()},t.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},t.prototype.updateSize=function(){e.prototype.updateSize.call(this),Fn()},t.prototype.batchRendering=function(e){this.renderRunner.pause(`batchRendering`),e(),this.renderRunner.resume(`batchRendering`)},t.prototype.pauseRendering=function(){this.renderRunner.pause(`pauseRendering`)},t.prototype.resumeRendering=function(){this.renderRunner.resume(`pauseRendering`,!0)},t.prototype.resetOptions=function(e,t){this.currentDataManager.resetOptions(e,t)},t.prototype.setClassNames=function(e){if(!bi(e,this.currentClassNames)){for(var t=this.el.classList,n=0,r=this.currentClassNames;n<r.length;n++){var i=r[n];t.remove(i)}for(var a=0,o=e;a<o.length;a++){var i=o[a];t.add(i)}this.currentClassNames=e}},t.prototype.setHeight=function(e){Un(this.el,`height`,e)},t}(xo),Ju={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0};function Yu(e){return typeof e==`object`&&(Array.isArray(e)?e=Array.prototype.slice.call(e):e&&={...e}),e}function Xu(e,t){let n={};for(let r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r],r));return n}function Zu(e){return function(t){return{vue:e(t)}}}function Qu(e){return Ms({contentTypeHandlers:{vue:()=>$u(e)}})}function $u(e){let t,n,r;function i(i,a){if(t!==i&&(t&&n&&n.unmount(),t=i),n)r.content=a;else{n=ed(a,e);let t=document.createElement(`span`);i.appendChild(t),r=n.mount(t)}}function a(){n&&n.unmount()}return{render:i,destroy:a}}function ed(e,n){return ee({data(){return{content:e}},render(){let{content:e}=this;return e.length===1?e[0]:t(`span`,{},e)}})}var td=a({props:{options:Object},data:nd,render(){return t(`div`,{attrs:{"data-fc-render-id":this.renderId}})},mounted(){let e=this.$options;e.slotOptions=Xu(this.$slots,Zu);let t=this.buildOptions(this.options,this.$.appContext),n=new qu(this.$el,t);e.calendar=n,n.render()},methods:{getApi:id,buildOptions:rd},beforeUpdate(){this.getApi().resumeRendering()},beforeUnmount(){this.getApi().destroy()},watch:ad()});function nd(){return{renderId:0}}function rd(e,t){let n=this.$options;return e||={},{...n.slotOptions,...e,plugins:(e.plugins||[]).concat([Qu(t)])}}function id(){return this.$options.calendar}function ad(){let e={options:{deep:!0,handler(e){let t=this.getApi();t.pauseRendering();let n=this.buildOptions(e,this.$.appContext);t.resetOptions(n),this.renderId++}}};for(let t in Ju)e[`options.${t}`]={deep:!0,handler(e){if(e!==void 0){let n=this.getApi();n.pauseRendering(),n.resetOptions({[t]:Yu(e)},!0),this.renderId++}}};return e}var od=td,sd=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.headerElRef=B(),t}return t.prototype.renderSimpleLayout=function(e,t){var n=this,r=n.props,i=n.context,a=[],o=bu(i.options);return e&&a.push({type:`header`,key:`header`,isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:`fc-col-header`,rowContent:e}}),a.push({type:`body`,key:`body`,liquid:!0,chunk:{content:t}}),z(qs,{viewSpec:i.viewSpec},function(e,t){return z(`div`,{ref:e,className:[`fc-daygrid`].concat(t).join(` `)},z(Su,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:a}))})},t.prototype.renderHScrollLayout=function(e,t,n,r){var i=this.context.pluginHooks.scrollGridImpl;if(!i)throw Error(`No ScrollGrid implementation`);var a=this,o=a.props,s=a.context,c=!o.forPrint&&bu(s.options),l=!o.forPrint&&xu(s.options),u=[];return e&&u.push({type:`header`,key:`header`,isSticky:c,chunks:[{key:`main`,elRef:this.headerElRef,tableClassName:`fc-col-header`,rowContent:e}]}),u.push({type:`body`,key:`body`,liquid:!0,chunks:[{key:`main`,content:t}]}),l&&u.push({type:`footer`,key:`footer`,isSticky:!0,chunks:[{key:`main`,content:yu}]}),z(qs,{viewSpec:s.viewSpec},function(e,t){return z(`div`,{ref:e,className:[`fc-daygrid`].concat(t).join(` `)},z(i,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:u}))})},t}(js);function cd(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var i=0,a=e;i<a.length;i++){var o=a[i];n[o.row].push(o)}return n}function ld(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var i=0,a=e;i<a.length;i++){var o=a[i];n[o.firstCol].push(o)}return n}function ud(e,t){var n=[];if(e){for(var r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var i=0,a=e.segs;i<a.length;i++){var o=a[i];n[o.row].segs.push(o)}}else for(var r=0;r<t;r+=1)n[r]=null;return n}var dd=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.props,t=ns(this.context,e.date);return z(ku,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraHookProps:e.extraHookProps,defaultContent:fd},function(n,r){return(r||e.forceDayTop)&&z(`div`,{className:`fc-daygri
1d-day-top`,ref:n},z(`a`,F({id:e.dayNumberId,className:`fc-daygrid-day-number`},t),r||z(V,null,`\xA0`)))})},t}(Q);function fd(e){return e.dayNumberText}var pd=J({hour:`numeric`,minute:`2-digit`,omitZeroMinute:!0,meridiem:`narrow`});function md(e){var t=e.eventRange.ui.display;return t===`list-item`||t===`auto`&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}var hd=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.props;return z(Tu,F({},e,{extraClassNames:[`fc-daygrid-event`,`fc-daygrid-block-event`,`fc-h-event`],defaultTimeFormat:pd,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))},t}(Q),gd=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options.eventTimeFormat||pd,i=Ga(t.seg,r,n,!0,t.defaultDisplayEventEnd);return z(wu,{seg:t.seg,timeText:i,defaultContent:_d,isDragging:t.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:t.isSelected,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},function(e,r,i,a){return z(`a`,F({className:[`fc-daygrid-event`,`fc-daygrid-dot-event`].concat(r).join(` `),ref:e},Ya(t.seg,n)),a)})},t}(Q);
1function _d(e){return z(V,null,z(`div`,{className:`fc-daygrid-event-dot`,style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&z(`div`,{className:`fc-event-time`},e.timeText),z(`div`,{className:`fc-event-title`},e.event.title||z(V,null,`\xA0`)))}var vd=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.compileSegs=q(yd),t}return t.prototype.render=function(){var e=this.props,t=this.compileSegs(e.singlePlacements),n=t.allSegs,r=t.invisibleSegs;return z(Bu,{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:function(){var t=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return z(V,null,n.map(function(n){var r=n.eventRange.instance.instanceId;return z(`div`,{className:`fc-daygrid-event-harness`,key:r,style:{visibility:t[r]?`hidden`:``}},md(n)?z(gd,F({seg:n,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Ka(n,e.todayRange))):z(hd,F({seg:n,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Ka(n,e.todayRange))))}))}},function(e,t,n,r,i,a,o,s){return z(`a`,F({ref:e,className:[`fc-daygrid-more-link`].concat(t).join(` `),title:a,"aria-expanded":o,"aria-controls":s},er(i)),r)})},t}(Q);function yd(e){for(var t=[],n=[],r=0,i=e;r<i.length;r++){var a=i[r];t.push(a.seg),a.isVisible||n.push(a.seg)}return{allSegs:t,invisibleSegs:n}}var bd=J({week:`narrow`}),xd=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.rootElRef=B(),t.state={dayNumberId:qn()},t.handleRootEl=function(e){As(t.rootElRef,e),As(t.props.elRef,e)},t}return t.prototype.render=function(){var e=this,t=e.context,n=e.props,r=e.state,i=e.rootElRef,a=n.date,o=n.dateProfile,s=ns(t,a,`week`);return z(ju,{date:a,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,extraHookProps:n.extraHookProps,elRef:this.handleRootEl},function(e,t,c,l){return z(`td`,F({ref:e,role:`gridcell`,className:[`fc-daygrid-day`].concat(t,n.extraClassNames||[]).join(` `)},c,n.extraDataAttrs,n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}
1),z(`div`,{className:`fc-daygrid-day-frame fc-scrollgrid-sync-inner`,ref:n.innerElRef},n.showWeekNumber&&z(Fu,{date:a,defaultFormat:bd},function(e,t,n,r){return z(`a`,F({ref:e,className:[`fc-daygrid-week-number`].concat(t).join(` `)},s),r)}),!l&&z(dd,{date:a,dateProfile:o,showDayNumber:n.showDayNumber,dayNumberId:r.dayNumberId,forceDayTop:n.forceDayTop,todayRange:n.todayRange,extraHookProps:n.extraHookProps}),z(`div`,{className:`fc-daygrid-day-events`,ref:n.fgContentElRef},n.fgContent,z(`div`,{className:`fc-daygrid-day-bottom`,style:{marginTop:n.moreMarginTop}},z(vd,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),z(`div`,{className:`fc-daygrid-day-bg`},n.bgContent)))})},t}(js);function Sd(e,t,n,r,i,a,o){var s=new Ed;s.allowReslicing=!0,s.strictOrder=r,t===!0||n===!0?(s.maxCoord=a,s.hiddenConsumes=!0):typeof t==`number`?s.maxStackCnt=t:typeof n==`number`&&(s.maxStackCnt=n,s.hiddenConsumes=!0);for(var c=[],l=[],u=0;u<e.length;u+=1){var d=e[u],f=i[d.eventRange.instance.instanceId];f==null?l.push(d):c.push({index:u,thickness:f,span:{start:d.firstCol,end:d.lastCol+1}})}for(var p=s.addSegs(c),m=Cd(s.toRects(),e,o),h=m.singleColPlacements,g=m.multiColPlacements,_=m.leftoverMargins,v=[],y=[],b=0,x=l;b<x.length;b++){var d=x[b];g[d.firstCol].push({seg:d,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var S=d.firstCol;S<=d.lastCol;S+=1)h[S].push({seg:Td(d,S,S+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(var S=0;S<o.length;S+=1)v.push(0);for(var C=0,w=p;C<w.length;C++){var T=w[C],d=e[T.index],E=T.span;g[E.start].push({seg:Td(d,E.start,E.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var S=E.start;S<E.end;S+=1)v[S]+=1,h[S].push({seg:Td(d,S,S+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(var S=0;S<o.length;S+=1)y.push(_[S]);return{singleColPlacements:h,multiColPlacements:g,moreCnts:v,moreMarginTops:y}}function Cd(e,t,n){for(var r=wd(e,n.length),i=[],a=[],o=[],s=0;s<n.length;s+=1){for(var c=r[s],l=[],u=0,d=0,f=0,p=c;f<p.length;f++){var m=p[f],h=t[m.index];l.push({seg:Td(h,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:m.levelCoord,marginTop:m.levelCoord-u}),u=m.levelCoord+m.thickness}var g=[];u=0,d=0;for(var _=0,v=c;_<v.length;_++){var m=v[_],h=t[m.index],y=m.span.end-m.span.start>1,b=m.span.start===s;d+=m.levelCoord-u,u=m.levelCoord+m.thickness,y?(d+=m.thickness,b&&g.push({seg:Td(h,m.span.start,m.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:m.levelCoord,marginTop:0})):b&&(g.push({seg:Td(h,m.span.start,m.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:m.levelCoord,marginTop:d}),d=0)}i.push(l),a.push(g),o.push(d)}return{singleColPlacements:i,multiColPlacements:a,leftoverMargins:o}}function wd(e,t){for(var n=[],r=0;r<t;r+=1)n.push([]);for(var i=0,a=e;i<a.length;i++)for(var o=a[i],r=o.span.start;r<o.span.end;r+=1)n[r].push(o);return n}function Td(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;var i=e.eventRange,a=i.range,o=Oa(a,{start:r[t].date,end:U(r[n-1].date,1)});return F(F({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:F(F({},i.ui),{durationEditable:!1}),instance:i.instance,range:o},isStart:e.isStart&&o.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===a.end.valueOf()})}var Ed=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.hiddenConsumes=!1,t.forceHidden={},t}return t.prototype.addSegs=function(t){for(var n=this,r=e.prototype.addSegs.call(this,t),i=this.entriesByLevel,a=function(e){return!n.forceHidden[pl(e)]},o=0;o<i.length;o+=1)i[o]=i[o].filter(a);return r},t.prototype.handleInvalidInsertion=function(t,n,r){var i=this,a=i.entriesByLevel,o=i.forceHidden,s=t.touchingEntry,c=t.touchingLevel,l=t.touchingLateral;if(this.hiddenConsumes&&s){var u=pl(s);if(!o[u]){if(this.allowReslicing){var d=F(F({},s),{span:gl(s.span,n.span)}),f=pl(d);o[f]=!0,a[c][l]=d,this.splitEntry(s,n,r)}else o[u]=!0,r.push(s)}}return e.prototype.handleInvalidInsertion.call(this,t,n,r)},t}(dl),Dd=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.cellElRefs=new cu,t.frameElRefs=new cu,t.fgElRefs=new cu,t.segHarnessRefs=new cu,t.rootElRef=B(),t.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},t}return t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.state,i=t.context.options,a=n.cells.length,o=ld(n.businessHourSegs,a),s=ld(n.bgEventSegs,a),c=ld(this.getHighlightSegs(),a),l=ld(this.getMirrorSegs(),a),u=Sd(Ba(n.fgEventSegs,i.eventOrder),n.dayMaxEvents,n.dayMaxEventRows,i.eventOrderStrict,r.eventInstanceHeights,r.maxContentHeight,n.cells),d=u.singleColPlacements,f=u.multiColPlacements,p=u.moreCnts,m=u.moreMarginTops,h=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{};return z(`tr`,{ref:this.rootElRef,role:`row`},n.renderIntro&&n.renderIntro(),n.cells.map(function(t,r){var i=e.renderFgSegs(r,n.forPrint?d[r]:f[r],n.todayRange,h),a=e.renderFgSegs(r,Od(l[r],f),n.todayRange,{},!!n.eventDrag,!!n.eventResize,!1);return z(xd,{key:t.key,elRef:e.cellElRefs.createRef(t.key),innerElRef:e.frameElRefs.createRef(t.key),dateProfile:n.dateProfile,date:t.date,showDayNumber:n.showDayNumbers,showWeekNumber:n.showWeekNumbers&&r===0,forceDayTop:n.showWeekNumbers,todayRange:n.todayRange,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,extraHookProps:t.extraHookProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:p[r],moreMarginTop:m[r],singlePlacements:d[r],fgContentElRef:e.fgElRefs.createRef(t.key),fgContent:z(V,null,z(V,null,i),z(V,null,a)),bgContent:z(V,null,e.renderFillSegs(c[r],`highlight`),e.renderFillSegs(o[r],`non-business`),e.renderFillSegs(s[r],`bg-event`))})}))},t.prototype.componentDidMount=function(){this.updateSizing(!0)},t.prototype.componentDidUpdate=function(e,t){var n=this.props;this.updateSizing(!Jr(e,n))},t.prototype.getHighlightSegs=function(){var e=this.props;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs},t.prototype.getMirrorSegs=function(){var e=this.props;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]},t.prototype.renderFgSegs=function(e,t,n,r,i,a,o){var s=this.context,c=this.props.eventSelection,l=this.state.framePositions,u=this.props.cells.length===1,d=i||a||o,f=[];if(l)for(var p=0,m=t;p<m.length;p++){var h=m[p],g=h.seg,_=g.eventRange.instance.instanceId,v=_+`:`+e,y=h.isVisible&&!r[_],b=h.isAbsolute,x=``,S=``;b&&(s.isRtl?(S=0,x=l.lefts[g.lastCol]-l.lefts[g.firstCol]):(x=0,S=l.rights[g.firstCol]-l.rights[g.lastCol])),f.push(z(`div`,{className:`fc-daygri
1d-event-harness`+(b?` fc-daygrid-event-harness-abs`:``),key:v,ref:d?null:this.segHarnessRefs.createRef(v),style:{visibility:y?``:`hidden`,marginTop:b?``:h.marginTop,top:b?h.absoluteTop:``,left:x,right:S}},md(g)?z(gd,F({seg:g,isDragging:i,isSelected:_===c,defaultDisplayEventEnd:u},Ka(g,n))):z(hd,F({seg:g,isDragging:i,isResizing:a,isDateSelecting:o,isSelected:_===c,defaultDisplayEventEnd:u},Ka(g,n)))))}return f},t.prototype.renderFillSegs=function(e,t){var n=this.context.isRtl,r=this.props.todayRange,i=this.state.framePositions,a=[];if(i)for(var o=0,s=e;o<s.length;o++){var c=s[o],l=n?{right:0,left:i.lefts[c.lastCol]-i.lefts[c.firstCol]}:{left:0,right:i.rights[c.firstCol]-i.rights[c.lastCol]};a.push(z(`div`,{key:Ja(c.eventRange),className:`fc-daygrid-bg-harness`,style:l},t===`bg-event`?z(Nu,F({seg:c},Ka(c,r))):Mu(t)))}return z.apply(void 0,I([V,{}],a))},t.prototype.updateSizing=function(e){var t=this,n=t.props,r=t.frameElRefs;if(!n.forPrint&&n.clientWidth!==null){if(e){var i=n.cells.map(function(e){return r.currentMap[e.key]});if(i.length){var a=this.rootElRef.current;this.setState({framePositions:new ys(a,i,!0,!1)})}}var o=this.state.eventInstanceHeights,s=this.queryEventInstanceHeights(),c=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.setState({eventInstanceHeights:F(F({},o),s),maxContentHeight:c?this.computeMaxContentHeight():null})}},t.prototype.queryEventInstanceHeights=function(){var e=this.segHarnessRefs.currentMap,t={};for(var n in e){var r=Math.round(e[n].getBoundingClientRect().height),i=n.split(`:`)[0];t[i]=Math.max(t[i]||0,r)}return t},t.prototype.computeMaxContentHeight=function(){var e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top},t.prototype.getCellEls=function(){var e=this.cellElRefs.currentMap;return this.props.cells.map(function(t){return e[t.key]})},t}(js);Dd.addStateEquality({eventInstanceHeights:Jr});function Od(e,t){if(!e.length)return[];var n=kd(t);return e.map(function(e){return{seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}})}function kd(e){for(var t={},n=0,r=e;n<r.length;n++)for(var i=r[n],a=0,o=i;a<o.length;a++){var s=o[a];t[s.seg.eventRange.instance.instanceId]=s.absoluteTop}return t}var Ad=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.splitBusinessHourSegs=q(cd),t.splitBgEventSegs=q(cd),t.splitFgEventSegs=q(cd),t.splitDateSelectionSegs=q(cd),t.splitEventDrag=q(ud),t.splitEventResize=q(ud),t.rowRefs=new cu,t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t}return t.prototype.render=function(){var e=this,t=this.props,n=t.dateProfile,r=t.dayMaxEventRows,i=t.dayMaxEvents,a=t.expandRows,o=t.cells.length,s=this.splitBusinessHourSegs(t.businessHourSegs,o),c=this.splitBgEventSegs(t.bgEventSegs,o),l=this.splitFgEventSegs(t.fgEventSegs,o),u=this.splitDateSelectionSegs(t.dateSelectionSegs,o),d=this.splitEventDrag(t.eventDrag,o),f=this.splitEventResize(t.eventResize,o),p=i===!0||r===!0;return p&&!a&&(p=!1,r=null,i=null),z(`div`,{className:[`fc-daygrid-body`,p?`fc-daygrid-body-balanced`:`fc-daygrid-body-unbalanced`,a?``:`fc-daygri
1d-body-natural`].join(` `),ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},z(Hl,{unit:`day`},function(p,m){return z(V,null,z(`table`,{role:`presentation`,className:`fc-scrollgrid-sync-table`,style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:a?t.clientHeight:``}},t.colGroupNode,z(`tbody`,{role:`presentation`},t.cells.map(function(a,p){return z(Dd,{ref:e.rowRefs.createRef(p),key:a.length?a[0].date.toISOString():p,showDayNumbers:o>1,showWeekNumbers:t.showWeekNumbers,todayRange:m,dateProfile:n,cells:a,renderIntro:t.renderRowIntro,businessHourSegs:s[p],eventSelection:t.eventSelection,bgEventSegs:c[p].filter(jd),fgEventSegs:l[p],dateSelectionSegs:u[p],eventDrag:d[p],eventResize:f[p],dayMaxEvents:i,dayMaxEventRows:r,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint})}))))}))},t.prototype.prepareHits=function(){this.rowPositions=new ys(this.rootEl,this.rowRefs.collect().map(function(e){return e.getCellEls()[0]}),!1,!0),this.colPositions=new ys(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},t.prototype.queryHit=function(e,t){var n=this,r=n.colPositions,i=n.rowPositions,a=r.leftToIndex(e),o=i.topToIndex(t);if(o!=null&&a!=null){var s=this.props.cells[o][a];return{dateProfile:this.props.dateProfile,dateSpan:F({range:this.getCellRange(o,a),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(o,a),rect:{left:r.lefts[a],right:r.rights[a],top:i.tops[o],bottom:i.bottoms[o]},layer:0}}return null},t.prototype.getCellEl=function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]},t.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:U(n,1)}},t}(js);
1function jd(e){return e.eventRange.def.allDay}var Md=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(Jl),Nd=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.slicer=new Md,t.tableRef=B(),t}return t.prototype.render=function(){var e=this,t=e.props,n=e.context;return z(Ad,F({ref:this.tableRef},this.slicer.sliceProps(t,t.dateProfile,t.nextDayThreshold,n,t.dayTableModel),{dateProfile:t.dateProfile,cells:t.dayTableModel.cells,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint}))},t}(js),Pd=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.buildDayTableModel=q(Fd),t.headerRef=B(),t.tableRef=B(),t}return t.prototype.render=function(){var e=this,t=this.context,n=t.options,r=t.dateProfileGenerator,i=this.props,a=this.buildDayTableModel(i.dateProfile,r),o=n.dayHeaders&&z(Wl,{ref:this.headerRef,dateProfile:i.dateProfile,dates:a.headerDates,datesRepDistinctDays:a.rowCnt===1}),s=function(t){return z(Nd,{ref:e.tableRef,dateProfile:i.dateProfile,dayTableModel:a,businessHours:i.businessHours,dateSelection:i.dateSelection,eventStore:i.eventStore,eventUiBases:i.eventUiBases,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!i.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:i.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(o,s,a.colCnt,n.dayMinWidth):this.renderSimpleLayout(o,s)},t}(sd);function Fd(e,t){return new ql(new Kl(e.renderRange,t),/year|month|week/.test(e.currentRangeUnit))}var Id=Ms({initialView:`dayGridMonth`,views:{dayGrid:{component:Pd,dateProfileGeneratorClass:function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.buildRenderRange=function(t,n,r){var i=this.props.dateEnv,a=e.prototype.buildRenderRange.call(this,t,n,r),o=a.start,s=a.end,c;if(/^(year|month)$/.test(n)&&(o=i.startOfWeek(o),c=i.startOfWeek(s),c.valueOf()!==s.valueOf()&&(s=br(c,1))),this.props.monthMode&&this.props.fixedWeekCount){var l=Math.ceil(Sr(o,s));s=br(s,6-l)}return{start:o,end:s}},t}(tc)},dayGridDay:{type:`dayGrid`,duration:{days:1}},dayGridWeek:{type:`dayGrid`,duration:{weeks:1}},dayGridMonth:{type:`dayGrid`,duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),Ld=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(e){return e.allDay?[`allDay`]:[`timed`]},t.prototype.getKeysForEventDef=function(e){return e.allDay?Fa(e)?[`timed`,`allDay`]:[`allDay`]:[`timed`]},t}(Xo),Rd=J({hour:`numeric`,minute:`2-digit`,omitZeroMinute:!0,meridiem:`short`});function zd(e){var t=[`fc-timegrid-slot`,`fc-timegrid-slot-label`,e.isLabeled?`fc-scrollgrid-shrink`:`fc-timegrid-slot-minor`];return z(Ts.Consumer,null,function(n){if(!e.isLabeled)return z(`td`,{className:t.join(` `),"data-time":e.isoTimeStr});var r=n.dateEnv,i=n.options,a=n.viewApi,o=i.slotLabelFormat==null?Rd:Array.isArray(i.slotLabelFormat)?J(i.slotLabelFormat[0]):J(i.slotLabelFormat);return z($,{hookProps:{level:0,time:e.time,date:r.toDate(e.date),view:a,text:r.format(e.date,o)},classNames:i.slotLabelClassNames,content:i.slotLabelContent,defaultContent:Bd,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},function(n,r,i,a){return z(`td`,{ref:n,className:t.concat(r).join(` `),"data-time":e.isoTimeStr},z(`div`,{className:`fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame`},z(`div`,{className:`fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion`,ref:i},a)))})})}function Bd(e){return e.text}var Vd=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return this.props.slatMetas.map(function(e){return z(`tr`,{key:e.key},z(zd,F({},e)))})},t}(Q),Hd=J({week:`short`}),Ud=5,Wd=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;
1return t.allDaySplitter=new Ld,t.headerElRef=B(),t.rootElRef=B(),t.scrollerElRef=B(),t.state={slatCoords:null},t.handleScrollTopRequest=function(e){var n=t.scrollerElRef.current;n&&(n.scrollTop=e)},t.renderHeadAxis=function(e,n){n===void 0&&(n=``);var r=t.context.options,i=t.props.dateProfile.renderRange,a=Cr(i.start,i.end)===1?ns(t.context,i.start,`week`):{};return r.weekNumbers&&e===`day`?z(Fu,{date:i.start,defaultFormat:Hd},function(e,t,r,i){return z(`th`,{ref:e,"aria-hidden":!0,className:[`fc-timegrid-axis`,`fc-scrollgrid-shrink`].concat(t).join(` `)},z(`div`,{className:`fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid`,style:{height:n}},z(`a`,F({ref:r,className:`fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner`},a),i)))}):z(`th`,{"aria-hidden":!0,className:`fc-timegrid-axis`},z(`div`,{className:`fc-timegrid-axis-frame`,style:{height:n}}))},t.renderTableRowAxis=function(e){var n=t.context,r=n.options,i=n.viewApi;return z($,{hookProps:{text:r.allDayText,view:i},classNames:r.allDayClassNames,content:r.allDayContent,defaultContent:Gd,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},function(t,n,r,i){return z(`td`,{ref:t,"aria-hidden":!0,className:[`fc-timegrid-axis`,`fc-scrollgrid-shrink`].concat(n).join(` `)},z(`div`,{className:`fc-timegrid-axis-frame fc-scrollgrid-shrink-frame`+(e==null?` fc-timegrid-axis-frame-liquid`:``),style:{height:e}},z(`span`,{className:`fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner`,ref:r},i)))})},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return t.prototype.renderSimpleLayout=function(e,t,n){var r=this,i=r.context,a=r.props,o=[],s=bu(i.options);return e&&o.push({type:`header`,key:`header`,isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:`fc-col-header`,rowContent:e}}),t&&(o.push({type:`body`,key:`all-day`,chunk:{content:t}}),o.push({type:`body`,key:`all-day-divider`,outerContent:z(`tr`,{role:`presentation`,className:`fc-scrollgrid-section`},z(`td`,{className:`fc-timegrid-divider `+i.theme.getClass(`tableCellShaded`)}))})),o.push({type:`body`,key:`body`,liquid:!0,expandRows:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:n}}),z(qs,{viewSpec:i.viewSpec,elRef:this.rootElRef},function(e,t){return z(`div`,{className:[`fc-timegrid`].concat(t).join(` `),ref:e},z(Su,{liquid:!a.isHeightAuto&&!a.forPrint,collapsibleWidth:a.forPrint,cols:[{width:`shrink`}],sections:o}))})},t.prototype.renderHScrollLayout=function(e,t,n,r,i,a,o){var s=this,c=this.context.pluginHooks.scrollGridImpl;if(!c)throw Error(`No ScrollGrid implementation`);var l=this,u=l.context,d=l.props,f=!d.forPrint&&bu(u.options),p=!d.forPrint&&xu(u.options),m=[];e&&m.push({type:`header`,key:`header`,isSticky:f,syncRowHeights:!0,chunks:[{key:`axis`,rowContent:function(e){return z(`tr`,{role:`presentation`},s.renderHeadAxis(`day`,e.rowSyncHeights[0]))}},{key:`cols`,elRef:this.headerElRef,tableClassName:`fc-col-header`,rowContent:e}]}),t&&(m.push({type:`body`,key:`all-day`,syncRowHeights:!0,chunks:[{key:`axis`,rowContent:function(e){return z(`tr`,{role:`presentation`},s.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:`cols`,content:t}]}),m.push({key:`all-day-divider`,type:`body`,outerContent:z(`tr`,{role:`presentation`,className:`fc-scrollgrid-section`},z(`td`,{colSpan:2,className:`fc-timegrid-divider `+u.theme.getClass(`tableCellShaded`)}))}));var h=u.options.nowIndicator;return m.push({type:`body`,key:`body`,liquid:!0,expandRows:!!u.options.expandRows,chunks:[{key:`axis`,content:function(e){return z(`div`,{className:`fc-timegrid-axis-chunk`},z(`table`,{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:``}},e.tableColGroupNode,z(`tbody`,null,z(Vd,{slatMetas:a}))),z(`div`,{className:`fc-timegrid-now-indicator-container`},z(Hl,{unit:h?`minute`:`day`},function(e){var t=h&&o&&o.safeComputeTop(e);return typeof t==`number`?z(Du,{isAxis:!0,date:e},function(e,n,r,i){return z(`div`,{ref:e,className:[`fc-timegrid-now-indicator-arrow`].concat(n).join(` `),style:{top:t}},i)}):null})))}},{key:`cols`,scrollerElRef:this.scrollerElRef,content:n}]}),p&&m.push({key:`footer`,type:`footer`,isSticky:!0,chunks:[{key:`axis`,content:yu},{key:`cols`,content:yu}]}),z(qs,{viewSpec:u.viewSpec,elRef:this.rootElRef},function(e,t){return z(`div`,{className:[`fc-timegrid`].concat(t).join(` `),ref:e},z(c,{liquid:!d.isHeightAuto&&!d.forPrint,collapsibleWidth:!1,colGroups:[{width:`shrink`,cols:[{width:`shrink`}]},{cols:[{span:r,minWidth:i}]}],sections:m}))})},t.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,n=e.dayMaxEventRows;return(t===!0||n===!0)&&(t=void 0,n=Ud),{dayMaxEvents:t,dayMaxEventRows:n}},t}(js);function Gd(e){return e.text}var Kd=function(){function e(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}return e.prototype.safeComputeTop=function(e){var t=this.dateProfile;if(Ma(t.currentRange,e)){var n=W(e),r=e.valueOf()-n.valueOf();if(r>=pi(t.slotMinTime)&&r<pi(t.slotMaxTime))return this.computeTimeTop(K(r))}return null},e.prototype.computeDateTop=function(e,t){return t||=W(e),this.computeTimeTop(K(e.valueOf()-t.valueOf()))},e.prototype.computeTimeTop=function(e){var t=this,n=t.positions,r=t.dateProfile,i=n.els.length,a=(e.milliseconds-pi(r.slotMinTime))/pi(this.slotDuration),o,s;return a=Math.max(0,a),a=Math.min(i,a),o=Math.floor(a),o=Math.min(o,i-1),s=a-o,n.tops[o]+n.getHeight(o)*s},e}(),qd=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,i=t.slatElRefs;return z(`tbody`,null,t.slatMetas.map(function(e,a){var o={time:e.time,date:n.dateEnv.toDate(e.date),view:n.viewApi},s=[`fc-timegrid-slot`,`fc-timegrid-slot-lane`,e.isLabeled?``:`fc-timegrid-slot-minor`];return z(`tr`,{key:e.key,ref:i.createRef(e.key)},t.axis&&z(zd,F({},e)),z($,{hookProps:o,classNames:r.slotLaneClassNames,content:r.slotLaneContent,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount},function(t,n,r,i){return z(`td`,{ref:t,className:s.concat(n).join(` `),"data-time":e.isoTimeStr},i)}))}))},t}(Q),Jd=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.rootElRef=B(),t.slatElRefs=new cu,t}return t.prototype.render=function(){var e=this,t=e.props,n=e.context;return z(`div`,{ref:this.rootElRef,className:`fc-timegrid-slots`}
1,z(`table`,{"aria-hidden":!0,className:n.theme.getClass(`table`),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,z(qd,{slatElRefs:this.slatElRefs,axis:t.axis,slatMetas:t.slatMetas})))},t.prototype.componentDidMount=function(){this.updateSizing()},t.prototype.componentDidUpdate=function(){this.updateSizing()},t.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},t.prototype.updateSizing=function(){var e=this,t=e.context,n=e.props;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new Kd(new ys(this.rootElRef.current,Yd(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,t.options.slotDuration))},t}(Q);function Yd(e,t){return t.map(function(t){return e[t.key]})}function Xd(e,t){var n=[],r;for(r=0;r<t;r+=1)n.push([]);if(e)for(r=0;r<e.length;r+=1)n[e[r].col].push(e[r]);return n}function Zd(e,t){var n=[];if(e){for(var r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var i=0,a=e.segs;i<a.length;i++){var o=a[i];n[o.col].segs.push(o)}}else for(var r=0;r<t;r+=1)n[r]=null;return n}var Qd=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.rootElRef=B(),t}return t.prototype.render=function(){var e=this,t=this.props;return z(Bu,{allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:$d,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:function(){return gf(t.hiddenSegs,t)}},function(n,r,i,a,o,s,c,l){return z(`a`,{ref:function(t){As(n,t),As(e.rootElRef,t)},className:[`fc-timegrid-more-link`].concat(r).join(` `),style:{top:t.top,bottom:t.bottom},onClick:o,title:s,"aria-expanded":c,"aria-controls":l},z(`div`,{ref:i,className:`fc-timegrid-more-link-inner fc-sticky`},a))})},t}(Q);function $d(e){return e.shortText}function ef(e,t,n){var r=new dl;t!=null&&(r.strictOrder=t),n!=null&&(r.maxStackCnt=n);var i=ml(r.addSegs(e)),a=tf(r);return a=sf(a,1),{segRects:cf(a),hiddenGroups:i}}function tf(e){var t=e.entriesByLevel,n=lf(function(e,t){return e+`:`+t},function(r,i){var a=nf(of(e,r,i),n),o=t[r][i];return[F(F({},o),{nextLevelNodes:a[0]}),o.thickness+a[1]]});return nf(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function nf(e,t){if(!e)return[[],0];for(var n=e.level,r=e.lateralStart,i=e.lateralEnd,a=r,o=[];a<i;)o.push(t(n,a)),a+=1;return o.sort(rf),[o.map(af),o[0][1]]}function rf(e,t){return t[1]-e[1]}function af(e){return e[0]}function of(e,t,n){for(var r=e.levelCoords,i=e.entriesByLevel,a=i[t][n],o=r[t]+a.thickness,s=r.length,c=t;c<s&&r[c]<o;c+=1);for(;c<s;c+=1){for(var l=i[c],u=void 0,d=vl(l,a.span.start,fl),f=d[0]+d[1],p=f;(u=l[p])&&u.span.start<a.span.end;)p+=1;if(f<p)return{level:c,lateralStart:f,lateralEnd:p}}return null}function sf(e,t){var n=lf(function(e,t,n){return pl(e)},function(e,r,i){var a=e.nextLevelNodes,o=e.thickness,s=o+i,c=o/s,l,u=[];if(!a.length)l=t;else for(var d=0,f=a;d<f.length;d++){var p=f[d];if(l===void 0){var m=n(p,r,s);l=m[0],u.push(m[1])}else{var m=n(p,l,0);u.push(m[1])}}var h=(l-r)*c;return[l-h,F(F({},e),{thickness:h,nextLevelNodes:u})]});return e.map(function(e){return n(e,0,0)[1]})}function cf(e){var t=[],n=lf(function(e,t,n){return pl(e)},function(e,n,i){var a=F(F({},e),{levelCoord:n,stackDepth:i,stackForward:0});return t.push(a),a.stackForward=r(e.nextLevelNodes,n+e.thickness,i+1)+1});function r(e,t,r){for(var i=0,a=0,o=e;a<o.length;a++){var s=o[a];i=Math.max(n(s,t,r),i)}return i}return r(e,0,0),t}function lf(e,t){var n={};return function(){var r=[...arguments],i=e.apply(void 0,r);return i in n?n[i]:n[i]=t.apply(void 0,r)}}function uf(e,t,n,r){n===void 0&&(n=null),r===void 0&&(r=0);var i=[];if(n)for(var a=0;a<e.length;a+=1){var o=e[a],s=n.computeDateTop(o.start,t),c=Math.max(s+(r||0),n.computeDateTop(o.end,t));i.push({start:Math.round(s),end:Math.round(c)})}return i}function df(e,t,n,r){for(var i=[],a=[],o=0;o<e.length;o+=1){var s=t[o];s?i.push({index:o,thickness:1,span:s}):a.push(e[o])}for(var c=ef(i,n,r),l=c.segRects,u=c.hiddenGroups,d=[],f=0,p=l;f<p.length;f++){var m=p[f];d.push({seg:e[m.index],rect:m})}for(var h=0,g=a;h<g.length;h++){var _=g[h];d.push({seg:_,rect:null})}return{segPlacements:d,hiddenGroups:u}}
1var ff=J({hour:`numeric`,minute:`2-digit`,meridiem:!1}),pf=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=[`fc-timegrid-event`,`fc-v-event`];return this.props.isShort&&e.push(`fc-timegrid-event-short`),z(Tu,F({},this.props,{defaultTimeFormat:ff,extraClassNames:e}))},t}(Q),mf=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.props;return z(ku,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps},function(e,t){return t&&z(`div`,{className:`fc-timegrid-col-misc`,ref:e},t)})},t}(Q),hf=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.sortEventSegs=q(Ba),t}return t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.context,i=r.options.selectMirror,a=n.eventDrag&&n.eventDrag.segs||n.eventResize&&n.eventResize.segs||i&&n.dateSelectionSegs||[],o=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{},s=this.sortEventSegs(n.fgEventSegs,r.options.eventOrder);return z(ju,{elRef:n.elRef,date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps},function(t,r,c){return z(`td`,F({ref:t,role:`gridcell`,className:[`fc-timegrid-col`].concat(r,n.extraClassNames||[]).join(` `)},c,n.extraDataAttrs),z(`div`,{className:`fc-timegrid-col-frame`},z(`div`,{className:`fc-timegrid-col-bg`},e.renderFillSegs(n.businessHourSegs,`non-business`),e.renderFillSegs(n.bgEventSegs,`bg-event`),e.renderFillSegs(n.dateSelectionSegs,`highlight`)),z(`div`,{className:`fc-timegrid-col-events`},e.renderFgSegs(s,o,!1,!1,!1)),z(`div`,{className:`fc-timegrid-col-events`},e.renderFgSegs(a,{},!!n.eventDrag,!!n.eventResize,!!i)),z(`div`,{className:`fc-timegrid-now-indicator-container`},e.renderNowIndicator(n.nowIndicatorSegs)),z(mf,{date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps})))})},t.prototype.renderFgSegs=function(e,t,n,r,i){var a=this.props;return a.forPrint?gf(e,a):this.renderPositionedFgSegs(e,t,n,r,i)},t.prototype.renderPositionedFgSegs=function(e,t,n,r,i){var a=this,o=this.context.options,s=o.eventMaxStack,c=o.eventShortHeight,l=o.eventOrderStrict,u=o.eventMinHeight,d=this.props,f=d.date,p=d.slatCoords,m=d.eventSelection,h=d.todayRange,g=d.nowDate,_=n||r||i,v=df(e,uf(e,f,p,u),l,s),y=v.segPlacements,b=v.hiddenGroups;return z(V,null,this.renderHiddenGroups(b,e),y.map(function(e){var o=e.seg,s=e.rect,l=o.eventRange.instance.instanceId,u=_||!!(!t[l]&&s),d=_f(s&&s.span),f=!_&&s?a.computeSegHStyle(s):{left:0,right:0},p=!!s&&s.stackForward>0,v=!!s&&s.span.end-s.span.start<c;return z(`div`,{className:`fc-timegrid-event-harness`+(p?` fc-timegrid-event-harness-inset`:``),key:l,style:F(F({visibility:u?``:`hidden`},d),f)},z(pf,F({seg:o,isDragging:n,isResizing:r,isDateSelecting:i,isSelected:l===m,isShort:v},Ka(o,h,g))))}))},t.prototype.renderHiddenGroups=function(e,t){var n=this.props,r=n.extraDateSpan,i=n.dateProfile,a=n.todayRange,o=n.nowDate,s=n.eventSelection,c=n.eventDrag,l=n.eventResize;return z(V,null,e.map(function(e){var n=_f(e.span),u=vf(e.entries,t);return z(Qd,{key:gi(Uu(u)),hiddenSegs:u,top:n.top,bottom:n.bottom,extraDateSpan:r,dateProfile:i,todayRange:a,nowDate:o,eventSelection:s,eventDrag:c,eventResize:l})}))},t.prototype.renderFillSegs=function(e,t){var n=this,r=n.props,i=n.context;return z(V,null,uf(e,r.date,r.slatCoords,i.options.eventMinHeight).map(function(n,i){var a=e[i];return z(`div`,{key:Ja(a.eventRange),className:`fc-timegrid-bg-harness`,style:_f(n)},t===`bg-event`?z(Nu,F({seg:a},Ka(a,r.todayRange,r.nowDate))):Mu(t))}))},t.prototype.renderNowIndicator=function(e){var t=this.props,n=t.slatCoords,r=t.date;return n?e.map(function(e,t){return z(Du,{isAxis:!1,date:r,key:t},function(t,i,a,o){return z(`div`,{ref:t,className:[`fc-timegrid-now-indicator-line`].concat(i).join(` `),style:{top:n.computeDateTop(e.start,r)}},o)})}):null},t.prototype.computeSegHStyle=function(e){var t=this.context,n=t.isRtl,r=t.options.slotEventOverlap,i=e.levelCoord,a=e.levelCoord+e.thickness,o,s;r&&(a=Math.min(1,i+(a-i)*2)),n?(o=1-a,s=i):(o=i,s=1-a);var c={zIndex:e.stackDepth+1,left:o*100+`%`,right:s*100+`%`};return r&&!e.stackForward&&(c[n?`marginLeft`:`marginRight`]=20),c},t}(Q);function gf(e,t){var n=t.todayRange,r=t.nowDate,i=t.eventSelection,a=t.eventDrag,o=t.eventResize,s=(a?a.affectedInstances:null)||(o?o.affectedInstances:null)||{};return z(V,null,e.map(function(e){var t=e.eventRange.instance.instanceId;return z(`div`,{key:t,style:{visibility:s[t]?`hidden`:``}},z(pf,F({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===i,isShort:!1},Ka(e,n,r))))}))}function _f(e){return e?{top:e.start,bottom:-e.end}:{top:``,bottom:``}}function vf(e,t){return e.map(function(e){return t[e.index]})}var yf=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.splitFgEventSegs=q(Xd),t.splitBgEventSegs=q(Xd),t.splitBusinessHourSegs=q(Xd),t.splitNowIndicatorSegs=q(Xd),t.splitDateSelectionSegs=q(Xd),t.splitEventDrag=q(Zd),t.splitEventResize=q(Zd),t.rootElRef=B(),t.cellElRefs=new cu,t}return t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.context.options.nowIndicator&&n.slatCoords&&n.slatCoords.safeComputeTop(n.nowDate),i=n.cells.length,a=this.splitFgEventSegs(n.fgEventSegs,i),o=this.splitBgEventSegs(n.bgEventSegs,i),s=this.splitBusinessHourSegs(n.businessHourSegs,i),c=this.splitNowIndicatorSegs(n.nowIndicatorSegs,i),l=this.splitDateSelectionSegs(n.dateSelectionSegs,i),u=this.splitEventDrag(n.eventDrag,i),d=this.splitEventResize(n.eventResize,i);return z(`div`,{className:`fc-timegrid-cols`,ref:this.rootElRef},z(`table`,{role:`presentation`,style:{minWidth:n.tableMinWidth,width:n.clientWidth}},n.tableColGroupNode,z(`tbody`,{role:`presentation`},z(`tr`,{role:`row`}
1,n.axis&&z(`td`,{"aria-hidden":!0,className:`fc-timegrid-col fc-timegrid-axis`},z(`div`,{className:`fc-timegrid-col-frame`},z(`div`,{className:`fc-timegrid-now-indicator-container`},typeof r==`number`&&z(Du,{isAxis:!0,date:n.nowDate},function(e,t,n,i){return z(`div`,{ref:e,className:[`fc-timegrid-now-indicator-arrow`].concat(t).join(` `),style:{top:r}},i)})))),n.cells.map(function(t,r){return z(hf,{key:t.key,elRef:e.cellElRefs.createRef(t.key),dateProfile:n.dateProfile,date:t.date,nowDate:n.nowDate,todayRange:n.todayRange,extraHookProps:t.extraHookProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:a[r],bgEventSegs:o[r],businessHourSegs:s[r],nowIndicatorSegs:c[r],dateSelectionSegs:l[r],eventDrag:u[r],eventResize:d[r],slatCoords:n.slatCoords,eventSelection:n.eventSelection,forPrint:n.forPrint})})))))},t.prototype.componentDidMount=function(){this.updateCoords()},t.prototype.componentDidUpdate=function(){this.updateCoords()},t.prototype.updateCoords=function(){var e=this.props;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new ys(this.rootElRef.current,bf(this.cellElRefs.currentMap,e.cells),!0,!1))},t}(Q);function bf(e,t){return t.map(function(t){return e[t.key]})}var xf=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.processSlotOptions=q(Sf),t.state={slatCoords:null},t.handleRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t.handleScrollRequest=function(e){var n=t.props.onScrollTopRequest,r=t.state.slatCoords;if(n&&r){if(e.time){var i=r.computeTimeTop(e.time);i=Math.ceil(i),i&&(i+=1),n(i)}return!0}return!1},t.handleColCoords=function(e){t.colCoords=e},t.handleSlatCoords=function(e){t.setState({slatCoords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t}return t.prototype.render=function(){var e=this,t=e.props,n=e.state;return z(`div`,{className:`fc-timegrid-body`,ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},z(Jd,{axis:t.axis,dateProfile:t.dateProfile,slatMetas:t.slatMetas,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:``,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.axis?t.tableColGroupNode:null,onCoords:this.handleSlatCoords}),z(yf,{cells:t.cells,axis:t.axis,dateProfile:t.dateProfile,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange,nowDate:t.nowDate,nowIndicatorSegs:t.nowIndicatorSegs,clientWidth:t.clientWidth,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:t.forPrint}))},t.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.componentDidUpdate=function(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},t.prototype.queryHit=function(e,t){var n=this.context,r=n.dateEnv,i=n.options,a=this.colCoords,o=this.props.dateProfile,s=this.state.slatCoords,c=this.processSlotOptions(this.props.slotDuration,i.snapDuration),l=c.snapDuration,u=c.snapsPerSlot,d=a.leftToIndex(e),f=s.positions.topToIndex(t);if(d!=null&&f!=null){var p=this.props.cells[d],m=s.positions.tops[f],h=s.positions.getHeight(f),g=(t-m)/h,_=Math.floor(g*u),v=f*u+_,y=this.props.cells[d].date,b=si(o.slotMinTime,li(l,v)),x=r.add(y,b),S=r.add(x,l);return{dateProfile:o,dateSpan:F({range:{start:x,end:S},allDay:!1},p.extraDateSpan),dayEl:a.els[d],rect:{left:a.lefts[d],right:a.rights[d],top:m,bottom:m+h},layer:0}}return null},t}(js);function Sf(e,t){var n=t||e,r=mi(e,n);return r===null&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}var Cf=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.sliceRange=function(e,t){for(var n=[],r=0;r<t.length;r+=1){var i=Oa(e,t[r]);i&&n.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:r})}return n},t}(Jl),wf=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.buildDayRanges=q(Tf),t.slicer=new Cf,t.timeColsRef=B(),t}return t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.context,i=n.dateProfile,a=n.dayTableModel,o=r.options.nowIndicator,s=this.buildDayRanges(a,i,r.dateEnv);return z(Hl,{unit:o?`minute`:`day`},function(t,c){return z(xf,F({ref:e.timeColsRef},e.slicer.sliceProps(n,i,null,r,s),{forPrint:n.forPrint,axis:n.axis,dateProfile:i,slatMetas:n.slatMetas,slotDuration:n.slotDuration,cells:a.cells[0],tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,clientWidth:n.clientWidth,clientHeight:n.clientHeight,expandRows:n.expandRows,nowDate:t,nowIndicatorSegs:o&&e.slicer.sliceNowDate(t,r,s),todayRange:c,onScrollTopRequest:n.onScrollTopRequest,onSlatCoords:n.onSlatCoords}))})},t}(js);function Tf(e,t,n){for(var r=[],i=0,a=e.headerDates;i<a.length;i++){var o=a[i];r.push({start:n.add(o,t.slotMinTime),end:n.add(o,t.slotMaxTime)})}return r}var Ef=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Df(e,t,n,r,i){for(var a=new Date(0),o=e,s=K(0),c=n||Of(r),l=[];pi(o)<pi(t);){var u=i.add(a,o),d=mi(s,c)!==null;l.push({date:u,time:o,key:u.toISOString(),isoTimeStr:vi(u),isLabeled:d}),o=si(o,r),s=si(s,r)}return l}function Of(e){var t,n,r;for(t=Ef.length-1;t>=0;--t)if(n=K(Ef[t]),r=mi(n,e),r!==null&&r>1)return n;return e}var kf=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.buildTimeColsModel=q(Af),t.buildSlatMetas=q(Df),t}return t.prototype.render=function(){var e=this,t=this.context,n=t.options,r=t.dateEnv,i=t.dateProfileGenerator,a=this.props,o=a.dateProfile,s=this.buildTimeColsModel(o,i),c=this.allDaySplitter.splitProps(a),l=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,n.slotLabelInterval,n.slotDuration,r),u=n.dayMinWidth,d=!u,f=u,p=n.dayHeaders&&z(Wl,{dates:s.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:d?this.renderHeadAxis:null}),m=n.allDaySlot!==!1&&(function(t){return z(Nd,F({},c.allDay,{dateProfile:o,dayTableModel:s,nextDayThreshold:n.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:d?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:a.forPrint},e.getAllDayMaxEventProps()))}),h=function(t){return z(wf,F({},c.timed,{dayTableModel:s,dateProfile:o,axis:d,slotDuration:n.slotDuration,slatMetas:l,forPrint:a.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:e.handleScrollTopRequest}))};return f?this.renderHScrollLayout(p,m,h,s.colCnt,u,l,this.state.slatCoords):this.renderSimpleLayout(p,m,h)},t}(Wd);function Af(e,t){return new ql(new Kl(e.renderRange,t),!1)}var jf=Ms({initialView:`timeGridWeek`,optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:kf,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:`00:30:00`,slotEventOverlap:!0},timeGridDay:{type:`timeGrid`,duration:{days:1}},timeGridWeek:{type:`timeGrid`,duration:{weeks:1}}}});wl.touchMouseIgnoreWait=500;var Mf=0,Nf=0,Pf=!1,Ff=function(){function e(e){var t=this;this.subjectEl=null,this.selector=``,this.handleSelector=``,this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(e){if(!t.shouldIgnoreMouse()&&If(e)&&t.tryStart(e)){var n=t.createEventFromMouse(e,!0);t.emitter.trigger(`pointerdown`,n),t.initScrollWatch(n),t.shouldIgnoreMove||document.addEventListener(`mousemove`,t.handleMouseMove),document.addEventListener(`mouseup`,t.handleMouseUp)}},this.handleMouseMove=function(e){var n=t.createEventFromMouse(e);t.recordCoords(n),t.emitter.trigger(`pointermove`,n)},this.handleMouseUp=function(e){document.removeEventListener(`mousemove`,t.handleMouseMove),document.removeEventListener(`mouseup`,t.handleMouseUp),t.emitter.trigger(`pointerup`,t.createEventFromMouse(e)),t.cleanup()},this.handleTouchStart=function(e){if(t.tryStart(e)){t.isTouchDragging=!0;var n=t.createEventFromTouch(e,!0);t.emitter.trigger(`pointerdown`,n),t.initScrollWatch(n);var r=e.target;t.shouldIgnoreMove||r.addEventListener(`touchmove`,t.handleTouchMove),r.addEventListener(`touchend`,t.handleTouchEnd),r.addEventListener(`touchcancel`,t.handleTouchEnd),window.addEventListener(`scroll`,t.handleTouchScroll,!0)}},this.handleTouchMove=function(e){var n=t.createEventFromTouch(e);t.recordCoords(n),t.emitter.trigger(`pointermove`,n)},this.handleTouchEnd=function(e){if(t.isDragging){var n=e.target;n.removeEventListener(`touchmove`,t.handleTouchMove),n.removeEventListener(`touchend`,t.handleTouchEnd),n.removeEventListener(`touchcancel`,t.handleTouchEnd),window.removeEventListener(`scroll`,t.handleTouchScroll,!0),t.emitter.trigger(`pointerup`,t.createEventFromTouch(e)),t.cleanup(),t.isTouchDragging=!1,Lf()}},this.handleTouchScroll=function(){t.wasTouchScroll=!0},this.handleScroll=function(e){if(!t.shouldIgnoreMove){var n=window.pageXOffset-t.prevScrollX+t.prevPageX,r=window.pageYOffset-t.prevScrollY+t.prevPageY;t.emitter.trigger(`pointermove`,{origEvent:e,isTouch:t.isTouchDragging,subjectEl:t.subjectEl,pageX:n,pageY:r,deltaX:n-t.origPageX,deltaY:r-t.origPageY})}},this.containerEl=e,this.emitter=new gs,e.addEventListener(`mousedown`,this.handleMouseDown),e.addEventListener(`touchstart`,this.handleTouchStart,{passive:!0}),Rf()}return e.prototype.destroy=function(){this.containerEl.removeEventListener(`mousedown`,this.handleMouseDown),this.containerEl.removeEventListener(`touchstart`,this.handleTouchStart,{passive:!0}),zf()}
1,e.prototype.tryStart=function(e){var t=this.querySubjectEl(e),n=e.target;return t&&(!this.handleSelector||H(n,this.handleSelector))?(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1},e.prototype.cleanup=function(){Pf=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()},e.prototype.querySubjectEl=function(e){return this.selector?H(e.target,this.selector):this.containerEl},e.prototype.shouldIgnoreMouse=function(){return Mf||this.isTouchDragging},e.prototype.cancelTouchScroll=function(){this.isDragging&&(Pf=!0)},e.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener(`scroll`,this.handleScroll,!0))},e.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},e.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener(`scroll`,this.handleScroll,!0)},e.prototype.createEventFromMouse=function(e,t){var n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}},e.prototype.createEventFromTouch=function(e,t){var n=e.touches,r,i,a=0,o=0;return n&&n.length?(r=n[0].pageX,i=n[0].pageY):(r=e.pageX,i=e.pageY),t?(this.origPageX=r,this.origPageY=i):(a=r-this.origPageX,o=i-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:a,deltaY:o}},e}();function If(e){return e.button===0&&!e.ctrlKey}function Lf(){Mf+=1,setTimeout(function(){--Mf},wl.touchMouseIgnoreWait)}function Rf(){Nf+=1,Nf===1&&window.addEventListener(`touchmove`,Bf,{passive:!1})}function zf(){--Nf,Nf||window.removeEventListener(`touchmove`,Bf,{passive:!1})}function Bf(e){Pf&&e.preventDefault()}var Vf=function(){function e(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return e.prototype.start=function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},e.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},e.prototype.setIsVisible=function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=``),this.isVisible=e,this.updateElPosition()):this.isVisible&&=(this.mirrorEl&&(this.mirrorEl.style.display=`none`),e)},e.prototype.stop=function(e,t){var n=this,r=function(){n.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)},e.prototype.doRevertAnimation=function(e,t){var n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition=`top `+t+`ms,left `+t+`ms`,Hn(n,{left:r.left,top:r.top}),$n(n,function(){n.style.transition=``,e()})},e.prototype.cleanup=function(){this.mirrorEl&&=(Rn(this.mirrorEl),null),this.sourceEl=null},e.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&Hn(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},e.prototype.getMirrorEl=function(){var e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.classList.add(`fc-unselectable`),t.classList.add(`fc-event-dragging`),Hn(t,{position:`fixed`,zIndex:this.zIndex,visibility:``,boxSizing:`border-box`,width:e.right-e.left,height:e.bottom-e.top,right:`auto`,bottom:`auto`,margin:0}),this.parentNode.appendChild(t)),t},e}(),Hf=function(e){P(t,e);function t(t,n){var r=e.call(this)||this;return r.handleScroll=function(){r.scrollTop=r.scrollController.getScrollTop(),r.scrollLeft=r.scrollController.getScrollLeft(),r.handleScrollChange()},r.scrollController=t,r.doesListening=n,r.scrollTop=r.origScrollTop=t.getScrollTop(),r.scrollLeft=r.origScrollLeft=t.getScrollLeft(),r.scrollWidth=t.getScrollWidth(),r.scrollHeight=t.getScrollHeight(),r.clientWidth=t.getClientWidth(),r.clientHeight=t.getClientHeight(),r.clientRect=r.computeClientRect(),r.doesListening&&r.getEventTarget().addEventListener(`scroll`,r.handleScroll),r}return t.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener(`scroll`,this.handleScroll)},t.prototype.getScrollTop=function(){return this.scrollTop},t.prototype.getScrollLeft=function(){return this.scrollLeft},t.prototype.setScrollTop=function(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())},t.prototype.setScrollLeft=function(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())},t.prototype.getClientWidth=function(){return this.clientWidth},t.prototype.getClientHeight=function(){return this.clientHeight},t.prototype.getScrollWidth=function(){return this.scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollHeight},t.prototype.handleScrollChange=function(){},t}(bs),Uf=function(e){P(t,e);function t(t,n){return e.call(this,new xs(t),n)||this}return t.prototype.getEventTarget=function(){return this.scrollController.el},t.prototype.computeClientRect=function(){return ds(this.scrollController.el)},t}(Hf),Wf=function(e){P(t,e);function t(t){return e.call(this,new Ss,t)||this}return t.prototype.getEventTarget=function(){return window}
1,t.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},t.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},t}(Hf),Gf=typeof performance==`function`?performance.now:Date.now,Kf=function(){function e(){var e=this;this.isEnabled=!0,this.scrollQuery=[window,`.fc-scroller`],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=function(){if(e.isAnimating){var t=e.computeBestEdge(e.pointerScreenX+window.pageXOffset,e.pointerScreenY+window.pageYOffset);if(t){var n=Gf();e.handleSide(t,(n-e.msSinceRequest)/1e3),e.requestAnimation(n)}else e.isAnimating=!1}}}return e.prototype.start=function(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))},e.prototype.handleMove=function(e,t){if(this.isEnabled){var n=e-window.pageXOffset,r=t-window.pageYOffset,i=this.pointerScreenY===null?0:r-this.pointerScreenY,a=this.pointerScreenX===null?0:n-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),a<0?this.everMovedLeft=!0:a>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Gf()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e<t.length;e++)t[e].destroy();this.scrollCaches=null}},e.prototype.requestAnimation=function(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)},e.prototype.handleSide=function(e,t){var n=e.scrollCache,r=this.edgeThreshold,i=r-e.distance,a=i*i/(r*r)*this.maxVelocity*t,o=1;switch(e.name){case`left`:o=-1;case`right`:n.setScrollLeft(n.getScrollLeft()+a*o);break;case`top`:o=-1;case`bottom`:n.setScrollTop(n.getScrollTop()+a*o)}},e.prototype.computeBestEdge=function(e,t){for(var n=this.edgeThreshold,r=null,i=0,a=this.scrollCaches;i<a.length;i++){var o=a[i],s=o.clientRect,c=e-s.left,l=s.right-e,u=t-s.top,d=s.bottom-t;c>=0&&l>=0&&u>=0&&d>=0&&(u<=n&&this.everMovedUp&&o.canScrollUp()&&(!r||r.distance>u)&&(r={scrollCache:o,name:`top`,distance:u}),d<=n&&this.everMovedDown&&o.canScrollDown()&&(!r||r.distance>d)&&(r={scrollCache:o,name:`bottom`,distance:d}),c<=n&&this.everMovedLeft&&o.canScrollLeft()&&(!r||r.distance>c)&&(r={scrollCache:o,name:`left`,distance:c}),l<=n&&this.everMovedRight&&o.canScrollRight()&&(!r||r.distance>l)&&(r={scrollCache:o,name:`right`,distance:l}))}return r},e.prototype.buildCaches=function(e){return this.queryScrollEls(e).map(function(e){return e===window?new Wf(!1):new Uf(e,!1)})},e.prototype.queryScrollEls=function(e){for(var t=[],n=0,r=this.scrollQuery;n<r.length;n++){var i=r[n];typeof i==`object`?t.push(i):t.push.apply(t,Array.prototype.slice.call(Gn(e).querySelectorAll(i)))}return t},e}(),qf=function(e){P(t,e);function t(t,n){var r=e.call(this,t)||this;r.containerEl=t,r.delay=null,r.minDistance=0,r.touchScrollAllowed=!0,r.mirrorNeedsRevert=!1,r.isInteracting=!1,r.isDragging=!1,r.isDelayEnded=!1,r.isDistanceSurpassed=!1,r.delayTimeoutId=null,r.onPointerDown=function(e){r.isDragging||(r.isInteracting=!0,r.isDelayEnded=!1,r.isDistanceSurpassed=!1,or(document.body),cr(document.body),e.isTouch||e.origEvent.preventDefault(),r.emitter.trigger(`pointerdown`,e),r.isInteracting&&!r.pointer.shouldIgnoreMove&&(r.mirror.setIsVisible(!1),r.mirror.start(e.subjectEl,e.pageX,e.pageY),r.startDelay(e),r.minDistance||r.handleDistanceSurpassed(e)))},r.onPointerMove=function(e){if(r.isInteracting){if(r.emitter.trigger(`pointermove`,e),!r.isDistanceSurpassed){var t=r.minDistance,n=void 0,i=e.deltaX,a=e.deltaY;n=i*i+a*a,n>=t*t&&r.handleDistanceSurpassed(e)}r.isDragging&&(e.origEvent.type!==`scroll`&&(r.mirror.handleMove(e.pageX,e.pageY),r.autoScroller.handleMove(e.pageX,e.pageY)),r.emitter.trigger(`dragmove`,e))}},r.onPointerUp=function(e){r.isInteracting&&(r.isInteracting=!1,sr(document.body),lr(document.body),r.emitter.trigger(`pointerup`,e),r.isDragging&&(r.autoScroller.stop(),r.tryStopDrag(e)),r.delayTimeoutId&&=(clearTimeout(r.delayTimeoutId),null))};var i=r.pointer=new Ff(t);return i.emitter.on(`pointerdown`,r.onPointerDown),i.emitter.on(`pointermove`,r.onPointerMove),i.emitter.on(`pointerup`,r.onPointerUp),n&&(i.selector=n),r.mirror=new Vf,r.autoScroller=new Kf,r}return t.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},t.prototype.startDelay=function(e){var t=this;typeof this.delay==`number`?this.delayTimeoutId=setTimeout(function(){t.delayTimeoutId=null,t.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)},t.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},t.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},t.prototype.tryStartDrag=function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger(`dragstart`,e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())},t.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},t.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger(`dragend`,e)},t.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},t.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},t.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},t}(Cl),Jf=function(){function e(e){this.origRect=fs(e),this.scrollCaches=ms(e).map(function(e){return new Uf(e,!0)})}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;
1e<t.length;e++)t[e].destroy()},e.prototype.computeLeft=function(){for(var e=this.origRect.left,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollLeft-r.getScrollLeft()}return e},e.prototype.computeTop=function(){for(var e=this.origRect.top,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollTop-r.getScrollTop()}return e},e.prototype.isWithinClipping=function(e,t){for(var n={left:e,top:t},r=0,i=this.scrollCaches;r<i.length;r++){var a=i[r];if(!Yf(a.getEventTarget())&&!Vo(n,a.clientRect))return!1}return!0},e}();function Yf(e){var t=e.tagName;return t===`HTML`||t===`BODY`}var Xf=function(){function e(e,t){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(e),n.initialHit||!n.requireInitial?(t.setIgnoreMove(!1),n.emitter.trigger(`pointerdown`,e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){n.emitter.trigger(`dragstart`,e),n.handleMove(e,!0)},this.handleDragMove=function(e){n.emitter.trigger(`dragmove`,e),n.handleMove(e)},this.handlePointerUp=function(e){n.releaseHits(),n.emitter.trigger(`pointerup`,e)},this.handleDragEnd=function(e){n.movingHit&&n.emitter.trigger(`hitupdate`,null,!0,e),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger(`dragend`,e)},this.droppableStore=t,e.emitter.on(`pointerdown`,this.handlePointerDown),e.emitter.on(`dragstart`,this.handleDragStart),e.emitter.on(`dragmove`,this.handleDragMove),e.emitter.on(`pointerup`,this.handlePointerUp),e.emitter.on(`dragend`,this.handleDragEnd),this.dragging=e,this.emitter=new gs}return e.prototype.processFirstCoord=function(e){var t={left:e.pageX,top:e.pageY},n=t,r=e.subjectEl,i;r instanceof HTMLElement&&(i=fs(r),n=Uo(n,i));var a=this.initialHit=this.queryHitForOffset(n.left,n.top);if(a){if(this.useSubjectCenter&&i){var o=Ho(i,a.rect);o&&(n=Wo(o))}this.coordAdjust=Go(n,t)}else this.coordAdjust={left:0,top:0}},e.prototype.handleMove=function(e,t){var n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(t||!Zf(this.movingHit,n))&&(this.movingHit=n,this.emitter.trigger(`hitupdate`,n,!1,e))},e.prototype.prepareHits=function(){this.offsetTrackers=Gr(this.droppableStore,function(e){return e.component.prepareHits(),new Jf(e.el)})},e.prototype.releaseHits=function(){var e=this.offsetTrackers;for(var t in e)e[t].destroy();this.offsetTrackers={}},e.prototype.queryHitForOffset=function(e,t){var n=this,r=n.droppableStore,i=n.offsetTrackers,a=null;for(var o in r){var s=r[o].component,c=i[o];if(c&&c.isWithinClipping(e,t)){var l=c.computeLeft(),u=c.computeTop(),d=e-l,f=t-u,p=c.origRect,m=p.right-p.left,h=p.bottom-p.top;if(d>=0&&d<m&&f>=0&&f<h){var g=s.queryHit(d,f,m,h);g&&ja(g.dateProfile.activeRange,g.dateSpan.range)&&(!a||g.layer>a.layer)&&(g.componentId=o,g.context=s.context,g.rect.left+=l,g.rect.right+=l,g.rect.top+=u,g.rect.bottom+=u,a=g)}}}return a},e}();function Zf(e,t){return!e&&!t||!!e==!!t&&$a(e.dateSpan,t.dateSpan)}function Qf(e,t){for(var n={},r=0,i=t.pluginHooks.datePointTransforms;r<i.length;r++){var a=i[r];F(n,a(e,t))}return F(n,$f(e,t.dateEnv)),n}function $f(e,t){return{date:t.toDate(e.range.start),dateStr:t.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}}var ep=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;n.handlePointerDown=function(e){var t=n.dragging,r=e.origEvent.target;t.setIgnoreMove(!n.component.isValidDateDownEl(r))},n.handleDragEnd=function(e){var t=n.component;if(!n.dragging.pointer.wasTouchScroll){var r=n.hitDragging,i=r.initialHit,a=r.finalHit;if(i&&a&&Zf(i,a)){var o=t.context,s=F(F({},Qf(i.dateSpan,o)),{dayEl:i.dayEl,jsEvent:e.origEvent,view:o.viewApi||o.calendarApi.view});o.emitter.trigger(`dateClick`,s)}}},n.dragging=new qf(t.el),n.dragging.autoScroller.isEnabled=!1;var r=n.hitDragging=new Xf(n.dragging,xl(t));return r.emitter.on(`pointerdown`,n.handlePointerDown),r.emitter.on(`dragend`,n.handleDragEnd),n}return t.prototype.destroy=function(){this.dragging.destroy()},t}(yl),tp=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;n.dragSelection=null,n.handlePointerDown=function(e){var t=n,r=t.component,i=t.dragging,a=r.context.options.selectable&&r.isValidDateDownEl(e.origEvent.target);i.setIgnoreMove(!a),i.delay=e.isTouch?np(r):null},n.handleDragStart=function(e){n.component.context.calendarApi.unselect(e)},n.handleHitUpdate=function(e,t){var r=n.component.context,i=null,a=!1;if(e){var o=n.hitDragging.initialHit;e.componentId===o.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(o,e)||(i=rp(o,e,r.pluginHooks.dateSelectionTransformers)),(!i||!Zl(i,e.dateProfile,r))&&(a=!0,i=null)}i?r.dispatch({type:`SELECT_DATES`,selection:i}):t||r.dispatch({type:`UNSELECT_DATES`}
1),a?ir():ar(),t||(n.dragSelection=i)},n.handlePointerUp=function(e){n.dragSelection&&=(ao(n.dragSelection,e,n.component.context),null)};var r=t.component.context.options,i=n.dragging=new qf(t.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;var a=n.hitDragging=new Xf(n.dragging,xl(t));return a.emitter.on(`pointerdown`,n.handlePointerDown),a.emitter.on(`dragstart`,n.handleDragStart),a.emitter.on(`hitupdate`,n.handleHitUpdate),a.emitter.on(`pointerup`,n.handlePointerUp),n}return t.prototype.destroy=function(){this.dragging.destroy()},t}(yl);function np(e){var t=e.context.options,n=t.selectLongPressDelay;return n??=t.longPressDelay,n}function rp(e,t,n){var r=e.dateSpan,i=t.dateSpan,a=[r.range.start,r.range.end,i.range.start,i.range.end];a.sort(gr);for(var o={},s=0,c=n;s<c.length;s++){var l=c[s],u=l(e,t);if(u===!1)return null;u&&F(o,u)}return o.range={start:a[0],end:a[3]},o.allDay=r.allDay,o}var ip=function(e){P(t,e);function t(n){var r=e.call(this,n)||this;r.subjectEl=null,r.subjectSeg=null,r.isDragging=!1,r.eventRange=null,r.relevantEvents=null,r.receivingContext=null,r.validMutation=null,r.mutatedRelevantEvents=null,r.handlePointerDown=function(e){var t=e.origEvent.target,n=r,i=n.component,a=n.dragging,o=a.mirror,s=i.context.options,c=i.context;r.subjectEl=e.subjectEl;var l=(r.eventRange=(r.subjectSeg=La(e.subjectEl)).eventRange).instance.instanceId;r.relevantEvents=ea(c.getCurrentData().eventStore,l),a.minDistance=e.isTouch?0:s.eventDragMinDistance,a.delay=e.isTouch&&l!==i.props.eventSelection?op(i):null,o.parentNode=s.fixedMirrorParent?s.fixedMirrorParent:H(t,`.fc`),o.revertDuration=s.dragRevertDuration;var u=i.isValidSegDownEl(t)&&!H(t,`.fc-event-resizer`);a.setIgnoreMove(!u),r.isDragging=u&&e.subjectEl.classList.contains(`fc-event-draggable`)},r.handleDragStart=function(e){var t=r.component.context,n=r.eventRange,i=n.instance.instanceId;e.isTouch?i!==r.component.props.eventSelection&&t.dispatch({type:`SELECT_EVENT`,eventInstanceId:i}):t.dispatch({type:`UNSELECT_EVENT`}),r.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger(`eventDragStart`,{el:r.subjectEl,event:new Z(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},r.handleHitUpdate=function(e,t){if(r.isDragging){var n=r.relevantEvents,i=r.hitDragging.initialHit,a=r.component.context,o=null,s=null,c=null,l=!1,u={affectedEvents:n,mutatedEvents:X(),isEvent:!0};if(e){o=e.context;var d=o.options;a===o||d.editable&&d.droppable?(s=ap(i,e,o.getCurrentData().pluginHooks.eventDragMutationMassagers),s&&(c=lo(n,o.getCurrentData().eventUiBases,s,o),u.mutatedEvents=c,Xl(u,e.dateProfile,o)||(l=!0,s=null,c=null,u.mutatedEvents=X()))):o=null}r.displayDrag(o,u),l?ir():ar(),t||(a===o&&Zf(i,e)&&(s=null),r.dragging.setMirrorNeedsRevert(!s),r.dragging.setMirrorIsVisible(!e||!Gn(r.subjectEl).querySelector(`.fc-event-mirror`)),r.receivingContext=o,r.validMutation=s,r.mutatedRelevantEvents=c)}},r.handlePointerUp=function(){r.isDragging||r.cleanup()},r.handleDragEnd=function(e){if(r.isDragging){var t=r.component.context,n=t.viewApi,i=r,a=i.receivingContext,o=i.validMutation,s=r.eventRange.def,c=r.eventRange.instance,l=new Z(t,s,c),u=r.relevantEvents,d=r.mutatedRelevantEvents,f=r.hitDragging.finalHit;if(r.clearDrag(),t.emitter.trigger(`eventDragStop`,{el:r.subjectEl,event:l,jsEvent:e.origEvent,view:n}),o){if(a===t){var p=new Z(t,d.defs[s.defId],c?d.instances[c.instanceId]:null);t.dispatch({type:`MERGE_EVENTS`,eventStore:d});for(var m={oldEvent:l,event:p,relatedEvents:Co(d,t,c),revert:function(){t.dispatch({type:`MERGE_EVENTS`,eventStore:u})}},h={},g=0,_=t.getCurrentData().pluginHooks.eventDropTransformers;g<_.length;g++){var v=_[g];F(h,v(o,t))}t.emitter.trigger(`eventDrop`,F(F(F({},m),h),{el:e.subjectEl,delta:o.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger(`eventChange`,m)}else if(a){var y={event:l,relatedEvents:Co(u,t,c),revert:function(){t.dispatch({type:`MERGE_EVENTS`,eventStore:u})}};t.emitter.trigger(`eventLeave`,F(F({},y),{draggedEl:e.subjectEl,view:n}
1)),t.dispatch({type:`REMOVE_EVENTS`,eventStore:u}),t.emitter.trigger(`eventRemove`,y);var b=d.defs[s.defId],x=d.instances[c.instanceId],S=new Z(a,b,x);a.dispatch({type:`MERGE_EVENTS`,eventStore:d});var C={event:S,relatedEvents:Co(d,a,x),revert:function(){a.dispatch({type:`REMOVE_EVENTS`,eventStore:d})}};a.emitter.trigger(`eventAdd`,C),e.isTouch&&a.dispatch({type:`SELECT_EVENT`,eventInstanceId:c.instanceId}),a.emitter.trigger(`drop`,F(F({},Qf(f.dateSpan,a)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:f.context.viewApi})),a.emitter.trigger(`eventReceive`,F(F({},C),{draggedEl:e.subjectEl,view:f.context.viewApi}))}}else t.emitter.trigger(`_noEventDrop`)}r.cleanup()};var i=r.component.context.options,a=r.dragging=new qf(n.el);a.pointer.selector=t.SELECTOR,a.touchScrollAllowed=!1,a.autoScroller.isEnabled=i.dragScroll;var o=r.hitDragging=new Xf(r.dragging,Sl);return o.useSubjectCenter=n.useEventCenter,o.emitter.on(`pointerdown`,r.handlePointerDown),o.emitter.on(`dragstart`,r.handleDragStart),o.emitter.on(`hitupdate`,r.handleHitUpdate),o.emitter.on(`pointerup`,r.handlePointerUp),o.emitter.on(`dragend`,r.handleDragEnd),r}return t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.displayDrag=function(e,t){var n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:`SET_EVENT_DRAG`,state:{affectedEvents:t.affectedEvents,mutatedEvents:X(),isEvent:!0}}):r.dispatch({type:`UNSET_EVENT_DRAG`})),e&&e.dispatch({type:`SET_EVENT_DRAG`,state:t})},t.prototype.clearDrag=function(){var e=this.component.context,t=this.receivingContext;t&&t.dispatch({type:`UNSET_EVENT_DRAG`}),e!==t&&e.dispatch({type:`UNSET_EVENT_DRAG`})},t.prototype.cleanup=function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null},t.SELECTOR=`.fc-event-draggable, .fc-event-resizable`,t}(yl);function ap(e,t,n){var r=e.dateSpan,i=t.dateSpan,a=r.range.start,o=i.range.start,s={};r.allDay!==i.allDay&&(s.allDay=i.allDay,s.hasEnd=t.context.options.allDayMaintainDuration,i.allDay&&(a=W(a)));var c=wa(a,o,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);c.milliseconds&&(s.allDay=!1);for(var l={datesDelta:c,standardProps:s},u=0,d=n;u<d.length;u++){var f=d[u];f(l,e,t)}return l}function op(e){var t=e.context.options,n=t.eventLongPressDelay;return n??=t.longPressDelay,n}var sp=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;n.draggingSegEl=null,n.draggingSeg=null,n.eventRange=null,n.relevantEvents=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(e){var t=n.component,r=n.eventRange=La(n.querySegEl(e)).eventRange;n.dragging.minDistance=t.context.options.eventDragMinDistance,n.dragging.setIgnoreMove(!n.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&n.component.props.eventSelection!==r.instance.instanceId)},n.handleDragStart=function(e){var t=n.component.context,r=n.eventRange;n.relevantEvents=ea(t.getCurrentData().eventStore,n.eventRange.instance.instanceId);var i=n.querySegEl(e);n.draggingSegEl=i,n.draggingSeg=La(i),t.calendarApi.unselect(),t.emitter.trigger(`eventResizeStart`,{el:i,event:new Z(t,r.def,r.instance),jsEvent:e.origEvent,view:t.viewApi})},n.handleHitUpdate=function(e,t,r){var i=n.component.context,a=n.relevantEvents,o=n.hitDragging.initialHit,s=n.eventRange.instance,c=null,l=null,u=!1,d={affectedEvents:a,mutatedEvents:X(),isEvent:!0};e&&(e.componentId===o.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(o,e)||(c=cp(o,e,r.subjectEl.classList.contains(`fc-event-resizer-start`),s.range))),c&&(l=lo(a,i.getCurrentData().eventUiBases,c,i),d.mutatedEvents=l,Xl(d,e.dateProfile,i)||(u=!0,c=null,l=null,d.mutatedEvents=null)),l?i.dispatch({type:`SET_EVENT_RESIZE`,state:d}):i.dispatch({type:`UNSET_EVENT_RESIZE`}),u?ir():ar(),t||(c&&Zf(o,e)&&(c=null),n.validMutation=c,n.mutatedRelevantEvents=l)},n.handleDragEnd=function(e){var t=n.component.context,r=n.eventRange.def,i=n.eventRange.instance,a=new Z(t,r,i),o=n.relevantEvents,s=n.mutatedRelevantEvents;if(t.emitter.trigger(`eventResizeStop`,{el:n.draggingSegEl,event:a,jsEvent:e.origEvent,view:t.viewApi}
1),n.validMutation){var c=new Z(t,s.defs[r.defId],i?s.instances[i.instanceId]:null);t.dispatch({type:`MERGE_EVENTS`,eventStore:s});var l={oldEvent:a,event:c,relatedEvents:Co(s,t,i),revert:function(){t.dispatch({type:`MERGE_EVENTS`,eventStore:o})}};t.emitter.trigger(`eventResize`,F(F({},l),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||K(0),endDelta:n.validMutation.endDelta||K(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger(`eventChange`,l)}else t.emitter.trigger(`_noEventResize`);n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var r=t.component,i=n.dragging=new qf(t.el);i.pointer.selector=`.fc-event-resizer`,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.context.options.dragScroll;var a=n.hitDragging=new Xf(n.dragging,xl(t));return a.emitter.on(`pointerdown`,n.handlePointerDown),a.emitter.on(`dragstart`,n.handleDragStart),a.emitter.on(`hitupdate`,n.handleHitUpdate),a.emitter.on(`dragend`,n.handleDragEnd),n}return t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySegEl=function(e){return H(e.subjectEl,`.fc-event`)},t}(yl);function cp(e,t,n,r){var i=e.context.dateEnv,a=e.dateSpan.range.start,o=t.dateSpan.range.start,s=wa(a,o,i,e.largeUnit);if(n){if(i.add(r.start,s)<r.end)return{startDelta:s}}else if(i.add(r.end,s)>r.start)return{endDelta:s};return null}var lp=function(){function e(e){var t=this;this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(e){e.jsEvent&&(t.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(e){var n=t.context.options.unselectCancel,r=Wn(e.origEvent);t.matchesCancel=!!H(r,n),t.matchesEvent=!!H(r,ip.SELECTOR)},this.onDocumentPointerUp=function(e){var n=t.context,r=t.documentPointer,i=n.getCurrentData();if(!r.wasTouchScroll){if(i.dateSelection&&!t.isRecentPointerDateSelect){var a=n.options.unselectAuto;a&&(!a||!t.matchesCancel)&&n.calendarApi.unselect(e)}i.eventSelection&&!t.matchesEvent&&n.dispatch({type:`UNSELECT_EVENT`})}t.isRecentPointerDateSelect=!1};var n=this.documentPointer=new Ff(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on(`pointerdown`,this.onDocumentPointerDown),n.emitter.on(`pointerup`,this.onDocumentPointerUp),e.emitter.on(`select`,this.onSelect)}return e.prototype.destroy=function(){this.context.emitter.off(`select`,this.onSelect),this.documentPointer.destroy()},e}(),up={fixedMirrorParent:Y},dp={dateClick:Y,eventDragStart:Y,eventDragStop:Y,eventDrop:Y,eventResizeStart:Y,eventResizeStop:Y,eventResize:Y,drop:Y,eventReceive:Y,eventLeave:Y},fp=function(){function e(e,t){var n=this;this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){n.dragMeta=n.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,r){var i=n.hitDragging.dragging,a=null,o=null,s=!1,c={affectedEvents:X(),mutatedEvents:X(),isEvent:n.dragMeta.create};e&&(a=e.context,n.canDropElOnCalendar(r.subjectEl,a)&&(o=pp(e.dateSpan,n.dragMeta,a),c.mutatedEvents=$i(o),s=!Xl(c,e.dateProfile,a),s&&(c.mutatedEvents=X(),o=null))),n.displayDrag(a,c),i.setMirrorIsVisible(t||!o||!document.querySelector(`.fc-event-mirror`)),s?ir():ar(),t||(i.setMirrorNeedsRevert(!o),n.receivingContext=a,n.droppableEvent=o)},this.handleDragEnd=function(e){var t=n,r=t.receivingContext,i=t.droppableEvent;if(n.clearDrag(),r&&i){var a=n.hitDragging.finalHit,o=a.context.viewApi,s=n.dragMeta;if(r.emitter.trigger(`drop`,F(F({},Qf(a.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:o})),s.create){var c=$i(i);r.dispatch({type:`MERGE_EVENTS`,eventStore:c}),e.isTouch&&r.dispatch({type:`SELECT_EVENT`,eventInstanceId:i.instance.instanceId}),r.emitter.trigger(`eventReceive`,{event:new Z(r,i.def,i.instance),relatedEvents:[],revert:function(){r.dispatch({type:`REMOVE_EVENTS`,eventStore:c})},draggedEl:e.subjectEl,view:o})}}n.receivingContext=null,n.droppableEvent=null};var r=this.hitDragging=new Xf(e,Sl);r.requireInitial=!1,r.emitter.on(`dragstart`,this.handleDragStart),r.emitter.on(`hitupdate`,this.handleHitUpdate),r.emitter.on(`dragend`,this.handleDragEnd),this.suppliedDragMeta=t}return e.prototype.buildDragMeta=function(e){return typeof this.suppliedDragMeta==`object`?El(this.suppliedDragMeta):typeof this.suppliedDragMeta==`function`?El(this.suppliedDragMeta(e)):mp(e)},e.prototype.displayDrag=function(e,t){var n=this.receivingContext;n&&n!==e&&n.dispatch({type:`UNSET_EVENT_DRAG`}),e&&e.dispatch({type:`SET_EVENT_DRAG`,state:t})},e.prototype.clearDrag=function(){this.receivingContext&&this.receivingContext.dispatch({type:`UNSET_EVENT_DRAG`})},e.prototype.canDropElOnCalendar=function(e,t){var n=t.options.dropAccept;return typeof n==`function`?n.call(t.calendarApi,e):typeof n==`string`&&n?!!zn(e,n):!0},e}();function pp(e,t,n){for(var r=F({},t.leftoverProps),i=0,a=n.pluginHooks.externalDefTransforms;i<a.length;i++){var o=a[i];F(r,o(e,t))}var s=ga(r,n),c=s.refined,l=s.extra,u=va(c,l,t.sourceId,e.allDay,n.options.forceEventDuration||!!t.duration,n),d=e.range.start;e.allDay&&t.startTime&&(d=n.dateEnv.add(d,t.startTime));var f=t.duration?n.dateEnv.add(d,t.duration):co(e.allDay,d,n);return{def:u,instance:Vr(u.defId,{start:d,end:f})}}function mp(e){var t=hp(e,`event`);return El(t?JSON.parse(t):{create:!1})}wl.dataAttrPrefix=``;function hp(e,t){var n=wl.dataAttrPrefix,r=(n?n+`-`:``)+t;return e.getAttribute(`data-`+r)||``}(function(){function e(e,t){var n=this;t===void 0&&(t={}),this.handlePointerDown=function(e){var t=n.dragging,r=n.settings,i=r.minDistance,a=r.longPressDelay;t.minDistance=i??(e.isTouch?0:Wi.eventDragMinDistance),t.delay=e.isTouch?a??Wi.longPressDelay:0},this.handleDragStart=function(e){e.isTouch&&n.dragging.delay&&e.subjectEl.classList.contains(`fc-event`)&&n.dragging.mirror.getMirrorEl().classList.add(`fc-event-selected`)},this.settings=t;var r=this.dragging=new qf(e);r.touchScrollAllowed=!1,t.itemSelector!=null&&(r.pointer.selector=t.itemSelector),t.appendTo!=null&&(r.mirror.parentNode=t.appendTo),r.emitter.on(`pointerdown`,this.handlePointerDown),r.emitter.on(`dragstart`,this.handleDragStart),new fp(r,t.eventData)}return e.prototype.destroy=function(){this.dragging.destroy()},e})();var gp=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;n.shouldIgnoreMove=!1,n.mirrorSelector=``,n.currentMirrorEl=null,n.handlePointerDown=function(e){n.emitter.trigger(`pointerdown`,e),n.shouldIgnoreMove||n.emitter.trigger(`dragstart`,e)},n.handlePointerMove=function(e){n.shouldIgnoreMove||n.emitter.trigger(`dragmove`,e)},n.handlePointerUp=function(e){n.emitter.trigger(`pointerup`,e),n.shouldIgnoreMove||n.emitter.trigger(`dragend`,e)};var r=n.pointer=new Ff(t);return r.emitter.on(`pointerdown`,n.handlePointerDown),r.emitter.on(`pointermove`,n.handlePointerMove),r.emitter.on(`pointerup`,n.handlePointerUp),n}return t.prototype.destroy=function(){this.pointer.destroy()},t.prototype.setIgnoreMove=function(e){this.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){if(e)this.currentMirrorEl&&=(this.currentMirrorEl.style.visibility=``,null);else{var t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;t&&(this.currentMirrorEl=t,t.style.visibility=`hidden`)}},t}(Cl);(function(){function e(e,t){var n=document;e===document||e instanceof Element?(n=e,t||={}):t=e||{};var r=this.dragging=new gp(n);typeof t.itemSelector==`string`?r.pointer.selector=t.itemSelector:n===document&&(r.pointer.selector=`[data-event]`),typeof t.mirrorSelector==`string`&&(r.mirrorSelector=t.mirrorSelector),new fp(r,t.eventData)}return e.prototype.destroy=function(){this.dragging.destroy()},e})();var _p=Ms({componentInteractions:[ep,tp,ip,sp],calendarInteractions:[lp],elementDraggingImpl:qf,optionRefiners:up,listenerRefiners:dp}),vp=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={textId:qn()},t}return t.prototype.render=function(){var e=this.context,t=e.theme,n=e.dateEnv,r=e.options,i=e.viewApi,a=this.props,o=a.cellId,s=a.dayDate,c=a.todayRange,l=this.state.textId,u=Qo(s,c),d=r.listDayFormat?n.format(s,r.listDayFormat):``,f=r.listDaySideFormat?n.format(s,r.listDaySideFormat):``,p=F({date:n.toDate(s),view:i,textId:l,text:d,sideText:f,navLinkAttrs:ns(this.context,s),sideNavLinkAttrs:ns(this.context,s,`day`,!1)},u),m=[`fc-list-day`].concat($o(u,t));return z($,{hookProps:p,classNames:r.dayHeaderClassNames,content:r.dayHeaderContent,defaultContent:yp,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},function(e,n,r,i){return z(`tr`,{ref:e,className:m.concat(n).join(` `),"data-date":_i(s)},z(`th`,{scope:`colgroup`,colSpan:3,id:o,"aria-labelledby":l},z(`div`,{className:`fc-list-day-cushion `+t.getClass(`tableCellShaded`),ref:r},i)))})},t}(Q);function yp(e){return z(V,null,e.text&&z(`a`,F({id:e.textId,className:`fc-list-day-text`}
1,e.navLinkAttrs),e.text),e.sideText&&z(`a`,F({"aria-hidden":!0,className:`fc-list-day-side-text`},e.sideNavLinkAttrs),e.sideText))}var bp=J({hour:`numeric`,minute:`2-digit`,meridiem:`short`}),xp=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=t.seg,i=t.timeHeaderId,a=t.eventHeaderId,o=t.dateHeaderId,s=n.options.eventTimeFormat||bp;return z(wu,{seg:r,timeText:``,disableDragging:!0,disableResizing:!0,defaultContent:function(){return Sp(r,n)},isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday,isSelected:t.isSelected,isDragging:t.isDragging,isResizing:t.isResizing,isDateSelecting:t.isDateSelecting},function(e,t,c,l,u){return z(`tr`,{className:[`fc-list-event`,u.event.url?`fc-event-forced-url`:``].concat(t).join(` `),ref:e},Cp(r,s,n,i,o),z(`td`,{"aria-hidden":!0,className:`fc-list-event-graphic`},z(`span`,{className:`fc-list-event-dot`,style:{borderColor:u.borderColor||u.backgroundColor}})),z(`td`,{ref:c,headers:a+` `+o,className:`fc-list-event-title`},l))})},t}(Q);function Sp(e,t){var n=Ya(e,t);return z(`a`,F({},n),e.eventRange.def.title)}function Cp(e,t,n,r,i){var a=n.options;if(a.displayEventTime!==!1){var o=e.eventRange.def,s=e.eventRange.instance,c=!1,l=void 0;return o.allDay?c=!0:Ca(e.eventRange.range)?e.isStart?l=Ga(e,t,n,null,null,s.range.start,e.end):e.isEnd?l=Ga(e,t,n,null,null,e.start,s.range.end):c=!0:l=Ga(e,t,n),c?z($,{hookProps:{text:n.options.allDayText,view:n.viewApi},classNames:a.allDayClassNames,content:a.allDayContent,defaultContent:wp,didMount:a.allDayDidMount,willUnmount:a.allDayWillUnmount},function(e,t,n,a){return z(`td`,{ref:e,headers:r+` `+i,className:[`fc-list-event-time`].concat(t).join(` `)},a)}):z(`td`,{className:`fc-list-event-time`},l)}return null}function wp(e){return e.text}var Tp=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.computeDateVars=q(Dp),t.eventStoreToSegs=q(t._eventStoreToSegs),t.state={timeHeaderId:qn(),eventHeaderId:qn(),dateHeaderIdRoot:qn()},t.setRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t}return t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.context,i=[`fc-list`,r.theme.getClass(`table`),r.options.stickyHeaderDates===!1?``:`fc-list-sticky`],a=this.computeDateVars(n.dateProfile),o=a.dayDates,s=a.dayRanges,c=this.eventStoreToSegs(n.eventStore,n.eventUiBases,s);return z(qs,{viewSpec:r.viewSpec,elRef:this.setRootEl},function(t,r){return z(`div`,{ref:t,className:i.concat(r).join(` `)},z(su,{liquid:!n.isHeightAuto,overflowX:n.isHeightAuto?`visible`:`hidden`,overflowY:n.isHeightAuto?`visible`:`auto`},c.length>0?e.renderSegList(c,o):e.renderEmptyMessage()))})},t.prototype.renderEmptyMessage=function(){var e=this.context,t=e.options,n=e.viewApi;return z($,{hookProps:{text:t.noEventsText,view:n},classNames:t.noEventsClassNames,content:t.noEventsContent,defaultContent:Ep,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},function(e,t,n,r){return z(`div`,{className:[`fc-list-empty`].concat(t).join(` `),ref:e},z(`div`,{className:`fc-list-empty-cushion`,ref:n},r))})},t.prototype.renderSegList=function(e,t){var n=this.context,r=n.theme,i=n.options,a=this.state,o=a.timeHeaderId,s=a.eventHeaderId,c=a.dateHeaderIdRoot,l=Op(e);return z(Hl,{unit:`day`},function(e,n){for(var a=[],u=0;u<l.length;u+=1){var d=l[u];if(d){var f=_i(t[u]),p=c+`-`+f;a.push(z(vp,{key:f,cellId:p,dayDate:t[u],todayRange:n})),d=Ba(d,i.eventOrder);for(var m=0,h=d;m<h.length;m++){var g=h[m];a.push(z(xp,F({key:f+`:`+g.eventRange.instance.instanceId,seg:g,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:o,eventHeaderId:s,dateHeaderId:p},Ka(g,n,e))))}}}return z(`table`,{className:`fc-list-table `+r.getClass(`table`)},z(`thead`,null,z(`tr`,null,z(`th`,{scope:`col`,id:o},i.timeHint),z(`th`,{scope:`col`,"aria-hidden":!0}),z(`th`,{scope:`col`,id:s},i.eventHint))),z(`tbody`,null,a))})},t.prototype._eventStoreToSegs=function(e,t,n){return this.eventRangesToSegs(Pa(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)},t.prototype.eventRangesToSegs=function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var a=i[r];n.push.apply(n,this.eventRangeToSegs(a,t))}return n},t.prototype.eventRangeToSegs=function(e,t){var n=this.context.dateEnv,r=this.context.options.nextDayThreshold,i=e.range,a=e.def.allDay,o,s,c,l=[];for(o=0;o<t.length;o+=1)if(s=Oa(i,t[o]),s&&(c={component:this,eventRange:e,start:s.start,end:s.end,isStart:e.isStart&&s.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&s.end.valueOf()===i.end.valueOf(),dayIndex:o},l.push(c),!c.isEnd&&!a&&o+1<t.length&&i.end<n.add(t[o+1].start,r))){c.end=i.end,c.isEnd=!0;break}return l},t}(js);function Ep(e){return e.text}function Dp(e){for(var t=W(e.renderRange.start),n=e.renderRange.end,r=[],i=[];t<n;)r.push(t),i.push({start:t,end:U(t,1)}),t=U(t,1);return{dayDates:r,dayRanges:i}}function Op(e){var t=[],n,r;for(n=0;n<e.length;n+=1)r=e[n],(t[r.dayIndex]||(t[r.dayIndex]=[])).push(r);return t}var kp={listDayFormat:Ap,listDaySideFormat:Ap,noEventsClassNames:Y,noEventsContent:Y,noEventsDidMount:Y,noEventsWillUnmount:Y};function Ap(e){return e===!1?null:J(e)}var jp=Ms({optionRefiners:kp,views:{list:{component:Tp,buttonTextKey:`list`,listDayFormat:{month:`long`,day:`numeric`,year:`numeric`}},listDay:{type:`list`,duration:{days:1},listDayFormat:{weekday:`long`}},listWeek:{type:`list`,duration:{weeks:1},listDayFormat:{weekday:`long`},listDaySideFormat:{month:`long`,day:`numeric`,year:`numeric`}},listMonth:{type:`list`,duration:{month:1},listDaySideFormat:{weekday:`long`}},listYear:{type:`list`,duration:{year:1},listDaySideFormat:{weekday:`long`}}}}),Mp={ref:`calendarList`,class:`c-calendar__list grid grid-cols-1`},Np={class:`mb-2 px-4 md:px-0`},Pp={class:`grid grid-cols-1 gap-2 overflow-hidden rounded-[10px] lg:gap-4`},Fp={key:1,class:`text-theme-muted-light s-text-title mx-auto my-4 lg:my-8`},Ip={__name:`CalendarList`,props:{weekEvents:{type:Object,required:!0}},setup(e){let t=e=>e?oe(e.toISOString(),`DDDD`)??``:``,n=e=>!e||!Array.isArray(e)?[]:[...e].sort((e,t)=>
1(e.date?new Date(e.date).getTime():0)-(t.date?new Date(t.date).getTime():0));return(r,a)=>(h(),s(`div`,Mp,[e.weekEvents&&e.weekEvents?.length?(h(!0),s(m,{key:0},T(e.weekEvents,(e,r)=>(h(),s(`div`,{key:r,class:`c-calendar__list-item`},[d(`div`,Np,[l(C(fe),{theme:`light-theme`,size:`small`,tag:`h3`,line:`under`,class:`pt-4 pb-3`,text:e.start?t(e.start):``},null,8,[`text`])]),d(`div`,Pp,[(h(!0),s(m,null,T(n(e.extendedProps.events),e=>(h(),i(ke,{key:e.id,isCompositeCalendar:!0,compact:!1,game:e,max:!0,showSportName:!0},null,8,[`game`]))),128))])]))),128)):(h(),s(`div`,Fp,` No Events this week `))],512))}},Lp={id:`calendarModalHeader`,class:`c-calendar-modal__header border-theme-brand-light flex items-center justify-between border-b-4 p-4`},Rp={class:`s-text-heading-small text-theme-safe-light`},zp={class:`flex items-center`},Bp={class:`s-text-details text-theme-muted-light`},Vp={key:0,class:`pt-4`},Hp={key:1,class:`c-calendar-modal__content grid grid-cols-1 gap-2 overflow-auto p-3`},Up={class:`c-calendar-modal__footer`},Wp={class:`hidden @[480px]/calendar-modal:block`},Gp=ye({__name:`CalendarModal`,props:{selectedDate:{type:Object,required:!0},loading:{type:Boolean,required:!1,default:!1}},emits:[`closeModal`],setup(e,{emit:t}){let n=e,r=t,a=O(null),o=()=>r(`closeModal`),u=e=>{(e.key===`Escape`||e.which==27)&&o()};return x(()=>{D(n.selectedDate,e=>{e?window.addEventListener(`keydown`,u):window.removeEventListener(`keydown`,u)},{immediate:!0})}),D(()=>n.loading,async e=>{e||(await p(),setTimeout(()=>{a.value?.querySelector(`a`)?.focus()},300))},{immediate:!0}),(t,n)=>{let r=ve,u=le,f=S(`focusTrap`);return h(),s(`div`,{class:`c-calendar-modal__base fixed top-0 left-0 z-[10000] flex h-full w-full items-center justify-center px-4 @container/calendar-modal`,role:`dialog`,"aria-labelledby":`calendarModalHeader`,onBlur:n[1]||=e=>o()},[c((h(),s(`div`,{ref_key:`calendarModal`,ref:a,class:`c-calendar-modal__wrapper border-theme-border-light bg-theme-background-light flex max-h-[90vh] w-full max-w-screen-xl flex-col rounded-[10px] border shadow-lg`},[d(`div`,Lp,[d(`span`,Rp,_(C(oe)(e.selectedDate.start.toISOString(),`DDDD`)),1),d(`div`,zp,[d(`span`,Bp,_(e.selectedDate.title)+` `+_(e.selectedDate.title===`1`?`Event`:`Events`),1),n[2]||=d(`div`,{class:`bg-theme-brand-light ml-1 h-[6px] w-[6px] rounded-full`},null,-1)])]),e.loading?(h(),s(`div`,Vp,[l(C(me),{theme:`light-theme`,size:`regular`,indeterminate:``,type:`circular`})])):(h(),s(`div`,Hp,[(h(!0),s(m,null,T(e.selectedDate.extendedProps.events,e=>(h(),i(ke,{key:e.id,compact:!1,game:e,max:!0,showSportName:!0},null,8,[`game`]))),128))])),d(`div`,Up,[d(`div`,Wp,[l(r,{adSlotName:`htlad-calendar_event`,class:`my-[16px] lg:my-[32px]`})]),d(`button`,{class:`border-theme-border-light flex w-full items-center justify-center border-t py-6`,type:`button`,onClick:n[0]||=k(e=>o(),[`prevent`])},[l(u,{name:`icon-close-circle`,class:`text-theme-brand-light mr-2 inline-block`}),n[3]||=d(`span`,{class:`text-theme-brand-light s-text-regular-bold`},`Close`,-1)])])])),[[f]])],32)}}},[[`__scopeId`,`data-v-925573b2`]]),Kp={class:`flex flex-col`},qp={class:`w-full`},Jp={class:`flex flex-col lg:gap-1 w-full`},Yp={class:`flex flex-row lg:gap-1 w-full mb-[1em]`},Xp={__name:`_CalendarSkeletonShape`,props:{calendarTemplate:{type:String,required:!0},rail:Boolean},setup(e){return(t,n)=>(h(),s(`div`,Kp,[d(`div`,qp,[l(C(de),{class:`w-[300px] h-[30px] mb-[1.5em] mx-auto`})]),d(`div`,Jp,[d(`div`,Yp,[(h(),s(m,null,T(7,t=>d(`div`,{key:t,class:`flex-1`},[l(C(de),{class:g([`h-[30px]  mx-auto`,e.rail?`w-[50px] xl:w-[80px]`:`w-[50px] lg:w-[80px]`])},null,8,[`class`])])),64))]),(h(),s(m,null,T(5,t=>d(`div`,{key:t,class:`flex flex-row lg:gap-1 w-full`},[(h(),s(m,null,T(7,t=>l(C(de),{key:t,class:g([`flex-1 rounded-lg`,e.rail?`h-[100px] lg:h-[120px] xl:h-[300px]`:`h-[100px] lg:h-[300px]`])},null,8,[`class`])),64))])),64))])]))}},Zp={class:`slot-event-item grid items-center justify-center justify-items-center md:flex`},Qp={class:`s-text-details text-theme-muted-light s-calendar-event__item-text md:mr-1 md:inline-block after:content-['_']`},$p={class:`s-text-details text-theme-muted-light s-calendar-event__item-text after:content-['_']`},em={class:`sr-only`},tm={class:`s-text-details-bold text-theme-safe-light flex items-center`},nm=[`xlink:href`],rm={class:`ml-[4px]`,"aria-hidden":`true`},im={class:`sr-only after:content-['_']`},am={__name:`CalendarComponent`,props:{calendarTemplate:{type:String,required:!0},rail:Boolean},setup(t){let a=t,o=O(null),c=O(null),u=O(null),y=O(``),b=O(``),S=O(ne.utc().toFormat(`yyyy-MM-dd`)),w=O(!1),k=O(null),{$customFetch:ee}
1=e(),A=O(null),j=Oe(),te=ae(),{isMobile:ie}=se(),M=f(`calendarFilters`),oe=E(()=>({sport_id:M?.sport_id,start_date:y.value,end_date:b.value,location:M?.location_indicator})),N=E(()=>({sport_id:M?.sport_id,start_date:c.value??``,end_date:u.value??``,location:M?.location_indicator})),le=E(()=>({date:o.value?.start,sport_id:M?.sport_id,location:M?.location_indicator})),ue=E(()=>a.calendarTemplate===`list`),de=E(()=>a.calendarTemplate===`grid`),fe=E(()=>j.getCalendarByKey(re(oe.value))),me=E(()=>j.getWeekEvents(re(N.value))),he=E(()=>{let e=j.getWeekEvents(re(N.value));if(S.value&&e?.events?.length){let t=e.events.filter(e=>ne.fromJSDate(e.start).toFormat(`yyyy-MM-dd`)>=S.value);return{...e,events:t?.length?t:e?.events}}return e}),ge=E(()=>j.getDayEvents(re(le.value))),_e=E(()=>j.getLoading),ve=E(()=>j.getDayEventsLoading),ye=E(()=>{let e={plugins:[Id,jf,_p,jp],initialView:`dayGridMonth`,headerToolbar:{start:`prev,next`,center:`title`,end:``},buttonIcons:{prev:`chevrons-left`,next:`chevrons-right`},eventDidMount:function(e){let t=e.el;if(t){let n=document.createElement(`span`);for(let{name:e,value:r}of t.attributes)n.setAttribute(e,r);if(n.innerHTML=t.innerHTML,n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`),n.addEventListener(`click`,t=>{t.preventDefault(),t.stopPropagation(),a.calendarTemplate===`list`&&e.event?.start&&(S.value=ne.fromJSDate(e.event.start).toFormat(`yyyy-MM-dd`))}),t.hasAttribute(`aria-label`)){let e=document.createElement(`span`);e.className=`sr-only`,e.textContent=t.getAttribute(`aria-label`),n.appendChild(e)}t.parentNode&&t.parentNode.replaceChild(n,t)}},eventClick({jsEvent:e,event:t}){e.preventDefault(),e.stopPropagation(),a.calendarTemplate===`list`&&t?.start&&(S.value=ne.fromJSDate(t.start).toFormat(`yyyy-MM-dd`))},dateClick:function({dateStr:e,jsEvent:t}){w.value=!1,t.preventDefault(),t.stopPropagation(),a.calendarTemplate===`grid`&&(o.value=fe.value?.events.find(t=>ne.fromJSDate(t.start).toFormat(`yyyy-MM-dd`)===e),Se())},datesSet:function(){setTimeout(Te,0),setTimeout(Ee,0)},eventsSet:async function(){if(a.calendarTemplate===`list`){let e=k.value?.getApi().view.currentStart,t=k.value?.getApi().view.currentEnd;c.value=encodeURIComponent(e.toLocaleDateString(`en-US`)),u.value=encodeURIComponent(t.toLocaleDateString(`en-US`)),await xe()}a.calendarTemplate===`grid`&&(await p(),Ae())},height:`auto`,fixedWeekCount:!1,viewDidMount:function(e){De();let t=e.el.closest(`.fc-view-harness`);t&&t.setAttribute(`role`,`region`)},views:{dayGridWeek:{dayHeaderFormat:{weekday:ie.value?`short`:`long`,day:`numeric`,omitCommas:!0},titleFormat:{month:`long`,day:`numeric`}}},dayCellDidMount(e){e.el.removeAttribute(`aria-labelledby`),e.el.querySelectorAll(`[aria-labelledby]`).forEach(e=>e.removeAttribute(`aria-labelledby`))},events:async function(e,t){let n=new Date(e.startStr),r=new Date(e.endStr);y.value=encodeURIComponent(n.toLocaleDateString(`en-US`)),b.value=encodeURIComponent(r.toLocaleDateString(`en-US`)),c.value=encodeURIComponent(n.toLocaleDateString(`en-US`)),u.value=encodeURIComponent(r.toLocaleDateString(`en-US`)),await xe(),a.calendarTemplate===`list`?t(me.value?.events??[]):t(fe.value?.events??[])},eventClassNames:`s-calendar-event__item`};return M&&M?.initialDate&&M?.initialDate?.length&&(e.initialDate=M?.initialDate),e}),be=()=>{let e=``;if(w.value&&o.value&&(e=ne.fromJSDate(o.value.start).toFormat(`yyyy-MM-dd`)),o.value=null,w.value&&e&&k.value){let t=k.value?.getApi();if(t){let n=t?.el?.querySelector(`.fc-daygrid-day[data-date="${e}"] .s-calendar-event__item`);n&&n?.focus()}}document.querySelectorAll(`.fc-daygrid-day-frame`).forEach(e=>{e.setAttribute(`aria-expanded`,`false`)})},xe=async()=>{a.calendarTemplate===`grid`?(await j.fetchCalendarPreviewsNoLoading({payload:oe.value,fetch:ee}),j.setCurrentParams({type:`month`,...oe.value})):(await j.fetchWeekEventsNoLoading({payload:N.value,fetch:ee}),j.setCurrentParams({type:`week`,...N.value}),Pe())},Se=async()=>{o.value&&o.value.extendedProps.events?.length&&await j.fetchDayEvents({payload:le.value,fetch:ee})},Ce=async()=>{let e=ne.local();if(ye.value.initialDate&&(e=ne.fromISO(ye.value.initialDate.toString())),a.calendarTemplate===`grid`)await j.fetchCalendarPreviews({payload:oe.value,fetch:ee}
1),te.setMetaTokens([{token:`@date`,value:!e||e.invalidReason?``:e?.toFormat(`LLLL d, yyyy`)??``}]),j.setCurrentParams({type:`month`,...oe.value});else{await j.fetchWeekEvents({payload:N.value,fetch:ee});let t=e?.invalidReason?ne.local():e.plus({days:6});te.setMetaTokens([{token:`@date`,value:!e||e?.invalidReason||!t||t?.invalidReason?``:`${e.toFormat(`LLLL d, yyyy`)} - ${t.toFormat(`LLLL d, yyyy`)}`}]),j.setCurrentParams({type:`week`,...N.value})}},we=()=>{k.value&&k.value.getApi().refetchEvents()},Te=()=>{document.querySelectorAll(`.fc-prev-button, .fc-next-button`).forEach(e=>{e.removeAttribute(`aria-pressed`);let t=e.getAttribute(`title`);t&&e.setAttribute(`aria-label`,t)})},Ee=()=>{document.querySelectorAll(`a.fc-col-header-cell-cushion`).forEach(e=>{let t=e.getAttribute(`aria-label`),n=document.createElement(`span`);n.classList.add(`fc-col-header-cell-cushion`);let r=document.createElement(`span`);if(r.setAttribute(`aria-hidden`,`true`),r.textContent=e.textContent,n.appendChild(r),t){let e=document.createElement(`span`);e.className=`sr-only`,e.textContent=t,n.appendChild(e)}e.parentElement?.replaceChild(n,e)})},De=()=>{if(k.value){let e=k.value.getApi();if(a.calendarTemplate===`grid`)e.changeView(`dayGridMonth`),j.setCurrentParams({type:`month`,...oe.value});else{e.changeView(`dayGridWeek`);let t=k.value?.getApi().view.currentStart,n=k.value?.getApi().view.currentEnd;c.value=encodeURIComponent(t.toLocaleDateString(`en-US`)),u.value=encodeURIComponent(n.toLocaleDateString(`en-US`)),j.setCurrentParams({type:`week`,...N.value})}}},ke=()=>{let e=a.calendarTemplate===`grid`?fe.value?.events:me.value?.events;if(!e)return;let t=e.map(e=>new Date(e.start).getTime());if(!k.value)return;let n=k.value?.getApi();if(!n)return;let r=n?.el?.getElementsByClassName(`fc-daygrid-day`),i=Array.from(r),o=n?.el?.getElementsByClassName(`fc-day`),s=Array.from(o),c=null;S.value&&(c=new Date(`${S.value}T00:00:00`)),i?.forEach(e=>{if(e?.classList?.remove(`selected-date`),e.firstElementChild?.classList?.remove(`bg-theme-background-light`),e.firstElementChild?.classList?.remove(`bg-theme-surface-light`),a.calendarTemplate===`grid`){let n=new Date(`${e.dataset.date}T00:00:00`),r=t.includes(n.getTime())?`bg-theme-background-light`:`bg-theme-surface-light`;e.firstElementChild?.classList.add(r)}a.calendarTemplate===`list`&&c&&e.dataset.date===S.value&&t.includes(c.getTime())&&e?.classList?.add(`selected-date`)}),s?.forEach(e=>{if(e?.classList?.remove(`selected-date`),e.querySelectorAll(`.sr-only.selected-date-indicator`).forEach(e=>e.remove()),a.calendarTemplate===`list`&&c&&e.dataset.date===S.value&&t.includes(c.getTime())){e?.classList?.add(`selected-date`);let t=document.createElement(`span`);t.className=`sr-only selected-date-indicator`,t.textContent=`(selected)`,e?.appendChild(t),A.value&&(A.value.textContent=``,p(()=>{A.value&&(A.value.textContent=`Selected: `+e?.querySelector(`.sr-only`)?.textContent?.trim())}))}})},Ae=()=>{if(!(a.calendarTemplate===`grid`?fe.value?.events:me.value?.events)||!k.value)return;let e=k.value?.getApi();if(!e)return;let t=e?.el?.getElementsByClassName(`s-calendar-event__item`),n=Array?.from(t);if(n?.length)for(let e of n)e.addEventListener(`keydown`,t=>{if(a.calendarTemplate!==`list`&&(t.key||t.code)===`Enter`){let t=e?.closest(`.fc-daygrid-day`)?.getAttribute(`data-date`);t&&(w.value=!0,o.value=fe.value?.events.find(e=>ne.fromJSDate(e.start).toFormat(`yyyy-MM-dd`)===t),Se())}})},je=()=>{if(a.calendarTemplate!==`grid`)return;let e=k.value?.getApi();if(!e)return;let t=e?.el?.querySelectorAll(`.fc-daygrid-day  .fc-daygrid-day-top`),n=Array?.from(t);n?.length&&n?.forEach(e=>{let t=e.querySelector(`.fc-daygrid-day-number`);if(t){let n=document.createElement(`span`);for(let{name:e,value:r}of t.attributes)[`aria-label`,`tabindex`].includes(e)||n.setAttribute(e,r);if(n.innerHTML=t.innerHTML,t.hasAttribute(`aria-label`)){let n=document.createElement(`span`);n.className=`sr-only`,n.textContent=t.getAttribute(`aria-label`),e.appendChild(n)}t.replaceWith(n)}})},Me=e=>!e||!Array.isArray(e)?[]:[...e].sort((e,t)=>(e.date?new Date(e.date).getTime():0)-(t.date?new Date(t.date).getTime():0)),Ne=e=>{let t=new Date(e),n=[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],r=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],i=n[t.getDay()],a=t.getDate();return`${i}, ${r[t.getMonth()]} ${a}, ${t.getFullYear()}`},Pe=()=>{if(S.value){let e=new Date(`${S.value}T00:00:00`),t=new Date(`${c.value}T00:00:00`),n=new Date(`${u.value}T00:00:00`);e.getTime()<=n.getTime()&&e.getTime()>=t.getTime()||(S.value=``)}};return D([fe,me,he],async()=>{await p(),ke(),je()}),D(M,()=>{we(),S.value=``}),D(()=>a.calendarTemplate,e=>{if(k.value){let t=k.value.getApi();if(e===`grid`)t.changeView(`dayGridMonth`);else{t.changeView(`dayGridWeek`);let e=k.value?.getApi().view.currentStart,n=k.value?.getApi().view.currentEnd;c.value=encodeURIComponent(e.toLocaleDateString(`en-US`)),u.value=encodeURIComponent(n.toLocaleDateString(`en-US`))}ke(),je()}}),v(async()=>
1{document.querySelectorAll(`.fc-daygrid-day-frame`).forEach(e=>{e.setAttribute(`role`,`button`),a.calendarTemplate===`grid`&&(e.setAttribute(`aria-haspopup`,`dialog`),e.setAttribute(`aria-expanded`,`false`),e.addEventListener(`click`,()=>{e.setAttribute(`aria-expanded`,`true`)}))}),a.calendarTemplate===`list`&&document.querySelectorAll(`.hidden-on-list-view, .calendar-expand-icon`).forEach(e=>{e.style.display=`none`})}),x(async()=>{fe.value||await Ce(),Ee(),setTimeout(Te,0)}),(e,c)=>(h(),i(C(pe),{isLoading:C(_e)},{content:r(()=>[d(`div`,{id:`calendarComponent`,class:g([`relative`,{"calendar--in-rail":t.rail}])},[d(`span`,{ref_key:`liveRegion`,ref:A,"aria-live":`polite`,"aria-atomic":`true`,class:`sr-only`},null,512),l(C(od),{ref_key:`calendarEl`,ref:k,options:C(ye)},{eventContent:r(({event:e})=>[d(`div`,Zp,[d(`span`,Qp,_(e.title),1),d(`span`,$p,_(e.title===`1`?`Event`:`Events`),1),d(`span`,em,_(Ne(e.start)),1),c[0]||=d(`div`,{class:`bg-primary s-calendar-event__item-badge inline-block h-[6px] w-[6px] rounded-full md:ml-1`},null,-1)]),C(de)&&e.extendedProps&&e.extendedProps.events.length?(h(),s(`div`,{key:0,class:g([`hidden gap-2 pl-4 hidden-on-list-view`,{"xl:grid":t.rail,"lg:grid":!t.rail}])},[(h(!0),s(m,null,T(Me(e.extendedProps.events),e=>(h(),s(`div`,{key:e.id,class:`flex items-center`},[d(`span`,tm,[(h(),s(`svg`,{focusable:`false`,role:`img`,fill:`currentColor`,style:{},class:g([`s-icon s-icon--size-x-small`,C(ce)(e.sport?.globalSportShortname??``)]),"aria-hidden":`true`},[d(`use`,{"xlink:href":`/sidearm-icons-sports.svg#${C(ce)(e.sport?.globalSportShortname??``)}`},null,8,nm)],2)),d(`span`,rm,_(`${e.sport?.abbreviation??``} `),1),d(`span`,im,_(`${e.sport?.title??``}`),1)])]))),128))],2)):n(``,!0),C(de)?(h(),s(`div`,{key:1,class:g([`calendar-expand-icon border-theme-brand-light absolute right-[8px] bottom-[8px] z-10 hidden h-[22px] w-[22px] place-items-center rounded-full border-2`,{"xl:grid":t.rail,"lg:grid":!t.rail}])},[...c[1]||=[d(`div`,{class:`bg-theme-brand-light h-[2px] w-3 rounded-[10px]`},null,-1),d(`div`,{class:`bg-theme-brand-light absolute h-[2px] w-3 rotate-90 rounded-[10px]`},null,-1)]],2)):n(``,!0)]),_:1},8,[`options`]),C(o)?(h(),i(Gp,{key:0,selectedDate:C(ge)||C(o),loading:C(ve),onCloseModal:be},null,8,[`selectedDate`,`loading`])):n(``,!0),C(ue)&&C(he)?(h(),i(Ip,{key:1,weekEvents:C(he).events},null,8,[`weekEvents`])):n(``,!0)],2)]),default:r(()=>[l(Xp,{calendarTemplate:a.calendarTemplate,rail:a.rail},null,8,[`calendarTemplate`,`rail`])]),_:1},8,[`isLoading`]))}},om={class:`space-y-4 lg:space-y-8`},sm={id:`gridPanel`,tabindex:`0`,role:`tabpanel`,"aria-labelledby":`_viewType_grid`,class:`scroll-mt-[100vh]`},cm={class:`min-h-[500px]`},lm={id:`listPanel`,tabindex:`0`,role:`tabpanel`,"aria-labelledby":`_viewType_list`,class:`scroll-mt-[100vh]`},um={class:`min-h-[500px]`},dm={class:`flex justify-center pt-4 empty:hidden lg:pt-8`},fm={__name:`CalendarNoRail`,props:{calendarTemplate:{type:String,required:!0},currentSport:{type:Object}},setup(e){return(t,a)=>{let o=M,s=ve,u=_e;return h(),i(Se,null,{body:r(()=>[d(`div`,om,[c(d(`div`,sm,[d(`div`,cm,[l(o,null,{fallback:r(()=>[l(Xp,{calendarTemplate:`grid`})]),default:r(()=>[e.calendarTemplate==`grid`?(h(),i(am,{key:0,calendarTemplate:`grid`})):n(``,!0)]),_:1})])],512),[[A,e.calendarTemplate==`grid`]]),c(d(`div`,lm,[d(`div`,um,[l(o,null,{fallback:r(()=>[l(Xp,{calendarTemplate:`list`})]),default:r(()=>[e.calendarTemplate==`list`?(h(),i(am,{key:0,calendarTemplate:`list`})):n(``,!0)]),_:1})])],512),[[A,e.calendarTemplate==`list`]]),l(s,{adSlotName:`htlad-common-bottom`,class:`ml-auto mr-auto`}),l(Ce,{id:e.currentSport?.id,class:`!border-theme-border-light !border !border-solid`,wrapper:``,moduleTitle:`Related Videos`,type:e.currentSport?.id?`related`:`recent`,"data-type":e.currentSport?.id?`sport`:`all`},null,8,[`id`,`type`,`data-type`]),l(xe,{id:e.currentSport?.id,class:`!border-theme-border-light !border !border-solid`,wrapper:``,moduleTitle:`Related News`,type:e.currentSport?.id?`related`:`recent`,"data-type":e.currentSport?.id?`sport`:`all`},null,8,[`id`,`type`,`data-type`]),d(`div`,dm,[l(u,{name:`calendar-below-content-1`,sportId:`0`,defaultStyling:``})])])]),_:1})}}},pm={class:`space-y-4 lg:space-y-8`}
1,mm={id:`gridPanel`,tabindex:`0`,role:`tabpanel`,"aria-labelledby":`_viewType_grid`,class:`scroll-mt-[100vh]`},hm={class:`min-h-[500px]`},gm={id:`listPanel`,tabindex:`0`,role:`tabpanel`,"aria-labelledby":`_viewType_list`,class:`scroll-mt-[100vh]`},_m={class:`min-h-[500px]`},vm={key:1,class:`flex justify-center empty:hidden`},ym={class:`grid grid-cols-1 gap-4 lg:mb-4`},bm={key:1,class:`flex justify-center empty:hidden`},xm={__name:`CalendarLeftRail`,props:{calendarTemplate:{type:String,required:!0},currentSport:{type:Object}},setup(e){let{isDesktop:t}=se();return(a,o)=>{let u=M,f=ve,p=_e;return h(),i(we,null,{body:r(()=>[d(`div`,pm,[c(d(`div`,mm,[d(`div`,hm,[l(u,null,{fallback:r(()=>[l(Xp,{calendarTemplate:`grid`,rail:!0})]),default:r(()=>[e.calendarTemplate==`grid`?(h(),i(am,{key:0,calendarTemplate:`grid`,rail:!0})):n(``,!0)]),_:1})])],512),[[A,e.calendarTemplate==`grid`]]),c(d(`div`,gm,[d(`div`,_m,[l(u,null,{fallback:r(()=>[l(Xp,{calendarTemplate:`list`,rail:!0})]),default:r(()=>[e.calendarTemplate==`list`?(h(),i(am,{key:0,calendarTemplate:`list`,rail:!0})):n(``,!0)]),_:1})])],512),[[A,e.calendarTemplate==`list`]]),C(t)?n(``,!0):(h(),i(f,{key:0,adSlotName:`htlad-common-bottom`,class:`ml-auto mr-auto`})),l(xe,{id:e.currentSport?.id,class:`!border-theme-border-light hidden !border !border-solid lg:block`,wrapper:``,moduleTitle:`Related News`,type:e.currentSport?.id?`related`:`recent`,"data-type":e.currentSport?.id?`sport`:`all`},null,8,[`id`,`type`,`data-type`]),C(t)?(h(),s(`div`,vm,[l(p,{name:`calendar-below-content-1`,sportId:`0`,defaultStyling:``})])):n(``,!0)])]),rail:r(()=>[d(`div`,ym,[C(t)?n(``,!0):(h(),i(f,{key:0,adSlotName:`htlad-common-bottom`,class:`ml-auto mr-auto`})),l(Ce,{id:e.currentSport?.id,class:`!border-theme-border-light !border !border-solid`,wrapper:``,moduleTitle:`Related Videos`,type:e.currentSport?.id?`related`:`recent`,"data-type":e.currentSport?.id?`sport`:`all`},null,8,[`id`,`type`,`data-type`]),l(xe,{id:e.currentSport?.id,class:`!border-theme-border-light !border !border-solid lg:hidden`,wrapper:``,moduleTitle:`Related News`,type:e.currentSport?.id?`related`:`recent`,"data-type":e.currentSport?.id?`sport`:`all`},null,8,[`id`,`type`,`data-type`]),C(t)?n(``,!0):(h(),s(`div`,bm,[l(p,{name:`calendar-below-content-1`,sportId:`0`,defaultStyling:``})]))]),l(u,null,{default:r(()=>[C(t)?(h(),i(Te,{key:0},{default:r(()=>[l(f,{adSlotName:`htlad-common-rail2_BTF_Flex`})]),_:1})):n(``,!0)]),_:1})]),_:1})}}},Sm={class:`space-y-4 lg:space-y-8`},Cm={id:`gridPanel`,tabindex:`0`,role:`tabpanel`,"aria-labelledby":`_viewType_grid`,class:`scroll-mt-[100vh]`},wm={class:`min-h-[500px]`},Tm={id:`listPanel`,tabindex:`0`,role:`tabpanel`,"aria-labelledby":`_viewType_list`,class:`scroll-mt-[100vh]`},Em={class:`min-h-[500px]`},Dm={key:1,class:`flex justify-center empty:hidden`},Om={class:`grid grid-cols-1 gap-4 lg:mb-4`},km={key:1,class:`flex justify-center empty:hidden`},Am={__name:`CalendarRightRail`,props:{calendarTemplate:{type:String,required:!0},currentSport:{type:Object}},setup(e){let{isDesktop:t}=se();return(a,o)=>{let u=M,f=ve,p=_e;return h(),i(Ee,null,{body:r(()=>[d(`div`,Sm,[c(d(`div`,Cm,[d(`div`,wm,[l(u,null,{fallback:r(()=>[l(Xp,{calendarTemplate:`grid`,rail:!0})]),default:r(()=>[e.calendarTemplate==`grid`?(h(),i(am,{key:0,calendarTemplate:`grid`,rail:!0})):n(``,!0)]),_:1})])],512),[[A,e.calendarTemplate==`grid`]]),c(d(`div`,Tm,[d(`div`,Em,[l(u,null,{fallback:r(()=>[l(Xp,{calendarTemplate:`list`,rail:!0})]),default:r(()=>[e.calendarTemplate==`list`?(h(),i(am,{key:0,calendarTemplate:`list`,rail:!0})):n(``,!0)]),_:1})])],512),[[A,e.calendarTemplate==`list`]]),C(t)?n(``,!0):(h(),i(f,{key:0,adSlotName:`htlad-common-bottom`,class:`ml-auto mr-auto`})),l(xe,{id:e.currentSport?.id,class:`!border-theme-border-light hidden !border !border-solid lg:block`,wrapper:``,moduleTitle:`Related News`,type:e.currentSport?.id?`related`:`recent`,"data-type":e.currentSport?.id?`sport`:`all`},null,8,[`id`,`type`,`data-type`]),C(t)?(h(),s(`div`,Dm,[l(p,{name:`calendar-below-content-1`,sportId:`0`,defaultStyling:``})])):n(``,!0)])]),rail:r(()=>[d(`div`,Om,[C(t)?n(``,!0):(h(),i(f,{key:0,adSlotName:`htlad-common-bottom`,class:`ml-auto mr-auto`})),l(Ce,{id:e.currentSport?.id,class:`!border-theme-border-light !border !border-solid`,wrapper:``,moduleTitle:`Related Videos`,type:e.currentSport?.id?`related`:`recent`,"data-type":e.currentSport?.id?`sport`:`all`},null,8,[`id`,`type`,`data-type`]),l(xe,{id:e.currentSport?.id,class:`!border-theme-border-light !border !border-solid lg:hidden`,wrapper:``,moduleTitle:`Related News`,type:e.currentSport?.id?`related`:`recent`,"data-type":e.currentSport?.id?`sport`:`all`},null,8,[`id`,`type`,`data-type`]),C(t)?n(``,!0):(h(),s(`div`,km,[l(p,{name:`calendar-below-content-1`,sportId:`0`,defaultStyling:``})]))]),l(u,null,{default:r(()=>[C(t)?(h(),i(Te,{key:0},{default:r(()=>[l(f,{adSlotName:`htlad-common-rail2_BTF_Flex`})]),_:1})):n(``,!0)]),_:1})]),_:1})}}},jm={class:`flex justify-center pb-4 empty:hidden lg:pb-8`},Mm={class:`pb-8`},Nm={class:`mb-4`},Pm={class:`flex justify-center pb-4 empty:hidden lg:pb-8`},Fm={__name:`CalendarPage`,setup(t){let n=j(),a=Oe(),c=te(),{$customFetch:f}=e(),p=O(`grid`),m=u({location_indicator:``,sport_id:0,showSportSelect:!0,initialDate:``}),g={legacy_1_left_rail:xm,legacy_1_right_rail:Am,legacy_1_no_rail:fm},v=E(()=>{let e=`legacy_1_left_rail`;return n.query&&n.query.preview&&Object.keys(g).includes(n.query.preview.toString())?e=n.query.preview:k.value&&Object.keys(g).includes(k.value.defaultTemplate)&&(e=k.value.defaultTemplate),e}),S=E(()=>g[v.value]?g[v.value]:g.legacy_1_left_rail);D(()=>n.query,e=>{e&&e.date&&e.date?.toString()&&e.date?.toString()?.length&&new Date(e.date?.toString())&&Number(new Date(e.date?.toString()))&&(m.initialDate=new Date(e.date.toString()).toISOString()?.slice(0,10)),e&&e.vtype&&[`list`,`grid`].includes(e.vtype)&&(p.value=e.vtype)},{immediate:!0}),D(()=>
1n.params,()=>{if(n.params.globalSportNameSlug){let e=c.getSportByGlobalSlugOrShortname(String(n.params.globalSportNameSlug));e&&(m.sport_id=e.id,m.showSportSelect=!1)}},{immediate:!0});let T=E(()=>n.params.globalSportNameSlug?c.getSportByGlobalSlugOrShortname(String(n.params.globalSportNameSlug))?.short_title:``),k=E(()=>a.getSettings),ee=E(()=>c.getCurrentSport),A=e=>{m.sport_id=Number.parseInt(e)},ne=e=>{m.location_indicator=e},re=e=>{p.value=e};w(`calendarFilters`,m);let ie=async()=>{await a.fetchSettings({fetch:f})};return x(async()=>{await ie()}),(e,t)=>{let n=_e;return h(),s(`div`,null,[d(`div`,jm,[l(n,{name:`calendar-above-header-1`,sportId:`0`,defaultStyling:``})]),d(`div`,Mm,[l(be,null,y({_:2},[C(T)===``?{name:`title`,fn:r(()=>[t[0]||=o(` Composite Calendar `,-1)]),key:`1`}:{name:`title`,fn:r(()=>[o(_(C(T))+` Composite Calendar `,1)]),key:`0`}]),1024)]),d(`div`,Nm,[l(We,{viewType:C(p),onSelectSport:A,onFilterLocation:ne,onChangeView:re},null,8,[`viewType`])]),d(`div`,Pm,[l(n,{name:`calendar-below-header-1`,sportId:`0`,defaultStyling:``})]),(h(),i(b(C(S)),{calendarTemplate:C(p),currentSport:C(ee)},null,8,[`calendarTemplate`,`currentSport`]))])}}};export{Fm as default};

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.