@event-calendar/build 3.8.0 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- EventCalendar v3.8.0
2
+ EventCalendar v3.10.0
3
3
  https://github.com/vkurko/calendar
4
4
  */
5
- var EventCalendar=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function l(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),l=1;l<n;l++)r[l-1]=arguments[l];if(null==e){for(const t of r)t(void 0);return t}const o=e.subscribe(...r);return o.unsubscribe?()=>o.unsubscribe():o}function i(t){let e;return s(t,(t=>e=t))(),e}function a(t,e,n){t.$$.on_destroy.push(s(e,n))}function c(t,e,n,r){if(t){const l=u(t,e,n,r);return t[0](l)}}function u(t,e,n,r){return t[1]&&r?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}function d(t,e,n,r){if(t[2]&&r){const l=t[2](r(n));if(void 0===e.dirty)return l;if("object"==typeof l){const t=[],n=Math.max(e.dirty.length,l.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|l[r];return t}return e.dirty|l}return e.dirty}function f(t,e,n,r,l,o){if(l){const s=u(e,n,r,o);t.p(s,l)}}function h(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function p(t,e,n){return t.set(n),e}function m(e){return e&&l(e.destroy)?e.destroy:t}const $="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function g(t,e){t.appendChild(e)}function v(t,e,n){t.insertBefore(e,n||null)}function y(t){t.parentNode&&t.parentNode.removeChild(t)}function w(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function b(t){return document.createElement(t)}function k(t){return document.createTextNode(t)}function x(){return k(" ")}function _(){return k("")}function C(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function T(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function D(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function E(t,e){e=""+e,t.data!==e&&(t.data=e)}function S(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function M(t,e){return new t(e)}let U;function L(t){U=t}function z(){if(!U)throw new Error("Function called outside component initialization");return U}function R(t){z().$$.on_mount.push(t)}function H(t){z().$$.after_update.push(t)}function N(){const t=z();return function(e,n){let{cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const l=t.$$.callbacks[e];if(l){const o=function(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}(e,n,{cancelable:r});return l.slice().forEach((e=>{e.call(t,o)})),!o.defaultPrevented}return!0}}function B(t){return z().$$.context.get(t)}function F(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const A=[],P=[];let j=[];const I=[],W=Promise.resolve();let O=!1;function G(){O||(O=!0,W.then(J))}function q(){return G(),W}function Y(t){j.push(t)}const X=new Set;let V=0;function J(){if(0!==V)return;const t=U;do{try{for(;V<A.length;){const t=A[V];V++,L(t),K(t.$$)}}catch(t){throw A.length=0,V=0,t}for(L(null),A.length=0,V=0;P.length;)P.pop()();for(let t=0;t<j.length;t+=1){const e=j[t];X.has(e)||(X.add(e),e())}j.length=0}while(A.length);for(;I.length;)I.pop()();O=!1,X.clear(),L(t)}function K(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Y)}}const Q=new Set;let Z;function tt(){Z={r:0,c:[],p:Z}}function et(){Z.r||r(Z.c),Z=Z.p}function nt(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function rt(t,e,n,r){if(t&&t.o){if(Q.has(t))return;Q.add(t),Z.c.push((()=>{Q.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}function lt(t){return void 0!==t?.length?t:Array.from(t)}function ot(t,e){rt(t,1,1,(()=>{e.delete(t.key)}))}function st(t,e,n,l,o,s,i,a,c,u,d,f){let h=t.length,p=s.length,m=h;const $={};for(;m--;)$[t[m].key]=m;const g=[],v=new Map,y=new Map,w=[];for(m=p;m--;){const t=f(o,s,m),r=n(t);let l=i.get(r);l?w.push((()=>l.p(t,e))):(l=u(r,t),l.c()),v.set(r,g[m]=l),r in $&&y.set(r,Math.abs(m-$[r]))}const b=new Set,k=new Set;function x(t){nt(t,1),t.m(a,d),i.set(t.key,t),d=t.first,p--}for(;h&&p;){const e=g[p-1],n=t[h-1],r=e.key,l=n.key;e===n?(d=e.first,h--,p--):v.has(l)?!i.has(r)||b.has(r)?x(e):k.has(l)?h--:y.get(r)>y.get(l)?(k.add(r),x(e)):(b.add(l),h--):(c(n,i),h--)}for(;h--;){const e=t[h];v.has(e.key)||c(e,i)}for(;p;)x(g[p-1]);return r(w),g}function it(t){t&&t.c()}function at(t,n,o){const{fragment:s,after_update:i}=t.$$;s&&s.m(n,o),Y((()=>{const n=t.$$.on_mount.map(e).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...n):r(n),t.$$.on_mount=[]})),i.forEach(Y)}function ct(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];j.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),j=e}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ut(e,l,o,s,i,a){let c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=U;L(e);const f=e.$$={fragment:null,ctx:[],props:a,update:t,not_equal:i,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l.context||(d?d.$$.context:[])),callbacks:n(),dirty:u,skip_bound:!1,root:l.target||d.$$.root};c&&c(f.root);let h=!1;if(f.ctx=o?o(e,l.props||{},(function(t,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&i(f.ctx[t],f.ctx[t]=r)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](r),h&&function(t,e){-1===t.$$.dirty[0]&&(A.push(t),G(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(e,t)),n})):[],f.update(),h=!0,r(f.before_update),f.fragment=!!s&&s(f.ctx),l.target){if(l.hydrate){const t=function(t){return Array.from(t.childNodes)}(l.target);f.fragment&&f.fragment.l(t),t.forEach(y)}else f.fragment&&f.fragment.c();l.intro&&nt(e.$$.fragment),at(e,l.target,l.anchor),J()}L(d)}class dt{$$=void 0;$$set=void 0;$destroy(){ct(this,1),this.$destroy=t}$on(e,n){if(!l(n))return t;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ft=[];function ht(t,e){return{subscribe:pt(t,e).subscribe}}function pt(e){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;const l=new Set;function s(t){if(o(e,t)&&(e=t,n)){const t=!ft.length;for(const t of l)t[1](),ft.push(t,e);if(t){for(let t=0;t<ft.length;t+=2)ft[t][0](ft[t+1]);ft.length=0}}}function i(t){s(t(e))}return{set:s,update:i,subscribe:function(o){const a=[o,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t];return l.add(a),1===l.size&&(n=r(s,i)||t),o(e),()=>{l.delete(a),0===l.size&&n&&(n(),n=null)}}}}function mt(e,n,o){const i=!Array.isArray(e),a=i?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const c=n.length<2;return ht(o,((e,o)=>{let u=!1;const d=[];let f=0,h=t;const p=()=>{if(f)return;h();const r=n(i?d[0]:d,e,o);c?e(r):h=l(r)?r:t},m=a.map(((t,e)=>s(t,(t=>{d[e]=t,f&=~(1<<e),u&&p()}),(()=>{f|=1<<e}))));return u=!0,p(),function(){r(m),h(),u=!1}}))}function $t(t){return function(e){return"Enter"===e.key||" "===e.key&&!e.preventDefault()?t.call(this,e):void 0}}function gt(t,e){let n={update(e){"string"==typeof e?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}};return n.update(e),n}function vt(t,e){const n=n=>{t&&!t.contains(n.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:n}}))};return document.addEventListener(e,n,!0),{destroy(){document.removeEventListener(e,n,!0)}}}const yt=86400;function wt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return void 0!==t?t instanceof Date?Bt(t):function(t){const e=t.match(/\d+/g);return new Date(Date.UTC(Number(e[0]),Number(e[1])-1,Number(e[2]),Number(e[3]||0),Number(e[4]||0),Number(e[5]||0)))}(t):Bt(new Date)}function bt(t){if("number"==typeof t)t={seconds:t};else if("string"==typeof t){let e=0,n=2;for(let r of t.split(":",3))e+=parseInt(r,10)*Math.pow(60,n--);t={seconds:e}}else t instanceof Date&&(t={hours:t.getUTCHours(),minutes:t.getUTCMinutes(),seconds:t.getUTCSeconds()});let e=t.weeks||t.week||0;return{years:t.years||t.year||0,months:t.months||t.month||0,days:7*e+(t.days||t.day||0),seconds:60*(t.hours||t.hour||0)*60+60*(t.minutes||t.minute||0)+(t.seconds||t.second||0),inWeeks:!!e}}function kt(t){return new Date(t.getTime())}function xt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.setUTCFullYear(t.getUTCFullYear()+n*e.years);let r=t.getUTCMonth()+n*e.months;for(t.setUTCMonth(r),r%=12,r<0&&(r+=12);t.getUTCMonth()!==r;)Tt(t);return t.setUTCDate(t.getUTCDate()+n*e.days),t.setUTCSeconds(t.getUTCSeconds()+n*e.seconds),t}function _t(t,e){return xt(t,e,-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1))}function Ct(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t.setUTCDate(t.getUTCDate()+e),t}function Tt(t){return Ct(t,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function Dt(t){return t.setUTCHours(0,0,0,0),t}function Et(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())}function St(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:19;return t.toISOString().substring(0,e)}function Mt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.every((e=>t.getTime()===e.getTime()))}function Ut(t,e){let n=e-t.getUTCDay();return t.setUTCDate(t.getUTCDate()+(n<=0?n:n-7)),t}function Lt(t){return"string"==typeof t&&t.length<=10}function zt(t,e){return t.setUTCHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),0),t}function Rt(t){return t.seconds}function Ht(t,e){return xt(t,e),t}function Nt(t,e,n){if(_t(t,e),n.length&&n.length<7)for(;n.includes(t.getUTCDay());)Tt(t);return t}function Bt(t){return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()))}function Ft(){return Object.assign(...arguments)}function At(t){return Object.keys(t)}function Pt(t){return Math.floor(t)}function jt(t){return Math.ceil(t)}function It(){return Math.min(...arguments)}function Wt(){return Math.max(...arguments)}function Ot(t){return Array.isArray(t)}function Gt(t){return"function"==typeof t}function qt(t){return t()}function Yt(t){t.forEach(qt)}function Xt(){}const Vt=t=>t;function Jt(t,e,n){n.update((n=>n.set(e,t)))}function Kt(t){Yt(t),t.clear()}function Qt(t,e,n){e??=t,n.has(e)||n.set(e,setTimeout((()=>{n.delete(e),t()})))}let Zt=Symbol("ec");function te(t,e){t[Zt]=e}function ee(t){return t[Zt]}function ne(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],l=document.createElement(t);l.className=e,"string"==typeof n?l.innerText=n:n.domNodes?l.replaceChildren(...n.domNodes):n.html&&(l.innerHTML=n.html);for(let t of r)l.setAttribute(...t);return l}function re(t){return t.getBoundingClientRect()}function le(t,e){for(;e--;)t=t.parentElement;return t}function oe(t){return re(t).height}function se(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;for(let l of n.elementsFromPoint(t,e)){if(r=l,r?.[Zt])return l;if(l.shadowRoot){let n=se(t,e,l.shadowRoot);if(n)return n}}var r;return null}function ie(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function ae(t){return(t=Ft({},t)).currentStart=Et(t.currentStart),t.currentEnd=Et(t.currentEnd),t.activeStart=Et(t.activeStart),t.activeEnd=Et(t.activeEnd),t}function ce(t){return t.startsWith("list")}function ue(t){return t.includes("Timeline")}let de=1;function fe(t){return t.map((t=>{let e={id:"id"in t?String(t.id):`{generated-${de++}}`,resourceIds:he(t,"resourceId").map(String),allDay:t.allDay??(Lt(t.start)&&Lt(t.end)),start:wt(t.start),end:wt(t.end),title:t.title??"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display??"auto",extendedProps:t.extendedProps??{},backgroundColor:t.backgroundColor??t.color,textColor:t.textColor,classNames:he(t,"className"),styles:he(t,"style")};if(e.allDay){Dt(e.start);let t=kt(e.end);Dt(e.end),Mt(e.end,t)&&!Mt(e.end,e.start)||Ct(e.end)}return e}))}function he(t,e){let n=t[e+"s"]??t[e]??[];return Ot(n)?n:[n]}function pe(t){return t.map((t=>({events:t.events,url:t.url&&t.url.trimEnd("&")||"",method:t.method&&t.method.toUpperCase()||"GET",extraParams:t.extraParams||{}})))}function me(t,e,n){return{start:t.start>e?t.start:e,end:t.end<n?t.end:n,event:t}}function $e(t){t.sort(((t,e)=>t.start-e.start||e.event.allDay-t.event.allDay))}function ge(t,e,n,r,l,o){let s,i=l.formatRange(t.start,e&&"pointer"!==t.event.display&&!t.zeroDuration?zt(kt(t.start),t.end):t.start);if(n&&(s=Gt(n)?n({event:be(t.event),timeText:i,view:ae(o)}):n),void 0===s){let e;switch(t.event.display){case"background":e=[];break;case"pointer":e=[ye(i,t,r)];break;default:e=[...t.event.allDay?[]:[ye(i,t,r)],ne("h4",r.eventTitle,t.event.title)]}s={domNodes:e}}return[i,s]}function ve(t,e){Mt(t.start,t.end)&&(t.zeroDuration=!0,t.end=xt(kt(t.end),e))}function ye(t,e,n){return ne("time",n.eventTime,t,[["datetime",St(e.start)]])}function we(t,e,n){let r=e.classNames;return t&&(Gt(t)&&(t=t({event:be(e),view:ae(n)})),r=[...Ot(t)?t:[t],...r]),r}function be(t){return xe(t,Et)}function ke(t){return xe(t,kt)}function xe(t,e){return(t=Ft({},t)).start=e(t.start),t.end=e(t.end),t}function _e(t,e){let n={};if(t.length){let r;$e(t);for(let l of t){let t=[],o=Dt(kt(l.start));for(;l.end>o;){if(!e.includes(o.getUTCDay())&&(t.push(kt(o)),t.length>1)){let t=o.getTime();n[t]?n[t].chunks.push(l):n[t]={sorted:!1,chunks:[l]}}Ct(o)}if(t.length){l.date=t[0],l.days=t.length,l.dates=t,l.start<t[0]&&(l.start=t[0]);let e=Ct(kt(t.at(-1)));l.end>e&&(l.end=e)}else l.date=Dt(kt(l.start)),l.days=1,l.dates=[l.date];r&&Mt(r.date,l.date)&&(l.prev=r),r=l}}return n}function Ce(t,e,n){t.top=0,t.prev&&(t.top=t.prev.bottom+1),t.bottom=t.top+n;let r=1,l=t.date.getTime();if(e[l]){e[l].sorted||(e[l].chunks.sort(((t,e)=>t.top-e.top)),e[l].sorted=!0);for(let n of e[l].chunks)if(t.top<n.bottom&&t.bottom>n.top){let e=n.bottom-t.top+1;r+=e,t.top+=e,t.bottom+=e}}return r}function Te(t,e){t.length=e.length;let n=[];for(let e of t)n.push(e?.reposition?.());return n}function De(t,e,n,r){return t.start<n&&t.end>e&&(!r||(Ot(r)||(r=[r]),r.some((e=>t.resourceIds.includes(e.id)))))}function Ee(t){return function(t){return"preview"===t}(t)||Me(t)||function(t){return"pointer"===t}(t)}function Se(t){return"background"===t}function Me(t){return"ghost"===t}function Ue(t){return He(t,"day")}function Le(t){return He(t,"week")}function ze(t){return He(t,"month")}function Re(t){return He(t,"year")}function He(t,e){return{...t,next:"Next "+e,prev:"Previous "+e}}function Ne(t){return e=>({...e,view:t})}function Be(t){let e=[];return Fe(t,0,e),e}function Fe(t,e,n){let r=[];for(let l of t){let t=Ae(l);r.push(t),n.push(t);let o={level:e,children:[],expanded:!0,hidden:!1};te(t,o),l.children&&(o.children=Fe(l.children,e+1,n))}return r}function Ae(t){return{id:String(t.id),title:t.title||"",eventBackgroundColor:t.eventBackgroundColor,eventTextColor:t.eventTextColor,extendedProps:t.extendedProps??{}}}function Pe(t,e){return Ie(t,e)?.eventBackgroundColor}function je(t,e){return Ie(t,e)?.eventTextColor}function Ie(t,e){return e.find((e=>t.resourceIds.includes(e.id)))}function We(t,e){return mt([t,e],(t=>{let[e,n]=t,r=Gt(n)?{format:n}:new Intl.DateTimeFormat(e,n);return{format:t=>r.format(Et(t))}}))}function Oe(t,e){return mt([t,e],(t=>{let e,[n,r]=t;if(Gt(r))e=r;else{let t=new Intl.DateTimeFormat(n,r);e=(e,n)=>{if(e<=n)return t.formatRange(e,n);{let r=t.formatRangeToParts(n,e),l="",o=["startRange","endRange"],s=[!1,!1];for(let t of r){let e=o.indexOf(t.source);e>=0?s[e]||(l+=Ge(o[1-e],r),s[e]=!0):l+=t.value}return l}}}return{formatRange:(t,n)=>e(Et(t),Et(n))}}))}function Ge(t,e){let n="";for(let r of e)r.source==t&&(n+=r.value);return n}function qe(t){return mt([t.resources,t.filterResourcesWithEvents,t._events,t._activeRange],(t=>{let[e,n,r,l]=t,o=e.filter((t=>!ee(t).hidden));return n&&(o=e.filter((t=>{for(let e of r)if("background"!==e.display&&e.resourceIds.includes(t.id)&&e.start<l.end&&e.end>l.start)return!0;return!1}))),o.length||(o=Be([{}])),o}))}function Ye(t,e,n,r){t=kt(t);let l=e.seconds<3600,o=[],s=kt(t),i=1;for(xt(t,n.min),xt(s,n.max);t<s;)o.push([St(t),r.format(t),o.length&&(i||!l)]),xt(t,e),i=1-i;return o}function Xe(t,e,n,r,l){let o=bt(t),s=bt(e);if(n){let t=bt(It(Rt(o),Wt(0,Rt(s)-yt))),e=bt(Wt(Rt(s),Rt(t)+yt)),i=Gt(n?.eventFilter)?n.eventFilter:t=>!Se(t.display);t:for(let n of r){let r=xt(kt(n),o),a=xt(kt(n),s),c=xt(kt(n),t),u=xt(kt(n),e);for(let d of l)if(!d.allDay&&i(d)&&d.start<u&&d.end>c){if(d.start<r){let e=Wt((d.start-n)/1e3,Rt(t));e<Rt(o)&&(o.seconds=e)}if(d.end>a){let t=It((d.end-n)/1e3,Rt(e));t>Rt(s)&&(s.seconds=t)}if(Rt(o)===Rt(t)&&Rt(s)===Rt(e))break t}}}return{min:o,max:s}}class Ve{constructor(t,e){let n=function(t){let e={allDayContent:void 0,allDaySlot:!0,buttonText:{today:"today"},customButtons:{},date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventTextColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventSources:[],eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,filterResourcesWithEvents:!1,firstDay:0,flexibleSlotTimeLimits:!1,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,nowIndicator:!1,resourceLabelContent:void 0,resourceLabelDidMount:void 0,resources:[],selectable:!1,scrollTime:"06:00:00",slotDuration:"00:30:00",slotEventOverlap:!0,slotHeight:24,slotLabelFormat:{hour:"numeric",minute:"2-digit"},slotMaxTime:"24:00:00",slotMinTime:"00:00:00",slotWidth:72,theme:{allDay:"ec-all-day",active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",compact:"ec-compact",content:"ec-content",day:"ec-day",dayHead:"ec-day-head",days:"ec-days",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",extra:"ec-extra",handle:"ec-handle",header:"ec-header",hiddenScroll:"ec-hidden-scroll",highlight:"ec-highlight",icon:"ec-icon",line:"ec-line",lines:"ec-lines",nowIndicator:"ec-now-indicator",otherMonth:"ec-other-month",resource:"ec-resource",sidebar:"ec-sidebar",sidebarTitle:"ec-sidebar-title",today:"ec-today",time:"ec-time",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"],withScroll:"ec-with-scroll"},titleFormat:{year:"numeric",month:"short",day:"numeric"},view:void 0,viewDidMount:void 0,views:{}};for(let n of t)n.createOptions?.(e);return e}(t=t||[]),r=function(t){let e={date:t=>Dt(wt(t)),duration:bt,events:fe,eventSources:pe,hiddenDays:t=>[...new Set(t)],highlightedDates:t=>t.map((t=>Dt(wt(t)))),resources:Be,scrollTime:bt,slotDuration:bt,slotMaxTime:bt,slotMinTime:bt};for(let n of t)n.createParsers?.(e);return e}(t);n=Je(n,r),e=Je(e,r);for(let[t,e]of Object.entries(n))this[t]=pt(e);this._queue=pt(new Map),this._queue2=pt(new Map),this._tasks=new Map,this._auxiliary=pt([]),this._dayGrid=mt(this.view,(t=>t?.startsWith("dayGrid"))),this._currentRange=function(t){return mt([t.date,t.duration,t.firstDay],(t=>{let e,[n,r,l]=t,o=kt(n);return r.months?o.setUTCDate(1):r.inWeeks&&Ut(o,l),e=xt(kt(o),r),{start:o,end:e}}))}(this),this._activeRange=function(t){return mt([t._currentRange,t.firstDay,t.slotMaxTime,t._dayGrid],(t=>{let[e,n,r,l]=t,o=kt(e.start),s=kt(e.end);if(l)Ut(o,n),function(t,e){let n=e-t.getUTCDay();t.setUTCDate(t.getUTCDate()+(n>=0?n:n+7))}(s,n);else if(r.days||r.seconds>yt){xt(Tt(s),r);let t=Tt(kt(s));t<o&&(o=t)}return{start:o,end:s}}))}(this),this._fetchedRange=pt({start:void 0,end:void 0}),this._events=function(t){let e,n=pt([]),r=0,l={};return mt([t.events,t.eventSources,t._activeRange,t._fetchedRange,t.lazyFetching,t.loading],((n,o)=>Jt((()=>{let[t,l,s,i,a,c]=n;if(l.length){if(!i.start||i.start>s.start||i.end<s.end||!a){e&&e.abort(),e=new AbortController,Gt(c)&&!r&&c(!0);let t=()=>{0==--r&&Gt(c)&&c(!1)},n=[],a=e=>t(),u=e=>{n=n.concat(fe(e)),o(n),t()},d=St(s.start),f=St(s.end);for(let t of l){if(Gt(t.events)){let e=t.events({start:Et(s.start),end:Et(s.end),startStr:d,endStr:f},u,a);void 0!==e&&Promise.resolve(e).then(u,a)}else{let n=Gt(t.extraParams)?t.extraParams():Ft({},t.extraParams);n.start=d,n.end=f,n=new URLSearchParams(n);let r,l=t.url,o={};["GET","HEAD"].includes(t.method)?l+=(l.includes("?")?"&":"?")+n:(o["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",r=String(n)),fetch(l,{method:t.method,headers:o,body:r,signal:e.signal,credentials:"same-origin"}).then((t=>t.json())).then(u).catch(a)}++r}i.start=s.start,i.end=s.end}}else o(t)}),l,t._queue)),[]).subscribe(n.set),n}(this),this._now=ht(wt(),(t=>{let e=setInterval((()=>{t(wt())}),1e3);return()=>clearInterval(e)})),this._today=function(t){return mt(t._now,(t=>Dt(kt(t))))}(this),this._intlEventTime=Oe(this.locale,this.eventTimeFormat),this._intlSlotLabel=We(this.locale,this.slotLabelFormat),this._intlDayHeader=We(this.locale,this.dayHeaderFormat),this._intlDayHeaderAL=We(this.locale,this.dayHeaderAriaLabelFormat),this._intlTitle=Oe(this.locale,this.titleFormat),this._bodyEl=pt(void 0),this._scrollable=pt(!1),this._viewTitle=function(t){return mt([t.date,t._activeRange,t._intlTitle,t._dayGrid],(t=>{let[e,n,r,l]=t;return l?r.formatRange(e,e):r.formatRange(n.start,Tt(kt(n.end)))}))}(this),this._viewDates=function(t){return mt([t._activeRange,t.hiddenDays],(e=>{let[n,r]=e,l=[],o=Dt(kt(n.start)),s=Dt(kt(n.end));for(;o<s;)r.includes(o.getUTCDay())||l.push(kt(o)),Ct(o);return!l.length&&r.length&&r.length<7&&(t.date.update((t=>{for(;r.includes(t.getUTCDay());)Ct(t);return t})),l=i(t._viewDates)),l}))}(this),this._view=function(t){return mt([t.view,t._viewTitle,t._currentRange,t._activeRange],(t=>function(t,e,n,r){return{type:t,title:e,currentStart:n.start,currentEnd:n.end,activeStart:r.start,activeEnd:r.end,calendar:void 0}}(...t)))}(this),this._viewComponent=pt(void 0),this._interaction=pt({}),this._iEvents=pt([null,null]),this._iClasses=pt(Vt),this._iClass=pt(void 0),this._set=(t,e)=>{Ze(t,this)&&(r[t]&&(e=r[t](e)),this[t].set(e))},this._get=t=>Ze(t,this)?i(this[t]):void 0;for(let e of t)e.createStores?.(this);e.view&&this.view.set(e.view);let l=new Set([...At(n.views),...At(e.views??{})]);for(let t of l){let r=Ke(n,n.views[t]??{}),l=Ke(r,e,e.views?.[t]??{}),o=l.component;Qe(l,this);for(let t of At(l)){let{set:e,_set:n=e,...o}=this[t];this[t]={set:["buttonText","theme"].includes(t)?o=>{if(Gt(o)){let s=o(r[t]);l[t]=s,e(e===n?s:o)}else l[t]=o,e(o)}:n=>{l[t]=n,e(n)},_set:n,...o}}this.view.subscribe((e=>{if(e===t){this._viewComponent.set(o),Gt(l.viewDidMount)&&q().then((()=>l.viewDidMount(i(this._view))));for(let t of At(l))this[t]._set(l[t])}}))}}}function Je(t,e){let n={...t};for(let t of At(e))t in n&&(n[t]=e[t](n[t]));if(t.views){n.views={};for(let r of At(t.views))n.views[r]=Je(t.views[r],e)}return n}function Ke(){let t={};for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(let e of n){let n={};for(let r of["buttonText","theme"])Gt(e[r])&&(n[r]=e[r](t[r]));t={...t,...e,...n}}return t}function Qe(t,e){At(t).filter((t=>!Ze(t,e)||"view"==t)).forEach((e=>delete t[e]))}function Ze(t,e){return e.hasOwnProperty(t)&&"_"!==t[0]}function tn(t,e,n){const r=t.slice();return r[25]=e[n],r}function en(t){let e,n,r,l,o,s=t[5][t[25]]+"";function i(){return t[22](t[25])}return{c(){e=b("button"),n=k(s),D(e,"class",r=t[3].button+(t[7]===t[25]?" "+t[3].active:"")+" ec-"+t[25])},m(t,r){v(t,e,r),g(e,n),l||(o=C(e,"click",i),l=!0)},p(l,o){t=l,33&o&&s!==(s=t[5][t[25]]+"")&&E(n,s),137&o&&r!==(r=t[3].button+(t[7]===t[25]?" "+t[3].active:"")+" ec-"+t[25])&&D(e,"class",r)},d(t){t&&y(e),l=!1,o()}}}function nn(t){let e,n,o,s,i;return{c(){e=b("button"),D(e,"class",n=t[3].button+" ec-"+t[25]+(t[6][t[25]].active?" "+t[3].active:""))},m(n,r){v(n,e,r),s||(i=[C(e,"click",(function(){l(t[6][t[25]].click)&&t[6][t[25]].click.apply(this,arguments)})),m(o=gt.call(null,e,t[6][t[25]].text))],s=!0)},p(r,s){t=r,73&s&&n!==(n=t[3].button+" ec-"+t[25]+(t[6][t[25]].active?" "+t[3].active:""))&&D(e,"class",n),o&&l(o.update)&&65&s&&o.update.call(null,t[6][t[25]].text)},d(t){t&&y(e),s=!1,r(i)}}}function rn(t){let e,n,r,l,o,s=t[5][t[25]]+"";return{c(){e=b("button"),n=k(s),D(e,"class",r=t[3].button+" ec-"+t[25]),e.disabled=t[1]},m(r,s){v(r,e,s),g(e,n),l||(o=C(e,"click",t[21]),l=!0)},p(t,l){33&l&&s!==(s=t[5][t[25]]+"")&&E(n,s),9&l&&r!==(r=t[3].button+" ec-"+t[25])&&D(e,"class",r),2&l&&(e.disabled=t[1])},d(t){t&&y(e),l=!1,o()}}}function ln(t){let e,n,r,l,o,s,i,a;return{c(){e=b("button"),n=b("i"),D(n,"class",r=t[3].icon+" ec-"+t[25]),D(e,"class",l=t[3].button+" ec-"+t[25]),D(e,"aria-label",o=t[5].next),D(e,"title",s=t[5].next)},m(r,l){v(r,e,l),g(e,n),i||(a=C(e,"click",t[19]),i=!0)},p(t,i){9&i&&r!==(r=t[3].icon+" ec-"+t[25])&&D(n,"class",r),9&i&&l!==(l=t[3].button+" ec-"+t[25])&&D(e,"class",l),32&i&&o!==(o=t[5].next)&&D(e,"aria-label",o),32&i&&s!==(s=t[5].next)&&D(e,"title",s)},d(t){t&&y(e),i=!1,a()}}}function on(t){let e,n,r,l,o,s,i,a;return{c(){e=b("button"),n=b("i"),D(n,"class",r=t[3].icon+" ec-"+t[25]),D(e,"class",l=t[3].button+" ec-"+t[25]),D(e,"aria-label",o=t[5].prev),D(e,"title",s=t[5].prev)},m(r,l){v(r,e,l),g(e,n),i||(a=C(e,"click",t[18]),i=!0)},p(t,i){9&i&&r!==(r=t[3].icon+" ec-"+t[25])&&D(n,"class",r),9&i&&l!==(l=t[3].button+" ec-"+t[25])&&D(e,"class",l),32&i&&o!==(o=t[5].prev)&&D(e,"aria-label",o),32&i&&s!==(s=t[5].prev)&&D(e,"title",s)},d(t){t&&y(e),i=!1,a()}}}function sn(t){let e,n,r,o,s;return{c(){e=b("h2"),D(e,"class",n=t[3].title)},m(n,l){v(n,e,l),o||(s=m(r=gt.call(null,e,t[4])),o=!0)},p(t,o){8&o&&n!==(n=t[3].title)&&D(e,"class",n),r&&l(r.update)&&16&o&&r.update.call(null,t[4])},d(t){t&&y(e),o=!1,s()}}}function an(t){let e;function n(t,e){return"title"==t[25]?sn:"prev"==t[25]?on:"next"==t[25]?ln:"today"==t[25]?rn:t[6][t[25]]?nn:""!=t[25]?en:void 0}let r=n(t),l=r&&r(t);return{c(){l&&l.c(),e=_()},m(t,n){l&&l.m(t,n),v(t,e,n)},p(t,o){r===(r=n(t))&&l?l.p(t,o):(l&&l.d(1),l=r&&r(t),l&&(l.c(),l.m(e.parentNode,e)))},d(t){t&&y(e),l&&l.d(t)}}}function cn(e){let n,r=lt(e[0]),l=[];for(let t=0;t<r.length;t+=1)l[t]=an(tn(e,r,t));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();n=_()},m(t,e){for(let n=0;n<l.length;n+=1)l[n]&&l[n].m(t,e);v(t,n,e)},p(t,e){let[o]=e;if(917759&o){let e;for(r=lt(t[0]),e=0;e<r.length;e+=1){const s=tn(t,r,e);l[e]?l[e].p(s,o):(l[e]=an(s),l[e].c(),l[e].m(n.parentNode,n))}for(;e<l.length;e+=1)l[e].d(1);l.length=r.length}},i:t,o:t,d(t){t&&y(n),w(l,t)}}}function un(t,e,n){let r,l,o,s,i,c,u,d,f,{buttons:h}=e,{_currentRange:m,_viewTitle:$,buttonText:g,customButtons:v,date:y,duration:w,hiddenDays:b,theme:k,view:x}=B("state");a(t,m,(t=>n(20,s=t))),a(t,$,(t=>n(4,c=t))),a(t,g,(t=>n(5,u=t))),a(t,v,(t=>n(6,d=t))),a(t,y,(t=>n(2,l=t))),a(t,w,(t=>n(23,r=t))),a(t,b,(t=>n(24,o=t))),a(t,k,(t=>n(3,i=t))),a(t,x,(t=>n(7,f=t)));let _,C=Dt(wt());return t.$$set=t=>{"buttons"in t&&n(0,h=t.buttons)},t.$$.update=()=>{1048576&t.$$.dirty&&n(1,_=C>=s.start&&C<s.end||null)},[h,_,l,i,c,u,d,f,m,$,g,v,y,w,b,k,x,C,function(){p(y,l=Nt(l,r,o),l)},function(){p(y,l=Ht(l,r),l)},s,()=>p(y,l=kt(C),l),t=>p(x,f=t,f)]}class dn extends dt{constructor(t){super(),ut(this,t,un,cn,o,{buttons:0})}}function fn(t,e,n){const r=t.slice();return r[5]=e[n],r}function hn(t,e,n){const r=t.slice();return r[8]=e[n],r}function pn(t){let e,n;return e=new dn({props:{buttons:t[8]}}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.buttons=t[8]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function mn(t){let e,n,r,l;return n=new dn({props:{buttons:t[8]}}),{c(){e=b("div"),it(n.$$.fragment),D(e,"class",r=t[1].buttonGroup)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(t,o){const s={};1&o&&(s.buttons=t[8]),n.$set(s),(!l||2&o&&r!==(r=t[1].buttonGroup))&&D(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function $n(t){let e,n,r,l;const o=[mn,pn],s=[];function i(t,e){return t[8].length>1?0:1}return e=i(t),n=s[e]=o[e](t),{c(){n.c(),r=_()},m(t,n){s[e].m(t,n),v(t,r,n),l=!0},p(t,l){let a=e;e=i(t),e===a?s[e].p(t,l):(tt(),rt(s[a],1,1,(()=>{s[a]=null})),et(),n=s[e],n?n.p(t,l):(n=s[e]=o[e](t),n.c()),nt(n,1),n.m(r.parentNode,r))},i(t){l||(nt(n),l=!0)},o(t){rt(n),l=!1},d(t){t&&y(r),s[e].d(t)}}}function gn(t){let e,n,r,l,o=lt(t[0][t[5]]),s=[];for(let e=0;e<o.length;e+=1)s[e]=$n(hn(t,o,e));const i=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=b("div");for(let t=0;t<s.length;t+=1)s[t].c();n=x(),D(e,"class",r="ec-"+t[5])},m(t,r){v(t,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);g(e,n),l=!0},p(t,a){if(3&a){let r;for(o=lt(t[0][t[5]]),r=0;r<o.length;r+=1){const l=hn(t,o,r);s[r]?(s[r].p(l,a),nt(s[r],1)):(s[r]=$n(l),s[r].c(),nt(s[r],1),s[r].m(e,n))}for(tt(),r=o.length;r<s.length;r+=1)i(r);et()}(!l||1&a&&r!==(r="ec-"+t[5]))&&D(e,"class",r)},i(t){if(!l){for(let t=0;t<o.length;t+=1)nt(s[t]);l=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)rt(s[t]);l=!1},d(t){t&&y(e),w(s,t)}}}function vn(t){let e,n,r,l=lt(At(t[0])),o=[];for(let e=0;e<l.length;e+=1)o[e]=gn(fn(t,l,e));const s=t=>rt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=b("nav");for(let t=0;t<o.length;t+=1)o[t].c();D(e,"class",n=t[1].toolbar)},m(t,n){v(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);r=!0},p(t,i){let[a]=i;if(3&a){let n;for(l=lt(At(t[0])),n=0;n<l.length;n+=1){const r=fn(t,l,n);o[n]?(o[n].p(r,a),nt(o[n],1)):(o[n]=gn(r),o[n].c(),nt(o[n],1),o[n].m(e,null))}for(tt(),n=l.length;n<o.length;n+=1)s(n);et()}(!r||2&a&&n!==(n=t[1].toolbar))&&D(e,"class",n)},i(t){if(!r){for(let t=0;t<l.length;t+=1)nt(o[t]);r=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)rt(o[t]);r=!1},d(t){t&&y(e),w(o,t)}}}function yn(t,e,n){let r,l,{headerToolbar:o,theme:s}=B("state");a(t,o,(t=>n(4,r=t))),a(t,s,(t=>n(1,l=t)));let i={start:[],center:[],end:[]};return t.$$.update=()=>{if(17&t.$$.dirty)for(let t of At(i))n(0,i[t]=r[t].split(" ").map((t=>t.split(","))),i)},[i,l,o,s,r]}class wn extends dt{constructor(t){super(),ut(this,t,yn,vn,o,{})}}function bn(t,e,n){const r=t.slice();return r[11]=e[n],r}function kn(t){let e,n,r;var l=t[11];return l&&(e=M(l,{})),{c(){e&&it(e.$$.fragment),n=_()},m(t,l){e&&at(e,t,l),v(t,n,l),r=!0},p(t,r){if(1&r&&l!==(l=t[11])){if(e){tt();const t=e;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}l?(e=M(l,{}),it(e.$$.fragment),nt(e.$$.fragment,1),at(e,n.parentNode,n)):e=null}},i(t){r||(e&&nt(e.$$.fragment,t),r=!0)},o(t){e&&rt(e.$$.fragment,t),r=!1},d(t){t&&y(n),e&&ct(e,t)}}}function xn(t){let e,n,r=lt(t[0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=kn(bn(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=_()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){let[s]=n;if(1&s){let n;for(r=lt(t[0]),n=0;n<r.length;n+=1){const o=bn(t,r,n);l[n]?(l[n].p(o,s),nt(l[n],1)):(l[n]=kn(o),l[n].c(),nt(l[n],1),l[n].m(e.parentNode,e))}for(tt(),n=r.length;n<l.length;n+=1)o(n);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function _n(t,e,n){let r,l,o,s,{datesSet:i,_auxiliary:c,_activeRange:u,_queue:d,_view:f}=B("state");a(t,i,(t=>n(7,l=t))),a(t,c,(t=>n(0,s=t))),a(t,u,(t=>n(5,o=t))),a(t,f,(t=>n(6,r=t)));let h={};return t.$$.update=()=>{32&t.$$.dirty&&function(t){Gt(l)&&Jt((()=>l({start:Et(t.start),end:Et(t.end),startStr:St(t.start),endStr:St(t.end),view:ae(r)})),h,d)}(o)},[s,i,c,u,f,o]}let Cn=class extends dt{constructor(t){super(),ut(this,t,_n,xn,o,{})}};function Tn(t){let e,n,r,l,o,s,i,a,c,u,d;n=new wn({});var f=t[5];return f&&(l=M(f,{})),a=new Cn({}),{c(){e=b("div"),it(n.$$.fragment),r=x(),l&&it(l.$$.fragment),i=x(),it(a.$$.fragment),D(e,"class",o=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")),D(e,"role",s=ce(t[4])?"list":"table"),S(e,"height",t[3])},m(o,s){v(o,e,s),at(n,e,null),g(e,r),l&&at(l,e,null),v(o,i,s),at(a,o,s),c=!0,u||(d=C(window,"resize",t[20]),u=!0)},p(t,n){if(32&n[0]&&f!==(f=t[5])){if(l){tt();const t=l;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}f?(l=M(f,{}),it(l.$$.fragment),nt(l.$$.fragment,1),at(l,e,null)):l=null}(!c||7&n[0]&&o!==(o=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")))&&D(e,"class",o),(!c||16&n[0]&&s!==(s=ce(t[4])?"list":"table"))&&D(e,"role",s),8&n[0]&&S(e,"height",t[3])},i(t){c||(nt(n.$$.fragment,t),l&&nt(l.$$.fragment,t),nt(a.$$.fragment,t),c=!0)},o(t){rt(n.$$.fragment,t),l&&rt(l.$$.fragment,t),rt(a.$$.fragment,t),c=!1},d(t){t&&(y(e),y(i)),ct(n),l&&ct(l),ct(a,t),u=!1,d()}}}function Dn(t,e,n){let r,l,o,s,c,u,d,f,h,m,$,g,v,y,{plugins:w=[]}=e,{options:b={}}=e,k=new Ve(w,b);var x,_;x="state",_=k,z().$$.context.set(x,_);let{_viewComponent:C,_bodyEl:T,_interaction:D,_iClass:E,_events:S,_queue:M,_queue2:U,_tasks:L,_scrollable:R,date:N,duration:B,hiddenDays:F,height:A,theme:P,view:j}=k;a(t,C,(t=>n(5,y=t))),a(t,T,(t=>n(36,r=t))),a(t,D,(t=>n(42,f=t))),a(t,E,(t=>n(2,$=t))),a(t,S,(t=>n(43,h=t))),a(t,M,(t=>n(38,s=t))),a(t,U,(t=>n(37,o=t))),a(t,R,(t=>n(0,l=t))),a(t,N,(t=>n(41,d=t))),a(t,B,(t=>n(40,u=t))),a(t,F,(t=>n(39,c=t))),a(t,A,(t=>n(3,g=t))),a(t,P,(t=>n(1,m=t))),a(t,j,(t=>n(4,v=t)));let I={...b};function W(t,e){return k._set(t,e),this}var O;function G(){var t;r&&p(R,l=(t=r).scrollHeight>t.clientHeight,l)}return O=()=>{Kt(s)},z().$$.before_update.push(O),H((()=>{Kt(o),Qt(G,null,L)})),t.$$set=t=>{"plugins"in t&&n(21,w=t.plugins),"options"in t&&n(22,b=t.options)},t.$$.update=()=>{if(4194304&t.$$.dirty[0])for(let[t,e]of function(t,e){let n=[];for(let r of At(t))t[r]!==e[r]&&n.push([r,t[r]]);return Ft(e,t),n}(b,I))W(t,e)},[l,m,$,g,v,y,C,T,D,E,S,M,U,R,N,B,F,A,P,j,G,w,b,W,function(t){let e=k._get(t);return e instanceof Date?Et(e):e},function(){return k._fetchedRange.set({start:void 0,end:void 0}),this},function(){return h.map(be)},function(t){for(let e of h)if(e.id==t)return be(e);return null},function(t){return t=fe([t])[0],h.push(t),S.set(h),t},function(t){for(let e of h)if(e.id==t.id)return Ft(e,t=fe([t])[0]),S.set(h),t;return null},function(t){let e=h.findIndex((e=>e.id==t));return e>=0&&(h.splice(e,1),S.set(h)),this},function(){return ae(i(k._view))},function(){return f.action?.unselect(),this},function(t,e){let n=se(t,e);if(n){let r=ee(n)(t,e);return r.date=Et(r.date),r}return null},function(){return p(N,d=Ht(d,u),d),this},function(){return p(N,d=Nt(d,u,c),d),this}]}class En extends dt{constructor(t){super(),ut(this,t,Dn,Tn,o,{plugins:21,options:22,setOption:23,getOption:24,refetchEvents:25,getEvents:26,getEventById:27,addEvent:28,updateEvent:29,removeEventById:30,getView:31,unselect:32,dateFromPoint:33,next:34,prev:35},null,[-1,-1])}get setOption(){return this.$$.ctx[23]}get getOption(){return this.$$.ctx[24]}get refetchEvents(){return this.$$.ctx[25]}get getEvents(){return this.$$.ctx[26]}get getEventById(){return this.$$.ctx[27]}get addEvent(){return this.$$.ctx[28]}get updateEvent(){return this.$$.ctx[29]}get removeEventById(){return this.$$.ctx[30]}get getView(){return this.$$.ctx[31]}get unselect(){return this.$$.ctx[32]}get dateFromPoint(){return this.$$.ctx[33]}get next(){return this.$$.ctx[34]}get prev(){return this.$$.ctx[35]}}let Sn=class extends En{destroy(){this.$destroy()}get view(){return this.getView()}};function Mn(t,e,n){const r=t.slice();return r[8]=e[n],r}function Un(t){let e,n,r,o,s,i,a,c;return{c(){e=b("div"),n=b("span"),s=x(),D(n,"aria-label",r=t[2].format(t[8])),D(e,"class",i=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()]),D(e,"role","columnheader")},m(r,l){v(r,e,l),g(e,n),g(e,s),a||(c=m(o=gt.call(null,n,t[3].format(t[8]))),a=!0)},p(s,a){t=s,6&a&&r!==(r=t[2].format(t[8]))&&D(n,"aria-label",r),o&&l(o.update)&&10&a&&o.update.call(null,t[3].format(t[8])),3&a&&i!==(i=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()])&&D(e,"class",i)},d(t){t&&y(e),a=!1,c()}}}function Ln(e){let n,r,l,o,s,i,a,c=lt(e[1]),u=[];for(let t=0;t<c.length;t+=1)u[t]=Un(Mn(e,c,t));return{c(){n=b("div"),r=b("div");for(let t=0;t<u.length;t+=1)u[t].c();o=x(),s=b("div"),D(r,"class",l=e[0].days),D(r,"role","row"),D(s,"class",i=e[0].hiddenScroll),D(n,"class",a=e[0].header)},m(t,e){v(t,n,e),g(n,r);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(r,null);g(n,o),g(n,s)},p(t,e){let[o]=e;if(15&o){let e;for(c=lt(t[1]),e=0;e<c.length;e+=1){const n=Mn(t,c,e);u[e]?u[e].p(n,o):(u[e]=Un(n),u[e].c(),u[e].m(r,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=c.length}1&o&&l!==(l=t[0].days)&&D(r,"class",l),1&o&&i!==(i=t[0].hiddenScroll)&&D(s,"class",i),1&o&&a!==(a=t[0].header)&&D(n,"class",a)},i:t,o:t,d(t){t&&y(n),w(u,t)}}}function zn(t,e,n){let r,l,o,s,{theme:i,_intlDayHeader:c,_intlDayHeaderAL:u,_days:d}=B("state");return a(t,i,(t=>n(0,r=t))),a(t,c,(t=>n(3,s=t))),a(t,u,(t=>n(2,o=t))),a(t,d,(t=>n(1,l=t))),[r,l,o,s,i,c,u,d]}let Rn=class extends dt{constructor(t){super(),ut(this,t,zn,Ln,o,{})}};function Hn(t){let e,n,o,s,i,a,c,u,d,f,h,p,$;var w=t[8].resizer;function k(t,e){return{props:{start:!0,event:t[0]}}}w&&(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[32](t[8],["x","start"]))&&t[32](t[8],["x","start"]).apply(this,arguments)})));var _=t[8].resizer;function T(t,e){return{props:{event:t[0]}}}return _&&(u=M(_,T(t)),u.$on("pointerdown",(function(){l(t[32](t[8],["x","end"]))&&t[32](t[8],["x","end"]).apply(this,arguments)}))),{c(){e=b("article"),n&&it(n.$$.fragment),o=x(),s=b("div"),c=x(),u&&it(u.$$.fragment),D(s,"class",i=t[2].eventBody),D(e,"class",t[4]),D(e,"style",t[5]),D(e,"role",d=t[7]?"button":void 0),D(e,"tabindex",f=t[7]?0:void 0)},m(r,i){v(r,e,i),n&&at(n,e,null),g(e,o),g(e,s),g(e,c),u&&at(u,e,null),t[51](e),h=!0,p||($=[m(a=gt.call(null,s,t[6])),C(e,"click",(function(){l(t[7]||void 0)&&(t[7]||void 0).apply(this,arguments)})),C(e,"keydown",(function(){l(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),C(e,"mouseenter",(function(){l(t[31](t[9],t[1]))&&t[31](t[9],t[1]).apply(this,arguments)})),C(e,"mouseleave",(function(){l(t[31](t[10],t[1]))&&t[31](t[10],t[1]).apply(this,arguments)})),C(e,"pointerdown",(function(){l(!Ee(t[1])&&t[32](t[8]))&&(!Ee(t[1])&&t[32](t[8])).apply(this,arguments)}))],p=!0)},p(r,c){if(t=r,256&c[0]&&w!==(w=t[8].resizer)){if(n){tt();const t=n;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}w?(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[32](t[8],["x","start"]))&&t[32](t[8],["x","start"]).apply(this,arguments)})),it(n.$$.fragment),nt(n.$$.fragment,1),at(n,e,o)):n=null}else if(w){const e={};1&c[0]&&(e.event=t[0]),n.$set(e)}if((!h||4&c[0]&&i!==(i=t[2].eventBody))&&D(s,"class",i),a&&l(a.update)&&64&c[0]&&a.update.call(null,t[6]),256&c[0]&&_!==(_=t[8].resizer)){if(u){tt();const t=u;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}_?(u=M(_,T(t)),u.$on("pointerdown",(function(){l(t[32](t[8],["x","end"]))&&t[32](t[8],["x","end"]).apply(this,arguments)})),it(u.$$.fragment),nt(u.$$.fragment,1),at(u,e,null)):u=null}else if(_){const e={};1&c[0]&&(e.event=t[0]),u.$set(e)}(!h||16&c[0])&&D(e,"class",t[4]),(!h||32&c[0])&&D(e,"style",t[5]),(!h||128&c[0]&&d!==(d=t[7]?"button":void 0))&&D(e,"role",d),(!h||128&c[0]&&f!==(f=t[7]?0:void 0))&&D(e,"tabindex",f)},i(t){h||(n&&nt(n.$$.fragment,t),u&&nt(u.$$.fragment,t),h=!0)},o(t){n&&rt(n.$$.fragment,t),u&&rt(u.$$.fragment,t),h=!1},d(l){l&&y(e),n&&ct(n),u&&ct(u),t[51](null),p=!1,r($)}}}function Nn(t,e,n){let r,l,o,s,i,c,u,d,f,h,p,m,$,g,v,y,w,b,k,x,_,C,T,D,E,S,{chunk:M}=e,{longChunks:U={}}=e,{inPopup:L=!1}=e,{dates:z=[]}=e,{dayMaxEvents:N,displayEventEnd:F,eventAllUpdated:A,eventBackgroundColor:j,eventTextColor:I,eventClick:W,eventColor:O,eventContent:G,eventClassNames:q,eventDidMount:Y,eventMouseEnter:X,eventMouseLeave:V,resources:J,theme:K,_view:Q,_intlEventTime:Z,_interaction:tt,_iClasses:et,_hiddenEvents:nt,_popupDate:rt,_tasks:lt}=B("state");a(t,N,(t=>n(54,o=t))),a(t,F,(t=>n(44,m=t))),a(t,A,(t=>n(56,u=t))),a(t,j,(t=>n(50,b=t))),a(t,I,(t=>n(47,v=t))),a(t,W,(t=>n(40,r=t))),a(t,O,(t=>n(49,w=t))),a(t,G,(t=>n(43,p=t))),a(t,q,(t=>n(45,$=t))),a(t,Y,(t=>n(57,d=t))),a(t,X,(t=>n(9,k=t))),a(t,V,(t=>n(10,x=t))),a(t,J,(t=>n(48,y=t))),a(t,K,(t=>n(2,h=t))),a(t,Q,(t=>n(41,c=t))),a(t,Z,(t=>n(42,f=t))),a(t,tt,(t=>n(8,i=t))),a(t,et,(t=>n(46,g=t))),a(t,nt,(t=>n(53,l=t))),a(t,rt,(t=>n(55,s=t)));let ot,st,it=1,at=!1;function ct(t,e){return!Ee(e)&&Gt(t)?e=>t({event:be(C),el:_,jsEvent:e,view:ae(c)}):void 0}return R((()=>{Gt(d)&&d({event:be(C),timeText:S,el:_,view:ae(c)})})),H((()=>{Gt(u)&&!Ee(ot)&&Qt((()=>u({view:ae(c)})),"eau",lt)})),t.$$set=t=>{"chunk"in t&&n(33,M=t.chunk),"longChunks"in t&&n(34,U=t.longChunks),"inPopup"in t&&n(35,L=t.inPopup),"dates"in t&&n(36,z=t.dates)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&n(0,C=M.event),39&t.$$.dirty[0]|1033604&t.$$.dirty[1]){n(1,ot=C.display);let t=C.backgroundColor||Pe(C,y)||b||w,e=C.textColor||je(C,y)||v;if(Se(ot))n(5,D=`width:calc(${100*M.days}% + ${M.days-1}px);`);else{let t=it;if(C._margin){let[e,n]=C._margin;M.date>=n[0]&&M.date<=n.at(-1)&&(t=e)}n(5,D=`width:calc(${100*M.days}% + ${7*(M.days-1)}px);margin-top:${t}px;`)}t&&n(5,D+=`background-color:${t};`),e&&n(5,D+=`color:${e};`),at&&n(5,D+="visibility:hidden;"),n(5,D+=C.styles.join(";")),n(4,T=[Se(ot)?h.bgEvent:h.event,...g([],C),...we($,C,c)].join(" "))}4&t.$$.dirty[0]|15364&t.$$.dirty[1]&&n(6,[S,E]=ge(M,m,p,h,f,c),E),2&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(7,st=ct(r,ot))},[C,ot,h,_,T,D,E,st,i,k,x,N,F,A,j,I,W,O,G,q,Y,X,V,J,K,Q,Z,tt,et,nt,rt,ct,function(t,e){return t.action?t=>i.action.drag(C,t,e,L?s:null,[re(_).top-re(le(_,1)).top,z]):void 0},M,U,L,z,function(){_&&(n(38,it=Ce(M,U,oe(_))),!0===o?function(){let t=le(_,2),e=oe(t)-oe(t.firstElementChild)-function(t){let e=0;for(let n=0;n<M.days&&(e=Wt(e,oe(t.lastElementChild)),t=t.nextElementSibling);++n);return e}(t);n(39,at=M.bottom>e);let r=!1;for(let t of M.dates){let e=l[t.getTime()];if(e){let t=e.size;at?e.add(M.event):e.delete(M.event),t!==e.size&&(r=!0)}}r&&nt.set(l)}():n(39,at=!1))},it,at,r,c,f,p,m,$,g,v,y,w,b,function(t){P[t?"unshift":"push"]((()=>{_=t,n(3,_)}))}]}let Bn=class extends dt{constructor(t){super(),ut(this,t,Nn,Hn,o,{chunk:33,longChunks:34,inPopup:35,dates:36,reposition:37},null,[-1,-1])}get reposition(){return this.$$.ctx[37]}};function Fn(t,e,n){const r=t.slice();return r[20]=e[n],r}function An(t,e){let n,r,l;return r=new Bn({props:{chunk:e[20],inPopup:!0}}),{key:t,first:null,c(){n=_(),it(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};1&n&&(l.chunk=e[20]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function Pn(t){let e,n,o,s,i,a,c,u,d,f,h,p,$,w,_,E,S,M=[],U=new Map,L=lt(t[0]);const z=t=>t[20].event;for(let e=0;e<L.length;e+=1){let n=Fn(t,L,e),r=z(n);U.set(r,M[e]=An(r,n))}return{c(){e=b("div"),n=b("div"),o=b("time"),a=x(),c=b("a"),u=k("×"),h=x(),p=b("div");for(let t=0;t<M.length;t+=1)M[t].c();D(o,"datetime",s=St(t[3],10)),D(c,"role","button"),D(c,"tabindex","0"),D(c,"aria-label",d=t[6].close),D(n,"class",f=t[4].dayHead),D(p,"class",$=t[4].events),D(e,"class",w=t[4].popup),D(e,"style",t[2])},m(r,l){v(r,e,l),g(e,n),g(n,o),g(n,a),g(n,c),g(c,u),g(e,h),g(e,p);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(p,null);t[16](e),_=!0,E||(S=[m(i=gt.call(null,o,t[5].format(t[3]))),C(c,"click",T(t[13])),C(c,"keydown",$t(t[13])),m(vt.call(null,e,"pointerdown")),C(e,"pointerdown",T(t[15])),C(e,"pointerdownoutside",t[14])],E=!0)},p(t,r){let[a]=r;(!_||8&a&&s!==(s=St(t[3],10)))&&D(o,"datetime",s),i&&l(i.update)&&40&a&&i.update.call(null,t[5].format(t[3])),(!_||64&a&&d!==(d=t[6].close))&&D(c,"aria-label",d),(!_||16&a&&f!==(f=t[4].dayHead))&&D(n,"class",f),1&a&&(L=lt(t[0]),tt(),M=st(M,a,z,0,t,L,U,p,ot,An,null,Fn),et()),(!_||16&a&&$!==($=t[4].events))&&D(p,"class",$),(!_||16&a&&w!==(w=t[4].popup))&&D(e,"class",w),(!_||4&a)&&D(e,"style",t[2])},i(t){if(!_){for(let t=0;t<L.length;t+=1)nt(M[t]);_=!0}},o(t){for(let t=0;t<M.length;t+=1)rt(M[t]);_=!1},d(n){n&&y(e);for(let t=0;t<M.length;t+=1)M[t].d();t[16](null),E=!1,r(S)}}}function jn(t,e,n){let r,l,o,s,i,c,u,{buttonText:d,theme:f,_interaction:h,_intlDayPopover:m,_popupDate:$,_popupChunks:g}=B("state");a(t,d,(t=>n(6,c=t))),a(t,f,(t=>n(4,s=t))),a(t,h,(t=>n(17,r=t))),a(t,m,(t=>n(5,i=t))),a(t,$,(t=>n(3,l=t))),a(t,g,(t=>n(0,o=t)));let v="";function y(){u&&(n(2,v=""),q().then((()=>{o.length?function(){let t,e,r=le(u,1),l=le(r,3),o=re(u),s=re(r),i=re(l);if(n(2,v=""),o.width>=i.width){t=i.left-s.left;let e=s.right-i.right;n(2,v+=`right:${e}px;`)}else t=(s.width-o.width)/2,s.left+t<i.left?t=i.left-s.left:s.left+t+o.width>i.right&&(t=i.right-s.left-o.width);if(n(2,v+=`left:${t}px;`),o.height>=i.height){e=i.top-s.top;let t=s.bottom-i.bottom;n(2,v+=`bottom:${t}px;`)}else e=(s.height-o.height)/2,s.top+e<i.top?e=i.top-s.top:s.top+e+o.height>i.bottom&&(e=i.bottom-s.top-o.height);n(2,v+=`top:${e}px;`)}():w()})))}function w(t){p($,l=null,l)}return t.$$.update=()=>{1&t.$$.dirty&&o&&y()},[o,u,v,l,s,i,c,d,f,h,m,$,g,w,function(t){w(),r.action?.noClick()},function(e){F.call(this,t,e)},function(t){P[t?"unshift":"push"]((()=>{u=t,n(1,u)}))}]}class In extends dt{constructor(t){super(),ut(this,t,jn,Pn,o,{})}}function Wn(t,e,n){const r=t.slice();return r[44]=e[n],r[45]=e,r[46]=n,r}function On(t,e,n){const r=t.slice();return r[44]=e[n],r}function Gn(t,e){let n,r,l;return r=new Bn({props:{chunk:e[44]}}),{key:t,first:null,c(){n=_(),it(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};256&n[0]&&(l.chunk=e[44]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function qn(t){let e,n,r,l;return n=new Bn({props:{chunk:t[2][2]}}),{c(){e=b("div"),it(n.$$.fragment),D(e,"class",r=t[14].events)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(t,o){const s={};4&o[0]&&(s.chunk=t[2][2]),n.$set(s),(!l||16384&o[0]&&r!==(r=t[14].events))&&D(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function Yn(t){let e,n,r,l;return n=new Bn({props:{chunk:t[2][0]}}),{c(){e=b("div"),it(n.$$.fragment),D(e,"class",r=t[14].events+" "+t[14].preview)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(t,o){const s={};4&o[0]&&(s.chunk=t[2][0]),n.$set(s),(!l||16384&o[0]&&r!==(r=t[14].events+" "+t[14].preview))&&D(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function Xn(t,e){let n,r,l,o=e[46];const s=()=>e[38](r,o),i=()=>e[38](null,o);let a={chunk:e[44],longChunks:e[1],dates:e[3]};return r=new Bn({props:a}),s(),{key:t,first:null,c(){n=_(),it(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){o!==(e=t)[46]&&(i(),o=e[46],s());const l={};32&n[0]&&(l.chunk=e[44]),2&n[0]&&(l.longChunks=e[1]),8&n[0]&&(l.dates=e[3]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),i(),ct(r,t)}}}function Vn(t){let e,n;return e=new In({}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Jn(t){let e,n,o,s;return{c(){e=b("a"),D(e,"role","button"),D(e,"tabindex","0"),D(e,"aria-haspopup","true")},m(r,l){v(r,e,l),o||(s=[C(e,"click",T(t[27])),C(e,"keydown",$t(t[27])),C(e,"pointerdown",T(t[37])),m(n=gt.call(null,e,t[12]))],o=!0)},p(t,e){n&&l(n.update)&&4096&e[0]&&n.update.call(null,t[12])},d(t){t&&y(e),o=!1,r(s)}}}function Kn(t){let e,n,o,s,i,a,c,u,d,f,h,p,$,w,k,_,T,E,S,M,U,L=[],z=new Map,R=t[2][2]&&Mt(t[2][2].date,t[0]),H=t[2][0]&&Mt(t[2][0].date,t[0]),N=[],B=new Map,F=lt(t[8]);const A=t=>t[44].event;for(let e=0;e<F.length;e+=1){let n=On(t,F,e),r=A(n);z.set(r,L[e]=Gn(r,n))}let P=R&&qn(t),j=H&&Yn(t),I=lt(t[5]);const W=t=>t[44].event;for(let e=0;e<I.length;e+=1){let n=Wn(t,I,e),r=W(n);B.set(r,N[e]=Xn(r,n))}let O=t[7]&&Vn(),G=t[6].size&&Jn(t);return{c(){e=b("div"),n=b("time"),a=x(),c=b("div");for(let t=0;t<L.length;t+=1)L[t].c();d=x(),P&&P.c(),f=x(),j&&j.c(),h=x(),p=b("div");for(let t=0;t<N.length;t+=1)N[t].c();w=x(),O&&O.c(),k=x(),_=b("div"),G&&G.c(),D(n,"class",o=t[14].dayHead),D(n,"datetime",s=St(t[0],10)),D(c,"class",u=t[14].bgEvents),D(p,"class",$=t[14].events),D(_,"class",T=t[14].dayFoot),D(e,"class",E=t[14].day+" "+t[14].weekdays?.[t[0].getUTCDay()]+(t[9]?" "+t[14].today:"")+(t[10]?" "+t[14].otherMonth:"")+(t[11]?" "+t[14].highlight:"")),D(e,"role","cell")},m(r,o){v(r,e,o),g(e,n),g(e,a),g(e,c);for(let t=0;t<L.length;t+=1)L[t]&&L[t].m(c,null);g(e,d),P&&P.m(e,null),g(e,f),j&&j.m(e,null),g(e,h),g(e,p);for(let t=0;t<N.length;t+=1)N[t]&&N[t].m(p,null);g(e,w),O&&O.m(e,null),g(e,k),g(e,_),G&&G.m(_,null),t[39](e),S=!0,M||(U=[m(i=gt.call(null,n,t[16].format(t[0]))),C(e,"pointerleave",(function(){l(t[15].pointer?.leave)&&t[15].pointer?.leave.apply(this,arguments)})),C(e,"pointerdown",(function(){l(t[15].action?.select)&&t[15].action?.select.apply(this,arguments)}))],M=!0)},p(r,a){t=r,(!S||16384&a[0]&&o!==(o=t[14].dayHead))&&D(n,"class",o),(!S||1&a[0]&&s!==(s=St(t[0],10)))&&D(n,"datetime",s),i&&l(i.update)&&65537&a[0]&&i.update.call(null,t[16].format(t[0])),256&a[0]&&(F=lt(t[8]),tt(),L=st(L,a,A,0,t,F,z,c,ot,Gn,null,On),et()),(!S||16384&a[0]&&u!==(u=t[14].bgEvents))&&D(c,"class",u),5&a[0]&&(R=t[2][2]&&Mt(t[2][2].date,t[0])),R?P?(P.p(t,a),5&a[0]&&nt(P,1)):(P=qn(t),P.c(),nt(P,1),P.m(e,f)):P&&(tt(),rt(P,1,1,(()=>{P=null})),et()),5&a[0]&&(H=t[2][0]&&Mt(t[2][0].date,t[0])),H?j?(j.p(t,a),5&a[0]&&nt(j,1)):(j=Yn(t),j.c(),nt(j,1),j.m(e,h)):j&&(tt(),rt(j,1,1,(()=>{j=null})),et()),8234&a[0]&&(I=lt(t[5]),tt(),N=st(N,a,W,0,t,I,B,p,ot,Xn,null,Wn),et()),(!S||16384&a[0]&&$!==($=t[14].events))&&D(p,"class",$),t[7]?O?128&a[0]&&nt(O,1):(O=Vn(),O.c(),nt(O,1),O.m(e,k)):O&&(tt(),rt(O,1,1,(()=>{O=null})),et()),t[6].size?G?G.p(t,a):(G=Jn(t),G.c(),G.m(_,null)):G&&(G.d(1),G=null),(!S||16384&a[0]&&T!==(T=t[14].dayFoot))&&D(_,"class",T),(!S||19969&a[0]&&E!==(E=t[14].day+" "+t[14].weekdays?.[t[0].getUTCDay()]+(t[9]?" "+t[14].today:"")+(t[10]?" "+t[14].otherMonth:"")+(t[11]?" "+t[14].highlight:"")))&&D(e,"class",E)},i(t){if(!S){for(let t=0;t<F.length;t+=1)nt(L[t]);nt(P),nt(j);for(let t=0;t<I.length;t+=1)nt(N[t]);nt(O),S=!0}},o(t){for(let t=0;t<L.length;t+=1)rt(L[t]);rt(P),rt(j);for(let t=0;t<N.length;t+=1)rt(N[t]);rt(O),S=!1},d(n){n&&y(e);for(let t=0;t<L.length;t+=1)L[t].d();P&&P.d(),j&&j.d();for(let t=0;t<N.length;t+=1)N[t].d();O&&O.d(),G&&G.d(),t[39](null),M=!1,r(U)}}}function Qn(t,e,n){let r,l,o,s,i,c,u,d,f,h,m,$,g,v,y,w,{date:b}=e,{chunks:k}=e,{bgChunks:x}=e,{longChunks:_}=e,{iChunks:C=[]}=e,{dates:T}=e,{date:D,dayMaxEvents:E,highlightedDates:S,moreLinkContent:M,theme:U,_hiddenEvents:L,_intlDayCell:z,_popupDate:R,_popupChunks:H,_today:N,_interaction:A,_queue:j}=B("state");a(t,D,(t=>n(35,c=t))),a(t,S,(t=>n(34,i=t))),a(t,M,(t=>n(32,o=t))),a(t,U,(t=>n(14,d=t))),a(t,L,(t=>n(33,s=t))),a(t,z,(t=>n(16,h=t))),a(t,R,(t=>n(31,l=t))),a(t,H,(t=>n(40,r=t))),a(t,N,(t=>n(36,u=t))),a(t,A,(t=>n(15,f=t)));let I,W=new Set,O="",G=[];function Y(){let t=Ct(kt(b)),e=$.concat(_[b.getTime()]?.chunks||[]);p(H,r=e.map((e=>Ft({},e,me(e.event,b,t),{days:1,dates:[b]}))).sort(((t,e)=>t.top-e.top)),r)}return t.$$set=t=>{"date"in t&&n(0,b=t.date),"chunks"in t&&n(28,k=t.chunks),"bgChunks"in t&&n(29,x=t.bgChunks),"longChunks"in t&&n(1,_=t.longChunks),"iChunks"in t&&n(2,C=t.iChunks),"dates"in t&&n(3,T=t.dates)},t.$$.update=()=>{if(805306465&t.$$.dirty[0]){n(5,$=[]),n(8,g=x.filter((t=>Mt(t.date,b)))),W.clear(),n(6,W),n(29,x),n(0,b),n(28,k),n(5,$);for(let t of k)Mt(t.date,b)&&$.push(t)}if(65&t.$$.dirty[0]&&p(L,s[b.getTime()]=W,s),1&t.$$.dirty[0]|32&t.$$.dirty[1]&&n(9,v=Mt(b,u)),1&t.$$.dirty[0]|24&t.$$.dirty[1]&&(n(10,y=b.getUTCMonth()!==c.getUTCMonth()),n(11,w=i.some((t=>Mt(t,b))))),64&t.$$.dirty[0]|6&t.$$.dirty[1]&&s&&W.size){let t="+"+W.size+" more";n(12,O=o?Gt(o)?o({num:W.size,text:t}):o:t)}1&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(7,I=l&&Mt(b,l)),162&t.$$.dirty[0]&&I&&_&&$&&q().then(Y),17&t.$$.dirty[0]&&m&&te(m,(()=>({allDay:!0,date:b,resource:void 0,dayEl:m})))},[b,_,C,T,m,$,W,I,g,v,y,w,O,G,d,f,h,D,S,M,U,L,z,R,H,N,A,function(){p(R,l=b,l)},k,x,function(){Te(G,$)},l,o,s,i,c,u,function(e){F.call(this,t,e)},function(t,e){P[t?"unshift":"push"]((()=>{G[e]=t,n(13,G)}))},function(t){P[t?"unshift":"push"]((()=>{m=t,n(4,m)}))}]}let Zn=class extends dt{constructor(t){super(),ut(this,t,Qn,Kn,o,{date:0,chunks:28,bgChunks:29,longChunks:1,iChunks:2,dates:3,reposition:30},null,[-1,-1])}get reposition(){return this.$$.ctx[30]}};function tr(t,e,n){const r=t.slice();return r[26]=e[n],r[27]=e,r[28]=n,r}function er(t){let e,n,r=t[28];const l=()=>t[23](e,r),o=()=>t[23](null,r);let s={date:t[26],chunks:t[1],bgChunks:t[2],longChunks:t[3],iChunks:t[4],dates:t[0]};return e=new Zn({props:s}),l(),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){r!==t[28]&&(o(),r=t[28],l());const s={};1&n&&(s.date=t[26]),2&n&&(s.chunks=t[1]),4&n&&(s.bgChunks=t[2]),8&n&&(s.longChunks=t[3]),16&n&&(s.iChunks=t[4]),1&n&&(s.dates=t[0]),e.$set(s)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ct(e,t)}}}function nr(t){let e,n,r,l,o,s=lt(t[0]),i=[];for(let e=0;e<s.length;e+=1)i[e]=er(tr(t,s,e));const a=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=b("div");for(let t=0;t<i.length;t+=1)i[t].c();D(e,"class",n=t[6].days),D(e,"role","row")},m(n,s){v(n,e,s);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);r=!0,l||(o=C(window,"resize",t[14]),l=!0)},p(t,l){let[o]=l;if(63&o){let n;for(s=lt(t[0]),n=0;n<s.length;n+=1){const r=tr(t,s,n);i[n]?(i[n].p(r,o),nt(i[n],1)):(i[n]=er(r),i[n].c(),nt(i[n],1),i[n].m(e,null))}for(tt(),n=s.length;n<i.length;n+=1)a(n);et()}(!r||64&o&&n!==(n=t[6].days))&&D(e,"class",n)},i(t){if(!r){for(let t=0;t<s.length;t+=1)nt(i[t]);r=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);r=!1},d(t){t&&y(e),w(i,t),l=!1,o()}}}function rr(t,e,n){let r,l,o,s,i,c,u,{dates:d}=e,{_events:f,_iEvents:h,_queue2:p,_hiddenEvents:m,resources:$,filterEventsWithResources:g,hiddenDays:v,theme:y}=B("state");a(t,f,(t=>n(22,c=t))),a(t,h,(t=>n(19,o=t))),a(t,m,(t=>n(17,r=t))),a(t,$,(t=>n(20,s=t))),a(t,g,(t=>n(21,i=t))),a(t,v,(t=>n(18,l=t))),a(t,y,(t=>n(6,u=t)));let w,b,k,x,_,C=[],T=[],D={};function E(){Jt((()=>Te(T,d)),D,p)}return t.$$set=t=>{"dates"in t&&n(0,d=t.dates)},t.$$.update=()=>{if(1&t.$$.dirty&&(n(15,x=d[0]),n(16,_=Ct(kt(d.at(-1))))),7700486&t.$$.dirty){n(1,w=[]),n(2,b=[]);for(let t of c)if(De(t,x,_,i?s:void 0)){let e=me(t,x,_);Se(t.display)?t.allDay&&b.push(e):w.push(e)}_e(b,l),n(3,k=_e(w,l)),E()}884736&t.$$.dirty&&n(4,C=o.map((t=>{let e;return t&&De(t,x,_)?(e=me(t,x,_),_e([e],l)):e=null,e}))),131072&t.$$.dirty&&r&&q().then(E)},[d,w,b,k,C,T,u,f,h,m,$,g,v,y,E,x,_,r,l,o,s,i,c,function(t,e){P[t?"unshift":"push"]((()=>{T[e]=t,n(5,T)}))}]}let lr=class extends dt{constructor(t){super(),ut(this,t,rr,nr,o,{dates:0})}};function or(t,e,n){const r=t.slice();return r[15]=e[n],r}function sr(t){let e,n;return e=new lr({props:{dates:t[15]}}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.dates=t[15]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function ir(t){let e,n,r,l,o,s=lt(t[0]),i=[];for(let e=0;e<s.length;e+=1)i[e]=sr(or(t,s,e));const a=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=b("div"),n=b("div");for(let t=0;t<i.length;t+=1)i[t].c();D(n,"class",r=t[2].content),D(e,"class",l=t[2].body+(!0===t[1]?" "+t[2].uniform:""))},m(r,l){v(r,e,l),g(e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null);t[13](e),o=!0},p(t,c){let[u]=c;if(1&u){let e;for(s=lt(t[0]),e=0;e<s.length;e+=1){const r=or(t,s,e);i[e]?(i[e].p(r,u),nt(i[e],1)):(i[e]=sr(r),i[e].c(),nt(i[e],1),i[e].m(n,null))}for(tt(),e=s.length;e<i.length;e+=1)a(e);et()}(!o||4&u&&r!==(r=t[2].content))&&D(n,"class",r),(!o||6&u&&l!==(l=t[2].body+(!0===t[1]?" "+t[2].uniform:"")))&&D(e,"class",l)},i(t){if(!o){for(let t=0;t<s.length;t+=1)nt(i[t]);o=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);o=!1},d(n){n&&y(e),w(i,n),t[13](null)}}}function ar(t,e,n){let r,l,o,s,i,c,u,d,{_bodyEl:f,_viewDates:h,_hiddenEvents:m,dayMaxEvents:$,hiddenDays:g,theme:v}=B("state");return a(t,f,(t=>n(3,c=t))),a(t,h,(t=>n(11,r=t))),a(t,m,(t=>n(14,o=t))),a(t,$,(t=>n(1,l=t))),a(t,g,(t=>n(12,s=t))),a(t,v,(t=>n(2,i=t))),t.$$.update=()=>{if(7171&t.$$.dirty){n(0,u=[]),n(10,d=7-s.length),p(m,o={},o);for(let t=0;t<r.length/d;++t){let e=[];for(let n=0;n<d;++n)e.push(r[t*d+n]);u.push(e)}}},[u,l,i,c,f,h,m,$,g,v,d,r,s,function(t){P[t?"unshift":"push"]((()=>{c=t,f.set(c)}))}]}let cr=class extends dt{constructor(t){super(),ut(this,t,ar,ir,o,{})}};function ur(e){let n,r,l,o;return n=new Rn({}),l=new cr({}),{c(){it(n.$$.fragment),r=x(),it(l.$$.fragment)},m(t,e){at(n,t,e),v(t,r,e),at(l,t,e),o=!0},p:t,i(t){o||(nt(n.$$.fragment,t),nt(l.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),rt(l.$$.fragment,t),o=!1},d(t){t&&y(r),ct(n,t),ct(l,t)}}}let dr=class extends dt{constructor(t){super(),ut(this,t,null,ur,o,{})}};var fr={createOptions(t){t.dayMaxEvents=!1,t.dayCellFormat={day:"numeric"},t.dayPopoverFormat={month:"long",day:"numeric",year:"numeric"},t.moreLinkContent=void 0,t.buttonText.dayGridMonth="month",t.buttonText.close="Close",t.theme.uniform="ec-uniform",t.theme.dayFoot="ec-day-foot",t.theme.popup="ec-popup",t.view="dayGridMonth",t.views.dayGridMonth={buttonText:ze,component:dr,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:Ne("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(t){t._days=function(t){return mt([t.date,t.firstDay,t.hiddenDays],(t=>{let[e,n,r]=t,l=[],o=kt(e),s=7;for(;o.getUTCDay()!==n&&s;)Tt(o),--s;for(let t=0;t<7;++t)r.includes(o.getUTCDay())||l.push(kt(o)),Ct(o);return l}))}(t),t._intlDayCell=We(t.locale,t.dayCellFormat),t._intlDayPopover=We(t.locale,t.dayPopoverFormat),t._hiddenEvents=pt({}),t._popupDate=pt(null),t._popupChunks=pt([])}};function hr(e){let n,o,s,i,a,c,u,d,f,h,p;return{c(){n=b("article"),o=b("div"),i=x(),a=b("div"),D(o,"class",s=e[0].eventTag),D(o,"style",e[3]),D(a,"class",c=e[0].eventBody),D(n,"class",e[2]),D(n,"role",d=e[5]?"button":void 0),D(n,"tabindex",f=e[5]?0:void 0)},m(t,r){v(t,n,r),g(n,o),g(n,i),g(n,a),e[38](n),h||(p=[m(u=gt.call(null,a,e[4])),C(n,"click",(function(){l(e[5])&&e[5].apply(this,arguments)})),C(n,"keydown",(function(){l(e[5]&&$t(e[5]))&&(e[5]&&$t(e[5])).apply(this,arguments)})),C(n,"mouseenter",(function(){l(e[25](e[6]))&&e[25](e[6]).apply(this,arguments)})),C(n,"mouseleave",(function(){l(e[25](e[7]))&&e[25](e[7]).apply(this,arguments)})),C(n,"pointerdown",(function(){l(e[8].action?.noAction)&&e[8].action?.noAction.apply(this,arguments)}))],h=!0)},p(t,r){e=t,1&r[0]&&s!==(s=e[0].eventTag)&&D(o,"class",s),8&r[0]&&D(o,"style",e[3]),1&r[0]&&c!==(c=e[0].eventBody)&&D(a,"class",c),u&&l(u.update)&&16&r[0]&&u.update.call(null,e[4]),4&r[0]&&D(n,"class",e[2]),32&r[0]&&d!==(d=e[5]?"button":void 0)&&D(n,"role",d),32&r[0]&&f!==(f=e[5]?0:void 0)&&D(n,"tabindex",f)},i:t,o:t,d(t){t&&y(n),e[38](null),h=!1,r(p)}}}function pr(t,e,n){let r,l,o,s,i,c,u,d,f,h,p,m,$,g,v,y,w,b,k,x,_,C,T,{chunk:D}=e,{displayEventEnd:E,eventAllUpdated:S,eventBackgroundColor:M,eventTextColor:U,eventColor:L,eventContent:z,eventClassNames:N,eventClick:F,eventDidMount:A,eventMouseEnter:j,eventMouseLeave:I,resources:W,theme:O,_view:G,_intlEventTime:q,_interaction:Y,_tasks:X}=B("state");function V(t){return Gt(t)?e=>t({event:be(b),el:w,jsEvent:e,view:ae(l)}):void 0}return a(t,E,(t=>n(32,d=t))),a(t,S,(t=>n(40,o=t))),a(t,M,(t=>n(37,$=t))),a(t,U,(t=>n(34,h=t))),a(t,L,(t=>n(36,m=t))),a(t,z,(t=>n(31,u=t))),a(t,N,(t=>n(33,f=t))),a(t,F,(t=>n(28,r=t))),a(t,A,(t=>n(41,s=t))),a(t,j,(t=>n(6,g=t))),a(t,I,(t=>n(7,v=t))),a(t,W,(t=>n(35,p=t))),a(t,O,(t=>n(0,c=t))),a(t,G,(t=>n(29,l=t))),a(t,q,(t=>n(30,i=t))),a(t,Y,(t=>n(8,y=t))),R((()=>{Gt(s)&&s({event:be(b),timeText:C,el:w,view:ae(l)})})),H((()=>{Gt(o)&&Qt((()=>o({view:ae(l)})),"eau",X)})),t.$$set=t=>{"chunk"in t&&n(26,D=t.chunk)},t.$$.update=()=>{if(67108864&t.$$.dirty[0]&&n(27,b=D.event),671088649&t.$$.dirty[0]|124&t.$$.dirty[1]){n(3,x="");let t=b.backgroundColor||Pe(b,p)||$||m;t&&n(3,x=`background-color:${t};`);let e=b.textColor||je(b,p)||h;e&&n(3,x+=`color:${e};`),n(3,x+=b.styles.join(";")),n(2,k=[c.event,...we(f,b,l)].join(" "))}1677721601&t.$$.dirty[0]|3&t.$$.dirty[1]&&n(4,[C,_]=ge(D,d,u,c,i,l),_),268435456&t.$$.dirty[0]&&n(5,T=V(r))},[c,w,k,x,_,T,g,v,y,E,S,M,U,L,z,N,F,A,j,I,W,O,G,q,Y,V,D,b,r,l,i,u,d,f,h,p,m,$,function(t){P[t?"unshift":"push"]((()=>{w=t,n(1,w)}))}]}let mr=class extends dt{constructor(t){super(),ut(this,t,pr,hr,o,{chunk:26},null,[-1,-1])}};function $r(t,e,n){const r=t.slice();return r[25]=e[n],r}function gr(t){let e,n,o,s,i,a,c,u,d,f,h,p,$,w,k=[],_=new Map,T=lt(t[2]);const E=t=>t[25].event;for(let e=0;e<T.length;e+=1){let n=$r(t,T,e),r=E(n);_.set(r,k[e]=vr(r,n))}return{c(){e=b("div"),n=b("h4"),o=b("time"),i=x(),a=b("time"),f=x();for(let t=0;t<k.length;t+=1)k[t].c();D(o,"datetime",t[5]),D(a,"class",c=t[6].daySide),D(a,"datetime",t[5]),D(n,"class",d=t[6].dayHead),D(e,"class",h=t[6].day+" "+t[6].weekdays?.[t[0].getUTCDay()]+(t[3]?" "+t[6].today:"")+(t[4]?" "+t[6].highlight:"")),D(e,"role","listitem")},m(r,c){v(r,e,c),g(e,n),g(n,o),g(n,i),g(n,a),g(e,f);for(let t=0;t<k.length;t+=1)k[t]&&k[t].m(e,null);t[24](e),p=!0,$||(w=[m(s=gt.call(null,o,t[8].format(t[0]))),m(u=gt.call(null,a,t[9].format(t[0]))),C(e,"pointerdown",(function(){l(t[7].action?.select)&&t[7].action?.select.apply(this,arguments)}))],$=!0)},p(r,i){t=r,(!p||32&i)&&D(o,"datetime",t[5]),s&&l(s.update)&&257&i&&s.update.call(null,t[8].format(t[0])),(!p||64&i&&c!==(c=t[6].daySide))&&D(a,"class",c),(!p||32&i)&&D(a,"datetime",t[5]),u&&l(u.update)&&513&i&&u.update.call(null,t[9].format(t[0])),(!p||64&i&&d!==(d=t[6].dayHead))&&D(n,"class",d),4&i&&(T=lt(t[2]),tt(),k=st(k,i,E,0,t,T,_,e,ot,vr,null,$r),et()),(!p||89&i&&h!==(h=t[6].day+" "+t[6].weekdays?.[t[0].getUTCDay()]+(t[3]?" "+t[6].today:"")+(t[4]?" "+t[6].highlight:"")))&&D(e,"class",h)},i(t){if(!p){for(let t=0;t<T.length;t+=1)nt(k[t]);p=!0}},o(t){for(let t=0;t<k.length;t+=1)rt(k[t]);p=!1},d(n){n&&y(e);for(let t=0;t<k.length;t+=1)k[t].d();t[24](null),$=!1,r(w)}}}function vr(t,e){let n,r,l;return r=new mr({props:{chunk:e[25]}}),{key:t,first:null,c(){n=_(),it(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};4&n&&(l.chunk=e[25]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function yr(t){let e,n,r=t[2].length&&gr(t);return{c(){r&&r.c(),e=_()},m(t,l){r&&r.m(t,l),v(t,e,l),n=!0},p(t,n){let[l]=n;t[2].length?r?(r.p(t,l),4&l&&nt(r,1)):(r=gr(t),r.c(),nt(r,1),r.m(e.parentNode,e)):r&&(tt(),rt(r,1,1,(()=>{r=null})),et())},i(t){n||(nt(r),n=!0)},o(t){rt(r),n=!1},d(t){t&&y(e),r&&r.d(t)}}}function wr(t,e,n){let r,l,o,s,i,c,u,d,f,h,p,m,$,g,{date:v}=e,{_events:y,_interaction:w,_intlListDay:b,_intlListDaySide:k,_today:x,resources:_,filterEventsWithResources:C,highlightedDates:T,theme:D}=B("state");return a(t,y,(t=>n(23,i=t))),a(t,w,(t=>n(7,u=t))),a(t,b,(t=>n(8,d=t))),a(t,k,(t=>n(9,f=t))),a(t,x,(t=>n(20,l=t))),a(t,_,(t=>n(21,o=t))),a(t,C,(t=>n(22,s=t))),a(t,T,(t=>n(19,r=t))),a(t,D,(t=>n(6,c=t))),t.$$set=t=>{"date"in t&&n(0,v=t.date)},t.$$.update=()=>{if(14680069&t.$$.dirty){n(2,p=[]);let t=v,e=Ct(kt(v));for(let n of i)if(!Se(n.display)&&De(n,t,e,s?o:void 0)){let r=me(n,t,e);p.push(r)}$e(p)}1048577&t.$$.dirty&&n(3,m=Mt(v,l)),524289&t.$$.dirty&&n(4,$=r.some((t=>Mt(t,v)))),1&t.$$.dirty&&n(5,g=St(v,10)),3&t.$$.dirty&&h&&te(h,(()=>({allDay:!0,date:v,resource:void 0,dayEl:h})))},[v,h,p,m,$,g,c,u,d,f,y,w,b,k,x,_,C,T,D,r,l,o,s,i,function(t){P[t?"unshift":"push"]((()=>{h=t,n(1,h)}))}]}let br=class extends dt{constructor(t){super(),ut(this,t,wr,yr,o,{date:0})}};function kr(t,e,n){const r=t.slice();return r[18]=e[n],r}function xr(t){let e,n,r=lt(t[1]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Cr(kr(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=_()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(2&n){let s;for(r=lt(t[1]),s=0;s<r.length;s+=1){const o=kr(t,r,s);l[s]?(l[s].p(o,n),nt(l[s],1)):(l[s]=Cr(o),l[s].c(),nt(l[s],1),l[s].m(e.parentNode,e))}for(tt(),s=r.length;s<l.length;s+=1)o(s);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function _r(e){let n,o,s,i,a;return{c(){n=b("div"),D(n,"class",o=e[3].noEvents)},m(t,r){v(t,n,r),i||(a=[m(s=gt.call(null,n,e[0])),C(n,"click",e[12])],i=!0)},p(t,e){8&e&&o!==(o=t[3].noEvents)&&D(n,"class",o),s&&l(s.update)&&1&e&&s.update.call(null,t[0])},i:t,o:t,d(t){t&&y(n),i=!1,r(a)}}}function Cr(t){let e,n;return e=new br({props:{date:t[18]}}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};2&n&&(r.date=t[18]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Tr(t){let e,n,r,l,o,s,i;const a=[_r,xr],c=[];function u(t,e){return t[2]?0:1}return r=u(t),l=c[r]=a[r](t),{c(){e=b("div"),n=b("div"),l.c(),D(n,"class",o=t[3].content),D(e,"class",s=t[3].body)},m(l,o){v(l,e,o),g(e,n),c[r].m(n,null),t[15](e),i=!0},p(t,d){let[f]=d,h=r;r=u(t),r===h?c[r].p(t,f):(tt(),rt(c[h],1,1,(()=>{c[h]=null})),et(),l=c[r],l?l.p(t,f):(l=c[r]=a[r](t),l.c()),nt(l,1),l.m(n,null)),(!i||8&f&&o!==(o=t[3].content))&&D(n,"class",o),(!i||8&f&&s!==(s=t[3].body))&&D(e,"class",s)},i(t){i||(nt(l),i=!0)},o(t){rt(l),i=!1},d(n){n&&y(e),c[r].d(),t[15](null)}}}function Dr(t,e,n){let r,l,o,s,i,c,u,d,f,{_bodyEl:h,_events:p,_view:m,_viewDates:$,noEventsClick:g,noEventsContent:v,theme:y}=B("state");return a(t,h,(t=>n(4,u=t))),a(t,p,(t=>n(14,s=t))),a(t,m,(t=>n(16,r=t))),a(t,$,(t=>n(1,i=t))),a(t,g,(t=>n(17,l=t))),a(t,v,(t=>n(13,o=t))),a(t,y,(t=>n(3,c=t))),t.$$.update=()=>{if(16386&t.$$.dirty&&(n(2,d=!0),i.length)){let t=i[0],e=Ct(kt(i.at(-1)));for(let r of s)if(!Se(r.display)&&r.start<e&&r.end>t){n(2,d=!1);break}}8193&t.$$.dirty&&(n(0,f=Gt(o)?o():o),"string"==typeof f&&n(0,f={html:f}))},[f,i,d,c,u,h,p,m,$,g,v,y,function(t){Gt(l)&&l({jsEvent:t,view:ae(r)})},o,s,function(t){P[t?"unshift":"push"]((()=>{u=t,h.set(u)}))}]}let Er=class extends dt{constructor(t){super(),ut(this,t,Dr,Tr,o,{})}};function Sr(e){let n,r;return n=new Er({}),{c(){it(n.$$.fragment)},m(t,e){at(n,t,e),r=!0},p:t,i(t){r||(nt(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){ct(n,t)}}}let Mr=class extends dt{constructor(t){super(),ut(this,t,null,Sr,o,{})}};var Ur={createOptions(t){t.buttonText.listDay="list",t.buttonText.listWeek="list",t.buttonText.listMonth="list",t.buttonText.listYear="list",t.listDayFormat={weekday:"long"},t.listDaySideFormat={year:"numeric",month:"long",day:"numeric"},t.noEventsClick=void 0,t.noEventsContent="No events",t.theme.daySide="ec-day-side",t.theme.eventTag="ec-event-tag",t.theme.noEvents="ec-no-events",t.view="listWeek",t.views.listDay={buttonText:Ue,component:Mr,duration:{days:1},theme:Ne("ec-list ec-day-view")},t.views.listWeek={buttonText:Le,component:Mr,duration:{weeks:1},theme:Ne("ec-list ec-week-view")},t.views.listMonth={buttonText:ze,component:Mr,duration:{months:1},theme:Ne("ec-list ec-month-view")},t.views.listYear={buttonText:Re,component:Mr,duration:{years:1},theme:Ne("ec-list ec-year-view")}},createStores(t){t._intlListDay=We(t.locale,t.listDayFormat),t._intlListDaySide=We(t.locale,t.listDaySideFormat)}};const Lr=t=>({}),zr=t=>({});function Rr(t,e,n){const r=t.slice();return r[9]=e[n],r}function Hr(t){let e,n,r,o,s,i;return{c(){e=b("time"),D(e,"class",n=t[1].time),D(e,"datetime",r=t[9][0])},m(n,r){v(n,e,r),s||(i=m(o=gt.call(null,e,t[9][2]?t[9][1]:"")),s=!0)},p(s,i){t=s,2&i&&n!==(n=t[1].time)&&D(e,"class",n),4&i&&r!==(r=t[9][0])&&D(e,"datetime",r),o&&l(o.update)&&4&i&&o.update.call(null,t[9][2]?t[9][1]:"")},d(t){t&&y(e),s=!1,i()}}}function Nr(t){let e,n,r,o,s,i,a,u,p,$,k,_,C,T,E,S=lt(t[2]),M=[];for(let e=0;e<S.length;e+=1)M[e]=Hr(Rr(t,S,e));const U=t[8].lines,L=c(U,t,t[7],zr),z=t[8].default,R=c(z,t,t[7],null);return{c(){e=b("div"),n=b("div"),s=x();for(let t=0;t<M.length;t+=1)M[t].c();a=x(),u=b("div"),p=b("div"),L&&L.c(),k=x(),R&&R.c(),D(n,"class",r=t[1].sidebarTitle),D(e,"class",i=t[1].sidebar),D(p,"class",$=t[1].lines),D(u,"class",_=t[1].days),D(u,"role","row")},m(r,l){v(r,e,l),g(e,n),g(e,s);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(e,null);v(r,a,l),v(r,u,l),g(u,p),L&&L.m(p,null),g(u,k),R&&R.m(u,null),C=!0,T||(E=m(o=gt.call(null,n,t[0])),T=!0)},p(t,s){let[a]=s;if((!C||2&a&&r!==(r=t[1].sidebarTitle))&&D(n,"class",r),o&&l(o.update)&&1&a&&o.update.call(null,t[0]),6&a){let n;for(S=lt(t[2]),n=0;n<S.length;n+=1){const r=Rr(t,S,n);M[n]?M[n].p(r,a):(M[n]=Hr(r),M[n].c(),M[n].m(e,null))}for(;n<M.length;n+=1)M[n].d(1);M.length=S.length}(!C||2&a&&i!==(i=t[1].sidebar))&&D(e,"class",i),L&&L.p&&(!C||128&a)&&f(L,U,t,t[7],C?d(U,t[7],a,Lr):h(t[7]),zr),(!C||2&a&&$!==($=t[1].lines))&&D(p,"class",$),R&&R.p&&(!C||128&a)&&f(R,z,t,t[7],C?d(z,t[7],a,null):h(t[7]),null),(!C||2&a&&_!==(_=t[1].days))&&D(u,"class",_)},i(t){C||(nt(L,t),nt(R,t),C=!0)},o(t){rt(L,t),rt(R,t),C=!1},d(t){t&&(y(e),y(a),y(u)),w(M,t),L&&L.d(t),R&&R.d(t),T=!1,E()}}}function Br(t,e,n){let r,l,o,s,{$$slots:i={},$$scope:c}=e,{allDayContent:u,theme:d,_times:f}=B("state");return a(t,u,(t=>n(6,r=t))),a(t,d,(t=>n(1,l=t))),a(t,f,(t=>n(2,o=t))),t.$$set=t=>{"$$scope"in t&&n(7,c=t.$$scope)},t.$$.update=()=>{64&t.$$.dirty&&n(0,s=function(t){let e,n="all-day";return t?(e=Gt(t)?t({text:n}):t,"string"==typeof e&&(e={html:e})):e={html:n},e}(r))},[s,l,o,u,d,f,r,c,i]}class Fr extends dt{constructor(t){super(),ut(this,t,Br,Nr,o,{})}}function Ar(t,e,n){const r=t.slice();return r[23]=e[n],r}function Pr(t){let e;const n=t[16].default,r=c(n,t,t[18],null);return{c(){r&&r.c()},m(t,n){r&&r.m(t,n),e=!0},p(t,l){r&&r.p&&(!e||262144&l)&&f(r,n,t,t[18],e?d(n,t[18],l,null):h(t[18]),null)},i(t){e||(nt(r,t),e=!0)},o(t){rt(r,t),e=!1},d(t){r&&r.d(t)}}}function jr(t){let e,n;return{c(){e=b("div"),D(e,"class",n=t[3].line)},m(t,n){v(t,e,n)},p(t,r){8&r&&n!==(n=t[3].line)&&D(e,"class",n)},d(t){t&&y(e)}}}function Ir(t){let e,n=lt(t[2]),r=[];for(let e=0;e<n.length;e+=1)r[e]=jr(Ar(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=_()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);v(t,e,n)},p(t,l){if(12&l){let o;for(n=lt(t[2]),o=0;o<n.length;o+=1){const s=Ar(t,n,o);r[o]?r[o].p(s,l):(r[o]=jr(s),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){t&&y(e),w(r,t)}}}function Wr(t){let e,n,r,l,o,s;return r=new Fr({props:{$$slots:{lines:[Ir],default:[Pr]},$$scope:{ctx:t}}}),{c(){e=b("div"),n=b("div"),it(r.$$.fragment),D(n,"class",l=t[3].content),D(e,"class",o=t[3].body+(t[1]?" "+t[3].compact:""))},m(l,o){v(l,e,o),g(e,n),at(r,n,null),t[17](e),s=!0},p(t,i){let[a]=i;const c={};262156&a&&(c.$$scope={dirty:a,ctx:t}),r.$set(c),(!s||8&a&&l!==(l=t[3].content))&&D(n,"class",l),(!s||10&a&&o!==(o=t[3].body+(t[1]?" "+t[3].compact:"")))&&D(e,"class",o)},i(t){s||(nt(r.$$.fragment,t),s=!0)},o(t){rt(r.$$.fragment,t),s=!1},d(n){n&&y(e),ct(r),t[17](null)}}}function Or(t,e,n){let r,l,o,s,i,c,u,d,f,h,{$$slots:m={},$$scope:$}=e,{_bodyEl:g,_viewDates:v,_slotTimeLimits:y,_times:w,scrollTime:b,slotDuration:k,slotHeight:x,theme:_}=B("state");a(t,g,(t=>n(21,u=t))),a(t,v,(t=>n(14,i=t))),a(t,y,(t=>n(20,o=t))),a(t,w,(t=>n(15,c=t))),a(t,b,(t=>n(13,s=t))),a(t,k,(t=>n(12,l=t))),a(t,x,(t=>n(19,r=t))),a(t,_,(t=>n(3,d=t)));let C=[];return t.$$set=t=>{"$$scope"in t&&n(18,$=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty&&p(g,u=f,u),36864&t.$$.dirty&&(n(1,h=l.seconds>=3600),n(2,C.length=c.length,C)),24577&t.$$.dirty&&f&&n(0,f.scrollTop=((s.seconds-o.min.seconds)/l.seconds-.5)*r,f)},[f,h,C,d,g,v,y,w,b,k,x,_,l,s,i,c,m,function(t){P[t?"unshift":"push"]((()=>{f=t,n(0,f)}))},$]}let Gr=class extends dt{constructor(t){super(),ut(this,t,Or,Wr,o,{})}};function qr(t){let e,n,o,s,i,a,c,u,d,f,h,p,$;var w=t[10].resizer;function k(t,e){return{props:{start:!0,event:t[0]}}}w&&(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[33](t[10],["y","start"]))&&t[33](t[10],["y","start"]).apply(this,arguments)})));var _=t[10].resizer;function T(t,e){return{props:{event:t[0]}}}return _&&(u=M(_,T(t)),u.$on("pointerdown",(function(){l(t[33](t[10],["y","end"]))&&t[33](t[10],["y","end"]).apply(this,arguments)}))),{c(){e=b("article"),n&&it(n.$$.fragment),o=x(),s=b("div"),c=x(),u&&it(u.$$.fragment),D(s,"class",i=t[2].eventBody),D(e,"class",t[4]),D(e,"style",t[5]),D(e,"role",d=t[7]?"button":void 0),D(e,"tabindex",f=t[7]?0:void 0)},m(r,i){v(r,e,i),n&&at(n,e,null),g(e,o),g(e,s),g(e,c),u&&at(u,e,null),t[51](e),h=!0,p||($=[m(a=gt.call(null,s,t[6])),C(e,"click",(function(){l(t[7])&&t[7].apply(this,arguments)})),C(e,"keydown",(function(){l(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),C(e,"mouseenter",(function(){l(t[32](t[8],t[1]))&&t[32](t[8],t[1]).apply(this,arguments)})),C(e,"mouseleave",(function(){l(t[32](t[9],t[1]))&&t[32](t[9],t[1]).apply(this,arguments)})),C(e,"pointerdown",(function(){l(!Se(t[1])&&!Ee(t[1])&&t[33](t[10]))&&(!Se(t[1])&&!Ee(t[1])&&t[33](t[10])).apply(this,arguments)}))],p=!0)},p(r,c){if(t=r,1024&c[0]&&w!==(w=t[10].resizer)){if(n){tt();const t=n;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}w?(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[33](t[10],["y","start"]))&&t[33](t[10],["y","start"]).apply(this,arguments)})),it(n.$$.fragment),nt(n.$$.fragment,1),at(n,e,o)):n=null}else if(w){const e={};1&c[0]&&(e.event=t[0]),n.$set(e)}if((!h||4&c[0]&&i!==(i=t[2].eventBody))&&D(s,"class",i),a&&l(a.update)&&64&c[0]&&a.update.call(null,t[6]),1024&c[0]&&_!==(_=t[10].resizer)){if(u){tt();const t=u;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}_?(u=M(_,T(t)),u.$on("pointerdown",(function(){l(t[33](t[10],["y","end"]))&&t[33](t[10],["y","end"]).apply(this,arguments)})),it(u.$$.fragment),nt(u.$$.fragment,1),at(u,e,null)):u=null}else if(_){const e={};1&c[0]&&(e.event=t[0]),u.$set(e)}(!h||16&c[0])&&D(e,"class",t[4]),(!h||32&c[0])&&D(e,"style",t[5]),(!h||128&c[0]&&d!==(d=t[7]?"button":void 0))&&D(e,"role",d),(!h||128&c[0]&&f!==(f=t[7]?0:void 0))&&D(e,"tabindex",f)},i(t){h||(n&&nt(n.$$.fragment,t),u&&nt(u.$$.fragment,t),h=!0)},o(t){n&&rt(n.$$.fragment,t),u&&rt(u.$$.fragment,t),h=!1},d(l){l&&y(e),n&&ct(n),u&&ct(u),t[51](null),p=!1,r($)}}}function Yr(t,e,n){let r,l,o,s,i,c,u,d,f,h,p,m,$,g,v,y,w,b,k,x,_,C,T,D,E,S,M,U,L,{date:z}=e,{chunk:N}=e,{displayEventEnd:F,eventAllUpdated:A,eventBackgroundColor:j,eventTextColor:I,eventColor:W,eventContent:O,eventClick:G,eventDidMount:q,eventClassNames:Y,eventMouseEnter:X,eventMouseLeave:V,slotEventOverlap:J,slotDuration:K,slotHeight:Q,resources:Z,theme:tt,_view:et,_intlEventTime:nt,_interaction:rt,_iClasses:lt,_slotTimeLimits:ot,_tasks:st}=B("state");function it(t,e){return!Ee(e)&&Gt(t)?e=>t({event:be(T),el:C,jsEvent:e,view:ae(o)}):void 0}return a(t,F,(t=>n(41,f=t))),a(t,A,(t=>n(53,s=t))),a(t,j,(t=>n(48,y=t))),a(t,I,(t=>n(45,$=t))),a(t,W,(t=>n(47,v=t))),a(t,O,(t=>n(40,d=t))),a(t,G,(t=>n(36,r=t))),a(t,q,(t=>n(54,i=t))),a(t,Y,(t=>n(42,h=t))),a(t,X,(t=>n(8,k=t))),a(t,V,(t=>n(9,x=t))),a(t,J,(t=>n(44,m=t))),a(t,K,(t=>n(37,l=t))),a(t,Q,(t=>n(49,w=t))),a(t,Z,(t=>n(46,g=t))),a(t,tt,(t=>n(2,u=t))),a(t,et,(t=>n(38,o=t))),a(t,nt,(t=>n(39,c=t))),a(t,rt,(t=>n(10,_=t))),a(t,lt,(t=>n(43,p=t))),a(t,ot,(t=>n(50,b=t))),R((()=>{Gt(i)&&i({event:be(T),timeText:U,el:C,view:ae(o)})})),H((()=>{Gt(s)&&!Ee(D)&&Qt((()=>s({view:ae(o)})),"eau",st)})),t.$$set=t=>{"date"in t&&n(34,z=t.date),"chunk"in t&&n(35,N=t.chunk)},t.$$.update=()=>{if(16&t.$$.dirty[1]&&n(0,T=N.event),39&t.$$.dirty[0]|1046744&t.$$.dirty[1]){n(1,D=T.display);let t=l.seconds,e=b.min.seconds,r=(N.start-z)/1e3,s=(N.end-z)/1e3,i=(r-e)/t*w,a=(s-r)/t*w,c=(b.max.seconds-r)/t*w,d=T.backgroundColor||Pe(T,g)||y||v,f=T.textColor||je(T,g)||$;n(5,S=`top:${i}px;min-height:${a}px;height:${a}px;max-height:${c}px;`),d&&n(5,S+=`background-color:${d};`),f&&n(5,S+=`color:${f};`),(!Se(D)&&!Ee(D)||Me(D))&&n(5,S+=`z-index:${N.column+1};left:${100/N.group.columns.length*N.column}%;width:${100/N.group.columns.length*(m?.5*(1+N.group.columns.length-N.column):1)}%;`),n(5,S+=T.styles.join(";")),n(4,E=[Se(D)?u.bgEvent:u.event,...p([],T),...we(h,T,o)].join(" "))}4&t.$$.dirty[0]|1936&t.$$.dirty[1]&&n(6,[U,M]=ge(N,f,d,u,c,o),M),2&t.$$.dirty[0]|32&t.$$.dirty[1]&&n(7,L=!Se(D)&&it(r,D))},[T,D,u,C,E,S,M,L,k,x,_,F,A,j,I,W,O,G,q,Y,X,V,J,K,Q,Z,tt,et,nt,rt,lt,ot,it,function(t,e){return t.action?n=>t.action.drag(T,n,e,e&&N.zeroDuration?_t(kt(T.end),l):void 0):void 0},z,N,r,l,o,c,d,f,h,p,m,$,g,v,y,w,b,function(t){P[t?"unshift":"push"]((()=>{C=t,n(3,C)}))}]}let Xr=class extends dt{constructor(t){super(),ut(this,t,Yr,qr,o,{date:34,chunk:35},null,[-1,-1])}};function Vr(e){let n,r;return{c(){n=b("div"),D(n,"class",r=e[1].nowIndicator),S(n,"top",e[0]+"px")},m(t,e){v(t,n,e)},p(t,e){let[l]=e;2&l&&r!==(r=t[1].nowIndicator)&&D(n,"class",r),1&l&&S(n,"top",t[0]+"px")},i:t,o:t,d(t){t&&y(n)}}}function Jr(t,e,n){let r,l,o,s,i,c,u,{slotDuration:d,slotHeight:f,theme:h,_now:p,_today:m,_slotTimeLimits:$}=B("state");a(t,d,(t=>n(11,o=t))),a(t,f,(t=>n(9,r=t))),a(t,h,(t=>n(1,c=t))),a(t,p,(t=>n(13,i=t))),a(t,m,(t=>n(12,s=t))),a(t,$,(t=>n(10,l=t)));let g=0;return t.$$.update=()=>{if(12288&t.$$.dirty&&n(8,u=(i-s)/1e3/60),3840&t.$$.dirty){let t=o.seconds/60,e=l.min.seconds/60;n(0,g=(u-e)/t*r)}},[g,c,d,f,h,p,m,$,u,r,l,o,s,i]}class Kr extends dt{constructor(t){super(),ut(this,t,Jr,Vr,o,{})}}function Qr(t,e,n){const r=t.slice();return r[37]=e[n],r}function Zr(t,e,n){const r=t.slice();return r[37]=e[n],r}function tl(t,e){let n,r,l;return r=new Xr({props:{date:e[0],chunk:e[37]}}),{key:t,first:null,c(){n=_(),it(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};1&n[0]&&(l.date=e[0]),8&n[0]&&(l.chunk=e[37]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function el(t){let e,n;return e=new Xr({props:{date:t[0],chunk:t[4][1]}}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.date=t[0]),16&n[0]&&(r.chunk=t[4][1]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function nl(t,e){let n,r,l;return r=new Xr({props:{date:e[0],chunk:e[37]}}),{key:t,first:null,c(){n=_(),it(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};1&n[0]&&(l.date=e[0]),4&n[0]&&(l.chunk=e[37]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function rl(t){let e,n;return e=new Xr({props:{date:t[0],chunk:t[4][0]}}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.date=t[0]),16&n[0]&&(r.chunk=t[4][0]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function ll(t){let e,n;return e=new Kr({}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function ol(t){let e,n,o,s,i,a,c,u,d,f,h,p,m,$,w,k=[],_=new Map,T=[],E=new Map,S=lt(t[3]);const M=t=>t[37].event;for(let e=0;e<S.length;e+=1){let n=Zr(t,S,e),r=M(n);_.set(r,k[e]=tl(r,n))}let U=t[4][1]&&el(t),L=lt(t[2]);const z=t=>t[37].event;for(let e=0;e<L.length;e+=1){let n=Qr(t,L,e),r=z(n);E.set(r,T[e]=nl(r,n))}let R=t[4][0]&&!t[4][0].event.allDay&&rl(t),H=t[9]&&t[5]&&ll();return{c(){e=b("div"),n=b("div");for(let t=0;t<k.length;t+=1)k[t].c();s=x(),i=b("div"),U&&U.c(),a=x();for(let t=0;t<T.length;t+=1)T[t].c();c=x(),R&&R.c(),d=x(),f=b("div"),H&&H.c(),D(n,"class",o=t[7].bgEvents),D(i,"class",u=t[7].events),D(f,"class",h=t[7].extra),D(e,"class",p=t[7].day+" "+t[7].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[7].today:"")+(t[6]?" "+t[7].highlight:"")),D(e,"role","cell")},m(r,o){v(r,e,o),g(e,n);for(let t=0;t<k.length;t+=1)k[t]&&k[t].m(n,null);g(e,s),g(e,i),U&&U.m(i,null),g(i,a);for(let t=0;t<T.length;t+=1)T[t]&&T[t].m(i,null);g(i,c),R&&R.m(i,null),g(e,d),g(e,f),H&&H.m(f,null),t[34](e),m=!0,$||(w=[C(e,"pointerleave",(function(){l(t[8].pointer?.leave)&&t[8].pointer?.leave.apply(this,arguments)})),C(e,"pointerdown",(function(){l(t[8].action?.select)&&t[8].action?.select.apply(this,arguments)}))],$=!0)},p(r,l){t=r,9&l[0]&&(S=lt(t[3]),tt(),k=st(k,l,M,0,t,S,_,n,ot,tl,null,Zr),et()),(!m||128&l[0]&&o!==(o=t[7].bgEvents))&&D(n,"class",o),t[4][1]?U?(U.p(t,l),16&l[0]&&nt(U,1)):(U=el(t),U.c(),nt(U,1),U.m(i,a)):U&&(tt(),rt(U,1,1,(()=>{U=null})),et()),5&l[0]&&(L=lt(t[2]),tt(),T=st(T,l,z,0,t,L,E,i,ot,nl,c,Qr),et()),t[4][0]&&!t[4][0].event.allDay?R?(R.p(t,l),16&l[0]&&nt(R,1)):(R=rl(t),R.c(),nt(R,1),R.m(i,null)):R&&(tt(),rt(R,1,1,(()=>{R=null})),et()),(!m||128&l[0]&&u!==(u=t[7].events))&&D(i,"class",u),t[9]&&t[5]?H?544&l[0]&&nt(H,1):(H=ll(),H.c(),nt(H,1),H.m(f,null)):H&&(tt(),rt(H,1,1,(()=>{H=null})),et()),(!m||128&l[0]&&h!==(h=t[7].extra))&&D(f,"class",h),(!m||225&l[0]&&p!==(p=t[7].day+" "+t[7].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[7].today:"")+(t[6]?" "+t[7].highlight:"")))&&D(e,"class",p)},i(t){if(!m){for(let t=0;t<S.length;t+=1)nt(k[t]);nt(U);for(let t=0;t<L.length;t+=1)nt(T[t]);nt(R),nt(H),m=!0}},o(t){for(let t=0;t<k.length;t+=1)rt(k[t]);rt(U);for(let t=0;t<T.length;t+=1)rt(T[t]);rt(R),rt(H),m=!1},d(n){n&&y(e);for(let t=0;t<k.length;t+=1)k[t].d();U&&U.d();for(let t=0;t<T.length;t+=1)T[t].d();R&&R.d(),H&&H.d(),t[34](null),$=!1,r(w)}}}function sl(t,e,n){let r,l,o,s,i,c,u,d,f,h,p,m,$,{date:g}=e,{resource:v}=e,{_events:y,_iEvents:w,highlightedDates:b,nowIndicator:k,slotDuration:x,slotHeight:_,filterEventsWithResources:C,theme:T,resources:D,_interaction:E,_today:S,_slotTimeLimits:M}=B("state");a(t,y,(t=>n(31,u=t))),a(t,w,(t=>n(30,c=t))),a(t,b,(t=>n(28,s=t))),a(t,k,(t=>n(9,m=t))),a(t,x,(t=>n(26,l=t))),a(t,_,(t=>n(35,r=t))),a(t,C,(t=>n(33,f=t))),a(t,T,(t=>n(7,h=t))),a(t,D,(t=>n(32,d=t))),a(t,E,(t=>n(8,p=t))),a(t,S,(t=>n(29,i=t))),a(t,M,(t=>n(27,o=t)));let U,L,z,R,H,N,F,A=[];function j(t,e){return e=Pt(e)-Pt(re($).top),{allDay:!1,date:xt(xt(kt(g),o.min),l,Pt(e/r)),resource:v,dayEl:$}}return t.$$set=t=>{"date"in t&&n(0,g=t.date),"resource"in t&&n(22,v=t.resource)},t.$$.update=()=>{if(134217729&t.$$.dirty[0]&&(n(24,N=xt(kt(g),o.min)),n(25,F=xt(kt(g),o.max))),4194304&t.$$.dirty[0]|6&t.$$.dirty[1]&&n(23,H=v??(f?d:void 0)),125829132&t.$$.dirty[0]|1&t.$$.dirty[1]){n(2,U=[]),n(3,L=[]);for(let t of u)if((!t.allDay||Se(t.display))&&De(t,N,F,H)){let e=me(t,N,F);if(ve(e,l),"background"===t.display)L.push(e);else U.push(e)}!function(t){if(!t.length)return;$e(t);let e={columns:[],end:t[0].end};for(let n of t){let t=0;if(n.start<e.end){for(;t<e.columns.length&&!(e.columns[t].at(-1).end<=n.start);++t);n.end>e.end&&(e.end=n.end)}else e={columns:[],end:n.end};e.columns.length<t+1&&e.columns.push([]),e.columns[t].push(n),n.group=e,n.column=t}}(U)}1128267776&t.$$.dirty[0]&&n(4,A=c.map((t=>t&&De(t,N,F,v)?me(t,N,F):null))),536870913&t.$$.dirty[0]&&n(5,z=Mt(g,i)),268435457&t.$$.dirty[0]&&n(6,R=s.some((t=>Mt(t,g)))),2&t.$$.dirty[0]&&$&&te($,j)},[g,$,U,L,A,z,R,h,p,m,y,w,b,k,x,_,C,T,D,E,S,M,v,H,N,F,l,o,s,i,c,u,d,f,function(t){P[t?"unshift":"push"]((()=>{$=t,n(1,$)}))}]}let il=class extends dt{constructor(t){super(),ut(this,t,sl,ol,o,{date:0,resource:22},null,[-1,-1])}};function al(t){let e,n,o,s,i,a,c,u,d,f,h,p,$;var w=t[10].resizer;function k(t,e){return{props:{start:!0,event:t[0]}}}w&&(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[29](t[10],["x","start"]))&&t[29](t[10],["x","start"]).apply(this,arguments)})));var _=t[10].resizer;function T(t,e){return{props:{event:t[0]}}}return _&&(u=M(_,T(t)),u.$on("pointerdown",(function(){l(t[29](t[10],["x","end"]))&&t[29](t[10],["x","end"]).apply(this,arguments)}))),{c(){e=b("article"),n&&it(n.$$.fragment),o=x(),s=b("div"),c=x(),u&&it(u.$$.fragment),D(s,"class",i=t[2].eventBody),D(e,"class",t[4]),D(e,"style",t[5]),D(e,"role",d=t[7]?"button":void 0),D(e,"tabindex",f=t[7]?0:void 0)},m(r,i){v(r,e,i),n&&at(n,e,null),g(e,o),g(e,s),g(e,c),u&&at(u,e,null),t[45](e),h=!0,p||($=[m(a=gt.call(null,s,t[6])),C(e,"click",(function(){l(t[7])&&t[7].apply(this,arguments)})),C(e,"keydown",(function(){l(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),C(e,"mouseenter",(function(){l(t[28](t[8],t[1]))&&t[28](t[8],t[1]).apply(this,arguments)})),C(e,"mouseleave",(function(){l(t[28](t[9],t[1]))&&t[28](t[9],t[1]).apply(this,arguments)})),C(e,"pointerdown",(function(){l(!Ee(t[1])&&t[29](t[10]))&&(!Ee(t[1])&&t[29](t[10])).apply(this,arguments)}))],p=!0)},p(r,c){if(t=r,1024&c[0]&&w!==(w=t[10].resizer)){if(n){tt();const t=n;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}w?(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[29](t[10],["x","start"]))&&t[29](t[10],["x","start"]).apply(this,arguments)})),it(n.$$.fragment),nt(n.$$.fragment,1),at(n,e,o)):n=null}else if(w){const e={};1&c[0]&&(e.event=t[0]),n.$set(e)}if((!h||4&c[0]&&i!==(i=t[2].eventBody))&&D(s,"class",i),a&&l(a.update)&&64&c[0]&&a.update.call(null,t[6]),1024&c[0]&&_!==(_=t[10].resizer)){if(u){tt();const t=u;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}_?(u=M(_,T(t)),u.$on("pointerdown",(function(){l(t[29](t[10],["x","end"]))&&t[29](t[10],["x","end"]).apply(this,arguments)})),it(u.$$.fragment),nt(u.$$.fragment,1),at(u,e,null)):u=null}else if(_){const e={};1&c[0]&&(e.event=t[0]),u.$set(e)}(!h||16&c[0])&&D(e,"class",t[4]),(!h||32&c[0])&&D(e,"style",t[5]),(!h||128&c[0]&&d!==(d=t[7]?"button":void 0))&&D(e,"role",d),(!h||128&c[0]&&f!==(f=t[7]?0:void 0))&&D(e,"tabindex",f)},i(t){h||(n&&nt(n.$$.fragment,t),u&&nt(u.$$.fragment,t),h=!0)},o(t){n&&rt(n.$$.fragment,t),u&&rt(u.$$.fragment,t),h=!1},d(l){l&&y(e),n&&ct(n),u&&ct(u),t[45](null),p=!1,r($)}}}function cl(t,e,n){let r,l,o,s,i,c,u,d,f,h,p,m,$,g,v,y,w,b,k,x,_,C,T,{chunk:D}=e,{longChunks:E={}}=e,{displayEventEnd:S,eventAllUpdated:M,eventBackgroundColor:U,eventTextColor:L,eventClick:z,eventColor:N,eventContent:F,eventClassNames:A,eventDidMount:j,eventMouseEnter:I,eventMouseLeave:W,resources:O,theme:G,_view:q,_intlEventTime:Y,_interaction:X,_iClasses:V,_tasks:J}=B("state");a(t,S,(t=>n(38,d=t))),a(t,M,(t=>n(47,o=t))),a(t,U,(t=>n(44,g=t))),a(t,L,(t=>n(41,p=t))),a(t,z,(t=>n(34,r=t))),a(t,N,(t=>n(43,$=t))),a(t,F,(t=>n(37,u=t))),a(t,A,(t=>n(39,f=t))),a(t,j,(t=>n(48,s=t))),a(t,I,(t=>n(8,v=t))),a(t,W,(t=>n(9,y=t))),a(t,O,(t=>n(42,m=t))),a(t,G,(t=>n(2,c=t))),a(t,q,(t=>n(35,l=t))),a(t,Y,(t=>n(36,i=t))),a(t,X,(t=>n(10,w=t))),a(t,V,(t=>n(40,h=t)));let K,Q,Z=1;function tt(t,e){return!Ee(e)&&Gt(t)?e=>t({event:be(k),el:b,jsEvent:e,view:ae(l)}):void 0}return R((()=>{Gt(s)&&s({event:be(k),timeText:T,el:b,view:ae(l)})})),H((()=>{Gt(o)&&!Ee(K)&&Qt((()=>o({view:ae(l)})),"eau",J)})),t.$$set=t=>{"chunk"in t&&n(30,D=t.chunk),"longChunks"in t&&n(31,E=t.longChunks)},t.$$.update=()=>{if(1073741824&t.$$.dirty[0]&&n(0,k=D.event),1073741863&t.$$.dirty[0]|16148&t.$$.dirty[1]){n(1,K=k.display);let t=k.backgroundColor||Pe(k,m)||g||$,e=k.textColor||je(k,m)||p;Se(K)?n(5,_=`width:calc(${100*D.days}% + ${D.days-1}px);`):n(5,_=`width:calc(${100*D.days}% + ${7*(D.days-1)}px);margin-top:${k._margin??Z}px;`),t&&n(5,_+=`background-color:${t};`),e&&n(5,_+=`color:${e};`),n(5,_+=k.styles.join(";")),n(4,x=[Se(K)?c.bgEvent:c.event,...h([],k),...we(f,k,l)].join(" "))}1073741828&t.$$.dirty[0]|240&t.$$.dirty[1]&&n(6,[T,C]=ge(D,d,u,c,i,l),C),2&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(7,Q=tt(r,K))},[k,K,c,b,x,_,C,Q,v,y,w,S,M,U,L,z,N,F,A,j,I,W,O,G,q,Y,X,V,tt,function(t,e){return t.action?n=>t.action.drag(k,n,e,null,re(b).top-re(le(b,1)).top):void 0},D,E,function(){b&&n(33,Z=Ce(D,E,oe(b)))},Z,r,l,i,u,d,f,h,p,m,$,g,function(t){P[t?"unshift":"push"]((()=>{b=t,n(3,b)}))}]}let ul=class extends dt{constructor(t){super(),ut(this,t,cl,al,o,{chunk:30,longChunks:31,reposition:32},null,[-1,-1])}get reposition(){return this.$$.ctx[32]}};function dl(t,e,n){const r=t.slice();return r[23]=e[n],r[24]=e,r[25]=n,r}function fl(t,e,n){const r=t.slice();return r[23]=e[n],r}function hl(t,e){let n,r,l;return r=new ul({props:{chunk:e[23]}}),{key:t,first:null,c(){n=_(),it(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};32&n&&(l.chunk=e[23]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function pl(t){let e,n,r,l;return n=new ul({props:{chunk:t[2][0]}}),{c(){e=b("div"),it(n.$$.fragment),D(e,"class",r=t[9].events+" "+t[9].preview)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(t,o){const s={};4&o&&(s.chunk=t[2][0]),n.$set(s),(!l||512&o&&r!==(r=t[9].events+" "+t[9].preview))&&D(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function ml(t,e){let n,r,l,o=e[25];const s=()=>e[21](r,o),i=()=>e[21](null,o);let a={chunk:e[23],longChunks:e[1]};return r=new ul({props:a}),s(),{key:t,first:null,c(){n=_(),it(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){o!==(e=t)[25]&&(i(),o=e[25],s());const l={};16&n&&(l.chunk=e[23]),2&n&&(l.longChunks=e[1]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),i(),ct(r,t)}}}function $l(t){let e,n,o,s,i,a,c,u,d,f,h,p=[],m=new Map,$=t[2][0]&&Mt(t[2][0].date,t[0]),w=[],k=new Map,_=lt(t[5]);const T=t=>t[23].event;for(let e=0;e<_.length;e+=1){let n=fl(t,_,e),r=T(n);m.set(r,p[e]=hl(r,n))}let E=$&&pl(t),S=lt(t[4]);const M=t=>t[23].event;for(let e=0;e<S.length;e+=1){let n=dl(t,S,e),r=M(n);k.set(r,w[e]=ml(r,n))}return{c(){e=b("div"),n=b("div");for(let t=0;t<p.length;t+=1)p[t].c();s=x(),E&&E.c(),i=x(),a=b("div");for(let t=0;t<w.length;t+=1)w[t].c();D(n,"class",o=t[9].bgEvents),D(a,"class",c=t[9].events),D(e,"class",u=t[9].day+" "+t[9].weekdays?.[t[0].getUTCDay()]+(t[6]?" "+t[9].today:"")+(t[7]?" "+t[9].highlight:"")),D(e,"role","cell")},m(r,o){v(r,e,o),g(e,n);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(n,null);g(e,s),E&&E.m(e,null),g(e,i),g(e,a);for(let t=0;t<w.length;t+=1)w[t]&&w[t].m(a,null);t[22](e),d=!0,f||(h=[C(e,"pointerleave",(function(){l(t[10].pointer?.leave)&&t[10].pointer?.leave.apply(this,arguments)})),C(e,"pointerdown",(function(){l(t[10].action?.select)&&t[10].action?.select.apply(this,arguments)}))],f=!0)},p(r,l){let[s]=l;t=r,32&s&&(_=lt(t[5]),tt(),p=st(p,s,T,0,t,_,m,n,ot,hl,null,fl),et()),(!d||512&s&&o!==(o=t[9].bgEvents))&&D(n,"class",o),5&s&&($=t[2][0]&&Mt(t[2][0].date,t[0])),$?E?(E.p(t,s),5&s&&nt(E,1)):(E=pl(t),E.c(),nt(E,1),E.m(e,i)):E&&(tt(),rt(E,1,1,(()=>{E=null})),et()),274&s&&(S=lt(t[4]),tt(),w=st(w,s,M,0,t,S,k,a,ot,ml,null,dl),et()),(!d||512&s&&c!==(c=t[9].events))&&D(a,"class",c),(!d||705&s&&u!==(u=t[9].day+" "+t[9].weekdays?.[t[0].getUTCDay()]+(t[6]?" "+t[9].today:"")+(t[7]?" "+t[9].highlight:"")))&&D(e,"class",u)},i(t){if(!d){for(let t=0;t<_.length;t+=1)nt(p[t]);nt(E);for(let t=0;t<S.length;t+=1)nt(w[t]);d=!0}},o(t){for(let t=0;t<p.length;t+=1)rt(p[t]);rt(E);for(let t=0;t<w.length;t+=1)rt(w[t]);d=!1},d(n){n&&y(e);for(let t=0;t<p.length;t+=1)p[t].d();E&&E.d();for(let t=0;t<w.length;t+=1)w[t].d();t[22](null),f=!1,r(h)}}}function gl(t,e,n){let r,l,o,s,i,c,u,d,f,{date:h}=e,{chunks:p}=e,{bgChunks:m}=e,{longChunks:$}=e,{iChunks:g=[]}=e,{resource:v}=e,{highlightedDates:y,theme:w,_interaction:b,_today:k}=B("state");a(t,y,(t=>n(19,r=t))),a(t,w,(t=>n(9,o=t))),a(t,b,(t=>n(10,s=t))),a(t,k,(t=>n(20,l=t)));let x=[];return t.$$set=t=>{"date"in t&&n(0,h=t.date),"chunks"in t&&n(15,p=t.chunks),"bgChunks"in t&&n(16,m=t.bgChunks),"longChunks"in t&&n(1,$=t.longChunks),"iChunks"in t&&n(2,g=t.iChunks),"resource"in t&&n(17,v=t.resource)},t.$$.update=()=>{32769&t.$$.dirty&&n(4,c=p.filter((t=>Mt(t.date,h)))),65537&t.$$.dirty&&n(5,u=m.filter((t=>Mt(t.date,h)))),1048577&t.$$.dirty&&n(6,d=Mt(h,l)),524289&t.$$.dirty&&n(7,f=r.some((t=>Mt(t,h)))),131081&t.$$.dirty&&i&&te(i,(()=>({allDay:!0,date:h,resource:v,dayEl:i})))},[h,$,g,i,c,u,d,f,x,o,s,y,w,b,k,p,m,v,function(){Te(x,c)},r,l,function(t,e){P[t?"unshift":"push"]((()=>{x[e]=t,n(8,x)}))},function(t){P[t?"unshift":"push"]((()=>{i=t,n(3,i)}))}]}let vl=class extends dt{constructor(t){super(),ut(this,t,gl,$l,o,{date:0,chunks:15,bgChunks:16,longChunks:1,iChunks:2,resource:17,reposition:18})}get reposition(){return this.$$.ctx[18]}};function yl(t,e,n){const r=t.slice();return r[24]=e[n],r[25]=e,r[26]=n,r}function wl(t){let e,n,r=t[26];const l=()=>t[21](e,r),o=()=>t[21](null,r);let s={date:t[24],chunks:t[2],bgChunks:t[3],longChunks:t[4],iChunks:t[5],resource:t[1]};return e=new vl({props:s}),l(),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){r!==t[26]&&(o(),r=t[26],l());const s={};1&n&&(s.date=t[24]),4&n&&(s.chunks=t[2]),8&n&&(s.bgChunks=t[3]),16&n&&(s.longChunks=t[4]),32&n&&(s.iChunks=t[5]),2&n&&(s.resource=t[1]),e.$set(s)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ct(e,t)}}}function bl(t){let e,n,r,l,o=lt(t[0]),s=[];for(let e=0;e<o.length;e+=1)s[e]=wl(yl(t,o,e));const i=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=_()},m(o,i){for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(o,i);v(o,e,i),n=!0,r||(l=C(window,"resize",t[12]),r=!0)},p(t,n){let[r]=n;if(127&r){let n;for(o=lt(t[0]),n=0;n<o.length;n+=1){const l=yl(t,o,n);s[n]?(s[n].p(l,r),nt(s[n],1)):(s[n]=wl(l),s[n].c(),nt(s[n],1),s[n].m(e.parentNode,e))}for(tt(),n=o.length;n<s.length;n+=1)i(n);et()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)nt(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)rt(s[t]);n=!1},d(t){t&&y(e),w(s,t),r=!1,l()}}}function kl(t,e,n){let r,l,o,s,i,{dates:c}=e,{resource:u}=e,{_events:d,_iEvents:f,_queue2:h,hiddenDays:p,resources:m,filterEventsWithResources:$}=B("state");a(t,d,(t=>n(18,o=t))),a(t,f,(t=>n(17,l=t))),a(t,p,(t=>n(16,r=t))),a(t,m,(t=>n(19,s=t))),a(t,$,(t=>n(20,i=t)));let g,v,y,w,b,k,x=[],_=[],C={};function T(){Jt((()=>Te(_,c)),C,h)}return t.$$set=t=>{"dates"in t&&n(0,c=t.dates),"resource"in t&&n(1,u=t.resource)},t.$$.update=()=>{if(1&t.$$.dirty&&(n(13,w=c[0]),n(14,b=Ct(kt(c.at(-1))))),1572866&t.$$.dirty&&n(15,k=u??(i?s:void 0)),385036&t.$$.dirty){n(2,g=[]),n(3,v=[]);for(let t of o)if(t.allDay&&De(t,w,b,k)){let e=me(t,w,b);Se(t.display)?v.push(e):g.push(e)}_e(v,r),n(4,y=_e(g,r)),T()}221186&t.$$.dirty&&n(5,x=l.map((t=>{let e;return t&&t.allDay&&De(t,w,b,u)?(e=me(t,w,b),_e([e],r)):e=null,e})))},[c,u,g,v,y,x,_,d,f,p,m,$,T,w,b,k,r,l,o,s,i,function(t,e){P[t?"unshift":"push"]((()=>{_[e]=t,n(6,_)}))}]}class xl extends dt{constructor(t){super(),ut(this,t,kl,bl,o,{dates:0,resource:1})}}function _l(t,e,n){const r=t.slice();return r[10]=e[n],r}function Cl(t,e,n){const r=t.slice();return r[10]=e[n],r}function Tl(t){let e,n,r,o,s,i,a,c,u;return{c(){e=b("div"),n=b("time"),i=x(),D(n,"datetime",r=St(t[10],10)),D(n,"aria-label",o=t[2].format(t[10])),D(e,"class",a=t[0].day+" "+t[0].weekdays?.[t[10].getUTCDay()]),D(e,"role","columnheader")},m(r,l){v(r,e,l),g(e,n),g(e,i),c||(u=m(s=gt.call(null,n,t[3].format(t[10]))),c=!0)},p(i,c){t=i,2&c&&r!==(r=St(t[10],10))&&D(n,"datetime",r),6&c&&o!==(o=t[2].format(t[10]))&&D(n,"aria-label",o),s&&l(s.update)&&10&c&&s.update.call(null,t[3].format(t[10])),3&c&&a!==(a=t[0].day+" "+t[0].weekdays?.[t[10].getUTCDay()])&&D(e,"class",a)},d(t){t&&y(e),c=!1,u()}}}function Dl(t){let e,n=lt(t[1]),r=[];for(let e=0;e<n.length;e+=1)r[e]=Tl(Cl(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=_()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);v(t,e,n)},p(t,l){if(15&l){let o;for(n=lt(t[1]),o=0;o<n.length;o+=1){const s=Cl(t,n,o);r[o]?r[o].p(s,l):(r[o]=Tl(s),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){t&&y(e),w(r,t)}}}function El(t){let e,n,r,l,o,s,i,a,c;return r=new Fr({props:{$$slots:{default:[Sl]},$$scope:{ctx:t}}}),{c(){e=b("div"),n=b("div"),it(r.$$.fragment),l=x(),o=b("div"),D(o,"class",s=t[0].hiddenScroll),D(n,"class",i=t[0].content),D(e,"class",a=t[0].allDay)},m(t,s){v(t,e,s),g(e,n),at(r,n,null),g(n,l),g(n,o),c=!0},p(t,l){const u={};32770&l&&(u.$$scope={dirty:l,ctx:t}),r.$set(u),(!c||1&l&&s!==(s=t[0].hiddenScroll))&&D(o,"class",s),(!c||1&l&&i!==(i=t[0].content))&&D(n,"class",i),(!c||1&l&&a!==(a=t[0].allDay))&&D(e,"class",a)},i(t){c||(nt(r.$$.fragment,t),c=!0)},o(t){rt(r.$$.fragment,t),c=!1},d(t){t&&y(e),ct(r)}}}function Sl(t){let e,n;return e=new xl({props:{dates:t[1]}}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};2&n&&(r.dates=t[1]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Ml(t){let e,n;return e=new il({props:{date:t[10]}}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};2&n&&(r.date=t[10]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Ul(t){let e,n,r=lt(t[1]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Ml(_l(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=_()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(2&n){let s;for(r=lt(t[1]),s=0;s<r.length;s+=1){const o=_l(t,r,s);l[s]?(l[s].p(o,n),nt(l[s],1)):(l[s]=Ml(o),l[s].c(),nt(l[s],1),l[s].m(e.parentNode,e))}for(tt(),s=r.length;s<l.length;s+=1)o(s);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function Ll(t){let e,n,r,l,o,s,i,a,c,u;n=new Fr({props:{$$slots:{default:[Dl]},$$scope:{ctx:t}}});let d=t[4]&&El(t);return c=new Gr({props:{$$slots:{default:[Ul]},$$scope:{ctx:t}}}),{c(){e=b("div"),it(n.$$.fragment),r=x(),l=b("div"),i=x(),d&&d.c(),a=x(),it(c.$$.fragment),D(l,"class",o=t[0].hiddenScroll),D(e,"class",s=t[0].header)},m(t,o){v(t,e,o),at(n,e,null),g(e,r),g(e,l),v(t,i,o),d&&d.m(t,o),v(t,a,o),at(c,t,o),u=!0},p(t,r){let[i]=r;const f={};32783&i&&(f.$$scope={dirty:i,ctx:t}),n.$set(f),(!u||1&i&&o!==(o=t[0].hiddenScroll))&&D(l,"class",o),(!u||1&i&&s!==(s=t[0].header))&&D(e,"class",s),t[4]?d?(d.p(t,i),16&i&&nt(d,1)):(d=El(t),d.c(),nt(d,1),d.m(a.parentNode,a)):d&&(tt(),rt(d,1,1,(()=>{d=null})),et());const h={};32770&i&&(h.$$scope={dirty:i,ctx:t}),c.$set(h)},i(t){u||(nt(n.$$.fragment,t),nt(d),nt(c.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(d),rt(c.$$.fragment,t),u=!1},d(t){t&&(y(e),y(i),y(a)),ct(n),d&&d.d(t),ct(c,t)}}}function zl(t,e,n){let r,l,o,s,i,{_viewDates:c,_intlDayHeader:u,_intlDayHeaderAL:d,allDaySlot:f,theme:h}=B("state");return a(t,c,(t=>n(1,l=t))),a(t,u,(t=>n(3,s=t))),a(t,d,(t=>n(2,o=t))),a(t,f,(t=>n(4,i=t))),a(t,h,(t=>n(0,r=t))),[r,l,o,s,i,c,u,d,f,h]}let Rl=class extends dt{constructor(t){super(),ut(this,t,zl,Ll,o,{})}};var Hl={createOptions(t){t.buttonText.timeGridDay="day",t.buttonText.timeGridWeek="week",t.view="timeGridWeek",t.views.timeGridDay={buttonText:Ue,component:Rl,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:Ne("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},t.views.timeGridWeek={buttonText:Le,component:Rl,duration:{weeks:1},theme:Ne("ec-time-grid ec-week-view")}},createStores(t){t._slotTimeLimits=function(t){return mt([t.slotMinTime,t.slotMaxTime,t.flexibleSlotTimeLimits,t._viewDates,t._events],(t=>Xe(...t)))}(t),t._times=function(t){return mt([t.slotDuration,t._slotTimeLimits,t._intlSlotLabel],(t=>Ye(Dt(wt()),...t)))}(t)}};function Nl(e){let n,r,o,s;return{c(){n=b("span"),D(n,"aria-label",e[2])},m(t,l){v(t,n,l),e[9](n),o||(s=m(r=gt.call(null,n,e[1])),o=!0)},p(t,e){let[o]=e;4&o&&D(n,"aria-label",t[2]),r&&l(r.update)&&2&o&&r.update.call(null,t[1])},i:t,o:t,d(t){t&&y(n),e[9](null),o=!1,s()}}}function Bl(t,e,n){let r,l,o,{resource:s}=e,{date:i}=e,{resourceLabelContent:c,resourceLabelDidMount:u,_intlDayHeaderAL:d}=B("state");a(t,c,(t=>n(8,o=t))),a(t,u,(t=>n(11,l=t))),a(t,d,(t=>n(10,r=t)));const f=N();let h,p,m;return R((()=>{Gt(l)&&l({resource:s,date:i?Et(i):void 0,el:h})})),H((()=>{i?n(2,m=r.format(i)+", "+h.innerText):(n(2,m=void 0),f("text",h.innerText))})),t.$$set=t=>{"resource"in t&&n(6,s=t.resource),"date"in t&&n(7,i=t.date)},t.$$.update=()=>{448&t.$$.dirty&&n(1,p=o?Gt(o)?o({resource:s,date:i?Et(i):void 0}):o:s.title)},[h,p,m,c,u,d,s,i,o,function(t){P[t?"unshift":"push"]((()=>{h=t,n(0,h)}))}]}let Fl=class extends dt{constructor(t){super(),ut(this,t,Bl,Nl,o,{resource:6,date:7})}};function Al(t,e,n){const r=t.slice();return r[17]=e[n],r}function Pl(t,e,n){const r=t.slice();return r[20]=e[n],r}function jl(t,e,n){const r=t.slice();return r[26]=e[n],r}function Il(t,e,n){const r=t.slice();return r[23]=e[n],r}function Wl(t,e,n){const r=t.slice();return r[26]=e[n],r}function Ol(t,e,n){const r=t.slice();return r[17]=e[n],r[32]=n,r}function Gl(t,e,n){const r=t.slice();return r[20]=e[n],r}function ql(t){let e,n,r,l;return n=new Fl({props:{resource:t[17]}}),n.$on("text",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[16](t[32],...n)})),{c(){e=b("div"),it(n.$$.fragment),D(e,"class",r=t[5].day)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(o,s){t=o;const i={};8&s[0]&&(i.resource=t[17]),n.$set(i),(!l||32&s[0]&&r!==(r=t[5].day))&&D(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function Yl(e){let n,r,o,s,i,a,c,u;return{c(){n=b("div"),r=b("time"),D(r,"datetime",o=St(e[17],10)),D(r,"aria-label",s=e[6].format(e[17])),D(n,"class",a=e[5].day+" "+e[5].weekdays?.[e[17].getUTCDay()])},m(t,l){v(t,n,l),g(n,r),c||(u=m(i=gt.call(null,r,e[7].format(e[17]))),c=!0)},p(t,c){e=t,8&c[0]&&o!==(o=St(e[17],10))&&D(r,"datetime",o),72&c[0]&&s!==(s=e[6].format(e[17]))&&D(r,"aria-label",s),i&&l(i.update)&&136&c[0]&&i.update.call(null,e[7].format(e[17])),40&c[0]&&a!==(a=e[5].day+" "+e[5].weekdays?.[e[17].getUTCDay()])&&D(n,"class",a)},i:t,o:t,d(t){t&&y(n),c=!1,u()}}}function Xl(t){let e,n,r,l=lt(t[3][1]),o=[];for(let e=0;e<l.length;e+=1)o[e]=Kl(Gl(t,l,e));const s=t=>rt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=b("div");for(let t=0;t<o.length;t+=1)o[t].c();D(e,"class",n=t[5].days)},m(t,n){v(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);r=!0},p(t,i){if(252&i[0]){let n;for(l=lt(t[3][1]),n=0;n<l.length;n+=1){const r=Gl(t,l,n);o[n]?(o[n].p(r,i),nt(o[n],1)):(o[n]=Kl(r),o[n].c(),nt(o[n],1),o[n].m(e,null))}for(tt(),n=l.length;n<o.length;n+=1)s(n);et()}(!r||32&i[0]&&n!==(n=t[5].days))&&D(e,"class",n)},i(t){if(!r){for(let t=0;t<l.length;t+=1)nt(o[t]);r=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)rt(o[t]);r=!1},d(t){t&&y(e),w(o,t)}}}function Vl(e){let n,r,o,s,i,a,c,u,d;return{c(){n=b("div"),r=b("time"),a=x(),D(r,"datetime",o=St(e[20],10)),D(r,"aria-label",s=""+(e[4][e[32]]+e[6].format(e[20]))),D(n,"class",c=e[5].day+" "+e[5].weekdays?.[e[20].getUTCDay()]),D(n,"role","columnheader")},m(t,l){v(t,n,l),g(n,r),g(n,a),u||(d=m(i=gt.call(null,r,e[7].format(e[20]))),u=!0)},p(t,a){e=t,8&a[0]&&o!==(o=St(e[20],10))&&D(r,"datetime",o),88&a[0]&&s!==(s=""+(e[4][e[32]]+e[6].format(e[20])))&&D(r,"aria-label",s),i&&l(i.update)&&136&a[0]&&i.update.call(null,e[7].format(e[20])),40&a[0]&&c!==(c=e[5].day+" "+e[5].weekdays?.[e[20].getUTCDay()])&&D(n,"class",c)},i:t,o:t,d(t){t&&y(n),u=!1,d()}}}function Jl(t){let e,n,r,l,o;return n=new Fl({props:{resource:t[20],date:t[17]}}),{c(){e=b("div"),it(n.$$.fragment),r=x(),D(e,"class",l=t[5].day),D(e,"role","columnheader")},m(t,l){v(t,e,l),at(n,e,null),g(e,r),o=!0},p(t,r){const s={};8&r[0]&&(s.resource=t[20]),8&r[0]&&(s.date=t[17]),n.$set(s),(!o||32&r[0]&&l!==(l=t[5].day))&&D(e,"class",l)},i(t){o||(nt(n.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),o=!1},d(t){t&&y(e),ct(n)}}}function Kl(t){let e,n,r,l;const o=[Jl,Vl],s=[];function i(t,e){return t[2]?0:1}return e=i(t),n=s[e]=o[e](t),{c(){n.c(),r=_()},m(t,n){s[e].m(t,n),v(t,r,n),l=!0},p(t,l){let a=e;e=i(t),e===a?s[e].p(t,l):(tt(),rt(s[a],1,1,(()=>{s[a]=null})),et(),n=s[e],n?n.p(t,l):(n=s[e]=o[e](t),n.c()),nt(n,1),n.m(r.parentNode,r))},i(t){l||(nt(n),l=!0)},o(t){rt(n),l=!1},d(t){t&&y(r),s[e].d(t)}}}function Ql(t){let e,n,r,l,o,s,i;const a=[Yl,ql],c=[];function u(t,e){return t[2]?0:1}n=u(t),r=c[n]=a[n](t);let d=t[3][1].length>1&&Xl(t);return{c(){e=b("div"),r.c(),l=x(),d&&d.c(),o=x(),D(e,"class",s=t[5].resource)},m(t,r){v(t,e,r),c[n].m(e,null),g(e,l),d&&d.m(e,null),g(e,o),i=!0},p(t,f){let h=n;n=u(t),n===h?c[n].p(t,f):(tt(),rt(c[h],1,1,(()=>{c[h]=null})),et(),r=c[n],r?r.p(t,f):(r=c[n]=a[n](t),r.c()),nt(r,1),r.m(e,l)),t[3][1].length>1?d?(d.p(t,f),8&f[0]&&nt(d,1)):(d=Xl(t),d.c(),nt(d,1),d.m(e,o)):d&&(tt(),rt(d,1,1,(()=>{d=null})),et()),(!i||32&f[0]&&s!==(s=t[5].resource))&&D(e,"class",s)},i(t){i||(nt(r),nt(d),i=!0)},o(t){rt(r),rt(d),i=!1},d(t){t&&y(e),c[n].d(),d&&d.d()}}}function Zl(t){let e,n,r=lt(t[3][0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Ql(Ol(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=_()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(252&n[0]){let s;for(r=lt(t[3][0]),s=0;s<r.length;s+=1){const o=Ol(t,r,s);l[s]?(l[s].p(o,n),nt(l[s],1)):(l[s]=Ql(o),l[s].c(),nt(l[s],1),l[s].m(e.parentNode,e))}for(tt(),s=r.length;s<l.length;s+=1)o(s);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function to(t){let e,n,r,l,o,s,i,a,c;return r=new Fr({props:{$$slots:{default:[so]},$$scope:{ctx:t}}}),{c(){e=b("div"),n=b("div"),it(r.$$.fragment),l=x(),o=b("div"),D(o,"class",s=t[5].hiddenScroll),D(n,"class",i=t[5].content),D(e,"class",a=t[5].allDay)},m(t,s){v(t,e,s),g(e,n),at(r,n,null),g(n,l),g(n,o),c=!0},p(t,l){const u={};39&l[0]|16&l[1]&&(u.$$scope={dirty:l,ctx:t}),r.$set(u),(!c||32&l[0]&&s!==(s=t[5].hiddenScroll))&&D(o,"class",s),(!c||32&l[0]&&i!==(i=t[5].content))&&D(n,"class",i),(!c||32&l[0]&&a!==(a=t[5].allDay))&&D(e,"class",a)},i(t){c||(nt(r.$$.fragment,t),c=!0)},o(t){rt(r.$$.fragment,t),c=!1},d(t){t&&y(e),ct(r)}}}function eo(t){let e,n,r=lt(t[1]),l=[];for(let e=0;e<r.length;e+=1)l[e]=ro(jl(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=_()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(35&n[0]){let s;for(r=lt(t[1]),s=0;s<r.length;s+=1){const o=jl(t,r,s);l[s]?(l[s].p(o,n),nt(l[s],1)):(l[s]=ro(o),l[s].c(),nt(l[s],1),l[s].m(e.parentNode,e))}for(tt(),s=r.length;s<l.length;s+=1)o(s);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function no(t){let e,n,r=lt(t[0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=oo(Il(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=_()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(35&n[0]){let s;for(r=lt(t[0]),s=0;s<r.length;s+=1){const o=Il(t,r,s);l[s]?(l[s].p(o,n),nt(l[s],1)):(l[s]=oo(o),l[s].c(),nt(l[s],1),l[s].m(e.parentNode,e))}for(tt(),s=r.length;s<l.length;s+=1)o(s);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function ro(t){let e,n,r,l,o;return n=new xl({props:{dates:t[0],resource:t[26]}}),{c(){e=b("div"),it(n.$$.fragment),r=x(),D(e,"class",l=t[5].resource)},m(t,l){v(t,e,l),at(n,e,null),g(e,r),o=!0},p(t,r){const s={};1&r[0]&&(s.dates=t[0]),2&r[0]&&(s.resource=t[26]),n.$set(s),(!o||32&r[0]&&l!==(l=t[5].resource))&&D(e,"class",l)},i(t){o||(nt(n.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),o=!1},d(t){t&&y(e),ct(n)}}}function lo(t){let e,n;return e=new xl({props:{dates:[t[23]],resource:t[26]}}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.dates=[t[23]]),2&n[0]&&(r.resource=t[26]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function oo(t){let e,n,r,l,o=lt(t[1]),s=[];for(let e=0;e<o.length;e+=1)s[e]=lo(Wl(t,o,e));const i=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=b("div");for(let t=0;t<s.length;t+=1)s[t].c();n=x(),D(e,"class",r=t[5].resource)},m(t,r){v(t,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);g(e,n),l=!0},p(t,a){if(3&a[0]){let r;for(o=lt(t[1]),r=0;r<o.length;r+=1){const l=Wl(t,o,r);s[r]?(s[r].p(l,a),nt(s[r],1)):(s[r]=lo(l),s[r].c(),nt(s[r],1),s[r].m(e,n))}for(tt(),r=o.length;r<s.length;r+=1)i(r);et()}(!l||32&a[0]&&r!==(r=t[5].resource))&&D(e,"class",r)},i(t){if(!l){for(let t=0;t<o.length;t+=1)nt(s[t]);l=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)rt(s[t]);l=!1},d(t){t&&y(e),w(s,t)}}}function so(t){let e,n,r,l;const o=[no,eo],s=[];function i(t,e){return t[2]?0:1}return e=i(t),n=s[e]=o[e](t),{c(){n.c(),r=_()},m(t,n){s[e].m(t,n),v(t,r,n),l=!0},p(t,l){let a=e;e=i(t),e===a?s[e].p(t,l):(tt(),rt(s[a],1,1,(()=>{s[a]=null})),et(),n=s[e],n?n.p(t,l):(n=s[e]=o[e](t),n.c()),nt(n,1),n.m(r.parentNode,r))},i(t){l||(nt(n),l=!0)},o(t){rt(n),l=!1},d(t){t&&y(r),s[e].d(t)}}}function io(t){let e,n;return e=new il({props:{date:t[2]?t[17]:t[20],resource:t[2]?t[20]:t[17]}}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};12&n[0]&&(r.date=t[2]?t[17]:t[20]),12&n[0]&&(r.resource=t[2]?t[20]:t[17]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function ao(t){let e,n,r,l,o=lt(t[3][1]),s=[];for(let e=0;e<o.length;e+=1)s[e]=io(Pl(t,o,e));const i=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=b("div");for(let t=0;t<s.length;t+=1)s[t].c();n=x(),D(e,"class",r=t[5].resource)},m(t,r){v(t,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);g(e,n),l=!0},p(t,a){if(12&a[0]){let r;for(o=lt(t[3][1]),r=0;r<o.length;r+=1){const l=Pl(t,o,r);s[r]?(s[r].p(l,a),nt(s[r],1)):(s[r]=io(l),s[r].c(),nt(s[r],1),s[r].m(e,n))}for(tt(),r=o.length;r<s.length;r+=1)i(r);et()}(!l||32&a[0]&&r!==(r=t[5].resource))&&D(e,"class",r)},i(t){if(!l){for(let t=0;t<o.length;t+=1)nt(s[t]);l=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)rt(s[t]);l=!1},d(t){t&&y(e),w(s,t)}}}function co(t){let e,n,r=lt(t[3][0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=ao(Al(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=_()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(44&n[0]){let s;for(r=lt(t[3][0]),s=0;s<r.length;s+=1){const o=Al(t,r,s);l[s]?(l[s].p(o,n),nt(l[s],1)):(l[s]=ao(o),l[s].c(),nt(l[s],1),l[s].m(e.parentNode,e))}for(tt(),s=r.length;s<l.length;s+=1)o(s);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function uo(t){let e,n,r,l,o,s,i,a,c,u;n=new Fr({props:{$$slots:{default:[Zl]},$$scope:{ctx:t}}});let d=t[8]&&to(t);return c=new Gr({props:{$$slots:{default:[co]},$$scope:{ctx:t}}}),{c(){e=b("div"),it(n.$$.fragment),r=x(),l=b("div"),i=x(),d&&d.c(),a=x(),it(c.$$.fragment),D(l,"class",o=t[5].hiddenScroll),D(e,"class",s=t[5].header)},m(t,o){v(t,e,o),at(n,e,null),g(e,r),g(e,l),v(t,i,o),d&&d.m(t,o),v(t,a,o),at(c,t,o),u=!0},p(t,r){const i={};252&r[0]|16&r[1]&&(i.$$scope={dirty:r,ctx:t}),n.$set(i),(!u||32&r[0]&&o!==(o=t[5].hiddenScroll))&&D(l,"class",o),(!u||32&r[0]&&s!==(s=t[5].header))&&D(e,"class",s),t[8]?d?(d.p(t,r),256&r[0]&&nt(d,1)):(d=to(t),d.c(),nt(d,1),d.m(a.parentNode,a)):d&&(tt(),rt(d,1,1,(()=>{d=null})),et());const f={};44&r[0]|16&r[1]&&(f.$$scope={dirty:r,ctx:t}),c.$set(f)},i(t){u||(nt(n.$$.fragment,t),nt(d),nt(c.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(d),rt(c.$$.fragment,t),u=!1},d(t){t&&(y(e),y(i),y(a)),ct(n),d&&d.d(t),ct(c,t)}}}function fo(t,e,n){let r,l,o,s,i,c,u,d,{datesAboveResources:f,_viewDates:h,_viewResources:p,_intlDayHeader:m,_intlDayHeaderAL:$,allDaySlot:g,theme:v}=B("state");a(t,f,(t=>n(2,o=t))),a(t,h,(t=>n(0,r=t))),a(t,p,(t=>n(1,l=t))),a(t,m,(t=>n(7,c=t))),a(t,$,(t=>n(6,i=t))),a(t,g,(t=>n(8,u=t))),a(t,v,(t=>n(5,s=t)));let y=[];return t.$$.update=()=>{7&t.$$.dirty[0]&&n(3,d=o?[r,l]:[l,r])},[r,l,o,d,y,s,i,c,u,f,h,p,m,$,g,v,(t,e)=>n(4,y[t]=e.detail+", ",y)]}let ho=class extends dt{constructor(t){super(),ut(this,t,fo,uo,o,{},null,[-1,-1])}};var po={createOptions(t){t.datesAboveResources=!1,t.buttonText.resourceTimeGridDay="resources",t.buttonText.resourceTimeGridWeek="resources",t.view="resourceTimeGridWeek",t.views.resourceTimeGridDay={buttonText:Ue,component:ho,duration:{days:1},theme:Ne("ec-time-grid ec-resource-day-view")},t.views.resourceTimeGridWeek={buttonText:Le,component:ho,duration:{weeks:1},theme:Ne("ec-time-grid ec-resource-week-view")}},createStores(t){"_times"in t||Hl.createStores(t),"_viewResources"in t||(t._viewResources=qe(t))}};function mo(e){let n,r,o,s;return{c(){n=b("span")},m(t,l){v(t,n,l),e[7](n),o||(s=m(r=gt.call(null,n,e[1])),o=!0)},p(t,e){let[n]=e;r&&l(r.update)&&2&n&&r.update.call(null,t[1])},i:t,o:t,d(t){t&&y(n),e[7](null),o=!1,s()}}}function $o(t,e,n){let r,l,o,s,{resource:i}=e,{date:c}=e,{resourceLabelContent:u,resourceLabelDidMount:d}=B("state");return a(t,u,(t=>n(6,l=t))),a(t,d,(t=>n(8,r=t))),R((()=>{Gt(r)&&r({resource:i,date:c?Et(c):void 0,el:o})})),t.$$set=t=>{"resource"in t&&n(4,i=t.resource),"date"in t&&n(5,c=t.date)},t.$$.update=()=>{112&t.$$.dirty&&n(1,s=l?Gt(l)?l({resource:i,date:c?Et(c):void 0}):l:i.title)},[o,s,u,d,i,c,l,function(t){P[t?"unshift":"push"]((()=>{o=t,n(0,o)}))}]}class go extends dt{constructor(t){super(),ut(this,t,$o,mo,o,{resource:4,date:5})}}function vo(t,e,n){const r=t.slice();return r[7]=e[n],r}function yo(t){let e,n;return{c(){e=b("span"),D(e,"class",n=t[1].expander)},m(t,n){v(t,e,n)},p(t,r){2&r&&n!==(n=t[1].expander)&&D(e,"class",n)},d(t){t&&y(e)}}}function wo(t){let e,n,r,l;function o(t,e){return t[0].expanded?ko:bo}let s=o(t),i=s(t);return{c(){e=b("button"),i.c(),D(e,"class",n=t[1].button)},m(n,o){v(n,e,o),i.m(e,null),r||(l=C(e,"click",t[3]),r=!0)},p(t,r){s!==(s=o(t))&&(i.d(1),i=s(t),i&&(i.c(),i.m(e,null))),2&r&&n!==(n=t[1].button)&&D(e,"class",n)},d(t){t&&y(e),i.d(),r=!1,l()}}}function bo(t){let e;return{c(){e=k("+")},m(t,n){v(t,e,n)},d(t){t&&y(e)}}}function ko(t){let e;return{c(){e=k("−")},m(t,n){v(t,e,n)},d(t){t&&y(e)}}}function xo(e){let n,r,l,o=lt(Array(e[0].level)),s=[];for(let t=0;t<o.length;t+=1)s[t]=yo(vo(e,o,t));let i=e[0].children.length&&wo(e);return{c(){for(let t=0;t<s.length;t+=1)s[t].c();n=x(),r=b("span"),i&&i.c(),D(r,"class",l=e[1].expander)},m(t,e){for(let n=0;n<s.length;n+=1)s[n]&&s[n].m(t,e);v(t,n,e),v(t,r,e),i&&i.m(r,null)},p(t,e){let[a]=e;if(3&a){let e;for(o=lt(Array(t[0].level)),e=0;e<o.length;e+=1){const r=vo(t,o,e);s[e]?s[e].p(r,a):(s[e]=yo(r),s[e].c(),s[e].m(n.parentNode,n))}for(;e<s.length;e+=1)s[e].d(1);s.length=o.length}t[0].children.length?i?i.p(t,a):(i=wo(t),i.c(),i.m(r,null)):i&&(i.d(1),i=null),2&a&&l!==(l=t[1].expander)&&D(r,"class",l)},i:t,o:t,d(t){t&&(y(n),y(r)),w(s,t),i&&i.d()}}}function _o(t,e,n){let r,{resource:l}=e,{resources:o,theme:s}=B("state");a(t,s,(t=>n(1,r=t)));let i={};function c(t,e){for(let n of t){let t=ee(n);t.hidden=!e,t.expanded&&c(t.children,e)}}return t.$$set=t=>{"resource"in t&&n(4,l=t.resource)},t.$$.update=()=>{16&t.$$.dirty&&n(0,i=ee(l))},[i,r,s,function(){n(0,i.expanded=!i.expanded,i),c(i.children,i.expanded),o.update(Vt)},l]}class Co extends dt{constructor(t){super(),ut(this,t,_o,xo,o,{resource:4})}}function To(t,e,n){const r=t.slice();return r[14]=e[n],r}function Do(t){let e,n;return e=new Co({props:{resource:t[14]}}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};8&n&&(r.resource=t[14]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Eo(t){let e,n,r,l,o,s,i=t[5]&&Do(t);return r=new go({props:{resource:t[14]}}),{c(){e=b("div"),i&&i.c(),n=x(),it(r.$$.fragment),l=x(),D(e,"class",o=t[1].resource),S(e,"flex-basis",Wt(t[4].get(t[14])??0,34)+"px"),D(e,"role","rowheader")},m(t,o){v(t,e,o),i&&i.m(e,null),g(e,n),at(r,e,null),g(e,l),s=!0},p(t,l){t[5]?i?(i.p(t,l),32&l&&nt(i,1)):(i=Do(t),i.c(),nt(i,1),i.m(e,n)):i&&(tt(),rt(i,1,1,(()=>{i=null})),et());const a={};8&l&&(a.resource=t[14]),r.$set(a),(!s||2&l&&o!==(o=t[1].resource))&&D(e,"class",o),(!s||24&l)&&S(e,"flex-basis",Wt(t[4].get(t[14])??0,34)+"px")},i(t){s||(nt(i),nt(r.$$.fragment,t),s=!0)},o(t){rt(i),rt(r.$$.fragment,t),s=!1},d(t){t&&y(e),i&&i.d(),ct(r)}}}function So(t){let e,n,r,l,o,s,i,a,c=lt(t[3]),u=[];for(let e=0;e<c.length;e+=1)u[e]=Eo(To(t,c,e));const d=t=>rt(u[t],1,1,(()=>{u[t]=null}));return{c(){e=b("div"),n=b("div"),l=x(),o=b("div");for(let t=0;t<u.length;t+=1)u[t].c();D(n,"class",r=t[1].sidebarTitle),S(n,"flex-basis",t[0]+"px"),D(o,"class",s=t[1].content),D(e,"class",i=t[1].sidebar)},m(r,s){v(r,e,s),g(e,n),g(e,l),g(e,o);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(o,null);t[12](o),a=!0},p(t,l){let[f]=l;if((!a||2&f&&r!==(r=t[1].sidebarTitle))&&D(n,"class",r),(!a||1&f)&&S(n,"flex-basis",t[0]+"px"),58&f){let e;for(c=lt(t[3]),e=0;e<c.length;e+=1){const n=To(t,c,e);u[e]?(u[e].p(n,f),nt(u[e],1)):(u[e]=Eo(n),u[e].c(),nt(u[e],1),u[e].m(o,null))}for(tt(),e=c.length;e<u.length;e+=1)d(e);et()}(!a||2&f&&s!==(s=t[1].content))&&D(o,"class",s),(!a||2&f&&i!==(i=t[1].sidebar))&&D(e,"class",i)},i(t){if(!a){for(let t=0;t<c.length;t+=1)nt(u[t]);a=!0}},o(t){u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)rt(u[t]);a=!1},d(n){n&&y(e),w(u,n),t[12](null)}}}function Mo(t,e,n){let r,l,o,s,i,c,{_viewResources:u,_headerEl:d,_resHs:f,_sidebarEl:h,_nestedResources:p,theme:m}=B("state");a(t,u,(t=>n(3,s=t))),a(t,d,(t=>n(13,r=t))),a(t,f,(t=>n(4,i=t))),a(t,h,(t=>n(2,o=t))),a(t,p,(t=>n(5,c=t))),a(t,m,(t=>n(1,l=t)));let $=0;return H((()=>{n(0,$=r.clientHeight)})),[$,l,o,s,i,c,u,d,f,h,p,m,function(t){P[t?"unshift":"push"]((()=>{o=t,h.set(o)}))}]}class Uo extends dt{constructor(t){super(),ut(this,t,Mo,So,o,{})}}function Lo(t,e,n){const r=t.slice();return r[15]=e[n],r}function zo(t,e,n){const r=t.slice();return r[18]=e[n],r}function Ro(t){let e,n,r,o,s,i,a,c;return{c(){e=b("div"),n=b("time"),D(n,"datetime",r=St(t[15],10)),D(n,"aria-label",o=t[4].format(t[15])),D(e,"class",i=t[0].time),D(e,"role","columnheader")},m(r,l){v(r,e,l),g(e,n),a||(c=m(s=gt.call(null,n,t[5].format(t[15]))),a=!0)},p(a,c){t=a,4&c&&r!==(r=St(t[15],10))&&D(n,"datetime",r),20&c&&o!==(o=t[4].format(t[15]))&&D(n,"aria-label",o),s&&l(s.update)&&36&c&&s.update.call(null,t[5].format(t[15])),1&c&&i!==(i=t[0].time)&&D(e,"class",i)},d(t){t&&y(e),a=!1,c()}}}function Ho(t){let e,n,r,o,s,i,a,c,u,d,f,h=lt(t[6][t[15].getTime()]),p=[];for(let e=0;e<h.length;e+=1)p[e]=No(zo(t,h,e));return{c(){e=b("div"),n=b("time"),a=x(),c=b("div");for(let t=0;t<p.length;t+=1)p[t].c();D(n,"datetime",r=St(t[15],10)),D(n,"aria-label",o=t[4].format(t[15])),D(e,"class",i=t[0].dayHead),D(c,"class",u=t[0].times)},m(r,l){v(r,e,l),g(e,n),v(r,a,l),v(r,c,l);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(c,null);d||(f=m(s=gt.call(null,n,t[5].format(t[15]))),d=!0)},p(a,d){if(t=a,4&d&&r!==(r=St(t[15],10))&&D(n,"datetime",r),20&d&&o!==(o=t[4].format(t[15]))&&D(n,"aria-label",o),s&&l(s.update)&&36&d&&s.update.call(null,t[5].format(t[15])),1&d&&i!==(i=t[0].dayHead)&&D(e,"class",i),69&d){let e;for(h=lt(t[6][t[15].getTime()]),e=0;e<h.length;e+=1){const n=zo(t,h,e);p[e]?p[e].p(n,d):(p[e]=No(n),p[e].c(),p[e].m(c,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=h.length}1&d&&u!==(u=t[0].times)&&D(c,"class",u)},d(t){t&&(y(e),y(a),y(c)),w(p,t),d=!1,f()}}}function No(t){let e,n,r,o,s,i,a,c;return{c(){e=b("div"),n=b("time"),s=x(),D(n,"datetime",r=t[18][0]),D(e,"class",i=t[0].time),D(e,"role","columnheader")},m(r,l){v(r,e,l),g(e,n),g(e,s),a||(c=m(o=gt.call(null,n,t[18][1])),a=!0)},p(s,a){t=s,68&a&&r!==(r=t[18][0])&&D(n,"datetime",r),o&&l(o.update)&&68&a&&o.update.call(null,t[18][1]),1&a&&i!==(i=t[0].time)&&D(e,"class",i)},d(t){t&&y(e),a=!1,c()}}}function Bo(t){let e,n,r,l;function o(t,e){return 8&e&&(n=null),null==n&&(n=!!Rt(t[3])),n?Ho:Ro}let s=o(t,-1),i=s(t);return{c(){e=b("div"),i.c(),r=x(),D(e,"class",l=t[0].day+" "+t[0].weekdays?.[t[15].getUTCDay()])},m(t,n){v(t,e,n),i.m(e,null),g(e,r)},p(t,n){s===(s=o(t,n))&&i?i.p(t,n):(i.d(1),i=s(t),i&&(i.c(),i.m(e,r))),5&n&&l!==(l=t[0].day+" "+t[0].weekdays?.[t[15].getUTCDay()])&&D(e,"class",l)},d(t){t&&y(e),i.d()}}}function Fo(e){let n,r,l,o,s,i,a,c=lt(e[2]),u=[];for(let t=0;t<c.length;t+=1)u[t]=Bo(Lo(e,c,t));return{c(){n=b("div"),r=b("div");for(let t=0;t<u.length;t+=1)u[t].c();o=x(),s=b("div"),D(r,"class",l=e[0].days),D(r,"role","row"),D(s,"class",i=e[0].hiddenScroll),D(n,"class",a=e[0].header)},m(t,l){v(t,n,l),g(n,r);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(r,null);g(n,o),g(n,s),e[14](n)},p(t,e){let[o]=e;if(125&o){let e;for(c=lt(t[2]),e=0;e<c.length;e+=1){const n=Lo(t,c,e);u[e]?u[e].p(n,o):(u[e]=Bo(n),u[e].c(),u[e].m(r,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=c.length}1&o&&l!==(l=t[0].days)&&D(r,"class",l),1&o&&i!==(i=t[0].hiddenScroll)&&D(s,"class",i),1&o&&a!==(a=t[0].header)&&D(n,"class",a)},i:t,o:t,d(t){t&&y(n),w(u,t),e[14](null)}}}function Ao(t,e,n){let r,l,o,s,i,c,u,{_headerEl:d,_intlDayHeader:f,_intlDayHeaderAL:h,_dayTimes:p,_viewDates:m,slotDuration:$,theme:g}=B("state");return a(t,d,(t=>n(1,l=t))),a(t,f,(t=>n(5,c=t))),a(t,h,(t=>n(4,i=t))),a(t,p,(t=>n(6,u=t))),a(t,m,(t=>n(2,o=t))),a(t,$,(t=>n(3,s=t))),a(t,g,(t=>n(0,r=t))),[r,l,o,s,i,c,u,d,f,h,p,m,$,g,function(t){P[t?"unshift":"push"]((()=>{l=t,d.set(l)}))}]}class Po extends dt{constructor(t){super(),ut(this,t,Ao,Fo,o,{})}}function jo(t,e,n,r){let l={};if(t.length){$e(t);let o,s=Rt(r);for(let r of t){let t;if(s){let o=0;for(let i=0;i<e.length;++i){let a=Io(n,e[i]),c=xt(kt(e[i]),a.min),u=xt(kt(e[i]),a.max);if(r.date){if(r.end<=c){r.end=t;break}let n=e[i].getTime();if(l[n]?l[n].push(r):l[n]=[r],!(r.end>u)){o+=r.end-c;break}o+=u-c}else if(r.start<u){if(r.date=e[i],r.start<c&&(r.start=c),r.offset=(r.start-c)/1e3/s,!(r.end>u)){o+=Wt(r.end-r.start,1e3*s);break}o+=u-r.start}t=u}r.slots=o/1e3/s}else{let n=0;for(let o=0;o<e.length;++o){let s=e[o],i=Ct(kt(s));if(r.date){if(r.end<=s){r.end=t;break}let e=s.getTime();l[e]?l[e].push(r):l[e]=[r],++n}else r.start<i&&(r.date=s,r.start<s&&(r.start=s),++n);t=i}r.days=n}o&&Mt(o.date,r.date)&&(r.prev=o),o=r}}return l}function Io(t,e){return t[e.getTime()]??{min:bt(0),max:bt(0)}}function Wo(t){let e,n,o,s,i,a,c,u,d,f,h,p,$;var w=t[11].resizer;function k(t,e){return{props:{start:!0,event:t[0]}}}w&&(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[32](t[11],["x","start"]))&&t[32](t[11],["x","start"]).apply(this,arguments)})));var _=t[11].resizer;function T(t,e){return{props:{event:t[0]}}}return _&&(u=M(_,T(t)),u.$on("pointerdown",(function(){l(t[32](t[11],["x","end"]))&&t[32](t[11],["x","end"]).apply(this,arguments)}))),{c(){e=b("article"),n&&it(n.$$.fragment),o=x(),s=b("div"),c=x(),u&&it(u.$$.fragment),D(s,"class",i=t[3].eventBody),D(e,"class",t[5]),D(e,"style",t[6]),D(e,"role",d=t[8]?"button":void 0),D(e,"tabindex",f=t[8]?0:void 0)},m(r,i){v(r,e,i),n&&at(n,e,null),g(e,o),g(e,s),g(e,c),u&&at(u,e,null),t[51](e),h=!0,p||($=[m(a=gt.call(null,s,t[7])),C(e,"click",(function(){l(t[8])&&t[8].apply(this,arguments)})),C(e,"keydown",(function(){l(t[8]&&$t(t[8]))&&(t[8]&&$t(t[8])).apply(this,arguments)})),C(e,"mouseenter",(function(){l(t[31](t[9],t[1]))&&t[31](t[9],t[1]).apply(this,arguments)})),C(e,"mouseleave",(function(){l(t[31](t[10],t[1]))&&t[31](t[10],t[1]).apply(this,arguments)})),C(e,"pointerdown",(function(){l(!Se(t[1])&&!Ee(t[1])&&t[32](t[11]))&&(!Se(t[1])&&!Ee(t[1])&&t[32](t[11])).apply(this,arguments)}))],p=!0)},p(r,c){if(t=r,2048&c[0]&&w!==(w=t[11].resizer)){if(n){tt();const t=n;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}w?(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[32](t[11],["x","start"]))&&t[32](t[11],["x","start"]).apply(this,arguments)})),it(n.$$.fragment),nt(n.$$.fragment,1),at(n,e,o)):n=null}else if(w){const e={};1&c[0]&&(e.event=t[0]),n.$set(e)}if((!h||8&c[0]&&i!==(i=t[3].eventBody))&&D(s,"class",i),a&&l(a.update)&&128&c[0]&&a.update.call(null,t[7]),2048&c[0]&&_!==(_=t[11].resizer)){if(u){tt();const t=u;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}_?(u=M(_,T(t)),u.$on("pointerdown",(function(){l(t[32](t[11],["x","end"]))&&t[32](t[11],["x","end"]).apply(this,arguments)})),it(u.$$.fragment),nt(u.$$.fragment,1),at(u,e,null)):u=null}else if(_){const e={};1&c[0]&&(e.event=t[0]),u.$set(e)}(!h||32&c[0])&&D(e,"class",t[5]),(!h||64&c[0])&&D(e,"style",t[6]),(!h||256&c[0]&&d!==(d=t[8]?"button":void 0))&&D(e,"role",d),(!h||256&c[0]&&f!==(f=t[8]?0:void 0))&&D(e,"tabindex",f)},i(t){h||(n&&nt(n.$$.fragment,t),u&&nt(u.$$.fragment,t),h=!0)},o(t){n&&rt(n.$$.fragment,t),u&&rt(u.$$.fragment,t),h=!1},d(l){l&&y(e),n&&ct(n),u&&ct(u),t[51](null),p=!1,r($)}}}function Oo(t){let e,n,r=t[2]>0&&Wo(t);return{c(){r&&r.c(),e=_()},m(t,l){r&&r.m(t,l),v(t,e,l),n=!0},p(t,n){t[2]>0?r?(r.p(t,n),4&n[0]&&nt(r,1)):(r=Wo(t),r.c(),nt(r,1),r.m(e.parentNode,e)):r&&(tt(),rt(r,1,1,(()=>{r=null})),et())},i(t){n||(nt(r),n=!0)},o(t){rt(r),n=!1},d(t){t&&y(e),r&&r.d(t)}}}function Go(t,e,n){let r,l,o,s,i,c,u,d,f,h,p,m,$,g,v,y,w,b,k,x,_,C,T,D,E,S,M,{chunk:U}=e,{dayChunks:L=[]}=e,{longChunks:z={}}=e,{resource:N}=e,{displayEventEnd:F,eventAllUpdated:A,eventBackgroundColor:j,eventTextColor:I,eventColor:W,eventContent:O,eventClick:G,eventDidMount:q,eventClassNames:Y,eventMouseEnter:X,eventMouseLeave:V,resources:J,slotDuration:K,slotWidth:Q,theme:Z,_view:tt,_intlEventTime:et,_interaction:nt,_iClasses:rt,_tasks:lt}=B("state");a(t,F,(t=>n(43,f=t))),a(t,A,(t=>n(54,s=t))),a(t,j,(t=>n(49,v=t))),a(t,I,(t=>n(46,m=t))),a(t,W,(t=>n(48,g=t))),a(t,O,(t=>n(42,d=t))),a(t,G,(t=>n(39,l=t))),a(t,q,(t=>n(55,i=t))),a(t,Y,(t=>n(44,h=t))),a(t,X,(t=>n(9,w=t))),a(t,V,(t=>n(10,b=t))),a(t,J,(t=>n(47,$=t))),a(t,K,(t=>n(53,r=t))),a(t,Q,(t=>n(50,y=t))),a(t,Z,(t=>n(3,u=t))),a(t,tt,(t=>n(40,o=t))),a(t,et,(t=>n(41,c=t))),a(t,nt,(t=>n(11,k=t))),a(t,rt,(t=>n(45,p=t)));let ot=Ee(U.event.display)?1:0,st=0;function it(t,e){return!Ee(e)&&Gt(t)?e=>t({event:be(_),el:x,jsEvent:e,view:ae(o)}):void 0}return R((()=>{Gt(i)&&i({event:be(_),timeText:S,el:x,view:ae(o)})})),H((()=>{Gt(s)&&!Ee(C)&&Qt((()=>s({view:ae(o)})),"eau",lt)})),t.$$set=t=>{"chunk"in t&&n(33,U=t.chunk),"dayChunks"in t&&n(34,L=t.dayChunks),"longChunks"in t&&n(35,z=t.longChunks),"resource"in t&&n(36,N=t.resource)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&n(0,_=U.event),79&t.$$.dirty[0]|1041060&t.$$.dirty[1]){if(n(1,C=_.display),"slots"in U){let t=U.offset*y;n(2,st=U.slots*y),n(6,D=`left:${t}px;width:${st}px;`)}else n(2,st=100*U.days),n(6,D=`width:${st}%;`);let t=_.backgroundColor||Pe(_,$)||v||g,e=_.textColor||je(_,$)||m,r=ot;if(_._margin){let[t,e]=_._margin;N===e&&(r=t)}n(6,D+=`margin-top:${r}px;`),t&&n(6,D+=`background-color:${t};`),e&&n(6,D+=`color:${e};`),n(6,D+=_.styles.join(";")),n(5,T=[Se(C)?u.bgEvent:u.event,...p([],_),...we(h,_,o)].join(" "))}8&t.$$.dirty[0]|7684&t.$$.dirty[1]&&n(7,[S,E]=ge(U,f,d,u,c,o),E),2&t.$$.dirty[0]|256&t.$$.dirty[1]&&n(8,M=!Se(C)&&it(l,C))},[_,C,st,u,x,T,D,E,M,w,b,k,F,A,j,I,W,O,G,q,Y,X,V,J,K,Q,Z,tt,et,nt,rt,it,function(t,e){return t.action?n=>t.action.drag(_,n,e,e&&U.zeroDuration?_t(kt(_.end),r):void 0,[ot,N]):void 0},U,L,z,N,function(){if(!x)return 0;let t=oe(x);return n(38,ot=function(t,e,n,r,l){t.top=0,t.bottom=r;let o=1,s=t.date.getTime();n=n?.[s]??[];let i=[...e,...n];i.sort(((t,e)=>(t.top??0)-(e.top??0)||t.start-e.start||e.event.allDay-t.event.allDay));for(let e of i)if(e!==t&&(l||t.start<e.end&&t.end>e.start)&&t.top<e.bottom&&t.bottom>e.top){let n=e.bottom-t.top+1;o+=n,t.top+=n,t.bottom+=n}return o}(U,L,z,t,!Rt(r))),ot+t},ot,l,o,c,d,f,h,p,m,$,g,v,y,function(t){P[t?"unshift":"push"]((()=>{x=t,n(4,x)}))}]}class qo extends dt{constructor(t){super(),ut(this,t,Go,Oo,o,{chunk:33,dayChunks:34,longChunks:35,resource:36,reposition:37},null,[-1,-1])}get reposition(){return this.$$.ctx[37]}}function Yo(t,e,n){const r=t.slice();return r[34]=e[n],r[35]=e,r[36]=n,r}function Xo(t,e,n){const r=t.slice();return r[34]=e[n],r}function Vo(t,e){let n,r,l;return r=new qo({props:{chunk:e[34]}}),{key:t,first:null,c(){n=_(),it(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};256&n[0]&&(l.chunk=e[34]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function Jo(t){let e,n;return e=new qo({props:{chunk:t[3][t[13]]}}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};8200&n[0]&&(r.chunk=t[3][t[13]]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Ko(t,e){let n,r,l,o=e[36];const s=()=>e[30](r,o),i=()=>e[30](null,o);let a={chunk:e[34],dayChunks:e[7],longChunks:e[2],resource:e[1]};return r=new qo({props:a}),s(),{key:t,first:null,c(){n=_(),it(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){o!==(e=t)[36]&&(i(),o=e[36],s());const l={};128&n[0]&&(l.chunk=e[34]),128&n[0]&&(l.dayChunks=e[7]),4&n[0]&&(l.longChunks=e[2]),2&n[0]&&(l.resource=e[1]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),i(),ct(r,t)}}}function Qo(t){let e,n;return e=new qo({props:{chunk:t[3][0],resource:t[1]}}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};8&n[0]&&(r.chunk=t[3][0]),2&n[0]&&(r.resource=t[1]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Zo(t){let e,n,o,s,i,a,c,u,d,f,h=[],p=new Map,m=t[3][t[13]]&&t[23](t[3][t[13]]),$=[],w=new Map,k=t[3][0]&&t[23](t[3][0]),_=lt(t[8]);const T=t=>t[34].event;for(let e=0;e<_.length;e+=1){let n=Xo(t,_,e),r=T(n);p.set(r,h[e]=Vo(r,n))}let E=m&&Jo(t),M=lt(t[7]);const U=t=>t[34].event;for(let e=0;e<M.length;e+=1){let n=Yo(t,M,e),r=U(n);w.set(r,$[e]=Ko(r,n))}let L=k&&Qo(t);return{c(){e=b("div"),n=b("div");for(let t=0;t<h.length;t+=1)h[t].c();o=x(),E&&E.c(),s=x();for(let t=0;t<$.length;t+=1)$[t].c();i=x(),L&&L.c(),D(n,"class",a=t[14].events),D(e,"class",c=t[14].day+" "+t[14].weekdays?.[t[0].getUTCDay()]+(t[9]?" "+t[14].today:"")+(t[10]?" "+t[14].highlight:"")),S(e,"flex-grow",t[5]?null:jt((Rt(t[12].max)-Rt(t[12].min))/Rt(t[6]))),D(e,"role","cell")},m(r,a){v(r,e,a),g(e,n);for(let t=0;t<h.length;t+=1)h[t]&&h[t].m(n,null);g(n,o),E&&E.m(n,null),g(n,s);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(n,null);g(n,i),L&&L.m(n,null),t[31](e),u=!0,d||(f=[C(e,"pointerleave",(function(){l(t[15].pointer?.leave)&&t[15].pointer?.leave.apply(this,arguments)})),C(e,"pointerdown",(function(){l(t[15].action?.select)&&t[15].action?.select.apply(this,arguments)}))],d=!0)},p(r,l){t=r,256&l[0]&&(_=lt(t[8]),tt(),h=st(h,l,T,0,t,_,p,n,ot,Vo,o,Xo),et()),8200&l[0]&&(m=t[3][t[13]]&&t[23](t[3][t[13]])),m?E?(E.p(t,l),8200&l[0]&&nt(E,1)):(E=Jo(t),E.c(),nt(E,1),E.m(n,s)):E&&(tt(),rt(E,1,1,(()=>{E=null})),et()),2182&l[0]&&(M=lt(t[7]),tt(),$=st($,l,U,0,t,M,w,n,ot,Ko,i,Yo),et()),8&l[0]&&(k=t[3][0]&&t[23](t[3][0])),k?L?(L.p(t,l),8&l[0]&&nt(L,1)):(L=Qo(t),L.c(),nt(L,1),L.m(n,null)):L&&(tt(),rt(L,1,1,(()=>{L=null})),et()),(!u||16384&l[0]&&a!==(a=t[14].events))&&D(n,"class",a),(!u||17921&l[0]&&c!==(c=t[14].day+" "+t[14].weekdays?.[t[0].getUTCDay()]+(t[9]?" "+t[14].today:"")+(t[10]?" "+t[14].highlight:"")))&&D(e,"class",c),(!u||4192&l[0])&&S(e,"flex-grow",t[5]?null:jt((Rt(t[12].max)-Rt(t[12].min))/Rt(t[6])))},i(t){if(!u){for(let t=0;t<_.length;t+=1)nt(h[t]);nt(E);for(let t=0;t<M.length;t+=1)nt($[t]);nt(L),u=!0}},o(t){for(let t=0;t<h.length;t+=1)rt(h[t]);rt(E);for(let t=0;t<$.length;t+=1)rt($[t]);rt(L),u=!1},d(n){n&&y(e);for(let t=0;t<h.length;t+=1)h[t].d();E&&E.d();for(let t=0;t<$.length;t+=1)$[t].d();L&&L.d(),t[31](null),d=!1,r(f)}}}function ts(t,e,n){let r,l,o,s,i,c,u,d,f,h,p,m,{date:$}=e,{resource:g}=e,{chunks:v}=e,{bgChunks:y}=e,{longChunks:w}=e,{iChunks:b=[]}=e,{highlightedDates:k,slotDuration:x,slotWidth:_,theme:C,_interaction:T,_today:D,_dayTimeLimits:E}=B("state");a(t,k,(t=>n(27,o=t))),a(t,x,(t=>n(6,l=t))),a(t,_,(t=>n(32,r=t))),a(t,C,(t=>n(14,c=t))),a(t,T,(t=>n(15,u=t))),a(t,D,(t=>n(28,s=t))),a(t,E,(t=>n(29,i=t)));let S,M,U=[],L=1;function z(t){return Mt(t.date,$)}function R(t,e){return t=Pt(t)-Pt(re(d).left),{allDay:M,date:M?kt($):xt(xt(kt($),S.min),l,Pt(t/r)),resource:g,dayEl:d}}return t.$$set=t=>{"date"in t&&n(0,$=t.date),"resource"in t&&n(1,g=t.resource),"chunks"in t&&n(24,v=t.chunks),"bgChunks"in t&&n(25,y=t.bgChunks),"longChunks"in t&&n(2,w=t.longChunks),"iChunks"in t&&n(3,b=t.iChunks)},t.$$.update=()=>{536870913&t.$$.dirty[0]&&n(12,S=Io(i,$)),96&t.$$.dirty[0]&&(n(5,M=!Rt(l)),n(13,L=M?2:1)),16777216&t.$$.dirty[0]&&n(7,f=v.filter(z)),33554464&t.$$.dirty[0]&&n(8,h=y.filter((t=>(!M||t.event.allDay)&&z(t)))),268435457&t.$$.dirty[0]&&n(9,p=Mt($,s)),134217729&t.$$.dirty[0]&&n(10,m=o.some((t=>Mt(t,$)))),16&t.$$.dirty[0]&&d&&te(d,R)},[$,g,w,b,d,M,l,f,h,p,m,U,S,L,c,u,k,x,_,C,T,D,E,z,v,y,function(){return Wt(...Te(U,f))},o,s,i,function(t,e){P[t?"unshift":"push"]((()=>{U[e]=t,n(11,U)}))},function(t){P[t?"unshift":"push"]((()=>{d=t,n(4,d)}))}]}class es extends dt{constructor(t){super(),ut(this,t,ts,Zo,o,{date:0,resource:1,chunks:24,bgChunks:25,longChunks:2,iChunks:3,reposition:26},null,[-1,-1])}get reposition(){return this.$$.ctx[26]}}function ns(t,e,n){const r=t.slice();return r[27]=e[n],r[28]=e,r[29]=n,r}function rs(t){let e,n,r=t[29];const l=()=>t[23](e,r),o=()=>t[23](null,r);let s={date:t[27],resource:t[0],chunks:t[1],bgChunks:t[2],longChunks:t[4],iChunks:t[5]};return e=new es({props:s}),l(),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){r!==t[29]&&(o(),r=t[29],l());const s={};8&n&&(s.date=t[27]),1&n&&(s.resource=t[0]),2&n&&(s.chunks=t[1]),4&n&&(s.bgChunks=t[2]),16&n&&(s.longChunks=t[4]),32&n&&(s.iChunks=t[5]),e.$set(s)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ct(e,t)}}}function ls(t){let e,n,r,l,o,s=lt(t[3]),i=[];for(let e=0;e<s.length;e+=1)i[e]=rs(ns(t,s,e));const a=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=b("div");for(let t=0;t<i.length;t+=1)i[t].c();D(e,"class",n=t[8].days),S(e,"flex-basis",Wt(t[7],34)+"px"),D(e,"role","row")},m(n,s){v(n,e,s);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);r=!0,l||(o=C(window,"resize",t[16]),l=!0)},p(t,l){let[o]=l;if(127&o){let n;for(s=lt(t[3]),n=0;n<s.length;n+=1){const r=ns(t,s,n);i[n]?(i[n].p(r,o),nt(i[n],1)):(i[n]=rs(r),i[n].c(),nt(i[n],1),i[n].m(e,null))}for(tt(),n=s.length;n<i.length;n+=1)a(n);et()}(!r||256&o&&n!==(n=t[8].days))&&D(e,"class",n),(!r||128&o)&&S(e,"flex-basis",Wt(t[7],34)+"px")},i(t){if(!r){for(let t=0;t<s.length;t+=1)nt(i[t]);r=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);r=!1},d(t){t&&y(e),w(i,t),l=!1,o()}}}function os(t,e,n){let r,l,o,s,i,c,u,{resource:d}=e,{_viewDates:f,_events:h,_iEvents:p,_queue2:m,_resHs:$,_dayTimeLimits:g,slotDuration:v,theme:y}=B("state");a(t,f,(t=>n(3,o=t))),a(t,h,(t=>n(22,i=t))),a(t,p,(t=>n(21,s=t))),a(t,$,(t=>n(24,c=t))),a(t,g,(t=>n(20,l=t))),a(t,v,(t=>n(19,r=t))),a(t,y,(t=>n(8,u=t)));let w,b,k,x,_,C=[],T=[],D=0,E={};function S(){Jt((()=>{n(7,D=jt(Wt(...Te(T,o)))+10),c.set(d,D),$.set(c)}),E,m)}return t.$$set=t=>{"resource"in t&&n(0,d=t.resource)},t.$$.update=()=>{if(1048584&t.$$.dirty){n(17,x=o[0]);let t=Io(l,o.at(-1));n(18,_=t.max.seconds>yt?xt(kt(o.at(-1)),t.max):Ct(kt(o.at(-1))))}if(6160399&t.$$.dirty){n(1,w=[]),n(2,b=[]);for(let t of i)if(De(t,x,_,d)){let e=me(t,x,_);ve(e,r),Se(t.display)?b.push(e):w.push(e)}jo(b,o,l,r),n(4,k=jo(w,o,l,r)),S()}4063241&t.$$.dirty&&n(5,C=s.map((t=>{let e;return t&&De(t,x,_,d)?(e=me(t,x,_),jo([e],o,l,r)):e=null,e})))},[d,w,b,o,k,C,T,D,u,f,h,p,$,g,v,y,S,x,_,r,l,s,i,function(t,e){P[t?"unshift":"push"]((()=>{T[e]=t,n(6,T)}))}]}class ss extends dt{constructor(t){super(),ut(this,t,os,ls,o,{resource:0})}}function is(t,e,n){const r=t.slice();return r[26]=e[n],r}function as(t,e,n){const r=t.slice();return r[29]=e[n],r}function cs(t,e,n){const r=t.slice();return r[32]=e[n],r}function us(t){let e,n;return{c(){e=b("div"),D(e,"class",n=t[2].line)},m(t,n){v(t,e,n)},p(t,r){4&r[0]&&n!==(n=t[2].line)&&D(e,"class",n)},d(t){t&&y(e)}}}function ds(t){let e,n=lt(t[3][t[29].getTime()]),r=[];for(let e=0;e<n.length;e+=1)r[e]=us(cs(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=_()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);v(t,e,n)},p(t,l){if(14&l[0]){let o;for(n=lt(t[3][t[29].getTime()]),o=0;o<n.length;o+=1){const s=cs(t,n,o);r[o]?r[o].p(s,l):(r[o]=us(s),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){t&&y(e),w(r,t)}}}function fs(t){let e,n;return e=new ss({props:{resource:t[26]}}),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.resource=t[26]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function hs(t){let e,n,r,l,o,s,i,a,c,u,d=lt(t[1]),f=[];for(let e=0;e<d.length;e+=1)f[e]=ds(as(t,d,e));let h=lt(t[4]),p=[];for(let e=0;e<h.length;e+=1)p[e]=fs(is(t,h,e));const m=t=>rt(p[t],1,1,(()=>{p[t]=null}));return{c(){e=b("div"),n=b("div"),r=b("div");for(let t=0;t<f.length;t+=1)f[t].c();o=x();for(let t=0;t<p.length;t+=1)p[t].c();D(r,"class",l=t[2].lines),D(n,"class",s=t[2].content),D(e,"class",i=t[2].body)},m(l,s){v(l,e,s),g(e,n),g(n,r);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(r,null);g(n,o);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(n,null);t[18](e),a=!0,c||(u=C(e,"scroll",t[16]),c=!0)},p(t,o){if(14&o[0]){let e;for(d=lt(t[1]),e=0;e<d.length;e+=1){const n=as(t,d,e);f[e]?f[e].p(n,o):(f[e]=ds(n),f[e].c(),f[e].m(r,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=d.length}if((!a||4&o[0]&&l!==(l=t[2].lines))&&D(r,"class",l),16&o[0]){let e;for(h=lt(t[4]),e=0;e<h.length;e+=1){const r=is(t,h,e);p[e]?(p[e].p(r,o),nt(p[e],1)):(p[e]=fs(r),p[e].c(),nt(p[e],1),p[e].m(n,null))}for(tt(),e=h.length;e<p.length;e+=1)m(e);et()}(!a||4&o[0]&&s!==(s=t[2].content))&&D(n,"class",s),(!a||4&o[0]&&i!==(i=t[2].body))&&D(e,"class",i)},i(t){if(!a){for(let t=0;t<h.length;t+=1)nt(p[t]);a=!0}},o(t){p=p.filter(Boolean);for(let t=0;t<p.length;t+=1)rt(p[t]);a=!1},d(n){n&&y(e),w(f,n),w(p,n),t[18](null),c=!1,u()}}}function ps(t,e,n){let r,l,o,s,i,c,u,d,f,h,m,$,{_bodyEl:g,_headerEl:v,_sidebarEl:y,_dayTimes:w,_dayTimeLimits:b,_viewResources:k,_viewDates:x,scrollTime:_,slotDuration:C,slotWidth:T,theme:D}=B("state");return a(t,g,(t=>n(22,c=t))),a(t,v,(t=>n(24,d=t))),a(t,y,(t=>n(23,u=t))),a(t,w,(t=>n(3,h=t))),a(t,b,(t=>n(21,i=t))),a(t,k,(t=>n(4,m=t))),a(t,x,(t=>n(1,s=t))),a(t,_,(t=>n(17,o=t))),a(t,C,(t=>n(20,l=t))),a(t,T,(t=>n(19,r=t))),a(t,D,(t=>n(2,f=t))),t.$$.update=()=>{1&t.$$.dirty[0]&&p(g,c=$,c),131075&t.$$.dirty[0]&&$&&function(){let t=Io(i,s[0]);n(0,$.scrollLeft=(Rt(o)-Rt(t.min))/Rt(l)*r,$)}()},[$,s,f,h,m,g,v,y,w,b,k,x,_,C,T,D,function(){p(v,d.scrollLeft=c.scrollLeft,d),p(y,u.scrollTop=c.scrollTop,u)},o,function(t){P[t?"unshift":"push"]((()=>{$=t,n(0,$)}))}]}class ms extends dt{constructor(t){super(),ut(this,t,ps,hs,o,{},null,[-1,-1])}}function $s(t){let e,n,r,l,o,s,i,a,c,u;return n=new Uo({}),o=new Po({}),i=new ms({}),{c(){e=b("div"),it(n.$$.fragment),r=x(),l=b("div"),it(o.$$.fragment),s=x(),it(i.$$.fragment),D(l,"class",a=t[0].main),D(e,"class",c=t[0].container)},m(t,a){v(t,e,a),at(n,e,null),g(e,r),g(e,l),at(o,l,null),g(l,s),at(i,l,null),u=!0},p(t,n){let[r]=n;(!u||1&r&&a!==(a=t[0].main))&&D(l,"class",a),(!u||1&r&&c!==(c=t[0].container))&&D(e,"class",c)},i(t){u||(nt(n.$$.fragment,t),nt(o.$$.fragment,t),nt(i.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(o.$$.fragment,t),rt(i.$$.fragment,t),u=!1},d(t){t&&y(e),ct(n),ct(o),ct(i)}}}function gs(t,e,n){let r,{theme:l}=B("state");return a(t,l,(t=>n(0,r=t))),[r,l]}class vs extends dt{constructor(t){super(),ut(this,t,gs,$s,o,{})}}var ys={createOptions(t){t.buttonText.resourceTimelineDay="timeline",t.buttonText.resourceTimelineWeek="timeline",t.buttonText.resourceTimelineMonth="timeline",t.theme.expander="ec-expander",t.theme.main="ec-main",t.theme.times="ec-times",t.theme.container="ec-container",t.view="resourceTimelineWeek",t.views.resourceTimelineDay={buttonText:Ue,component:vs,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},slotDuration:"01:00",theme:Ne("ec-timeline ec-resource-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},t.views.resourceTimelineWeek={buttonText:Le,component:vs,displayEventEnd:!1,duration:{weeks:1},slotDuration:"01:00",theme:Ne("ec-timeline ec-resource-week-view")},t.views.resourceTimelineMonth={buttonText:ze,component:vs,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:Ne("ec-timeline ec-resource-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(t){"_viewResources"in t||(t._viewResources=qe(t)),t._headerEl=pt(void 0),t._dayTimeLimits=function(t){return mt([t.slotMinTime,t.slotMaxTime,t.flexibleSlotTimeLimits,t._viewDates,t._events],(t=>{let[e,n,r,l,o]=t,s={};for(let t of l)s[t.getTime()]=Xe(e,n,r,[t],o);return s}))}(t),t._dayTimes=function(t){return mt([t._viewDates,t.slotDuration,t._dayTimeLimits,t._intlSlotLabel],(t=>{let[e,n,r,l]=t,o={};for(let t of e){let e=t.getTime();o[e]=e in r?Ye(t,n,r[e],l):[]}return o}))}(t),t._nestedResources=function(t){return mt(t.resources,(t=>t.some((t=>ee(t).children.length))))}(t),t._resHs=pt(new Map),t._sidebarEl=pt(void 0)}};let ws=!1;function bs(t,e,n){return Wt(e,It(n,t))}const{window:ks}=$;function xs(e){let n,o;return{c:t,m(t,r){n||(o=[C(ks,"pointermove",e[33]),C(ks,"pointerup",e[34]),C(ks,"pointercancel",e[34]),C(ks,"scroll",e[0]),C(ks,"selectstart",Cs(e[35])),C(ks,"contextmenu",(function(){l(Cs(e[43]))&&Cs(e[43]).apply(this,arguments)})),C(ks,"touchstart",e[36]),C(ks,"touchmove",e[42],{passive:!1})],n=!0)},p(t,n){e=t},i:t,o:t,d(t){n=!1,r(o)}}}function _s(t){return t.isPrimary&&("mouse"!==t.pointerType||1&t.buttons)}function Cs(t){return e=>{t()&&e.preventDefault()}}function Ts(t,e,n){let r,l,o,s,i,c,u,d,f,h,m,$,g,v,y,w,b,k,x,_,C,T,D,E,S,M,U,L,z,R,H,N,A,P,j,I,W,O,G,q,Y,X,V,J,K,Q,Z,tt,et,nt,rt,lt,ot,st,it,at,ct,{_iEvents:ut,_iClass:dt,_events:ft,_view:ht,_dayGrid:pt,_draggable:mt,_bodyEl:$t,dateClick:gt,dragScroll:vt,datesAboveResources:yt,eventDragMinDistance:wt,eventDragStart:Dt,eventDragStop:Mt,eventDrop:Ut,eventLongPressDelay:Lt,eventResizeStart:Rt,eventResizeStop:Ht,eventResize:Nt,longPressDelay:Bt,selectable:At,select:Pt,selectBackgroundColor:jt,selectLongPressDelay:Ot,selectMinDistance:qt,slotDuration:Xt,slotHeight:Vt,slotWidth:Jt,unselect:Kt,unselectAuto:Qt,unselectCancel:Zt,view:te}=B("state");function ne(t){window.getSelection().removeAllRanges(),q=X=t.clientX,Y=V=t.clientY;let e=se(X,V);({allDay:et,date:I,resource:O}=ee(e)(X,V)),ue(u)?J=Q=L:(J=le(e,O?4:3),Q=le(e,O&&(1===N||U)?2:1)),de(),"mouse"!==t.pointerType&&n(1,it=setTimeout((()=>{N&&(A=!0,oe(t))}),($e()?M:S)??E))}function oe(t){if(A||t&&"mouse"===t.pointerType&&Math.sqrt(Math.pow(X-q,2)+Math.pow(V-Y,2))>=($e()?D:T)){A=!0,ve(t),p(dt,d=nt,d),s[0]||($e()?p(ut,s[0]={id:"{select}",allDay:P.allDay,start:P.start,title:"",display:"preview",extendedProps:{},backgroundColor:i,resourceIds:P.resourceIds,classNames:[],styles:[]},s):function(t,e){Gt(e)&&e({event:be(P),jsEvent:t,view:ae(r)});j=P.display,P.display="preview",p(ut,s[0]=ke(P),s),void 0!==ct&&p(ut,s[0]._margin=ct,s);P.display="ghost",ft.set(o)}(t,pe()?C:_));let e=se(bs(X,at[0],at[1]),bs(V,at[2],at[3]));if(e){let t;({allDay:t,date:W,resource:G}=ee(e)(X,V)),t===et&&(tt=bt((W-I)/1e3),me()?(p(ut,s[0].start=xt(kt(P.start),tt),s),s[0].start>rt&&(p(ut,s[0].start=rt,s),tt=bt((rt-P.start)/1e3))):(p(ut,s[0].end=xt(kt(P.end),tt),s),pe()?s[0].end<rt&&(p(ut,s[0].end=rt,s),tt=bt((rt-P.end)/1e3)):$e()?s[0].end<P.end?(p(ut,s[0].start=_t(s[0].end,lt),s),p(ut,s[0].end=P.end,s)):p(ut,s[0].start=P.start,s):(p(ut,s[0].start=xt(kt(P.start),tt),s),O&&(p(ut,s[0].resourceIds=P.resourceIds.filter((t=>t!==O.id)),s),s[0].resourceIds.push(G.id)))))}}if(x){let t=2*k,n=b;e=()=>{J&&(V<t&&window.scrollBy(0,Wt(-10,(V-t)/3)),V<K.top+t&&(J.scrollTop+=Wt(-10,(V-K.top-t)/3)),V>window.innerHeight-t&&window.scrollBy(0,It(10,(V-window.innerHeight+t)/3)),V>K.bottom-t&&(J.scrollTop+=It(10,(V-K.bottom+t)/3)),ue(u)&&(X<K.left+n&&(J.scrollLeft+=Wt(-10,(X-K.left-n)/3)),X>K.right-n&&(J.scrollLeft+=It(10,(X-K.right+n)/3))))},ws||(ws=!0,window.requestAnimationFrame((()=>{e(),ws=!1})))}var e}function de(){K=re(J),Z=re(Q),at=[Wt(0,Z.left+(ue(u)?1:c?0:8)),It(document.documentElement.clientWidth,Z.left+Q.clientWidth)-2,Wt(0,K.top),It(document.documentElement.clientHeight,K.top+J.clientHeight)-2]}function fe(){p(ut,s[0]=null,s)}function he(t,e){t.start=e.start,t.end=e.end,t.resourceIds=e.resourceIds,ft.set(o)}function pe(){return 2===N||me()}function me(){return 3===N}function $e(){return 4===N}function ge(){return N&&N<5}function ve(t){ot&&(ot=!1,fe(),Gt(l)&&l({jsEvent:t,view:ae(r)}))}a(t,ut,(t=>n(72,s=t))),a(t,dt,(t=>n(76,d=t))),a(t,ft,(t=>n(71,o=t))),a(t,ht,(t=>n(69,r=t))),a(t,pt,(t=>n(74,c=t))),a(t,mt,(t=>n(99,H=t))),a(t,$t,(t=>n(96,L=t))),a(t,gt,(t=>n(77,f=t))),a(t,vt,(t=>n(87,x=t))),a(t,yt,(t=>n(95,U=t))),a(t,wt,(t=>n(90,T=t))),a(t,Dt,(t=>n(88,_=t))),a(t,Mt,(t=>n(80,$=t))),a(t,Ut,(t=>n(78,h=t))),a(t,Lt,(t=>n(93,S=t))),a(t,Rt,(t=>n(89,C=t))),a(t,Ht,(t=>n(81,g=t))),a(t,Nt,(t=>n(79,m=t))),a(t,Bt,(t=>n(92,E=t))),a(t,At,(t=>n(98,R=t))),a(t,Pt,(t=>n(82,v=t))),a(t,jt,(t=>n(73,i=t))),a(t,Ot,(t=>n(94,M=t))),a(t,qt,(t=>n(91,D=t))),a(t,Xt,(t=>n(97,z=t))),a(t,Vt,(t=>n(86,k=t))),a(t,Jt,(t=>n(85,b=t))),a(t,Kt,(t=>n(70,l=t))),a(t,Qt,(t=>n(84,w=t))),a(t,Zt,(t=>n(83,y=t))),a(t,te,(t=>n(75,u=t))),ht.subscribe(ve);return[function(){ge()&&(de(),oe())},it,ut,dt,ft,ht,pt,mt,$t,gt,vt,yt,wt,Dt,Mt,Ut,Lt,Rt,Ht,Nt,Bt,At,Pt,jt,Ot,qt,Xt,Vt,Jt,Kt,Qt,Zt,te,function(t){ge()&&t.isPrimary&&(X=t.clientX,V=t.clientY,oe(t))},function(t){if(!ot||!w||y&&t.target.closest(y)||ve(t),N&&t.isPrimary){if(A)if($e()){if(ot=!0,Gt(v)){let{start:e,end:n}=be(s[0]);v({start:e,end:n,startStr:St(s[0].start),endStr:St(s[0].end),allDay:et,jsEvent:t,view:ae(r),resource:O})}}else{P.display=j;let e=pe()?g:$;Gt(e)&&e({event:be(P),jsEvent:t,view:ae(r)});let n=ke(P);if(he(P,s[0]),fe(),e=pe()?m:h,Gt(e)){let l,o=P;l=pe()?{endDelta:tt}:{delta:tt,oldResource:O!==G?O:void 0,newResource:O!==G?G:void 0},e(Ft(l,{event:be(P),oldEvent:be(n),jsEvent:t,view:ae(r),revert(){he(o,n)}}))}}else if((5===N||$e())&&Gt(f)&&!st){X=t.clientX,V=t.clientY;let e=se(X,V);if(e){let{allDay:n,date:l,resource:o}=ee(e)(X,V);f({allDay:n,date:Et(l),dateStr:St(l),dayEl:e,jsEvent:t,view:ae(r),resource:o})}}A=!1,N=q=Y=X=V=P=j=I=W=O=G=tt=et=p(dt,d=rt=lt=ct=void 0,d),J=Q=K=Z=void 0,it&&(clearTimeout(it),n(1,it=void 0))}st=!1},ge,function(t){if(ge()){let e=t.target,n=[],r=()=>Yt(n);n.push(ie(e,"touchmove",Cs((()=>A)))),n.push(ie(e,"touchend",r)),n.push(ie(e,"touchcancel",r))}},function(t,e,n,r,l){N||(N=_s(e)?n?"start"==n[1]?3:2:H(t)?1:6:6,ge()&&(P=t,ne(e),r&&(I=r),l&&(ct=l),nt=n?"x"==n[0]?"resizingX":"resizingY":"dragging",n&&(me()?(rt=kt(P.end),et?(zt(rt,P.start),rt>=P.end&&Tt(rt)):_t(rt,z)):(rt=kt(P.start),et?(zt(rt,P.end),rt<=P.start&&Ct(rt)):xt(rt,z))),oe(e)))},function(t){N||(N=_s(t)?R&&!ce(u)?4:5:6,ge()&&(ne(t),nt="selecting",lt=et?bt({day:1}):z,P={allDay:et,start:I,end:xt(kt(I),lt),resourceIds:O?[O.id]:[]},oe(t)))},function(){N||(N=6)},ve,function(){st=!0},function(e){F.call(this,t,e)},()=>it]}class Ds extends dt{constructor(t){super(),ut(this,t,Ts,xs,o,{drag:37,select:38,noAction:39,handleScroll:0,unselect:40,noClick:41},null,[-1,-1,-1,-1])}get drag(){return this.$$.ctx[37]}get select(){return this.$$.ctx[38]}get noAction(){return this.$$.ctx[39]}get handleScroll(){return this.$$.ctx[0]}get unselect(){return this.$$.ctx[40]}get noClick(){return this.$$.ctx[41]}}function Es(e){let n,l;return{c:t,m(t,r){n||(l=[C(window,"pointermove",e[3]),C(window,"scroll",e[0])],n=!0)},p:t,i:t,o:t,d(t){n=!1,r(l)}}}function Ss(t){return t.isPrimary&&"mouse"===t.pointerType}function Ms(t,e,n){let r,l,{_iEvents:o,slotDuration:s}=B("state");a(t,o,(t=>n(5,r=t))),a(t,s,(t=>n(8,l=t)));let i=0,c=0;function u(){let t=se(i,c);if(t){let{allDay:e,date:n,resource:s}=ee(t)(i,c),a=e?2:1;r[a]||function(t){p(o,r[t]={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]},r)}(a),p(o,r[a].start=n,r),p(o,r[a].end=xt(kt(n),l),r),p(o,r[a].resourceIds=s?[s.id]:[],r)}}function d(){p(o,r[1]=null,r),p(o,r[2]=null,r)}return t.$$.update=()=>{32&t.$$.dirty&&r[0]&&d()},[function(){u()},o,s,function(t){Ss(t)&&(i=t.clientX,c=t.clientY,u())},function(t){Ss(t)&&d()},r]}class Us extends dt{constructor(t){super(),ut(this,t,Ms,Es,o,{leave:4,handleScroll:0})}get leave(){return this.$$.ctx[4]}get handleScroll(){return this.$$.ctx[0]}}function Ls(t){let e,n,r,l;return{c(){e=b("div"),D(e,"class",n=t[2].resizer+(t[0]?" "+t[2].start:""))},m(n,o){v(n,e,o),r||(l=C(e,"pointerdown",t[11]),r=!0)},p(t,r){5&r&&n!==(n=t[2].resizer+(t[0]?" "+t[2].start:""))&&D(e,"class",n)},d(t){t&&y(e),r=!1,l()}}}function zs(e){let n,r=e[1]&&Ls(e);return{c(){r&&r.c(),n=_()},m(t,e){r&&r.m(t,e),v(t,n,e)},p(t,e){let[l]=e;t[1]?r?r.p(t,l):(r=Ls(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},i:t,o:t,d(t){t&&y(n),r&&r.d(t)}}}function Rs(t,e,n){let r,l,o,s,i,{event:c}=e,{start:u=!1}=e,{theme:d,eventDurationEditable:f,eventResizableFromStart:h,editable:p}=B("state");return a(t,d,(t=>n(2,s=t))),a(t,f,(t=>n(9,l=t))),a(t,h,(t=>n(10,o=t))),a(t,p,(t=>n(8,r=t))),t.$$set=t=>{"event"in t&&n(7,c=t.event),"start"in t&&n(0,u=t.start)},t.$$.update=()=>{1921&t.$$.dirty&&n(1,i=!Se(c.display)&&!Ee(c.display)&&(!u||o)&&((c.durationEditable??l)||(c.editable??r)))},[u,i,s,d,f,h,p,c,r,l,o,function(e){F.call(this,t,e)}]}class Hs extends dt{constructor(t){super(),ut(this,t,Rs,zs,o,{event:7,start:0})}}function Ns(t){let e,n;return e=new Us({props:{}}),t[16](e),{c(){it(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){e.$set({})},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(n){t[16](null),ct(e,n)}}}function Bs(t){let e,n,r,l;e=new Ds({props:{}}),t[15](e);let o=t[1]&&Ns(t);return{c(){it(e.$$.fragment),n=x(),o&&o.c(),r=_()},m(t,s){at(e,t,s),v(t,n,s),o&&o.m(t,s),v(t,r,s),l=!0},p(t,n){let[l]=n;e.$set({}),t[1]?o?(o.p(t,l),2&l&&nt(o,1)):(o=Ns(t),o.c(),nt(o,1),o.m(r.parentNode,r)):o&&(tt(),rt(o,1,1,(()=>{o=null})),et())},i(t){l||(nt(e.$$.fragment,t),nt(o),l=!0)},o(t){rt(e.$$.fragment,t),rt(o),l=!1},d(l){l&&(y(n),y(r)),t[15](null),ct(e,l),o&&o.d(l)}}}function Fs(t,e,n){let r,l,o,s,i,c,u,d,{theme:f,editable:h,eventStartEditable:m,pointer:$,_bodyEl:g,_interaction:v,_iClasses:y,_draggable:w}=B("state");function b(){for(let t of Object.values(r))t?.handleScroll?.()}return a(t,f,(t=>n(11,o=t))),a(t,h,(t=>n(13,c=t))),a(t,m,(t=>n(14,u=t))),a(t,$,(t=>n(1,d=t))),a(t,g,(t=>n(10,l=t))),a(t,v,(t=>n(0,r=t))),a(t,y,(t=>n(17,i=t))),a(t,w,(t=>n(12,s=t))),p(v,r.resizer=Hs,r),t.$$.update=()=>{24576&t.$$.dirty&&p(w,s=t=>(t.startEditable??u)||(t.editable??c),s),6144&t.$$.dirty&&p(y,i=(t,e)=>{let{display:n}=e;return Ee(n)?[o[n]]:!Se(n)&&s(e)?[o.draggable]:[]},i),1024&t.$$.dirty&&l&&ie(l,"scroll",b)},[r,d,f,h,m,$,g,v,y,w,l,o,s,c,u,function(t){P[t?"unshift":"push"]((()=>{r.action=t,v.set(r)}))},function(t){P[t?"unshift":"push"]((()=>{r.pointer=t,v.set(r)}))}]}class As extends dt{constructor(t){super(),ut(this,t,Fs,Bs,o,{})}}var Ps={createOptions(t){t.dateClick=void 0,t.dragScroll=!0,t.editable=!1,t.eventDragMinDistance=5,t.eventDragStart=void 0,t.eventDragStop=void 0,t.eventDrop=void 0,t.eventDurationEditable=!0,t.eventLongPressDelay=void 0,t.eventResizableFromStart=!1,t.eventResizeStart=void 0,t.eventResizeStop=void 0,t.eventResize=void 0,t.eventStartEditable=!0,t.longPressDelay=1e3,t.pointer=!1,t.select=void 0,t.selectBackgroundColor=void 0,t.selectLongPressDelay=void 0,t.selectMinDistance=5,t.unselect=void 0,t.unselectAuto=!0,t.unselectCancel="",t.theme.draggable="ec-draggable",t.theme.ghost="ec-ghost",t.theme.preview="ec-preview",t.theme.pointer="ec-pointer",t.theme.resizer="ec-resizer",t.theme.start="ec-start",t.theme.dragging="ec-dragging",t.theme.resizingY="ec-resizing-y",t.theme.resizingX="ec-resizing-x",t.theme.selecting="ec-selecting"},createStores(t){t._draggable=pt(Xt),t._auxiliary.update((t=>[...t,As]))}};return class extends Sn{constructor(t,e){super({target:t,props:{plugins:[fr,Ur,Hl,po,ys,Ps],options:e}})}}}();
5
+ var EventCalendar=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function l(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),l=1;l<n;l++)r[l-1]=arguments[l];if(null==e){for(const t of r)t(void 0);return t}const o=e.subscribe(...r);return o.unsubscribe?()=>o.unsubscribe():o}function s(t){let e;return i(t,(t=>e=t))(),e}function a(t,e,n){t.$$.on_destroy.push(i(e,n))}function c(t,e,n,r){if(t){const l=u(t,e,n,r);return t[0](l)}}function u(t,e,n,r){return t[1]&&r?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}function d(t,e,n,r){if(t[2]&&r){const l=t[2](r(n));if(void 0===e.dirty)return l;if("object"==typeof l){const t=[],n=Math.max(e.dirty.length,l.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|l[r];return t}return e.dirty|l}return e.dirty}function f(t,e,n,r,l,o){if(l){const i=u(e,n,r,o);t.p(i,l)}}function h(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function m(t,e,n){return t.set(n),e}function p(e){return e&&l(e.destroy)?e.destroy:t}const $="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function g(t,e){t.appendChild(e)}function v(t,e,n){t.insertBefore(e,n||null)}function y(t){t.parentNode&&t.parentNode.removeChild(t)}function w(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function b(t){return document.createElement(t)}function k(t){return document.createTextNode(t)}function x(){return k(" ")}function C(){return k("")}function _(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function D(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function T(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function E(t,e){e=""+e,t.data!==e&&(t.data=e)}function S(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function M(t,e){return new t(e)}let U;function N(t){U=t}function R(){if(!U)throw new Error("Function called outside component initialization");return U}function L(t){R().$$.on_mount.push(t)}function z(t){R().$$.after_update.push(t)}function H(){const t=R();return function(e,n){let{cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const l=t.$$.callbacks[e];if(l){const o=function(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}(e,n,{cancelable:r});return l.slice().forEach((e=>{e.call(t,o)})),!o.defaultPrevented}return!0}}function B(t){return R().$$.context.get(t)}function F(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const A=[],P=[];let j=[];const W=[],I=Promise.resolve();let O=!1;function G(){O||(O=!0,I.then(J))}function Y(){return G(),I}function q(t){j.push(t)}const X=new Set;let V=0;function J(){if(0!==V)return;const t=U;do{try{for(;V<A.length;){const t=A[V];V++,N(t),K(t.$$)}}catch(t){throw A.length=0,V=0,t}for(N(null),A.length=0,V=0;P.length;)P.pop()();for(let t=0;t<j.length;t+=1){const e=j[t];X.has(e)||(X.add(e),e())}j.length=0}while(A.length);for(;W.length;)W.pop()();O=!1,X.clear(),N(t)}function K(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(q)}}const Q=new Set;let Z;function tt(){Z={r:0,c:[],p:Z}}function et(){Z.r||r(Z.c),Z=Z.p}function nt(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function rt(t,e,n,r){if(t&&t.o){if(Q.has(t))return;Q.add(t),Z.c.push((()=>{Q.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}function lt(t){return void 0!==t?.length?t:Array.from(t)}function ot(t,e){rt(t,1,1,(()=>{e.delete(t.key)}))}function it(t,e,n,l,o,i,s,a,c,u,d,f){let h=t.length,m=i.length,p=h;const $={};for(;p--;)$[t[p].key]=p;const g=[],v=new Map,y=new Map,w=[];for(p=m;p--;){const t=f(o,i,p),r=n(t);let l=s.get(r);l?w.push((()=>l.p(t,e))):(l=u(r,t),l.c()),v.set(r,g[p]=l),r in $&&y.set(r,Math.abs(p-$[r]))}const b=new Set,k=new Set;function x(t){nt(t,1),t.m(a,d),s.set(t.key,t),d=t.first,m--}for(;h&&m;){const e=g[m-1],n=t[h-1],r=e.key,l=n.key;e===n?(d=e.first,h--,m--):v.has(l)?!s.has(r)||b.has(r)?x(e):k.has(l)?h--:y.get(r)>y.get(l)?(k.add(r),x(e)):(b.add(l),h--):(c(n,s),h--)}for(;h--;){const e=t[h];v.has(e.key)||c(e,s)}for(;m;)x(g[m-1]);return r(w),g}function st(t){t&&t.c()}function at(t,n,o){const{fragment:i,after_update:s}=t.$$;i&&i.m(n,o),q((()=>{const n=t.$$.on_mount.map(e).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...n):r(n),t.$$.on_mount=[]})),s.forEach(q)}function ct(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];j.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),j=e}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ut(e,l,o,i,s,a){let c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=U;N(e);const f=e.$$={fragment:null,ctx:[],props:a,update:t,not_equal:s,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l.context||(d?d.$$.context:[])),callbacks:n(),dirty:u,skip_bound:!1,root:l.target||d.$$.root};c&&c(f.root);let h=!1;if(f.ctx=o?o(e,l.props||{},(function(t,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&s(f.ctx[t],f.ctx[t]=r)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](r),h&&function(t,e){-1===t.$$.dirty[0]&&(A.push(t),G(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(e,t)),n})):[],f.update(),h=!0,r(f.before_update),f.fragment=!!i&&i(f.ctx),l.target){if(l.hydrate){const t=function(t){return Array.from(t.childNodes)}(l.target);f.fragment&&f.fragment.l(t),t.forEach(y)}else f.fragment&&f.fragment.c();l.intro&&nt(e.$$.fragment),at(e,l.target,l.anchor),J()}N(d)}class dt{$$=void 0;$$set=void 0;$destroy(){ct(this,1),this.$destroy=t}$on(e,n){if(!l(n))return t;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ft=[];function ht(t,e){return{subscribe:mt(t,e).subscribe}}function mt(e){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;const l=new Set;function i(t){if(o(e,t)&&(e=t,n)){const t=!ft.length;for(const t of l)t[1](),ft.push(t,e);if(t){for(let t=0;t<ft.length;t+=2)ft[t][0](ft[t+1]);ft.length=0}}}function s(t){i(t(e))}return{set:i,update:s,subscribe:function(o){const a=[o,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t];return l.add(a),1===l.size&&(n=r(i,s)||t),o(e),()=>{l.delete(a),0===l.size&&n&&(n(),n=null)}}}}function pt(e,n,o){const s=!Array.isArray(e),a=s?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const c=n.length<2;return ht(o,((e,o)=>{let u=!1;const d=[];let f=0,h=t;const m=()=>{if(f)return;h();const r=n(s?d[0]:d,e,o);c?e(r):h=l(r)?r:t},p=a.map(((t,e)=>i(t,(t=>{d[e]=t,f&=~(1<<e),u&&m()}),(()=>{f|=1<<e}))));return u=!0,m(),function(){r(p),h(),u=!1}}))}function $t(t){return function(e){return"Enter"===e.key||" "===e.key&&!e.preventDefault()?t.call(this,e):void 0}}function gt(t,e){let n={update(e){"string"==typeof e?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}};return n.update(e),n}function vt(t,e){const n=n=>{t&&!t.contains(n.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:n}}))};return document.addEventListener(e,n,!0),{destroy(){document.removeEventListener(e,n,!0)}}}const yt=86400;function wt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return void 0!==t?t instanceof Date?Bt(t):function(t){const e=t.match(/\d+/g);return new Date(Date.UTC(Number(e[0]),Number(e[1])-1,Number(e[2]),Number(e[3]||0),Number(e[4]||0),Number(e[5]||0)))}(t):Bt(new Date)}function bt(t){if("number"==typeof t)t={seconds:t};else if("string"==typeof t){let e=0,n=2;for(let r of t.split(":",3))e+=parseInt(r,10)*Math.pow(60,n--);t={seconds:e}}else t instanceof Date&&(t={hours:t.getUTCHours(),minutes:t.getUTCMinutes(),seconds:t.getUTCSeconds()});let e=t.weeks||t.week||0;return{years:t.years||t.year||0,months:t.months||t.month||0,days:7*e+(t.days||t.day||0),seconds:60*(t.hours||t.hour||0)*60+60*(t.minutes||t.minute||0)+(t.seconds||t.second||0),inWeeks:!!e}}function kt(t){return new Date(t.getTime())}function xt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.setUTCFullYear(t.getUTCFullYear()+n*e.years);let r=t.getUTCMonth()+n*e.months;for(t.setUTCMonth(r),r%=12,r<0&&(r+=12);t.getUTCMonth()!==r;)Dt(t);return t.setUTCDate(t.getUTCDate()+n*e.days),t.setUTCSeconds(t.getUTCSeconds()+n*e.seconds),t}function Ct(t,e){return xt(t,e,-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1))}function _t(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t.setUTCDate(t.getUTCDate()+e),t}function Dt(t){return _t(t,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function Tt(t){return t.setUTCHours(0,0,0,0),t}function Et(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())}function St(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:19;return t.toISOString().substring(0,e)}function Mt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.every((e=>t.getTime()===e.getTime()))}function Ut(t,e){let n=e-t.getUTCDay();return t.setUTCDate(t.getUTCDate()+(n<=0?n:n-7)),t}function Nt(t){return"string"==typeof t&&t.length<=10}function Rt(t,e){return t.setUTCHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),0),t}function Lt(t){return t.seconds}function zt(t,e){return xt(t,e),t}function Ht(t,e,n){if(Ct(t,e),n.length&&n.length<7)for(;n.includes(t.getUTCDay());)Dt(t);return t}function Bt(t){return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()))}function Ft(){return Object.assign(...arguments)}function At(t){return Object.keys(t)}function Pt(t){return Math.floor(t)}function jt(t){return Math.ceil(t)}function Wt(){return Math.min(...arguments)}function It(){return Math.max(...arguments)}function Ot(t){return Array.isArray(t)}function Gt(t){return"function"==typeof t}function Yt(t){return t()}function qt(t){t.forEach(Yt)}function Xt(){}const Vt=t=>t;function Jt(t,e,n){n.update((n=>n.set(e,t)))}function Kt(t){qt(t),t.clear()}function Qt(t,e,n){e??=t,n.has(e)||n.set(e,setTimeout((()=>{n.delete(e),t()})))}let Zt=Symbol("ec");function te(t,e){t[Zt]=e}function ee(t){return t[Zt]}function ne(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],l=document.createElement(t);l.className=e,"string"==typeof n?l.innerText=n:n.domNodes?l.replaceChildren(...n.domNodes):n.html&&(l.innerHTML=n.html);for(let t of r)l.setAttribute(...t);return l}function re(t){return t.getBoundingClientRect()}function le(t,e){for(;e--;)t=t.parentElement;return t}function oe(t){return re(t).height}function ie(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;for(let l of n.elementsFromPoint(t,e)){if(r=l,r?.[Zt])return l;if(l.shadowRoot){let n=ie(t,e,l.shadowRoot);if(n)return n}}var r;return null}function se(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function ae(t){return(t=Ft({},t)).currentStart=Et(t.currentStart),t.currentEnd=Et(t.currentEnd),t.activeStart=Et(t.activeStart),t.activeEnd=Et(t.activeEnd),t}function ce(t){return t.startsWith("list")}function ue(t){return t.includes("Timeline")}let de=1;function fe(t){return t.map((t=>{let e={id:"id"in t?String(t.id):`{generated-${de++}}`,resourceIds:he(t,"resourceId").map(String),allDay:t.allDay??(Nt(t.start)&&Nt(t.end)),start:wt(t.start),end:wt(t.end),title:t.title??"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display??"auto",extendedProps:t.extendedProps??{},backgroundColor:t.backgroundColor??t.color,textColor:t.textColor,classNames:he(t,"className"),styles:he(t,"style")};if(e.allDay){Tt(e.start);let t=kt(e.end);Tt(e.end),Mt(e.end,t)&&!Mt(e.end,e.start)||_t(e.end)}return e}))}function he(t,e){let n=t[e+"s"]??t[e]??[];return Ot(n)?n:[n]}function me(t){return t.map((t=>({events:t.events,url:t.url&&t.url.trimEnd("&")||"",method:t.method&&t.method.toUpperCase()||"GET",extraParams:t.extraParams||{}})))}function pe(t,e,n){let r={start:t.start>e?t.start:e,end:t.end<n?t.end:n,event:t};return r.zeroDuration=Mt(r.start,r.end),r}function $e(t){t.sort(((t,e)=>t.start-e.start||e.event.allDay-t.event.allDay))}function ge(t,e,n,r,l,o){let i,s=l.formatRange(t.start,e&&"pointer"!==t.event.display&&!t.zeroDuration?Rt(kt(t.start),t.end):t.start);if(n&&(i=Gt(n)?n({event:we(t.event),timeText:s,view:ae(o)}):n),void 0===i){let e;switch(t.event.display){case"background":e=[];break;case"pointer":e=[ve(s,t,r)];break;default:e=[...t.event.allDay?[]:[ve(s,t,r)],ne("h4",r.eventTitle,t.event.title)]}i={domNodes:e}}return[s,i]}function ve(t,e,n){return ne("time",n.eventTime,t,[["datetime",St(e.start)]])}function ye(t,e,n){let r=e.classNames;return t&&(Gt(t)&&(t=t({event:we(e),view:ae(n)})),r=[...Ot(t)?t:[t],...r]),r}function we(t){return ke(t,Et)}function be(t){return ke(t,kt)}function ke(t,e){return(t=Ft({},t)).start=e(t.start),t.end=e(t.end),t}function xe(t,e){let n={};if(t.length){let r;$e(t);for(let l of t){let t=[],o=Tt(kt(l.start));for(;l.end>o;){if(!e.includes(o.getUTCDay())&&(t.push(kt(o)),t.length>1)){let t=o.getTime();n[t]?n[t].chunks.push(l):n[t]={sorted:!1,chunks:[l]}}_t(o)}if(t.length){l.date=t[0],l.days=t.length,l.dates=t,l.start<t[0]&&(l.start=t[0]);let e=_t(kt(t.at(-1)));l.end>e&&(l.end=e)}else l.date=Tt(kt(l.start)),l.days=1,l.dates=[l.date];r&&Mt(r.date,l.date)&&(l.prev=r),r=l}}return n}function Ce(t,e,n){t.top=0,t.prev&&(t.top=t.prev.bottom+1),t.bottom=t.top+n;let r=1,l=t.date.getTime();if(e[l]){e[l].sorted||(e[l].chunks.sort(((t,e)=>t.top-e.top)),e[l].sorted=!0);for(let n of e[l].chunks)if(t.top<n.bottom&&t.bottom>n.top){let e=n.bottom-t.top+1;r+=e,t.top+=e,t.bottom+=e}}return r}function _e(t,e){t.length=e.length;let n=[];for(let e of t)n.push(e?.reposition?.());return n}function De(t,e,n,r){return t.start<n&&t.end>e&&(!r||(Ot(r)||(r=[r]),r.some((e=>t.resourceIds.includes(e.id)))))}function Te(t){return function(t){return"preview"===t}(t)||Se(t)||function(t){return"pointer"===t}(t)}function Ee(t){return"background"===t}function Se(t){return"ghost"===t}function Me(t){return Le(t,"day")}function Ue(t){return Le(t,"week")}function Ne(t){return Le(t,"month")}function Re(t){return Le(t,"year")}function Le(t,e){return{...t,next:"Next "+e,prev:"Previous "+e}}function ze(t){return e=>({...e,view:t})}function He(t){let e,n;return t&&(({start:e,end:n}=t),e&&(e=Tt(wt(e))),n&&(n=Tt(wt(n)))),{start:e,end:n}}function Be(t,e){return e.start&&t<e.start||e.end&&t>e.end}function Fe(t,e){return e.start&&t<e.start&&(t=e.start),e.end&&t>e.end&&(t=e.end),t}function Ae(t){let e=[];return Pe(t,0,e),e}function Pe(t,e,n){let r=[];for(let l of t){let t=je(l);r.push(t),n.push(t);let o={level:e,children:[],expanded:!0,hidden:!1};te(t,o),l.children&&(o.children=Pe(l.children,e+1,n))}return r}function je(t){return{id:String(t.id),title:t.title||"",eventBackgroundColor:t.eventBackgroundColor,eventTextColor:t.eventTextColor,extendedProps:t.extendedProps??{}}}function We(t,e){return Oe(t,e)?.eventBackgroundColor}function Ie(t,e){return Oe(t,e)?.eventTextColor}function Oe(t,e){return e.find((e=>t.resourceIds.includes(e.id)))}function Ge(t,e){return pt([t,e],(t=>{let[e,n]=t,r=Gt(n)?{format:n}:new Intl.DateTimeFormat(e,n);return{format:t=>r.format(Et(t))}}))}function Ye(t,e){return pt([t,e],(t=>{let e,[n,r]=t;if(Gt(r))e=r;else{let t=new Intl.DateTimeFormat(n,r);e=(e,n)=>{if(e<=n)return t.formatRange(e,n);{let r=t.formatRangeToParts(n,e),l="",o=["startRange","endRange"],i=[!1,!1];for(let t of r){let e=o.indexOf(t.source);e>=0?i[e]||(l+=qe(o[1-e],r),i[e]=!0):l+=t.value}return l}}}return{formatRange:(t,n)=>e(Et(t),Et(n))}}))}function qe(t,e){let n="";for(let r of e)r.source==t&&(n+=r.value);return n}function Xe(t){return pt([t.resources,t.filterResourcesWithEvents,t._events,t._activeRange],(t=>{let[e,n,r,l]=t,o=e.filter((t=>!ee(t).hidden));return n&&(o=e.filter((t=>{for(let e of r)if("background"!==e.display&&e.resourceIds.includes(t.id)&&e.start<l.end&&e.end>l.start)return!0;return!1}))),o.length||(o=Ae([{}])),o}))}function Ve(t,e,n,r){t=kt(t);let l=e.seconds<3600,o=[],i=kt(t),s=1;for(xt(t,n.min),xt(i,n.max);t<i;)o.push([St(t),r.format(t),o.length&&(s||!l)]),xt(t,e),s=1-s;return o}function Je(t,e,n,r,l){let o=bt(t),i=bt(e);if(n){let t=bt(Wt(Lt(o),It(0,Lt(i)-yt))),e=bt(It(Lt(i),Lt(t)+yt)),s=Gt(n?.eventFilter)?n.eventFilter:t=>!Ee(t.display);t:for(let n of r){let r=xt(kt(n),o),a=xt(kt(n),i),c=xt(kt(n),t),u=xt(kt(n),e);for(let d of l)if(!d.allDay&&s(d)&&d.start<u&&d.end>c){if(d.start<r){let e=It((d.start-n)/1e3,Lt(t));e<Lt(o)&&(o.seconds=e)}if(d.end>a){let t=Wt((d.end-n)/1e3,Lt(e));t>Lt(i)&&(i.seconds=t)}if(Lt(o)===Lt(t)&&Lt(i)===Lt(e))break t}}}return{min:o,max:i}}class Ke{constructor(t,e){let n=function(t){let e={allDayContent:void 0,allDaySlot:!0,buttonText:{today:"today"},customButtons:{},date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventTextColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventSources:[],eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,filterResourcesWithEvents:!1,firstDay:0,flexibleSlotTimeLimits:!1,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,nowIndicator:!1,resourceLabelContent:void 0,resourceLabelDidMount:void 0,resources:[],selectable:!1,scrollTime:"06:00:00",slotDuration:"00:30:00",slotEventOverlap:!0,slotHeight:24,slotLabelFormat:{hour:"numeric",minute:"2-digit"},slotMaxTime:"24:00:00",slotMinTime:"00:00:00",slotWidth:72,theme:{allDay:"ec-all-day",active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",compact:"ec-compact",content:"ec-content",day:"ec-day",dayHead:"ec-day-head",days:"ec-days",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",extra:"ec-extra",handle:"ec-handle",header:"ec-header",hiddenScroll:"ec-hidden-scroll",highlight:"ec-highlight",icon:"ec-icon",line:"ec-line",lines:"ec-lines",nowIndicator:"ec-now-indicator",otherMonth:"ec-other-month",resource:"ec-resource",sidebar:"ec-sidebar",sidebarTitle:"ec-sidebar-title",today:"ec-today",time:"ec-time",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"],withScroll:"ec-with-scroll"},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let n of t)n.createOptions?.(e);return e}(t=t||[]),r=function(t){let e={date:t=>Tt(wt(t)),duration:bt,events:fe,eventSources:me,hiddenDays:t=>[...new Set(t)],highlightedDates:t=>t.map((t=>Tt(wt(t)))),resources:Ae,scrollTime:bt,slotDuration:bt,slotMaxTime:bt,slotMinTime:bt,validRange:He};for(let n of t)n.createParsers?.(e);return e}(t);n=Qe(n,r),e=Qe(e,r);for(let[t,e]of Object.entries(n))this[t]=mt(e);this._queue=mt(new Map),this._queue2=mt(new Map),this._tasks=new Map,this._auxiliary=mt([]),this._dayGrid=pt(this.view,(t=>t?.startsWith("dayGrid"))),this._currentRange=function(t){return pt([t.date,t.duration,t.firstDay],(t=>{let e,[n,r,l]=t,o=kt(n);return r.months?o.setUTCDate(1):r.inWeeks&&Ut(o,l),e=xt(kt(o),r),{start:o,end:e}}))}(this),this._activeRange=function(t){return pt([t._currentRange,t.firstDay,t.slotMaxTime,t._dayGrid],(t=>{let[e,n,r,l]=t,o=kt(e.start),i=kt(e.end);if(l)Ut(o,n),function(t,e){let n=e-t.getUTCDay();t.setUTCDate(t.getUTCDate()+(n>=0?n:n+7))}(i,n);else if(r.days||r.seconds>yt){xt(Dt(i),r);let t=Dt(kt(i));t<o&&(o=t)}return{start:o,end:i}}))}(this),this._fetchedRange=mt({start:void 0,end:void 0}),this._events=function(t){let e,n=mt([]),r=0,l={};return pt([t.events,t.eventSources,t._activeRange,t._fetchedRange,t.lazyFetching,t.loading],((n,o)=>Jt((()=>{let[t,l,i,s,a,c]=n;if(l.length){if(!s.start||s.start>i.start||s.end<i.end||!a){e&&e.abort(),e=new AbortController,Gt(c)&&!r&&c(!0);let t=()=>{0==--r&&Gt(c)&&c(!1)},n=[],a=e=>t(),u=e=>{n=n.concat(fe(e)),o(n),t()},d=St(i.start),f=St(i.end);for(let t of l){if(Gt(t.events)){let e=t.events({start:Et(i.start),end:Et(i.end),startStr:d,endStr:f},u,a);void 0!==e&&Promise.resolve(e).then(u,a)}else{let n=Gt(t.extraParams)?t.extraParams():Ft({},t.extraParams);n.start=d,n.end=f,n=new URLSearchParams(n);let r,l=t.url,o={};["GET","HEAD"].includes(t.method)?l+=(l.includes("?")?"&":"?")+n:(o["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",r=String(n)),fetch(l,{method:t.method,headers:o,body:r,signal:e.signal,credentials:"same-origin"}).then((t=>t.json())).then(u).catch(a)}++r}s.start=i.start,s.end=i.end}}else o(t)}),l,t._queue)),[]).subscribe(n.set),n}(this),this._now=ht(wt(),(t=>{let e=setInterval((()=>{t(wt())}),1e3);return()=>clearInterval(e)})),this._today=function(t){return pt(t._now,(t=>Tt(kt(t))))}(this),this._intlEventTime=Ye(this.locale,this.eventTimeFormat),this._intlSlotLabel=Ge(this.locale,this.slotLabelFormat),this._intlDayHeader=Ge(this.locale,this.dayHeaderFormat),this._intlDayHeaderAL=Ge(this.locale,this.dayHeaderAriaLabelFormat),this._intlTitle=Ye(this.locale,this.titleFormat),this._bodyEl=mt(void 0),this._scrollable=mt(!1),this._viewTitle=function(t){return pt([t.date,t._activeRange,t._intlTitle,t._dayGrid],(t=>{let[e,n,r,l]=t;return l?r.formatRange(e,e):r.formatRange(n.start,Dt(kt(n.end)))}))}(this),this._viewDates=function(t){return pt([t._activeRange,t.hiddenDays],(e=>{let[n,r]=e,l=[],o=Tt(kt(n.start)),i=Tt(kt(n.end));for(;o<i;)r.includes(o.getUTCDay())||l.push(kt(o)),_t(o);return!l.length&&r.length&&r.length<7&&(t.date.update((t=>{for(;r.includes(t.getUTCDay());)_t(t);return t})),l=s(t._viewDates)),l}))}(this),this._view=function(t){return pt([t.view,t._viewTitle,t._currentRange,t._activeRange],(t=>function(t,e,n,r){return{type:t,title:e,currentStart:n.start,currentEnd:n.end,activeStart:r.start,activeEnd:r.end,calendar:void 0}}(...t)))}(this),this._viewComponent=mt(void 0),this._interaction=mt({}),this._iEvents=mt([null,null]),this._iClasses=mt(Vt),this._iClass=mt(void 0),this._set=(t,e)=>{en(t,this)&&(r[t]&&(e=r[t](e)),this[t].set(e))},this._get=t=>en(t,this)?s(this[t]):void 0;for(let e of t)e.createStores?.(this);e.view&&this.view.set(e.view);let l=new Set([...At(n.views),...At(e.views??{})]);for(let t of l){let r=Ze(n,n.views[t]??{}),l=Ze(r,e,e.views?.[t]??{}),o=l.component;tn(l,this);for(let t of At(l)){let{set:e,_set:n=e,...o}=this[t];this[t]={set:["buttonText","theme"].includes(t)?o=>{if(Gt(o)){let i=o(r[t]);l[t]=i,e(e===n?i:o)}else l[t]=o,e(o)}:n=>{l[t]=n,e(n)},_set:n,...o}}this.view.subscribe((e=>{if(e===t){this._viewComponent.set(o),Gt(l.viewDidMount)&&Y().then((()=>l.viewDidMount(s(this._view))));for(let t of At(l))this[t]._set(l[t])}}))}}}function Qe(t,e){let n={...t};for(let t of At(e))t in n&&(n[t]=e[t](n[t]));if(t.views){n.views={};for(let r of At(t.views))n.views[r]=Qe(t.views[r],e)}return n}function Ze(){let t={};for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(let e of n){let n={};for(let r of["buttonText","theme"])Gt(e[r])&&(n[r]=e[r](t[r]));t={...t,...e,...n}}return t}function tn(t,e){At(t).filter((t=>!en(t,e)||"view"==t)).forEach((e=>delete t[e]))}function en(t,e){return e.hasOwnProperty(t)&&"_"!==t[0]}function nn(t,e,n){const r=t.slice();return r[34]=e[n],r}function rn(t){let e,n,r,l,o,i=t[7][t[34]]+"";function s(){return t[29](t[34])}return{c(){e=b("button"),n=k(i),T(e,"class",r=t[5].button+(t[9]===t[34]?" "+t[5].active:"")+" ec-"+t[34])},m(t,r){v(t,e,r),g(e,n),l||(o=_(e,"click",s),l=!0)},p(l,o){t=l,129&o[0]&&i!==(i=t[7][t[34]]+"")&&E(n,i),545&o[0]&&r!==(r=t[5].button+(t[9]===t[34]?" "+t[5].active:"")+" ec-"+t[34])&&T(e,"class",r)},d(t){t&&y(e),l=!1,o()}}}function ln(t){let e,n,o,i,s;return{c(){e=b("button"),T(e,"class",n=t[5].button+" ec-"+t[34]+(t[8][t[34]].active?" "+t[5].active:""))},m(n,r){v(n,e,r),i||(s=[_(e,"click",(function(){l(t[8][t[34]].click)&&t[8][t[34]].click.apply(this,arguments)})),p(o=gt.call(null,e,t[8][t[34]].text))],i=!0)},p(r,i){t=r,289&i[0]&&n!==(n=t[5].button+" ec-"+t[34]+(t[8][t[34]].active?" "+t[5].active:""))&&T(e,"class",n),o&&l(o.update)&&257&i[0]&&o.update.call(null,t[8][t[34]].text)},d(t){t&&y(e),i=!1,r(s)}}}function on(t){let e,n,r,l,o,i=t[7][t[34]]+"";return{c(){e=b("button"),n=k(i),T(e,"class",r=t[5].button+" ec-"+t[34]),e.disabled=t[1]},m(r,i){v(r,e,i),g(e,n),l||(o=_(e,"click",t[28]),l=!0)},p(t,l){129&l[0]&&i!==(i=t[7][t[34]]+"")&&E(n,i),33&l[0]&&r!==(r=t[5].button+" ec-"+t[34])&&T(e,"class",r),2&l[0]&&(e.disabled=t[1])},d(t){t&&y(e),l=!1,o()}}}function sn(t){let e,n,r,l,o,i,s,a;return{c(){e=b("button"),n=b("i"),T(n,"class",r=t[5].icon+" ec-"+t[34]),T(e,"class",l=t[5].button+" ec-"+t[34]),T(e,"aria-label",o=t[7].next),T(e,"title",i=t[7].next),e.disabled=t[4]},m(r,l){v(r,e,l),g(e,n),s||(a=_(e,"click",t[23]),s=!0)},p(t,s){33&s[0]&&r!==(r=t[5].icon+" ec-"+t[34])&&T(n,"class",r),33&s[0]&&l!==(l=t[5].button+" ec-"+t[34])&&T(e,"class",l),128&s[0]&&o!==(o=t[7].next)&&T(e,"aria-label",o),128&s[0]&&i!==(i=t[7].next)&&T(e,"title",i),16&s[0]&&(e.disabled=t[4])},d(t){t&&y(e),s=!1,a()}}}function an(t){let e,n,r,l,o,i,s,a;return{c(){e=b("button"),n=b("i"),T(n,"class",r=t[5].icon+" ec-"+t[34]),T(e,"class",l=t[5].button+" ec-"+t[34]),T(e,"aria-label",o=t[7].prev),T(e,"title",i=t[7].prev),e.disabled=t[3]},m(r,l){v(r,e,l),g(e,n),s||(a=_(e,"click",t[22]),s=!0)},p(t,s){33&s[0]&&r!==(r=t[5].icon+" ec-"+t[34])&&T(n,"class",r),33&s[0]&&l!==(l=t[5].button+" ec-"+t[34])&&T(e,"class",l),128&s[0]&&o!==(o=t[7].prev)&&T(e,"aria-label",o),128&s[0]&&i!==(i=t[7].prev)&&T(e,"title",i),8&s[0]&&(e.disabled=t[3])},d(t){t&&y(e),s=!1,a()}}}function cn(t){let e,n,r,o,i;return{c(){e=b("h2"),T(e,"class",n=t[5].title)},m(n,l){v(n,e,l),o||(i=p(r=gt.call(null,e,t[6])),o=!0)},p(t,o){32&o[0]&&n!==(n=t[5].title)&&T(e,"class",n),r&&l(r.update)&&64&o[0]&&r.update.call(null,t[6])},d(t){t&&y(e),o=!1,i()}}}function un(t){let e;function n(t,e){return"title"==t[34]?cn:"prev"==t[34]?an:"next"==t[34]?sn:"today"==t[34]?on:t[8][t[34]]?ln:""!=t[34]?rn:void 0}let r=n(t),l=r&&r(t);return{c(){l&&l.c(),e=C()},m(t,n){l&&l.m(t,n),v(t,e,n)},p(t,o){r===(r=n(t))&&l?l.p(t,o):(l&&l.d(1),l=r&&r(t),l&&(l.c(),l.m(e.parentNode,e)))},d(t){t&&y(e),l&&l.d(t)}}}function dn(e){let n,r=lt(e[0]),l=[];for(let t=0;t<r.length;t+=1)l[t]=un(nn(e,r,t));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();n=C()},m(t,e){for(let n=0;n<l.length;n+=1)l[n]&&l[n].m(t,e);v(t,n,e)},p(t,e){if(14681087&e[0]){let o;for(r=lt(t[0]),o=0;o<r.length;o+=1){const i=nn(t,r,o);l[o]?l[o].p(i,e):(l[o]=un(i),l[o].c(),l[o].m(n.parentNode,n))}for(;o<l.length;o+=1)l[o].d(1);l.length=r.length}},i:t,o:t,d(t){t&&y(n),w(l,t)}}}function fn(t,e,n){let r,l,o,i,s,c,u,d,f,h,p,{buttons:$}=e,{_currentRange:g,_viewTitle:v,_viewDates:y,buttonText:w,customButtons:b,date:k,duration:x,hiddenDays:C,theme:_,validRange:D,view:T}=B("state");a(t,g,(t=>n(27,c=t))),a(t,v,(t=>n(6,d=t))),a(t,y,(t=>n(31,s=t))),a(t,w,(t=>n(7,f=t))),a(t,b,(t=>n(8,h=t))),a(t,k,(t=>n(2,l=t))),a(t,x,(t=>n(24,r=t))),a(t,C,(t=>n(25,o=t))),a(t,_,(t=>n(5,u=t))),a(t,D,(t=>n(26,i=t))),a(t,T,(t=>n(9,p=t)));let E,S,M,U=Tt(wt()),N=!1;function R(){return s.every((t=>Be(t,i)))}return t.$$set=t=>{"buttons"in t&&n(0,$=t.buttons)},t.$$.update=()=>{if(251658246&t.$$.dirty[0]&&!N){if(N=!0,n(3,E=!1),n(4,S=!1),i.start){let t=kt(l);m(k,l=Ht(l,r,o),l),n(3,E=R()),m(k,l=t,l)}if(i.end){let t=kt(l);m(k,l=zt(l,r),l),n(4,S=R()),m(k,l=t,l)}if(n(1,M=U>=c.start&&U<c.end),!M&&(i.start||i.end)){let t=kt(l);m(k,l=kt(U),l),n(1,M=R()),m(k,l=t,l)}Y().then((()=>N=!1))}},[$,M,l,E,S,u,d,f,h,p,g,v,y,w,b,k,x,C,_,D,T,U,function(){m(k,l=Ht(l,r,o),l)},function(){m(k,l=zt(l,r),l)},r,o,i,c,()=>m(k,l=kt(U),l),t=>m(T,p=t,p)]}class hn extends dt{constructor(t){super(),ut(this,t,fn,dn,o,{buttons:0},null,[-1,-1])}}function mn(t,e,n){const r=t.slice();return r[5]=e[n],r}function pn(t,e,n){const r=t.slice();return r[8]=e[n],r}function $n(t){let e,n;return e=new hn({props:{buttons:t[8]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.buttons=t[8]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function gn(t){let e,n,r,l;return n=new hn({props:{buttons:t[8]}}),{c(){e=b("div"),st(n.$$.fragment),T(e,"class",r=t[1].buttonGroup)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(t,o){const i={};1&o&&(i.buttons=t[8]),n.$set(i),(!l||2&o&&r!==(r=t[1].buttonGroup))&&T(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function vn(t){let e,n,r,l;const o=[gn,$n],i=[];function s(t,e){return t[8].length>1?0:1}return e=s(t),n=i[e]=o[e](t),{c(){n.c(),r=C()},m(t,n){i[e].m(t,n),v(t,r,n),l=!0},p(t,l){let a=e;e=s(t),e===a?i[e].p(t,l):(tt(),rt(i[a],1,1,(()=>{i[a]=null})),et(),n=i[e],n?n.p(t,l):(n=i[e]=o[e](t),n.c()),nt(n,1),n.m(r.parentNode,r))},i(t){l||(nt(n),l=!0)},o(t){rt(n),l=!1},d(t){t&&y(r),i[e].d(t)}}}function yn(t){let e,n,r,l,o=lt(t[0][t[5]]),i=[];for(let e=0;e<o.length;e+=1)i[e]=vn(pn(t,o,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=b("div");for(let t=0;t<i.length;t+=1)i[t].c();n=x(),T(e,"class",r="ec-"+t[5])},m(t,r){v(t,e,r);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);g(e,n),l=!0},p(t,a){if(3&a){let r;for(o=lt(t[0][t[5]]),r=0;r<o.length;r+=1){const l=pn(t,o,r);i[r]?(i[r].p(l,a),nt(i[r],1)):(i[r]=vn(l),i[r].c(),nt(i[r],1),i[r].m(e,n))}for(tt(),r=o.length;r<i.length;r+=1)s(r);et()}(!l||1&a&&r!==(r="ec-"+t[5]))&&T(e,"class",r)},i(t){if(!l){for(let t=0;t<o.length;t+=1)nt(i[t]);l=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);l=!1},d(t){t&&y(e),w(i,t)}}}function wn(t){let e,n,r,l=lt(At(t[0])),o=[];for(let e=0;e<l.length;e+=1)o[e]=yn(mn(t,l,e));const i=t=>rt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=b("nav");for(let t=0;t<o.length;t+=1)o[t].c();T(e,"class",n=t[1].toolbar)},m(t,n){v(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);r=!0},p(t,s){let[a]=s;if(3&a){let n;for(l=lt(At(t[0])),n=0;n<l.length;n+=1){const r=mn(t,l,n);o[n]?(o[n].p(r,a),nt(o[n],1)):(o[n]=yn(r),o[n].c(),nt(o[n],1),o[n].m(e,null))}for(tt(),n=l.length;n<o.length;n+=1)i(n);et()}(!r||2&a&&n!==(n=t[1].toolbar))&&T(e,"class",n)},i(t){if(!r){for(let t=0;t<l.length;t+=1)nt(o[t]);r=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)rt(o[t]);r=!1},d(t){t&&y(e),w(o,t)}}}function bn(t,e,n){let r,l,{headerToolbar:o,theme:i}=B("state");a(t,o,(t=>n(4,r=t))),a(t,i,(t=>n(1,l=t)));let s={start:[],center:[],end:[]};return t.$$.update=()=>{if(17&t.$$.dirty)for(let t of At(s))n(0,s[t]=r[t].split(" ").map((t=>t.split(","))),s)},[s,l,o,i,r]}class kn extends dt{constructor(t){super(),ut(this,t,bn,wn,o,{})}}function xn(t,e,n){const r=t.slice();return r[11]=e[n],r}function Cn(t){let e,n,r;var l=t[11];return l&&(e=M(l,{})),{c(){e&&st(e.$$.fragment),n=C()},m(t,l){e&&at(e,t,l),v(t,n,l),r=!0},p(t,r){if(1&r&&l!==(l=t[11])){if(e){tt();const t=e;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}l?(e=M(l,{}),st(e.$$.fragment),nt(e.$$.fragment,1),at(e,n.parentNode,n)):e=null}},i(t){r||(e&&nt(e.$$.fragment,t),r=!0)},o(t){e&&rt(e.$$.fragment,t),r=!1},d(t){t&&y(n),e&&ct(e,t)}}}function _n(t){let e,n,r=lt(t[0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Cn(xn(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){let[i]=n;if(1&i){let n;for(r=lt(t[0]),n=0;n<r.length;n+=1){const o=xn(t,r,n);l[n]?(l[n].p(o,i),nt(l[n],1)):(l[n]=Cn(o),l[n].c(),nt(l[n],1),l[n].m(e.parentNode,e))}for(tt(),n=r.length;n<l.length;n+=1)o(n);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function Dn(t,e,n){let r,l,o,i,{datesSet:s,_auxiliary:c,_activeRange:u,_queue:d,_view:f}=B("state");a(t,s,(t=>n(7,l=t))),a(t,c,(t=>n(0,i=t))),a(t,u,(t=>n(5,o=t))),a(t,f,(t=>n(6,r=t)));let h={};return t.$$.update=()=>{32&t.$$.dirty&&function(t){Gt(l)&&Jt((()=>l({start:Et(t.start),end:Et(t.end),startStr:St(t.start),endStr:St(t.end),view:ae(r)})),h,d)}(o)},[i,s,c,u,f,o]}let Tn=class extends dt{constructor(t){super(),ut(this,t,Dn,_n,o,{})}};function En(t){let e,n,r,l,o,i,s,a,c,u,d;n=new kn({});var f=t[5];return f&&(l=M(f,{})),a=new Tn({}),{c(){e=b("div"),st(n.$$.fragment),r=x(),l&&st(l.$$.fragment),s=x(),st(a.$$.fragment),T(e,"class",o=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")),T(e,"role",i=ce(t[4])?"list":"table"),S(e,"height",t[3])},m(o,i){v(o,e,i),at(n,e,null),g(e,r),l&&at(l,e,null),v(o,s,i),at(a,o,i),c=!0,u||(d=_(window,"resize",t[20]),u=!0)},p(t,n){if(32&n[0]&&f!==(f=t[5])){if(l){tt();const t=l;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}f?(l=M(f,{}),st(l.$$.fragment),nt(l.$$.fragment,1),at(l,e,null)):l=null}(!c||7&n[0]&&o!==(o=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")))&&T(e,"class",o),(!c||16&n[0]&&i!==(i=ce(t[4])?"list":"table"))&&T(e,"role",i),8&n[0]&&S(e,"height",t[3])},i(t){c||(nt(n.$$.fragment,t),l&&nt(l.$$.fragment,t),nt(a.$$.fragment,t),c=!0)},o(t){rt(n.$$.fragment,t),l&&rt(l.$$.fragment,t),rt(a.$$.fragment,t),c=!1},d(t){t&&(y(e),y(s)),ct(n),l&&ct(l),ct(a,t),u=!1,d()}}}function Sn(t,e,n){let r,l,o,i,c,u,d,f,h,p,$,g,v,y,{plugins:w=[]}=e,{options:b={}}=e,k=new Ke(w,b);var x,C;x="state",C=k,R().$$.context.set(x,C);let{_viewComponent:_,_bodyEl:D,_interaction:T,_iClass:E,_events:S,_queue:M,_queue2:U,_tasks:N,_scrollable:L,date:H,duration:B,hiddenDays:F,height:A,theme:P,view:j}=k;a(t,_,(t=>n(5,y=t))),a(t,D,(t=>n(36,r=t))),a(t,T,(t=>n(42,f=t))),a(t,E,(t=>n(2,$=t))),a(t,S,(t=>n(43,h=t))),a(t,M,(t=>n(38,i=t))),a(t,U,(t=>n(37,o=t))),a(t,L,(t=>n(0,l=t))),a(t,H,(t=>n(41,d=t))),a(t,B,(t=>n(40,u=t))),a(t,F,(t=>n(39,c=t))),a(t,A,(t=>n(3,g=t))),a(t,P,(t=>n(1,p=t))),a(t,j,(t=>n(4,v=t)));let W={...b};function I(t,e){return k._set(t,e),this}var O;function G(){var t;r&&m(L,l=(t=r).scrollHeight>t.clientHeight,l)}return O=()=>{Kt(i)},R().$$.before_update.push(O),z((()=>{Kt(o),Qt(G,null,N)})),t.$$set=t=>{"plugins"in t&&n(21,w=t.plugins),"options"in t&&n(22,b=t.options)},t.$$.update=()=>{if(4194304&t.$$.dirty[0])for(let[t,e]of function(t,e){let n=[];for(let r of At(t))t[r]!==e[r]&&n.push([r,t[r]]);return Ft(e,t),n}(b,W))I(t,e)},[l,p,$,g,v,y,_,D,T,E,S,M,U,L,H,B,F,A,P,j,G,w,b,I,function(t){let e=k._get(t);return e instanceof Date?Et(e):e},function(){return k._fetchedRange.set({start:void 0,end:void 0}),this},function(){return h.map(we)},function(t){for(let e of h)if(e.id==t)return we(e);return null},function(t){return t=fe([t])[0],h.push(t),S.set(h),we(t)},function(t){for(let e of h)if(e.id==t.id)return Ft(e,t=fe([t])[0]),S.set(h),we(t);return null},function(t){let e=h.findIndex((e=>e.id==t));return e>=0&&(h.splice(e,1),S.set(h)),this},function(){return ae(s(k._view))},function(){return f.action?.unselect(),this},function(t,e){let n=ie(t,e);if(n){let r=ee(n)(t,e);return r.date=Et(r.date),r}return null},function(){return m(H,d=zt(d,u),d),this},function(){return m(H,d=Ht(d,u,c),d),this}]}class Mn extends dt{constructor(t){super(),ut(this,t,Sn,En,o,{plugins:21,options:22,setOption:23,getOption:24,refetchEvents:25,getEvents:26,getEventById:27,addEvent:28,updateEvent:29,removeEventById:30,getView:31,unselect:32,dateFromPoint:33,next:34,prev:35},null,[-1,-1])}get setOption(){return this.$$.ctx[23]}get getOption(){return this.$$.ctx[24]}get refetchEvents(){return this.$$.ctx[25]}get getEvents(){return this.$$.ctx[26]}get getEventById(){return this.$$.ctx[27]}get addEvent(){return this.$$.ctx[28]}get updateEvent(){return this.$$.ctx[29]}get removeEventById(){return this.$$.ctx[30]}get getView(){return this.$$.ctx[31]}get unselect(){return this.$$.ctx[32]}get dateFromPoint(){return this.$$.ctx[33]}get next(){return this.$$.ctx[34]}get prev(){return this.$$.ctx[35]}}let Un=class extends Mn{destroy(){this.$destroy()}get view(){return this.getView()}};function Nn(t,e,n){const r=t.slice();return r[8]=e[n],r}function Rn(t){let e,n,r,o,i,s,a,c;return{c(){e=b("div"),n=b("span"),i=x(),T(n,"aria-label",r=t[2].format(t[8])),T(e,"class",s=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()]),T(e,"role","columnheader")},m(r,l){v(r,e,l),g(e,n),g(e,i),a||(c=p(o=gt.call(null,n,t[3].format(t[8]))),a=!0)},p(i,a){t=i,6&a&&r!==(r=t[2].format(t[8]))&&T(n,"aria-label",r),o&&l(o.update)&&10&a&&o.update.call(null,t[3].format(t[8])),3&a&&s!==(s=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()])&&T(e,"class",s)},d(t){t&&y(e),a=!1,c()}}}function Ln(e){let n,r,l,o,i,s,a,c=lt(e[1]),u=[];for(let t=0;t<c.length;t+=1)u[t]=Rn(Nn(e,c,t));return{c(){n=b("div"),r=b("div");for(let t=0;t<u.length;t+=1)u[t].c();o=x(),i=b("div"),T(r,"class",l=e[0].days),T(r,"role","row"),T(i,"class",s=e[0].hiddenScroll),T(n,"class",a=e[0].header)},m(t,e){v(t,n,e),g(n,r);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(r,null);g(n,o),g(n,i)},p(t,e){let[o]=e;if(15&o){let e;for(c=lt(t[1]),e=0;e<c.length;e+=1){const n=Nn(t,c,e);u[e]?u[e].p(n,o):(u[e]=Rn(n),u[e].c(),u[e].m(r,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=c.length}1&o&&l!==(l=t[0].days)&&T(r,"class",l),1&o&&s!==(s=t[0].hiddenScroll)&&T(i,"class",s),1&o&&a!==(a=t[0].header)&&T(n,"class",a)},i:t,o:t,d(t){t&&y(n),w(u,t)}}}function zn(t,e,n){let r,l,o,i,{theme:s,_intlDayHeader:c,_intlDayHeaderAL:u,_days:d}=B("state");return a(t,s,(t=>n(0,r=t))),a(t,c,(t=>n(3,i=t))),a(t,u,(t=>n(2,o=t))),a(t,d,(t=>n(1,l=t))),[r,l,o,i,s,c,u,d]}let Hn=class extends dt{constructor(t){super(),ut(this,t,zn,Ln,o,{})}};function Bn(t){let e,n,o,i,s,a,c,u,d,f,h,m,$;var w=t[8].resizer;function k(t,e){return{props:{start:!0,event:t[0]}}}w&&(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[32](t[8],["x","start"]))&&t[32](t[8],["x","start"]).apply(this,arguments)})));var C=t[8].resizer;function D(t,e){return{props:{event:t[0]}}}return C&&(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[32](t[8],["x","end"]))&&t[32](t[8],["x","end"]).apply(this,arguments)}))),{c(){e=b("article"),n&&st(n.$$.fragment),o=x(),i=b("div"),c=x(),u&&st(u.$$.fragment),T(i,"class",s=t[2].eventBody),T(e,"class",t[4]),T(e,"style",t[5]),T(e,"role",d=t[7]?"button":void 0),T(e,"tabindex",f=t[7]?0:void 0)},m(r,s){v(r,e,s),n&&at(n,e,null),g(e,o),g(e,i),g(e,c),u&&at(u,e,null),t[51](e),h=!0,m||($=[p(a=gt.call(null,i,t[6])),_(e,"click",(function(){l(t[7]||void 0)&&(t[7]||void 0).apply(this,arguments)})),_(e,"keydown",(function(){l(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),_(e,"mouseenter",(function(){l(t[31](t[9],t[1]))&&t[31](t[9],t[1]).apply(this,arguments)})),_(e,"mouseleave",(function(){l(t[31](t[10],t[1]))&&t[31](t[10],t[1]).apply(this,arguments)})),_(e,"pointerdown",(function(){l(!Te(t[1])&&t[32](t[8]))&&(!Te(t[1])&&t[32](t[8])).apply(this,arguments)}))],m=!0)},p(r,c){if(t=r,256&c[0]&&w!==(w=t[8].resizer)){if(n){tt();const t=n;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}w?(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[32](t[8],["x","start"]))&&t[32](t[8],["x","start"]).apply(this,arguments)})),st(n.$$.fragment),nt(n.$$.fragment,1),at(n,e,o)):n=null}else if(w){const e={};1&c[0]&&(e.event=t[0]),n.$set(e)}if((!h||4&c[0]&&s!==(s=t[2].eventBody))&&T(i,"class",s),a&&l(a.update)&&64&c[0]&&a.update.call(null,t[6]),256&c[0]&&C!==(C=t[8].resizer)){if(u){tt();const t=u;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}C?(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[32](t[8],["x","end"]))&&t[32](t[8],["x","end"]).apply(this,arguments)})),st(u.$$.fragment),nt(u.$$.fragment,1),at(u,e,null)):u=null}else if(C){const e={};1&c[0]&&(e.event=t[0]),u.$set(e)}(!h||16&c[0])&&T(e,"class",t[4]),(!h||32&c[0])&&T(e,"style",t[5]),(!h||128&c[0]&&d!==(d=t[7]?"button":void 0))&&T(e,"role",d),(!h||128&c[0]&&f!==(f=t[7]?0:void 0))&&T(e,"tabindex",f)},i(t){h||(n&&nt(n.$$.fragment,t),u&&nt(u.$$.fragment,t),h=!0)},o(t){n&&rt(n.$$.fragment,t),u&&rt(u.$$.fragment,t),h=!1},d(l){l&&y(e),n&&ct(n),u&&ct(u),t[51](null),m=!1,r($)}}}function Fn(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,p,$,g,v,y,w,b,k,x,C,_,D,T,E,S,{chunk:M}=e,{longChunks:U={}}=e,{inPopup:N=!1}=e,{dates:R=[]}=e,{dayMaxEvents:H,displayEventEnd:F,eventAllUpdated:A,eventBackgroundColor:j,eventTextColor:W,eventClick:I,eventColor:O,eventContent:G,eventClassNames:Y,eventDidMount:q,eventMouseEnter:X,eventMouseLeave:V,resources:J,theme:K,_view:Q,_intlEventTime:Z,_interaction:tt,_iClasses:et,_hiddenEvents:nt,_popupDate:rt,_tasks:lt}=B("state");a(t,H,(t=>n(54,o=t))),a(t,F,(t=>n(44,p=t))),a(t,A,(t=>n(56,u=t))),a(t,j,(t=>n(50,b=t))),a(t,W,(t=>n(47,v=t))),a(t,I,(t=>n(40,r=t))),a(t,O,(t=>n(49,w=t))),a(t,G,(t=>n(43,m=t))),a(t,Y,(t=>n(45,$=t))),a(t,q,(t=>n(57,d=t))),a(t,X,(t=>n(9,k=t))),a(t,V,(t=>n(10,x=t))),a(t,J,(t=>n(48,y=t))),a(t,K,(t=>n(2,h=t))),a(t,Q,(t=>n(41,c=t))),a(t,Z,(t=>n(42,f=t))),a(t,tt,(t=>n(8,s=t))),a(t,et,(t=>n(46,g=t))),a(t,nt,(t=>n(53,l=t))),a(t,rt,(t=>n(55,i=t)));let ot,it,st=1,at=!1;function ct(t,e){return!Te(e)&&Gt(t)?e=>t({event:we(_),el:C,jsEvent:e,view:ae(c)}):void 0}return L((()=>{Gt(d)&&d({event:we(_),timeText:S,el:C,view:ae(c)})})),z((()=>{Gt(u)&&!Te(ot)&&Qt((()=>u({view:ae(c)})),"eau",lt)})),t.$$set=t=>{"chunk"in t&&n(33,M=t.chunk),"longChunks"in t&&n(34,U=t.longChunks),"inPopup"in t&&n(35,N=t.inPopup),"dates"in t&&n(36,R=t.dates)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&n(0,_=M.event),39&t.$$.dirty[0]|1033604&t.$$.dirty[1]){n(1,ot=_.display);let t=_.backgroundColor||We(_,y)||b||w,e=_.textColor||Ie(_,y)||v;if(Ee(ot))n(5,T=`width:calc(${100*M.days}% + ${M.days-1}px);`);else{let t=st;if(_._margin){let[e,n]=_._margin;M.date>=n[0]&&M.date<=n.at(-1)&&(t=e)}n(5,T=`width:calc(${100*M.days}% + ${7*(M.days-1)}px);margin-top:${t}px;`)}t&&n(5,T+=`background-color:${t};`),e&&n(5,T+=`color:${e};`),at&&n(5,T+="visibility:hidden;"),n(5,T+=_.styles.join(";")),n(4,D=[Ee(ot)?h.bgEvent:h.event,...g([],_),...ye($,_,c)].join(" "))}4&t.$$.dirty[0]|15364&t.$$.dirty[1]&&n(6,[S,E]=ge(M,p,m,h,f,c),E),2&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(7,it=ct(r,ot))},[_,ot,h,C,D,T,E,it,s,k,x,H,F,A,j,W,I,O,G,Y,q,X,V,J,K,Q,Z,tt,et,nt,rt,ct,function(t,e){return t.action?t=>s.action.drag(_,t,e,N?i:null,[re(C).top-re(le(C,1)).top,R],M.zeroDuration):void 0},M,U,N,R,function(){C&&(n(38,st=Ce(M,U,oe(C))),!0===o?function(){let t=le(C,2),e=oe(t)-oe(t.firstElementChild)-function(t){let e=0;for(let n=0;n<M.days&&(e=It(e,oe(t.lastElementChild)),t=t.nextElementSibling);++n);return e}(t);n(39,at=M.bottom>e);let r=!1;for(let t of M.dates){let e=l[t.getTime()];if(e){let t=e.size;at?e.add(M.event):e.delete(M.event),t!==e.size&&(r=!0)}}r&&nt.set(l)}():n(39,at=!1))},st,at,r,c,f,m,p,$,g,v,y,w,b,function(t){P[t?"unshift":"push"]((()=>{C=t,n(3,C)}))}]}let An=class extends dt{constructor(t){super(),ut(this,t,Fn,Bn,o,{chunk:33,longChunks:34,inPopup:35,dates:36,reposition:37},null,[-1,-1])}get reposition(){return this.$$.ctx[37]}};function Pn(t,e,n){const r=t.slice();return r[20]=e[n],r}function jn(t,e){let n,r,l;return r=new An({props:{chunk:e[20],inPopup:!0}}),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};1&n&&(l.chunk=e[20]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function Wn(t){let e,n,o,i,s,a,c,u,d,f,h,m,$,w,C,E,S,M=[],U=new Map,N=lt(t[0]);const R=t=>t[20].event;for(let e=0;e<N.length;e+=1){let n=Pn(t,N,e),r=R(n);U.set(r,M[e]=jn(r,n))}return{c(){e=b("div"),n=b("div"),o=b("time"),a=x(),c=b("a"),u=k("×"),h=x(),m=b("div");for(let t=0;t<M.length;t+=1)M[t].c();T(o,"datetime",i=St(t[3],10)),T(c,"role","button"),T(c,"tabindex","0"),T(c,"aria-label",d=t[6].close),T(n,"class",f=t[4].dayHead),T(m,"class",$=t[4].events),T(e,"class",w=t[4].popup),T(e,"style",t[2])},m(r,l){v(r,e,l),g(e,n),g(n,o),g(n,a),g(n,c),g(c,u),g(e,h),g(e,m);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(m,null);t[16](e),C=!0,E||(S=[p(s=gt.call(null,o,t[5].format(t[3]))),_(c,"click",D(t[13])),_(c,"keydown",$t(t[13])),p(vt.call(null,e,"pointerdown")),_(e,"pointerdown",D(t[15])),_(e,"pointerdownoutside",t[14])],E=!0)},p(t,r){let[a]=r;(!C||8&a&&i!==(i=St(t[3],10)))&&T(o,"datetime",i),s&&l(s.update)&&40&a&&s.update.call(null,t[5].format(t[3])),(!C||64&a&&d!==(d=t[6].close))&&T(c,"aria-label",d),(!C||16&a&&f!==(f=t[4].dayHead))&&T(n,"class",f),1&a&&(N=lt(t[0]),tt(),M=it(M,a,R,0,t,N,U,m,ot,jn,null,Pn),et()),(!C||16&a&&$!==($=t[4].events))&&T(m,"class",$),(!C||16&a&&w!==(w=t[4].popup))&&T(e,"class",w),(!C||4&a)&&T(e,"style",t[2])},i(t){if(!C){for(let t=0;t<N.length;t+=1)nt(M[t]);C=!0}},o(t){for(let t=0;t<M.length;t+=1)rt(M[t]);C=!1},d(n){n&&y(e);for(let t=0;t<M.length;t+=1)M[t].d();t[16](null),E=!1,r(S)}}}function In(t,e,n){let r,l,o,i,s,c,u,{buttonText:d,theme:f,_interaction:h,_intlDayPopover:p,_popupDate:$,_popupChunks:g}=B("state");a(t,d,(t=>n(6,c=t))),a(t,f,(t=>n(4,i=t))),a(t,h,(t=>n(17,r=t))),a(t,p,(t=>n(5,s=t))),a(t,$,(t=>n(3,l=t))),a(t,g,(t=>n(0,o=t)));let v="";function y(){u&&(n(2,v=""),Y().then((()=>{o.length?function(){let t,e,r=le(u,1),l=le(r,3),o=re(u),i=re(r),s=re(l);if(n(2,v=""),o.width>=s.width){t=s.left-i.left;let e=i.right-s.right;n(2,v+=`right:${e}px;`)}else t=(i.width-o.width)/2,i.left+t<s.left?t=s.left-i.left:i.left+t+o.width>s.right&&(t=s.right-i.left-o.width);if(n(2,v+=`left:${t}px;`),o.height>=s.height){e=s.top-i.top;let t=i.bottom-s.bottom;n(2,v+=`bottom:${t}px;`)}else e=(i.height-o.height)/2,i.top+e<s.top?e=s.top-i.top:i.top+e+o.height>s.bottom&&(e=s.bottom-i.top-o.height);n(2,v+=`top:${e}px;`)}():w()})))}function w(t){m($,l=null,l)}return t.$$.update=()=>{1&t.$$.dirty&&o&&y()},[o,u,v,l,i,s,c,d,f,h,p,$,g,w,function(t){w(),r.action?.noClick()},function(e){F.call(this,t,e)},function(t){P[t?"unshift":"push"]((()=>{u=t,n(1,u)}))}]}class On extends dt{constructor(t){super(),ut(this,t,In,Wn,o,{})}}function Gn(t,e,n){const r=t.slice();return r[54]=e[n],r[55]=e,r[56]=n,r}function Yn(t,e,n){const r=t.slice();return r[54]=e[n],r}function qn(t){let e,n,r,o,i;return{c(){e=b("span"),T(e,"class",n=t[17].weekNumber)},m(n,l){v(n,e,l),o||(i=p(r=gt.call(null,e,t[15])),o=!0)},p(t,o){131072&o[0]&&n!==(n=t[17].weekNumber)&&T(e,"class",n),r&&l(r.update)&&32768&o[0]&&r.update.call(null,t[15])},d(t){t&&y(e),o=!1,i()}}}function Xn(t){let e,n,r=[],l=new Map,o=lt(t[10]);const i=t=>t[54].event;for(let e=0;e<o.length;e+=1){let n=Yn(t,o,e),s=i(n);l.set(s,r[e]=Vn(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);v(t,e,l),n=!0},p(t,n){1024&n[0]&&(o=lt(t[10]),tt(),r=it(r,n,i,0,t,o,l,e.parentNode,ot,Vn,e,Yn),et())},i(t){if(!n){for(let t=0;t<o.length;t+=1)nt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&y(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function Vn(t,e){let n,r,l;return r=new An({props:{chunk:e[54]}}),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};1024&n[0]&&(l.chunk=e[54]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function Jn(t){let e,n,r,l=t[2][2]&&Mt(t[2][2].date,t[0]),o=t[2][0]&&Mt(t[2][0].date,t[0]),i=l&&Kn(t),s=o&&Qn(t);return{c(){i&&i.c(),e=x(),s&&s.c(),n=C()},m(t,l){i&&i.m(t,l),v(t,e,l),s&&s.m(t,l),v(t,n,l),r=!0},p(t,r){5&r[0]&&(l=t[2][2]&&Mt(t[2][2].date,t[0])),l?i?(i.p(t,r),5&r[0]&&nt(i,1)):(i=Kn(t),i.c(),nt(i,1),i.m(e.parentNode,e)):i&&(tt(),rt(i,1,1,(()=>{i=null})),et()),5&r[0]&&(o=t[2][0]&&Mt(t[2][0].date,t[0])),o?s?(s.p(t,r),5&r[0]&&nt(s,1)):(s=Qn(t),s.c(),nt(s,1),s.m(n.parentNode,n)):s&&(tt(),rt(s,1,1,(()=>{s=null})),et())},i(t){r||(nt(i),nt(s),r=!0)},o(t){rt(i),rt(s),r=!1},d(t){t&&(y(e),y(n)),i&&i.d(t),s&&s.d(t)}}}function Kn(t){let e,n,r,l;return n=new An({props:{chunk:t[2][2]}}),{c(){e=b("div"),st(n.$$.fragment),T(e,"class",r=t[17].events)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(t,o){const i={};4&o[0]&&(i.chunk=t[2][2]),n.$set(i),(!l||131072&o[0]&&r!==(r=t[17].events))&&T(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function Qn(t){let e,n,r,l;return n=new An({props:{chunk:t[2][0]}}),{c(){e=b("div"),st(n.$$.fragment),T(e,"class",r=t[17].events+" "+t[17].preview)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(t,o){const i={};4&o[0]&&(i.chunk=t[2][0]),n.$set(i),(!l||131072&o[0]&&r!==(r=t[17].events+" "+t[17].preview))&&T(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function Zn(t){let e,n,r=[],l=new Map,o=lt(t[5]);const i=t=>t[54].event;for(let e=0;e<o.length;e+=1){let n=Gn(t,o,e),s=i(n);l.set(s,r[e]=tr(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);v(t,e,l),n=!0},p(t,n){65578&n[0]&&(o=lt(t[5]),tt(),r=it(r,n,i,0,t,o,l,e.parentNode,ot,tr,e,Gn),et())},i(t){if(!n){for(let t=0;t<o.length;t+=1)nt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&y(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function tr(t,e){let n,r,l,o=e[56];const i=()=>e[49](r,o),s=()=>e[49](null,o);let a={chunk:e[54],longChunks:e[1],dates:e[3]};return r=new An({props:a}),i(),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){o!==(e=t)[56]&&(s(),o=e[56],i());const l={};32&n[0]&&(l.chunk=e[54]),2&n[0]&&(l.longChunks=e[1]),8&n[0]&&(l.dates=e[3]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),s(),ct(r,t)}}}function er(t){let e,n;return e=new On({}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function nr(t){let e,n,o,i;return{c(){e=b("a"),T(e,"role","button"),T(e,"tabindex","0"),T(e,"aria-haspopup","true")},m(r,l){v(r,e,l),o||(i=[_(e,"click",D(t[34])),_(e,"keydown",$t(t[34])),_(e,"pointerdown",D(t[48])),p(n=gt.call(null,e,t[14]))],o=!0)},p(t,e){n&&l(n.update)&&16384&e[0]&&n.update.call(null,t[14])},d(t){t&&y(e),o=!1,r(i)}}}function rr(t){let e,n,o,i,s,a,c,u,d,f,h,m,$,w,k,C,D,E,S,M,U,N,R=t[9]&&qn(t),L=!t[6]&&Xn(t),z=!t[6]&&Jn(t),H=!t[6]&&Zn(t),B=t[8]&&er(),F=!t[6]&&t[7].size&&nr(t);return{c(){e=b("div"),n=b("div"),o=b("time"),a=x(),R&&R.c(),u=x(),d=b("div"),L&&L.c(),h=x(),z&&z.c(),m=x(),$=b("div"),H&&H.c(),k=x(),B&&B.c(),C=x(),D=b("div"),F&&F.c(),T(o,"datetime",i=St(t[0],10)),T(n,"class",c=t[17].dayHead),T(d,"class",f=t[17].bgEvents),T($,"class",w=t[17].events),T(D,"class",E=t[17].dayFoot),T(e,"class",S=t[17].day+" "+t[17].weekdays?.[t[0].getUTCDay()]+(t[11]?" "+t[17].today:"")+(t[12]?" "+t[17].otherMonth:"")+(t[13]?" "+t[17].highlight:"")+(t[6]?" "+t[17].disabled:"")),T(e,"role","cell")},m(r,i){v(r,e,i),g(e,n),g(n,o),g(n,a),R&&R.m(n,null),g(e,u),g(e,d),L&&L.m(d,null),g(e,h),z&&z.m(e,null),g(e,m),g(e,$),H&&H.m($,null),g(e,k),B&&B.m(e,null),g(e,C),g(e,D),F&&F.m(D,null),t[50](e),M=!0,U||(N=[p(s=gt.call(null,o,t[19].format(t[0]))),_(e,"pointerdown",(function(){l(t[18].action?.select)&&t[18].action?.select.apply(this,arguments)}))],U=!0)},p(r,a){t=r,(!M||1&a[0]&&i!==(i=St(t[0],10)))&&T(o,"datetime",i),s&&l(s.update)&&524289&a[0]&&s.update.call(null,t[19].format(t[0])),t[9]?R?R.p(t,a):(R=qn(t),R.c(),R.m(n,null)):R&&(R.d(1),R=null),(!M||131072&a[0]&&c!==(c=t[17].dayHead))&&T(n,"class",c),t[6]?L&&(tt(),rt(L,1,1,(()=>{L=null})),et()):L?(L.p(t,a),64&a[0]&&nt(L,1)):(L=Xn(t),L.c(),nt(L,1),L.m(d,null)),(!M||131072&a[0]&&f!==(f=t[17].bgEvents))&&T(d,"class",f),t[6]?z&&(tt(),rt(z,1,1,(()=>{z=null})),et()):z?(z.p(t,a),64&a[0]&&nt(z,1)):(z=Jn(t),z.c(),nt(z,1),z.m(e,m)),t[6]?H&&(tt(),rt(H,1,1,(()=>{H=null})),et()):H?(H.p(t,a),64&a[0]&&nt(H,1)):(H=Zn(t),H.c(),nt(H,1),H.m($,null)),(!M||131072&a[0]&&w!==(w=t[17].events))&&T($,"class",w),t[8]?B?256&a[0]&&nt(B,1):(B=er(),B.c(),nt(B,1),B.m(e,C)):B&&(tt(),rt(B,1,1,(()=>{B=null})),et()),!t[6]&&t[7].size?F?F.p(t,a):(F=nr(t),F.c(),F.m(D,null)):F&&(F.d(1),F=null),(!M||131072&a[0]&&E!==(E=t[17].dayFoot))&&T(D,"class",E),(!M||145473&a[0]&&S!==(S=t[17].day+" "+t[17].weekdays?.[t[0].getUTCDay()]+(t[11]?" "+t[17].today:"")+(t[12]?" "+t[17].otherMonth:"")+(t[13]?" "+t[17].highlight:"")+(t[6]?" "+t[17].disabled:"")))&&T(e,"class",S)},i(t){M||(nt(L),nt(z),nt(H),nt(B),M=!0)},o(t){rt(L),rt(z),rt(H),rt(B),M=!1},d(n){n&&y(e),R&&R.d(),L&&L.d(),z&&z.d(),H&&H.d(),B&&B.d(),F&&F.d(),t[50](null),U=!1,r(N)}}}function lr(t,e,n){let r,l,o,i,s,c,u,d,f,h,p,$,g,v,y,w,b,k,x,C,_,{date:D}=e,{chunks:T}=e,{bgChunks:E}=e,{longChunks:S}=e,{iChunks:M=[]}=e,{dates:U}=e,{date:N,dayMaxEvents:R,highlightedDates:L,firstDay:z,moreLinkContent:H,theme:A,validRange:j,weekNumbers:W,weekNumberContent:I,_hiddenEvents:O,_intlDayCell:G,_popupDate:q,_popupChunks:X,_today:V,_interaction:J}=B("state");a(t,N,(t=>n(46,h=t))),a(t,L,(t=>n(45,f=t))),a(t,z,(t=>n(39,l=t))),a(t,H,(t=>n(42,c=t))),a(t,A,(t=>n(17,$=t))),a(t,j,(t=>n(44,d=t))),a(t,W,(t=>n(40,o=t))),a(t,I,(t=>n(38,r=t))),a(t,O,(t=>n(43,u=t))),a(t,G,(t=>n(19,v=t))),a(t,q,(t=>n(41,s=t))),a(t,X,(t=>n(51,i=t))),a(t,V,(t=>n(47,p=t))),a(t,J,(t=>n(18,g=t)));let K,Q,Z,tt=new Set,et="",nt=[];function rt(){let t=_t(kt(D)),e=w.concat(S[D.getTime()]?.chunks||[]);m(X,i=e.map((e=>Ft({},e,pe(e.event,D,t),{days:1,dates:[D]}))).sort(((t,e)=>t.top-e.top)),i)}return t.$$set=t=>{"date"in t&&n(0,D=t.date),"chunks"in t&&n(35,T=t.chunks),"bgChunks"in t&&n(36,E=t.bgChunks),"longChunks"in t&&n(1,S=t.longChunks),"iChunks"in t&&n(2,M=t.iChunks),"dates"in t&&n(3,U=t.dates)},t.$$.update=()=>{if(1&t.$$.dirty[0]|8192&t.$$.dirty[1]&&n(6,_=Be(D,d)),225&t.$$.dirty[0]|48&t.$$.dirty[1]&&!_){n(5,w=[]),n(10,b=E.filter((t=>Mt(t.date,D)))),tt.clear(),n(7,tt),n(6,_),n(36,E),n(0,D),n(35,T),n(5,w),n(44,d);for(let t of T)Mt(t.date,D)&&w.push(t)}if(129&t.$$.dirty[0]&&m(O,u[D.getTime()]=tt,u),1&t.$$.dirty[0]|65536&t.$$.dirty[1]&&n(11,k=Mt(D,p)),1&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(12,x=D.getUTCMonth()!==h.getUTCMonth()),1&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(13,C=f.some((t=>Mt(t,D)))),192&t.$$.dirty[0]|6144&t.$$.dirty[1]&&!_&&u&&tt.size){let t="+"+tt.size+" more";n(14,et=c?Gt(c)?c({num:tt.size,text:t}):c:t)}if(1&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(8,K=s&&Mt(D,s)),290&t.$$.dirty[0]&&K&&S&&w&&Y().then(rt),81&t.$$.dirty[0]&&y&&te(y,(()=>({allDay:!0,date:D,resource:void 0,dayEl:y,disabled:_}))),513&t.$$.dirty[0]|896&t.$$.dirty[1]&&(n(9,Q=o&&D.getUTCDay()==(l?1:0)),Q)){let t=function(t,e){t=kt(t),0==e?t.setUTCDate(t.getUTCDate()+6-t.getUTCDay()):t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));let n=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t-n)/1e3/yt+1)/7)}(D,l);n(15,Z=r?Gt(r)?r({date:Et(D),week:t}):r:"W"+String(t).padStart(2,"0"))}},[D,S,M,U,y,w,_,tt,K,Q,b,k,x,C,et,Z,nt,$,g,v,N,L,z,H,A,j,W,I,O,G,q,X,V,J,function(){m(q,s=D,s)},T,E,function(){_||_e(nt,w)},r,l,o,s,c,u,d,f,h,p,function(e){F.call(this,t,e)},function(t,e){P[t?"unshift":"push"]((()=>{nt[e]=t,n(16,nt)}))},function(t){P[t?"unshift":"push"]((()=>{y=t,n(4,y)}))}]}let or=class extends dt{constructor(t){super(),ut(this,t,lr,rr,o,{date:0,chunks:35,bgChunks:36,longChunks:1,iChunks:2,dates:3,reposition:37},null,[-1,-1])}get reposition(){return this.$$.ctx[37]}};function ir(t,e,n){const r=t.slice();return r[28]=e[n],r[29]=e,r[30]=n,r}function sr(t){let e,n,r=t[30];const l=()=>t[25](e,r),o=()=>t[25](null,r);let i={date:t[28],chunks:t[1],bgChunks:t[2],longChunks:t[3],iChunks:t[4],dates:t[0]};return e=new or({props:i}),l(),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){r!==t[30]&&(o(),r=t[30],l());const i={};1&n&&(i.date=t[28]),2&n&&(i.chunks=t[1]),4&n&&(i.bgChunks=t[2]),8&n&&(i.longChunks=t[3]),16&n&&(i.iChunks=t[4]),1&n&&(i.dates=t[0]),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ct(e,t)}}}function ar(t){let e,n,r,l,o,i=lt(t[0]),s=[];for(let e=0;e<i.length;e+=1)s[e]=sr(ir(t,i,e));const a=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=b("div");for(let t=0;t<s.length;t+=1)s[t].c();T(e,"class",n=t[6].days),T(e,"role","row")},m(n,i){v(n,e,i);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);r=!0,l||(o=_(window,"resize",t[15]),l=!0)},p(t,l){let[o]=l;if(63&o){let n;for(i=lt(t[0]),n=0;n<i.length;n+=1){const r=ir(t,i,n);s[n]?(s[n].p(r,o),nt(s[n],1)):(s[n]=sr(r),s[n].c(),nt(s[n],1),s[n].m(e,null))}for(tt(),n=i.length;n<s.length;n+=1)a(n);et()}(!r||64&o&&n!==(n=t[6].days))&&T(e,"class",n)},i(t){if(!r){for(let t=0;t<i.length;t+=1)nt(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)rt(s[t]);r=!1},d(t){t&&y(e),w(s,t),l=!1,o()}}}function cr(t,e,n){let r,l,o,i,s,c,u,d,{dates:f}=e,{_events:h,_iEvents:m,_queue2:p,_hiddenEvents:$,resources:g,filterEventsWithResources:v,hiddenDays:y,theme:w,validRange:b}=B("state");a(t,h,(t=>n(23,c=t))),a(t,m,(t=>n(20,o=t))),a(t,$,(t=>n(18,r=t))),a(t,g,(t=>n(21,i=t))),a(t,v,(t=>n(22,s=t))),a(t,y,(t=>n(19,l=t))),a(t,w,(t=>n(6,d=t))),a(t,b,(t=>n(24,u=t)));let k,x,C,_,D,T=[],E=[],S={};function M(){Jt((()=>_e(E,f)),S,p)}return t.$$set=t=>{"dates"in t&&n(0,f=t.dates)},t.$$.update=()=>{if(16777217&t.$$.dirty&&(n(16,_=Fe(f[0],u)),n(17,D=_t(kt(Fe(f.at(-1),u))))),15400966&t.$$.dirty){n(1,k=[]),n(2,x=[]);for(let t of c)if(De(t,_,D,s?i:void 0)){let e=pe(t,_,D);Ee(t.display)?t.allDay&&x.push(e):k.push(e)}xe(x,l),n(3,C=xe(k,l)),M()}1769472&t.$$.dirty&&n(4,T=o.map((t=>{let e;return t&&De(t,_,D)?(e=pe(t,_,D),xe([e],l)):e=null,e}))),262144&t.$$.dirty&&r&&Y().then(M)},[f,k,x,C,T,E,d,h,m,$,g,v,y,w,b,M,_,D,r,l,o,i,s,c,u,function(t,e){P[t?"unshift":"push"]((()=>{E[e]=t,n(5,E)}))}]}let ur=class extends dt{constructor(t){super(),ut(this,t,cr,ar,o,{dates:0})}};function dr(t,e,n){const r=t.slice();return r[15]=e[n],r}function fr(t){let e,n;return e=new ur({props:{dates:t[15]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.dates=t[15]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function hr(t){let e,n,r,l,o,i=lt(t[0]),s=[];for(let e=0;e<i.length;e+=1)s[e]=fr(dr(t,i,e));const a=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=b("div"),n=b("div");for(let t=0;t<s.length;t+=1)s[t].c();T(n,"class",r=t[2].content),T(e,"class",l=t[2].body+(!0===t[1]?" "+t[2].uniform:""))},m(r,l){v(r,e,l),g(e,n);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(n,null);t[13](e),o=!0},p(t,c){let[u]=c;if(1&u){let e;for(i=lt(t[0]),e=0;e<i.length;e+=1){const r=dr(t,i,e);s[e]?(s[e].p(r,u),nt(s[e],1)):(s[e]=fr(r),s[e].c(),nt(s[e],1),s[e].m(n,null))}for(tt(),e=i.length;e<s.length;e+=1)a(e);et()}(!o||4&u&&r!==(r=t[2].content))&&T(n,"class",r),(!o||6&u&&l!==(l=t[2].body+(!0===t[1]?" "+t[2].uniform:"")))&&T(e,"class",l)},i(t){if(!o){for(let t=0;t<i.length;t+=1)nt(s[t]);o=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)rt(s[t]);o=!1},d(n){n&&y(e),w(s,n),t[13](null)}}}function mr(t,e,n){let r,l,o,i,s,c,u,d,{_bodyEl:f,_viewDates:h,_hiddenEvents:p,dayMaxEvents:$,hiddenDays:g,theme:v}=B("state");return a(t,f,(t=>n(3,c=t))),a(t,h,(t=>n(11,r=t))),a(t,p,(t=>n(14,o=t))),a(t,$,(t=>n(1,l=t))),a(t,g,(t=>n(12,i=t))),a(t,v,(t=>n(2,s=t))),t.$$.update=()=>{if(7171&t.$$.dirty){n(0,u=[]),n(10,d=7-i.length),m(p,o={},o);for(let t=0;t<r.length/d;++t){let e=[];for(let n=0;n<d;++n)e.push(r[t*d+n]);u.push(e)}}},[u,l,s,c,f,h,p,$,g,v,d,r,i,function(t){P[t?"unshift":"push"]((()=>{c=t,f.set(c)}))}]}let pr=class extends dt{constructor(t){super(),ut(this,t,mr,hr,o,{})}};function $r(e){let n,r,l,o;return n=new Hn({}),l=new pr({}),{c(){st(n.$$.fragment),r=x(),st(l.$$.fragment)},m(t,e){at(n,t,e),v(t,r,e),at(l,t,e),o=!0},p:t,i(t){o||(nt(n.$$.fragment,t),nt(l.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),rt(l.$$.fragment,t),o=!1},d(t){t&&y(r),ct(n,t),ct(l,t)}}}let gr=class extends dt{constructor(t){super(),ut(this,t,null,$r,o,{})}};var vr={createOptions(t){t.dayMaxEvents=!1,t.dayCellFormat={day:"numeric"},t.dayPopoverFormat={month:"long",day:"numeric",year:"numeric"},t.moreLinkContent=void 0,t.buttonText.dayGridMonth="month",t.buttonText.close="Close",t.theme.uniform="ec-uniform",t.theme.dayFoot="ec-day-foot",t.theme.popup="ec-popup",t.theme.weekNumber="ec-week-number",t.view="dayGridMonth",t.weekNumbers=!1,t.weekNumberContent=void 0,t.views.dayGridMonth={buttonText:Ne,component:gr,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:ze("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(t){t._days=function(t){return pt([t.date,t.firstDay,t.hiddenDays],(t=>{let[e,n,r]=t,l=[],o=kt(e),i=7;for(;o.getUTCDay()!==n&&i;)Dt(o),--i;for(let t=0;t<7;++t)r.includes(o.getUTCDay())||l.push(kt(o)),_t(o);return l}))}(t),t._intlDayCell=Ge(t.locale,t.dayCellFormat),t._intlDayPopover=Ge(t.locale,t.dayPopoverFormat),t._hiddenEvents=mt({}),t._popupDate=mt(null),t._popupChunks=mt([])}};function yr(e){let n,o,i,s,a,c,u,d,f,h,m;return{c(){n=b("article"),o=b("div"),s=x(),a=b("div"),T(o,"class",i=e[0].eventTag),T(o,"style",e[3]),T(a,"class",c=e[0].eventBody),T(n,"class",e[2]),T(n,"role",d=e[5]?"button":void 0),T(n,"tabindex",f=e[5]?0:void 0)},m(t,r){v(t,n,r),g(n,o),g(n,s),g(n,a),e[38](n),h||(m=[p(u=gt.call(null,a,e[4])),_(n,"click",(function(){l(e[5])&&e[5].apply(this,arguments)})),_(n,"keydown",(function(){l(e[5]&&$t(e[5]))&&(e[5]&&$t(e[5])).apply(this,arguments)})),_(n,"mouseenter",(function(){l(e[25](e[6]))&&e[25](e[6]).apply(this,arguments)})),_(n,"mouseleave",(function(){l(e[25](e[7]))&&e[25](e[7]).apply(this,arguments)})),_(n,"pointerdown",(function(){l(e[8].action?.noAction)&&e[8].action?.noAction.apply(this,arguments)}))],h=!0)},p(t,r){e=t,1&r[0]&&i!==(i=e[0].eventTag)&&T(o,"class",i),8&r[0]&&T(o,"style",e[3]),1&r[0]&&c!==(c=e[0].eventBody)&&T(a,"class",c),u&&l(u.update)&&16&r[0]&&u.update.call(null,e[4]),4&r[0]&&T(n,"class",e[2]),32&r[0]&&d!==(d=e[5]?"button":void 0)&&T(n,"role",d),32&r[0]&&f!==(f=e[5]?0:void 0)&&T(n,"tabindex",f)},i:t,o:t,d(t){t&&y(n),e[38](null),h=!1,r(m)}}}function wr(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,p,$,g,v,y,w,b,k,x,C,_,D,{chunk:T}=e,{displayEventEnd:E,eventAllUpdated:S,eventBackgroundColor:M,eventTextColor:U,eventColor:N,eventContent:R,eventClassNames:H,eventClick:F,eventDidMount:A,eventMouseEnter:j,eventMouseLeave:W,resources:I,theme:O,_view:G,_intlEventTime:Y,_interaction:q,_tasks:X}=B("state");function V(t){return Gt(t)?e=>t({event:we(b),el:w,jsEvent:e,view:ae(l)}):void 0}return a(t,E,(t=>n(32,d=t))),a(t,S,(t=>n(40,o=t))),a(t,M,(t=>n(37,$=t))),a(t,U,(t=>n(34,h=t))),a(t,N,(t=>n(36,p=t))),a(t,R,(t=>n(31,u=t))),a(t,H,(t=>n(33,f=t))),a(t,F,(t=>n(28,r=t))),a(t,A,(t=>n(41,i=t))),a(t,j,(t=>n(6,g=t))),a(t,W,(t=>n(7,v=t))),a(t,I,(t=>n(35,m=t))),a(t,O,(t=>n(0,c=t))),a(t,G,(t=>n(29,l=t))),a(t,Y,(t=>n(30,s=t))),a(t,q,(t=>n(8,y=t))),L((()=>{Gt(i)&&i({event:we(b),timeText:_,el:w,view:ae(l)})})),z((()=>{Gt(o)&&Qt((()=>o({view:ae(l)})),"eau",X)})),t.$$set=t=>{"chunk"in t&&n(26,T=t.chunk)},t.$$.update=()=>{if(67108864&t.$$.dirty[0]&&n(27,b=T.event),671088649&t.$$.dirty[0]|124&t.$$.dirty[1]){n(3,x="");let t=b.backgroundColor||We(b,m)||$||p;t&&n(3,x=`background-color:${t};`);let e=b.textColor||Ie(b,m)||h;e&&n(3,x+=`color:${e};`),n(3,x+=b.styles.join(";")),n(2,k=[c.event,...ye(f,b,l)].join(" "))}1677721601&t.$$.dirty[0]|3&t.$$.dirty[1]&&n(4,[_,C]=ge(T,d,u,c,s,l),C),268435456&t.$$.dirty[0]&&n(5,D=V(r))},[c,w,k,x,C,D,g,v,y,E,S,M,U,N,R,H,F,A,j,W,I,O,G,Y,q,V,T,b,r,l,s,u,d,f,h,m,p,$,function(t){P[t?"unshift":"push"]((()=>{w=t,n(1,w)}))}]}let br=class extends dt{constructor(t){super(),ut(this,t,wr,yr,o,{chunk:26},null,[-1,-1])}};function kr(t,e,n){const r=t.slice();return r[28]=e[n],r}function xr(t){let e,n,o,i,s,a,c,u,d,f,h,m,$,w,k=[],C=new Map,D=lt(t[2]);const E=t=>t[28].event;for(let e=0;e<D.length;e+=1){let n=kr(t,D,e),r=E(n);C.set(r,k[e]=Cr(r,n))}return{c(){e=b("div"),n=b("h4"),o=b("time"),s=x(),a=b("time"),f=x();for(let t=0;t<k.length;t+=1)k[t].c();T(o,"datetime",t[5]),T(a,"class",c=t[6].daySide),T(a,"datetime",t[5]),T(n,"class",d=t[6].dayHead),T(e,"class",h=t[6].day+" "+t[6].weekdays?.[t[0].getUTCDay()]+(t[3]?" "+t[6].today:"")+(t[4]?" "+t[6].highlight:"")),T(e,"role","listitem")},m(r,c){v(r,e,c),g(e,n),g(n,o),g(n,s),g(n,a),g(e,f);for(let t=0;t<k.length;t+=1)k[t]&&k[t].m(e,null);t[27](e),m=!0,$||(w=[p(i=gt.call(null,o,t[8].format(t[0]))),p(u=gt.call(null,a,t[9].format(t[0]))),_(e,"pointerdown",(function(){l(t[7].action?.select)&&t[7].action?.select.apply(this,arguments)}))],$=!0)},p(r,s){t=r,(!m||32&s)&&T(o,"datetime",t[5]),i&&l(i.update)&&257&s&&i.update.call(null,t[8].format(t[0])),(!m||64&s&&c!==(c=t[6].daySide))&&T(a,"class",c),(!m||32&s)&&T(a,"datetime",t[5]),u&&l(u.update)&&513&s&&u.update.call(null,t[9].format(t[0])),(!m||64&s&&d!==(d=t[6].dayHead))&&T(n,"class",d),4&s&&(D=lt(t[2]),tt(),k=it(k,s,E,0,t,D,C,e,ot,Cr,null,kr),et()),(!m||89&s&&h!==(h=t[6].day+" "+t[6].weekdays?.[t[0].getUTCDay()]+(t[3]?" "+t[6].today:"")+(t[4]?" "+t[6].highlight:"")))&&T(e,"class",h)},i(t){if(!m){for(let t=0;t<D.length;t+=1)nt(k[t]);m=!0}},o(t){for(let t=0;t<k.length;t+=1)rt(k[t]);m=!1},d(n){n&&y(e);for(let t=0;t<k.length;t+=1)k[t].d();t[27](null),$=!1,r(w)}}}function Cr(t,e){let n,r,l;return r=new br({props:{chunk:e[28]}}),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};4&n&&(l.chunk=e[28]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function _r(t){let e,n,r=t[2].length&&xr(t);return{c(){r&&r.c(),e=C()},m(t,l){r&&r.m(t,l),v(t,e,l),n=!0},p(t,n){let[l]=n;t[2].length?r?(r.p(t,l),4&l&&nt(r,1)):(r=xr(t),r.c(),nt(r,1),r.m(e.parentNode,e)):r&&(tt(),rt(r,1,1,(()=>{r=null})),et())},i(t){n||(nt(r),n=!0)},o(t){rt(r),n=!1},d(t){t&&y(e),r&&r.d(t)}}}function Dr(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,{date:p}=e,{_events:$,_interaction:g,_intlListDay:v,_intlListDaySide:y,_today:w,resources:b,filterEventsWithResources:k,highlightedDates:x,theme:C,validRange:_}=B("state");a(t,$,(t=>n(23,o=t))),a(t,g,(t=>n(7,d=t))),a(t,v,(t=>n(8,f=t))),a(t,y,(t=>n(9,h=t))),a(t,w,(t=>n(26,c=t))),a(t,b,(t=>n(21,r=t))),a(t,k,(t=>n(22,l=t))),a(t,x,(t=>n(25,s=t))),a(t,C,(t=>n(6,u=t))),a(t,_,(t=>n(24,i=t)));let D,T,E,S,M=[];return t.$$set=t=>{"date"in t&&n(0,p=t.date)},t.$$.update=()=>{if(67108865&t.$$.dirty&&n(3,D=Mt(p,c)),33554433&t.$$.dirty&&n(4,T=s.some((t=>Mt(t,p)))),16777217&t.$$.dirty&&n(20,E=Be(p,i)),1&t.$$.dirty&&n(5,S=St(p,10)),15728645&t.$$.dirty&&!E){n(2,M=[]);let t=p,e=_t(kt(p));for(let n of o)if(!Ee(n.display)&&De(n,t,e,l?r:void 0)){let r=pe(n,t,e);M.push(r)}$e(M)}1048579&t.$$.dirty&&m&&te(m,(()=>({allDay:!0,date:p,resource:void 0,dayEl:m,disabled:E})))},[p,m,M,D,T,S,u,d,f,h,$,g,v,y,w,b,k,x,C,_,E,r,l,o,i,s,c,function(t){P[t?"unshift":"push"]((()=>{m=t,n(1,m)}))}]}let Tr=class extends dt{constructor(t){super(),ut(this,t,Dr,_r,o,{date:0})}};function Er(t,e,n){const r=t.slice();return r[18]=e[n],r}function Sr(t){let e,n,r=lt(t[1]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Ur(Er(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(2&n){let i;for(r=lt(t[1]),i=0;i<r.length;i+=1){const o=Er(t,r,i);l[i]?(l[i].p(o,n),nt(l[i],1)):(l[i]=Ur(o),l[i].c(),nt(l[i],1),l[i].m(e.parentNode,e))}for(tt(),i=r.length;i<l.length;i+=1)o(i);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function Mr(e){let n,o,i,s,a;return{c(){n=b("div"),T(n,"class",o=e[3].noEvents)},m(t,r){v(t,n,r),s||(a=[p(i=gt.call(null,n,e[0])),_(n,"click",e[12])],s=!0)},p(t,e){8&e&&o!==(o=t[3].noEvents)&&T(n,"class",o),i&&l(i.update)&&1&e&&i.update.call(null,t[0])},i:t,o:t,d(t){t&&y(n),s=!1,r(a)}}}function Ur(t){let e,n;return e=new Tr({props:{date:t[18]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};2&n&&(r.date=t[18]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Nr(t){let e,n,r,l,o,i,s;const a=[Mr,Sr],c=[];function u(t,e){return t[2]?0:1}return r=u(t),l=c[r]=a[r](t),{c(){e=b("div"),n=b("div"),l.c(),T(n,"class",o=t[3].content),T(e,"class",i=t[3].body)},m(l,o){v(l,e,o),g(e,n),c[r].m(n,null),t[15](e),s=!0},p(t,d){let[f]=d,h=r;r=u(t),r===h?c[r].p(t,f):(tt(),rt(c[h],1,1,(()=>{c[h]=null})),et(),l=c[r],l?l.p(t,f):(l=c[r]=a[r](t),l.c()),nt(l,1),l.m(n,null)),(!s||8&f&&o!==(o=t[3].content))&&T(n,"class",o),(!s||8&f&&i!==(i=t[3].body))&&T(e,"class",i)},i(t){s||(nt(l),s=!0)},o(t){rt(l),s=!1},d(n){n&&y(e),c[r].d(),t[15](null)}}}function Rr(t,e,n){let r,l,o,i,s,c,u,d,f,{_bodyEl:h,_events:m,_view:p,_viewDates:$,noEventsClick:g,noEventsContent:v,theme:y}=B("state");return a(t,h,(t=>n(4,u=t))),a(t,m,(t=>n(14,i=t))),a(t,p,(t=>n(16,r=t))),a(t,$,(t=>n(1,s=t))),a(t,g,(t=>n(17,l=t))),a(t,v,(t=>n(13,o=t))),a(t,y,(t=>n(3,c=t))),t.$$.update=()=>{if(16386&t.$$.dirty&&(n(2,d=!0),s.length)){let t=s[0],e=_t(kt(s.at(-1)));for(let r of i)if(!Ee(r.display)&&r.start<e&&r.end>t){n(2,d=!1);break}}8193&t.$$.dirty&&(n(0,f=Gt(o)?o():o),"string"==typeof f&&n(0,f={html:f}))},[f,s,d,c,u,h,m,p,$,g,v,y,function(t){Gt(l)&&l({jsEvent:t,view:ae(r)})},o,i,function(t){P[t?"unshift":"push"]((()=>{u=t,h.set(u)}))}]}let Lr=class extends dt{constructor(t){super(),ut(this,t,Rr,Nr,o,{})}};function zr(e){let n,r;return n=new Lr({}),{c(){st(n.$$.fragment)},m(t,e){at(n,t,e),r=!0},p:t,i(t){r||(nt(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){ct(n,t)}}}let Hr=class extends dt{constructor(t){super(),ut(this,t,null,zr,o,{})}};var Br={createOptions(t){t.buttonText.listDay="list",t.buttonText.listWeek="list",t.buttonText.listMonth="list",t.buttonText.listYear="list",t.listDayFormat={weekday:"long"},t.listDaySideFormat={year:"numeric",month:"long",day:"numeric"},t.noEventsClick=void 0,t.noEventsContent="No events",t.theme.daySide="ec-day-side",t.theme.eventTag="ec-event-tag",t.theme.noEvents="ec-no-events",t.view="listWeek",t.views.listDay={buttonText:Me,component:Hr,duration:{days:1},theme:ze("ec-list ec-day-view")},t.views.listWeek={buttonText:Ue,component:Hr,duration:{weeks:1},theme:ze("ec-list ec-week-view")},t.views.listMonth={buttonText:Ne,component:Hr,duration:{months:1},theme:ze("ec-list ec-month-view")},t.views.listYear={buttonText:Re,component:Hr,duration:{years:1},theme:ze("ec-list ec-year-view")}},createStores(t){t._intlListDay=Ge(t.locale,t.listDayFormat),t._intlListDaySide=Ge(t.locale,t.listDaySideFormat)}};const Fr=t=>({}),Ar=t=>({});function Pr(t,e,n){const r=t.slice();return r[9]=e[n],r}function jr(t){let e,n,r,o,i,s;return{c(){e=b("time"),T(e,"class",n=t[1].time),T(e,"datetime",r=t[9][0])},m(n,r){v(n,e,r),i||(s=p(o=gt.call(null,e,t[9][2]?t[9][1]:"")),i=!0)},p(i,s){t=i,2&s&&n!==(n=t[1].time)&&T(e,"class",n),4&s&&r!==(r=t[9][0])&&T(e,"datetime",r),o&&l(o.update)&&4&s&&o.update.call(null,t[9][2]?t[9][1]:"")},d(t){t&&y(e),i=!1,s()}}}function Wr(t){let e,n,r,o,i,s,a,u,m,$,k,C,_,D,E,S=lt(t[2]),M=[];for(let e=0;e<S.length;e+=1)M[e]=jr(Pr(t,S,e));const U=t[8].lines,N=c(U,t,t[7],Ar),R=t[8].default,L=c(R,t,t[7],null);return{c(){e=b("div"),n=b("div"),i=x();for(let t=0;t<M.length;t+=1)M[t].c();a=x(),u=b("div"),m=b("div"),N&&N.c(),k=x(),L&&L.c(),T(n,"class",r=t[1].sidebarTitle),T(e,"class",s=t[1].sidebar),T(m,"class",$=t[1].lines),T(u,"class",C=t[1].days),T(u,"role","row")},m(r,l){v(r,e,l),g(e,n),g(e,i);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(e,null);v(r,a,l),v(r,u,l),g(u,m),N&&N.m(m,null),g(u,k),L&&L.m(u,null),_=!0,D||(E=p(o=gt.call(null,n,t[0])),D=!0)},p(t,i){let[a]=i;if((!_||2&a&&r!==(r=t[1].sidebarTitle))&&T(n,"class",r),o&&l(o.update)&&1&a&&o.update.call(null,t[0]),6&a){let n;for(S=lt(t[2]),n=0;n<S.length;n+=1){const r=Pr(t,S,n);M[n]?M[n].p(r,a):(M[n]=jr(r),M[n].c(),M[n].m(e,null))}for(;n<M.length;n+=1)M[n].d(1);M.length=S.length}(!_||2&a&&s!==(s=t[1].sidebar))&&T(e,"class",s),N&&N.p&&(!_||128&a)&&f(N,U,t,t[7],_?d(U,t[7],a,Fr):h(t[7]),Ar),(!_||2&a&&$!==($=t[1].lines))&&T(m,"class",$),L&&L.p&&(!_||128&a)&&f(L,R,t,t[7],_?d(R,t[7],a,null):h(t[7]),null),(!_||2&a&&C!==(C=t[1].days))&&T(u,"class",C)},i(t){_||(nt(N,t),nt(L,t),_=!0)},o(t){rt(N,t),rt(L,t),_=!1},d(t){t&&(y(e),y(a),y(u)),w(M,t),N&&N.d(t),L&&L.d(t),D=!1,E()}}}function Ir(t,e,n){let r,l,o,i,{$$slots:s={},$$scope:c}=e,{allDayContent:u,theme:d,_times:f}=B("state");return a(t,u,(t=>n(6,r=t))),a(t,d,(t=>n(1,l=t))),a(t,f,(t=>n(2,o=t))),t.$$set=t=>{"$$scope"in t&&n(7,c=t.$$scope)},t.$$.update=()=>{64&t.$$.dirty&&n(0,i=function(t){let e,n="all-day";return t?(e=Gt(t)?t({text:n}):t,"string"==typeof e&&(e={html:e})):e={html:n},e}(r))},[i,l,o,u,d,f,r,c,s]}class Or extends dt{constructor(t){super(),ut(this,t,Ir,Wr,o,{})}}function Gr(t,e,n){const r=t.slice();return r[23]=e[n],r}function Yr(t){let e;const n=t[16].default,r=c(n,t,t[18],null);return{c(){r&&r.c()},m(t,n){r&&r.m(t,n),e=!0},p(t,l){r&&r.p&&(!e||262144&l)&&f(r,n,t,t[18],e?d(n,t[18],l,null):h(t[18]),null)},i(t){e||(nt(r,t),e=!0)},o(t){rt(r,t),e=!1},d(t){r&&r.d(t)}}}function qr(t){let e,n;return{c(){e=b("div"),T(e,"class",n=t[3].line)},m(t,n){v(t,e,n)},p(t,r){8&r&&n!==(n=t[3].line)&&T(e,"class",n)},d(t){t&&y(e)}}}function Xr(t){let e,n=lt(t[2]),r=[];for(let e=0;e<n.length;e+=1)r[e]=qr(Gr(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);v(t,e,n)},p(t,l){if(12&l){let o;for(n=lt(t[2]),o=0;o<n.length;o+=1){const i=Gr(t,n,o);r[o]?r[o].p(i,l):(r[o]=qr(i),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){t&&y(e),w(r,t)}}}function Vr(t){let e,n,r,l,o,i;return r=new Or({props:{$$slots:{lines:[Xr],default:[Yr]},$$scope:{ctx:t}}}),{c(){e=b("div"),n=b("div"),st(r.$$.fragment),T(n,"class",l=t[3].content),T(e,"class",o=t[3].body+(t[1]?" "+t[3].compact:""))},m(l,o){v(l,e,o),g(e,n),at(r,n,null),t[17](e),i=!0},p(t,s){let[a]=s;const c={};262156&a&&(c.$$scope={dirty:a,ctx:t}),r.$set(c),(!i||8&a&&l!==(l=t[3].content))&&T(n,"class",l),(!i||10&a&&o!==(o=t[3].body+(t[1]?" "+t[3].compact:"")))&&T(e,"class",o)},i(t){i||(nt(r.$$.fragment,t),i=!0)},o(t){rt(r.$$.fragment,t),i=!1},d(n){n&&y(e),ct(r),t[17](null)}}}function Jr(t,e,n){let r,l,o,i,s,c,u,d,f,h,{$$slots:p={},$$scope:$}=e,{_bodyEl:g,_viewDates:v,_slotTimeLimits:y,_times:w,scrollTime:b,slotDuration:k,slotHeight:x,theme:C}=B("state");a(t,g,(t=>n(21,u=t))),a(t,v,(t=>n(14,s=t))),a(t,y,(t=>n(20,o=t))),a(t,w,(t=>n(15,c=t))),a(t,b,(t=>n(13,i=t))),a(t,k,(t=>n(12,l=t))),a(t,x,(t=>n(19,r=t))),a(t,C,(t=>n(3,d=t)));let _=[];return t.$$set=t=>{"$$scope"in t&&n(18,$=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty&&m(g,u=f,u),36864&t.$$.dirty&&(n(1,h=l.seconds>=3600),n(2,_.length=c.length,_)),24577&t.$$.dirty&&f&&n(0,f.scrollTop=((i.seconds-o.min.seconds)/l.seconds-.5)*r,f)},[f,h,_,d,g,v,y,w,b,k,x,C,l,i,s,c,p,function(t){P[t?"unshift":"push"]((()=>{f=t,n(0,f)}))},$]}let Kr=class extends dt{constructor(t){super(),ut(this,t,Jr,Vr,o,{})}};function Qr(t){let e,n,o,i,s,a,c,u,d,f,h,m,$;var w=t[10].resizer;function k(t,e){return{props:{start:!0,event:t[0]}}}w&&(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[33](t[10],["y","start"]))&&t[33](t[10],["y","start"]).apply(this,arguments)})));var C=t[10].resizer;function D(t,e){return{props:{event:t[0]}}}return C&&(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[33](t[10],["y","end"]))&&t[33](t[10],["y","end"]).apply(this,arguments)}))),{c(){e=b("article"),n&&st(n.$$.fragment),o=x(),i=b("div"),c=x(),u&&st(u.$$.fragment),T(i,"class",s=t[2].eventBody),T(e,"class",t[4]),T(e,"style",t[5]),T(e,"role",d=t[7]?"button":void 0),T(e,"tabindex",f=t[7]?0:void 0)},m(r,s){v(r,e,s),n&&at(n,e,null),g(e,o),g(e,i),g(e,c),u&&at(u,e,null),t[51](e),h=!0,m||($=[p(a=gt.call(null,i,t[6])),_(e,"click",(function(){l(t[7])&&t[7].apply(this,arguments)})),_(e,"keydown",(function(){l(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),_(e,"mouseenter",(function(){l(t[32](t[8],t[1]))&&t[32](t[8],t[1]).apply(this,arguments)})),_(e,"mouseleave",(function(){l(t[32](t[9],t[1]))&&t[32](t[9],t[1]).apply(this,arguments)})),_(e,"pointerdown",(function(){l(!Ee(t[1])&&!Te(t[1])&&t[33](t[10]))&&(!Ee(t[1])&&!Te(t[1])&&t[33](t[10])).apply(this,arguments)}))],m=!0)},p(r,c){if(t=r,1024&c[0]&&w!==(w=t[10].resizer)){if(n){tt();const t=n;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}w?(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[33](t[10],["y","start"]))&&t[33](t[10],["y","start"]).apply(this,arguments)})),st(n.$$.fragment),nt(n.$$.fragment,1),at(n,e,o)):n=null}else if(w){const e={};1&c[0]&&(e.event=t[0]),n.$set(e)}if((!h||4&c[0]&&s!==(s=t[2].eventBody))&&T(i,"class",s),a&&l(a.update)&&64&c[0]&&a.update.call(null,t[6]),1024&c[0]&&C!==(C=t[10].resizer)){if(u){tt();const t=u;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}C?(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[33](t[10],["y","end"]))&&t[33](t[10],["y","end"]).apply(this,arguments)})),st(u.$$.fragment),nt(u.$$.fragment,1),at(u,e,null)):u=null}else if(C){const e={};1&c[0]&&(e.event=t[0]),u.$set(e)}(!h||16&c[0])&&T(e,"class",t[4]),(!h||32&c[0])&&T(e,"style",t[5]),(!h||128&c[0]&&d!==(d=t[7]?"button":void 0))&&T(e,"role",d),(!h||128&c[0]&&f!==(f=t[7]?0:void 0))&&T(e,"tabindex",f)},i(t){h||(n&&nt(n.$$.fragment,t),u&&nt(u.$$.fragment,t),h=!0)},o(t){n&&rt(n.$$.fragment,t),u&&rt(u.$$.fragment,t),h=!1},d(l){l&&y(e),n&&ct(n),u&&ct(u),t[51](null),m=!1,r($)}}}function Zr(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,p,$,g,v,y,w,b,k,x,C,_,D,T,E,S,M,U,N,{date:R}=e,{chunk:H}=e,{displayEventEnd:F,eventAllUpdated:A,eventBackgroundColor:j,eventTextColor:W,eventColor:I,eventContent:O,eventClick:G,eventDidMount:Y,eventClassNames:q,eventMouseEnter:X,eventMouseLeave:V,slotEventOverlap:J,slotDuration:K,slotHeight:Q,resources:Z,theme:tt,_view:et,_intlEventTime:nt,_interaction:rt,_iClasses:lt,_slotTimeLimits:ot,_tasks:it}=B("state");function st(t,e){return!Te(e)&&Gt(t)?e=>t({event:we(D),el:_,jsEvent:e,view:ae(l)}):void 0}return a(t,F,(t=>n(40,d=t))),a(t,A,(t=>n(53,o=t))),a(t,j,(t=>n(47,v=t))),a(t,W,(t=>n(44,p=t))),a(t,I,(t=>n(46,g=t))),a(t,O,(t=>n(39,u=t))),a(t,G,(t=>n(36,r=t))),a(t,Y,(t=>n(54,i=t))),a(t,q,(t=>n(41,f=t))),a(t,X,(t=>n(8,k=t))),a(t,V,(t=>n(9,x=t))),a(t,J,(t=>n(43,m=t))),a(t,K,(t=>n(50,b=t))),a(t,Q,(t=>n(48,y=t))),a(t,Z,(t=>n(45,$=t))),a(t,tt,(t=>n(2,c=t))),a(t,et,(t=>n(37,l=t))),a(t,nt,(t=>n(38,s=t))),a(t,rt,(t=>n(10,C=t))),a(t,lt,(t=>n(42,h=t))),a(t,ot,(t=>n(49,w=t))),L((()=>{Gt(i)&&i({event:we(D),timeText:U,el:_,view:ae(l)})})),z((()=>{Gt(o)&&!Te(T)&&Qt((()=>o({view:ae(l)})),"eau",it)})),t.$$set=t=>{"date"in t&&n(34,R=t.date),"chunk"in t&&n(35,H=t.chunk)},t.$$.update=()=>{if(16&t.$$.dirty[1]&&n(0,D=H.event),39&t.$$.dirty[0]|1047640&t.$$.dirty[1]){n(1,T=D.display);let t=b.seconds,e=w.min.seconds,r=(H.start-R)/1e3,o=(H.end-R)/1e3,i=(r-e)/t*y,s=It((o-r)/t*y,y),a=(w.max.seconds-r)/t*y,u=D.backgroundColor||We(D,$)||v||g,d=D.textColor||Ie(D,$)||p;n(5,S=`top:${i}px;min-height:${s}px;height:${s}px;max-height:${a}px;`),u&&n(5,S+=`background-color:${u};`),d&&n(5,S+=`color:${d};`),(!Ee(T)&&!Te(T)||Se(T))&&n(5,S+=`z-index:${H.column+1};left:${100/H.group.columns.length*H.column}%;width:${100/H.group.columns.length*(m?.5*(1+H.group.columns.length-H.column):1)}%;`),n(5,S+=D.styles.join(";")),n(4,E=[Ee(T)?c.bgEvent:c.event,...h([],D),...ye(f,D,l)].join(" "))}4&t.$$.dirty[0]|976&t.$$.dirty[1]&&n(6,[U,M]=ge(H,d,u,c,s,l),M),2&t.$$.dirty[0]|32&t.$$.dirty[1]&&n(7,N=!Ee(T)&&st(r,T))},[D,T,c,_,E,S,M,N,k,x,C,F,A,j,W,I,O,G,Y,q,X,V,J,K,Q,Z,tt,et,nt,rt,lt,ot,st,function(t,e){return t.action?n=>t.action.drag(D,n,e,void 0,void 0,H.zeroDuration):void 0},R,H,r,l,s,u,d,f,h,m,p,$,g,v,y,w,b,function(t){P[t?"unshift":"push"]((()=>{_=t,n(3,_)}))}]}let tl=class extends dt{constructor(t){super(),ut(this,t,Zr,Qr,o,{date:34,chunk:35},null,[-1,-1])}};function el(e){let n,r;return{c(){n=b("div"),T(n,"class",r=e[1].nowIndicator),S(n,"top",e[0]+"px")},m(t,e){v(t,n,e)},p(t,e){let[l]=e;2&l&&r!==(r=t[1].nowIndicator)&&T(n,"class",r),1&l&&S(n,"top",t[0]+"px")},i:t,o:t,d(t){t&&y(n)}}}function nl(t,e,n){let r,l,o,i,s,c,u,{slotDuration:d,slotHeight:f,theme:h,_now:m,_today:p,_slotTimeLimits:$}=B("state");a(t,d,(t=>n(11,o=t))),a(t,f,(t=>n(9,r=t))),a(t,h,(t=>n(1,c=t))),a(t,m,(t=>n(13,s=t))),a(t,p,(t=>n(12,i=t))),a(t,$,(t=>n(10,l=t)));let g=0;return t.$$.update=()=>{if(12288&t.$$.dirty&&n(8,u=(s-i)/1e3/60),3840&t.$$.dirty){let t=o.seconds/60,e=l.min.seconds/60;n(0,g=(u-e)/t*r)}},[g,c,d,f,h,m,p,$,u,r,l,o,i,s]}class rl extends dt{constructor(t){super(),ut(this,t,nl,el,o,{})}}function ll(t,e,n){const r=t.slice();return r[40]=e[n],r}function ol(t,e,n){const r=t.slice();return r[40]=e[n],r}function il(t){let e,n,r=[],l=new Map,o=lt(t[3]);const i=t=>t[40].event;for(let e=0;e<o.length;e+=1){let n=ol(t,o,e),s=i(n);l.set(s,r[e]=sl(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);v(t,e,l),n=!0},p(t,n){9&n[0]&&(o=lt(t[3]),tt(),r=it(r,n,i,0,t,o,l,e.parentNode,ot,sl,e,ol),et())},i(t){if(!n){for(let t=0;t<o.length;t+=1)nt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&y(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function sl(t,e){let n,r,l;return r=new tl({props:{date:e[0],chunk:e[40]}}),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};1&n[0]&&(l.date=e[0]),8&n[0]&&(l.chunk=e[40]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function al(t){let e,n,r,l,o=[],i=new Map,s=t[5][1]&&cl(t),a=lt(t[2]);const c=t=>t[40].event;for(let e=0;e<a.length;e+=1){let n=ll(t,a,e),r=c(n);i.set(r,o[e]=ul(r,n))}let u=t[5][0]&&!t[5][0].event.allDay&&dl(t);return{c(){s&&s.c(),e=x();for(let t=0;t<o.length;t+=1)o[t].c();n=x(),u&&u.c(),r=C()},m(t,i){s&&s.m(t,i),v(t,e,i);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,i);v(t,n,i),u&&u.m(t,i),v(t,r,i),l=!0},p(t,l){t[5][1]?s?(s.p(t,l),32&l[0]&&nt(s,1)):(s=cl(t),s.c(),nt(s,1),s.m(e.parentNode,e)):s&&(tt(),rt(s,1,1,(()=>{s=null})),et()),5&l[0]&&(a=lt(t[2]),tt(),o=it(o,l,c,0,t,a,i,n.parentNode,ot,ul,n,ll),et()),t[5][0]&&!t[5][0].event.allDay?u?(u.p(t,l),32&l[0]&&nt(u,1)):(u=dl(t),u.c(),nt(u,1),u.m(r.parentNode,r)):u&&(tt(),rt(u,1,1,(()=>{u=null})),et())},i(t){if(!l){nt(s);for(let t=0;t<a.length;t+=1)nt(o[t]);nt(u),l=!0}},o(t){rt(s);for(let t=0;t<o.length;t+=1)rt(o[t]);rt(u),l=!1},d(t){t&&(y(e),y(n),y(r)),s&&s.d(t);for(let e=0;e<o.length;e+=1)o[e].d(t);u&&u.d(t)}}}function cl(t){let e,n;return e=new tl({props:{date:t[0],chunk:t[5][1]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.date=t[0]),32&n[0]&&(r.chunk=t[5][1]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function ul(t,e){let n,r,l;return r=new tl({props:{date:e[0],chunk:e[40]}}),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};1&n[0]&&(l.date=e[0]),4&n[0]&&(l.chunk=e[40]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function dl(t){let e,n;return e=new tl({props:{date:t[0],chunk:t[5][0]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.date=t[0]),32&n[0]&&(r.chunk=t[5][0]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function fl(t){let e,n;return e=new rl({}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function hl(t){let e,n,r,o,i,s,a,c,u,d,f,h,m,p=!t[4]&&il(t),$=!t[4]&&al(t),w=t[10]&&t[6]&&!t[4]&&fl();return{c(){e=b("div"),n=b("div"),p&&p.c(),o=x(),i=b("div"),$&&$.c(),a=x(),c=b("div"),w&&w.c(),T(n,"class",r=t[8].bgEvents),T(i,"class",s=t[8].events),T(c,"class",u=t[8].extra),T(e,"class",d=t[8].day+" "+t[8].weekdays?.[t[0].getUTCDay()]+(t[6]?" "+t[8].today:"")+(t[7]?" "+t[8].highlight:"")+(t[4]?" "+t[8].disabled:"")),T(e,"role","cell")},m(r,s){v(r,e,s),g(e,n),p&&p.m(n,null),g(e,o),g(e,i),$&&$.m(i,null),g(e,a),g(e,c),w&&w.m(c,null),t[36](e),f=!0,h||(m=_(e,"pointerdown",(function(){l(t[4]?void 0:t[9].action?.select)&&(t[4]?void 0:t[9].action?.select).apply(this,arguments)})),h=!0)},p(l,o){(t=l)[4]?p&&(tt(),rt(p,1,1,(()=>{p=null})),et()):p?(p.p(t,o),16&o[0]&&nt(p,1)):(p=il(t),p.c(),nt(p,1),p.m(n,null)),(!f||256&o[0]&&r!==(r=t[8].bgEvents))&&T(n,"class",r),t[4]?$&&(tt(),rt($,1,1,(()=>{$=null})),et()):$?($.p(t,o),16&o[0]&&nt($,1)):($=al(t),$.c(),nt($,1),$.m(i,null)),(!f||256&o[0]&&s!==(s=t[8].events))&&T(i,"class",s),t[10]&&t[6]&&!t[4]?w?1104&o[0]&&nt(w,1):(w=fl(),w.c(),nt(w,1),w.m(c,null)):w&&(tt(),rt(w,1,1,(()=>{w=null})),et()),(!f||256&o[0]&&u!==(u=t[8].extra))&&T(c,"class",u),(!f||465&o[0]&&d!==(d=t[8].day+" "+t[8].weekdays?.[t[0].getUTCDay()]+(t[6]?" "+t[8].today:"")+(t[7]?" "+t[8].highlight:"")+(t[4]?" "+t[8].disabled:"")))&&T(e,"class",d)},i(t){f||(nt(p),nt($),nt(w),f=!0)},o(t){rt(p),rt($),rt(w),f=!1},d(n){n&&y(e),p&&p.d(),$&&$.d(),w&&w.d(),t[36](null),h=!1,m()}}}function ml(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,p,$,g,{date:v}=e,{resource:y}=e,{_events:w,_iEvents:b,highlightedDates:k,nowIndicator:x,slotDuration:C,slotHeight:_,filterEventsWithResources:D,theme:T,resources:E,validRange:S,_interaction:M,_today:U,_slotTimeLimits:N}=B("state");a(t,w,(t=>n(30,s=t))),a(t,b,(t=>n(29,i=t))),a(t,k,(t=>n(34,f=t))),a(t,x,(t=>n(10,$=t))),a(t,C,(t=>n(38,l=t))),a(t,_,(t=>n(37,r=t))),a(t,D,(t=>n(32,u=t))),a(t,T,(t=>n(8,m=t))),a(t,E,(t=>n(31,c=t))),a(t,S,(t=>n(33,d=t))),a(t,M,(t=>n(9,p=t))),a(t,U,(t=>n(35,h=t))),a(t,N,(t=>n(28,o=t)));let R,L,z,H,F,A,j,W,I=[];function O(t,e){return e-=re(g).top,{allDay:!1,date:xt(xt(kt(v),o.min),l,Pt(e/r)),resource:y,dayEl:g,disabled:F}}return t.$$set=t=>{"date"in t&&n(0,v=t.date),"resource"in t&&n(24,y=t.resource)},t.$$.update=()=>{if(1&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(6,z=Mt(v,h)),1&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(7,H=f.some((t=>Mt(t,v)))),1&t.$$.dirty[0]|4&t.$$.dirty[1]&&n(4,F=Be(v,d)),268435473&t.$$.dirty[0]&&(F||(n(26,j=xt(kt(v),o.min)),n(27,W=xt(kt(v),o.max)))),16777216&t.$$.dirty[0]|3&t.$$.dirty[1]&&n(25,A=y??(u?c:void 0)),1308622876&t.$$.dirty[0]&&!F){n(2,R=[]),n(3,L=[]);for(let t of s)if((!t.allDay||Ee(t.display))&&De(t,j,W,A)){let e=pe(t,j,W);if("background"===t.display)L.push(e);else R.push(e)}!function(t){if(!t.length)return;$e(t);let e={columns:[],end:t[0].end};for(let n of t){let t=0;if(n.start<e.end){for(;t<e.columns.length&&!(e.columns[t].at(-1).end<=n.start);++t);n.end>e.end&&(e.end=n.end)}else e={columns:[],end:n.end};e.columns.length<t+1&&e.columns.push([]),e.columns[t].push(n),n.group=e,n.column=t}}(R)}754974736&t.$$.dirty[0]&&(F||n(5,I=i.map((t=>t&&De(t,j,W,y)?pe(t,j,W):null)))),2&t.$$.dirty[0]&&g&&te(g,O)},[v,g,R,L,F,I,z,H,m,p,$,w,b,k,x,C,_,D,T,E,S,M,U,N,y,A,j,W,o,i,s,c,u,d,f,h,function(t){P[t?"unshift":"push"]((()=>{g=t,n(1,g)}))}]}let pl=class extends dt{constructor(t){super(),ut(this,t,ml,hl,o,{date:0,resource:24},null,[-1,-1])}};function $l(t){let e,n,o,i,s,a,c,u,d,f,h,m,$;var w=t[10].resizer;function k(t,e){return{props:{start:!0,event:t[0]}}}w&&(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[29](t[10],["x","start"]))&&t[29](t[10],["x","start"]).apply(this,arguments)})));var C=t[10].resizer;function D(t,e){return{props:{event:t[0]}}}return C&&(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[29](t[10],["x","end"]))&&t[29](t[10],["x","end"]).apply(this,arguments)}))),{c(){e=b("article"),n&&st(n.$$.fragment),o=x(),i=b("div"),c=x(),u&&st(u.$$.fragment),T(i,"class",s=t[2].eventBody),T(e,"class",t[4]),T(e,"style",t[5]),T(e,"role",d=t[7]?"button":void 0),T(e,"tabindex",f=t[7]?0:void 0)},m(r,s){v(r,e,s),n&&at(n,e,null),g(e,o),g(e,i),g(e,c),u&&at(u,e,null),t[45](e),h=!0,m||($=[p(a=gt.call(null,i,t[6])),_(e,"click",(function(){l(t[7])&&t[7].apply(this,arguments)})),_(e,"keydown",(function(){l(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),_(e,"mouseenter",(function(){l(t[28](t[8],t[1]))&&t[28](t[8],t[1]).apply(this,arguments)})),_(e,"mouseleave",(function(){l(t[28](t[9],t[1]))&&t[28](t[9],t[1]).apply(this,arguments)})),_(e,"pointerdown",(function(){l(!Te(t[1])&&t[29](t[10]))&&(!Te(t[1])&&t[29](t[10])).apply(this,arguments)}))],m=!0)},p(r,c){if(t=r,1024&c[0]&&w!==(w=t[10].resizer)){if(n){tt();const t=n;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}w?(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[29](t[10],["x","start"]))&&t[29](t[10],["x","start"]).apply(this,arguments)})),st(n.$$.fragment),nt(n.$$.fragment,1),at(n,e,o)):n=null}else if(w){const e={};1&c[0]&&(e.event=t[0]),n.$set(e)}if((!h||4&c[0]&&s!==(s=t[2].eventBody))&&T(i,"class",s),a&&l(a.update)&&64&c[0]&&a.update.call(null,t[6]),1024&c[0]&&C!==(C=t[10].resizer)){if(u){tt();const t=u;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}C?(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[29](t[10],["x","end"]))&&t[29](t[10],["x","end"]).apply(this,arguments)})),st(u.$$.fragment),nt(u.$$.fragment,1),at(u,e,null)):u=null}else if(C){const e={};1&c[0]&&(e.event=t[0]),u.$set(e)}(!h||16&c[0])&&T(e,"class",t[4]),(!h||32&c[0])&&T(e,"style",t[5]),(!h||128&c[0]&&d!==(d=t[7]?"button":void 0))&&T(e,"role",d),(!h||128&c[0]&&f!==(f=t[7]?0:void 0))&&T(e,"tabindex",f)},i(t){h||(n&&nt(n.$$.fragment,t),u&&nt(u.$$.fragment,t),h=!0)},o(t){n&&rt(n.$$.fragment,t),u&&rt(u.$$.fragment,t),h=!1},d(l){l&&y(e),n&&ct(n),u&&ct(u),t[45](null),m=!1,r($)}}}function gl(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,p,$,g,v,y,w,b,k,x,C,_,D,{chunk:T}=e,{longChunks:E={}}=e,{displayEventEnd:S,eventAllUpdated:M,eventBackgroundColor:U,eventTextColor:N,eventClick:R,eventColor:H,eventContent:F,eventClassNames:A,eventDidMount:j,eventMouseEnter:W,eventMouseLeave:I,resources:O,theme:G,_view:Y,_intlEventTime:q,_interaction:X,_iClasses:V,_tasks:J}=B("state");a(t,S,(t=>n(38,d=t))),a(t,M,(t=>n(47,o=t))),a(t,U,(t=>n(44,g=t))),a(t,N,(t=>n(41,m=t))),a(t,R,(t=>n(34,r=t))),a(t,H,(t=>n(43,$=t))),a(t,F,(t=>n(37,u=t))),a(t,A,(t=>n(39,f=t))),a(t,j,(t=>n(48,i=t))),a(t,W,(t=>n(8,v=t))),a(t,I,(t=>n(9,y=t))),a(t,O,(t=>n(42,p=t))),a(t,G,(t=>n(2,c=t))),a(t,Y,(t=>n(35,l=t))),a(t,q,(t=>n(36,s=t))),a(t,X,(t=>n(10,w=t))),a(t,V,(t=>n(40,h=t)));let K,Q,Z=1;function tt(t,e){return!Te(e)&&Gt(t)?e=>t({event:we(k),el:b,jsEvent:e,view:ae(l)}):void 0}return L((()=>{Gt(i)&&i({event:we(k),timeText:D,el:b,view:ae(l)})})),z((()=>{Gt(o)&&!Te(K)&&Qt((()=>o({view:ae(l)})),"eau",J)})),t.$$set=t=>{"chunk"in t&&n(30,T=t.chunk),"longChunks"in t&&n(31,E=t.longChunks)},t.$$.update=()=>{if(1073741824&t.$$.dirty[0]&&n(0,k=T.event),1073741863&t.$$.dirty[0]|16148&t.$$.dirty[1]){n(1,K=k.display);let t=k.backgroundColor||We(k,p)||g||$,e=k.textColor||Ie(k,p)||m;Ee(K)?n(5,C=`width:calc(${100*T.days}% + ${T.days-1}px);`):n(5,C=`width:calc(${100*T.days}% + ${7*(T.days-1)}px);margin-top:${k._margin??Z}px;`),t&&n(5,C+=`background-color:${t};`),e&&n(5,C+=`color:${e};`),n(5,C+=k.styles.join(";")),n(4,x=[Ee(K)?c.bgEvent:c.event,...h([],k),...ye(f,k,l)].join(" "))}1073741828&t.$$.dirty[0]|240&t.$$.dirty[1]&&n(6,[D,_]=ge(T,d,u,c,s,l),_),2&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(7,Q=tt(r,K))},[k,K,c,b,x,C,_,Q,v,y,w,S,M,U,N,R,H,F,A,j,W,I,O,G,Y,q,X,V,tt,function(t,e){return t.action?n=>t.action.drag(k,n,e,null,re(b).top-re(le(b,1)).top,T.zeroDuration):void 0},T,E,function(){b&&n(33,Z=Ce(T,E,oe(b)))},Z,r,l,s,u,d,f,h,m,p,$,g,function(t){P[t?"unshift":"push"]((()=>{b=t,n(3,b)}))}]}let vl=class extends dt{constructor(t){super(),ut(this,t,gl,$l,o,{chunk:30,longChunks:31,reposition:32},null,[-1,-1])}get reposition(){return this.$$.ctx[32]}};function yl(t,e,n){const r=t.slice();return r[26]=e[n],r[27]=e,r[28]=n,r}function wl(t,e,n){const r=t.slice();return r[26]=e[n],r}function bl(t){let e,n,r=[],l=new Map,o=lt(t[6]);const i=t=>t[26].event;for(let e=0;e<o.length;e+=1){let n=wl(t,o,e),s=i(n);l.set(s,r[e]=kl(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);v(t,e,l),n=!0},p(t,n){64&n&&(o=lt(t[6]),tt(),r=it(r,n,i,0,t,o,l,e.parentNode,ot,kl,e,wl),et())},i(t){if(!n){for(let t=0;t<o.length;t+=1)nt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&y(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function kl(t,e){let n,r,l;return r=new vl({props:{chunk:e[26]}}),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};64&n&&(l.chunk=e[26]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function xl(t){let e,n,r,l;return n=new vl({props:{chunk:t[2][0]}}),{c(){e=b("div"),st(n.$$.fragment),T(e,"class",r=t[10].events+" "+t[10].preview)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(t,o){const i={};4&o&&(i.chunk=t[2][0]),n.$set(i),(!l||1024&o&&r!==(r=t[10].events+" "+t[10].preview))&&T(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function Cl(t){let e,n,r=[],l=new Map,o=lt(t[5]);const i=t=>t[26].event;for(let e=0;e<o.length;e+=1){let n=yl(t,o,e),s=i(n);l.set(s,r[e]=_l(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);v(t,e,l),n=!0},p(t,n){546&n&&(o=lt(t[5]),tt(),r=it(r,n,i,0,t,o,l,e.parentNode,ot,_l,e,yl),et())},i(t){if(!n){for(let t=0;t<o.length;t+=1)nt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&y(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function _l(t,e){let n,r,l,o=e[28];const i=()=>e[24](r,o),s=()=>e[24](null,o);let a={chunk:e[26],longChunks:e[1]};return r=new vl({props:a}),i(),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){o!==(e=t)[28]&&(s(),o=e[28],i());const l={};32&n&&(l.chunk=e[26]),2&n&&(l.longChunks=e[1]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),s(),ct(r,t)}}}function Dl(t){let e,n,r,o,i,s,a,c,u,d,f,h=t[2][0]&&Mt(t[2][0].date,t[0])&&!t[4],m=!t[4]&&bl(t),p=h&&xl(t),$=!t[4]&&Cl(t);return{c(){e=b("div"),n=b("div"),m&&m.c(),o=x(),p&&p.c(),i=x(),s=b("div"),$&&$.c(),T(n,"class",r=t[10].bgEvents),T(s,"class",a=t[10].events),T(e,"class",c=t[10].day+" "+t[10].weekdays?.[t[0].getUTCDay()]+(t[7]?" "+t[10].today:"")+(t[8]?" "+t[10].highlight:"")+(t[4]?" "+t[10].disabled:"")),T(e,"role","cell")},m(r,a){v(r,e,a),g(e,n),m&&m.m(n,null),g(e,o),p&&p.m(e,null),g(e,i),g(e,s),$&&$.m(s,null),t[25](e),u=!0,d||(f=_(e,"pointerdown",(function(){l(t[4]?void 0:t[11].action?.select)&&(t[4]?void 0:t[11].action?.select).apply(this,arguments)})),d=!0)},p(l,o){let[d]=o;(t=l)[4]?m&&(tt(),rt(m,1,1,(()=>{m=null})),et()):m?(m.p(t,d),16&d&&nt(m,1)):(m=bl(t),m.c(),nt(m,1),m.m(n,null)),(!u||1024&d&&r!==(r=t[10].bgEvents))&&T(n,"class",r),21&d&&(h=t[2][0]&&Mt(t[2][0].date,t[0])&&!t[4]),h?p?(p.p(t,d),21&d&&nt(p,1)):(p=xl(t),p.c(),nt(p,1),p.m(e,i)):p&&(tt(),rt(p,1,1,(()=>{p=null})),et()),t[4]?$&&(tt(),rt($,1,1,(()=>{$=null})),et()):$?($.p(t,d),16&d&&nt($,1)):($=Cl(t),$.c(),nt($,1),$.m(s,null)),(!u||1024&d&&a!==(a=t[10].events))&&T(s,"class",a),(!u||1425&d&&c!==(c=t[10].day+" "+t[10].weekdays?.[t[0].getUTCDay()]+(t[7]?" "+t[10].today:"")+(t[8]?" "+t[10].highlight:"")+(t[4]?" "+t[10].disabled:"")))&&T(e,"class",c)},i(t){u||(nt(m),nt(p),nt($),u=!0)},o(t){rt(m),rt(p),rt($),u=!1},d(n){n&&y(e),m&&m.d(),p&&p.d(),$&&$.d(),t[25](null),d=!1,f()}}}function Tl(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,{date:p}=e,{chunks:$}=e,{bgChunks:g}=e,{longChunks:v}=e,{iChunks:y=[]}=e,{resource:w}=e,{highlightedDates:b,theme:k,validRange:x,_interaction:C,_today:_}=B("state");a(t,b,(t=>n(22,l=t))),a(t,k,(t=>n(10,i=t))),a(t,x,(t=>n(21,r=t))),a(t,C,(t=>n(11,s=t))),a(t,_,(t=>n(23,o=t)));let D=[];return t.$$set=t=>{"date"in t&&n(0,p=t.date),"chunks"in t&&n(17,$=t.chunks),"bgChunks"in t&&n(18,g=t.bgChunks),"longChunks"in t&&n(1,v=t.longChunks),"iChunks"in t&&n(2,y=t.iChunks),"resource"in t&&n(19,w=t.resource)},t.$$.update=()=>{131073&t.$$.dirty&&n(5,u=$.filter((t=>Mt(t.date,p)))),262145&t.$$.dirty&&n(6,d=g.filter((t=>Mt(t.date,p)))),8388609&t.$$.dirty&&n(7,f=Mt(p,o)),4194305&t.$$.dirty&&n(8,h=l.some((t=>Mt(t,p)))),2097153&t.$$.dirty&&n(4,m=Be(p,r)),524313&t.$$.dirty&&c&&te(c,(()=>({allDay:!0,date:p,resource:w,dayEl:c,disabled:m})))},[p,v,y,c,m,u,d,f,h,D,i,s,b,k,x,C,_,$,g,w,function(){m||_e(D,u)},r,l,o,function(t,e){P[t?"unshift":"push"]((()=>{D[e]=t,n(9,D)}))},function(t){P[t?"unshift":"push"]((()=>{c=t,n(3,c)}))}]}let El=class extends dt{constructor(t){super(),ut(this,t,Tl,Dl,o,{date:0,chunks:17,bgChunks:18,longChunks:1,iChunks:2,resource:19,reposition:20})}get reposition(){return this.$$.ctx[20]}};function Sl(t,e,n){const r=t.slice();return r[26]=e[n],r[27]=e,r[28]=n,r}function Ml(t){let e,n,r=t[28];const l=()=>t[23](e,r),o=()=>t[23](null,r);let i={date:t[26],chunks:t[2],bgChunks:t[3],longChunks:t[4],iChunks:t[5],resource:t[1]};return e=new El({props:i}),l(),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){r!==t[28]&&(o(),r=t[28],l());const i={};1&n&&(i.date=t[26]),4&n&&(i.chunks=t[2]),8&n&&(i.bgChunks=t[3]),16&n&&(i.longChunks=t[4]),32&n&&(i.iChunks=t[5]),2&n&&(i.resource=t[1]),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ct(e,t)}}}function Ul(t){let e,n,r,l,o=lt(t[0]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Ml(Sl(t,o,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=C()},m(o,s){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(o,s);v(o,e,s),n=!0,r||(l=_(window,"resize",t[13]),r=!0)},p(t,n){let[r]=n;if(127&r){let n;for(o=lt(t[0]),n=0;n<o.length;n+=1){const l=Sl(t,o,n);i[n]?(i[n].p(l,r),nt(i[n],1)):(i[n]=Ml(l),i[n].c(),nt(i[n],1),i[n].m(e.parentNode,e))}for(tt(),n=o.length;n<i.length;n+=1)s(n);et()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)nt(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);n=!1},d(t){t&&y(e),w(i,t),r=!1,l()}}}function Nl(t,e,n){let r,l,o,i,s,c,{dates:u}=e,{resource:d}=e,{_events:f,_iEvents:h,_queue2:m,hiddenDays:p,resources:$,filterEventsWithResources:g,validRange:v}=B("state");a(t,f,(t=>n(19,o=t))),a(t,h,(t=>n(18,l=t))),a(t,p,(t=>n(17,r=t))),a(t,$,(t=>n(20,i=t))),a(t,g,(t=>n(21,s=t))),a(t,v,(t=>n(22,c=t)));let y,w,b,k,x,C,_=[],D=[],T={};function E(){Jt((()=>_e(D,u)),T,m)}return t.$$set=t=>{"dates"in t&&n(0,u=t.dates),"resource"in t&&n(1,d=t.resource)},t.$$.update=()=>{if(4194305&t.$$.dirty&&(n(14,k=Fe(u[0],c)),n(15,x=_t(kt(Fe(u.at(-1),c))))),3145730&t.$$.dirty&&n(16,C=d??(s?i:void 0)),770060&t.$$.dirty){n(2,y=[]),n(3,w=[]);for(let t of o)if(t.allDay&&De(t,k,x,C)){let e=pe(t,k,x);Ee(t.display)?w.push(e):y.push(e)}xe(w,r),n(4,b=xe(y,r)),E()}442370&t.$$.dirty&&n(5,_=l.map((t=>{let e;return t&&t.allDay&&De(t,k,x,d)?(e=pe(t,k,x),xe([e],r)):e=null,e})))},[u,d,y,w,b,_,D,f,h,p,$,g,v,E,k,x,C,r,l,o,i,s,c,function(t,e){P[t?"unshift":"push"]((()=>{D[e]=t,n(6,D)}))}]}class Rl extends dt{constructor(t){super(),ut(this,t,Nl,Ul,o,{dates:0,resource:1})}}function Ll(t,e,n){const r=t.slice();return r[10]=e[n],r}function zl(t,e,n){const r=t.slice();return r[10]=e[n],r}function Hl(t){let e,n,r,o,i,s,a,c,u;return{c(){e=b("div"),n=b("time"),s=x(),T(n,"datetime",r=St(t[10],10)),T(n,"aria-label",o=t[2].format(t[10])),T(e,"class",a=t[0].day+" "+t[0].weekdays?.[t[10].getUTCDay()]),T(e,"role","columnheader")},m(r,l){v(r,e,l),g(e,n),g(e,s),c||(u=p(i=gt.call(null,n,t[3].format(t[10]))),c=!0)},p(s,c){t=s,2&c&&r!==(r=St(t[10],10))&&T(n,"datetime",r),6&c&&o!==(o=t[2].format(t[10]))&&T(n,"aria-label",o),i&&l(i.update)&&10&c&&i.update.call(null,t[3].format(t[10])),3&c&&a!==(a=t[0].day+" "+t[0].weekdays?.[t[10].getUTCDay()])&&T(e,"class",a)},d(t){t&&y(e),c=!1,u()}}}function Bl(t){let e,n=lt(t[1]),r=[];for(let e=0;e<n.length;e+=1)r[e]=Hl(zl(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);v(t,e,n)},p(t,l){if(15&l){let o;for(n=lt(t[1]),o=0;o<n.length;o+=1){const i=zl(t,n,o);r[o]?r[o].p(i,l):(r[o]=Hl(i),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){t&&y(e),w(r,t)}}}function Fl(t){let e,n,r,l,o,i,s,a,c;return r=new Or({props:{$$slots:{default:[Al]},$$scope:{ctx:t}}}),{c(){e=b("div"),n=b("div"),st(r.$$.fragment),l=x(),o=b("div"),T(o,"class",i=t[0].hiddenScroll),T(n,"class",s=t[0].content),T(e,"class",a=t[0].allDay)},m(t,i){v(t,e,i),g(e,n),at(r,n,null),g(n,l),g(n,o),c=!0},p(t,l){const u={};32770&l&&(u.$$scope={dirty:l,ctx:t}),r.$set(u),(!c||1&l&&i!==(i=t[0].hiddenScroll))&&T(o,"class",i),(!c||1&l&&s!==(s=t[0].content))&&T(n,"class",s),(!c||1&l&&a!==(a=t[0].allDay))&&T(e,"class",a)},i(t){c||(nt(r.$$.fragment,t),c=!0)},o(t){rt(r.$$.fragment,t),c=!1},d(t){t&&y(e),ct(r)}}}function Al(t){let e,n;return e=new Rl({props:{dates:t[1]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};2&n&&(r.dates=t[1]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Pl(t){let e,n;return e=new pl({props:{date:t[10]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};2&n&&(r.date=t[10]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function jl(t){let e,n,r=lt(t[1]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Pl(Ll(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(2&n){let i;for(r=lt(t[1]),i=0;i<r.length;i+=1){const o=Ll(t,r,i);l[i]?(l[i].p(o,n),nt(l[i],1)):(l[i]=Pl(o),l[i].c(),nt(l[i],1),l[i].m(e.parentNode,e))}for(tt(),i=r.length;i<l.length;i+=1)o(i);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function Wl(t){let e,n,r,l,o,i,s,a,c,u;n=new Or({props:{$$slots:{default:[Bl]},$$scope:{ctx:t}}});let d=t[4]&&Fl(t);return c=new Kr({props:{$$slots:{default:[jl]},$$scope:{ctx:t}}}),{c(){e=b("div"),st(n.$$.fragment),r=x(),l=b("div"),s=x(),d&&d.c(),a=x(),st(c.$$.fragment),T(l,"class",o=t[0].hiddenScroll),T(e,"class",i=t[0].header)},m(t,o){v(t,e,o),at(n,e,null),g(e,r),g(e,l),v(t,s,o),d&&d.m(t,o),v(t,a,o),at(c,t,o),u=!0},p(t,r){let[s]=r;const f={};32783&s&&(f.$$scope={dirty:s,ctx:t}),n.$set(f),(!u||1&s&&o!==(o=t[0].hiddenScroll))&&T(l,"class",o),(!u||1&s&&i!==(i=t[0].header))&&T(e,"class",i),t[4]?d?(d.p(t,s),16&s&&nt(d,1)):(d=Fl(t),d.c(),nt(d,1),d.m(a.parentNode,a)):d&&(tt(),rt(d,1,1,(()=>{d=null})),et());const h={};32770&s&&(h.$$scope={dirty:s,ctx:t}),c.$set(h)},i(t){u||(nt(n.$$.fragment,t),nt(d),nt(c.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(d),rt(c.$$.fragment,t),u=!1},d(t){t&&(y(e),y(s),y(a)),ct(n),d&&d.d(t),ct(c,t)}}}function Il(t,e,n){let r,l,o,i,s,{_viewDates:c,_intlDayHeader:u,_intlDayHeaderAL:d,allDaySlot:f,theme:h}=B("state");return a(t,c,(t=>n(1,l=t))),a(t,u,(t=>n(3,i=t))),a(t,d,(t=>n(2,o=t))),a(t,f,(t=>n(4,s=t))),a(t,h,(t=>n(0,r=t))),[r,l,o,i,s,c,u,d,f,h]}let Ol=class extends dt{constructor(t){super(),ut(this,t,Il,Wl,o,{})}};var Gl={createOptions(t){t.buttonText.timeGridDay="day",t.buttonText.timeGridWeek="week",t.view="timeGridWeek",t.views.timeGridDay={buttonText:Me,component:Ol,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ze("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},t.views.timeGridWeek={buttonText:Ue,component:Ol,duration:{weeks:1},theme:ze("ec-time-grid ec-week-view")}},createStores(t){t._slotTimeLimits=function(t){return pt([t.slotMinTime,t.slotMaxTime,t.flexibleSlotTimeLimits,t._viewDates,t._events],(t=>Je(...t)))}(t),t._times=function(t){return pt([t.slotDuration,t._slotTimeLimits,t._intlSlotLabel],(t=>Ve(Tt(wt()),...t)))}(t)}};function Yl(e){let n,r,o,i;return{c(){n=b("span"),T(n,"aria-label",e[2])},m(t,l){v(t,n,l),e[9](n),o||(i=p(r=gt.call(null,n,e[1])),o=!0)},p(t,e){let[o]=e;4&o&&T(n,"aria-label",t[2]),r&&l(r.update)&&2&o&&r.update.call(null,t[1])},i:t,o:t,d(t){t&&y(n),e[9](null),o=!1,i()}}}function ql(t,e,n){let r,l,o,{resource:i}=e,{date:s}=e,{resourceLabelContent:c,resourceLabelDidMount:u,_intlDayHeaderAL:d}=B("state");a(t,c,(t=>n(8,o=t))),a(t,u,(t=>n(11,l=t))),a(t,d,(t=>n(10,r=t)));const f=H();let h,m,p;return L((()=>{Gt(l)&&l({resource:i,date:s?Et(s):void 0,el:h})})),z((()=>{s?n(2,p=r.format(s)+", "+h.innerText):(n(2,p=void 0),f("text",h.innerText))})),t.$$set=t=>{"resource"in t&&n(6,i=t.resource),"date"in t&&n(7,s=t.date)},t.$$.update=()=>{448&t.$$.dirty&&n(1,m=o?Gt(o)?o({resource:i,date:s?Et(s):void 0}):o:i.title)},[h,m,p,c,u,d,i,s,o,function(t){P[t?"unshift":"push"]((()=>{h=t,n(0,h)}))}]}let Xl=class extends dt{constructor(t){super(),ut(this,t,ql,Yl,o,{resource:6,date:7})}};function Vl(t,e,n){const r=t.slice();return r[17]=e[n],r}function Jl(t,e,n){const r=t.slice();return r[20]=e[n],r}function Kl(t,e,n){const r=t.slice();return r[26]=e[n],r}function Ql(t,e,n){const r=t.slice();return r[23]=e[n],r}function Zl(t,e,n){const r=t.slice();return r[26]=e[n],r}function to(t,e,n){const r=t.slice();return r[17]=e[n],r[32]=n,r}function eo(t,e,n){const r=t.slice();return r[20]=e[n],r}function no(t){let e,n,r,l;return n=new Xl({props:{resource:t[17]}}),n.$on("text",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[16](t[32],...n)})),{c(){e=b("div"),st(n.$$.fragment),T(e,"class",r=t[5].day)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(o,i){t=o;const s={};8&i[0]&&(s.resource=t[17]),n.$set(s),(!l||32&i[0]&&r!==(r=t[5].day))&&T(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function ro(e){let n,r,o,i,s,a,c,u;return{c(){n=b("div"),r=b("time"),T(r,"datetime",o=St(e[17],10)),T(r,"aria-label",i=e[6].format(e[17])),T(n,"class",a=e[5].day+" "+e[5].weekdays?.[e[17].getUTCDay()])},m(t,l){v(t,n,l),g(n,r),c||(u=p(s=gt.call(null,r,e[7].format(e[17]))),c=!0)},p(t,c){e=t,8&c[0]&&o!==(o=St(e[17],10))&&T(r,"datetime",o),72&c[0]&&i!==(i=e[6].format(e[17]))&&T(r,"aria-label",i),s&&l(s.update)&&136&c[0]&&s.update.call(null,e[7].format(e[17])),40&c[0]&&a!==(a=e[5].day+" "+e[5].weekdays?.[e[17].getUTCDay()])&&T(n,"class",a)},i:t,o:t,d(t){t&&y(n),c=!1,u()}}}function lo(t){let e,n,r,l=lt(t[3][1]),o=[];for(let e=0;e<l.length;e+=1)o[e]=so(eo(t,l,e));const i=t=>rt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=b("div");for(let t=0;t<o.length;t+=1)o[t].c();T(e,"class",n=t[5].days)},m(t,n){v(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);r=!0},p(t,s){if(252&s[0]){let n;for(l=lt(t[3][1]),n=0;n<l.length;n+=1){const r=eo(t,l,n);o[n]?(o[n].p(r,s),nt(o[n],1)):(o[n]=so(r),o[n].c(),nt(o[n],1),o[n].m(e,null))}for(tt(),n=l.length;n<o.length;n+=1)i(n);et()}(!r||32&s[0]&&n!==(n=t[5].days))&&T(e,"class",n)},i(t){if(!r){for(let t=0;t<l.length;t+=1)nt(o[t]);r=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)rt(o[t]);r=!1},d(t){t&&y(e),w(o,t)}}}function oo(e){let n,r,o,i,s,a,c,u,d;return{c(){n=b("div"),r=b("time"),a=x(),T(r,"datetime",o=St(e[20],10)),T(r,"aria-label",i=""+(e[4][e[32]]+e[6].format(e[20]))),T(n,"class",c=e[5].day+" "+e[5].weekdays?.[e[20].getUTCDay()]),T(n,"role","columnheader")},m(t,l){v(t,n,l),g(n,r),g(n,a),u||(d=p(s=gt.call(null,r,e[7].format(e[20]))),u=!0)},p(t,a){e=t,8&a[0]&&o!==(o=St(e[20],10))&&T(r,"datetime",o),88&a[0]&&i!==(i=""+(e[4][e[32]]+e[6].format(e[20])))&&T(r,"aria-label",i),s&&l(s.update)&&136&a[0]&&s.update.call(null,e[7].format(e[20])),40&a[0]&&c!==(c=e[5].day+" "+e[5].weekdays?.[e[20].getUTCDay()])&&T(n,"class",c)},i:t,o:t,d(t){t&&y(n),u=!1,d()}}}function io(t){let e,n,r,l,o;return n=new Xl({props:{resource:t[20],date:t[17]}}),{c(){e=b("div"),st(n.$$.fragment),r=x(),T(e,"class",l=t[5].day),T(e,"role","columnheader")},m(t,l){v(t,e,l),at(n,e,null),g(e,r),o=!0},p(t,r){const i={};8&r[0]&&(i.resource=t[20]),8&r[0]&&(i.date=t[17]),n.$set(i),(!o||32&r[0]&&l!==(l=t[5].day))&&T(e,"class",l)},i(t){o||(nt(n.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),o=!1},d(t){t&&y(e),ct(n)}}}function so(t){let e,n,r,l;const o=[io,oo],i=[];function s(t,e){return t[2]?0:1}return e=s(t),n=i[e]=o[e](t),{c(){n.c(),r=C()},m(t,n){i[e].m(t,n),v(t,r,n),l=!0},p(t,l){let a=e;e=s(t),e===a?i[e].p(t,l):(tt(),rt(i[a],1,1,(()=>{i[a]=null})),et(),n=i[e],n?n.p(t,l):(n=i[e]=o[e](t),n.c()),nt(n,1),n.m(r.parentNode,r))},i(t){l||(nt(n),l=!0)},o(t){rt(n),l=!1},d(t){t&&y(r),i[e].d(t)}}}function ao(t){let e,n,r,l,o,i,s;const a=[ro,no],c=[];function u(t,e){return t[2]?0:1}n=u(t),r=c[n]=a[n](t);let d=t[3][1].length>1&&lo(t);return{c(){e=b("div"),r.c(),l=x(),d&&d.c(),o=x(),T(e,"class",i=t[5].resource)},m(t,r){v(t,e,r),c[n].m(e,null),g(e,l),d&&d.m(e,null),g(e,o),s=!0},p(t,f){let h=n;n=u(t),n===h?c[n].p(t,f):(tt(),rt(c[h],1,1,(()=>{c[h]=null})),et(),r=c[n],r?r.p(t,f):(r=c[n]=a[n](t),r.c()),nt(r,1),r.m(e,l)),t[3][1].length>1?d?(d.p(t,f),8&f[0]&&nt(d,1)):(d=lo(t),d.c(),nt(d,1),d.m(e,o)):d&&(tt(),rt(d,1,1,(()=>{d=null})),et()),(!s||32&f[0]&&i!==(i=t[5].resource))&&T(e,"class",i)},i(t){s||(nt(r),nt(d),s=!0)},o(t){rt(r),rt(d),s=!1},d(t){t&&y(e),c[n].d(),d&&d.d()}}}function co(t){let e,n,r=lt(t[3][0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=ao(to(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(252&n[0]){let i;for(r=lt(t[3][0]),i=0;i<r.length;i+=1){const o=to(t,r,i);l[i]?(l[i].p(o,n),nt(l[i],1)):(l[i]=ao(o),l[i].c(),nt(l[i],1),l[i].m(e.parentNode,e))}for(tt(),i=r.length;i<l.length;i+=1)o(i);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function uo(t){let e,n,r,l,o,i,s,a,c;return r=new Or({props:{$$slots:{default:[go]},$$scope:{ctx:t}}}),{c(){e=b("div"),n=b("div"),st(r.$$.fragment),l=x(),o=b("div"),T(o,"class",i=t[5].hiddenScroll),T(n,"class",s=t[5].content),T(e,"class",a=t[5].allDay)},m(t,i){v(t,e,i),g(e,n),at(r,n,null),g(n,l),g(n,o),c=!0},p(t,l){const u={};39&l[0]|16&l[1]&&(u.$$scope={dirty:l,ctx:t}),r.$set(u),(!c||32&l[0]&&i!==(i=t[5].hiddenScroll))&&T(o,"class",i),(!c||32&l[0]&&s!==(s=t[5].content))&&T(n,"class",s),(!c||32&l[0]&&a!==(a=t[5].allDay))&&T(e,"class",a)},i(t){c||(nt(r.$$.fragment,t),c=!0)},o(t){rt(r.$$.fragment,t),c=!1},d(t){t&&y(e),ct(r)}}}function fo(t){let e,n,r=lt(t[1]),l=[];for(let e=0;e<r.length;e+=1)l[e]=mo(Kl(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(35&n[0]){let i;for(r=lt(t[1]),i=0;i<r.length;i+=1){const o=Kl(t,r,i);l[i]?(l[i].p(o,n),nt(l[i],1)):(l[i]=mo(o),l[i].c(),nt(l[i],1),l[i].m(e.parentNode,e))}for(tt(),i=r.length;i<l.length;i+=1)o(i);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function ho(t){let e,n,r=lt(t[0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=$o(Ql(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(35&n[0]){let i;for(r=lt(t[0]),i=0;i<r.length;i+=1){const o=Ql(t,r,i);l[i]?(l[i].p(o,n),nt(l[i],1)):(l[i]=$o(o),l[i].c(),nt(l[i],1),l[i].m(e.parentNode,e))}for(tt(),i=r.length;i<l.length;i+=1)o(i);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function mo(t){let e,n,r,l,o;return n=new Rl({props:{dates:t[0],resource:t[26]}}),{c(){e=b("div"),st(n.$$.fragment),r=x(),T(e,"class",l=t[5].resource)},m(t,l){v(t,e,l),at(n,e,null),g(e,r),o=!0},p(t,r){const i={};1&r[0]&&(i.dates=t[0]),2&r[0]&&(i.resource=t[26]),n.$set(i),(!o||32&r[0]&&l!==(l=t[5].resource))&&T(e,"class",l)},i(t){o||(nt(n.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),o=!1},d(t){t&&y(e),ct(n)}}}function po(t){let e,n;return e=new Rl({props:{dates:[t[23]],resource:t[26]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.dates=[t[23]]),2&n[0]&&(r.resource=t[26]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function $o(t){let e,n,r,l,o=lt(t[1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=po(Zl(t,o,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=b("div");for(let t=0;t<i.length;t+=1)i[t].c();n=x(),T(e,"class",r=t[5].resource)},m(t,r){v(t,e,r);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);g(e,n),l=!0},p(t,a){if(3&a[0]){let r;for(o=lt(t[1]),r=0;r<o.length;r+=1){const l=Zl(t,o,r);i[r]?(i[r].p(l,a),nt(i[r],1)):(i[r]=po(l),i[r].c(),nt(i[r],1),i[r].m(e,n))}for(tt(),r=o.length;r<i.length;r+=1)s(r);et()}(!l||32&a[0]&&r!==(r=t[5].resource))&&T(e,"class",r)},i(t){if(!l){for(let t=0;t<o.length;t+=1)nt(i[t]);l=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);l=!1},d(t){t&&y(e),w(i,t)}}}function go(t){let e,n,r,l;const o=[ho,fo],i=[];function s(t,e){return t[2]?0:1}return e=s(t),n=i[e]=o[e](t),{c(){n.c(),r=C()},m(t,n){i[e].m(t,n),v(t,r,n),l=!0},p(t,l){let a=e;e=s(t),e===a?i[e].p(t,l):(tt(),rt(i[a],1,1,(()=>{i[a]=null})),et(),n=i[e],n?n.p(t,l):(n=i[e]=o[e](t),n.c()),nt(n,1),n.m(r.parentNode,r))},i(t){l||(nt(n),l=!0)},o(t){rt(n),l=!1},d(t){t&&y(r),i[e].d(t)}}}function vo(t){let e,n;return e=new pl({props:{date:t[2]?t[17]:t[20],resource:t[2]?t[20]:t[17]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};12&n[0]&&(r.date=t[2]?t[17]:t[20]),12&n[0]&&(r.resource=t[2]?t[20]:t[17]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function yo(t){let e,n,r,l,o=lt(t[3][1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=vo(Jl(t,o,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=b("div");for(let t=0;t<i.length;t+=1)i[t].c();n=x(),T(e,"class",r=t[5].resource)},m(t,r){v(t,e,r);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);g(e,n),l=!0},p(t,a){if(12&a[0]){let r;for(o=lt(t[3][1]),r=0;r<o.length;r+=1){const l=Jl(t,o,r);i[r]?(i[r].p(l,a),nt(i[r],1)):(i[r]=vo(l),i[r].c(),nt(i[r],1),i[r].m(e,n))}for(tt(),r=o.length;r<i.length;r+=1)s(r);et()}(!l||32&a[0]&&r!==(r=t[5].resource))&&T(e,"class",r)},i(t){if(!l){for(let t=0;t<o.length;t+=1)nt(i[t]);l=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);l=!1},d(t){t&&y(e),w(i,t)}}}function wo(t){let e,n,r=lt(t[3][0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=yo(Vl(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(44&n[0]){let i;for(r=lt(t[3][0]),i=0;i<r.length;i+=1){const o=Vl(t,r,i);l[i]?(l[i].p(o,n),nt(l[i],1)):(l[i]=yo(o),l[i].c(),nt(l[i],1),l[i].m(e.parentNode,e))}for(tt(),i=r.length;i<l.length;i+=1)o(i);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function bo(t){let e,n,r,l,o,i,s,a,c,u;n=new Or({props:{$$slots:{default:[co]},$$scope:{ctx:t}}});let d=t[8]&&uo(t);return c=new Kr({props:{$$slots:{default:[wo]},$$scope:{ctx:t}}}),{c(){e=b("div"),st(n.$$.fragment),r=x(),l=b("div"),s=x(),d&&d.c(),a=x(),st(c.$$.fragment),T(l,"class",o=t[5].hiddenScroll),T(e,"class",i=t[5].header)},m(t,o){v(t,e,o),at(n,e,null),g(e,r),g(e,l),v(t,s,o),d&&d.m(t,o),v(t,a,o),at(c,t,o),u=!0},p(t,r){const s={};252&r[0]|16&r[1]&&(s.$$scope={dirty:r,ctx:t}),n.$set(s),(!u||32&r[0]&&o!==(o=t[5].hiddenScroll))&&T(l,"class",o),(!u||32&r[0]&&i!==(i=t[5].header))&&T(e,"class",i),t[8]?d?(d.p(t,r),256&r[0]&&nt(d,1)):(d=uo(t),d.c(),nt(d,1),d.m(a.parentNode,a)):d&&(tt(),rt(d,1,1,(()=>{d=null})),et());const f={};44&r[0]|16&r[1]&&(f.$$scope={dirty:r,ctx:t}),c.$set(f)},i(t){u||(nt(n.$$.fragment,t),nt(d),nt(c.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(d),rt(c.$$.fragment,t),u=!1},d(t){t&&(y(e),y(s),y(a)),ct(n),d&&d.d(t),ct(c,t)}}}function ko(t,e,n){let r,l,o,i,s,c,u,d,{datesAboveResources:f,_viewDates:h,_viewResources:m,_intlDayHeader:p,_intlDayHeaderAL:$,allDaySlot:g,theme:v}=B("state");a(t,f,(t=>n(2,o=t))),a(t,h,(t=>n(0,r=t))),a(t,m,(t=>n(1,l=t))),a(t,p,(t=>n(7,c=t))),a(t,$,(t=>n(6,s=t))),a(t,g,(t=>n(8,u=t))),a(t,v,(t=>n(5,i=t)));let y=[];return t.$$.update=()=>{7&t.$$.dirty[0]&&n(3,d=o?[r,l]:[l,r])},[r,l,o,d,y,i,s,c,u,f,h,m,p,$,g,v,(t,e)=>n(4,y[t]=e.detail+", ",y)]}let xo=class extends dt{constructor(t){super(),ut(this,t,ko,bo,o,{},null,[-1,-1])}};var Co={createOptions(t){t.datesAboveResources=!1,t.buttonText.resourceTimeGridDay="resources",t.buttonText.resourceTimeGridWeek="resources",t.view="resourceTimeGridWeek",t.views.resourceTimeGridDay={buttonText:Me,component:xo,duration:{days:1},theme:ze("ec-time-grid ec-resource-day-view")},t.views.resourceTimeGridWeek={buttonText:Ue,component:xo,duration:{weeks:1},theme:ze("ec-time-grid ec-resource-week-view")}},createStores(t){"_times"in t||Gl.createStores(t),"_viewResources"in t||(t._viewResources=Xe(t))}};function _o(e){let n,r,o,i;return{c(){n=b("span")},m(t,l){v(t,n,l),e[7](n),o||(i=p(r=gt.call(null,n,e[1])),o=!0)},p(t,e){let[n]=e;r&&l(r.update)&&2&n&&r.update.call(null,t[1])},i:t,o:t,d(t){t&&y(n),e[7](null),o=!1,i()}}}function Do(t,e,n){let r,l,o,i,{resource:s}=e,{date:c}=e,{resourceLabelContent:u,resourceLabelDidMount:d}=B("state");return a(t,u,(t=>n(6,l=t))),a(t,d,(t=>n(8,r=t))),L((()=>{Gt(r)&&r({resource:s,date:c?Et(c):void 0,el:o})})),t.$$set=t=>{"resource"in t&&n(4,s=t.resource),"date"in t&&n(5,c=t.date)},t.$$.update=()=>{112&t.$$.dirty&&n(1,i=l?Gt(l)?l({resource:s,date:c?Et(c):void 0}):l:s.title)},[o,i,u,d,s,c,l,function(t){P[t?"unshift":"push"]((()=>{o=t,n(0,o)}))}]}class To extends dt{constructor(t){super(),ut(this,t,Do,_o,o,{resource:4,date:5})}}function Eo(t,e,n){const r=t.slice();return r[7]=e[n],r}function So(t){let e,n;return{c(){e=b("span"),T(e,"class",n=t[1].expander)},m(t,n){v(t,e,n)},p(t,r){2&r&&n!==(n=t[1].expander)&&T(e,"class",n)},d(t){t&&y(e)}}}function Mo(t){let e,n,r,l;function o(t,e){return t[0].expanded?No:Uo}let i=o(t),s=i(t);return{c(){e=b("button"),s.c(),T(e,"class",n=t[1].button)},m(n,o){v(n,e,o),s.m(e,null),r||(l=_(e,"click",t[3]),r=!0)},p(t,r){i!==(i=o(t))&&(s.d(1),s=i(t),s&&(s.c(),s.m(e,null))),2&r&&n!==(n=t[1].button)&&T(e,"class",n)},d(t){t&&y(e),s.d(),r=!1,l()}}}function Uo(t){let e;return{c(){e=k("+")},m(t,n){v(t,e,n)},d(t){t&&y(e)}}}function No(t){let e;return{c(){e=k("−")},m(t,n){v(t,e,n)},d(t){t&&y(e)}}}function Ro(e){let n,r,l,o=lt(Array(e[0].level)),i=[];for(let t=0;t<o.length;t+=1)i[t]=So(Eo(e,o,t));let s=e[0].children.length&&Mo(e);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();n=x(),r=b("span"),s&&s.c(),T(r,"class",l=e[1].expander)},m(t,e){for(let n=0;n<i.length;n+=1)i[n]&&i[n].m(t,e);v(t,n,e),v(t,r,e),s&&s.m(r,null)},p(t,e){let[a]=e;if(3&a){let e;for(o=lt(Array(t[0].level)),e=0;e<o.length;e+=1){const r=Eo(t,o,e);i[e]?i[e].p(r,a):(i[e]=So(r),i[e].c(),i[e].m(n.parentNode,n))}for(;e<i.length;e+=1)i[e].d(1);i.length=o.length}t[0].children.length?s?s.p(t,a):(s=Mo(t),s.c(),s.m(r,null)):s&&(s.d(1),s=null),2&a&&l!==(l=t[1].expander)&&T(r,"class",l)},i:t,o:t,d(t){t&&(y(n),y(r)),w(i,t),s&&s.d()}}}function Lo(t,e,n){let r,{resource:l}=e,{resources:o,theme:i}=B("state");a(t,i,(t=>n(1,r=t)));let s={};function c(t,e){for(let n of t){let t=ee(n);t.hidden=!e,t.expanded&&c(t.children,e)}}return t.$$set=t=>{"resource"in t&&n(4,l=t.resource)},t.$$.update=()=>{16&t.$$.dirty&&n(0,s=ee(l))},[s,r,i,function(){n(0,s.expanded=!s.expanded,s),c(s.children,s.expanded),o.update(Vt)},l]}class zo extends dt{constructor(t){super(),ut(this,t,Lo,Ro,o,{resource:4})}}function Ho(t,e,n){const r=t.slice();return r[14]=e[n],r}function Bo(t){let e,n;return e=new zo({props:{resource:t[14]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};8&n&&(r.resource=t[14]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Fo(t){let e,n,r,l,o,i,s=t[5]&&Bo(t);return r=new To({props:{resource:t[14]}}),{c(){e=b("div"),s&&s.c(),n=x(),st(r.$$.fragment),l=x(),T(e,"class",o=t[1].resource),S(e,"flex-basis",It(t[4].get(t[14])??0,34)+"px"),T(e,"role","rowheader")},m(t,o){v(t,e,o),s&&s.m(e,null),g(e,n),at(r,e,null),g(e,l),i=!0},p(t,l){t[5]?s?(s.p(t,l),32&l&&nt(s,1)):(s=Bo(t),s.c(),nt(s,1),s.m(e,n)):s&&(tt(),rt(s,1,1,(()=>{s=null})),et());const a={};8&l&&(a.resource=t[14]),r.$set(a),(!i||2&l&&o!==(o=t[1].resource))&&T(e,"class",o),(!i||24&l)&&S(e,"flex-basis",It(t[4].get(t[14])??0,34)+"px")},i(t){i||(nt(s),nt(r.$$.fragment,t),i=!0)},o(t){rt(s),rt(r.$$.fragment,t),i=!1},d(t){t&&y(e),s&&s.d(),ct(r)}}}function Ao(t){let e,n,r,l,o,i,s,a,c=lt(t[3]),u=[];for(let e=0;e<c.length;e+=1)u[e]=Fo(Ho(t,c,e));const d=t=>rt(u[t],1,1,(()=>{u[t]=null}));return{c(){e=b("div"),n=b("div"),l=x(),o=b("div");for(let t=0;t<u.length;t+=1)u[t].c();T(n,"class",r=t[1].sidebarTitle),S(n,"flex-basis",t[0]+"px"),T(o,"class",i=t[1].content),T(e,"class",s=t[1].sidebar)},m(r,i){v(r,e,i),g(e,n),g(e,l),g(e,o);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(o,null);t[12](o),a=!0},p(t,l){let[f]=l;if((!a||2&f&&r!==(r=t[1].sidebarTitle))&&T(n,"class",r),(!a||1&f)&&S(n,"flex-basis",t[0]+"px"),58&f){let e;for(c=lt(t[3]),e=0;e<c.length;e+=1){const n=Ho(t,c,e);u[e]?(u[e].p(n,f),nt(u[e],1)):(u[e]=Fo(n),u[e].c(),nt(u[e],1),u[e].m(o,null))}for(tt(),e=c.length;e<u.length;e+=1)d(e);et()}(!a||2&f&&i!==(i=t[1].content))&&T(o,"class",i),(!a||2&f&&s!==(s=t[1].sidebar))&&T(e,"class",s)},i(t){if(!a){for(let t=0;t<c.length;t+=1)nt(u[t]);a=!0}},o(t){u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)rt(u[t]);a=!1},d(n){n&&y(e),w(u,n),t[12](null)}}}function Po(t,e,n){let r,l,o,i,s,c,{_viewResources:u,_headerEl:d,_resHs:f,_sidebarEl:h,_nestedResources:m,theme:p}=B("state");a(t,u,(t=>n(3,i=t))),a(t,d,(t=>n(13,r=t))),a(t,f,(t=>n(4,s=t))),a(t,h,(t=>n(2,o=t))),a(t,m,(t=>n(5,c=t))),a(t,p,(t=>n(1,l=t)));let $=0;return z((()=>{n(0,$=r.clientHeight)})),[$,l,o,i,s,c,u,d,f,h,m,p,function(t){P[t?"unshift":"push"]((()=>{o=t,h.set(o)}))}]}class jo extends dt{constructor(t){super(),ut(this,t,Po,Ao,o,{})}}function Wo(t,e,n){const r=t.slice();return r[15]=e[n],r}function Io(t,e,n){const r=t.slice();return r[18]=e[n],r}function Oo(t){let e,n,r,o,i,s,a,c;return{c(){e=b("div"),n=b("time"),T(n,"datetime",r=St(t[15],10)),T(n,"aria-label",o=t[4].format(t[15])),T(e,"class",s=t[0].time),T(e,"role","columnheader")},m(r,l){v(r,e,l),g(e,n),a||(c=p(i=gt.call(null,n,t[5].format(t[15]))),a=!0)},p(a,c){t=a,4&c&&r!==(r=St(t[15],10))&&T(n,"datetime",r),20&c&&o!==(o=t[4].format(t[15]))&&T(n,"aria-label",o),i&&l(i.update)&&36&c&&i.update.call(null,t[5].format(t[15])),1&c&&s!==(s=t[0].time)&&T(e,"class",s)},d(t){t&&y(e),a=!1,c()}}}function Go(t){let e,n,r,o,i,s,a,c,u,d,f,h=lt(t[6][t[15].getTime()]),m=[];for(let e=0;e<h.length;e+=1)m[e]=Yo(Io(t,h,e));return{c(){e=b("div"),n=b("time"),a=x(),c=b("div");for(let t=0;t<m.length;t+=1)m[t].c();T(n,"datetime",r=St(t[15],10)),T(n,"aria-label",o=t[4].format(t[15])),T(e,"class",s=t[0].dayHead),T(c,"class",u=t[0].times)},m(r,l){v(r,e,l),g(e,n),v(r,a,l),v(r,c,l);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(c,null);d||(f=p(i=gt.call(null,n,t[5].format(t[15]))),d=!0)},p(a,d){if(t=a,4&d&&r!==(r=St(t[15],10))&&T(n,"datetime",r),20&d&&o!==(o=t[4].format(t[15]))&&T(n,"aria-label",o),i&&l(i.update)&&36&d&&i.update.call(null,t[5].format(t[15])),1&d&&s!==(s=t[0].dayHead)&&T(e,"class",s),69&d){let e;for(h=lt(t[6][t[15].getTime()]),e=0;e<h.length;e+=1){const n=Io(t,h,e);m[e]?m[e].p(n,d):(m[e]=Yo(n),m[e].c(),m[e].m(c,null))}for(;e<m.length;e+=1)m[e].d(1);m.length=h.length}1&d&&u!==(u=t[0].times)&&T(c,"class",u)},d(t){t&&(y(e),y(a),y(c)),w(m,t),d=!1,f()}}}function Yo(t){let e,n,r,o,i,s,a,c;return{c(){e=b("div"),n=b("time"),i=x(),T(n,"datetime",r=t[18][0]),T(e,"class",s=t[0].time),T(e,"role","columnheader")},m(r,l){v(r,e,l),g(e,n),g(e,i),a||(c=p(o=gt.call(null,n,t[18][1])),a=!0)},p(i,a){t=i,68&a&&r!==(r=t[18][0])&&T(n,"datetime",r),o&&l(o.update)&&68&a&&o.update.call(null,t[18][1]),1&a&&s!==(s=t[0].time)&&T(e,"class",s)},d(t){t&&y(e),a=!1,c()}}}function qo(t){let e,n,r,l;function o(t,e){return 8&e&&(n=null),null==n&&(n=!!Lt(t[3])),n?Go:Oo}let i=o(t,-1),s=i(t);return{c(){e=b("div"),s.c(),r=x(),T(e,"class",l=t[0].day+" "+t[0].weekdays?.[t[15].getUTCDay()])},m(t,n){v(t,e,n),s.m(e,null),g(e,r)},p(t,n){i===(i=o(t,n))&&s?s.p(t,n):(s.d(1),s=i(t),s&&(s.c(),s.m(e,r))),5&n&&l!==(l=t[0].day+" "+t[0].weekdays?.[t[15].getUTCDay()])&&T(e,"class",l)},d(t){t&&y(e),s.d()}}}function Xo(e){let n,r,l,o,i,s,a,c=lt(e[2]),u=[];for(let t=0;t<c.length;t+=1)u[t]=qo(Wo(e,c,t));return{c(){n=b("div"),r=b("div");for(let t=0;t<u.length;t+=1)u[t].c();o=x(),i=b("div"),T(r,"class",l=e[0].days),T(r,"role","row"),T(i,"class",s=e[0].hiddenScroll),T(n,"class",a=e[0].header)},m(t,l){v(t,n,l),g(n,r);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(r,null);g(n,o),g(n,i),e[14](n)},p(t,e){let[o]=e;if(125&o){let e;for(c=lt(t[2]),e=0;e<c.length;e+=1){const n=Wo(t,c,e);u[e]?u[e].p(n,o):(u[e]=qo(n),u[e].c(),u[e].m(r,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=c.length}1&o&&l!==(l=t[0].days)&&T(r,"class",l),1&o&&s!==(s=t[0].hiddenScroll)&&T(i,"class",s),1&o&&a!==(a=t[0].header)&&T(n,"class",a)},i:t,o:t,d(t){t&&y(n),w(u,t),e[14](null)}}}function Vo(t,e,n){let r,l,o,i,s,c,u,{_headerEl:d,_intlDayHeader:f,_intlDayHeaderAL:h,_dayTimes:m,_viewDates:p,slotDuration:$,theme:g}=B("state");return a(t,d,(t=>n(1,l=t))),a(t,f,(t=>n(5,c=t))),a(t,h,(t=>n(4,s=t))),a(t,m,(t=>n(6,u=t))),a(t,p,(t=>n(2,o=t))),a(t,$,(t=>n(3,i=t))),a(t,g,(t=>n(0,r=t))),[r,l,o,i,s,c,u,d,f,h,m,p,$,g,function(t){P[t?"unshift":"push"]((()=>{l=t,d.set(l)}))}]}class Jo extends dt{constructor(t){super(),ut(this,t,Vo,Xo,o,{})}}function Ko(t,e,n,r){let l={},o=[];if(t.length){$e(t);let i,s=Lt(r);for(let r of t){let t;if(s){let o=0;for(let i=0;i<e.length;++i){let a=Qo(n,e[i]),c=xt(kt(e[i]),a.min),u=xt(kt(e[i]),a.max);if(r.date){if(r.end<=c){r.end=t;break}let n=e[i].getTime();if(l[n]?l[n].push(r):l[n]=[r],!(r.end>u)){o+=r.end-c;break}o+=u-c}else if(r.start<u&&r.end>c){if(r.date=e[i],r.start<c&&(r.start=c),r.offset=(r.start-c)/1e3/s,!(r.end>u)){o+=It(r.end-r.start,1e3*s);break}o+=u-r.start}t=u}r.slots=o/1e3/s}else{let n=0;for(let o=0;o<e.length;++o){let i=e[o],s=_t(kt(i));if(r.date){if(r.end<=i){r.end=t;break}let e=i.getTime();l[e]?l[e].push(r):l[e]=[r],++n}else r.start<s&&(r.date=i,r.start<i&&(r.start=i),++n);t=s}r.days=n}r.date&&(i&&Mt(i.date,r.date)&&(r.prev=i),i=r,o.push(r))}}return[o,l]}function Qo(t,e){return t[e.getTime()]??{min:bt(0),max:bt(0)}}function Zo(t){let e,n,o,i,s,a,c,u,d,f,h,m,$;var w=t[11].resizer;function k(t,e){return{props:{start:!0,event:t[0]}}}w&&(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[32](t[11],["x","start"]))&&t[32](t[11],["x","start"]).apply(this,arguments)})));var C=t[11].resizer;function D(t,e){return{props:{event:t[0]}}}return C&&(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[32](t[11],["x","end"]))&&t[32](t[11],["x","end"]).apply(this,arguments)}))),{c(){e=b("article"),n&&st(n.$$.fragment),o=x(),i=b("div"),c=x(),u&&st(u.$$.fragment),T(i,"class",s=t[3].eventBody),T(e,"class",t[5]),T(e,"style",t[6]),T(e,"role",d=t[8]?"button":void 0),T(e,"tabindex",f=t[8]?0:void 0)},m(r,s){v(r,e,s),n&&at(n,e,null),g(e,o),g(e,i),g(e,c),u&&at(u,e,null),t[51](e),h=!0,m||($=[p(a=gt.call(null,i,t[7])),_(e,"click",(function(){l(t[8])&&t[8].apply(this,arguments)})),_(e,"keydown",(function(){l(t[8]&&$t(t[8]))&&(t[8]&&$t(t[8])).apply(this,arguments)})),_(e,"mouseenter",(function(){l(t[31](t[9],t[1]))&&t[31](t[9],t[1]).apply(this,arguments)})),_(e,"mouseleave",(function(){l(t[31](t[10],t[1]))&&t[31](t[10],t[1]).apply(this,arguments)})),_(e,"pointerdown",(function(){l(!Ee(t[1])&&!Te(t[1])&&t[32](t[11]))&&(!Ee(t[1])&&!Te(t[1])&&t[32](t[11])).apply(this,arguments)}))],m=!0)},p(r,c){if(t=r,2048&c[0]&&w!==(w=t[11].resizer)){if(n){tt();const t=n;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}w?(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[32](t[11],["x","start"]))&&t[32](t[11],["x","start"]).apply(this,arguments)})),st(n.$$.fragment),nt(n.$$.fragment,1),at(n,e,o)):n=null}else if(w){const e={};1&c[0]&&(e.event=t[0]),n.$set(e)}if((!h||8&c[0]&&s!==(s=t[3].eventBody))&&T(i,"class",s),a&&l(a.update)&&128&c[0]&&a.update.call(null,t[7]),2048&c[0]&&C!==(C=t[11].resizer)){if(u){tt();const t=u;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}C?(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[32](t[11],["x","end"]))&&t[32](t[11],["x","end"]).apply(this,arguments)})),st(u.$$.fragment),nt(u.$$.fragment,1),at(u,e,null)):u=null}else if(C){const e={};1&c[0]&&(e.event=t[0]),u.$set(e)}(!h||32&c[0])&&T(e,"class",t[5]),(!h||64&c[0])&&T(e,"style",t[6]),(!h||256&c[0]&&d!==(d=t[8]?"button":void 0))&&T(e,"role",d),(!h||256&c[0]&&f!==(f=t[8]?0:void 0))&&T(e,"tabindex",f)},i(t){h||(n&&nt(n.$$.fragment,t),u&&nt(u.$$.fragment,t),h=!0)},o(t){n&&rt(n.$$.fragment,t),u&&rt(u.$$.fragment,t),h=!1},d(l){l&&y(e),n&&ct(n),u&&ct(u),t[51](null),m=!1,r($)}}}function ti(t){let e,n,r=t[2]>0&&Zo(t);return{c(){r&&r.c(),e=C()},m(t,l){r&&r.m(t,l),v(t,e,l),n=!0},p(t,n){t[2]>0?r?(r.p(t,n),4&n[0]&&nt(r,1)):(r=Zo(t),r.c(),nt(r,1),r.m(e.parentNode,e)):r&&(tt(),rt(r,1,1,(()=>{r=null})),et())},i(t){n||(nt(r),n=!0)},o(t){rt(r),n=!1},d(t){t&&y(e),r&&r.d(t)}}}function ei(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,p,$,g,v,y,w,b,k,x,C,_,D,T,E,S,M,{chunk:U}=e,{dayChunks:N=[]}=e,{longChunks:R={}}=e,{resource:H}=e,{displayEventEnd:F,eventAllUpdated:A,eventBackgroundColor:j,eventTextColor:W,eventColor:I,eventContent:O,eventClick:G,eventDidMount:Y,eventClassNames:q,eventMouseEnter:X,eventMouseLeave:V,resources:J,slotDuration:K,slotWidth:Q,theme:Z,_view:tt,_intlEventTime:et,_interaction:nt,_iClasses:rt,_tasks:lt}=B("state");a(t,F,(t=>n(43,f=t))),a(t,A,(t=>n(54,i=t))),a(t,j,(t=>n(49,v=t))),a(t,W,(t=>n(46,p=t))),a(t,I,(t=>n(48,g=t))),a(t,O,(t=>n(42,d=t))),a(t,G,(t=>n(39,l=t))),a(t,Y,(t=>n(55,s=t))),a(t,q,(t=>n(44,h=t))),a(t,X,(t=>n(9,w=t))),a(t,V,(t=>n(10,b=t))),a(t,J,(t=>n(47,$=t))),a(t,K,(t=>n(53,r=t))),a(t,Q,(t=>n(50,y=t))),a(t,Z,(t=>n(3,u=t))),a(t,tt,(t=>n(40,o=t))),a(t,et,(t=>n(41,c=t))),a(t,nt,(t=>n(11,k=t))),a(t,rt,(t=>n(45,m=t)));let ot=Te(U.event.display)?1:0,it=0;function st(t,e){return!Te(e)&&Gt(t)?e=>t({event:we(C),el:x,jsEvent:e,view:ae(o)}):void 0}return L((()=>{Gt(s)&&s({event:we(C),timeText:S,el:x,view:ae(o)})})),z((()=>{Gt(i)&&!Te(_)&&Qt((()=>i({view:ae(o)})),"eau",lt)})),t.$$set=t=>{"chunk"in t&&n(33,U=t.chunk),"dayChunks"in t&&n(34,N=t.dayChunks),"longChunks"in t&&n(35,R=t.longChunks),"resource"in t&&n(36,H=t.resource)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&n(0,C=U.event),79&t.$$.dirty[0]|1041060&t.$$.dirty[1]){if(n(1,_=C.display),"slots"in U){let t=U.offset*y;n(2,it=U.slots*y),n(6,T=`left:${t}px;width:${it}px;`)}else n(2,it=100*U.days),n(6,T=`width:${it}%;`);let t=C.backgroundColor||We(C,$)||v||g,e=C.textColor||Ie(C,$)||p,r=ot;if(C._margin){let[t,e]=C._margin;H===e&&(r=t)}n(6,T+=`margin-top:${r}px;`),t&&n(6,T+=`background-color:${t};`),e&&n(6,T+=`color:${e};`),n(6,T+=C.styles.join(";")),n(5,D=[Ee(_)?u.bgEvent:u.event,...m([],C),...ye(h,C,o)].join(" "))}8&t.$$.dirty[0]|7684&t.$$.dirty[1]&&n(7,[S,E]=ge(U,f,d,u,c,o),E),2&t.$$.dirty[0]|256&t.$$.dirty[1]&&n(8,M=!Ee(_)&&st(l,_))},[C,_,it,u,x,D,T,E,M,w,b,k,F,A,j,W,I,O,G,Y,q,X,V,J,K,Q,Z,tt,et,nt,rt,st,function(t,e){return t.action?n=>t.action.drag(C,n,e,e&&U.zeroDuration?Ct(kt(C.end),r):void 0,[ot,H],U.zeroDuration):void 0},U,N,R,H,function(){if(!x)return 0;let t=oe(x);return n(38,ot=function(t,e,n,r,l){t.top=0,t.bottom=r;let o=1,i=t.date.getTime();n=n?.[i]??[];let s=[...e,...n];s.sort(((t,e)=>(t.top??0)-(e.top??0)||t.start-e.start||e.event.allDay-t.event.allDay));for(let e of s)if(e!==t&&(l||t.start<e.end&&t.end>e.start)&&t.top<e.bottom&&t.bottom>e.top){let n=e.bottom-t.top+1;o+=n,t.top+=n,t.bottom+=n}return o}(U,N,R,t,!Lt(r))),ot+t},ot,l,o,c,d,f,h,m,p,$,g,v,y,function(t){P[t?"unshift":"push"]((()=>{x=t,n(4,x)}))}]}class ni extends dt{constructor(t){super(),ut(this,t,ei,ti,o,{chunk:33,dayChunks:34,longChunks:35,resource:36,reposition:37},null,[-1,-1])}get reposition(){return this.$$.ctx[37]}}function ri(t,e,n){const r=t.slice();return r[37]=e[n],r[38]=e,r[39]=n,r}function li(t,e,n){const r=t.slice();return r[37]=e[n],r}function oi(t){let e,n,r,l,o,i=[],s=new Map,a=t[3][t[14]]&&t[25](t[3][t[14]]),c=[],u=new Map,d=t[3][0]&&t[25](t[3][0]),f=lt(t[8]);const h=t=>t[37].event;for(let e=0;e<f.length;e+=1){let n=li(t,f,e),r=h(n);s.set(r,i[e]=ii(r,n))}let m=a&&si(t),p=lt(t[7]);const $=t=>t[37].event;for(let e=0;e<p.length;e+=1){let n=ri(t,p,e),r=$(n);u.set(r,c[e]=ai(r,n))}let g=d&&ci(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=x(),m&&m.c(),n=x();for(let t=0;t<c.length;t+=1)c[t].c();r=x(),g&&g.c(),l=C()},m(t,s){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,s);v(t,e,s),m&&m.m(t,s),v(t,n,s);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(t,s);v(t,r,s),g&&g.m(t,s),v(t,l,s),o=!0},p(t,o){256&o[0]&&(f=lt(t[8]),tt(),i=it(i,o,h,0,t,f,s,e.parentNode,ot,ii,e,li),et()),16392&o[0]&&(a=t[3][t[14]]&&t[25](t[3][t[14]])),a?m?(m.p(t,o),16392&o[0]&&nt(m,1)):(m=si(t),m.c(),nt(m,1),m.m(n.parentNode,n)):m&&(tt(),rt(m,1,1,(()=>{m=null})),et()),4230&o[0]&&(p=lt(t[7]),tt(),c=it(c,o,$,0,t,p,u,r.parentNode,ot,ai,r,ri),et()),8&o[0]&&(d=t[3][0]&&t[25](t[3][0])),d?g?(g.p(t,o),8&o[0]&&nt(g,1)):(g=ci(t),g.c(),nt(g,1),g.m(l.parentNode,l)):g&&(tt(),rt(g,1,1,(()=>{g=null})),et())},i(t){if(!o){for(let t=0;t<f.length;t+=1)nt(i[t]);nt(m);for(let t=0;t<p.length;t+=1)nt(c[t]);nt(g),o=!0}},o(t){for(let t=0;t<i.length;t+=1)rt(i[t]);rt(m);for(let t=0;t<c.length;t+=1)rt(c[t]);rt(g),o=!1},d(t){t&&(y(e),y(n),y(r),y(l));for(let e=0;e<i.length;e+=1)i[e].d(t);m&&m.d(t);for(let e=0;e<c.length;e+=1)c[e].d(t);g&&g.d(t)}}}function ii(t,e){let n,r,l;return r=new ni({props:{chunk:e[37]}}),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};256&n[0]&&(l.chunk=e[37]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function si(t){let e,n;return e=new ni({props:{chunk:t[3][t[14]]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};16392&n[0]&&(r.chunk=t[3][t[14]]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function ai(t,e){let n,r,l,o=e[39];const i=()=>e[33](r,o),s=()=>e[33](null,o);let a={chunk:e[37],dayChunks:e[7],longChunks:e[2],resource:e[1]};return r=new ni({props:a}),i(),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){o!==(e=t)[39]&&(s(),o=e[39],i());const l={};128&n[0]&&(l.chunk=e[37]),128&n[0]&&(l.dayChunks=e[7]),4&n[0]&&(l.longChunks=e[2]),2&n[0]&&(l.resource=e[1]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),s(),ct(r,t)}}}function ci(t){let e,n;return e=new ni({props:{chunk:t[3][0],resource:t[1]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};8&n[0]&&(r.chunk=t[3][0]),2&n[0]&&(r.resource=t[1]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function ui(t){let e,n,r,o,i,s,a,c=!t[11]&&oi(t);return{c(){e=b("div"),n=b("div"),c&&c.c(),T(n,"class",r=t[15].events),T(e,"class",o=t[15].day+" "+t[15].weekdays?.[t[0].getUTCDay()]+(t[9]?" "+t[15].today:"")+(t[10]?" "+t[15].highlight:"")+(t[11]?" "+t[15].disabled:"")),S(e,"flex-grow",t[5]?null:jt((Lt(t[13].max)-Lt(t[13].min))/Lt(t[6]))),T(e,"role","cell")},m(r,o){v(r,e,o),g(e,n),c&&c.m(n,null),t[34](e),i=!0,s||(a=_(e,"pointerdown",(function(){l(t[16].action?.select)&&t[16].action?.select.apply(this,arguments)})),s=!0)},p(l,s){(t=l)[11]?c&&(tt(),rt(c,1,1,(()=>{c=null})),et()):c?(c.p(t,s),2048&s[0]&&nt(c,1)):(c=oi(t),c.c(),nt(c,1),c.m(n,null)),(!i||32768&s[0]&&r!==(r=t[15].events))&&T(n,"class",r),(!i||36353&s[0]&&o!==(o=t[15].day+" "+t[15].weekdays?.[t[0].getUTCDay()]+(t[9]?" "+t[15].today:"")+(t[10]?" "+t[15].highlight:"")+(t[11]?" "+t[15].disabled:"")))&&T(e,"class",o),(!i||8288&s[0])&&S(e,"flex-grow",t[5]?null:jt((Lt(t[13].max)-Lt(t[13].min))/Lt(t[6])))},i(t){i||(nt(c),i=!0)},o(t){rt(c),i=!1},d(n){n&&y(e),c&&c.d(),t[34](null),s=!1,a()}}}function di(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,p,$,g,{date:v}=e,{resource:y}=e,{chunks:w}=e,{bgChunks:b}=e,{longChunks:k}=e,{iChunks:x=[]}=e,{highlightedDates:C,slotDuration:_,slotWidth:D,theme:T,validRange:E,_interaction:S,_today:M,_dayTimeLimits:U}=B("state");a(t,C,(t=>n(31,s=t))),a(t,_,(t=>n(6,l=t))),a(t,D,(t=>n(35,r=t))),a(t,T,(t=>n(15,u=t))),a(t,E,(t=>n(30,i=t))),a(t,S,(t=>n(16,d=t))),a(t,M,(t=>n(32,c=t))),a(t,U,(t=>n(29,o=t)));let N,R,L=[],z=1;function H(t){return Mt(t.date,v)}function F(t,e){return t-=re(f).left,{allDay:R,date:R?kt(v):xt(xt(kt(v),N.min),l,Pt(t/r)),resource:y,dayEl:f,disabled:g}}return t.$$set=t=>{"date"in t&&n(0,v=t.date),"resource"in t&&n(1,y=t.resource),"chunks"in t&&n(26,w=t.chunks),"bgChunks"in t&&n(27,b=t.bgChunks),"longChunks"in t&&n(2,k=t.longChunks),"iChunks"in t&&n(3,x=t.iChunks)},t.$$.update=()=>{1&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(9,p=Mt(v,c)),1&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(10,$=s.some((t=>Mt(t,v)))),1073741825&t.$$.dirty[0]&&n(11,g=Be(v,i)),536870913&t.$$.dirty[0]&&n(13,N=Qo(o,v)),96&t.$$.dirty[0]&&(n(5,R=!Lt(l)),n(14,z=R?2:1)),67108864&t.$$.dirty[0]&&n(7,h=w.filter(H)),134217760&t.$$.dirty[0]&&n(8,m=b.filter((t=>(!R||t.event.allDay)&&H(t)))),16&t.$$.dirty[0]&&f&&te(f,F)},[v,y,k,x,f,R,l,h,m,p,$,g,L,N,z,u,d,C,_,D,T,E,S,M,U,H,w,b,function(){return It(..._e(L,h))},o,i,s,c,function(t,e){P[t?"unshift":"push"]((()=>{L[e]=t,n(12,L)}))},function(t){P[t?"unshift":"push"]((()=>{f=t,n(4,f)}))}]}class fi extends dt{constructor(t){super(),ut(this,t,di,ui,o,{date:0,resource:1,chunks:26,bgChunks:27,longChunks:2,iChunks:3,reposition:28},null,[-1,-1])}get reposition(){return this.$$.ctx[28]}}function hi(t,e,n){const r=t.slice();return r[29]=e[n],r[30]=e,r[31]=n,r}function mi(t){let e,n,r=t[31];const l=()=>t[25](e,r),o=()=>t[25](null,r);let i={date:t[29],resource:t[0],chunks:t[1],bgChunks:t[2],longChunks:t[4],iChunks:t[5]};return e=new fi({props:i}),l(),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){r!==t[31]&&(o(),r=t[31],l());const i={};8&n[0]&&(i.date=t[29]),1&n[0]&&(i.resource=t[0]),2&n[0]&&(i.chunks=t[1]),4&n[0]&&(i.bgChunks=t[2]),16&n[0]&&(i.longChunks=t[4]),32&n[0]&&(i.iChunks=t[5]),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ct(e,t)}}}function pi(t){let e,n,r,l,o,i=lt(t[3]),s=[];for(let e=0;e<i.length;e+=1)s[e]=mi(hi(t,i,e));const a=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=b("div");for(let t=0;t<s.length;t+=1)s[t].c();T(e,"class",n=t[8].days),S(e,"flex-basis",It(t[7],34)+"px"),T(e,"role","row")},m(n,i){v(n,e,i);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);r=!0,l||(o=_(window,"resize",t[17]),l=!0)},p(t,l){if(127&l[0]){let n;for(i=lt(t[3]),n=0;n<i.length;n+=1){const r=hi(t,i,n);s[n]?(s[n].p(r,l),nt(s[n],1)):(s[n]=mi(r),s[n].c(),nt(s[n],1),s[n].m(e,null))}for(tt(),n=i.length;n<s.length;n+=1)a(n);et()}(!r||256&l[0]&&n!==(n=t[8].days))&&T(e,"class",n),(!r||128&l[0])&&S(e,"flex-basis",It(t[7],34)+"px")},i(t){if(!r){for(let t=0;t<i.length;t+=1)nt(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)rt(s[t]);r=!1},d(t){t&&y(e),w(s,t),l=!1,o()}}}function $i(t,e,n){let r,l,o,i,s,c,u,d,{resource:f}=e,{_viewDates:h,_events:m,_iEvents:p,_queue2:$,_resHs:g,_dayTimeLimits:v,slotDuration:y,theme:w,validRange:b}=B("state");a(t,h,(t=>n(3,o=t))),a(t,m,(t=>n(23,s=t))),a(t,p,(t=>n(22,i=t))),a(t,g,(t=>n(26,c=t))),a(t,v,(t=>n(21,l=t))),a(t,y,(t=>n(20,r=t))),a(t,w,(t=>n(8,d=t))),a(t,b,(t=>n(24,u=t)));let k,x,C,_,D,T=[],E=[],S=0,M={};function U(){Jt((()=>{n(7,S=jt(It(..._e(E,o)))+10),c.set(f,S),g.set(c)}),M,$)}return t.$$set=t=>{"resource"in t&&n(0,f=t.resource)},t.$$.update=()=>{if(19660808&t.$$.dirty[0]){n(18,_=kt(Fe(o[0],u))),n(19,D=kt(Fe(o.at(-1),u)));let t=Qo(l,_);xt(_,t.min),t=Qo(l,D),t.max.seconds>yt?xt(D,t.max):_t(D)}if(12320783&t.$$.dirty[0]){n(1,k=[]),n(2,x=[]);for(let t of s)if(De(t,_,D,f)){let e=pe(t,_,D);Ee(t.display)?x.push(e):k.push(e)}n(2,[x]=Ko(x,o,l,r),x),n(1,[k,C]=Ko(k,o,l,r),k,(n(4,C),n(23,s),n(18,_),n(19,D),n(0,f),n(2,x),n(1,k),n(3,o),n(21,l),n(20,r),n(24,u))),U()}8126473&t.$$.dirty[0]&&n(5,T=i.map((t=>{let e;return t&&De(t,_,D,f)?(e=pe(t,_,D),[[e]]=Ko([e],o,l,r)):e=null,e})))},[f,k,x,o,C,T,E,S,d,h,m,p,g,v,y,w,b,U,_,D,r,l,i,s,u,function(t,e){P[t?"unshift":"push"]((()=>{E[e]=t,n(6,E)}))}]}class gi extends dt{constructor(t){super(),ut(this,t,$i,pi,o,{resource:0},null,[-1,-1])}}function vi(t,e,n){const r=t.slice();return r[26]=e[n],r}function yi(t,e,n){const r=t.slice();return r[29]=e[n],r}function wi(t,e,n){const r=t.slice();return r[32]=e[n],r}function bi(t){let e,n;return{c(){e=b("div"),T(e,"class",n=t[2].line)},m(t,n){v(t,e,n)},p(t,r){4&r[0]&&n!==(n=t[2].line)&&T(e,"class",n)},d(t){t&&y(e)}}}function ki(t){let e,n=lt(t[3][t[29].getTime()]),r=[];for(let e=0;e<n.length;e+=1)r[e]=bi(wi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);v(t,e,n)},p(t,l){if(14&l[0]){let o;for(n=lt(t[3][t[29].getTime()]),o=0;o<n.length;o+=1){const i=wi(t,n,o);r[o]?r[o].p(i,l):(r[o]=bi(i),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){t&&y(e),w(r,t)}}}function xi(t){let e,n;return e=new gi({props:{resource:t[26]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.resource=t[26]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Ci(t){let e,n,r,l,o,i,s,a,c,u,d=lt(t[1]),f=[];for(let e=0;e<d.length;e+=1)f[e]=ki(yi(t,d,e));let h=lt(t[4]),m=[];for(let e=0;e<h.length;e+=1)m[e]=xi(vi(t,h,e));const p=t=>rt(m[t],1,1,(()=>{m[t]=null}));return{c(){e=b("div"),n=b("div"),r=b("div");for(let t=0;t<f.length;t+=1)f[t].c();o=x();for(let t=0;t<m.length;t+=1)m[t].c();T(r,"class",l=t[2].lines),T(n,"class",i=t[2].content),T(e,"class",s=t[2].body)},m(l,i){v(l,e,i),g(e,n),g(n,r);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(r,null);g(n,o);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(n,null);t[18](e),a=!0,c||(u=_(e,"scroll",t[16]),c=!0)},p(t,o){if(14&o[0]){let e;for(d=lt(t[1]),e=0;e<d.length;e+=1){const n=yi(t,d,e);f[e]?f[e].p(n,o):(f[e]=ki(n),f[e].c(),f[e].m(r,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=d.length}if((!a||4&o[0]&&l!==(l=t[2].lines))&&T(r,"class",l),16&o[0]){let e;for(h=lt(t[4]),e=0;e<h.length;e+=1){const r=vi(t,h,e);m[e]?(m[e].p(r,o),nt(m[e],1)):(m[e]=xi(r),m[e].c(),nt(m[e],1),m[e].m(n,null))}for(tt(),e=h.length;e<m.length;e+=1)p(e);et()}(!a||4&o[0]&&i!==(i=t[2].content))&&T(n,"class",i),(!a||4&o[0]&&s!==(s=t[2].body))&&T(e,"class",s)},i(t){if(!a){for(let t=0;t<h.length;t+=1)nt(m[t]);a=!0}},o(t){m=m.filter(Boolean);for(let t=0;t<m.length;t+=1)rt(m[t]);a=!1},d(n){n&&y(e),w(f,n),w(m,n),t[18](null),c=!1,u()}}}function _i(t,e,n){let r,l,o,i,s,c,u,d,f,h,p,$,{_bodyEl:g,_headerEl:v,_sidebarEl:y,_dayTimes:w,_dayTimeLimits:b,_viewResources:k,_viewDates:x,scrollTime:C,slotDuration:_,slotWidth:D,theme:T}=B("state");return a(t,g,(t=>n(22,c=t))),a(t,v,(t=>n(24,d=t))),a(t,y,(t=>n(23,u=t))),a(t,w,(t=>n(3,h=t))),a(t,b,(t=>n(21,s=t))),a(t,k,(t=>n(4,p=t))),a(t,x,(t=>n(1,i=t))),a(t,C,(t=>n(17,o=t))),a(t,_,(t=>n(20,l=t))),a(t,D,(t=>n(19,r=t))),a(t,T,(t=>n(2,f=t))),t.$$.update=()=>{1&t.$$.dirty[0]&&m(g,c=$,c),131075&t.$$.dirty[0]&&$&&function(){let t=Qo(s,i[0]);n(0,$.scrollLeft=(Lt(o)-Lt(t.min))/Lt(l)*r,$)}()},[$,i,f,h,p,g,v,y,w,b,k,x,C,_,D,T,function(){m(v,d.scrollLeft=c.scrollLeft,d),m(y,u.scrollTop=c.scrollTop,u)},o,function(t){P[t?"unshift":"push"]((()=>{$=t,n(0,$)}))}]}class Di extends dt{constructor(t){super(),ut(this,t,_i,Ci,o,{},null,[-1,-1])}}function Ti(t){let e,n,r,l,o,i,s,a,c,u;return n=new jo({}),o=new Jo({}),s=new Di({}),{c(){e=b("div"),st(n.$$.fragment),r=x(),l=b("div"),st(o.$$.fragment),i=x(),st(s.$$.fragment),T(l,"class",a=t[0].main),T(e,"class",c=t[0].container)},m(t,a){v(t,e,a),at(n,e,null),g(e,r),g(e,l),at(o,l,null),g(l,i),at(s,l,null),u=!0},p(t,n){let[r]=n;(!u||1&r&&a!==(a=t[0].main))&&T(l,"class",a),(!u||1&r&&c!==(c=t[0].container))&&T(e,"class",c)},i(t){u||(nt(n.$$.fragment,t),nt(o.$$.fragment,t),nt(s.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(o.$$.fragment,t),rt(s.$$.fragment,t),u=!1},d(t){t&&y(e),ct(n),ct(o),ct(s)}}}function Ei(t,e,n){let r,{theme:l}=B("state");return a(t,l,(t=>n(0,r=t))),[r,l]}class Si extends dt{constructor(t){super(),ut(this,t,Ei,Ti,o,{})}}var Mi={createOptions(t){t.buttonText.resourceTimelineDay="timeline",t.buttonText.resourceTimelineWeek="timeline",t.buttonText.resourceTimelineMonth="timeline",t.theme.expander="ec-expander",t.theme.main="ec-main",t.theme.times="ec-times",t.theme.container="ec-container",t.view="resourceTimelineWeek",t.views.resourceTimelineDay={buttonText:Me,component:Si,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},slotDuration:"01:00",theme:ze("ec-timeline ec-resource-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},t.views.resourceTimelineWeek={buttonText:Ue,component:Si,displayEventEnd:!1,duration:{weeks:1},slotDuration:"01:00",theme:ze("ec-timeline ec-resource-week-view")},t.views.resourceTimelineMonth={buttonText:Ne,component:Si,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:ze("ec-timeline ec-resource-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(t){"_viewResources"in t||(t._viewResources=Xe(t)),t._headerEl=mt(void 0),t._dayTimeLimits=function(t){return pt([t.slotMinTime,t.slotMaxTime,t.flexibleSlotTimeLimits,t._viewDates,t._events],(t=>{let[e,n,r,l,o]=t,i={};for(let t of l)i[t.getTime()]=Je(e,n,r,[t],o);return i}))}(t),t._dayTimes=function(t){return pt([t._viewDates,t.slotDuration,t._dayTimeLimits,t._intlSlotLabel],(t=>{let[e,n,r,l]=t,o={};for(let t of e){let e=t.getTime();o[e]=e in r?Ve(t,n,r[e],l):[]}return o}))}(t),t._nestedResources=function(t){return pt(t.resources,(t=>t.some((t=>ee(t).children.length))))}(t),t._resHs=mt(new Map),t._sidebarEl=mt(void 0)}};let Ui=!1;function Ni(t,e,n){return It(e,Wt(n,t))}const{window:Ri}=$;function Li(e){let n,o;return{c:t,m(t,r){n||(o=[_(Ri,"pointermove",e[34]),_(Ri,"pointerup",e[35]),_(Ri,"pointercancel",e[35]),_(Ri,"scroll",e[0]),_(Ri,"selectstart",Hi(e[36])),_(Ri,"contextmenu",(function(){l(Hi(e[44]))&&Hi(e[44]).apply(this,arguments)})),_(Ri,"touchstart",e[37]),_(Ri,"touchmove",e[43],{passive:!1})],n=!0)},p(t,n){e=t},i:t,o:t,d(t){n=!1,r(o)}}}function zi(t){return t.isPrimary&&("mouse"!==t.pointerType||1&t.buttons)}function Hi(t){return e=>{t()&&e.preventDefault()}}function Bi(t,e,n){let r,l,o,i,s,c,u,d,f,h,p,$,g,v,y,w,b,k,x,C,_,D,T,E,S,M,U,N,R,L,z,H,A,P,j,W,I,O,G,Y,q,X,V,J,K,Q,Z,tt,et,nt,rt,lt,ot,it,st,at,ct,ut,dt,{_iEvents:ft,_iClass:ht,_events:mt,_view:pt,_dayGrid:$t,_draggable:gt,_bodyEl:vt,dateClick:yt,dragScroll:wt,datesAboveResources:Tt,eventDragMinDistance:Mt,eventDragStart:Ut,eventDragStop:Nt,eventDrop:Lt,eventLongPressDelay:zt,eventResizeStart:Ht,eventResizeStop:Bt,eventResize:At,longPressDelay:Pt,selectable:jt,select:Ot,selectBackgroundColor:Yt,selectLongPressDelay:Xt,selectMinDistance:Vt,slotDuration:Jt,slotHeight:Kt,slotWidth:Qt,unselect:Zt,unselectAuto:te,unselectCancel:ne,validRange:oe,view:de}=B("state");function fe(t){window.getSelection().removeAllRanges(),q=V=t.clientX,X=J=t.clientY;let e=ie(V,J);({allDay:nt,date:I,resource:G}=ee(e)(V,J)),ue(u)?K=Z=R:(K=le(e,G?4:3),Z=le(e,G&&(1===A||N)?2:1)),pe(),"mouse"!==t.pointerType&&n(1,at=setTimeout((()=>{A&&(P=!0,he(t))}),(ke()?U:M)??S))}function he(t){if(P||t&&"mouse"===t.pointerType&&Math.sqrt(Math.pow(V-q,2)+Math.pow(J-X,2))>=(ke()?E:T)){P=!0,Ce(t),m(ht,f=rt,f),i[0]||(ke()?m(ft,i[0]={id:"{select}",allDay:j.allDay,start:j.start,title:"",display:"preview",extendedProps:{},backgroundColor:s,resourceIds:j.resourceIds,classNames:[],styles:[]},i):function(t,e){Gt(e)&&e({event:we(j),jsEvent:t,view:ae(r)});W=j.display,j.display="preview",m(ft,i[0]=be(j),i),void 0!==ut&&m(ft,i[0]._margin=ut,i);dt&&xt(i[0].end,dt);j.display="ghost",mt.set(o)}(t,ve()?D:_));let e=me(ie(Ni(V,ct[0],ct[1]),Ni(J,ct[2],ct[3])));if(e){let t;({allDay:t,date:O,resource:Y}=e),t===nt&&(et=bt((O-I)/1e3),ye()?(m(ft,i[0].start=xt(kt(j.start),et),i),i[0].start>lt&&(m(ft,i[0].start=lt,i),et=bt((lt-j.start)/1e3))):(m(ft,i[0].end=xt(kt(j.end),et),i),dt&&xt(i[0].end,dt),ve()?i[0].end<lt&&(m(ft,i[0].end=lt,i),et=bt((lt-j.end)/1e3)):ke()?i[0].end<j.end?(m(ft,i[0].start=Ct(i[0].end,ot),i),m(ft,i[0].end=j.end,i)):m(ft,i[0].start=j.start,i):(m(ft,i[0].start=xt(kt(j.start),et),i),G&&(m(ft,i[0].resourceIds=j.resourceIds.filter((t=>t!==G.id)),i),i[0].resourceIds.push(Y.id)))))}}if(C){let t=2*x,n=k;e=()=>{K&&(J<t&&window.scrollBy(0,It(-10,(J-t)/3)),J<Q.top+t&&(K.scrollTop+=It(-10,(J-Q.top-t)/3)),J>window.innerHeight-t&&window.scrollBy(0,Wt(10,(J-window.innerHeight+t)/3)),J>Q.bottom-t&&(K.scrollTop+=Wt(10,(J-Q.bottom+t)/3)),ue(u)&&(V<Q.left+n&&(K.scrollLeft+=It(-10,(V-Q.left-n)/3)),V>Q.right-n&&(K.scrollLeft+=Wt(10,(V-Q.right+n)/3))))},Ui||(Ui=!0,window.requestAnimationFrame((()=>{e(),Ui=!1})))}var e}function me(t){if(t){let e=ee(t)(V,J);if(!e.disabled)return e;if(!d.end||e.date<d.end)return me(t.nextElementSibling);if(!d.start||e.date>d.start)return me(t.previousElementSibling)}return null}function pe(){Q=re(K),tt=re(Z),ct=[It(0,tt.left+(ue(u)?1:c?0:8)),Wt(document.documentElement.clientWidth,tt.left+Z.clientWidth)-2,It(0,Q.top),Wt(document.documentElement.clientHeight,Q.top+K.clientHeight)-2]}function $e(){m(ft,i[0]=null,i)}function ge(t,e){t.start=e.start,t.end=e.end,t.resourceIds=e.resourceIds,mt.set(o)}function ve(){return 2===A||ye()}function ye(){return 3===A}function ke(){return 4===A}function xe(){return A&&A<5}function Ce(t){it&&(it=!1,$e(),Gt(l)&&l({jsEvent:t,view:ae(r)}))}a(t,ft,(t=>n(74,i=t))),a(t,ht,(t=>n(79,f=t))),a(t,mt,(t=>n(73,o=t))),a(t,pt,(t=>n(71,r=t))),a(t,$t,(t=>n(76,c=t))),a(t,gt,(t=>n(102,H=t))),a(t,vt,(t=>n(99,R=t))),a(t,yt,(t=>n(80,h=t))),a(t,wt,(t=>n(90,C=t))),a(t,Tt,(t=>n(98,N=t))),a(t,Mt,(t=>n(93,T=t))),a(t,Ut,(t=>n(91,_=t))),a(t,Nt,(t=>n(83,g=t))),a(t,Lt,(t=>n(81,p=t))),a(t,zt,(t=>n(96,M=t))),a(t,Ht,(t=>n(92,D=t))),a(t,Bt,(t=>n(84,v=t))),a(t,At,(t=>n(82,$=t))),a(t,Pt,(t=>n(95,S=t))),a(t,jt,(t=>n(101,z=t))),a(t,Ot,(t=>n(85,y=t))),a(t,Yt,(t=>n(75,s=t))),a(t,Xt,(t=>n(97,U=t))),a(t,Vt,(t=>n(94,E=t))),a(t,Jt,(t=>n(100,L=t))),a(t,Kt,(t=>n(89,x=t))),a(t,Qt,(t=>n(88,k=t))),a(t,Zt,(t=>n(72,l=t))),a(t,te,(t=>n(87,b=t))),a(t,ne,(t=>n(86,w=t))),a(t,oe,(t=>n(78,d=t))),a(t,de,(t=>n(77,u=t))),pt.subscribe(Ce);return[function(){xe()&&(pe(),he())},at,ft,ht,mt,pt,$t,gt,vt,yt,wt,Tt,Mt,Ut,Nt,Lt,zt,Ht,Bt,At,Pt,jt,Ot,Yt,Xt,Vt,Jt,Kt,Qt,Zt,te,ne,oe,de,function(t){xe()&&t.isPrimary&&(V=t.clientX,J=t.clientY,he(t))},function(t){if(!it||!b||w&&t.target.closest(w)||Ce(t),A&&t.isPrimary){if(P)if(ke()){if(it=!0,Gt(y)){let{start:e,end:n}=we(i[0]);y({start:e,end:n,startStr:St(i[0].start),endStr:St(i[0].end),allDay:nt,jsEvent:t,view:ae(r),resource:G})}}else{j.display=W;let e=ve()?v:g;Gt(e)&&e({event:we(j),jsEvent:t,view:ae(r)});let n=be(j);if(ge(j,i[0]),$e(),e=ve()?$:p,Gt(e)){let l,o=j;l=ve()?{endDelta:et}:{delta:et,oldResource:G!==Y?G:void 0,newResource:G!==Y?Y:void 0},e(Ft(l,{event:we(j),oldEvent:we(n),jsEvent:t,view:ae(r),revert(){ge(o,n)}}))}}else if((5===A||ke())&&Gt(h)&&!st){V=t.clientX,J=t.clientY;let e=ie(V,J);if(e){let{allDay:n,date:l,resource:o}=ee(e)(V,J);h({allDay:n,date:Et(l),dateStr:St(l),dayEl:e,jsEvent:t,view:ae(r),resource:o})}}P=!1,A=q=X=V=J=j=W=I=O=G=Y=et=dt=nt=m(ht,f=lt=ot=ut=void 0,f),K=Z=Q=tt=void 0,at&&(clearTimeout(at),n(1,at=void 0))}st=!1},xe,function(t){if(xe()){let e=t.target,n=[],r=()=>qt(n);n.push(se(e,"touchmove",Hi((()=>P)))),n.push(se(e,"touchend",r)),n.push(se(e,"touchcancel",r))}},function(t,e,n,r,l,o){A||(A=zi(e)?n?"start"==n[1]?3:2:H(t)?1:6:6,xe()&&(j=t,fe(e),r&&(I=r),l&&(ut=l),rt=n?"x"==n[0]?"resizingX":"resizingY":"dragging",n&&(ye()?(lt=kt(j.end),nt?(Rt(lt,j.start),lt>=j.end&&Dt(lt)):(o||Ct(lt,L),I=j.start)):(lt=kt(j.start),nt?(Rt(lt,j.end),lt<=j.start&&!o&&_t(lt)):(xt(lt,L),I=j.end)),o&&!nt&&(dt=L)),he(e)))},function(t){A||(A=zi(t)?z&&!ce(u)?4:5:6,xe()&&(fe(t),rt="selecting",ot=nt?bt({day:1}):L,j={allDay:nt,start:I,end:xt(kt(I),ot),resourceIds:G?[G.id]:[]},he(t)))},function(){A||(A=6)},Ce,function(){st=!0},function(e){F.call(this,t,e)},()=>at]}class Fi extends dt{constructor(t){super(),ut(this,t,Bi,Li,o,{drag:38,select:39,noAction:40,handleScroll:0,unselect:41,noClick:42},null,[-1,-1,-1,-1])}get drag(){return this.$$.ctx[38]}get select(){return this.$$.ctx[39]}get noAction(){return this.$$.ctx[40]}get handleScroll(){return this.$$.ctx[0]}get unselect(){return this.$$.ctx[41]}get noClick(){return this.$$.ctx[42]}}function Ai(e){let n,l;return{c:t,m(t,r){n||(l=[_(window,"pointermove",e[3]),_(window,"scroll",e[0])],n=!0)},p:t,i:t,o:t,d(t){n=!1,r(l)}}}function Pi(t,e,n){let r,l,{_iEvents:o,slotDuration:i}=B("state");a(t,o,(t=>n(4,r=t))),a(t,i,(t=>n(7,l=t)));let s=0,c=0;function u(){let t=ie(s,c);if(t){let{allDay:e,date:n,resource:i,disabled:a}=ee(t)(s,c);if(!a){let t=e?2:1;return r[t]||function(t){m(o,r[t]={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]},r)}(t),m(o,r[t].start=n,r),m(o,r[t].end=xt(kt(n),l),r),void m(o,r[t].resourceIds=i?[i.id]:[],r)}}d()}function d(){r[1]&&m(o,r[1]=null,r),r[2]&&m(o,r[2]=null,r)}return t.$$.update=()=>{16&t.$$.dirty&&r[0]&&d()},[function(){u()},o,i,function(t){(function(t){return t.isPrimary&&"mouse"===t.pointerType})(t)&&(s=t.clientX,c=t.clientY,u())},r]}class ji extends dt{constructor(t){super(),ut(this,t,Pi,Ai,o,{handleScroll:0})}get handleScroll(){return this.$$.ctx[0]}}function Wi(t){let e,n,r,l;return{c(){e=b("div"),T(e,"class",n=t[2].resizer+(t[0]?" "+t[2].start:""))},m(n,o){v(n,e,o),r||(l=_(e,"pointerdown",t[11]),r=!0)},p(t,r){5&r&&n!==(n=t[2].resizer+(t[0]?" "+t[2].start:""))&&T(e,"class",n)},d(t){t&&y(e),r=!1,l()}}}function Ii(e){let n,r=e[1]&&Wi(e);return{c(){r&&r.c(),n=C()},m(t,e){r&&r.m(t,e),v(t,n,e)},p(t,e){let[l]=e;t[1]?r?r.p(t,l):(r=Wi(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},i:t,o:t,d(t){t&&y(n),r&&r.d(t)}}}function Oi(t,e,n){let r,l,o,i,s,{event:c}=e,{start:u=!1}=e,{theme:d,eventDurationEditable:f,eventResizableFromStart:h,editable:m}=B("state");return a(t,d,(t=>n(2,i=t))),a(t,f,(t=>n(9,l=t))),a(t,h,(t=>n(10,o=t))),a(t,m,(t=>n(8,r=t))),t.$$set=t=>{"event"in t&&n(7,c=t.event),"start"in t&&n(0,u=t.start)},t.$$.update=()=>{1921&t.$$.dirty&&n(1,s=!Ee(c.display)&&!Te(c.display)&&(!u||o)&&((c.durationEditable??l)||(c.editable??r)))},[u,s,i,d,f,h,m,c,r,l,o,function(e){F.call(this,t,e)}]}class Gi extends dt{constructor(t){super(),ut(this,t,Oi,Ii,o,{event:7,start:0})}}function Yi(t){let e,n;return e=new ji({props:{}}),t[16](e),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){e.$set({})},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(n){t[16](null),ct(e,n)}}}function qi(t){let e,n,r,l;e=new Fi({props:{}}),t[15](e);let o=t[1]&&Yi(t);return{c(){st(e.$$.fragment),n=x(),o&&o.c(),r=C()},m(t,i){at(e,t,i),v(t,n,i),o&&o.m(t,i),v(t,r,i),l=!0},p(t,n){let[l]=n;e.$set({}),t[1]?o?(o.p(t,l),2&l&&nt(o,1)):(o=Yi(t),o.c(),nt(o,1),o.m(r.parentNode,r)):o&&(tt(),rt(o,1,1,(()=>{o=null})),et())},i(t){l||(nt(e.$$.fragment,t),nt(o),l=!0)},o(t){rt(e.$$.fragment,t),rt(o),l=!1},d(l){l&&(y(n),y(r)),t[15](null),ct(e,l),o&&o.d(l)}}}function Xi(t,e,n){let r,l,o,i,s,c,u,d,{theme:f,editable:h,eventStartEditable:p,pointer:$,_bodyEl:g,_interaction:v,_iClasses:y,_draggable:w}=B("state");function b(){for(let t of Object.values(r))t?.handleScroll?.()}return a(t,f,(t=>n(11,o=t))),a(t,h,(t=>n(13,c=t))),a(t,p,(t=>n(14,u=t))),a(t,$,(t=>n(1,d=t))),a(t,g,(t=>n(10,l=t))),a(t,v,(t=>n(0,r=t))),a(t,y,(t=>n(17,s=t))),a(t,w,(t=>n(12,i=t))),m(v,r.resizer=Gi,r),t.$$.update=()=>{24576&t.$$.dirty&&m(w,i=t=>(t.startEditable??u)||(t.editable??c),i),6144&t.$$.dirty&&m(y,s=(t,e)=>{let{display:n}=e;return Te(n)?[o[n]]:!Ee(n)&&i(e)?[o.draggable]:[]},s),1024&t.$$.dirty&&l&&se(l,"scroll",b)},[r,d,f,h,p,$,g,v,y,w,l,o,i,c,u,function(t){P[t?"unshift":"push"]((()=>{r.action=t,v.set(r)}))},function(t){P[t?"unshift":"push"]((()=>{r.pointer=t,v.set(r)}))}]}class Vi extends dt{constructor(t){super(),ut(this,t,Xi,qi,o,{})}}var Ji={createOptions(t){t.dateClick=void 0,t.dragScroll=!0,t.editable=!1,t.eventDragMinDistance=5,t.eventDragStart=void 0,t.eventDragStop=void 0,t.eventDrop=void 0,t.eventDurationEditable=!0,t.eventLongPressDelay=void 0,t.eventResizableFromStart=!1,t.eventResizeStart=void 0,t.eventResizeStop=void 0,t.eventResize=void 0,t.eventStartEditable=!0,t.longPressDelay=1e3,t.pointer=!1,t.select=void 0,t.selectBackgroundColor=void 0,t.selectLongPressDelay=void 0,t.selectMinDistance=5,t.unselect=void 0,t.unselectAuto=!0,t.unselectCancel="",t.theme.draggable="ec-draggable",t.theme.ghost="ec-ghost",t.theme.preview="ec-preview",t.theme.pointer="ec-pointer",t.theme.resizer="ec-resizer",t.theme.start="ec-start",t.theme.dragging="ec-dragging",t.theme.resizingY="ec-resizing-y",t.theme.resizingX="ec-resizing-x",t.theme.selecting="ec-selecting"},createStores(t){t._draggable=mt(Xt),t._auxiliary.update((t=>[...t,Vi]))}};return class extends Un{constructor(t,e){super({target:t,props:{plugins:[vr,Br,Gl,Co,Mi,Ji],options:e}})}}}();
6
6
  //# sourceMappingURL=event-calendar.min.js.map