vendor: 9,801 bytes, line 1
1import{c as Z,i as ge,D as A,m as w,g as F,y as c,S as Ye,V as Se,C as I,f as Re,s as Xe,a as J,N as P,b as Gt,d as Ke,e as Q,h as q,B as b,j as Ce,k as ae,l as ye,_ as x,E as zt,n as jt,o as se,p as Bt,q as U,r as S,t as Ft,u as N,v as ie,R as M,w as Vt,x as qt,z as $t,A as ce,F as Yt,G as Xt,H as Kt,I as Le,J as Zt,K as G,L as Jt,M as Qt,O as T,P as de,Q as er,T as E,U as O,W as rr,X as Oe,Y as sr,Z as ir,$ as be,a0 as lr,a1 as nr,a2 as or,a3 as Ae,a4 as ar,a5 as cr,a6 as dr,a7 as z,a8 as ve,a9 as Ze,aa as Je,ab as Qe,ac as Y,ad as _,ae as ue,af as ur,ag as hr,ah as fr,ai as pr,aj as mr,ak as he,al as gr,am as Sr,an as Rr,ao as we,ap as Cr,aq as yr,ar as fe,as as br,at as vr,au as ee,av as et,aw as tt,ax as rt,ay as wr,az as xr,aA as Er,aB as Dr,aC as le,aD as st,aE as Ir,aF as kr,aG as it,aH as Tr,aI as xe,aJ as Mr,aK as lt,aL as Hr,aM as Nr,aN as Wr,aO as Ee,aP as Lr,aQ as Or,aR as Ar,aS as Pr,aT as nt,aU as Ur,aV as _r,aW as Gr,aX as j,aY as zr,aZ as jr,a_ as ot,a$ as Br,b0 as Fr,b1 as Vr,b2 as qr,b3 as $r,b4 as Yr,b5 as Xr,b6 as Kr,b7 as Zr,b8 as Jr}from"../assets/index-DA22RxBC.js";import{h as ne}from"../assets/moment-zH0z38ay.js";class Qr extends b{constructor(){super(...arguments),this.state={textId:F()}}render(){let{theme:e,dateEnv:t,options:s,viewApi:i}=this.context,{cellId:l,dayDate:n,todayRange:o}=this.props,{textId:a}=this.state,d=Ce(n,o),u=s.listDayFormat?t.format(n,s.listDayFormat):"",h=s.listDaySideFormat?t.format(n,s.listDaySideFormat):"",f=Object.assign({date:t.toDate(n),view:i,textId:a,text:u,sideText:h,navLinkAttrs:ae(this.context,n),sideNavLinkAttrs:ae(this.context,n,"day",!1)},d);return c(I,{elTag:"tr",elClasses:["fc-list-day",...ye(d,e)],elAttrs:{"data-date":Re(n)},renderProps:f,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:es,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},p=>c("th",{scope:"colgroup",colSpan:3,id:l,"aria-labelledby":a},c(p,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function es(r){return c(x,null,r.text&&c("a",Object.assign({id:r.textId,className:"fc-list-day-text"},r.navLinkAttrs),r.text),r.sideText&&c("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},r.sideNavLinkAttrs),r.sideText))}const ts=Z({hour:"numeric",minute:"2-digit",meridiem:"short"});class rs extends b{render(){let{props:e,context:t}=this,{options:s}=t,{seg:i,timeHeaderId:l,eventHeaderId:n,dateHeaderId:o}=e,a=s.eventTimeFormat||ts;return c(zt,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>ss(i,t),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),(d,u)=>c(x,null,is(i,a,t,l,o),c("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},c("span",{className:"fc-list-event-dot",style:{borderColor:u.borderColor||u.backgroundColor}})),c(d,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${n} ${o}`}})))}}function ss(r,e){let t=Bt(r,e);return c("a",Object.assign({},t),r.eventRange.def.title)}function is(r,e,t,s,i){let{options:l}=t;if(l.displayEventTime!==!1){let n=r.eventRange.def,o=r.eventRange.instance,a=!1,d;if(n.allDay?a=!0:jt(r.eventRange.range)?r.isStart?d=se(r,e,t,null,null,o.range.start,r.end):r.isEnd?d=se(r,e,t,null,null,r.start,o.range.end):a=!0:d=se(r,e,t),a){let u={text:t.options.allDayText,view:t.viewApi};return c(I,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${s} ${i}`},renderProps:u,generatorName:"allDayContent",customGenerator:l.allDayContent,defaultGenerator:ls,classNameGenerator:l.allDayClassNames,didMount:l.allDayDidMount,willUnmount:l.allDayWillUnmount})}return c("td",{className:"fc-list-event-time"},d)}return null}function ls(r){return r.text}class ns extends A{constructor(){super(...arguments),this.computeDateVars=w(as),this.eventStoreToSegs=w(this._eventStoreToSegs),this.state={timeHeaderId:F(),eventHeaderId:F(),dateHeaderIdRoot:F()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t}=this,{dayDates:s,dayRanges:i}=this.computeDateVars(e.dateProfile),l=this.eventStoreToSegs(e.eventStore,e.eventUiBases,i);return c(Se,{elRef:this.setRootEl,elClasses:["fc-list",t.theme.getClass("table"),t.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:t.viewSpec},c(Ye,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},l.length>0?this.renderSegList(l,s):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context,s={text:e.noEventsText,view:t};return c(I,{elTag:"div",elClasses:["fc-list-empty"],renderProps:s,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:os,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},i=>c(i,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,t){let{theme:s,options:i}=this.context,{timeHeaderId:l,eventHeaderId:n,dateHeaderIdRoot:o}=this.state,a=cs(e);return c(P,{unit:"day"},(d,u)=>{let h=[];for(let f=0;f<a.length;f+=1){let p=a[f];if(p){let m=Re(t[f]),g=o+"-"+m;h.push(c(Qr,{key:m,cellId:g,dayDate:t[f],todayRange:u})),p=Xe(p,i.eventOrder);for(let C of p)h.push(c(rs,Object.assign({key:m+":"+C.eventRange.instance.instanceId,seg:C,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:l,eventHeaderId:n,dateHeaderId:g},J(C,u,d))))}}return c("table",{className:"fc-list-table "+s.getClass("table")},c("thead",null,c("tr",null,c("th",{scope:"col",id:l},i.timeHint),c("th",{scope:"col","aria-hidden":!0}),c("th",{scope:"col",id:n},i.eventHint))),c("tbody",null,h))})}_eventStoreToSegs(e,t,s){return this.eventRangesToSegs(Gt(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,s)}eventRangesToSegs(e,t){let s=[];for(let i of e)s.push(...this.eventRangeToSegs(i,t));return s}eventRangeToSegs(e,t){let{dateEnv:s}=this.context,{nextDayThreshold:i}=this.context.options,l=e.range,n=e.def.allDay,o,a,d,u=[];for(o=0;o<t.length;o+=1)if(a=Ke(l,t[o]),a&&(d={component:this,eventRange:e,start:a.start,end:a.end,isStart:e.isStart&&a.start.valueOf()===l.start.valueOf(),isEnd:e.isEnd&&a.end.valueOf()===l.end.valueOf(),dayIndex:o},u.push(d),!d.isEnd&&!n&&o+1<t.length&&l.end<s.add(t[o+1].start,i))){d.end=l.end,d.isEnd=!0;break}return u}}function os(r){return r.text}function as(r){let e=Q(r.renderRange.start),t=r.renderRange.end,s=[],i=[];for(;e<t;)s.push(e),i.push({start:e,end:q(e,1)}),e=q(e,1);return{dayDates:s,dayRanges:i}}function cs(r){let e=[],t,s;for(t=0;t<r.length;t+=1)s=r[t],(e[s.dayIndex]||(e[s.dayIndex]=[])).push(s);return e}var ds=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';ge(ds);const us={listDayFormat:Pe,listDaySideFormat:Pe,noEventsClassNames:S,noEventsContent:S,noEventsDidMount:S,noEventsWillUnmount:S};function Pe(r){return r===!1?null:Z(r)}var hs=U({name:"@fullcalendar/list",optionRefiners:us,views:{list:{component:ns,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"}}}});const fs="https://fullcalendar.io/docs/schedulerLicenseKey#invalid",ps="https://fullcalendar.io/docs/schedulerLicenseKey#outdated",ms=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],gs={position:"absolute",zIndex:99999,bottom:"1px",left:"1px",background:"#eee",borderColor:"#ddd",borderStyle:"solid",borderWidth:"1px 1px 0 0",padding:"2px 4px",fontSize:"12px",borderTopRightRadius:"3px"};function Ss(r){let e=r.options.schedulerLicenseKey,t=typeof window<"u"?window.location.href:"";if(!Cs(t)){let s=Rs(e,r.pluginHooks.premiumReleaseDate);
1if(s!=="valid")return c("div",{className:"fc-license-message",style:gs},s==="outdated"?c(x,null,"Your license key is too old to work with this version. ",c("a",{href:ps},"More Info")):c(x,null,"Your license key is invalid. ",c("a",{href:fs},"More Info")))}return null}function Rs(r,e){if(ms.indexOf(r)!==-1)return"valid";const t=(r||"").match(/^(\d+)-fcs-(\d+)$/);if(t&&t[1].length===10){const s=new Date(parseInt(t[2],10)*1e3),i=N.mockSchedulerReleaseDate||e;if(Ft(i))return q(i,-372)<s?"valid":"outdated"}return"invalid"}function Cs(r){return/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(r)}const ys={schedulerLicenseKey:String};var te=U({name:"@fullcalendar/premium-common",premiumReleaseDate:"2024-07-12",optionRefiners:ys,viewContainerAppends:[Ss]});function bs(r){let e=r.getBoundingClientRect(),t=dr(r);return{left:e.left+t.borderLeft+t.scrollbarLeft-vs(r),top:e.top+t.borderTop-r.scrollTop}}function vs(r){let e=r.scrollLeft;if(window.getComputedStyle(r).direction==="rtl")switch(at()){case"negative":e*=-1;case"reverse":e=r.scrollWidth-e-r.clientWidth}return e}function ws(r,e){if(window.getComputedStyle(r).direction==="rtl")switch(at()){case"reverse":e=r.scrollWidth-e;break;case"negative":e=-(r.scrollWidth-e);break}r.scrollLeft=e}let Ue;function at(){return Ue||(Ue=xs())}function xs(){let r=document.createElement("div");r.style.position="absolute",r.style.top="-1000px",r.style.width="100px",r.style.height="100px",r.style.overflow="scroll",r.style.direction="rtl";let e=document.createElement("div");e.style.width="200px",e.style.height="200px",r.appendChild(e),document.body.appendChild(r);let t;return r.scrollLeft>0?t="positive":(r.scrollLeft=1,r.scrollLeft>0?t="reverse":t="negative"),sr(r),t}const Es=".fc-sticky";class Ds{constructor(e,t){this.scrollEl=e,this.isRtl=t,this.updateSize=()=>{let{scrollEl:s}=this,i=G(s,Es),l=this.queryElGeoms(i),n=s.clientWidth;Is(i,l,n)}}queryElGeoms(e){let{scrollEl:t,isRtl:s}=this,i=bs(t),l=[];for(let n of e){let o=Ae(ar(n.parentNode,!0,!0),-i.left,-i.top),a=n.getBoundingClientRect(),d=window.getComputedStyle(n),u=window.getComputedStyle(n.parentNode).textAlign,h=null;u==="start"?u=s?"right":"left":u==="end"&&(u=s?"left":"right"),d.position!=="sticky"&&(h=Ae(a,-i.left-(parseFloat(d.left)||0),-i.top-(parseFloat(d.top)||0))),l.push({parentBound:o,naturalBound:h,elWidth:a.width,elHeight:a.height,textAlign:u})}return l}}function Is(r,e,t){r.forEach((s,i)=>{let{textAlign:l,elWidth:n,parentBound:o}=e[i],a=o.right-o.left,d;l==="center"&&a>t?d=(t-n)/2:d="",cr(s,{left:d,right:d,top:0})})}class ks extends b{constructor(){super(...arguments),this.elRef=E(),this.state={xScrollbarWidth:0,yScrollbarWidth:0},this.handleScroller=e=>{this.scroller=e,de(this.props.scrollerRef,e)},this.handleSizing=()=>{let{props:e}=this;e.overflowY==="scroll-hidden"&&this.setState({yScrollbarWidth:this.scroller.getYScrollbarWidth()}),e.overflowX==="scroll-hidden"&&this.setState({xScrollbarWidth:this.scroller.getXScrollbarWidth()})}}render(){let{props:e,state:t,context:s}=this,i=s.isRtl&&ce(),l=0,n=0,o=0,{overflowX:a,overflowY:d}=e;return e.forPrint&&(a="visible",d="visible"),a==="scroll-hidden"&&(o=t.xScrollbarWidth),d==="scroll-hidden"&&t.yScrollbarWidth!=null&&(i?l=t.yScrollbarWidth:n=t.yScrollbarWidth),c("div",{ref:this.elRef,className:"fc-scroller-harness"+(e.liquid?" fc-scroller-harness-liquid":"")},c(Ye,{ref:this.handleScroller,elRef:this.props.scrollerElRef,overflowX:a==="scroll-hidden"?"scroll":a,overflowY:d==="scroll-hidden"?"scroll":d,overcomeLeft:l,overcomeRight:n,overcomeBottom:o,maxHeight:typeof e.maxHeight=="number"?e.maxHeight+(a==="scroll-hidden"?t.xScrollbarWidth:0):"",liquid:e.liquid,liquidIsAbsolute:!0},e.children))}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}getSnapshotBeforeUpdate(e){return this.props.forPrint&&!e.forPrint?{simulateScrollLeft:this.scroller.el.scrollLeft}:{}}componentDidUpdate(e,t,s){const{props:i,scroller:{el:l}}=this;if(O(e,i)||this.handleSizing(),s.simulateScrollLeft!==void 0)l.style.left=-s.simulateScrollLeft+"px";else if(!i.forPrint&&e.forPrint){const n=-parseInt(l.style.left);l.style.left="",l.scrollLeft=n}}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}needsXScrolling(){return this.scroller.needsXScrolling()}needsYScrolling(){return this.scroller.needsYScrolling()}}const _e="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" ");class Ts{constructor(e){this.el=e,this.emitter=new rr,this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new Oe(this._handleWheelWaited.bind(this)),this.scrollWaiter=new Oe(this._handleScrollWaited.bind(this)),this.handleScroll=()=>{this.startScroll(),this.emitter.trigger("scroll",this.isRecentlyWheeled,this.isTouching),this.isRecentlyScrolled=!0,this.scrollWaiter.request(500)},this.handleWheel=()=>{this.isRecentlyWheeled=!0,this.wheelWaiter.request(500)},this.handleTouchStart=()=>{this.isTouching=!0},this.handleTouchEnd=()=>{this.isTouching=!1,this.isRecentlyScrolled||this.endScroll()},e.addEventListener("scroll",this.handleScroll),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd);for(let t of _e)e.addEventListener(t,this.handleWheel)}destroy(){let{el:e}=this;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd);for(let t of _e)e.removeEventListener(t,this.handleWheel)}startScroll(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))}endScroll(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())}_handleScrollWaited(){this.isRecentlyScrolled=!1,this.isTouching||this.endScroll()}_handleWheelWaited(){this.isRecentlyWheeled=!1}}class Ms{constructor(e,t){this.isVertical=e,this.scrollEls=t,this.isPaused=!1,this.scrollListeners=t.map(s=>this.bindScroller(s))}destroy(){for(let e of this.scrollListeners)e.destroy()}bindScroller(e){let{scrollEls:t,isVertical:s}=this,i=new Ts(e);const l=(o,a)=>
1{if(!this.isPaused&&((!this.masterEl||this.masterEl!==e&&(o||a))&&this.assignMaster(e),this.masterEl===e))for(let d of t)d!==e&&(s?d.scrollTop=e.scrollTop:d.scrollLeft=e.scrollLeft)},n=()=>{this.masterEl===e&&(this.masterEl=null)};return i.emitter.on("scroll",l),i.emitter.on("scrollEnd",n),i}assignMaster(e){this.masterEl=e;for(let t of this.scrollListeners)t.el!==e&&t.endScroll()}forceScrollLeft(e){this.isPaused=!0;for(let t of this.scrollListeners)ws(t.el,e);this.isPaused=!1}forceScrollTop(e){this.isPaused=!0;for(let t of this.scrollListeners)t.el.scrollTop=e;this.isPaused=!1}}N.SCROLLGRID_RESIZE_INTERVAL=500;class De extends b{constructor(){super(...arguments),this.compileColGroupStats=ie(Ls,As),this.renderMicroColGroups=ie(ir),this.clippedScrollerRefs=new M,this.scrollerElRefs=new M(this._handleScrollerEl.bind(this)),this.chunkElRefs=new M(this._handleChunkEl.bind(this)),this.scrollSyncersBySection={},this.scrollSyncersByColumn={},this.rowUnstableMap=new Map,this.rowInnerMaxHeightMap=new Map,this.anyRowHeightsChanged=!1,this.recentSizingCnt=0,this.state={shrinkWidths:[],forceYScrollbars:!1,forceXScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{},sectionRowMaxHeights:[]},this.handleSizing=(e,t)=>{if(!this.allowSizing())return;t||(this.anyRowHeightsChanged=!0);let s={};(e||!t&&!this.rowUnstableMap.size)&&(s.sectionRowMaxHeights=this.computeSectionRowMaxHeights()),this.setState(Object.assign(Object.assign({shrinkWidths:this.computeShrinkWidths()},this.computeScrollerDims()),s),()=>{this.rowUnstableMap.size||this.updateStickyScrolling()})},this.handleRowHeightChange=(e,t)=>
1{let{rowUnstableMap:s,rowInnerMaxHeightMap:i}=this;if(!t)s.set(e,!0);else{s.delete(e);let l=Ge(e);(!i.has(e)||i.get(e)!==l)&&(i.set(e,l),this.anyRowHeightsChanged=!0),!s.size&&this.anyRowHeightsChanged&&(this.anyRowHeightsChanged=!1,this.setState({sectionRowMaxHeights:this.computeSectionRowMaxHeights()}))}}}render(){let{props:e,state:t,context:s}=this,{shrinkWidths:i}=t,l=this.compileColGroupStats(e.colGroups.map(y=>[y])),n=this.renderMicroColGroups(l.map((y,R)=>[y.cols,i[R]])),o=Vt(e.liquid,s);this.getDims();let a=e.sections,d=a.length,u=0,h,f=[],p=[],m=[];for(;u<d&&(h=a[u]).type==="header";)f.push(this.renderSection(h,u,l,n,t.sectionRowMaxHeights,!0)),u+=1;for(;u<d&&(h=a[u]).type==="body";)p.push(this.renderSection(h,u,l,n,t.sectionRowMaxHeights,!1)),u+=1;for(;u<d&&(h=a[u]).type==="footer";)m.push(this.renderSection(h,u,l,n,t.sectionRowMaxHeights,!0)),u+=1;const g=!qt(),C={role:"rowgroup"};return c("table",{ref:e.elRef,role:"grid",className:o.join(" ")},Ws(l,i),!!(!g&&f.length)&&c("thead",C,...f),!!(!g&&p.length)&&c("tbody",C,...p),!!(!g&&m.length)&&c("tfoot",C,...m),g&&c("tbody",C,...f,...p,...m))}renderSection(e,t,s,i,l,n){return"outerContent"in e?c(x,{key:e.key},e.outerContent):c("tr",{key:e.key,role:"presentation",className:$t(e,this.props.liquid).join(" ")},e.chunks.map((o,a)=>this.renderChunk(e,t,s[a],i[a],o,a,(l[t]||[])[a]||[],n)))}renderChunk(e,t,s,i,l,n,o,a){if("outerContent"in l)return c(x,{key:l.key},l.outerContent);let{state:d}=this,{scrollerClientWidths:u,scrollerClientHeights:h}=d,[f,p]=this.getDims(),m=t*p+n,g=!this.context.isRtl||ce()?p-1:0,C=n===g,y=t===f-1,R=y&&d.forceXScrollbars,v=C&&d.forceYScrollbars,k=s&&s.allowXScrolling,H=Yt(this.props,e),W=Xt(this.props,e),At=e.expandRows&&W,Pt=s&&s.totalColMinWidth||"",re=Kt(e,l,{tableColGroupNode:i,tableMinWidth:Pt,clientWidth:u[m]!==void 0?u[m]:null,clientHeight:h[m]!==void 0?h[m]:null,expandRows:At,syncRowHeights:!!e.syncRowHeights,rowSyncHeights:o,reportRowHeightChange:this.handleRowHeightChange},a),Ut=R?y?"scroll":"scroll-hidden":k?y?"auto":"scroll-hidden":"hidden",_t=v?C?"scroll":"scroll-hidden":H?C?"auto":"scroll-hidden":"hidden";return re=c(ks,{ref:this.clippedScrollerRefs.createRef(m),scrollerElRef:this.scrollerElRefs.createRef(m),overflowX:Ut,overflowY:_t,forPrint:this.props.forPrint,liquid:W,maxHeight:e.maxHeight},re),c(a?"th":"td",{key:l.key,ref:this.chunkElRefs.createRef(m),role:"presentation"},re)}componentDidMount(){this.getStickyScrolling=ie(Ps),this.getScrollSyncersBySection=Le(je.bind(this,!0),null,B),this.getScrollSyncersByColumn=Le(je.bind(this,!1),null,B),this.updateScrollSyncers(),this.handleSizing(!1),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(e,t){this.updateScrollSyncers(),this.handleSizing(!1,t.sectionRowMaxHeights!==this.state.sectionRowMaxHeights)}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing),this.destroyScrollSyncers()}allowSizing(){let e=new Date;return!this.lastSizingDate||e.valueOf()>this.lastSizingDate.valueOf()+N.SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=e,this.recentSizingCnt=0,!0):(this.recentSizingCnt+=1)<=10}computeShrinkWidths(){let e=this.compileColGroupStats(this.props.colGroups.map(n=>[n])),[t,s]=this.getDims(),i=t*s,l=[];return e.forEach((n,o)=>{if(n.hasShrinkCol){let a=this.chunkElRefs.collect(o,i,s);l[o]=Zt(a)}}),l}computeSectionRowMaxHeights(){let e=new Map,[t,s]=this.getDims(),i=[];for(let l=0;l<t;l+=1){let n=this.props.sections[l],o=[];if(n&&n.syncRowHeights){let a=[];for(let h=0;h<s;h+=1){let f=l*s+h,p=[],m=this.chunkElRefs.currentMap[f];m?p=G(m,".fc-scrollgrid-sync-table tr").map(g=>{let C=Ge(g);return e.set(g,C),C}):p=[],a.push(p)}let d=a[0].length,u=!0;for(let h=1;h<s;h+=1)if(!(n.chunks[h]&&n.chunks[h].outerContent!==void 0)&&a[h].length!==d){u=!1;break}if(u){for(let h=0;h<s;h+=1)o.push([]);for(let h=0;h<d;h+=1){let f=[];for(let m=0;m<s;m+=1){let g=a[m][h];g!=null&&f.push(g)}let p=Math.max(...f);for(let m=0;m<s;m+=1)o[m].push(p)}}else{let h=[];for(let p=0;p<s;p+=1)h.push(Hs(a[p])+a[p].length);let f=Math.max(...h);for(let p=0;p<s;p+=1){let m=a[p].length,g=f-m,C=Math.floor(g/m),y=g-C*(m-1),R=[],v=0;for(v<m&&(R.push(y),v+=1);v<m;)R.push(C),v+=1;o.push(R)}}}i.push(o)}return this.rowInnerMaxHeightMap=e,i}computeScrollerDims(){let e=Jt(),[t,s]=this.getDims(),i=!this.context.
1isRtl||ce()?s-1:0,l=t-1,n=this.clippedScrollerRefs.currentMap,o=this.scrollerElRefs.currentMap,a=!1,d=!1,u={},h={};for(let f=0;f<t;f+=1){let p=f*s+i,m=n[p];if(m&&m.needsYScrolling()){a=!0;break}}for(let f=0;f<s;f+=1){let p=l*s+f,m=n[p];if(m&&m.needsXScrolling()){d=!0;break}}for(let f=0;f<t;f+=1)for(let p=0;p<s;p+=1){let m=f*s+p,g=o[m];if(g){let C=g.parentNode;u[m]=Math.floor(C.getBoundingClientRect().width-(p===i&&a?e.y:0)),h[m]=Math.floor(C.getBoundingClientRect().height-(f===l&&d?e.x:0))}}return{forceYScrollbars:a,forceXScrollbars:d,scrollerClientWidths:u,scrollerClientHeights:h}}updateStickyScrolling(){let{isRtl:e}=this.context,t=this.scrollerElRefs.getAll().map(s=>[s,e]);this.getStickyScrolling(t).forEach(s=>s.updateSize())}updateScrollSyncers(){let[e,t]=this.getDims(),s=e*t,i={},l={},n=this.scrollerElRefs.currentMap;for(let o=0;o<e;o+=1){let a=o*t,d=a+t;i[o]=Qt(n,a,d,1)}for(let o=0;o<t;o+=1)l[o]=this.scrollerElRefs.collect(o,s,t);this.scrollSyncersBySection=this.getScrollSyncersBySection(i),this.scrollSyncersByColumn=this.getScrollSyncersByColumn(l)}destroyScrollSyncers(){T(this.scrollSyncersBySection,B),T(this.scrollSyncersByColumn,B)}getChunkConfigByIndex(e){let t=this.getDims()[1],s=Math.floor(e/t),i=e%t,l=this.props.sections[s];return l&&l.chunks[i]}forceScrollLeft(e,t){let s=this.scrollSyncersByColumn[e];s&&s.forceScrollLeft(t)}forceScrollTop(e,t){let s=this.scrollSyncersBySection[e];s&&s.forceScrollTop(t)}_handleChunkEl(e,t){let s=this.getChunkConfigByIndex(parseInt(t,10));s&&de(s.elRef,e)}_handleScrollerEl(e,t){let s=this.getChunkConfigByIndex(parseInt(t,10));s&&de(s.scrollerElRef,e)}getDims(){let e=this.props.sections.length,t=e?this.props.sections[0].chunks.length:0;return[e,t]}}De.addStateEquality({shrinkWidths:be,scrollerClientWidths:O,scrollerClientHeights:O});function Hs(r){let e=0;for(let t of r)e+=t;return e}function Ge(r){let e=G(r,".fc-scrollgrid-sync-inner").map(Ns);return e.length?Math.max(...e):0}function Ns(r){return r.offsetHeight}function Ws(r,e){let t=r.map((s,i)=>{let l=s.width;return l==="shrink"&&(l=s.totalColWidth+er(e[i])+1),c("col",{style:{width:l}})});return c("colgroup",{},...t)}function Ls(r){let e=ze(r.cols,"width"),t=ze(r.cols,"minWidth"),s=lr(r.cols),i=r.width!=="shrink"&&!!(e||t||s);return{hasShrinkCol:s,totalColWidth:e,totalColMinWidth:t,allowXScrolling:i,cols:r.cols,width:r.width}}function ze(r,e){let t=0;for(let s of r){let i=s[e];typeof i=="number"&&(t+=i*(s.span||1))}return t}const Os={cols:or};function As(r,e){return nr(r,e,Os)}function je(r,...e){return new Ms(r,e)}function B(r){r.destroy()}function Ps(r,e){return new Ds(r,e)}const Us=18,X=6,_s=200;N.MAX_TIMELINE_SLOTS=1e3;const pe=[{years:1},{months:1},{days:1},{hours:1},{minutes:30},{minutes:15},{minutes:10},{minutes:5},{minutes:1},{seconds:30},{seconds:15},{seconds:10},{seconds:5},{seconds:1},{milliseconds:500},{milliseconds:100},{milliseconds:10},{milliseconds:1}];function ct(r,e,t,s){let i={labelInterval:t.slotLabelInterval,slotDuration:t.slotDuration};zs(i,r,e),dt(i,r,e),js(i,r,e);let l=t.slotLabelFormat,n=Array.isArray(l)?l:l!=null?[l]:Bs(i,r,e,t);i.headerFormats=n.map(k=>Z(k)),i.isTimeScale=!!i.slotDuration.milliseconds;let o=null;if(!i.isTimeScale){const k=z(i.slotDuration).unit;/year|month|week/.test(k)&&(o=k)}i.largeUnit=o,i.emphasizeWeeks=Qe(i.slotDuration)===1&&L("weeks",r,e)>=2&&!t.businessHours;let a=t.snapDuration,d,u;a&&(d=Y(a),u=_(i.slotDuration,d)),u==null&&(d=i.slotDuration,u=1),i.snapDuration=d,i.snapsPerSlot=u;let h=ue(r.slotMaxTime)-ue(r.slotMinTime),f=Be(r.renderRange.start,i,e),p=Be(r.renderRange.end,i,e);i.isTimeScale&&(f=e.add(f,r.slotMinTime),p=e.add(q(p,-1),r.slotMaxTime)),i.timeWindowMs=h,i.normalizedRange={start:f,end:p};let m=[],g=f;for(;g<p;)K(g,i,r,s)&&m.push(g),g=e.add(g,i.slotDuration);i.slotDates=m;let C=-1,y=0;const R=[],v=[];for(g=f;g<p;)K(g,i,r,s)?(C+=1,R.push(C),v.push(y)):R.push(C+.5),g=e.add(g,i.snapDuration),y+=1;return i.snapDiffToIndex=R,i.snapIndexToDiff=v,i.snapCnt=C+1,i.slotCnt=i.snapCnt/i.snapsPerSlot,i.isWeekStarts=Fs(i,e),i.cellRows=Vs(i,e),i.slotsPerLabel=_(i.labelInterval,i.slotDuration),i}function Be(r,e,t){let s=r;return e.isTimeScale||(s=Q(s),e.largeUnit&&(s=t.startOf(s,e.largeUnit))),s}function Gs(r,e,t){if(!e.isTimeScale&&(r=yr(r),e.largeUnit)){let s=r;r={start:t.startOf(r.start,e.largeUnit),end:t.startOf(r.end,e.largeUnit)}
1,(r.end.valueOf()!==s.end.valueOf()||r.end<=r.start)&&(r={start:r.start,end:t.add(r.end,e.slotDuration)})}return r}function K(r,e,t,s){if(s.isHiddenDay(r))return!1;if(e.isTimeScale){let i=Q(r),n=r.valueOf()-i.valueOf()-ue(t.slotMinTime);return n=(n%864e5+864e5)%864e5,n<e.timeWindowMs}return!0}function zs(r,e,t){const{currentRange:s}=e;if(r.labelInterval&&t.countDurationsBetween(s.start,s.end,r.labelInterval)>N.MAX_TIMELINE_SLOTS&&(console.warn("slotLabelInterval results in too many cells"),r.labelInterval=null),r.slotDuration&&t.countDurationsBetween(s.start,s.end,r.slotDuration)>N.MAX_TIMELINE_SLOTS&&(console.warn("slotDuration results in too many cells"),r.slotDuration=null),r.labelInterval&&r.slotDuration){const i=_(r.labelInterval,r.slotDuration);(i===null||i<1)&&(console.warn("slotLabelInterval must be a multiple of slotDuration"),r.slotDuration=null)}}function dt(r,e,t){const{currentRange:s}=e;let{labelInterval:i}=r;if(!i){let l;if(r.slotDuration){for(l of pe){const n=Y(l),o=_(n,r.slotDuration);if(o!==null&&o<=X){i=n;break}}i||(i=r.slotDuration)}else for(l of pe)if(i=Y(l),t.countDurationsBetween(s.start,s.end,i)>=Us)break;r.labelInterval=i}return i}function js(r,e,t){const{currentRange:s}=e;let{slotDuration:i}=r;if(!i){const l=dt(r,e,t);for(let n of pe){const o=Y(n),a=_(l,o);if(a!==null&&a>1&&a<=X){i=o;break}}i&&t.countDurationsBetween(s.start,s.end,i)>_s&&(i=null),i||(i=l),r.slotDuration=i}return i}function Bs(r,e,t,s){let i,l;const{labelInterval:n}=r;let o=z(n).unit;const a=s.weekNumbers;let d=i=l=null;switch(o==="week"&&!a&&(o="day"),o){case"year":d={year:"numeric"};break;case"month":L("years",e,t)>1&&(d={year:"numeric"}),i={month:"short"};break;case"week":L("years",e,t)>1&&(d={year:"numeric"}),i={week:"narrow"};break;case"day":L("years",e,t)>1?d={year:"numeric",month:"long"}:L("months",e,t)>1&&(d={month:"long"}),a&&(i={week:"short"}),l={weekday:"narrow",day:"numeric"};break;case"hour":a&&(d={week:"short"}),L("days",e,t)>1&&(i={weekday:"short",day:"numeric",month:"numeric",omitCommas:!0}),l={hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"};break;case"minute":Sr(n)/60>=X?(d={hour:"numeric",meridiem:"short"},i=u=>":"+le(u.date.minute,2)):d={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":gr(n)/60>=X?(d={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},i=u=>":"+le(u.date.second,2)):d={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};break;case"millisecond":d={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"},i=u=>"."+le(u.millisecond,3);break}return[].concat(d||[],i||[],l||[])}function L(r,e,t){let s=e.currentRange,i=null;return r==="years"?i=t.diffWholeYears(s.start,s.end):r==="months"||r==="weeks"?i=t.diffWholeMonths(s.start,s.end):r==="days"&&(i=Rr(s.start,s.end)),i||0}function Fs(r,e){let{slotDates:t,emphasizeWeeks:s}=r,i=null,l=[];for(let n of t){let o=e.computeWeekNumber(n),a=s&&i!==null&&i!==o;i=o,l.push(a)}return l}function Vs(r,e){let t=r.slotDates,s=r.headerFormats,i=s.map(()=>[]),l=Qe(r.slotDuration),n=l===7?"week":l===1?"day":null,o=s.map(a=>a.getLargestUnit?a.getLargestUnit():null);for(let a=0;a<t.length;a+=1){let d=t[a],u=r.isWeekStarts[a];for(let h=0;h<s.length;h+=1){let f=s[h],p=i[h],m=p[p.length-1],g=h===s.length-1,C=s.length>1&&!g,y=null,R=o[h]||(g?n:null);if(C){let v=e.format(d,f);!m||m.text!==v?y=Fe(d,v,R):m.colspan+=1}else if(!m||we(e.countDurationsBetween(r.normalizedRange.start,d,r.labelInterval))){let v=e.format(d,f);y=Fe(d,v,R)}else m.colspan+=1;y&&(y.weekStart=u,p.push(y))}}return i}function Fe(r,e,t){return{date:r,text:e,rowUnit:t,colspan:1,isWeekStart:!1}}class qs extends b{constructor(){super(...arguments),this.refineRenderProps=ee(Xs),this.buildCellNavLinkAttrs=w($s)}render(){let{props:e,context:t}=this,{dateEnv:s,options:i}=t,{cell:l,dateProfile:n,tDateProfile:o}=e,a=Ce(l.date,e.todayRange,e.nowDate,n),d=this.refineRenderProps({level:e.rowLevel,dateMarker:l.date,text:l.text,dateEnv:t.dateEnv,viewApi:t.viewApi});return c(I,{elTag:"th",elClasses:["fc-timeline-slot","fc-timeline-slot-label",l.isWeekStart&&"fc-timeline-slot-em",...l.rowUnit==="time"?et(a,t.theme):ye(a,t.theme)],elAttrs:{colSpan:l.colspan,"data-date":s.formatIso(l.date,{omitTime:!o.isTimeScale,omitTimeZoneOffset:!0})},renderProps:d,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:Ys,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},u=>c("div",{className:"fc-timeline-slot-frame",style:{height:e.rowInnerHeight}},c(u,{elTag:"a",elClasses:["fc-timeline-slot-cushion","fc-scrollgrid-sync-inner",e.isSticky&&"fc-sticky"],elAttrs:this.buildCellNavLinkAttrs(t,l.date,l.rowUnit)})))}}function $s(r,e,t){return t&&t!=="time"?ae(r,e,t):{}}function Ys(r){return r.text}function Xs(r){return{level:r.level,date:r.dateEnv.toDate(r.dateMarker),view:r.viewApi,text:r.text}}class Ks extends b{render(){let{dateProfile:e,tDateProfile:t,rowInnerHeights:s,todayRange:i,nowDate:l}=this.props,{cellRows:n}=t;return c(x,null,n.map((o,a)=>{let d=a===n.length-1,h=["fc-timeline-header-row",t.isTimeScale&&d?"fc-timeline-header-row-chrono":""];return c("tr",{key:a,className:h.join(" ")},o.map(f=>c(qs,{key:f.date.toISOString(),cell:f,rowLevel:a,dateProfile:e,tDateProfile:t,todayRange:i,nowDate:l,rowInnerHeight:s&&s[a],isSticky:!d})))}))}}class Zs{constructor(e,t,s,i,l,n){this.slatRootEl=e,this.dateProfile=s,this.tDateProfile=i,this.dateEnv=l,this.isRtl=n,this.outerCoordCache=new fe(e,t,!0,!1),this.innerCoordCache=new fe(e,br(t,"div"),!0,!1)}isDateInRange(e){return vr(this.dateProfile.currentRange,e)}dateToCoord(e){let{tDateProfile:t}=this,i=this.computeDateSnapCoverage(e)/t.snapsPerSlot,l=Math.floor(i);l=Math.min(l,t.slotCnt-1);let n=i-l,{innerCoordCache:o,outerCoordCache:a}=this;return this.isRtl?a.originClientRect.width-(a.rights[l]-o.getWidth(l)*n):a.lefts[l]+o.getWidth(l)*n}rangeToCoords(e){return{start:this.dateToCoord(e.start),end:this.dateToCoord(e.end)}}durationToCoord(e){let{dateProfile:t,tDateProfile:s,dateEnv:i,isRtl:l}=this,n=0;if(t){let o=i.add(t.activeRange.start,e);s.isTimeScale||(o=Q(o)),n=this.dateToCoord(o),!l&&n&&(n+=1)}return n}coordFromLeft(e){return this.isRtl?this.outerCoordCache.originClientRect.width-e:e}computeDateSnapCoverage(e){return me(e,this.tDateProfile,this.dateEnv)}}function me(r,e,t){let s=t.countDurationsBetween(e.normalizedRange.start,r,e.snapDuration);if(s<0)return 0;if(s>=e.snapDiffToIndex.length)return e.snapCnt;let i=Math.floor(s),l=e.snapDiffToIndex[i];return we(l)?l+=s-i:l=Math.ceil(l),l}function Ie(r,e){return r===null?{left:"",right:""}:e?{right:r,left:""}:{left:r,right:""}}function ke(r,e){return r?e?{right:r.start,left:-r.end}:{left:r.start,right:-r.end}:{left:"",right:""}}class ut extends b{constructor(){super(...arguments),this.rootElRef=E()}render(){let{props:e,context:t}=this,s=z(e.tDateProfile.slotDuration).unit,i=e.slatCoords&&e.slatCoords.dateProfile===e.dateProfile?e.slatCoords:null;return c(P,{unit:s},(l,n)=>c("div",{className:"fc-timeline-header",ref:this.rootElRef}
1,c("table",{"aria-hidden":!0,className:"fc-scrollgrid-sync-table",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,c("tbody",null,c(Ks,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:l,todayRange:n,rowInnerHeights:e.rowInnerHeights}))),t.options.nowIndicator&&c("div",{className:"fc-timeline-now-indicator-container"},i&&i.isDateInRange(l)&&c(ve,{elClasses:["fc-timeline-now-indicator-arrow"],elStyle:Ie(i.dateToCoord(l),t.isRtl),isAxis:!0,date:l}))))}componentDidMount(){this.updateSize()}componentDidUpdate(){this.updateSize()}updateSize(){this.props.onMaxCushionWidth&&this.props.onMaxCushionWidth(this.computeMaxCushionWidth())}computeMaxCushionWidth(){return Math.max(...G(this.rootElRef.current,".fc-timeline-header-row:last-child .fc-timeline-slot-cushion").map(e=>e.getBoundingClientRect().width))}}class Js extends b{render(){let{props:e,context:t}=this,{dateEnv:s,options:i,theme:l}=t,{date:n,tDateProfile:o,isEm:a}=e,d=Ce(e.date,e.todayRange,e.nowDate,e.dateProfile),u=Object.assign(Object.assign({date:s.toDate(e.date)},d),{view:t.viewApi});return c(I,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-slot","fc-timeline-slot-lane",a&&"fc-timeline-slot-em",o.isTimeScale?we(s.countDurationsBetween(o.normalizedRange.start,e.date,o.labelInterval))?"fc-timeline-slot-major":"fc-timeline-slot-minor":"",...e.isDay?ye(d,l):et(d,l)],elAttrs:{"data-date":s.formatIso(n,{omitTimeZoneOffset:!0,omitTime:!o.isTimeScale})},renderProps:u,generatorName:"slotLaneContent",customGenerator:i.slotLaneContent,classNameGenerator:i.slotLaneClassNames,didMount:i.slotLaneDidMount,willUnmount:i.slotLaneWillUnmount},h=>c(h,{elTag:"div"}))}}class Qs extends b{render(){let{props:e}=this,{tDateProfile:t,cellElRefs:s}=e,{slotDates:i,isWeekStarts:l}=t,n=!t.isTimeScale&&!t.largeUnit;return c("tbody",null,c("tr",null,i.map((o,a)=>{let d=o.toISOString();return c(Js,{key:d,elRef:s.createRef(d),date:o,dateProfile:e.dateProfile,tDateProfile:t,nowDate:e.nowDate,todayRange:e.todayRange,isEm:l[a],isDay:n})})))}}class ht extends b{constructor(){super(...arguments),this.rootElRef=E(),this.cellElRefs=new M,this.handleScrollRequest=e=>{let{onScrollLeftRequest:t}=this.props,{coords:s}=this;if(t&&s){if(e.time){let i=s.coordFromLeft(s.durationToCoord(e.time));t(i)}return!0}return null}}render(){let{props:e,context:t}=this;return c("div",{className:"fc-timeline-slots",ref:this.rootElRef},c("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,c(Qs,{cellElRefs:this.cellElRefs,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange})))}componentDidMount(){this.updateSizing(),this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.updateSizing(),this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach(),this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{props:e,context:t}=this;e.clientWidth!==null&&this.scrollResponder&&this.rootElRef.current.offsetWidth&&(this.coords=new Zs(this.rootElRef.current,ei(this.cellElRefs.currentMap,e.tDateProfile.slotDates),e.dateProfile,e.tDateProfile,t.dateEnv,t.isRtl),e.onCoords&&e.onCoords(this.coords),this.scrollResponder.update(!1))}positionToHit(e){let{outerCoordCache:t}=this.coords,{dateEnv:s,isRtl:i}=this.context,{tDateProfile:l}=this.props,n=t.leftToIndex(e);if(n!=null){let o=t.getWidth(n),a=i?(t.rights[n]-e)/o:(e-t.lefts[n])/o,d=Math.floor(a*l.snapsPerSlot),u=s.add(l.slotDates[n],hr(l.snapDuration,d)),h=s.add(u,l.snapDuration);return{dateSpan:{range:{start:u,end:h},allDay:!this.props.tDateProfile.isTimeScale},dayEl:this.cellElRefs.currentMap[n],left:t.lefts[n],right:t.rights[n]}}return null}}function ei(r,e){return e.map(t=>{let s=t.toISOString();return r[s]})}function ft(r,e,t){let s=[];if(t)for(let i of r){let l=t.rangeToCoords(i),n=Math.round(l.start),o=Math.round(l.end);o-n<e&&(o=n+e),s.push({start:n,end:o})}return s}function ti(r,e,t,s,i,l){let n=[],o=[];for(let R=0;R<r.length;R+=1){let v=r[R],k=v.eventRange.instance.instanceId,H=t[k],W=e[R];H&&W?n.push({index:R,span:W,thickness:H}):o.push({seg:v,hcoords:W,top:null})}let a=new wr;
1i!=null&&(a.strictOrder=i),l!=null&&(a.maxStackCnt=l);let d=a.addSegs(n),u=d.map(R=>({seg:r[R.index],hcoords:R.span,top:null})),h=xr(d),f=[],p=[];const m=R=>r[R.index];for(let R=0;R<h.length;R+=1){let v=h[R],k=v.entries.map(m),H=s[tt(rt(k))];H!=null?f.push({index:r.length+R,thickness:H,span:v.span}):p.push({seg:k,hcoords:v.span,top:null})}a.maxStackCnt=-1,a.addSegs(f);let g=a.toRects(),C=[],y=0;for(let R of g){let v=R.index;C.push({seg:v<r.length?r[v]:h[v-r.length].entries.map(m),hcoords:R.span,top:R.levelCoord}),y=Math.max(y,R.levelCoord+R.thickness)}return[C.concat(o,u,p),y]}class pt extends b{render(){let{props:e}=this,t=[].concat(e.eventResizeSegs,e.dateSelectionSegs);return e.timelineCoords&&c("div",{className:"fc-timeline-bg"},this.renderSegs(e.businessHourSegs||[],e.timelineCoords,"non-business"),this.renderSegs(e.bgEventSegs||[],e.timelineCoords,"bg-event"),this.renderSegs(t,e.timelineCoords,"highlight"))}renderSegs(e,t,s){let{todayRange:i,nowDate:l}=this.props,{isRtl:n}=this.context,o=ft(e,0,t),a=e.map((d,u)=>{let h=o[u],f=ke(h,n);return c("div",{key:mr(d.eventRange),className:"fc-timeline-bg-harness",style:f},s==="bg-event"?c(pr,Object.assign({seg:d},J(d,i,l))):fr(s))});return c(x,null,a)}}class mt extends ur{sliceRange(e,t,s,i,l){let n=Gs(e,i,l),o=[];if(me(n.start,i,l)<me(n.end,i,l)){let a=Ke(n,i.normalizedRange);a&&o.push({start:a.start,end:a.end,isStart:a.start.valueOf()===n.start.valueOf()&&K(a.start,i,t,s),isEnd:a.end.valueOf()===n.end.valueOf()&&K(Cr(a.end,-1),i,t,s)})}return o}}const ri=Z({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});class gt extends b{render(){let{props:e}=this;return c(Dr,Object.assign({},e,{elClasses:["fc-timeline-event","fc-h-event"],defaultTimeFormat:ri,defaultDisplayEventTime:!e.isTimeScale}))}}class si extends b{render(){let{props:e,context:t}=this,{hiddenSegs:s,placement:i,resourceId:l}=e,{top:n,hcoords:o}=i,a=o&&n!==null,d=ke(o,t.isRtl),u=l?{resourceId:l}:{};return c(Er,{elRef:e.elRef,elClasses:["fc-timeline-more-link"],elStyle:Object.assign({visibility:a?"":"hidden",top:n||0},d),allDayDate:null,moreCnt:s.length,allSegs:s,hiddenSegs:s,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:u,popoverContent:()=>c(x,null,s.map(h=>{let f=h.eventRange.instance.instanceId;return c("div",{key:f,style:{visibility:e.isForcedInvisible[f]?"hidden":""}},c(gt,Object.assign({isTimeScale:e.isTimeScale,seg:h,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:f===e.eventSelection},J(h,e.todayRange,e.nowDate))))}))},h=>c(h,{elTag:"div",elClasses:["fc-timeline-more-link-inner","fc-sticky"]}))}}class Te extends b{constructor(){super(...arguments),this.slicer=new mt,this.sortEventSegs=w(Xe),this.harnessElRefs=new M,this.moreElRefs=new M,this.innerElRef=E(),this.state={eventInstanceHeights:{},moreLinkHeights:{}},this.handleResize=e=>{e&&this.updateSize()}}render(){let{props:e,state:t,context:s}=this,{options:i}=s,{dateProfile:l,tDateProfile:n}=e,o=this.slicer.sliceProps(e,l,n.isTimeScale?null:e.nextDayThreshold,s,l,s.dateProfileGenerator,n,s.dateEnv),a=(o.eventDrag?o.eventDrag.segs:null)||(o.eventResize?o.eventResize.segs:null)||[],d=this.sortEventSegs(o.fgEventSegs,i.eventOrder),u=ft(d,i.eventMinWidth,e.timelineCoords),[h,f]=ti(d,u,t.eventInstanceHeights,t.moreLinkHeights,i.eventOrderStrict,i.eventMaxStack),p=(o.eventDrag?o.eventDrag.affectedInstances:null)||(o.eventResize?o.eventResize.affectedInstances:null)||{};return c(x,null,c(pt,{businessHourSegs:o.businessHourSegs,bgEventSegs:o.bgEventSegs,timelineCoords:e.timelineCoords,eventResizeSegs:o.eventResize?o.eventResize.segs:[],dateSelectionSegs:o.dateSelectionSegs,nowDate:e.nowDate,todayRange:e.todayRange}),c("div",{className:"fc-timeline-events fc-scrollgrid-sync-inner",ref:this.innerElRef,style:{height:f}},this.renderFgSegs(h,p,!1,!1,!1),this.renderFgSegs(ii(a,e.timelineCoords,h),{},!!o.eventDrag,!!o.eventResize,!1)))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){(e.eventStore!==this.props.eventStore||e.timelineCoords!==this.props.timelineCoords||t.moreLinkHeights!==this.state.moreLinkHeights)&&this.updateSize()}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateSize(){let{props:e}=this,{timelineCoords:t}=e;const s=this.innerElRef.current;e.onHeightChange&&e.onHeightChange(s,!1),t&&this.setState({eventInstanceHeights:T(this.harnessElRefs.currentMap,i=>Math.round(i.getBoundingClientRect().height)),moreLinkHeights:T(this.moreElRefs.currentMap,i=>Math.round(i.getBoundingClientRect().height))},()=>{e.onHeightChange&&e.onHeightChange(s,!0)}),e.syncParentMinHeight&&(s.parentElement.style.minHeight=s.style.height)}renderFgSegs(e,t,s,i,l){let{harnessElRefs:n,moreElRefs:o,props:a,context:d}=this,u=s||i||l;return c(x,null,e.map(h=>{let{seg:f,hcoords:p,top:m}=h;if(Array.isArray(f)){let R=tt(rt(f));return c(si,{key:"m:"+R,elRef:o.createRef(R),hiddenSegs:f,placement:h,dateProfile:a.dateProfile,nowDate:a.nowDate,todayRange:a.todayRange,isTimeScale:a.tDateProfile.isTimeScale,eventSelection:a.eventSelection,resourceId:a.resourceId,isForcedInvisible:t})}let g=f.eventRange.instance.instanceId,C=u||!!(!t[g]&&p&&m!==null),y=ke(p,d.isRtl);return c("div",{key:"e:"+g,ref:u?null:n.createRef(g),className:"fc-timeline-event-harness",style:Object.assign({visibility:C?"":"hidden",top:m||0},y)},c(gt,Object.assign({isTimeScale:a.tDateProfile.isTimeScale,seg:f,isDragging:s,isResizing:i,isDateSelecting:l,isSelected:g===a.eventSelection},J(f,a.todayRange,a.nowDate))))}))}}Te.addStateEquality({eventInstanceHeights:O,moreLinkHeights:O});function ii(r,e,t){if(!r.length||!e)return[];let s=li(t);return r.map(i=>({seg:i,hcoords:e.rangeToCoords(i),top:s[i.eventRange.instance.instanceId]}))}function li(r){let e={};for(let t of r){let{seg:s}=t;Array.isArray(s)||(e[s.eventRange.instance.instanceId]=t.top)}return e}class ni extends A{constructor(){super(...arguments),this.slatsRef=E(),this.state={coords:null},this.handeEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleCoords=e=>{this.setState({coords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t,context:s}=this,{options:i}=s,{dateProfile:l,tDateProfile:n}=e,o=z(n.slotDuration).unit;return c("div",{className:"fc-timeline-body",ref:this.handeEl,style:{minWidth:e.tableMinWidth,height:e.clientHeight,width:e.clientWidth}},c(P,{unit:o},(a,d)=>c(x,null,c(ht,{ref:this.slatsRef,dateProfile:l,tDateProfile:n,nowDate:a,todayRange:d,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleCoords,onScrollLeftRequest:e.onScrollLeftRequest}),c(Te,{dateProfile:l,tDateProfile:e.tDateProfile,nowDate:a,todayRange:d,nextDayThreshold:i.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:t.coords,syncParentMinHeight:!0}
1),i.nowIndicator&&t.coords&&t.coords.isDateInRange(a)&&c("div",{className:"fc-timeline-now-indicator-container"},c(ve,{elClasses:["fc-timeline-now-indicator-line"],elStyle:Ie(t.coords.dateToCoord(a),s.isRtl),isAxis:!1,date:a})))))}queryHit(e,t,s,i){let n=this.slatsRef.current.positionToHit(e);return n?{dateProfile:this.props.dateProfile,dateSpan:n.dateSpan,rect:{left:n.left,right:n.right,top:0,bottom:i},dayEl:n.dayEl,layer:0}:null}}class oi extends A{constructor(){super(...arguments),this.buildTimelineDateProfile=w(ct),this.scrollGridRef=E(),this.state={slatCoords:null,slotCushionMaxWidth:null},this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleScrollLeftRequest=e=>{this.scrollGridRef.current.forceScrollLeft(0,e)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})}}render(){let{props:e,state:t,context:s}=this,{options:i}=s,l=!e.forPrint&&Ze(i),n=!e.forPrint&&Je(i),o=this.buildTimelineDateProfile(e.dateProfile,s.dateEnv,i,s.dateProfileGenerator),{slotMinWidth:a}=i,d=St(o,a||this.computeFallbackSlotMinWidth(o)),u=[{type:"header",key:"header",isSticky:l,chunks:[{key:"timeline",content:h=>c(ut,{dateProfile:e.dateProfile,clientWidth:h.clientWidth,clientHeight:h.clientHeight,tableMinWidth:h.tableMinWidth,tableColGroupNode:h.tableColGroupNode,tDateProfile:o,slatCoords:t.slatCoords,onMaxCushionWidth:a?null:this.handleMaxCushionWidth})}]},{type:"body",key:"body",liquid:!0,chunks:[{key:"timeline",content:h=>c(ni,Object.assign({},e,{clientWidth:h.clientWidth,clientHeight:h.clientHeight,tableMinWidth:h.tableMinWidth,tableColGroupNode:h.tableColGroupNode,tDateProfile:o,onSlatCoords:this.handleSlatCoords,onScrollLeftRequest:this.handleScrollLeftRequest}))}]}];return n&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"timeline",content:he}]}),c(Se,{elClasses:["fc-timeline",i.eventOverlap===!1?"fc-timeline-overlap-disabled":""],viewSpec:s.viewSpec},c(De,{ref:this.scrollGridRef,liquid:!e.isHeightAuto&&!e.forPrint,forPrint:e.forPrint,collapsibleWidth:!1,colGroups:[{cols:d}],sections:u}))}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}}function St(r,e){return[{span:r.slotCnt,minWidth:e||1}]}var ai='.fc .fc-timeline-body{min-height:100%;position:relative;z-index:1}.fc .fc-timeline-slots{bottom:0;position:absolute;top:0;z-index:1}.fc .fc-timeline-slots>table{height:100%}.fc .fc-timeline-slot-minor{border-style:dotted}.fc .fc-timeline-slot-frame{align-items:center;display:flex;justify-content:center}.fc .fc-timeline-header-row-chrono .fc-timeline-slot-frame{justify-content:flex-start}.fc .fc-timeline-header-row:last-child .fc-timeline-slot-frame{overflow:hidden}.fc .fc-timeline-slot-cushion{padding:4px 5px;white-space:nowrap}.fc-direction-ltr .fc-timeline-slot{border-right:0!important}.fc-direction-rtl .fc-timeline-slot{border-left:0!important}.fc .fc-timeline-now-indicator-container{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:4}.fc .fc-timeline-now-indicator-arrow,.fc .fc-timeline-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;pointer-events:none;position:absolute;top:0}.fc .fc-timeline-now-indicator-arrow{border-left-color:transparent;border-right-color:transparent;border-width:6px 5px 0;margin:0 -6px}.fc .fc-timeline-now-indicator-line{border-width:0 0 0 1px;bottom:0;margin:0 -1px}.fc .fc-timeline-events{position:relative;width:0;z-index:3}.fc .fc-timeline-event-harness,.fc .fc-timeline-more-link{position:absolute;top:0}.fc-timeline-event{z-index:1}.fc-timeline-event.fc-event-mirror{z-index:2}.fc-timeline-event{align-items:center;border-radius:0;display:flex;font-size:var(--fc-small-font-size);margin-bottom:1px;padding:2px 1px;position:relative}.fc-timeline-event .fc-event-main{flex-grow:1;flex-shrink:1;min-width:0}.fc-timeline-event .fc-event-time{font-weight:700}.fc-timeline-event .fc-event-time,.fc-timeline-event .fc-event-title{padding:0 2px;white-space:nowrap}.fc-direction-ltr .fc-timeline-event.fc-event-end,.fc-direction-ltr .fc-timeline-more-link{margin-right:1px}.fc-direction-rtl .fc-timeline-event.fc-event-end,.fc-direction-rtl .fc-timeline-more-link{margin-left:1px}.fc-timeline-overlap-disabled .fc-timeline-event{margin-bottom:0;padding-bottom:5px;padding-top:5px}.fc-timeline-event:not(.fc-event-end):after,.fc-timeline-event:not(.fc-event-start):before{border-color:transparent #000;border-style:solid;border-width:5px;content:"";flex-grow:0;flex-shrink:0;height:0;margin:0 1px;opacity:.5;width:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-start):before,.fc-direction-rtl .fc-timeline-event:not(.fc-event-end):after{border-left:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-end):after,.fc-direction-rtl .fc-timeline-event:not(.fc-event-start):before{border-right:0}.fc-timeline-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;font-size:var(--fc-small-font-size);padding:1px}.fc-timeline-more-link-inner{display:inline-block;left:0;padding:2px;right:0}.fc .fc-timeline-bg{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:2}.fc .fc-timeline-bg .fc-non-business{z-index:1}.fc .fc-timeline-bg .fc-bg-event{z-index:2}.fc .fc-timeline-bg .fc-highlight{z-index:3}.fc .fc-timeline-bg-harness{bottom:0;position:absolute;top:0}';ge(ai);var ci=U({name:"@fullcalendar/timeline",premiumReleaseDate:"2024-0
17-12",deps:[te],initialView:"timelineDay",views:{timeline:{component:oi,usesMinMaxTime:!0,eventResizableFromStart:!0},timelineDay:{type:"timeline",duration:{days:1}},timelineWeek:{type:"timeline",duration:{weeks:1}},timelineMonth:{type:"timeline",duration:{months:1}},timelineYear:{type:"timeline",duration:{years:1}}}});const Rt="_fc:",di={id:String,parentId:String,children:S,title:String,businessHours:S,extendedProps:S,eventEditable:Boolean,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventConstraint:S,eventOverlap:Boolean,eventAllow:S,eventClassNames:Hr,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String};function Me(r,e="",t,s){let{refined:i,extra:l}=lt(r,di),n={id:i.id||Rt+Ee(),parentId:i.parentId||e,title:i.title||"",businessHours:i.businessHours?Wr(i.businessHours,s):null,ui:Nr({editable:i.eventEditable,startEditable:i.eventStartEditable,durationEditable:i.eventDurationEditable,constraint:i.eventConstraint,overlap:i.eventOverlap,allow:i.eventAllow,classNames:i.eventClassNames,backgroundColor:i.eventBackgroundColor,borderColor:i.eventBorderColor,textColor:i.eventTextColor,color:i.eventColor},s),extendedProps:Object.assign(Object.assign({},l),i.extendedProps)};if(Object.freeze(n.ui.classNames),Object.freeze(n.extendedProps),!t[n.id]){if(t[n.id]=n,i.children)for(let o of i.children)Me(o,n.id,t,s)}return n}function Ct(r){return r.indexOf(Rt)===0?"":r}class D{constructor(e,t){this._context=e,this._resource=t}setProp(e,t){let s=this._resource;this._context.dispatch({type:"SET_RESOURCE_PROP",resourceId:s.id,propName:e,propValue:t}),this.sync(s)}setExtendedProp(e,t){let s=this._resource;this._context.dispatch({type:"SET_RESOURCE_EXTENDED_PROP",resourceId:s.id,propName:e,propValue:t}),this.sync(s)}sync(e){let t=this._context,s=e.id;this._resource=t.getCurrentData().resourceStore[s],t.emitter.trigger("resourceChange",{oldResource:new D(t,e),resource:this,revert(){t.dispatch({type:"ADD_RESOURCE",resourceHash:{[s]:e}})}})}remove(){let e=this._context,t=this._resource,s=t.id;e.dispatch({type:"REMOVE_RESOURCE",resourceId:s}),e.emitter.trigger("resourceRemove",{resource:this,revert(){e.dispatch({type:"ADD_RESOURCE",resourceHash:{[s]:t}})}})}getParent(){let e=this._context,t=this._resource.parentId;return t?new D(e,e.getCurrentData().resourceStore[t]):null}getChildren(){let e=this._resource.id,t=this._context,{resourceStore:s}=t.getCurrentData(),i=[];for(let l in s)s[l].parentId===e&&i.push(new D(t,s[l]));return i}getEvents(){let e=this._resource.id,t=this._context,{defs:s,instances:i}=t.getCurrentData().eventStore,l=[];for(let n in i){let o=i[n],a=s[o.defId];a.resourceIds.indexOf(e)!==-1&&l.push(new xe(t,a,o))}return l}get id(){return Ct(this._resource.id)}get title(){return this._resource.title}get eventConstraint(){return this._resource.ui.constraints[0]||null}get eventOverlap(){return this._resource.ui.overlap}get eventAllow(){return this._resource.ui.allows[0]||null}get eventBackgroundColor(){return this._resource.ui.backgroundColor}get eventBorderColor(){return this._resource.ui.borderColor}get eventTextColor(){return this._resource.ui.textColor}get eventClassNames(){return this._resource.ui.classNames}get extendedProps(){return this._resource.extendedProps}toPlainObject(e={}){let t=this._resource,{ui:s}=t,i=this.id,l={};return i&&(l.id=i),t.title&&(l.title=t.title),e.collapseEventColor&&s.backgroundColor&&s.backgroundColor===s.borderColor?l.eventColor=s.backgroundColor:(s.backgroundColor&&(l.eventBackgroundColor=s.backgroundColor),s.borderColor&&(l.eventBorderColor=s.borderColor)),s.textColor&&(l.eventTextColor=s.textColor),s.classNames.length&&(l.eventClassNames=s.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(l,t.extendedProps):l.extendedProps=t.extendedProps),l}toJSON(){return this.toPlainObject()}}function ui(r,e){let t=[];for(let s in r)t.push(new D(e,r[s]));return t}class yt extends it{getKeyInfo(e){return Object.assign({"":{}},e.resourceStore)}getKeysForDateSpan(e){return[e.resourceId||""]}getKeysForEventDef(e){let t=e.resourceIds;return t.length?t:[""]}}const bt=st("id,title");function hi(r,e){let{emitter:t}=e;t.hasHandlers("resourcesSet")&&t.trigger("resourcesSet",ui(r,e))}function fi(r){return{resource:new D(r.context,r.resource)}}class pi extends b{constructor(){super(...arguments),this.refineRenderProps=ee(gi)}render(){const{props:e}=this;return c(Mr.Consumer,null,t=>{let{options:s}=t,i=this.refineRenderProps({resource:e.resource,date:e.date,context:t});return c(I,Object.assign({},e,{elAttrs:Object.assign(Object.assign({},e.elAttrs),{"data-resource-id":e.resource.id,"data-date":e.date?Re(e.date):void 0}),renderProps:i,generatorName:"resourceLabelContent",customGenerator:s.resourceLabelContent,defaultGenerator:mi,classNameGenerator:s.resourceLabelClassNames,didMount:s.resourceLabelDidMount,willUnmount:s.resourceLabelWillUnmount}))})}}function mi(r){return r.resource.title||r.resource.id}function gi(r){return{resource:new D(r.context,r.resource),date:r.date?r.context.dateEnv.toDate(r.date):null,view:r.context.viewApi}}class oe extends b{render(){let{props:e}=this;return c(pi,{elTag:"th",elClasses:["fc-col-header-cell","fc-resource"],elAttrs:{role:"columnheader",colSpan:e.colSpan},resource:e.resource,date:e.date},t=>c("div",{className:"fc-scrollgrid-sync-inner"},c(t,{elTag:"span",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"]})))}}class Si extends b{constructor(){super(...arguments),this.buildDateFormat=w(Ri)}render(){let{props:e,context:t}=this,s=this.buildDateFormat(t.options.dayHeaderFormat,e.datesRepDistinctDays,e.dates.length);return c(P,{unit:"day"},(i,l)=>e.dates.length===1?this.renderResourceRow(e.resources,e.dates[0]):t.options.datesAboveResources?this.renderDayAndResourceRows(e.dates,s,l,e.resources):this.renderResourceAndD
1ayRows(e.resources,e.dates,s,l))}renderResourceRow(e,t){let s=e.map(i=>c(oe,{key:i.id,resource:i,colSpan:1,date:t}));return this.buildTr(s,"resources")}renderDayAndResourceRows(e,t,s,i){let l=[],n=[];for(let o of e){l.push(this.renderDateCell(o,t,s,i.length,null,!0));for(let a of i)n.push(c(oe,{key:a.id+":"+o.toISOString(),resource:a,colSpan:1,date:o}))}return c(x,null,this.buildTr(l,"day"),this.buildTr(n,"resources"))}renderResourceAndDayRows(e,t,s,i){let l=[],n=[];for(let o of e){l.push(c(oe,{key:o.id,resource:o,colSpan:t.length,isSticky:!0}));for(let a of t)n.push(this.renderDateCell(a,s,i,1,o))}return c(x,null,this.buildTr(l,"resources"),this.buildTr(n,"day"))}renderDateCell(e,t,s,i,l,n){let{props:o}=this,a=l?`:${l.id}`:"",d=l?{resource:new D(this.context,l)}:{},u=l?{"data-resource-id":l.id}:{};return o.datesRepDistinctDays?c(Ir,{key:e.toISOString()+a,date:e,dateProfile:o.dateProfile,todayRange:s,colCnt:o.dates.length*o.resources.length,dayHeaderFormat:t,colSpan:i,isSticky:n,extraRenderProps:d,extraDataAttrs:u}):c(kr,{key:e.getUTCDay()+a,dow:e.getUTCDay(),dayHeaderFormat:t,colSpan:i,isSticky:n,extraRenderProps:d,extraDataAttrs:u})}buildTr(e,t){let{renderIntro:s}=this.props;return e.length||(e=[c("td",{key:0},"Â ")]),c("tr",{key:t,role:"row"},s&&s(t),e)}}function Ri(r,e,t){return r||Tr(e,t)}class Ci{constructor(e){let t={},s=[];for(let i=0;i<e.length;i+=1){let l=e[i].id;s.push(l),t[l]=i}this.ids=s,this.indicesById=t,this.length=e.length}}class vt{constructor(e,t,s){this.dayTableModel=e,this.resources=t,this.context=s,this.resourceIndex=new Ci(t),this.rowCnt=e.rowCnt,this.colCnt=e.colCnt*t.length,this.cells=this.buildCells()}buildCells(){let{rowCnt:e,dayTableModel:t,resources:s}=this,i=[];for(let l=0;l<e;l+=1){let n=[];for(let o=0;o<t.colCnt;o+=1)for(let a=0;a<s.length;a+=1){let d=s[a],u={resource:new D(this.context,d)},h={"data-resource-id":d.id},f=["fc-resource"],p={resourceId:d.id},m=t.cells[l][o].date;n[this.computeCol(o,a)]={key:d.id+":"+m.toISOString(),date:m,extraRenderProps:u,extraDataAttrs:h,extraClassNames:f,extraDateSpan:p}}i.push(n)}return i}}class yi extends vt{computeCol(e,t){return t*this.dayTableModel.colCnt+e}computeColRanges(e,t,s){return[{firstCol:this.computeCol(e,s),lastCol:this.computeCol(t,s),isStart:!0,isEnd:!0}]}}class bi extends vt{computeCol(e,t){return e*this.resources.length+t}computeColRanges(e,t,s){let i=[];for(let l=e;l<=t;l+=1){let n=this.computeCol(l,s);i.push({firstCol:n,lastCol:n,isStart:l===e,isEnd:l===t})}return i}}const Ve=[];class wt{constructor(){this.joinDateSelection=w(this.joinSegs),this.joinBusinessHours=w(this.joinSegs),this.joinFgEvents=w(this.joinSegs),this.joinBgEvents=w(this.joinSegs),this.joinEventDrags=w(this.joinInteractions),this.joinEventResizes=w(this.joinInteractions)}joinProps(e,t){let s=[],i=[],l=[],n=[],o=[],a=[],d="",u=t.resourceIndex.ids.concat([""]);for(let h of u){let f=e[h];s.push(f.dateSelectionSegs),i.push(h?f.businessHourSegs:Ve),l.push(h?f.fgEventSegs:Ve),n.push(f.bgEventSegs),o.push(f.eventDrag),a.push(f.eventResize),d=d||f.eventSelection}return{dateSelectionSegs:this.joinDateSelection(t,...s),businessHourSegs:this.joinBusinessHours(t,...i),fgEventSegs:this.joinFgEvents(t,...l),bgEventSegs:this.joinBgEvents(t,...n),eventDrag:this.joinEventDrags(t,...o),eventResize:this.joinEventResizes(t,...a),eventSelection:d}}joinSegs(e,...t){let s=e.resources.length,i=[];for(let l=0;l<s;l+=1){for(let n of t[l])i.push(...this.transformSeg(n,e,l));for(let n of t[s])i.push(...this.transformSeg(n,e,l))}return i}expandSegs(e,t){let s=e.resources.length,i=[];for(let l=0;l<s;l+=1)for(let n of t)i.push(...this.transformSeg(n,e,l));return i}joinInteractions(e,...t){let s=e.resources.length,i={},l=[],n=!1,o=!1;for(let a=0;a<s;a+=1){let d=t[a];if(d){n=!0;for(let u of d.segs)l.push(...this.transformSeg(u,e,a));Object.assign(i,d.affectedInstances),o=o||d.isEvent}
1if(t[s])for(let u of t[s].segs)l.push(...this.transformSeg(u,e,a))}return n?{affectedInstances:i,segs:l,isEvent:o}:null}}class xt extends it{getKeyInfo(e){let{resourceDayTableModel:t}=e,s=T(t.resourceIndex.indicesById,i=>t.resources[i]);return s[""]={},s}getKeysForDateSpan(e){return[e.resourceId||""]}getKeysForEventDef(e){let t=e.resourceIds;return t.length?t:[""]}}function vi(r,e){return Et(r,[],e,!1,{},!0).map(t=>t.resource)}function Et(r,e,t,s,i,l){let n=wi(r,s?-1:1,e,t),o=[];return V(n,o,s,[],0,i,l),o}function V(r,e,t,s,i,l,n){for(let o=0;o<r.length;o+=1){let a=r[o],d=a.group;if(d)if(t){let u=e.length,h=s.length;if(V(a.children,e,t,s.concat(0),i,l,n),u<e.length){let f=e[u],p=f.rowSpans=f.rowSpans.slice();p[h]=e.length-u}}else{let u=d.spec.field+":"+d.value,h=l[u]!=null?l[u]:n;e.push({id:u,group:d,isExpanded:h}),h&&V(a.children,e,t,s,i+1,l,n)}else if(a.resource){let u=a.resource.id,h=l[u]!=null?l[u]:n;e.push({id:u,rowSpans:s,depth:i,isExpanded:h,hasChildren:!!a.children.length,resource:a.resource,resourceFields:a.resourceFields}),h&&V(a.children,e,t,s,i+1,l,n)}}}function wi(r,e,t,s){let i=xi(r,s),l=[];for(let n in i){let o=i[n];o.resource.parentId||Dt(o,l,t,0,e,s)}return l}function xi(r,e){let t={};for(let s in r){let i=r[s];t[s]={resource:i,resourceFields:kt(i),children:[]}}for(let s in r){let i=r[s];if(i.parentId){let l=t[i.parentId];l&&It(t[s],l.children,e)}}return t}function Dt(r,e,t,s,i,l){if(t.length&&(i===-1||s<=i)){let n=Ei(r,e,t[0]);Dt(r,n.children,t.slice(1),s+1,i,l)}else It(r,e,l)}function Ei(r,e,t){let s=r.resourceFields[t.field],i,l;if(t.order)for(l=0;l<e.length;l+=1){let n=e[l];if(n.group){let o=Or(s,n.group.value)*t.order;if(o===0){i=n;break}else if(o<0)break}}else for(l=0;l<e.length;l+=1){let n=e[l];if(n.group&&s===n.group.value){i=n;break}}return i||(i={group:{value:s,spec:t},children:[]},e.splice(l,0,i)),i}function It(r,e,t){let s;for(s=0;s<e.length&&!(Lr(e[s].resourceFields,r.resourceFields,t)>0);s+=1);e.splice(s,0,r)}function kt(r){let e=Object.assign(Object.assign(Object.assign({},r.extendedProps),r.ui),r);return delete e.ui,delete e.extendedProps,e}function Di(r,e){return r.spec===e.spec&&r.value===e.value}function Ii(r,e,t){let s=e.dateSpan.resourceId,i=t.dateSpan.resourceId;s&&i&&s!==i&&(r.resourceMutation={matchResourceId:s,setResourceId:i})}function ki(r,e,t){let s=e.resourceMutation;if(s&&Tt(r,t)){let i=r.resourceIds.indexOf(s.matchResourceId);if(i!==-1){let l=r.resourceIds.slice();l.splice(i,1),l.indexOf(s.setResourceId)===-1&&l.push(s.setResourceId),r.resourceIds=l}}}function Tt(r,e){let{resourceEditable:t}=r;if(t==null){let s=r.sourceId&&e.getCurrentData().eventSources[r.sourceId];s&&(t=s.extendedProps.resourceEditable),t==null&&(t=e.options.eventResourceEditable,t==null&&(t=e.options.editable))}return t}function Ti(r,e){let{resourceMutation:t}=r;if(t){let{calendarApi:s}=e;return{oldResource:s.getResourceById(t.matchResourceId),newResource:s.getResourceById(t.setResourceId)}}return{oldResource:null,newResource:null}}class Mi{constructor(){this.filterResources=w(Hi)}transform(e,t){return t.viewSpec.optionDefaults.needsResourceData?{resourceStore:this.filterResources(t.resourceStore,t.options.filterResourcesWithEvents,t.eventStore,t.dateProfile.activeRange),resourceEntityExpansions:t.resourceEntityExpansions}:null}}function Hi(r,e,t,s){if(e){let i=Ni(t.instances,s),l=Wi(i,t.defs);return Object.assign(l,Li(l,r)),nt(r,(n,o)=>l[o])}return r}function Ni(r,e){return nt(r,t=>Ur(t.range,e))}function Wi(r,e){let t={};for(let s in r){let i=r[s];for(let l of e[i.defId].resourceIds)t[l]=!0}return t}function Li(r,e){let t={};for(let s in r){let i;for(;(i=e[s])&&(s=i.parentId,s);)t[s]=!0}return t}function Oi(r,e,t,s){if(!r){let i=s.getCurrentData();if(i.viewSpecs[i.currentViewType].optionDefaults.needsResourceData&&Tt(e,s))return!0}return r}class Ai{constructor(){this.buildResourceEventUis=w(Pi,O),this.injectResourceEventUis=w(Ui)}transform(e,t){return t.viewSpec.optionDefaults.needsResourceData?null:{eventUiBases:this.injectResourceEventUis(e.eventUiBases,e.eventStore.defs,this.buildResourceEventUis(t.resourceStore))}}}function Pi(r){return T(r,e=>e.ui)}function Ui(r,e,t){return T(r,(s,i)=>i?_i(s,e[i],t):s)}function _i(r,e,t){let s=[];for(let i of e.resourceIds)t[i]&&s.unshift(t[i]);return s.unshift(r),_r(s)}let He=[];function Ne(r){He.push(r)}function Mt(r){return He[r]}function Gi(){return He}const zi={id:String,resources:S,url:String,method:String,startParam:String,endParam:String,timeZoneParam:String,extraParams:S};function ji(r){let e;if(typeof r=="string"?e={url:r}:typeof r=="function"||Array.isArray(r)?e={resources:r}:typeof r=="object"&&r&&(e=r),e){let{refined:t,extra:s}=lt(e,zi);Fi(s);let i=Bi(t);if(i)return{_raw:r,sourceId:Ee(),sourceDefId:i.sourceDefId,meta:i.meta,publicId:t.id||"",isFetching:!1,latestFetchId:"",fetchRange:null}}return null}function Bi(r){let e=Gi();for(let t=e.length-1;t>=0;t-=1){let i=e[t].parseMeta(r);if(i)return{meta:i,sourceDefId:t}}return null}function Fi(r){for(let e in r)console.warn(`Unknown resource prop '${e}'`)}function Vi(r,e,t){let{options:s,dateProfile:i}=t;if(!r||!e)return qe(s.initialResources||s.resources,i.activeRange,s.refetchResourcesOnNavigate,t);switch(e.type){case"RESET_RESOURCE_SOURCE":return qe(e.resourceSourceIn
1put,i.activeRange,s.refetchResourcesOnNavigate,t);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return qi(r,i.activeRange,s.refetchResourcesOnNavigate,t);case"RECEIVE_RESOURCES":case"RECEIVE_RESOURCE_ERROR":return Yi(r,e.fetchId,e.fetchRange);case"REFETCH_RESOURCES":return We(r,i.activeRange,t);default:return r}}function qe(r,e,t,s){if(r){let i=ji(r);return i=We(i,t?e:null,s),i}return null}function qi(r,e,t,s){return t&&!$i(r)&&(!r.fetchRange||!Gr(r.fetchRange,e))?We(r,e,s):r}function $i(r){return!!Mt(r.sourceDefId).ignoreRange}function We(r,e,t){let s=Mt(r.sourceDefId),i=Ee();return s.fetch({resourceSource:r,range:e,context:t},l=>{t.dispatch({type:"RECEIVE_RESOURCES",fetchId:i,fetchRange:e,rawResources:l.rawResources})},l=>{t.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:i,fetchRange:e,error:l})}),Object.assign(Object.assign({},r),{isFetching:!0,latestFetchId:i})}function Yi(r,e,t){return e===r.latestFetchId?Object.assign(Object.assign({},r),{isFetching:!1,fetchRange:t}):r}function Xi(r,e,t,s){if(!r||!e)return{};switch(e.type){case"RECEIVE_RESOURCES":return Ki(r,e.rawResources,e.fetchId,t,s);case"ADD_RESOURCE":return Zi(r,e.resourceHash);case"REMOVE_RESOURCE":return Ji(r,e.resourceId);case"SET_RESOURCE_PROP":return Qi(r,e.resourceId,e.propName,e.propValue);case"SET_RESOURCE_EXTENDED_PROP":return el(r,e.resourceId,e.propName,e.propValue);default:return r}}function Ki(r,e,t,s,i){if(s.latestFetchId===t){let l={};for(let n of e)Me(n,"",l,i);return l}return r}function Zi(r,e){return Object.assign(Object.assign({},r),e)}function Ji(r,e){let t=Object.assign({},r);delete t[e];for(let s in t)t[s].parentId===e&&(t[s]=Object.assign(Object.assign({},t[s]),{parentId:""}));return t}function Qi(r,e,t,s){let i=r[e];return i?Object.assign(Object.assign({},r),{[e]:Object.assign(Object.assign({},i),{[t]:s})}):r}function el(r,e,t,s){let i=r[e];return i?Object.assign(Object.assign({},r),{[e]:Object.assign(Object.assign({},i),{extendedProps:Object.assign(Object.assign({},i.extendedProps),{[t]:s})})}):r}function tl(r,e){if(!r||!e)return{};switch(e.type){case"SET_RESOURCE_ENTITY_EXPANDED":return Object.assign(Object.assign({},r),{[e.id]:e.isExpanded});default:return r}}function rl(r,e,t){let s=Vi(r&&r.resourceSource,e,t),i=Xi(r&&r.resourceStore,e,s,t),l=tl(r&&r.resourceEntityExpansions,e);return{resourceSource:s,resourceStore:i,resourceEntityExpansions:l}}const sl={resourceId:String,resourceIds:S,resourceEditable:Boolean};function il(r){return{resourceIds:ll(r.resourceIds).concat(r.resourceId?[r.resourceId]:[]),resourceEditable:r.resourceEditable}}function ll(r){return(r||[]).map(e=>String(e))}function nl(r,e){let t=r.dateSpan.resourceId,s=e.dateSpan.resourceId;return t&&s?{resourceId:t}:null}j.prototype.addResource=function(r,e=!0){let t=this.getCurrentData(),s,i;r instanceof D?(i=r._resource,s={[i.id]:i}):(s={},i=Me(r,"",s,t)),this.dispatch({type:"ADD_RESOURCE",resourceHash:s}),e&&this.trigger("_scrollRequest",{resourceId:i.id});let l=new D(t,i);return t.emitter.trigger("resourceAdd",{resource:l,revert:()=>{this.dispatch({type:"REMOVE_RESOURCE",resourceId:i.id})}}),l};j.prototype.getResourceById=function(r){r=String(r);let e=this.getCurrentData();if(e.resourceStore){let t=e.resourceStore[r];if(t)return new D(e,t)}return null};j.prototype.getResources=function(){let r=this.getCurrentData(),{resourceStore:e}=r,t=[];if(e)for(let s in e)t.push(new D(r,e[s]));return t};j.prototype.getTopLevelResources=function(){let r=this.getCurrentData(),{resourceStore:e}=r,t=[];if(e)for(let s in e)e[s].parentId||t.push(new D(r,e[s]));return t};j.prototype.refetchResources=function(){this.dispatch({type:"REFETCH_RESOURCES"})};function ol(r,e){return r.resourceId?{resource:e.calendarApi.getResourceById(r.resourceId)}:{}}function al(r,e){return r.resourceId?{resource:e.calendarApi.getResourceById(r.resourceId)}:{}}function cl(r,e){let s=new yt().splitProps(Object.assign(Object.assign({},r),{resourceStore:e.getCurrentData().resourceStore}));for(let i in s){let l=s[i];if(i&&s[""]&&(l=Object.assign(Object.assign({},l),{eventStore:Ar(s[""].eventStore,l.eventStore),eventUiBases:Object.assign(Object.assign({},s[""].eventUiBases),l.eventUiBases)})),!Pr(l,e,{resourceId:i},dl.bind(null,i)))return!1}return!0}function dl(r,e){return Object.assign(Object.assign({},e),{constraints:ul(r,e.constraints)})}function ul(r,e){return e.map(t=>{let s=t.defs;if(s)for(let i in s){let l=s[i].resourceIds;if(l.length&&l.indexOf(r)===-1)return!1}return t})}function hl(r){return r.resourceId?{resourceId:r.resourceId}:{}}const fl={resources:pl};function pl(r,e){e.getCurrentData().resourceSource._raw!==r&&e.dispatch({type:"RESET_RESOURCE_SOURCE",resourceSourceIn
1put:r})}const ml={initialResources:S,resources:S,eventResourceEditable:Boolean,refetchResourcesOnNavigate:Boolean,resourceOrder:st,filterResourcesWithEvents:Boolean,resourceGroupField:String,resourceAreaWidth:S,resourceAreaColumns:S,resourcesInitiallyExpanded:Boolean,datesAboveResources:Boolean,needsResourceData:Boolean,resourceAreaHeaderClassNames:S,resourceAreaHeaderContent:S,resourceAreaHeaderDidMount:S,resourceAreaHeaderWillUnmount:S,resourceGroupLabelClassNames:S,resourceGroupLabelContent:S,resourceGroupLabelDidMount:S,resourceGroupLabelWillUnmount:S,resourceLabelClassNames:S,resourceLabelContent:S,resourceLabelDidMount:S,resourceLabelWillUnmount:S,resourceLaneClassNames:S,resourceLaneContent:S,resourceLaneDidMount:S,resourceLaneWillUnmount:S,resourceGroupLaneClassNames:S,resourceGroupLaneContent:S,resourceGroupLaneDidMount:S,resourceGroupLaneWillUnmount:S},gl={resourcesSet:S,resourceAdd:S,resourceChange:S,resourceRemove:S};xe.prototype.getResources=function(){let{calendarApi:r}=this._context;return this._def.resourceIds.map(e=>r.getResourceById(e))};xe.prototype.setResources=function(r){let e=[];for(let t of r){let s=null;typeof t=="string"?s=t:typeof t=="number"?s=String(t):t instanceof D?s=t.id:console.warn("unknown resource type: "+t),s&&e.push(s)}this.mutate({standardProps:{resourceIds:e}})};Ne({ignoreRange:!0,parseMeta(r){return Array.isArray(r.resources)?r.resources:null},fetch(r,e){e({rawResources:r.resourceSource.meta})}});Ne({parseMeta(r){return typeof r.resources=="function"?r.resources:null},fetch(r,e,t){const s=r.context.dateEnv,i=r.resourceSource.meta,l=r.range?{start:s.toDate(r.range.start),end:s.toDate(r.range.end),startStr:s.formatIso(r.range.start),endStr:s.formatIso(r.range.end),timeZone:s.timeZone}:{};zr(i.bind(null,l),n=>e({rawResources:n}),t)}});Ne({parseMeta(r){return r.url?{url:r.url,method:(r.method||"GET").toUpperCase(),extraParams:r.extraParams}:null},fetch(r,e,t){const s=r.resourceSource.meta,i=Sl(s,r.range,r.context);jr(s.method,s.url,i).then(([l,n])=>{e({rawResources:l,response:n})},t)}});function Sl(r,e,t){let{dateEnv:s,options:i}=t,l,n,o,a,d={};return e&&(l=r.startParam,l==null&&(l=i.startParam),n=r.endParam,n==null&&(n=i.endParam),o=r.timeZoneParam,o==null&&(o=i.timeZoneParam),d[l]=s.formatIso(e.start),d[n]=s.formatIso(e.end),s.timeZone!=="local"&&(d[o]=s.timeZone)),typeof r.extraParams=="function"?a=r.extraParams():a=r.extraParams||{},Object.assign(d,a),d}var Ht=U({name:"@fullcalendar/resource",premiumReleaseDate:"2024-07-12",deps:[te],reducers:[rl],isLoadingFuncs:[r=>r.resourceSource&&r.resourceSource.isFetching],eventRefiners:sl,eventDefMemberAdders:[il],isDraggableTransformers:[Oi],eventDragMutationMassagers:[Ii],eventDefMutationAppliers:[ki],dateSelectionTransformers:[nl],datePointTransforms:[ol],dateSpanTransforms:[al],viewPropsTransformers:[Mi,Ai],isPropsValid:cl,externalDefTransforms:[hl],eventDropTransformers:[Ti],optionChangeHandlers:fl,optionRefiners:ml,listenerRefiners:gl,propSetHandlers:{resourceStore:hi}});function Nt({depth:r,hasChildren:e,isExpanded:t,onExpanderClick:s}){let i=[];for(let n=0;n<r;n+=1)i.push(c("span",{className:"fc-icon"}));let l=["fc-icon"];return e&&(t?l.push("fc-icon-minus-square"):l.push("fc-icon-plus-square")),i.push(c("span",{className:"fc-datagrid-expander"+(e?"":" fc-datagrid-expander-placeholder"),onClick:s},c("span",{className:l.join(" ")}))),c(x,{},...i)}class Rl extends b{constructor(){super(...arguments),this.refineRenderProps=ee(yl),this.onExpanderClick=e=>{let{props:t}=this;t.hasChildren&&this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:t.resource.id,isExpanded:!t.isExpanded})}}render(){let{props:e,context:t}=this,{colSpec:s}=e,i=this.refineRenderProps({resource:e.resource,fieldValue:e.fieldValue,context:t});return c(I,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource"],elAttrs:{role:"gridcell","data-resource-id":e.resource.id},renderProps:i,generatorName:s.isMain?"resourceLabelContent":void 0,customGenerator:s.cellContent,defaultGenerator:Cl,classNameGenerator:s.cellClassNames,didMount:s.cellDidMount,willUnmount:s.cellWillUnmount},l=>c("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHe
vendor: 14,305 bytes, line 1
1ight}},c("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},s.isMain&&c(Nt,{depth:e.depth,hasChildren:e.hasChildren,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),c(l,{elTag:"span",elClasses:["fc-datagrid-cell-main"]}))))}}function Cl(r){return r.fieldValue||c(x,null,"Â ")}function yl(r){return{resource:new D(r.context,r.resource),fieldValue:r.fieldValue,view:r.context.viewApi}}class bl extends b{render(){let{props:e,context:t}=this,{colSpec:s}=e,i={groupValue:e.fieldValue,view:t.viewApi};return c(I,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource-group"],elAttrs:{role:"gridcell",rowSpan:e.rowSpan},renderProps:i,generatorName:"resourceGroupLabelContent",customGenerator:s.cellContent,defaultGenerator:vl,classNameGenerator:s.cellClassNames,didMount:s.cellDidMount,willUnmount:s.cellWillUnmount},l=>c("div",{className:"fc-datagrid-cell-frame fc-datagrid-cell-frame-liquid"},c(l,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-sticky"]})))}}function vl(r){return r.groupValue||c(x,null,"Â ")}class Wt extends b{render(){let{props:e}=this,{resource:t,rowSpans:s,depth:i}=e,l=kt(t);return c("tr",{role:"row"},e.colSpecs.map((n,o)=>{let a=s[o];if(a===0)return null;a==null&&(a=1);let d=n.field?l[n.field]:t.title||Ct(t.id);return a>1?c(bl,{key:o,colSpec:n,fieldValue:d,rowSpan:a}):c(Rl,{key:o,colSpec:n,resource:t,fieldValue:d,depth:i,hasChildren:e.hasChildren,isExpanded:e.isExpanded,innerHeight:e.innerHeight})}))}}Wt.addPropsEquality({rowSpans:be});class Lt extends b{constructor(){super(...arguments),this.innerInnerRef=E(),this.onExpanderClick=()=>{let{props:e}=this;this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:e.id,isExpanded:!e.isExpanded})}}render(){let{props:e,context:t}=this,s={groupValue:e.group.value,view:t.viewApi},i=e.group.spec;return c("tr",{role:"row"},c(I,{elTag:"th",elClasses:["fc-datagrid-cell","fc-resource-group",t.theme.getClass("tableCellShaded")],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.spreadsheetColCnt},renderProps:s,generatorName:"resourceGroupLabelContent",customGenerator:i.labelContent,defaultGenerator:wl,classNameGenerator:i.labelClassNames,didMount:i.labelDidMount,willUnmount:i.labelWillUnmount},l=>c("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},c("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:this.innerInnerRef},c(Nt,{depth:0,hasChildren:!0,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),c(l,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})))))}}Lt.addPropsEquality({group:Di});function wl(r){return r.groupValue||c(x,null,"Â ")}const xl=20;class El extends b{constructor(){super(...arguments),this.resizerElRefs=new M(this._handleColResizerEl.bind(this)),this.colDraggings={}}render(){let{colSpecs:e,superHeaderRendering:t,rowInnerHeights:s}=this.props,i={view:this.context.viewApi},l=[];if(s=s.slice(),t){let o=s.shift();l.push(c("tr",{key:"row-super",role:"row"},c(I,{elTag:"th",elClasses:["fc-datagrid-cell","fc-datagrid-cell-super"],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.length},renderProps:i,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},a=>c("div",{className:"fc-datagrid-cell-frame",style:{height:o}},c(a,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-scrollgrid-sync-inner"]})))))}let n=s.shift();return l.push(c("tr",{key:"row",role:"row"},e.map((o,a)=>{let d=a===e.length-1;return c(I,{key:a,elTag:"th",elClasses:["fc-datagrid-cell"],elAttrs:{role:"columnheader"},renderProps:i,generatorName:"resourceAreaHeaderContent",customGenerator:o.headerContent,defaultGenerator:o.headerDefault,classNameGenerator:o.headerClassNames,didMount:o.headerDidMount,willUnmount:o.headerWillUnmount},u=>c("div",{className:"fc-datagrid-cell-frame",style:{height:n}},c("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},o.isMain&&c("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},c("span",{className:"fc-icon"})),c(u,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})),!d&&c("div",{className:"fc-datagrid-cell-resizer",ref:this.resizerElRefs.createRef(a)})))}))),c(x,null,l)}_handleColResizerEl(e,t){let{colDraggings:s}=this;if(e){let i=this.initColResizing(e,parseInt(t,10));i&&(s[t]=i)}else{let i=s[t];i&&(i.destroy(),delete s[t])}}initColResizing(e,t){let{pluginHooks:s,isRtl:i}=this.context,{onColWidthChange:l}=this.props,n=s.elementDraggingImpl;if(n){let o=new n(e),a,d;return o.emitter.on("dragstart",()=>{d=G(ot(e,"tr"),"th").map(h=>h.getBoundingClientRect().width),a=d[t]}),o.emitter.on("dragmove",u=>{d[t]=Math.max(a+u.deltaX*(i?-1:1),xl),l&&l(d.slice())}),o.setAutoScrollEnabled(!1),o}return null}}class Dl extends b{constructor(){super(...arguments),this.refineRenderProps=ee(fi),this.handleHeightChange=(e,t)=>{this.props.onHeightChange&&this.props.onHeightChange(ot(e,"tr"),t)}}render(){let{props:e,context:t}=this,{options:s}=t,i=this.refineRenderProps({resource:e.resource,context:t});return c("tr",{ref:e.elRef},c(I,{elTag:"td",elClasses:["fc-timeline-lane","fc-resource"],elAttrs:{"data-resource-id":e.resource.id},renderProps:i,generatorName:"resourceLaneContent",customGenerator:s.resourceLaneContent,classNameGenerator:s.resourceLaneClassNames,didMount:s.resourceLaneDidMount,willUnmount:s.resourceLaneWillUnmount},l=>c("div",{className:"fc-timeline-lane-frame",style:{height:e.innerHeight}},c(l,{elTag:"div",elClasses:["fc-timeline-lane-misc"]}),c(Te,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:e.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:e.timelineCoords,onHeightChange:this.handleHeightChange,resourceId:e.resource.id}))))}}class Il extends b{render(){let{props:e,context:t}=this,{renderHooks:s}=e,i={groupValue:e.groupValue,view:t.viewApi};return c("tr",{ref:e.elRef},c(I,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-lane","fc-resource-group",t.theme.getClass("tableCellShaded")],renderProps:i,generatorName:"resourceGroupLaneContent",customGenerator:s.laneContent,classNameGenerator:s.laneClassNames,didMount:s.laneDidMount,willUnmount:s.laneWillUnmount},l=>c(l,{elTag:"div",elStyle:{height:e.innerHeight}})))}}class kl extends b{render(){let{props:e,context:t}=this,{rowElRefs:s,innerHeights:i}=e;return c("tbody",null,e.rowNodes.map((l,n)=>{if(l.group)return c(Il,{key:l.id,elRef:s.createRef(l.id),groupValue:l.group.value,renderHooks:l.group.spec,innerHeight:i[n]||""});if(l.resource){let o=l.resource;return c(Dl,Object.assign({key:l.id,elRef:s.createRef(l.id)},e.splitProps[o.id],{resource:o,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:t.options.nextDayThreshold,businessHours:o.businessHours||e.fallbackBusinessHours,innerHeight:i[n]||"",timelineCoords:e.slatCoords,onHeightChange:e.onRowHeightChange}))}return null}))}}class Tl extends b{constructor(){super(...arguments),this.rootElRef=E(),this.rowElRefs=new M}render(){let{props:e,context:t}=this;return c("table",{ref:this.rootElRef,"aria-hidden":!0,className:"fc-scrollgrid-sync-table "+t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},c(kl,{rowElRefs:this.rowElRefs,rowNodes:e.rowNodes,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,splitProps:e.splitProps,fallbackBusinessHours:e.fallbackBusinessHours,slatCoords:e.slatCoords,innerHeights:e.innerHeights,onRowHeightChange:e.onRowHeightChange}))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}componentWillUnmount(){this.props.onRowCoords&&this.props.onRowCoords(null)}updateCoords(){let{props:e}=this;e.onRowCoords&&e.clientWidth!==null&&this.props.onRowCoords(new fe(this.rootElRef.current,Ml(this.rowElRefs.currentMap,e.rowNodes),!1,!0))}}function Ml(r,e){return e.map(t=>r[t.id])}class Hl extends A{constructor(){super(...arguments),this.computeHasResourceBusinessHours=w(Nl),this.resourceSplitter=new yt,this.bgSlicer=new mt,this.slatsRef=E(),this.state={slatCoords:null},this.handleEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)},this.handleRowCoords=e=>{this.rowCoords=e,this.props.onRowCoords&&this.props.onRowCoords(e)}}render(){let{props:e,state:t,context:s}=this,{dateProfile:i,tDateProfile:l}=e,n=z(l.slotDuration).unit,o=this.computeHasResourceBusinessHours(e.rowNodes),a=this.resourceSplitter.splitProps(e),d=a[""],u=this.bgSlicer.sliceProps(d,i,l.isTimeScale?null:e.nextDayThreshold,s,i,s.dateProfileGenerator,l,s.dateEnv),h=t.slatCoords&&t.slatCoords.dateProfile===e.dateProfile?t.slatCoords:null;return c("div",{ref:this.handleEl,className:["fc-timeline-body",e.expandRows?"fc-timeline-body-expandrows":""].join(" "),style:{minWidth:e.tableMinWidth}},c(P,{unit:n},(f,p)=>c(x,null,c(ht,{ref:this.slatsRef,dateProfile:i,tDateProfile:l,nowDate:f,todayRange:p,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleSlatCoords,onScrollLeftRequest:e.onScrollLeftRequest}),c(pt,{businessHourSegs:o?null:u.businessHourSegs,bgEventSegs:u.bgEventSegs,timelineCoords:h,eventResizeSegs:u.eventResize?u.eventResize.segs:[],dateSelectionSegs:u.dateSelectionSegs,nowDate:f,todayRange:p}),c(Tl,{rowNodes:e.rowNodes,dateProfile:i,tDateProfile:e.tDateProfile,nowDate:f,todayRange:p,splitProps:a,fallbackBusinessHours:o?e.businessHours:null,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,innerHeights:e.rowInnerHeights,slatCoords:h,onRowCoords:this.handleRowCoords,onRowHeightChange:e.onRowHeightChange}),s.options.nowIndicator&&h&&h.isDateInRange(f)&&c("div",{className:"fc-timeline-now-indicator-container"},c(ve,{elClasses:["fc-timeline-now-indicator-line"],elStyle:Ie(h.dateToCoord(f),s.isRtl),isAxis:!1,date:f})))))}queryHit(e,t){let s=this.rowCoords,i=s.topToIndex(t);if(i!=null){let l=this.props.rowNodes[i].resource;if(l){let n=this.slatsRef.current.positionToHit(e);if(n)return{dateProfile:this.props.dateProfile,dateSpan:{range:n.dateSpan.range,allDay:n.dateSpan.allDay,resourceId:l.id},rect:{left:n.left,right:n.right,top:s.tops[i],bottom:s.bottoms[i]},dayEl:n.dayEl,layer:0}}}return null}}function Nl(r){for(let e of r){let t=e.resource;if(t&&t.businessHours)return!0}return!1}const $e=30;class Wl extends b{constructor(){super(...arguments),this.scrollGridRef=E(),this.timeBodyScrollerElRef=E(),this.spreadsheetHeaderChunkElRef=E(),this.rootElRef=E(),this.ensureScrollGridResizeId=0,this.state={resourceAreaWidthOverride:null},this.ensureScrollGridResize=()=>{this.ensureScrollGridResizeId&&clearTimeout(this.ensureScrollGridResizeId),this.ensureScrollGridResizeId=setTimeout(()=>{this.scrollGridRef.current.handleSizing(!1)},N.SCROLLGRID_RESIZE_INTERVAL+1)}}render(){let{props:e,state:t,context:s}=this,{options:i}=s,l=!e.forPrint&&Ze(i),n=!e.forPrint&&Je(i),o=[{type:"header",key:"header",syncRowHeights:!0,isSticky:l,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:e.spreadsheetHeaderRows},{key:"divider",outerContent:c("td",{role:"presentation",className:"fc-resource-timeline-divider "+s.theme.getClass("tableCellShaded")})},{key:"timeline",content:e.timeHeaderContent}]},{type:"body",key:"body",syncRowHeights:!0,liquid:!0,expandRows:!!i.expandRows,chunks:[{key:"datagrid",tableClassName:"fc-datagrid-body",rowContent:e.spreadsheetBodyRows},{key:"divider",outerContent:c("td",{role:"presentation",className:"fc-resource-timeline-divider "+s.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:e.timeBodyContent}]}];n&&o.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:he},{key:"divider",outerContent:c("td",{role:"presentation",className:"fc-resource-timeline-divider "+s.theme.getClass("tableCellShaded")})},{key:"timeline",content:he}]});let a=t.resourceAreaWidthOverride!=null?t.resourceAreaWidthOverride:i.resourceAreaWidth;return c(De,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!e.isHeightAuto&&!e.forPrint,forPrint:e.forPrint,collapsibleWidth:!1,colGroups:[{cols:e.spreadsheetCols,width:a},{cols:[]},{cols:e.timeCols}],sections:o})}forceTimeScroll(e){this.scrollGridRef.current.forceScrollLeft(2,e)}forceResourceScroll(e){this.scrollGridRef.current.forceScrollTop(1,e)}getResourceScroll(){return this.timeBodyScrollerElRef.current.scrollTop}componentDidMount(){this.initSpreadsheetResizing()}componentWillUnmount(){this.destroySpreadsheetResizing()}initSpreadsheetResizing(){let{isRtl:e,pluginHooks:t}=this.context,s=t.elementDraggingImpl,i=this.spreadsheetHeaderChunkElRef.current;if(s){let l=this.rootElRef.current,n=this.spreadsheetResizerDragging=new s(l,".fc-resource-timeline-divider"),o,a;n.emitter.on("dragstart",()=>{o=i.getBoundingClientRect().width,a=l.getBoundingClientRect().width}),n.emitter.on("dragmove",d=>{let u=o+d.deltaX*(e?-1:1);u=Math.max(u,$e),u=Math.min(u,a-$e),this.setState({resourceAreaWidthOverride:u},this.ensureScrollGridResize)}),n.setAutoScrollEnabled(!1)}}destroySpreadsheetResizing(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()}}class Ot extends b{constructor(e,t){super(e,t),this.processColOptions=w(Pl),this.buildTimelineDateProfile=w(ct),this.hasNesting=w(Al),this.buildRowNodes=w(Et),this.layoutRef=E(),this.rowNodes=[],this.renderedRowNodes=[],this.buildRowIndex=w(Ll),this.handleSlatCoords=s=>{this.setState({slatCoords:s})},this.handleRowCoords=s=>{this.rowCoords=s,this.scrollResponder.update(!1)},this.handleMaxCushionWidth=s=>{this.setState({slotCushionMaxWidth:Math.ceil(s)})},this.handleScrollLeftRequest=s=>{this.layoutRef.current.forceTimeScroll(s)},this.handleScrollRequest=s=>{let{rowCoords:i}=this,l=this.layoutRef.current,n=s.rowId||s.resourceId;
1if(i){if(n){let a=this.buildRowIndex(this.renderedRowNodes)[n];if(a!=null){let d=s.fromBottom!=null?i.bottoms[a]-s.fromBottom:i.tops[a];l.forceResourceScroll(d)}}return!0}return null},this.handleColWidthChange=s=>{this.setState({spreadsheetColWidths:s})},this.state={resourceAreaWidth:t.options.resourceAreaWidth,spreadsheetColWidths:[]}}render(){let{props:e,state:t,context:s}=this,{options:i,viewSpec:l}=s,{superHeaderRendering:n,groupSpecs:o,orderSpecs:a,isVGrouping:d,colSpecs:u}=this.processColOptions(s.options),h=this.buildTimelineDateProfile(e.dateProfile,s.dateEnv,i,s.dateProfileGenerator),f=this.rowNodes=this.buildRowNodes(e.resourceStore,o,a,d,e.resourceEntityExpansions,i.resourcesInitiallyExpanded),{slotMinWidth:p}=i,m=St(h,p||this.computeFallbackSlotMinWidth(h));return c(Se,{elClasses:["fc-resource-timeline",!this.hasNesting(f)&&"fc-resource-timeline-flat","fc-timeline",i.eventOverlap===!1?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled"],viewSpec:l},c(Wl,{ref:this.layoutRef,forPrint:e.forPrint,isHeightAuto:e.isHeightAuto,spreadsheetCols:Ol(u,t.spreadsheetColWidths,""),spreadsheetHeaderRows:g=>c(El,{superHeaderRendering:n,colSpecs:u,onColWidthChange:this.handleColWidthChange,rowInnerHeights:g.rowSyncHeights}),spreadsheetBodyRows:g=>c(x,null,this.renderSpreadsheetRows(f,u,g.rowSyncHeights)),timeCols:m,timeHeaderContent:g=>c(ut,{clientWidth:g.clientWidth,clientHeight:g.clientHeight,tableMinWidth:g.tableMinWidth,tableColGroupNode:g.tableColGroupNode,dateProfile:e.dateProfile,tDateProfile:h,slatCoords:t.slatCoords,rowInnerHeights:g.rowSyncHeights,onMaxCushionWidth:p?null:this.handleMaxCushionWidth}),timeBodyContent:g=>c(Hl,{dateProfile:e.dateProfile,clientWidth:g.clientWidth,clientHeight:g.clientHeight,tableMinWidth:g.tableMinWidth,tableColGroupNode:g.tableColGroupNode,expandRows:g.expandRows,tDateProfile:h,rowNodes:f,businessHours:e.businessHours,dateSelection:e.dateSelection,eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,resourceStore:e.resourceStore,nextDayThreshold:s.options.nextDayThreshold,rowInnerHeights:g.rowSyncHeights,onSlatCoords:this.handleSlatCoords,onRowCoords:this.handleRowCoords,onScrollLeftRequest:this.handleScrollLeftRequest,onRowHeightChange:g.reportRowHeightChange})}))}renderSpreadsheetRows(e,t,s){return e.map((i,l)=>i.group?c(Lt,{key:i.id,id:i.id,spreadsheetColCnt:t.length,isExpanded:i.isExpanded,group:i.group,innerHeight:s[l]||""}):i.resource?c(Wt,{key:i.id,colSpecs:t,rowSpans:i.rowSpans,depth:i.depth,isExpanded:i.isExpanded,hasChildren:i.hasChildren,resource:i.resource,innerHeight:s[l]||""}):null)}componentDidMount(){this.renderedRowNodes=this.rowNodes,this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}getSnapshotBeforeUpdate(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}}componentDidUpdate(e,t,s){this.renderedRowNodes=this.rowNodes,this.scrollResponder.update(e.dateProfile!==this.props.dateProfile),s.resourceScroll&&this.handleScrollRequest(s.resourceScroll)}componentWillUnmount(){this.scrollResponder.detach()}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}queryResourceScroll(){let{rowCoords:e,renderedRowNodes:t}=this;if(e){let s=this.layoutRef.current,i=e.bottoms,l=s.getResourceScroll(),n={};for(let o=0;o<i.length;o+=1){let a=t[o],d=i[o]-l;if(d>0){n.rowId=a.id,n.fromBottom=d;break}}return n}return null}}Ot.addStateEquality({spreadsheetColWidths:be});function Ll(r){let e={};for(let t=0;t<r.length;t+=1)e[r[t].id]=t;return e}function Ol(r,e,t=""){return r.map((s,i)=>({className:s.isMain?"fc-main-col":"",width:e[i]||s.width||t}))}function Al(r){for(let e of r)if(e.group||e.resource&&e.hasChildren)return!0;return!1}function Pl(r){let e=r.resourceAreaColumns||[],t=null;e.length?r.resourceAreaHeaderContent&&(t={headerClassNames:r.resourceAreaHeaderClassNames,headerContent:r.resourceAreaHeaderContent,headerDidMount:r.resourceAreaHeaderDidMount,headerWillUnmount:r.resourceAreaHeaderWillUnmount}):e.push({headerClassNames:r.resourceAreaHeaderClassNames,headerContent:r.resourceAreaHeaderContent,headerDefault:()=>"Resources",headerDidMount:r.resourceAreaHeaderDidMount,headerWillUnmount:r.resourceAreaHeaderWillUnmount});let s=[],i=[],l=[],n=!1;for(let u of e)u.group?i.push(Object.assign(Object.assign({}
1,u),{cellClassNames:u.cellClassNames||r.resourceGroupLabelClassNames,cellContent:u.cellContent||r.resourceGroupLabelContent,cellDidMount:u.cellDidMount||r.resourceGroupLabelDidMount,cellWillUnmount:u.cellWillUnmount||r.resourceGroupLaneWillUnmount})):s.push(u);let o=s[0];if(o.isMain=!0,o.cellClassNames=o.cellClassNames||r.resourceLabelClassNames,o.cellContent=o.cellContent||r.resourceLabelContent,o.cellDidMount=o.cellDidMount||r.resourceLabelDidMount,o.cellWillUnmount=o.cellWillUnmount||r.resourceLabelWillUnmount,i.length)l=i,n=!0;else{let u=r.resourceGroupField;u&&l.push({field:u,labelClassNames:r.resourceGroupLabelClassNames,labelContent:r.resourceGroupLabelContent,labelDidMount:r.resourceGroupLabelDidMount,labelWillUnmount:r.resourceGroupLabelWillUnmount,laneClassNames:r.resourceGroupLaneClassNames,laneContent:r.resourceGroupLaneContent,laneDidMount:r.resourceGroupLaneDidMount,laneWillUnmount:r.resourceGroupLaneWillUnmount})}let a=r.resourceOrder||bt,d=[];for(let u of a){let h=!1;for(let f of l)if(f.field===u.field){f.order=u.order,h=!0;break}h||d.push(u)}return{superHeaderRendering:t,isVGrouping:n,groupSpecs:l,colSpecs:i.concat(s),orderSpecs:d}}var Ul=".fc .fc-resource-timeline-divider{cursor:col-resize;width:3px}.fc .fc-resource-group{font-weight:inherit;text-align:inherit}.fc .fc-resource-timeline .fc-resource-group:not([rowspan]){background:var(--fc-neutral-bg-color)}.fc .fc-timeline-lane-frame{position:relative}.fc .fc-timeline-overlap-enabled .fc-timeline-lane-frame .fc-timeline-events{box-sizing:content-box;padding-bottom:10px}.fc-timeline-body-expandrows td.fc-timeline-lane{position:relative}.fc-timeline-body-expandrows .fc-timeline-lane-frame{position:static}.fc-datagrid-cell-frame-liquid{height:100%}.fc-liquid-hack .fc-datagrid-cell-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-datagrid-header .fc-datagrid-cell-frame{align-items:center;display:flex;justify-content:flex-start;position:relative}.fc .fc-datagrid-cell-resizer{bottom:0;cursor:col-resize;position:absolute;top:0;width:5px;z-index:1}.fc .fc-datagrid-cell-cushion{overflow:hidden;padding:8px;white-space:nowrap}.fc .fc-datagrid-expander{cursor:pointer;opacity:.65}.fc .fc-datagrid-expander .fc-icon{display:inline-block;width:1em}.fc .fc-datagrid-expander-placeholder{cursor:auto}.fc .fc-resource-timeline-flat .fc-datagrid-expander-placeholder{display:none}.fc-direction-ltr .fc-datagrid-cell-resizer{right:-3px}.fc-direction-rtl .fc-datagrid-cell-resizer{left:-3px}.fc-direction-ltr .fc-datagrid-expander{margin-right:3px}.fc-direction-rtl .fc-datagrid-expander{margin-left:3px}";ge(Ul);var _l=U({name:"@fullcalendar/resource-timeline",premiumReleaseDate:"2024-07-12",deps:[te,Ht,ci],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:Ot,needsResourceData:!0,resourceAreaWidth:"30%",resourcesInitiallyExpanded:!0,eventResizableFromStart:!0},resourceTimelineDay:{type:"resourceTimeline",duration:{days:1}},resourceTimelineWeek:{type:"resourceTimeline",duration:{weeks:1}},resourceTimelineMonth:{type:"resourceTimeline",duration:{months:1}},resourceTimelineYear:{type:"resourceTimeline",duration:{years:1}}}});class Gl extends wt{transformSeg(e,t,s){return t.computeColRanges(e.firstCol,e.lastCol,s).map(l=>Object.assign(Object.assign(Object.assign({},e),l),{isStart:e.isStart&&l.isStart,isEnd:e.isEnd&&l.isEnd}))}}class zl extends A{constructor(){super(...arguments),this.splitter=new xt,this.slicers={},this.joiner=new Gl,this.tableRef=E(),this.isHitComboAllowed=(e,t)=>this.props.resourceDayTableModel.dayTableModel.colCnt===1||e.dateSpan.resourceId===t.dateSpan.resourceId}render(){let{props:e,context:t}=this,{resourceDayTableModel:s,nextDayThreshold:i,dateProfile:l}=e,n=this.splitter.splitProps(e);this.slicers=T(n,(a,d)=>this.slicers[d]||new Fr);let o=T(this.slicers,(a,d)=>a.sliceProps(n[d],l,i,t,s.dayTableModel));return c(Br,Object.assign({forPrint:e.forPrint,ref:this.tableRef},this.joiner.joinProps(o,s),{cells:s.cells,dateProfile:l,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,isHitComboAllowed:this.isHitComboAllowed}))}}class jl extends wt{transformSeg(e,t,s){return[Object.assign(Object.assign({},e),{col:t.computeCol(e.col,s)})]}}class Bl extends A{constructor(){super(...arguments),this.buildDayRanges=w(Yr),this.splitter=new xt,this.slicers={},this.joiner=new jl,this.timeColsRef=E(),this.isHitComboAllowed=(e,t)=>this.dayRanges.length===1||e.dateSpan.resourceId===t.dateSpan.resourceId}render(){let{props:e,context:t}=this,{dateEnv:s,options:i}=t,{dateProfile:l,resourceDayTableModel:n}=e,o=this.dayRanges=this.buildDayRanges(n.dayTableModel,l,s),a=this.splitter.splitProps(e);this.slicers=T(a,(u,h)=>this.slicers[h]||new Xr);let d=T(this.slicers,(u,h)=>u.sliceProps(a[h],l,null,t,o));return c(P,{unit:i.nowIndicator?"minute":"day"},(u,h)=>c(Kr,Object.assign({ref:this.timeColsRef},this.joiner.joinProps(d,n),{dateProfile:l,axis:e.axis,slotDuration:e.slotDuration,slatMetas:e.slatMetas,cells:n.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:u,n
1owIndicatorSegs:i.nowIndicator&&this.buildNowIndicatorSegs(u),todayRange:h,onScrollTopRequest:e.onScrollTopRequest,forPrint:e.forPrint,onSlatCoords:e.onSlatCoords,isHitComboAllowed:this.isHitComboAllowed})))}buildNowIndicatorSegs(e){let t=this.slicers[""].sliceNowDate(e,this.props.dateProfile,this.context.options.nextDayThreshold,this.context,this.dayRanges);return this.joiner.expandSegs(this.props.resourceDayTableModel,t)}}class Fl extends Vr{constructor(){super(...arguments),this.flattenResources=w(vi),this.buildResourceTimeColsModel=w(Vl),this.buildSlatMetas=w(qr)}render(){let{props:e,context:t}=this,{options:s,dateEnv:i}=t,{dateProfile:l}=e,n=this.allDaySplitter.splitProps(e),o=s.resourceOrder||bt,a=this.flattenResources(e.resourceStore,o),d=this.buildResourceTimeColsModel(l,t.dateProfileGenerator,a,s.datesAboveResources,t),u=this.buildSlatMetas(l.slotMinTime,l.slotMaxTime,s.slotLabelInterval,s.slotDuration,i),{dayMinWidth:h}=s,f=!h,p=h,m=s.dayHeaders&&c(Si,{resources:a,dates:d.dayTableModel.headerDates,dateProfile:l,datesRepDistinctDays:!0,renderIntro:f?this.renderHeadAxis:null}),g=s.allDaySlot!==!1&&(y=>c(zl,Object.assign({},n.allDay,{dateProfile:l,resourceDayTableModel:d,nextDayThreshold:s.nextDayThreshold,tableMinWidth:y.tableMinWidth,colGroupNode:y.tableColGroupNode,renderRowIntro:f?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:y.clientWidth,clientHeight:y.clientHeight,forPrint:e.forPrint},this.getAllDayMaxEventProps()))),C=y=>c(Bl,Object.assign({},n.timed,{dateProfile:l,axis:f,slotDuration:s.slotDuration,slatMetas:u,resourceDayTableModel:d,tableColGroupNode:y.tableColGroupNode,tableMinWidth:y.tableMinWidth,clientWidth:y.clientWidth,clientHeight:y.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:y.expandRows,forPrint:e.forPrint,onScrollTopRequest:this.handleScrollTopRequest}));return p?this.renderHScrollLayout(m,g,C,d.colCnt,h,u,this.state.slatCoords):this.renderSimpleLayout(m,g,C)}}function Vl(r,e,t,s,i){let l=$r(r,e);return s?new bi(l,t,i):new yi(l,t,i)}var ql=U({name:"@fullcalendar/resource-timegrid",premiumReleaseDate:"2024-07-12",deps:[te,Ht,Zr],initialView:"resourceTimeGridDay",views:{resourceTimeGrid:{type:"timeGrid",component:Fl,needsResourceData:!0},resourceTimeGridDay:{type:"resourceTimeGrid",duration:{days:1}},resourceTimeGridWeek:{type:"resourceTimeGrid",duration:{weeks:1}}}});$.fn.setupFullCalendar=function(r){this.each(function(){let e=this;$(e).tikiModal(tr("Loading..."));let t=function(l){let n=l.event,o=n.end,a=n.start,d={itemId:n.id,trackerId:r.trackerId,ajax:!0};o||(o=a),d["fields~"+r.begin]=ne(a).unix()+a.getTimezoneOffset()*60,d["fields~"+r.end]=ne(o).unix()+o.getTimezoneOffset()*60;let u=n.getResources();u.length&&(u=u[0]),d["fields~"+r.resource]=u.title,$.post($.service("tracker","update_item"),d,null,"json")},s={hour:"numeric",minute:"2-digit",meridiem:r.timeFormat,hour12:r.timeFormat};var i=new Jr(e,{plugins:[hs,_l,ql],themeSystem:"bootstrap",schedulerLicenseKey:r.premiumLicense,initialDate:r.initialDate,eventTimeFormat:{hour:"numeric",minute:"2-digit",meridiem:r.timeFormat,hour12:r.timeFormat},views:{timeGrid:{slotLabelFormat:s},resourceTimelineDay:{slotLabelFormat:s},resourceTimelineWeek:{slotLabelInterval:"24:00:00",slotDuration:"06:00:00",slotLabelFormat:[{month:"long",year:"numeric"},{day:"numeric",weekday:"short"}]}},viewClassNames:function(l){$(e).tikiModal(),console.debug(l.view.type)},timeZone:r.display_timezone,headerToolbar:{left:"prevYear,prev,next,nextYear today",center:"title",right:r.views},editable:!0,events:$.service("tracker_calendar","list",$.extend(r.filterValues,{trackerId:r.trackerId,colormap:r.colormap,beginField:r.begin,endField:r.end,resourceField:r.resource,coloringField:r.coloring,filters:r.body,maxRecords:r.maxEvents})),buttonText:{resourceTimelineDay:r.labelResDay,resourceTimelineWeek:r.labelResWeek,resourceTimelineMonth:r.labelResMonth,resourceTimelineYear:r.labelResYear,listDay:r.labelListDay,listWeek:r.labelListWeek,listMonth:r.llabelListMonth,listYear:r.labelListYear,today:r.labelToday,resourceTimeGridWeek:r.labelAgendaWeek,resourceTimeGridDay:r.labelAgendaDay},resources:r.resourceList,allDayText:r.labelAllDay,firstDay:r.firstDayofWeek,slotDuration:r.slotDuration,slotMinTime:r.minHourOfDay,slotMaxTime:r.maxHourOfDay,initialView:r.dView,eventClick:function(l){if(l.jsEvent.preventDefault(),r.url){const o=l.event;let a=r.url;if(a+=a.indexOf("?")===-1?"?":"&",r.trkitemid==="y"&&r.addAllFields==="n")a+="itemId="+o.id;else{let d="",u=$.parseHTML(o.description)||[];a+="trackerid="+o.trackerId,o.trkitemid==="y"?a=a+"&itemId="+o.id:a=a+"&itemid="+o.id,a=a+"&title="+o.title,a=a+"&end="+o.end,a=a+"&start="+o.start,r.useSessionStorage&&(sessionStorage.setItem("trackerid",o.trackerId),sessionStorage.setItem("title",o.title),sessionStorage.setItem("start",o.start),sessionStorage.setItem("itemid",o.id
1),sessionStorage.setItem("end",o.end),sessionStorage.setItem("eventColor",o.color)),$.each(u,function(h,f){isEven(h)==!0?d=f.textContent.replace(" ","_"):(a=a+"&"+d+"="+f.textContent,r.useSessionStorage&&sessionStorage.setItem(d,f.textContent))})}return location.href=a,!1}else{let o=l.event;if(o.startEditable&&o.extendedProps.trackerId){var n={trackerId:o.extendedProps.trackerId,itemId:o.id};return $.openModal({remote:$.service("tracker","update_item",n),size:"modal-lg",title:o.title,open:function(){$("form:not(.no-ajax)",this).addClass("no-ajax").on("submit",ajaxSubmitEventHandler(function(a){$(this).parents(".modal").modal("hide"),i.refetchEvents()}))}}),!1}else return!0}},eventDidMount:function(l){let n=l.event,o=$(l.el);o.attr("title",n.title),o.popover({trigger:"hover",html:!0,content:n.extendedProps.description,container:"body",delay:{show:250,hide:500},customClass:"popover-sm"})},dateClick:function(l,n,o){if(r.canInsert){var a={trackerId:r.trackerId};let d=ne(l.date);a[r.beginFieldName]=d.unix(),a[r.endFieldName]=d.add(1,"h").unix(),r.url?$('<a href="#"/>').attr("href",r.url):$.openModal({remote:$.service("tracker","insert_item",a),size:"modal-lg",title:r.addTitle,open:function(){$("form:not(.no-ajax)",this).addClass("no-ajax").on("submit",ajaxSubmitEventHandler(function(u){$(this).parents(".modal").modal("hide"),i.refetchEvents()}))}})}return!1},eventResize:t,eventDrop:t,height:"auto",dayMinWidth:150});i.render(),jqueryTiki.print_pdf_from_url!=="none"&&$(function(){$("#"+r.id).addFullCalendarPrint("#calendar-pdf-btn",i)})})}; 2//# sourceMappingURL=wikiplugin-trackercalendar.js.map
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.