@event-calendar/build 3.0.0 → 3.0.2
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.
- package/README.md +3 -3
- package/event-calendar.min.css +1 -1
- package/event-calendar.min.js +2 -2
- package/event-calendar.min.js.map +1 -1
- package/package.json +8 -6
package/event-calendar.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
EventCalendar v3.0.
|
|
2
|
+
EventCalendar v3.0.2
|
|
3
3
|
https://github.com/vkurko/calendar
|
|
4
4
|
*/
|
|
5
|
-
var EventCalendar=function(){"use strict";function t(){}const e=t=>t;function n(t){return t()}function r(){return Object.create(null)}function l(t){t.forEach(n)}function o(t){return"function"==typeof t}function i(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 a(t){let e;return s(t,(t=>e=t))(),e}function c(t,e,n){t.$$.on_destroy.push(s(e,n))}function u(t,e,n,r){if(t){const l=d(t,e,n,r);return t[0](l)}}function d(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 f(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 h(t,e,n,r,l,o){if(l){const i=d(e,n,r,o);t.p(i,l)}}function p(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 g(e){return e&&o(e.destroy)?e.destroy:t}const $="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function v(t,e){t.appendChild(e)}function y(t,e,n){t.insertBefore(e,n||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function b(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function k(t){return document.createElement(t)}function x(t){return document.createTextNode(t)}function _(){return x(" ")}function C(){return x("")}function T(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 E(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function S(t,e){e=""+e,t.data!==e&&(t.data=e)}function M(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function U(t,e){return new t(e)}let L;function H(t){L=t}function B(){if(!L)throw new Error("Function called outside component initialization");return L}function N(t){B().$$.on_mount.push(t)}function A(t){B().$$.after_update.push(t)}function F(){const t=B();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 R(t){return B().$$.context.get(t)}function P(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const z=[],I=[];let j=[];const O=[],G=Promise.resolve();let W=!1;function q(){W||(W=!0,G.then(K))}function Y(){return q(),G}function X(t){j.push(t)}const V=new Set;let J=0;function K(){if(0!==J)return;const t=L;do{try{for(;J<z.length;){const t=z[J];J++,H(t),Q(t.$$)}}catch(t){throw z.length=0,J=0,t}for(H(null),z.length=0,J=0;I.length;)I.pop()();for(let t=0;t<j.length;t+=1){const e=j[t];V.has(e)||(V.add(e),e())}j.length=0}while(z.length);for(;O.length;)O.pop()();W=!1,V.clear(),H(t)}function Q(t){if(null!==t.fragment){t.update(),l(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(X)}}const Z=new Set;let tt;function et(){tt={r:0,c:[],p:tt}}function nt(){tt.r||l(tt.c),tt=tt.p}function rt(t,e){t&&t.i&&(Z.delete(t),t.i(e))}function lt(t,e,n,r){if(t&&t.o){if(Z.has(t))return;Z.add(t),tt.c.push((()=>{Z.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}function ot(t){return void 0!==t?.length?t:Array.from(t)}function it(t,e){lt(t,1,1,(()=>{e.delete(t.key)}))}function st(t,e,n,r,o,i,s,a,c,u,d,f){let h=t.length,p=i.length,m=h;const g={};for(;m--;)g[t[m].key]=m;const $=[],v=new Map,y=new Map,w=[];for(m=p;m--;){const t=f(o,i,m),r=n(t);let l=s.get(r);l?w.push((()=>l.p(t,e))):(l=u(r,t),l.c()),v.set(r,$[m]=l),r in g&&y.set(r,Math.abs(m-g[r]))}const b=new Set,k=new Set;function x(t){rt(t,1),t.m(a,d),s.set(t.key,t),d=t.first,p--}for(;h&&p;){const e=$[p-1],n=t[h-1],r=e.key,l=n.key;e===n?(d=e.first,h--,p--):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(;p;)x($[p-1]);return l(w),$}function at(t){t&&t.c()}function ct(t,e,r){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,r),X((()=>{const e=t.$$.on_mount.map(n).filter(o);t.$$.on_destroy?t.$$.on_destroy.push(...e):l(e),t.$$.on_mount=[]})),s.forEach(X)}function ut(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),l(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function dt(e,n,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=L;H(e);const f=e.$$={fragment:null,ctx:[],props:a,update:t,not_equal:s,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:r(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};c&&c(f.root);let h=!1;if(f.ctx=o?o(e,n.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]&&(z.push(t),q(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(e,t)),n})):[],f.update(),h=!0,l(f.before_update),f.fragment=!!i&&i(f.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);f.fragment&&f.fragment.l(t),t.forEach(w)}else f.fragment&&f.fragment.c();n.intro&&rt(e.$$.fragment),ct(e,n.target,n.anchor),K()}H(d)}class ft{$$=void 0;$$set=void 0;$destroy(){ut(this,1),this.$destroy=t}$on(e,n){if(!o(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 ht=[];function pt(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 o(t){if(i(e,t)&&(e=t,n)){const t=!ht.length;for(const t of l)t[1](),ht.push(t,e);if(t){for(let t=0;t<ht.length;t+=2)ht[t][0](ht[t+1]);ht.length=0}}}function s(t){o(t(e))}return{set:o,update:s,subscribe:function(i){const a=[i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t];return l.add(a),1===l.size&&(n=r(o,s)||t),i(e),()=>{l.delete(a),0===l.size&&n&&(n(),n=null)}}}}function gt(e,n,r){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 pt(r,((e,r)=>{let u=!1;const d=[];let f=0,h=t;const p=()=>{if(f)return;h();const l=n(i?d[0]:d,e,r);c?e(l):h=o(l)?l: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(){l(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 vt(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 yt(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 wt=86400;function bt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return void 0!==t?t instanceof Date?Nt(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):Nt(new Date)}function kt(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 xt(t){return new Date(t.getTime())}function _t(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 _t(t,e,-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1))}function Tt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t.setUTCDate(t.getUTCDate()+e),t}function Dt(t){return Tt(t,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function Et(t){return t.setUTCHours(0,0,0,0),t}function St(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())}function Mt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:19;return t.toISOString().substring(0,e)}function Ut(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 Lt(t,e){let n=e-t.getUTCDay();return t.setUTCDate(t.getUTCDate()+(n<=0?n:n-7)),t}function Ht(t){return"string"==typeof t&&t.length<=10}function Bt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t?.seconds??e}function Nt(t){return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()))}function At(t,e,n){n.update((n=>n.set(e,t)))}function Ft(t){l(t),t.clear()}function Rt(t,e,n){e??=t,n.has(e)||n.set(e,setTimeout((()=>{n.delete(e),t()})))}function Pt(){return Object.assign(...arguments)}function zt(t){return Object.keys(t)}function It(t){return Math.floor(t)}function jt(t){return Math.ceil(t)}function Ot(){return Math.min(...arguments)}function Gt(){return Math.max(...arguments)}function Wt(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 qt(t){return t.getBoundingClientRect()}function Yt(t,e){for(;e--;)t=t.parentElement;return t}function Xt(t){return qt(t).height}let Vt=Symbol("ec");function Jt(t,e){t[Vt]=e}function Kt(t){return!!t?.[Vt]}function Qt(t){return t[Vt]}function Zt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;for(let r of n.elementsFromPoint(t,e)){if(Kt(r))return r;if(r.shadowRoot){let n=Zt(t,e,r.shadowRoot);if(n)return n}}return null}function te(t){return(t=Pt({},t)).currentStart=St(t.currentStart),t.currentEnd=St(t.currentEnd),t.activeStart=St(t.activeStart),t.activeEnd=St(t.activeEnd),t}function ee(t){return t.startsWith("list")}function ne(t){return t.includes("Timeline")}let re=1;function le(t){return t.map((t=>{let e={id:"id"in t?String(t.id):`{generated-${re++}}`,resourceIds:Array.isArray(t.resourceIds)?t.resourceIds.map(String):"resourceId"in t?[String(t.resourceId)]:[],allDay:t.allDay??(Ht(t.start)&&Ht(t.end)),start:bt(t.start),end:bt(t.end),title:t.title||"",titleHTML:t.titleHTML||"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display||"auto",extendedProps:t.extendedProps||{},backgroundColor:t.backgroundColor||t.color,textColor:t.textColor};if(e.allDay){Et(e.start);let t=xt(e.end);Et(e.end),Ut(e.end,t)&&!Ut(e.end,e.start)||Tt(e.end)}return e}))}function oe(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 ie(t,e,n){return{start:t.start>e?t.start:e,end:t.end<n?t.end:n,event:t}}function se(t){t.sort(((t,e)=>t.start-e.start||e.event.allDay-t.event.allDay))}function ae(t,e,n,r,l,i){let s=l.formatRange(t.start,e&&"pointer"!==t.event.display?(a=xt(t.start),c=t.end,a.setUTCHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),0),a):t.start);var a,c;let u;if(n)u=o(n)?n({event:de(t.event),timeText:s,view:te(i)}):n;else{let e;switch(t.event.display){case"background":e=[];break;case"pointer":e=[ce(s,t,r)];break;default:e=[...t.event.allDay?[]:[ce(s,t,r)],Wt("h4",r.eventTitle,t.event.title)]}u={domNodes:e}}return[s,u]}function ce(t,e,n){return Wt("time",n.eventTime,t,[["datetime",Mt(e.start)]])}function ue(t,e,n){return t?(o(t)&&(t=t({event:de(e),view:te(n)})),Array.isArray(t)?t:[t]):[]}function de(t){return he(t,St)}function fe(t){return he(t,xt)}function he(t,e){return(t=Pt({},t)).start=e(t.start),t.end=e(t.end),t}function pe(t,e){let n={};if(t.length){let r;se(t);for(let l of t){let t=[],o=Et(xt(l.start));for(;l.end>o;){if(!e.includes(o.getUTCDay())&&(t.push(xt(o)),t.length>1)){let t=o.getTime();n[t]?n[t].chunks.push(l):n[t]={sorted:!1,chunks:[l]}}Tt(o)}t.length?(l.date=t[0],l.days=t.length,l.dates=t):(l.date=Et(xt(l.start)),l.days=1,l.dates=[l.date]),r&&Ut(r.date,l.date)&&(l.prev=r),r=l}}return n}function me(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 ge(t,e){t.length=e.length;let n=[];for(let e of t)n.push(e?.reposition?.());return n}function $e(t,e,n,r){return t.start<n&&t.end>e&&(void 0===r||t.resourceIds.includes(r.id))}function ve(t){return function(t){return"preview"===t}(t)||we(t)||function(t){return"pointer"===t}(t)}function ye(t){return"background"===t}function we(t){return"ghost"===t}function be(t){return Ce(t,"day")}function ke(t){return Ce(t,"week")}function xe(t){return Ce(t,"month")}function _e(t){return Ce(t,"year")}function Ce(t,e){return{...t,next:"Next "+e,prev:"Previous "+e}}function Te(t){return e=>({...e,view:t})}function De(t,e){return gt([t,e],(t=>{let[e,n]=t,r=o(n)?{format:n}:new Intl.DateTimeFormat(e,n);return{format:t=>r.format(St(t))}}))}function Ee(t,e){return gt([t,e],(t=>{let e,[n,r]=t;if(o(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+=Se(o[1-e],r),i[e]=!0):l+=t.value}return l}}}return{formatRange:(t,n)=>e(St(t),St(n))}}))}function Se(t,e){let n="";for(let r of e)r.source==t&&(n+=r.value);return n}function Me(t,e,n,r,l){t=xt(t);let o=e.seconds<3600,i=[],s=xt(t),a=1;for(_t(t,n.min),_t(s,n.max);t<s;)i.push([Mt(t),r.format(t),i.length&&(a||!o),l&&l.format(t)]),_t(t,e),a=1-a;return i}function Ue(t,e,n,r,l){let i=kt(t),s=kt(e);if(n){let t=kt(Ot(Bt(i),Gt(0,Bt(s)-wt))),e=kt(Gt(Bt(s),Bt(t)+wt)),a=o(n?.eventFilter)?n.eventFilter:t=>!ye(t.display);t:for(let n of r){let r=_t(xt(n),i),o=_t(xt(n),s),c=_t(xt(n),t),u=_t(xt(n),e);for(let d of l)if(!d.allDay&&a(d)&&d.start<u&&d.end>c){if(d.start<r){let e=Gt((d.start-n)/1e3,Bt(t));e<Bt(i)&&(i.seconds=e)}if(d.end>o){let t=Ot((d.end-n)/1e3,Bt(e));t>Bt(s)&&(s.seconds=t)}if(Bt(i)===Bt(t)&&Bt(s)===Bt(e))break t}}}return{min:i,max:s}}class Le{constructor(n,r){let l=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:"long"},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"},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:52,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}(n=n||[]),i=function(t){let e={date:t=>Et(bt(t)),duration:kt,events:le,eventSources:oe,hiddenDays:t=>[...new Set(t)],highlightedDates:t=>t.map(bt),scrollTime:kt,slotDuration:kt,slotMaxTime:kt,slotMinTime:kt};for(let n of t)n.createParsers?.(e);return e}(n);l=He(l,i),r=He(r,i);for(let[t,e]of Object.entries(l))this[t]=mt(e);this._queue=mt(new Map),this._queue2=mt(new Map),this._tasks=new Map,this._auxiliary=mt([]),this._dayGrid=gt(this.view,(t=>t?.startsWith("dayGrid"))),this._currentRange=function(t){return gt([t.date,t.duration,t.firstDay,t._dayGrid],(t=>{let e,[n,r,l,o]=t,i=xt(n);return o?i.setUTCDate(1):r.inWeeks&&Lt(i,l),e=_t(xt(i),r),{start:i,end:e}}))}(this),this._activeRange=function(t){return gt([t._currentRange,t.firstDay,t.slotMaxTime,t._dayGrid],(t=>{let[e,n,r,l]=t,o=xt(e.start),i=xt(e.end);if(l)Lt(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>wt){_t(Dt(i),r);let t=Dt(xt(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 gt([t.events,t.eventSources,t._activeRange,t._fetchedRange,t.lazyFetching,t.loading],((n,i)=>At((()=>{let[t,l,s,a,c,u]=n;if(l.length){if(!a.start||a.start>s.start||a.end<s.end||!c){e&&e.abort(),e=new AbortController,o(u)&&!r&&u(!0);let t=()=>{0==--r&&o(u)&&u(!1)},n=[],c=e=>t(),d=e=>{n=n.concat(le(e)),i(n),t()},f=Mt(s.start),h=Mt(s.end);for(let t of l){if(o(t.events)){let e=t.events({start:St(s.start),end:St(s.end),startStr:f,endStr:h},d,c);void 0!==e&&Promise.resolve(e).then(d,c)}else{let n=o(t.extraParams)?t.extraParams():Pt({},t.extraParams);n.start=f,n.end=h,n=new URLSearchParams(n);let r,l=t.url,i={};["GET","HEAD"].includes(t.method)?l+=(l.includes("?")?"&":"?")+n:(i["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",r=String(n)),fetch(l,{method:t.method,headers:i,body:r,signal:e.signal,credentials:"same-origin"}).then((t=>t.json())).then(d).catch(c)}++r}a.start=s.start,a.end=s.end}}else i(t)}),l,t._queue)),[]).subscribe(n.set),n}(this),this._now=pt(bt(),(t=>{let e=setInterval((()=>{t(bt())}),1e3);return()=>clearInterval(e)})),this._today=function(t){return gt(t._now,(t=>Et(xt(t))))}(this),this._intlEventTime=Ee(this.locale,this.eventTimeFormat),this._intlSlotLabel=De(this.locale,this.slotLabelFormat),this._intlDayHeader=De(this.locale,this.dayHeaderFormat),this._intlDayHeaderAL=De(this.locale,this.dayHeaderAriaLabelFormat),this._intlTitle=Ee(this.locale,this.titleFormat),this._bodyEl=mt(void 0),this._scrollable=mt(!1),this._viewTitle=function(t){return gt([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(xt(n.end)))}))}(this),this._viewDates=function(t){return gt([t._activeRange,t.hiddenDays],(e=>{let[n,r]=e,l=[],o=Et(xt(n.start)),i=Et(xt(n.end));for(;o<i;)r.includes(o.getUTCDay())||l.push(xt(o)),Tt(o);return!l.length&&r.length&&r.length<7&&(t.date.update((t=>{for(;r.includes(t.getUTCDay());)Tt(t);return t})),l=a(t._viewDates)),l}))}(this),this._view=function(t){return gt([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._resBgColor=mt(t),this._resTxtColor=mt(t),this._interaction=mt({}),this._iEvents=mt([null,null]),this._iClasses=mt(e),this._iClass=mt(void 0),this._set=(t,e)=>{Ae(t,this)&&(i[t]&&(e=i[t](e)),this[t].set(e))},this._get=t=>Ae(t,this)?a(this[t]):void 0;for(let t of n)t.createStores?.(this);r.view&&this.view.set(r.view);let s=new Set([...zt(l.views),...zt(r.views??{})]);for(let t of s){let e=Be(l,l.views[t]??{}),n=Be(e,r,r.views?.[t]??{}),i=n.component;Ne(n,this);for(let t of zt(n)){let{set:r,_set:l=r,...i}=this[t];this[t]={set:["buttonText","theme"].includes(t)?i=>{if(o(i)){let o=i(e[t]);n[t]=o,r(r===l?o:i)}else n[t]=i,r(i)}:e=>{n[t]=e,r(e)},_set:l,...i}}this.view.subscribe((e=>{if(e===t){this._viewComponent.set(i),o(n.viewDidMount)&&Y().then((()=>n.viewDidMount(a(this._view))));for(let t of zt(n))this[t]._set(n[t])}}))}}}function He(t,e){let n={...t};for(let t of zt(e))t in n&&(n[t]=e[t](n[t]));if(t.views){n.views={};for(let r of zt(t.views))n.views[r]=He(t.views[r],e)}return n}function Be(){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"])o(e[r])&&(n[r]=e[r](t[r]));t={...t,...e,...n}}return t}function Ne(t,e){zt(t).filter((t=>!Ae(t,e)||"view"==t)).forEach((e=>delete t[e]))}function Ae(t,e){return e.hasOwnProperty(t)&&"_"!==t[0]}function Fe(t,e,n){const r=t.slice();return r[25]=e[n],r}function Re(t){let e,n,r,l,o,i=t[5][t[25]]+"";function s(){return t[22](t[25])}return{c(){e=k("button"),n=x(i),E(e,"class",r=t[3].button+(t[7]===t[25]?" "+t[3].active:"")+" ec-"+t[25])},m(t,r){y(t,e,r),v(e,n),l||(o=T(e,"click",s),l=!0)},p(l,o){t=l,33&o&&i!==(i=t[5][t[25]]+"")&&S(n,i),137&o&&r!==(r=t[3].button+(t[7]===t[25]?" "+t[3].active:"")+" ec-"+t[25])&&E(e,"class",r)},d(t){t&&w(e),l=!1,o()}}}function Pe(t){let e,n,r,l,i,s=t[6][t[25]].text+"";return{c(){e=k("button"),n=x(s),E(e,"class",r=t[3].button+" ec-"+t[25])},m(r,s){y(r,e,s),v(e,n),l||(i=T(e,"click",(function(){o(t[6][t[25]].click)&&t[6][t[25]].click.apply(this,arguments)})),l=!0)},p(l,o){t=l,65&o&&s!==(s=t[6][t[25]].text+"")&&S(n,s),9&o&&r!==(r=t[3].button+" ec-"+t[25])&&E(e,"class",r)},d(t){t&&w(e),l=!1,i()}}}function ze(t){let e,n,r,l,o,i=t[5][t[25]]+"";return{c(){e=k("button"),n=x(i),E(e,"class",r=t[3].button+" ec-"+t[25]),e.disabled=t[1]},m(r,i){y(r,e,i),v(e,n),l||(o=T(e,"click",t[21]),l=!0)},p(t,l){33&l&&i!==(i=t[5][t[25]]+"")&&S(n,i),9&l&&r!==(r=t[3].button+" ec-"+t[25])&&E(e,"class",r),2&l&&(e.disabled=t[1])},d(t){t&&w(e),l=!1,o()}}}function Ie(t){let e,n,r,l,o,i,s,a;return{c(){e=k("button"),n=k("i"),E(n,"class",r=t[3].icon+" ec-"+t[25]),E(e,"class",l=t[3].button+" ec-"+t[25]),E(e,"aria-label",o=t[5].next),E(e,"title",i=t[5].next)},m(r,l){y(r,e,l),v(e,n),s||(a=T(e,"click",t[19]),s=!0)},p(t,s){9&s&&r!==(r=t[3].icon+" ec-"+t[25])&&E(n,"class",r),9&s&&l!==(l=t[3].button+" ec-"+t[25])&&E(e,"class",l),32&s&&o!==(o=t[5].next)&&E(e,"aria-label",o),32&s&&i!==(i=t[5].next)&&E(e,"title",i)},d(t){t&&w(e),s=!1,a()}}}function je(t){let e,n,r,l,o,i,s,a;return{c(){e=k("button"),n=k("i"),E(n,"class",r=t[3].icon+" ec-"+t[25]),E(e,"class",l=t[3].button+" ec-"+t[25]),E(e,"aria-label",o=t[5].prev),E(e,"title",i=t[5].prev)},m(r,l){y(r,e,l),v(e,n),s||(a=T(e,"click",t[18]),s=!0)},p(t,s){9&s&&r!==(r=t[3].icon+" ec-"+t[25])&&E(n,"class",r),9&s&&l!==(l=t[3].button+" ec-"+t[25])&&E(e,"class",l),32&s&&o!==(o=t[5].prev)&&E(e,"aria-label",o),32&s&&i!==(i=t[5].prev)&&E(e,"title",i)},d(t){t&&w(e),s=!1,a()}}}function Oe(t){let e,n,r,l,i;return{c(){e=k("h2"),E(e,"class",n=t[3].title)},m(n,o){y(n,e,o),l||(i=g(r=vt.call(null,e,t[4])),l=!0)},p(t,l){8&l&&n!==(n=t[3].title)&&E(e,"class",n),r&&o(r.update)&&16&l&&r.update.call(null,t[4])},d(t){t&&w(e),l=!1,i()}}}function Ge(t){let e;function n(t,e){return"title"==t[25]?Oe:"prev"==t[25]?je:"next"==t[25]?Ie:"today"==t[25]?ze:t[6][t[25]]?Pe:""!=t[25]?Re: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),y(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&&w(e),l&&l.d(t)}}}function We(e){let n,r=ot(e[0]),l=[];for(let t=0;t<r.length;t+=1)l[t]=Ge(Fe(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);y(t,n,e)},p(t,e){let[o]=e;if(917759&o){let e;for(r=ot(t[0]),e=0;e<r.length;e+=1){const i=Fe(t,r,e);l[e]?l[e].p(i,o):(l[e]=Ge(i),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&&w(n),b(l,t)}}}function qe(t,e,n){let r,l,o,i,s,a,u,d,f,{buttons:h}=e,{_currentRange:p,_viewTitle:g,buttonText:$,customButtons:v,date:y,duration:w,hiddenDays:b,theme:k,view:x}=R("state");c(t,p,(t=>n(20,i=t))),c(t,g,(t=>n(4,a=t))),c(t,$,(t=>n(5,u=t))),c(t,v,(t=>n(6,d=t))),c(t,y,(t=>n(2,l=t))),c(t,w,(t=>n(23,r=t))),c(t,b,(t=>n(24,o=t))),c(t,k,(t=>n(3,s=t))),c(t,x,(t=>n(7,f=t)));let _,C=Et(bt());return t.$$set=t=>{"buttons"in t&&n(0,h=t.buttons)},t.$$.update=()=>{1048576&t.$$.dirty&&n(1,_=C>=i.start&&C<i.end||null)},[h,_,l,s,a,u,d,f,p,g,$,v,y,w,b,k,x,C,function(){let t=Ct(l,r);if(o.length&&o.length<7)for(;o.includes(t.getUTCDay());)Dt(t);m(y,l=t,l)},function(){m(y,l=_t(l,r),l)},i,()=>m(y,l=xt(C),l),t=>m(x,f=t,f)]}class Ye extends ft{constructor(t){super(),dt(this,t,qe,We,i,{buttons:0})}}function Xe(t,e,n){const r=t.slice();return r[5]=e[n],r}function Ve(t,e,n){const r=t.slice();return r[8]=e[n],r}function Je(t){let e,n;return e=new Ye({props:{buttons:t[8]}}),{c(){at(e.$$.fragment)},m(t,r){ct(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.buttons=t[8]),e.$set(r)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Ke(t){let e,n,r,l;return n=new Ye({props:{buttons:t[8]}}),{c(){e=k("div"),at(n.$$.fragment),E(e,"class",r=t[1].buttonGroup)},m(t,r){y(t,e,r),ct(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))&&E(e,"class",r)},i(t){l||(rt(n.$$.fragment,t),l=!0)},o(t){lt(n.$$.fragment,t),l=!1},d(t){t&&w(e),ut(n)}}}function Qe(t){let e,n,r,l;const o=[Ke,Je],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),y(t,r,n),l=!0},p(t,l){let a=e;e=s(t),e===a?i[e].p(t,l):(et(),lt(i[a],1,1,(()=>{i[a]=null})),nt(),n=i[e],n?n.p(t,l):(n=i[e]=o[e](t),n.c()),rt(n,1),n.m(r.parentNode,r))},i(t){l||(rt(n),l=!0)},o(t){lt(n),l=!1},d(t){t&&w(r),i[e].d(t)}}}function Ze(t){let e,n,r,l=ot(t[0][t[5]]),o=[];for(let e=0;e<l.length;e+=1)o[e]=Qe(Ve(t,l,e));const i=t=>lt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=k("div");for(let t=0;t<o.length;t+=1)o[t].c();n=_()},m(t,l){y(t,e,l);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);v(e,n),r=!0},p(t,r){if(3&r){let s;for(l=ot(t[0][t[5]]),s=0;s<l.length;s+=1){const i=Ve(t,l,s);o[s]?(o[s].p(i,r),rt(o[s],1)):(o[s]=Qe(i),o[s].c(),rt(o[s],1),o[s].m(e,n))}for(et(),s=l.length;s<o.length;s+=1)i(s);nt()}},i(t){if(!r){for(let t=0;t<l.length;t+=1)rt(o[t]);r=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)lt(o[t]);r=!1},d(t){t&&w(e),b(o,t)}}}function tn(t){let e,n,r,l=ot(Object.keys(t[0])),o=[];for(let e=0;e<l.length;e+=1)o[e]=Ze(Xe(t,l,e));const i=t=>lt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=k("nav");for(let t=0;t<o.length;t+=1)o[t].c();E(e,"class",n=t[1].toolbar)},m(t,n){y(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=ot(Object.keys(t[0])),n=0;n<l.length;n+=1){const r=Xe(t,l,n);o[n]?(o[n].p(r,a),rt(o[n],1)):(o[n]=Ze(r),o[n].c(),rt(o[n],1),o[n].m(e,null))}for(et(),n=l.length;n<o.length;n+=1)i(n);nt()}(!r||2&a&&n!==(n=t[1].toolbar))&&E(e,"class",n)},i(t){if(!r){for(let t=0;t<l.length;t+=1)rt(o[t]);r=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)lt(o[t]);r=!1},d(t){t&&w(e),b(o,t)}}}function en(t,e,n){let r,l,{headerToolbar:o,theme:i}=R("state");c(t,o,(t=>n(4,r=t))),c(t,i,(t=>n(1,l=t)));let s={start:[],center:[],end:[]};return t.$$.update=()=>{if(17&t.$$.dirty)for(let t of Object.keys(s))n(0,s[t]=r[t].split(" ").map((t=>t.split(","))),s)},[s,l,o,i,r]}class nn extends ft{constructor(t){super(),dt(this,t,en,tn,i,{})}}function rn(t,e,n){const r=t.slice();return r[11]=e[n],r}function ln(t){let e,n,r;var l=t[11];return l&&(e=U(l,{})),{c(){e&&at(e.$$.fragment),n=C()},m(t,l){e&&ct(e,t,l),y(t,n,l),r=!0},p(t,r){if(1&r&&l!==(l=t[11])){if(e){et();const t=e;lt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}l?(e=U(l,{}),at(e.$$.fragment),rt(e.$$.fragment,1),ct(e,n.parentNode,n)):e=null}},i(t){r||(e&&rt(e.$$.fragment,t),r=!0)},o(t){e&<(e.$$.fragment,t),r=!1},d(t){t&&w(n),e&&ut(e,t)}}}function on(t){let e,n,r=ot(t[0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=ln(rn(t,r,e));const o=t=>lt(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);y(t,e,r),n=!0},p(t,n){let[i]=n;if(1&i){let n;for(r=ot(t[0]),n=0;n<r.length;n+=1){const o=rn(t,r,n);l[n]?(l[n].p(o,i),rt(l[n],1)):(l[n]=ln(o),l[n].c(),rt(l[n],1),l[n].m(e.parentNode,e))}for(et(),n=r.length;n<l.length;n+=1)o(n);nt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)rt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)lt(l[t]);n=!1},d(t){t&&w(e),b(l,t)}}}function sn(t,e,n){let r,l,i,s,{datesSet:a,_auxiliary:u,_activeRange:d,_queue:f,_view:h}=R("state");c(t,a,(t=>n(7,l=t))),c(t,u,(t=>n(0,s=t))),c(t,d,(t=>n(5,i=t))),c(t,h,(t=>n(6,r=t)));let p={};return t.$$.update=()=>{32&t.$$.dirty&&function(t){o(l)&&At((()=>l({start:St(t.start),end:St(t.end),startStr:Mt(t.start),endStr:Mt(t.end),view:te(r)})),p,f)}(i)},[s,a,u,d,h,i]}let an=class extends ft{constructor(t){super(),dt(this,t,sn,on,i,{})}};function cn(t){let e,n,r,l,o,i,s,a,c,u,d;n=new nn({});var f=t[5];return f&&(l=U(f,{})),a=new an({}),{c(){e=k("div"),at(n.$$.fragment),r=_(),l&&at(l.$$.fragment),s=_(),at(a.$$.fragment),E(e,"class",o=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")),E(e,"role",i=ee(t[4])?"list":"table"),M(e,"height",t[3])},m(o,i){y(o,e,i),ct(n,e,null),v(e,r),l&&ct(l,e,null),y(o,s,i),ct(a,o,i),c=!0,u||(d=T(window,"resize",t[17]),u=!0)},p(t,n){if(32&n[0]&&f!==(f=t[5])){if(l){et();const t=l;lt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}f?(l=U(f,{}),at(l.$$.fragment),rt(l.$$.fragment,1),ct(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]]:"")))&&E(e,"class",o),(!c||16&n[0]&&i!==(i=ee(t[4])?"list":"table"))&&E(e,"role",i),8&n[0]&&M(e,"height",t[3])},i(t){c||(rt(n.$$.fragment,t),l&&rt(l.$$.fragment,t),rt(a.$$.fragment,t),c=!0)},o(t){lt(n.$$.fragment,t),l&<(l.$$.fragment,t),lt(a.$$.fragment,t),c=!1},d(t){t&&(w(e),w(s)),ut(n),l&&ut(l),ut(a,t),u=!1,d()}}}function un(t,e,n){let r,l,o,i,s,u,d,f,h,p,g,{plugins:$=[]}=e,{options:v={}}=e,y=B(),w=new Le($,v);var b,k;b="state",k=w,B().$$.context.set(b,k);let{_viewComponent:x,_bodyEl:_,_interaction:C,_iClass:T,_events:D,_queue:E,_queue2:S,_tasks:M,_scrollable:U,height:L,theme:H,view:N}=w;c(t,x,(t=>n(5,g=t))),c(t,_,(t=>n(32,r=t))),c(t,C,(t=>n(35,s=t))),c(t,T,(t=>n(2,f=t))),c(t,D,(t=>n(36,u=t))),c(t,E,(t=>n(34,i=t))),c(t,S,(t=>n(33,o=t))),c(t,U,(t=>n(0,l=t))),c(t,L,(t=>n(3,h=t))),c(t,H,(t=>n(1,d=t))),c(t,N,(t=>n(4,p=t)));let F={...v};function R(t,e){return w._set(t,e),this}var P;function z(){var t;r&&m(U,l=(t=r).scrollHeight>t.clientHeight,l)}return P=()=>{Ft(i)},B().$$.before_update.push(P),A((()=>{Ft(o),Rt(z,null,M)})),t.$$set=t=>{"plugins"in t&&n(18,$=t.plugins),"options"in t&&n(19,v=t.options)},t.$$.update=()=>{if(524288&t.$$.dirty[0])for(let[t,e]of function(t,e){let n=[];for(let r of zt(t))t[r]!==e[r]&&n.push([r,t[r]]);return Pt(e,t),n}(v,F))R(t,e)},[l,d,f,h,p,g,x,_,C,T,D,E,S,U,L,H,N,z,$,v,R,function(t){let e=w._get(t);return e instanceof Date?St(e):e},function(){return w._fetchedRange.set({start:void 0,end:void 0}),this},function(){return u.map(de)},function(t){for(let e of u)if(e.id==t)return de(e);return null},function(t){return u.push(le([t])[0]),D.set(u),this},function(t){for(let e of u)if(e.id==t.id){Pt(e,le([t])[0]),D.set(u);break}return this},function(t){let e=u.findIndex((e=>e.id==t));return e>=0&&(u.splice(e,1),D.set(u)),this},function(){return te(a(w._view))},function(){return s.action&&s.action.unselect(),this},function(t,e){let n=Zt(t,e);return n?Qt(n)(t,e):null},function(){ut(y,!0)}]}class dn extends ft{constructor(t){super(),dt(this,t,un,cn,i,{plugins:18,options:19,setOption:20,getOption:21,refetchEvents:22,getEvents:23,getEventById:24,addEvent:25,updateEvent:26,removeEventById:27,getView:28,unselect:29,dateFromPoint:30,destroy:31},null,[-1,-1])}get setOption(){return this.$$.ctx[20]}get getOption(){return this.$$.ctx[21]}get refetchEvents(){return this.$$.ctx[22]}get getEvents(){return this.$$.ctx[23]}get getEventById(){return this.$$.ctx[24]}get addEvent(){return this.$$.ctx[25]}get updateEvent(){return this.$$.ctx[26]}get removeEventById(){return this.$$.ctx[27]}get getView(){return this.$$.ctx[28]}get unselect(){return this.$$.ctx[29]}get dateFromPoint(){return this.$$.ctx[30]}get destroy(){return this.$$.ctx[31]}}function fn(t,e,n){const r=t.slice();return r[8]=e[n],r}function hn(t){let e,n,r,l,i,s,a,c;return{c(){e=k("div"),n=k("span"),i=_(),E(n,"aria-label",r=t[2].format(t[8])),E(e,"class",s=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()]),E(e,"role","columnheader")},m(r,o){y(r,e,o),v(e,n),v(e,i),a||(c=g(l=vt.call(null,n,t[3].format(t[8]))),a=!0)},p(i,a){t=i,6&a&&r!==(r=t[2].format(t[8]))&&E(n,"aria-label",r),l&&o(l.update)&&10&a&&l.update.call(null,t[3].format(t[8])),3&a&&s!==(s=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()])&&E(e,"class",s)},d(t){t&&w(e),a=!1,c()}}}function pn(e){let n,r,l,o,i,s,a,c=ot(e[1]),u=[];for(let t=0;t<c.length;t+=1)u[t]=hn(fn(e,c,t));return{c(){n=k("div"),r=k("div");for(let t=0;t<u.length;t+=1)u[t].c();o=_(),i=k("div"),E(r,"class",l=e[0].days),E(r,"role","row"),E(i,"class",s=e[0].hiddenScroll),E(n,"class",a=e[0].header)},m(t,e){y(t,n,e),v(n,r);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(r,null);v(n,o),v(n,i)},p(t,e){let[o]=e;if(15&o){let e;for(c=ot(t[1]),e=0;e<c.length;e+=1){const n=fn(t,c,e);u[e]?u[e].p(n,o):(u[e]=hn(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)&&E(r,"class",l),1&o&&s!==(s=t[0].hiddenScroll)&&E(i,"class",s),1&o&&a!==(a=t[0].header)&&E(n,"class",a)},i:t,o:t,d(t){t&&w(n),b(u,t)}}}function mn(t,e,n){let r,l,o,i,{theme:s,_intlDayHeader:a,_intlDayHeaderAL:u,_days:d}=R("state");return c(t,s,(t=>n(0,r=t))),c(t,a,(t=>n(3,i=t))),c(t,u,(t=>n(2,o=t))),c(t,d,(t=>n(1,l=t))),[r,l,o,i,s,a,u,d]}let gn=class extends ft{constructor(t){super(),dt(this,t,mn,pn,i,{})}};function $n(t){let e,n,r,i,s,a,c,u,d,f,h;var p=t[8].resizer;function m(t,e){return{props:{event:t[0]}}}return p&&(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[33](t[8],"x"))&&t[33](t[8],"x").apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),a&&at(a.$$.fragment),E(n,"class",r=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",c=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(r,l){y(r,e,l),v(e,n),v(e,s),a&&ct(a,e,null),t[53](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){o(t[7]||void 0)&&(t[7]||void 0).apply(this,arguments)})),T(e,"keydown",(function(){o(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){o(t[32](t[9],t[1]))&&t[32](t[9],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){o(t[32](t[10],t[1]))&&t[32](t[10],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){o(!ve(t[1])&&t[33](t[8]))&&(!ve(t[1])&&t[33](t[8])).apply(this,arguments)}))],f=!0)},p(l,s){if(t=l,(!d||4&s[0]&&r!==(r=t[2].eventBody))&&E(n,"class",r),i&&o(i.update)&&64&s[0]&&i.update.call(null,t[6]),256&s[0]&&p!==(p=t[8].resizer)){if(a){et();const t=a;lt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[33](t[8],"x"))&&t[33](t[8],"x").apply(this,arguments)})),at(a.$$.fragment),rt(a.$$.fragment,1),ct(a,e,null)):a=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),a.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&c!==(c=t[7]?"button":void 0))&&E(e,"role",c),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(a&&rt(a.$$.fragment,t),d=!0)},o(t){a&<(a.$$.fragment,t),d=!1},d(n){n&&w(e),a&&ut(a),t[53](null),f=!1,l(h)}}}function vn(t,e,n){let r,l,i,s,a,u,d,f,h,p,m,g,$,v,y,w,b,k,x,_,C,T,D,E,S,M,U,{chunk:L}=e,{longChunks:H={}}=e,{inPopup:B=!1}=e,{dates:F=[]}=e,{dayMaxEvents:P,displayEventEnd:z,eventAllUpdated:j,eventBackgroundColor:O,eventTextColor:G,eventClick:W,eventColor:q,eventContent:Y,eventClassNames:X,eventDidMount:V,eventMouseEnter:J,eventMouseLeave:K,theme:Q,_view:Z,_intlEventTime:tt,_interaction:et,_iClasses:nt,_resBgColor:rt,_resTxtColor:lt,_hiddenEvents:ot,_popupDate:it,_tasks:st}=R("state");c(t,P,(t=>n(56,i=t))),c(t,z,(t=>n(45,g=t))),c(t,j,(t=>n(58,d=t))),c(t,O,(t=>n(51,k=t))),c(t,G,(t=>n(48,y=t))),c(t,W,(t=>n(41,r=t))),c(t,q,(t=>n(50,b=t))),c(t,Y,(t=>n(44,m=t))),c(t,X,(t=>n(46,$=t))),c(t,V,(t=>n(59,f=t))),c(t,J,(t=>n(9,_=t))),c(t,K,(t=>n(10,C=t))),c(t,Q,(t=>n(2,p=t))),c(t,Z,(t=>n(42,u=t))),c(t,tt,(t=>n(43,h=t))),c(t,et,(t=>n(8,a=t))),c(t,nt,(t=>n(47,v=t))),c(t,rt,(t=>n(52,x=t))),c(t,lt,(t=>n(49,w=t))),c(t,ot,(t=>n(55,l=t))),c(t,it,(t=>n(57,s=t)));let at,ct,ut=1,dt=!1;function ft(t,e){return!ve(e)&&o(t)?e=>t({event:de(D),el:T,jsEvent:e,view:te(u)}):void 0}return N((()=>{o(f)&&f({event:de(D),timeText:U,el:T,view:te(u)})})),A((()=>{o(d)&&!ve(at)&&Rt((()=>d({view:te(u)})),"eau",st)})),t.$$set=t=>{"chunk"in t&&n(34,L=t.chunk),"longChunks"in t&&n(35,H=t.longChunks),"inPopup"in t&&n(36,B=t.inPopup),"dates"in t&&n(37,F=t.dates)},t.$$.update=()=>{if(8&t.$$.dirty[1]&&n(0,D=L.event),37&t.$$.dirty[0]|4164360&t.$$.dirty[1]){n(1,at=D.display);let t=D.backgroundColor||x(D)||k||b,e=D.textColor||w(D)||y,r=ut;if(D._margin){let[t,e]=D._margin;L.date>=e[0]&&L.date<=e[e.length-1]&&(r=t)}n(5,S=`width:calc(${100*L.days}% + ${7*(L.days-1)}px);margin-top:${r}px;`),t&&n(5,S+=`background-color:${t};`),e&&n(5,S+=`color:${e};`),dt&&n(5,S+="visibility:hidden;"),n(4,E=[p.event,...v([],D),...ue($,D,u)].join(" "))}4&t.$$.dirty[0]|30728&t.$$.dirty[1]&&n(6,[U,M]=ae(L,g,m,p,h,u),M),2&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(7,ct=ft(r,at))},[D,at,p,T,E,S,M,ct,a,_,C,P,z,j,O,G,W,q,Y,X,V,J,K,Q,Z,tt,et,nt,rt,lt,ot,it,ft,function(t,e){return t.action?t=>a.action.drag(D,t,e,B?s:null,[qt(T).top-qt(Yt(T,1)).top,F]):void 0},L,H,B,F,function(){T&&(n(39,ut=me(L,H,Xt(T))),!0===i?function(){let t=Yt(T,2),e=Xt(t)-Xt(t.firstElementChild)-function(t){let e=0;for(let n=0;n<L.days&&(e=Gt(e,Xt(t.lastElementChild)),t=t.nextElementSibling);++n);return e}(t);n(40,dt=L.bottom>e);let r=!1;for(let t of L.dates){let e=l[t.getTime()];if(e){let t=e.size;dt?e.add(L.event):e.delete(L.event),t!==e.size&&(r=!0)}}r&&ot.set(l)}():n(40,dt=!1))},ut,dt,r,u,h,m,g,$,v,y,w,b,k,x,function(t){I[t?"unshift":"push"]((()=>{T=t,n(3,T)}))}]}let yn=class extends ft{constructor(t){super(),dt(this,t,vn,$n,i,{chunk:34,longChunks:35,inPopup:36,dates:37,reposition:38},null,[-1,-1,-1])}get reposition(){return this.$$.ctx[38]}};function wn(t,e,n){const r=t.slice();return r[20]=e[n],r}function bn(t,e){let n,r,l;return r=new yn({props:{chunk:e[20],inPopup:!0}}),{key:t,first:null,c(){n=C(),at(r.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(r,t,e),l=!0},p(t,n){e=t;const l={};1&n&&(l.chunk=e[20]),r.$set(l)},i(t){l||(rt(r.$$.fragment,t),l=!0)},o(t){lt(r.$$.fragment,t),l=!1},d(t){t&&w(n),ut(r,t)}}}function kn(t){let e,n,r,i,s,a,c,u,d,f,h,p,m,$,b,C,S,M=[],U=new Map,L=ot(t[0]);const H=t=>t[20].event;for(let e=0;e<L.length;e+=1){let n=wn(t,L,e),r=H(n);U.set(r,M[e]=bn(r,n))}return{c(){e=k("div"),n=k("div"),r=k("time"),a=_(),c=k("a"),u=x("×"),h=_(),p=k("div");for(let t=0;t<M.length;t+=1)M[t].c();E(r,"datetime",i=Mt(t[3],10)),E(c,"role","button"),E(c,"tabindex","0"),E(c,"aria-label",d=t[6].close),E(n,"class",f=t[4].dayHead),E(p,"class",m=t[4].events),E(e,"class",$=t[4].popup),E(e,"style",t[2])},m(l,o){y(l,e,o),v(e,n),v(n,r),v(n,a),v(n,c),v(c,u),v(e,h),v(e,p);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(p,null);t[16](e),b=!0,C||(S=[g(s=vt.call(null,r,t[5].format(t[3]))),T(c,"click",D(t[13])),T(c,"keydown",$t(t[13])),g(yt.call(null,e,"pointerdown")),T(e,"pointerdown",D(t[15])),T(e,"pointerdownoutside",t[14])],C=!0)},p(t,l){let[a]=l;(!b||8&a&&i!==(i=Mt(t[3],10)))&&E(r,"datetime",i),s&&o(s.update)&&40&a&&s.update.call(null,t[5].format(t[3])),(!b||64&a&&d!==(d=t[6].close))&&E(c,"aria-label",d),(!b||16&a&&f!==(f=t[4].dayHead))&&E(n,"class",f),1&a&&(L=ot(t[0]),et(),M=st(M,a,H,0,t,L,U,p,it,bn,null,wn),nt()),(!b||16&a&&m!==(m=t[4].events))&&E(p,"class",m),(!b||16&a&&$!==($=t[4].popup))&&E(e,"class",$),(!b||4&a)&&E(e,"style",t[2])},i(t){if(!b){for(let t=0;t<L.length;t+=1)rt(M[t]);b=!0}},o(t){for(let t=0;t<M.length;t+=1)lt(M[t]);b=!1},d(n){n&&w(e);for(let t=0;t<M.length;t+=1)M[t].d();t[16](null),C=!1,l(S)}}}function xn(t,e,n){let r,l,o,i,s,a,u,{buttonText:d,theme:f,_interaction:h,_intlDayPopover:p,_popupDate:g,_popupChunks:$}=R("state");c(t,d,(t=>n(6,a=t))),c(t,f,(t=>n(4,i=t))),c(t,h,(t=>n(17,r=t))),c(t,p,(t=>n(5,s=t))),c(t,g,(t=>n(3,l=t))),c(t,$,(t=>n(0,o=t)));let v="";function y(){u&&(n(2,v=""),Y().then((()=>{o.length?function(){let t,e,r=Yt(u,1),l=Yt(r,3),o=qt(u),i=qt(r),s=qt(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(g,l=null,l)}return t.$$.update=()=>{1&t.$$.dirty&&o&&y()},[o,u,v,l,i,s,a,d,f,h,p,g,$,w,function(t){w(),r.action?.noClick()},function(e){P.call(this,t,e)},function(t){I[t?"unshift":"push"]((()=>{u=t,n(1,u)}))}]}class _n extends ft{constructor(t){super(),dt(this,t,xn,kn,i,{})}}function Cn(t,e,n){const r=t.slice();return r[42]=e[n],r[43]=e,r[44]=n,r}function Tn(t){let e,n,r,l;return n=new yn({props:{chunk:t[2][1]}}),{c(){e=k("div"),at(n.$$.fragment),E(e,"class",r=t[13].events)},m(t,r){y(t,e,r),ct(n,e,null),l=!0},p(t,o){const i={};4&o[0]&&(i.chunk=t[2][1]),n.$set(i),(!l||8192&o[0]&&r!==(r=t[13].events))&&E(e,"class",r)},i(t){l||(rt(n.$$.fragment,t),l=!0)},o(t){lt(n.$$.fragment,t),l=!1},d(t){t&&w(e),ut(n)}}}function Dn(t){let e,n,r,l;return n=new yn({props:{chunk:t[2][0]}}),{c(){e=k("div"),at(n.$$.fragment),E(e,"class",r=t[13].events+" "+t[13].preview)},m(t,r){y(t,e,r),ct(n,e,null),l=!0},p(t,o){const i={};4&o[0]&&(i.chunk=t[2][0]),n.$set(i),(!l||8192&o[0]&&r!==(r=t[13].events+" "+t[13].preview))&&E(e,"class",r)},i(t){l||(rt(n.$$.fragment,t),l=!0)},o(t){lt(n.$$.fragment,t),l=!1},d(t){t&&w(e),ut(n)}}}function En(t,e){let n,r,l,o=e[44];const i=()=>e[36](r,o),s=()=>e[36](null,o);let a={chunk:e[42],longChunks:e[1],dates:e[3]};return r=new yn({props:a}),i(),{key:t,first:null,c(){n=C(),at(r.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(r,t,e),l=!0},p(t,n){o!==(e=t)[44]&&(s(),o=e[44],i());const l={};32&n[0]&&(l.chunk=e[42]),2&n[0]&&(l.longChunks=e[1]),8&n[0]&&(l.dates=e[3]),r.$set(l)},i(t){l||(rt(r.$$.fragment,t),l=!0)},o(t){lt(r.$$.fragment,t),l=!1},d(t){t&&w(n),s(),ut(r,t)}}}function Sn(t){let e,n;return e=new _n({}),{c(){at(e.$$.fragment)},m(t,r){ct(e,t,r),n=!0},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Mn(t){let e,n,r,i;return{c(){e=k("a"),E(e,"role","button"),E(e,"tabindex","0"),E(e,"aria-haspopup","true")},m(l,o){y(l,e,o),r||(i=[T(e,"click",D(t[26])),T(e,"keydown",$t(t[26])),T(e,"pointerdown",D(t[35])),g(n=vt.call(null,e,t[11]))],r=!0)},p(t,e){n&&o(n.update)&&2048&e[0]&&n.update.call(null,t[11])},d(t){t&&w(e),r=!1,l(i)}}}function Un(t){let e,n,r,i,s,a,c,u,d,f,h,p,m,$,b,x,C,D,S=t[2][1]&&Ut(t[2][1].date,t[0]),M=t[2][0]&&Ut(t[2][0].date,t[0]),U=[],L=new Map,H=S&&Tn(t),B=M&&Dn(t),N=ot(t[5]);const A=t=>t[42].event;for(let e=0;e<N.length;e+=1){let n=Cn(t,N,e),r=A(n);L.set(r,U[e]=En(r,n))}let F=t[7]&&Sn(),R=t[6].size&&Mn(t);return{c(){e=k("div"),n=k("time"),a=_(),H&&H.c(),c=_(),B&&B.c(),u=_(),d=k("div");for(let t=0;t<U.length;t+=1)U[t].c();h=_(),F&&F.c(),p=_(),m=k("div"),R&&R.c(),E(n,"class",r=t[13].dayHead),E(n,"datetime",i=Mt(t[0],10)),E(d,"class",f=t[13].events),E(m,"class",$=t[13].dayFoot),E(e,"class",b=t[13].day+" "+t[13].weekdays?.[t[0].getUTCDay()]+(t[8]?" "+t[13].today:"")+(t[9]?" "+t[13].otherMonth:"")+(t[10]?" "+t[13].highlight:"")),E(e,"role","cell")},m(r,l){y(r,e,l),v(e,n),v(e,a),H&&H.m(e,null),v(e,c),B&&B.m(e,null),v(e,u),v(e,d);for(let t=0;t<U.length;t+=1)U[t]&&U[t].m(d,null);v(e,h),F&&F.m(e,null),v(e,p),v(e,m),R&&R.m(m,null),t[37](e),x=!0,C||(D=[g(s=vt.call(null,n,t[15].format(t[0]))),T(e,"pointerleave",(function(){o(t[14].pointer?.leave)&&t[14].pointer?.leave.apply(this,arguments)})),T(e,"pointerdown",(function(){o(t[14].action?.select)&&t[14].action?.select.apply(this,arguments)}))],C=!0)},p(l,a){t=l,(!x||8192&a[0]&&r!==(r=t[13].dayHead))&&E(n,"class",r),(!x||1&a[0]&&i!==(i=Mt(t[0],10)))&&E(n,"datetime",i),s&&o(s.update)&&32769&a[0]&&s.update.call(null,t[15].format(t[0])),5&a[0]&&(S=t[2][1]&&Ut(t[2][1].date,t[0])),S?H?(H.p(t,a),5&a[0]&&rt(H,1)):(H=Tn(t),H.c(),rt(H,1),H.m(e,c)):H&&(et(),lt(H,1,1,(()=>{H=null})),nt()),5&a[0]&&(M=t[2][0]&&Ut(t[2][0].date,t[0])),M?B?(B.p(t,a),5&a[0]&&rt(B,1)):(B=Dn(t),B.c(),rt(B,1),B.m(e,u)):B&&(et(),lt(B,1,1,(()=>{B=null})),nt()),4138&a[0]&&(N=ot(t[5]),et(),U=st(U,a,A,0,t,N,L,d,it,En,null,Cn),nt()),(!x||8192&a[0]&&f!==(f=t[13].events))&&E(d,"class",f),t[7]?F?128&a[0]&&rt(F,1):(F=Sn(),F.c(),rt(F,1),F.m(e,p)):F&&(et(),lt(F,1,1,(()=>{F=null})),nt()),t[6].size?R?R.p(t,a):(R=Mn(t),R.c(),R.m(m,null)):R&&(R.d(1),R=null),(!x||8192&a[0]&&$!==($=t[13].dayFoot))&&E(m,"class",$),(!x||9985&a[0]&&b!==(b=t[13].day+" "+t[13].weekdays?.[t[0].getUTCDay()]+(t[8]?" "+t[13].today:"")+(t[9]?" "+t[13].otherMonth:"")+(t[10]?" "+t[13].highlight:"")))&&E(e,"class",b)},i(t){if(!x){rt(H),rt(B);for(let t=0;t<N.length;t+=1)rt(U[t]);rt(F),x=!0}},o(t){lt(H),lt(B);for(let t=0;t<U.length;t+=1)lt(U[t]);lt(F),x=!1},d(n){n&&w(e),H&&H.d(),B&&B.d();for(let t=0;t<U.length;t+=1)U[t].d();F&&F.d(),R&&R.d(),t[37](null),C=!1,l(D)}}}function Ln(t,e,n){let r,l,i,s,a,u,d,f,h,p,g,$,v,y,w,{date:b}=e,{chunks:k}=e,{longChunks:x}=e,{iChunks:_=[]}=e,{dates:C}=e,{date:T,dayMaxEvents:D,highlightedDates:E,moreLinkContent:S,theme:M,_hiddenEvents:U,_intlDayCell:L,_popupDate:H,_popupChunks:B,_today:N,_interaction:A,_queue:F}=R("state");c(t,T,(t=>n(33,u=t))),c(t,E,(t=>n(32,a=t))),c(t,S,(t=>n(30,i=t))),c(t,M,(t=>n(13,f=t))),c(t,U,(t=>n(31,s=t))),c(t,L,(t=>n(15,p=t))),c(t,H,(t=>n(29,l=t))),c(t,B,(t=>n(38,r=t))),c(t,N,(t=>n(34,d=t))),c(t,A,(t=>n(14,h=t)));let z,j=new Set,O="",G=[];function W(){let t=Tt(xt(b)),e=$.concat(x[b.getTime()]?.chunks||[]);m(B,r=e.map((e=>Pt({},e,ie(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(27,k=t.chunks),"longChunks"in t&&n(1,x=t.longChunks),"iChunks"in t&&n(2,_=t.iChunks),"dates"in t&&n(3,C=t.dates)},t.$$.update=()=>{if(134217825&t.$$.dirty[0]){n(5,$=[]),j.clear(),n(6,j),n(27,k),n(0,b),n(5,$);for(let t of k)Ut(t.date,b)&&$.push(t)}if(65&t.$$.dirty[0]&&m(U,s[b.getTime()]=j,s),1&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(8,v=Ut(b,d)),1&t.$$.dirty[0]|6&t.$$.dirty[1]&&(n(9,y=b.getUTCMonth()!==u.getUTCMonth()),n(10,w=a.some((t=>Ut(t,b))))),1073741888&t.$$.dirty[0]|1&t.$$.dirty[1]&&s&&j.size){let t="+"+j.size+" more";n(11,O=i?o(i)?i({num:j.size,text:t}):i:t)}536870913&t.$$.dirty[0]&&n(7,z=l&&Ut(b,l)),162&t.$$.dirty[0]&&z&&x&&$&&Y().then(W),17&t.$$.dirty[0]&&g&&Jt(g,(()=>({allDay:!0,date:b,resource:void 0,dayEl:g})))},[b,x,_,C,g,$,j,z,v,y,w,O,G,f,h,p,T,E,S,M,U,L,H,B,N,A,function(){m(H,l=b,l)},k,function(){ge(G,$)},l,i,s,a,u,d,function(e){P.call(this,t,e)},function(t,e){I[t?"unshift":"push"]((()=>{G[e]=t,n(12,G)}))},function(t){I[t?"unshift":"push"]((()=>{g=t,n(4,g)}))}]}let Hn=class extends ft{constructor(t){super(),dt(this,t,Ln,Un,i,{date:0,chunks:27,longChunks:1,iChunks:2,dates:3,reposition:28},null,[-1,-1])}get reposition(){return this.$$.ctx[28]}};function Bn(t,e,n){const r=t.slice();return r[21]=e[n],r[22]=e,r[23]=n,r}function Nn(t){let e,n,r=t[23];const l=()=>t[18](e,r),o=()=>t[18](null,r);let i={date:t[21],chunks:t[1],longChunks:t[2],iChunks:t[3],dates:t[0]};return e=new Hn({props:i}),l(),{c(){at(e.$$.fragment)},m(t,r){ct(e,t,r),n=!0},p(t,n){r!==t[23]&&(o(),r=t[23],l());const i={};1&n&&(i.date=t[21]),2&n&&(i.chunks=t[1]),4&n&&(i.longChunks=t[2]),8&n&&(i.iChunks=t[3]),1&n&&(i.dates=t[0]),e.$set(i)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){o(),ut(e,t)}}}function An(t){let e,n,r,l,o,i=ot(t[0]),s=[];for(let e=0;e<i.length;e+=1)s[e]=Nn(Bn(t,i,e));const a=t=>lt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=k("div");for(let t=0;t<s.length;t+=1)s[t].c();E(e,"class",n=t[5].days),E(e,"role","row")},m(n,i){y(n,e,i);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);r=!0,l||(o=T(window,"resize",t[11]),l=!0)},p(t,l){let[o]=l;if(31&o){let n;for(i=ot(t[0]),n=0;n<i.length;n+=1){const r=Bn(t,i,n);s[n]?(s[n].p(r,o),rt(s[n],1)):(s[n]=Nn(r),s[n].c(),rt(s[n],1),s[n].m(e,null))}for(et(),n=i.length;n<s.length;n+=1)a(n);nt()}(!r||32&o&&n!==(n=t[5].days))&&E(e,"class",n)},i(t){if(!r){for(let t=0;t<i.length;t+=1)rt(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)lt(s[t]);r=!1},d(t){t&&w(e),b(s,t),l=!1,o()}}}function Fn(t,e,n){let r,l,o,i,s,{dates:a}=e,{_events:u,_iEvents:d,_queue2:f,_hiddenEvents:h,hiddenDays:p,theme:m}=R("state");c(t,u,(t=>n(17,i=t))),c(t,d,(t=>n(16,o=t))),c(t,h,(t=>n(14,r=t))),c(t,p,(t=>n(15,l=t))),c(t,m,(t=>n(5,s=t)));let g,$,v,y,w=[],b=[],k={};function x(){At((()=>ge(b,a)),k,f)}return t.$$set=t=>{"dates"in t&&n(0,a=t.dates)},t.$$.update=()=>{if(1&t.$$.dirty&&(n(12,v=a[0]),n(13,y=Tt(xt(a[a.length-1])))),176130&t.$$.dirty){n(1,g=[]);for(let t of i)if(!ye(t.display)&&$e(t,v,y)){let e=ie(t,v,y);g.push(e)}n(2,$=pe(g,l)),x()}110592&t.$$.dirty&&n(3,w=o.map((t=>{let e;return t&&$e(t,v,y)?(e=ie(t,v,y),pe([e],l)):e=null,e}))),16384&t.$$.dirty&&r&&Y().then(x)},[a,g,$,w,b,s,u,d,h,p,m,x,v,y,r,l,o,i,function(t,e){I[t?"unshift":"push"]((()=>{b[e]=t,n(4,b)}))}]}let Rn=class extends ft{constructor(t){super(),dt(this,t,Fn,An,i,{dates:0})}};function Pn(t,e,n){const r=t.slice();return r[15]=e[n],r}function zn(t){let e,n;return e=new Rn({props:{dates:t[15]}}),{c(){at(e.$$.fragment)},m(t,r){ct(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.dates=t[15]),e.$set(r)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function In(t){let e,n,r,l,o,i=ot(t[0]),s=[];for(let e=0;e<i.length;e+=1)s[e]=zn(Pn(t,i,e));const a=t=>lt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=k("div"),n=k("div");for(let t=0;t<s.length;t+=1)s[t].c();E(n,"class",r=t[2].content),E(e,"class",l=t[2].body+(!0===t[1]?" "+t[2].uniform:""))},m(r,l){y(r,e,l),v(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=ot(t[0]),e=0;e<i.length;e+=1){const r=Pn(t,i,e);s[e]?(s[e].p(r,u),rt(s[e],1)):(s[e]=zn(r),s[e].c(),rt(s[e],1),s[e].m(n,null))}for(et(),e=i.length;e<s.length;e+=1)a(e);nt()}(!o||4&u&&r!==(r=t[2].content))&&E(n,"class",r),(!o||6&u&&l!==(l=t[2].body+(!0===t[1]?" "+t[2].uniform:"")))&&E(e,"class",l)},i(t){if(!o){for(let t=0;t<i.length;t+=1)rt(s[t]);o=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)lt(s[t]);o=!1},d(n){n&&w(e),b(s,n),t[13](null)}}}function jn(t,e,n){let r,l,o,i,s,a,u,d,{_bodyEl:f,_viewDates:h,_hiddenEvents:p,dayMaxEvents:g,hiddenDays:$,theme:v}=R("state");return c(t,f,(t=>n(3,a=t))),c(t,h,(t=>n(11,r=t))),c(t,p,(t=>n(14,o=t))),c(t,g,(t=>n(1,l=t))),c(t,$,(t=>n(12,i=t))),c(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,a,f,h,p,g,$,v,d,r,i,function(t){I[t?"unshift":"push"]((()=>{a=t,f.set(a)}))}]}let On=class extends ft{constructor(t){super(),dt(this,t,jn,In,i,{})}};function Gn(e){let n,r,l,o;return n=new gn({}),l=new On({}),{c(){at(n.$$.fragment),r=_(),at(l.$$.fragment)},m(t,e){ct(n,t,e),y(t,r,e),ct(l,t,e),o=!0},p:t,i(t){o||(rt(n.$$.fragment,t),rt(l.$$.fragment,t),o=!0)},o(t){lt(n.$$.fragment,t),lt(l.$$.fragment,t),o=!1},d(t){t&&w(r),ut(n,t),ut(l,t)}}}let Wn=class extends ft{constructor(t){super(),dt(this,t,null,Gn,i,{})}};var qn={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:xe,component:Wn,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:Te("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(t){t._days=function(t){return gt([t.date,t.firstDay,t.hiddenDays],(t=>{let[e,n,r]=t,l=[],o=xt(e),i=7;for(;o.getUTCDay()!==n&&i;)Dt(o),--i;for(let t=0;t<7;++t)r.includes(o.getUTCDay())||l.push(xt(o)),Tt(o);return l}))}(t),t._intlDayCell=De(t.locale,t.dayCellFormat),t._intlDayPopover=De(t.locale,t.dayPopoverFormat),t._hiddenEvents=mt({}),t._popupDate=mt(null),t._popupChunks=mt([])}};function Yn(e){let n,r,i,s,a,c,u,d,f,h,p;return{c(){n=k("article"),r=k("div"),s=_(),a=k("div"),E(r,"class",i=e[0].eventTag),E(r,"style",e[3]),E(a,"class",c=e[0].eventBody),E(n,"class",e[2]),E(n,"role",d=e[5]?"button":void 0),E(n,"tabindex",f=e[5]?0:void 0)},m(t,l){y(t,n,l),v(n,r),v(n,s),v(n,a),e[40](n),h||(p=[g(u=vt.call(null,a,e[4])),T(n,"click",(function(){o(e[5])&&e[5].apply(this,arguments)})),T(n,"keydown",(function(){o(e[5]&&$t(e[5]))&&(e[5]&&$t(e[5])).apply(this,arguments)})),T(n,"mouseenter",(function(){o(e[26](e[6]))&&e[26](e[6]).apply(this,arguments)})),T(n,"mouseleave",(function(){o(e[26](e[7]))&&e[26](e[7]).apply(this,arguments)})),T(n,"pointerdown",(function(){o(e[8].action?.noAction)&&e[8].action?.noAction.apply(this,arguments)}))],h=!0)},p(t,l){e=t,1&l[0]&&i!==(i=e[0].eventTag)&&E(r,"class",i),8&l[0]&&E(r,"style",e[3]),1&l[0]&&c!==(c=e[0].eventBody)&&E(a,"class",c),u&&o(u.update)&&16&l[0]&&u.update.call(null,e[4]),4&l[0]&&E(n,"class",e[2]),32&l[0]&&d!==(d=e[5]?"button":void 0)&&E(n,"role",d),32&l[0]&&f!==(f=e[5]?0:void 0)&&E(n,"tabindex",f)},i:t,o:t,d(t){t&&w(n),e[40](null),h=!1,l(p)}}}function Xn(t,e,n){let r,l,i,s,a,u,d,f,h,p,m,g,$,v,y,w,b,k,x,_,C,T,D,E,{chunk:S}=e,{displayEventEnd:M,eventAllUpdated:U,eventBackgroundColor:L,eventTextColor:H,eventColor:B,eventContent:F,eventClassNames:P,eventClick:z,eventDidMount:j,eventMouseEnter:O,eventMouseLeave:G,theme:W,_view:q,_intlEventTime:Y,_resBgColor:X,_resTxtColor:V,_interaction:J,_tasks:K}=R("state");function Q(t){return o(t)?e=>t({event:de(x),el:k,jsEvent:e,view:te(l)}):void 0}return c(t,M,(t=>n(33,f=t))),c(t,U,(t=>n(42,i=t))),c(t,L,(t=>n(38,$=t))),c(t,H,(t=>n(35,p=t))),c(t,B,(t=>n(37,g=t))),c(t,F,(t=>n(32,d=t))),c(t,P,(t=>n(34,h=t))),c(t,z,(t=>n(29,r=t))),c(t,j,(t=>n(43,s=t))),c(t,O,(t=>n(6,y=t))),c(t,G,(t=>n(7,w=t))),c(t,W,(t=>n(0,u=t))),c(t,q,(t=>n(30,l=t))),c(t,Y,(t=>n(31,a=t))),c(t,X,(t=>n(39,v=t))),c(t,V,(t=>n(36,m=t))),c(t,J,(t=>n(8,b=t))),N((()=>{o(s)&&s({event:de(x),timeText:D,el:k,view:te(l)})})),A((()=>{o(i)&&Rt((()=>i({view:te(l)})),"eau",K)})),t.$$set=t=>{"chunk"in t&&n(27,S=t.chunk)},t.$$.update=()=>{if(134217728&t.$$.dirty[0]&&n(28,x=S.event),1342177289&t.$$.dirty[0]|504&t.$$.dirty[1]){n(3,C="");let t=x.backgroundColor||v(x)||$||g;t&&n(3,C=`background-color:${t};`);let e=x.textColor||m(x)||p;e&&n(3,C+=`color:${e};`),n(2,_=[u.event,...ue(h,x,l)].join(" "))}1207959553&t.$$.dirty[0]|7&t.$$.dirty[1]&&n(4,[D,T]=ae(S,f,d,u,a,l),T),536870912&t.$$.dirty[0]&&n(5,E=Q(r))},[u,k,_,C,T,E,y,w,b,M,U,L,H,B,F,P,z,j,O,G,W,q,Y,X,V,J,Q,S,x,r,l,a,d,f,h,p,m,g,$,v,function(t){I[t?"unshift":"push"]((()=>{k=t,n(1,k)}))}]}let Vn=class extends ft{constructor(t){super(),dt(this,t,Xn,Yn,i,{chunk:27},null,[-1,-1])}};function Jn(t,e,n){const r=t.slice();return r[21]=e[n],r}function Kn(t){let e,n,r,i,s,a,c,u,d,f,h,p,m,$,b=[],x=new Map,C=ot(t[2]);const D=t=>t[21].event;for(let e=0;e<C.length;e+=1){let n=Jn(t,C,e),r=D(n);x.set(r,b[e]=Qn(r,n))}return{c(){e=k("div"),n=k("h4"),r=k("time"),s=_(),a=k("time"),f=_();for(let t=0;t<b.length;t+=1)b[t].c();E(r,"datetime",t[5]),E(a,"class",c=t[6].daySide),E(a,"datetime",t[5]),E(n,"class",d=t[6].dayHead),E(e,"class",h=t[6].day+" "+t[6].weekdays?.[t[0].getUTCDay()]+(t[3]?" "+t[6].today:"")+(t[4]?" "+t[6].highlight:"")),E(e,"role","listitem")},m(l,c){y(l,e,c),v(e,n),v(n,r),v(n,s),v(n,a),v(e,f);for(let t=0;t<b.length;t+=1)b[t]&&b[t].m(e,null);t[20](e),p=!0,m||($=[g(i=vt.call(null,r,t[8].format(t[0]))),g(u=vt.call(null,a,t[9].format(t[0]))),T(e,"pointerdown",(function(){o(t[7].action?.select)&&t[7].action?.select.apply(this,arguments)}))],m=!0)},p(l,s){t=l,(!p||32&s)&&E(r,"datetime",t[5]),i&&o(i.update)&&257&s&&i.update.call(null,t[8].format(t[0])),(!p||64&s&&c!==(c=t[6].daySide))&&E(a,"class",c),(!p||32&s)&&E(a,"datetime",t[5]),u&&o(u.update)&&513&s&&u.update.call(null,t[9].format(t[0])),(!p||64&s&&d!==(d=t[6].dayHead))&&E(n,"class",d),4&s&&(C=ot(t[2]),et(),b=st(b,s,D,0,t,C,x,e,it,Qn,null,Jn),nt()),(!p||89&s&&h!==(h=t[6].day+" "+t[6].weekdays?.[t[0].getUTCDay()]+(t[3]?" "+t[6].today:"")+(t[4]?" "+t[6].highlight:"")))&&E(e,"class",h)},i(t){if(!p){for(let t=0;t<C.length;t+=1)rt(b[t]);p=!0}},o(t){for(let t=0;t<b.length;t+=1)lt(b[t]);p=!1},d(n){n&&w(e);for(let t=0;t<b.length;t+=1)b[t].d();t[20](null),m=!1,l($)}}}function Qn(t,e){let n,r,l;return r=new Vn({props:{chunk:e[21]}}),{key:t,first:null,c(){n=C(),at(r.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(r,t,e),l=!0},p(t,n){e=t;const l={};4&n&&(l.chunk=e[21]),r.$set(l)},i(t){l||(rt(r.$$.fragment,t),l=!0)},o(t){lt(r.$$.fragment,t),l=!1},d(t){t&&w(n),ut(r,t)}}}function Zn(t){let e,n,r=t[2].length&&Kn(t);return{c(){r&&r.c(),e=C()},m(t,l){r&&r.m(t,l),y(t,e,l),n=!0},p(t,n){let[l]=n;t[2].length?r?(r.p(t,l),4&l&&rt(r,1)):(r=Kn(t),r.c(),rt(r,1),r.m(e.parentNode,e)):r&&(et(),lt(r,1,1,(()=>{r=null})),nt())},i(t){n||(rt(r),n=!0)},o(t){lt(r),n=!1},d(t){t&&w(e),r&&r.d(t)}}}function tr(t,e,n){let r,l,o,i,s,a,u,d,f,h,p,m,{date:g}=e,{_events:$,_interaction:v,_intlListDay:y,_intlListDaySide:w,_today:b,highlightedDates:k,theme:x}=R("state");return c(t,$,(t=>n(19,o=t))),c(t,v,(t=>n(7,s=t))),c(t,y,(t=>n(8,a=t))),c(t,w,(t=>n(9,u=t))),c(t,b,(t=>n(18,l=t))),c(t,k,(t=>n(17,r=t))),c(t,x,(t=>n(6,i=t))),t.$$set=t=>{"date"in t&&n(0,g=t.date)},t.$$.update=()=>{if(524293&t.$$.dirty){n(2,f=[]);let t=g,e=Tt(xt(g));for(let n of o)if(!ye(n.display)&&$e(n,t,e)){let r=ie(n,t,e);f.push(r)}se(f)}262145&t.$$.dirty&&n(3,h=Ut(g,l)),131073&t.$$.dirty&&n(4,p=r.some((t=>Ut(t,g)))),1&t.$$.dirty&&n(5,m=Mt(g,10)),3&t.$$.dirty&&d&&Jt(d,(()=>({allDay:!0,date:g,resource:void 0,dayEl:d})))},[g,d,f,h,p,m,i,s,a,u,$,v,y,w,b,k,x,r,l,o,function(t){I[t?"unshift":"push"]((()=>{d=t,n(1,d)}))}]}let er=class extends ft{constructor(t){super(),dt(this,t,tr,Zn,i,{date:0})}};function nr(t,e,n){const r=t.slice();return r[18]=e[n],r}function rr(t){let e,n,r=ot(t[1]),l=[];for(let e=0;e<r.length;e+=1)l[e]=or(nr(t,r,e));const o=t=>lt(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);y(t,e,r),n=!0},p(t,n){if(2&n){let i;for(r=ot(t[1]),i=0;i<r.length;i+=1){const o=nr(t,r,i);l[i]?(l[i].p(o,n),rt(l[i],1)):(l[i]=or(o),l[i].c(),rt(l[i],1),l[i].m(e.parentNode,e))}for(et(),i=r.length;i<l.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)rt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)lt(l[t]);n=!1},d(t){t&&w(e),b(l,t)}}}function lr(e){let n,r,i,s,a;return{c(){n=k("div"),E(n,"class",r=e[3].noEvents)},m(t,r){y(t,n,r),s||(a=[g(i=vt.call(null,n,e[0])),T(n,"click",e[12])],s=!0)},p(t,e){8&e&&r!==(r=t[3].noEvents)&&E(n,"class",r),i&&o(i.update)&&1&e&&i.update.call(null,t[0])},i:t,o:t,d(t){t&&w(n),s=!1,l(a)}}}function or(t){let e,n;return e=new er({props:{date:t[18]}}),{c(){at(e.$$.fragment)},m(t,r){ct(e,t,r),n=!0},p(t,n){const r={};2&n&&(r.date=t[18]),e.$set(r)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function ir(t){let e,n,r,l,o,i,s;const a=[lr,rr],c=[];function u(t,e){return t[2]?0:1}return r=u(t),l=c[r]=a[r](t),{c(){e=k("div"),n=k("div"),l.c(),E(n,"class",o=t[3].content),E(e,"class",i=t[3].body)},m(l,o){y(l,e,o),v(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):(et(),lt(c[h],1,1,(()=>{c[h]=null})),nt(),l=c[r],l?l.p(t,f):(l=c[r]=a[r](t),l.c()),rt(l,1),l.m(n,null)),(!s||8&f&&o!==(o=t[3].content))&&E(n,"class",o),(!s||8&f&&i!==(i=t[3].body))&&E(e,"class",i)},i(t){s||(rt(l),s=!0)},o(t){lt(l),s=!1},d(n){n&&w(e),c[r].d(),t[15](null)}}}function sr(t,e,n){let r,l,i,s,a,u,d,f,h,{_bodyEl:p,_events:m,_view:g,_viewDates:$,noEventsClick:v,noEventsContent:y,theme:w}=R("state");return c(t,p,(t=>n(4,d=t))),c(t,m,(t=>n(14,s=t))),c(t,g,(t=>n(16,r=t))),c(t,$,(t=>n(1,a=t))),c(t,v,(t=>n(17,l=t))),c(t,y,(t=>n(13,i=t))),c(t,w,(t=>n(3,u=t))),t.$$.update=()=>{if(16386&t.$$.dirty&&(n(2,f=!0),a.length)){let t=a[0],e=Tt(xt(a[a.length-1]));for(let r of s)if(!ye(r.display)&&r.start<e&&r.end>t){n(2,f=!1);break}}8193&t.$$.dirty&&(n(0,h=o(i)?i():i),"string"==typeof h&&n(0,h={html:h}))},[h,a,f,u,d,p,m,g,$,v,y,w,function(t){o(l)&&l({jsEvent:t,view:te(r)})},i,s,function(t){I[t?"unshift":"push"]((()=>{d=t,p.set(d)}))}]}let ar=class extends ft{constructor(t){super(),dt(this,t,sr,ir,i,{})}};function cr(e){let n,r;return n=new ar({}),{c(){at(n.$$.fragment)},m(t,e){ct(n,t,e),r=!0},p:t,i(t){r||(rt(n.$$.fragment,t),r=!0)},o(t){lt(n.$$.fragment,t),r=!1},d(t){ut(n,t)}}}let ur=class extends ft{constructor(t){super(),dt(this,t,null,cr,i,{})}};var dr={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:be,component:ur,duration:{days:1},theme:Te("ec-list ec-day-view")},t.views.listWeek={buttonText:ke,component:ur,duration:{weeks:1},theme:Te("ec-list ec-week-view")},t.views.listMonth={buttonText:xe,component:ur,duration:{months:1},theme:Te("ec-list ec-month-view")},t.views.listYear={buttonText:_e,component:ur,duration:{years:1},theme:Te("ec-list ec-year-view")}},createStores(t){t._intlListDay=De(t.locale,t.listDayFormat),t._intlListDaySide=De(t.locale,t.listDaySideFormat)}};const fr=t=>({}),hr=t=>({});function pr(t,e,n){const r=t.slice();return r[9]=e[n],r}function mr(t){let e,n,r,l,i,s;return{c(){e=k("time"),E(e,"class",n=t[1].time),E(e,"datetime",r=t[9][0])},m(n,r){y(n,e,r),i||(s=g(l=vt.call(null,e,t[9][2]?t[9][1]:"")),i=!0)},p(i,s){t=i,2&s&&n!==(n=t[1].time)&&E(e,"class",n),4&s&&r!==(r=t[9][0])&&E(e,"datetime",r),l&&o(l.update)&&4&s&&l.update.call(null,t[9][2]?t[9][1]:"")},d(t){t&&w(e),i=!1,s()}}}function gr(t){let e,n,r,l,i,s,a,c,d,m,$,x,C,T,D,S=ot(t[2]),M=[];for(let e=0;e<S.length;e+=1)M[e]=mr(pr(t,S,e));const U=t[8].lines,L=u(U,t,t[7],hr),H=t[8].default,B=u(H,t,t[7],null);return{c(){e=k("div"),n=k("div"),i=_();for(let t=0;t<M.length;t+=1)M[t].c();a=_(),c=k("div"),d=k("div"),L&&L.c(),$=_(),B&&B.c(),E(n,"class",r=t[1].sidebarTitle),E(e,"class",s=t[1].sidebar),E(d,"class",m=t[1].lines),E(c,"class",x=t[1].days),E(c,"role","row")},m(r,o){y(r,e,o),v(e,n),v(e,i);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(e,null);y(r,a,o),y(r,c,o),v(c,d),L&&L.m(d,null),v(c,$),B&&B.m(c,null),C=!0,T||(D=g(l=vt.call(null,n,t[0])),T=!0)},p(t,i){let[a]=i;if((!C||2&a&&r!==(r=t[1].sidebarTitle))&&E(n,"class",r),l&&o(l.update)&&1&a&&l.update.call(null,t[0]),6&a){let n;for(S=ot(t[2]),n=0;n<S.length;n+=1){const r=pr(t,S,n);M[n]?M[n].p(r,a):(M[n]=mr(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&&s!==(s=t[1].sidebar))&&E(e,"class",s),L&&L.p&&(!C||128&a)&&h(L,U,t,t[7],C?f(U,t[7],a,fr):p(t[7]),hr),(!C||2&a&&m!==(m=t[1].lines))&&E(d,"class",m),B&&B.p&&(!C||128&a)&&h(B,H,t,t[7],C?f(H,t[7],a,null):p(t[7]),null),(!C||2&a&&x!==(x=t[1].days))&&E(c,"class",x)},i(t){C||(rt(L,t),rt(B,t),C=!0)},o(t){lt(L,t),lt(B,t),C=!1},d(t){t&&(w(e),w(a),w(c)),b(M,t),L&&L.d(t),B&&B.d(t),T=!1,D()}}}function $r(t,e,n){let r,l,i,s,{$$slots:a={},$$scope:u}=e,{allDayContent:d,theme:f,_times:h}=R("state");return c(t,d,(t=>n(6,r=t))),c(t,f,(t=>n(1,l=t))),c(t,h,(t=>n(2,i=t))),t.$$set=t=>{"$$scope"in t&&n(7,u=t.$$scope)},t.$$.update=()=>{64&t.$$.dirty&&n(0,s=function(t){let e,n="all-day";return t?(e=o(t)?t({text:n}):t,"string"==typeof e&&(e={html:e})):e={html:n},e}(r))},[s,l,i,d,f,h,r,u,a]}class vr extends ft{constructor(t){super(),dt(this,t,$r,gr,i,{})}}function yr(t,e,n){const r=t.slice();return r[23]=e[n],r}function wr(t){let e;const n=t[16].default,r=u(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)&&h(r,n,t,t[18],e?f(n,t[18],l,null):p(t[18]),null)},i(t){e||(rt(r,t),e=!0)},o(t){lt(r,t),e=!1},d(t){r&&r.d(t)}}}function br(t){let e,n;return{c(){e=k("div"),E(e,"class",n=t[3].line)},m(t,n){y(t,e,n)},p(t,r){8&r&&n!==(n=t[3].line)&&E(e,"class",n)},d(t){t&&w(e)}}}function kr(t){let e,n=ot(t[2]),r=[];for(let e=0;e<n.length;e+=1)r[e]=br(yr(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);y(t,e,n)},p(t,l){if(12&l){let o;for(n=ot(t[2]),o=0;o<n.length;o+=1){const i=yr(t,n,o);r[o]?r[o].p(i,l):(r[o]=br(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&&w(e),b(r,t)}}}function xr(t){let e,n,r,l,o,i;return r=new vr({props:{$$slots:{lines:[kr],default:[wr]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),at(r.$$.fragment),E(n,"class",l=t[3].content),E(e,"class",o=t[3].body+(t[1]?" "+t[3].compact:""))},m(l,o){y(l,e,o),v(e,n),ct(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))&&E(n,"class",l),(!i||10&a&&o!==(o=t[3].body+(t[1]?" "+t[3].compact:"")))&&E(e,"class",o)},i(t){i||(rt(r.$$.fragment,t),i=!0)},o(t){lt(r.$$.fragment,t),i=!1},d(n){n&&w(e),ut(r),t[17](null)}}}function _r(t,e,n){let r,l,o,i,s,a,u,d,f,h,{$$slots:p={},$$scope:g}=e,{_bodyEl:$,_viewDates:v,_slotTimeLimits:y,_times:w,scrollTime:b,slotDuration:k,slotHeight:x,theme:_}=R("state");c(t,$,(t=>n(21,u=t))),c(t,v,(t=>n(14,s=t))),c(t,y,(t=>n(20,o=t))),c(t,w,(t=>n(15,a=t))),c(t,b,(t=>n(13,i=t))),c(t,k,(t=>n(12,l=t))),c(t,x,(t=>n(19,r=t))),c(t,_,(t=>n(3,d=t)));let C=[];return t.$$set=t=>{"$$scope"in t&&n(18,g=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty&&m($,u=f,u),36864&t.$$.dirty&&(n(1,h=l.seconds>=3600),n(2,C.length=a.length,C)),24577&t.$$.dirty&&f&&n(0,f.scrollTop=((i.seconds-o.min.seconds)/l.seconds-.5)*r,f)},[f,h,C,d,$,v,y,w,b,k,x,_,l,i,s,a,p,function(t){I[t?"unshift":"push"]((()=>{f=t,n(0,f)}))},g]}let Cr=class extends ft{constructor(t){super(),dt(this,t,_r,xr,i,{})}};function Tr(t){let e,n,r,i,s,a,c,u,d,f,h;var p=t[10].resizer;function m(t,e){return{props:{event:t[0]}}}return p&&(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[34](t[10],"y"))&&t[34](t[10],"y").apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),a&&at(a.$$.fragment),E(n,"class",r=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",c=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(r,l){y(r,e,l),v(e,n),v(e,s),a&&ct(a,e,null),t[53](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){o(t[7])&&t[7].apply(this,arguments)})),T(e,"keydown",(function(){o(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){o(t[33](t[8],t[1]))&&t[33](t[8],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){o(t[33](t[9],t[1]))&&t[33](t[9],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){o(!ye(t[1])&&!ve(t[1])&&t[34](t[10]))&&(!ye(t[1])&&!ve(t[1])&&t[34](t[10])).apply(this,arguments)}))],f=!0)},p(l,s){if(t=l,(!d||4&s[0]&&r!==(r=t[2].eventBody))&&E(n,"class",r),i&&o(i.update)&&64&s[0]&&i.update.call(null,t[6]),1024&s[0]&&p!==(p=t[10].resizer)){if(a){et();const t=a;lt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[34](t[10],"y"))&&t[34](t[10],"y").apply(this,arguments)})),at(a.$$.fragment),rt(a.$$.fragment,1),ct(a,e,null)):a=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),a.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&c!==(c=t[7]?"button":void 0))&&E(e,"role",c),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(a&&rt(a.$$.fragment,t),d=!0)},o(t){a&<(a.$$.fragment,t),d=!1},d(n){n&&w(e),a&&ut(a),t[53](null),f=!1,l(h)}}}function Dr(t,e,n){let r,l,i,s,a,u,d,f,h,p,m,g,$,v,y,w,b,k,x,_,C,T,D,E,S,M,U,L,H,B,{date:F}=e,{chunk:P}=e,{displayEventEnd:z,eventAllUpdated:j,eventBackgroundColor:O,eventTextColor:G,eventColor:W,eventContent:q,eventClick:Y,eventDidMount:X,eventClassNames:V,eventMouseEnter:J,eventMouseLeave:K,slotEventOverlap:Q,slotDuration:Z,slotHeight:tt,theme:et,_view:nt,_intlEventTime:rt,_interaction:lt,_iClasses:ot,_resBgColor:it,_resTxtColor:st,_slotTimeLimits:at,_tasks:ct}=R("state");function ut(t,e){return!ve(e)&&o(t)?e=>t({event:de(E),el:D,jsEvent:e,view:te(l)}):void 0}return c(t,z,(t=>n(41,f=t))),c(t,j,(t=>n(55,i=t))),c(t,O,(t=>n(48,y=t))),c(t,G,(t=>n(45,g=t))),c(t,W,(t=>n(47,v=t))),c(t,q,(t=>n(40,d=t))),c(t,Y,(t=>n(37,r=t))),c(t,X,(t=>n(56,s=t))),c(t,V,(t=>n(42,h=t))),c(t,J,(t=>n(8,_=t))),c(t,K,(t=>n(9,C=t))),c(t,Q,(t=>n(44,m=t))),c(t,Z,(t=>n(52,x=t))),c(t,tt,(t=>n(50,b=t))),c(t,et,(t=>n(2,u=t))),c(t,nt,(t=>n(38,l=t))),c(t,rt,(t=>n(39,a=t))),c(t,lt,(t=>n(10,T=t))),c(t,ot,(t=>n(43,p=t))),c(t,it,(t=>n(49,w=t))),c(t,st,(t=>n(46,$=t))),c(t,at,(t=>n(51,k=t))),N((()=>{o(s)&&s({event:de(E),timeText:H,el:D,view:te(l)})})),A((()=>{o(i)&&!ve(S)&&Rt((()=>i({view:te(l)})),"eau",ct)})),t.$$set=t=>{"date"in t&&n(35,F=t.date),"chunk"in t&&n(36,P=t.chunk)},t.$$.update=()=>{if(32&t.$$.dirty[1]&&n(0,E=P.event),39&t.$$.dirty[0]|4192432&t.$$.dirty[1]){n(1,S=E.display);let t=x.seconds,e=k.min.seconds,r=(P.start-F)/1e3,o=(P.end-F)/1e3,i=(r-e)/t*b,s=(o-r)/t*b,a=(k.max.seconds-r)/t*b,c=E.backgroundColor||w(E)||y||v,d=E.textColor||$(E)||g;n(5,U=`top:${i}px;min-height:${s}px;height:${s}px;max-height:${a}px;`),c&&n(5,U+=`background-color:${c};`),d&&n(5,U+=`color:${d};`),(!ye(S)&&!ve(S)||we(S))&&n(5,U+=`z-index:${P.column+1};left:${100/P.group.columns.length*P.column}%;width:${100/P.group.columns.length*(m?.5*(1+P.group.columns.length-P.column):1)}%;`),n(4,M=[ye(S)?u.bgEvent:u.event,...p([],E),...ue(h,E,l)].join(" "))}4&t.$$.dirty[0]|1952&t.$$.dirty[1]&&n(6,[H,L]=ae(P,f,d,u,a,l),L),2&t.$$.dirty[0]|64&t.$$.dirty[1]&&n(7,B=!ye(S)&&ut(r,S))},[E,S,u,D,M,U,L,B,_,C,T,z,j,O,G,W,q,Y,X,V,J,K,Q,Z,tt,et,nt,rt,lt,ot,it,st,at,ut,function(t,e){return t.action?n=>t.action.drag(E,n,e):void 0},F,P,r,l,a,d,f,h,p,m,g,$,v,y,w,b,k,x,function(t){I[t?"unshift":"push"]((()=>{D=t,n(3,D)}))}]}let Er=class extends ft{constructor(t){super(),dt(this,t,Dr,Tr,i,{date:35,chunk:36},null,[-1,-1])}};function Sr(e){let n,r;return{c(){n=k("div"),E(n,"class",r=e[1].nowIndicator),M(n,"top",e[0]+"px")},m(t,e){y(t,n,e)},p(t,e){let[l]=e;2&l&&r!==(r=t[1].nowIndicator)&&E(n,"class",r),1&l&&M(n,"top",t[0]+"px")},i:t,o:t,d(t){t&&w(n)}}}function Mr(t,e,n){let r,l,o,i,s,a,u,{slotDuration:d,slotHeight:f,theme:h,_now:p,_today:m,_slotTimeLimits:g}=R("state");c(t,d,(t=>n(11,o=t))),c(t,f,(t=>n(9,r=t))),c(t,h,(t=>n(1,a=t))),c(t,p,(t=>n(13,s=t))),c(t,m,(t=>n(12,i=t))),c(t,g,(t=>n(10,l=t)));let $=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,$=(u-e)/t*r)}},[$,a,d,f,h,p,m,g,u,r,l,o,i,s]}class Ur extends ft{constructor(t){super(),dt(this,t,Mr,Sr,i,{})}}function Lr(t,e,n){const r=t.slice();return r[32]=e[n],r}function Hr(t,e,n){const r=t.slice();return r[32]=e[n],r}function Br(t,e){let n,r,l;return r=new Er({props:{date:e[0],chunk:e[32]}}),{key:t,first:null,c(){n=C(),at(r.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(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[32]),r.$set(l)},i(t){l||(rt(r.$$.fragment,t),l=!0)},o(t){lt(r.$$.fragment,t),l=!1},d(t){t&&w(n),ut(r,t)}}}function Nr(t){let e,n;return e=new Er({props:{date:t[0],chunk:t[4][1]}}),{c(){at(e.$$.fragment)},m(t,r){ct(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||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Ar(t,e){let n,r,l;return r=new Er({props:{date:e[0],chunk:e[32]}}),{key:t,first:null,c(){n=C(),at(r.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(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[32]),r.$set(l)},i(t){l||(rt(r.$$.fragment,t),l=!0)},o(t){lt(r.$$.fragment,t),l=!1},d(t){t&&w(n),ut(r,t)}}}function Fr(t){let e,n;return e=new Er({props:{date:t[0],chunk:t[4][0]}}),{c(){at(e.$$.fragment)},m(t,r){ct(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||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Rr(t){let e,n;return e=new Ur({}),{c(){at(e.$$.fragment)},m(t,r){ct(e,t,r),n=!0},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Pr(t){let e,n,r,i,s,a,c,u,d,f,h,p,m,g,$,b=[],x=new Map,C=[],D=new Map,S=ot(t[3]);const M=t=>t[32].event;for(let e=0;e<S.length;e+=1){let n=Hr(t,S,e),r=M(n);x.set(r,b[e]=Br(r,n))}let U=t[4][1]&&Nr(t),L=ot(t[2]);const H=t=>t[32].event;for(let e=0;e<L.length;e+=1){let n=Lr(t,L,e),r=H(n);D.set(r,C[e]=Ar(r,n))}let B=t[4][0]&&!t[4][0].event.allDay&&Fr(t),N=t[9]&&t[5]&&Rr();return{c(){e=k("div"),n=k("div");for(let t=0;t<b.length;t+=1)b[t].c();i=_(),s=k("div"),U&&U.c(),a=_();for(let t=0;t<C.length;t+=1)C[t].c();c=_(),B&&B.c(),d=_(),f=k("div"),N&&N.c(),E(n,"class",r=t[7].bgEvents),E(s,"class",u=t[7].events),E(f,"class",h=t[7].extra),E(e,"class",p=t[7].day+" "+t[7].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[7].today:"")+(t[6]?" "+t[7].highlight:"")),E(e,"role","cell")},m(r,l){y(r,e,l),v(e,n);for(let t=0;t<b.length;t+=1)b[t]&&b[t].m(n,null);v(e,i),v(e,s),U&&U.m(s,null),v(s,a);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(s,null);v(s,c),B&&B.m(s,null),v(e,d),v(e,f),N&&N.m(f,null),t[28](e),m=!0,g||($=[T(e,"pointerleave",(function(){o(t[8].pointer?.leave)&&t[8].pointer?.leave.apply(this,arguments)})),T(e,"pointerdown",(function(){o(t[8].action?.select)&&t[8].action?.select.apply(this,arguments)}))],g=!0)},p(l,o){t=l,9&o[0]&&(S=ot(t[3]),et(),b=st(b,o,M,0,t,S,x,n,it,Br,null,Hr),nt()),(!m||128&o[0]&&r!==(r=t[7].bgEvents))&&E(n,"class",r),t[4][1]?U?(U.p(t,o),16&o[0]&&rt(U,1)):(U=Nr(t),U.c(),rt(U,1),U.m(s,a)):U&&(et(),lt(U,1,1,(()=>{U=null})),nt()),5&o[0]&&(L=ot(t[2]),et(),C=st(C,o,H,0,t,L,D,s,it,Ar,c,Lr),nt()),t[4][0]&&!t[4][0].event.allDay?B?(B.p(t,o),16&o[0]&&rt(B,1)):(B=Fr(t),B.c(),rt(B,1),B.m(s,null)):B&&(et(),lt(B,1,1,(()=>{B=null})),nt()),(!m||128&o[0]&&u!==(u=t[7].events))&&E(s,"class",u),t[9]&&t[5]?N?544&o[0]&&rt(N,1):(N=Rr(),N.c(),rt(N,1),N.m(f,null)):N&&(et(),lt(N,1,1,(()=>{N=null})),nt()),(!m||128&o[0]&&h!==(h=t[7].extra))&&E(f,"class",h),(!m||225&o[0]&&p!==(p=t[7].day+" "+t[7].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[7].today:"")+(t[6]?" "+t[7].highlight:"")))&&E(e,"class",p)},i(t){if(!m){for(let t=0;t<S.length;t+=1)rt(b[t]);rt(U);for(let t=0;t<L.length;t+=1)rt(C[t]);rt(B),rt(N),m=!0}},o(t){for(let t=0;t<b.length;t+=1)lt(b[t]);lt(U);for(let t=0;t<C.length;t+=1)lt(C[t]);lt(B),lt(N),m=!1},d(n){n&&w(e);for(let t=0;t<b.length;t+=1)b[t].d();U&&U.d();for(let t=0;t<C.length;t+=1)C[t].d();B&&B.d(),N&&N.d(),t[28](null),g=!1,l($)}}}function zr(t,e,n){let r,l,o,i,s,a,u,d,f,h,p,{date:m}=e,{resource:g}=e,{_events:$,_iEvents:v,highlightedDates:y,nowIndicator:w,slotDuration:b,slotHeight:k,theme:x,_interaction:_,_today:C,_slotTimeLimits:T}=R("state");c(t,$,(t=>n(27,u=t))),c(t,v,(t=>n(26,a=t))),c(t,y,(t=>n(24,i=t))),c(t,w,(t=>n(9,h=t))),c(t,b,(t=>n(30,l=t))),c(t,k,(t=>n(29,r=t))),c(t,x,(t=>n(7,d=t))),c(t,_,(t=>n(8,f=t))),c(t,C,(t=>n(25,s=t))),c(t,T,(t=>n(23,o=t)));let D,E,S,M,U,L,H=[];function B(t,e){return e-=qt(p).top,{allDay:!1,date:_t(_t(xt(m),o.min),l,It(e/r)),resource:g,dayEl:p}}return t.$$set=t=>{"date"in t&&n(0,m=t.date),"resource"in t&&n(20,g=t.resource)},t.$$.update=()=>{if(8388609&t.$$.dirty[0]&&(n(21,U=_t(xt(m),o.min)),n(22,L=_t(xt(m),o.max))),141557772&t.$$.dirty[0]){n(2,D=[]),n(3,E=[]);for(let t of u)if(!t.allDay&&$e(t,U,L,g)){let e=ie(t,U,L);if("background"===t.display)E.push(e);else D.push(e)}!function(t){if(!t.length)return;se(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][e.columns[t].length-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}}(D)}74448896&t.$$.dirty[0]&&n(4,H=a.map((t=>t&&$e(t,U,L,g)?ie(t,U,L):null))),33554433&t.$$.dirty[0]&&n(5,S=Ut(m,s)),16777217&t.$$.dirty[0]&&n(6,M=i.some((t=>Ut(t,m)))),2&t.$$.dirty[0]&&p&&Jt(p,B)},[m,p,D,E,H,S,M,d,f,h,$,v,y,w,b,k,x,_,C,T,g,U,L,o,i,s,a,u,function(t){I[t?"unshift":"push"]((()=>{p=t,n(1,p)}))}]}let Ir=class extends ft{constructor(t){super(),dt(this,t,zr,Pr,i,{date:0,resource:20},null,[-1,-1])}};function jr(t){let e,n,r,i,s,a,c,u,d,f,h;var p=t[10].resizer;function m(t,e){return{props:{event:t[0]}}}return p&&(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[30](t[10],"x"))&&t[30](t[10],"x").apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),a&&at(a.$$.fragment),E(n,"class",r=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",c=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(r,l){y(r,e,l),v(e,n),v(e,s),a&&ct(a,e,null),t[47](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){o(t[7])&&t[7].apply(this,arguments)})),T(e,"keydown",(function(){o(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){o(t[29](t[8],t[1]))&&t[29](t[8],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){o(t[29](t[9],t[1]))&&t[29](t[9],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){o(!ve(t[1])&&t[30](t[10]))&&(!ve(t[1])&&t[30](t[10])).apply(this,arguments)}))],f=!0)},p(l,s){if(t=l,(!d||4&s[0]&&r!==(r=t[2].eventBody))&&E(n,"class",r),i&&o(i.update)&&64&s[0]&&i.update.call(null,t[6]),1024&s[0]&&p!==(p=t[10].resizer)){if(a){et();const t=a;lt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[30](t[10],"x"))&&t[30](t[10],"x").apply(this,arguments)})),at(a.$$.fragment),rt(a.$$.fragment,1),ct(a,e,null)):a=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),a.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&c!==(c=t[7]?"button":void 0))&&E(e,"role",c),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(a&&rt(a.$$.fragment,t),d=!0)},o(t){a&<(a.$$.fragment,t),d=!1},d(n){n&&w(e),a&&ut(a),t[47](null),f=!1,l(h)}}}function Or(t,e,n){let r,l,i,s,a,u,d,f,h,p,m,g,$,v,y,w,b,k,x,_,C,T,D,E,{chunk:S}=e,{longChunks:M={}}=e,{displayEventEnd:U,eventAllUpdated:L,eventBackgroundColor:H,eventTextColor:B,eventClick:F,eventColor:P,eventContent:z,eventClassNames:j,eventDidMount:O,eventMouseEnter:G,eventMouseLeave:W,theme:q,_view:Y,_intlEventTime:X,_interaction:V,_iClasses:J,_resBgColor:K,_resTxtColor:Q,_tasks:Z}=R("state");c(t,U,(t=>n(39,f=t))),c(t,L,(t=>n(49,i=t))),c(t,H,(t=>n(45,v=t))),c(t,B,(t=>n(42,m=t))),c(t,F,(t=>n(35,r=t))),c(t,P,(t=>n(44,$=t))),c(t,z,(t=>n(38,d=t))),c(t,j,(t=>n(40,h=t))),c(t,O,(t=>n(50,s=t))),c(t,G,(t=>n(8,w=t))),c(t,W,(t=>n(9,b=t))),c(t,q,(t=>n(2,u=t))),c(t,Y,(t=>n(36,l=t))),c(t,X,(t=>n(37,a=t))),c(t,V,(t=>n(10,k=t))),c(t,J,(t=>n(41,p=t))),c(t,K,(t=>n(46,y=t))),c(t,Q,(t=>n(43,g=t)));let tt,et,nt=1;function rt(t,e){return!ve(e)&&o(t)?e=>t({event:de(_),el:x,jsEvent:e,view:te(l)}):void 0}return N((()=>{o(s)&&s({event:de(_),timeText:E,el:x,view:te(l)})})),A((()=>{o(i)&&!ve(tt)&&Rt((()=>i({view:te(l)})),"eau",Z)})),t.$$set=t=>{"chunk"in t&&n(31,S=t.chunk),"longChunks"in t&&n(32,M=t.longChunks)},t.$$.update=()=>{if(1&t.$$.dirty[1]&&n(0,_=S.event),37&t.$$.dirty[0]|65065&t.$$.dirty[1]){n(1,tt=_.display);let t=_.backgroundColor||y(_)||v||$,e=_.textColor||g(_)||m;n(5,T=`width:calc(${100*S.days}% + ${7*(S.days-1)}px);margin-top:${_._margin??nt}px;`),t&&n(5,T+=`background-color:${t};`),e&&n(5,T+=`color:${e};`),n(4,C=[u.event,...p([],_),...ue(h,_,l)].join(" "))}4&t.$$.dirty[0]|481&t.$$.dirty[1]&&n(6,[E,D]=ae(S,f,d,u,a,l),D),2&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(7,et=rt(r,tt))},[_,tt,u,x,C,T,D,et,w,b,k,U,L,H,B,F,P,z,j,O,G,W,q,Y,X,V,J,K,Q,rt,function(t,e){return t.action?n=>t.action.drag(_,n,e,null,qt(x).top-qt(Yt(x,1)).top):void 0},S,M,function(){x&&n(34,nt=me(S,M,Xt(x)))},nt,r,l,a,d,f,h,p,m,g,$,v,y,function(t){I[t?"unshift":"push"]((()=>{x=t,n(3,x)}))}]}let Gr=class extends ft{constructor(t){super(),dt(this,t,Or,jr,i,{chunk:31,longChunks:32,reposition:33},null,[-1,-1])}get reposition(){return this.$$.ctx[33]}};function Wr(t,e,n){const r=t.slice();return r[21]=e[n],r[22]=e,r[23]=n,r}function qr(t){let e,n,r,l;return n=new Gr({props:{chunk:t[2][0]}}),{c(){e=k("div"),at(n.$$.fragment),E(e,"class",r=t[8].events+" "+t[8].preview)},m(t,r){y(t,e,r),ct(n,e,null),l=!0},p(t,o){const i={};4&o&&(i.chunk=t[2][0]),n.$set(i),(!l||256&o&&r!==(r=t[8].events+" "+t[8].preview))&&E(e,"class",r)},i(t){l||(rt(n.$$.fragment,t),l=!0)},o(t){lt(n.$$.fragment,t),l=!1},d(t){t&&w(e),ut(n)}}}function Yr(t,e){let n,r,l,o=e[23];const i=()=>e[19](r,o),s=()=>e[19](null,o);let a={chunk:e[21],longChunks:e[1]};return r=new Gr({props:a}),i(),{key:t,first:null,c(){n=C(),at(r.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(r,t,e),l=!0},p(t,n){o!==(e=t)[23]&&(s(),o=e[23],i());const l={};16&n&&(l.chunk=e[21]),2&n&&(l.longChunks=e[1]),r.$set(l)},i(t){l||(rt(r.$$.fragment,t),l=!0)},o(t){lt(r.$$.fragment,t),l=!1},d(t){t&&w(n),s(),ut(r,t)}}}function Xr(t){let e,n,r,l,i,s,a,c,u=t[2][0]&&Ut(t[2][0].date,t[0]),d=[],f=new Map,h=u&&qr(t),p=ot(t[4]);const m=t=>t[21].event;for(let e=0;e<p.length;e+=1){let n=Wr(t,p,e),r=m(n);f.set(r,d[e]=Yr(r,n))}return{c(){e=k("div"),h&&h.c(),n=_(),r=k("div");for(let t=0;t<d.length;t+=1)d[t].c();E(r,"class",l=t[8].events),E(e,"class",i=t[8].day+" "+t[8].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[8].today:"")+(t[6]?" "+t[8].highlight:"")),E(e,"role","cell")},m(l,i){y(l,e,i),h&&h.m(e,null),v(e,n),v(e,r);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(r,null);t[20](e),s=!0,a||(c=T(e,"pointerdown",(function(){o(t[9].action?.select)&&t[9].action?.select.apply(this,arguments)})),a=!0)},p(o,a){let[c]=a;t=o,5&c&&(u=t[2][0]&&Ut(t[2][0].date,t[0])),u?h?(h.p(t,c),5&c&&rt(h,1)):(h=qr(t),h.c(),rt(h,1),h.m(e,n)):h&&(et(),lt(h,1,1,(()=>{h=null})),nt()),146&c&&(p=ot(t[4]),et(),d=st(d,c,m,0,t,p,f,r,it,Yr,null,Wr),nt()),(!s||256&c&&l!==(l=t[8].events))&&E(r,"class",l),(!s||353&c&&i!==(i=t[8].day+" "+t[8].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[8].today:"")+(t[6]?" "+t[8].highlight:"")))&&E(e,"class",i)},i(t){if(!s){rt(h);for(let t=0;t<p.length;t+=1)rt(d[t]);s=!0}},o(t){lt(h);for(let t=0;t<d.length;t+=1)lt(d[t]);s=!1},d(n){n&&w(e),h&&h.d();for(let t=0;t<d.length;t+=1)d[t].d();t[20](null),a=!1,c()}}}function Vr(t,e,n){let r,l,o,i,s,a,u,d,{date:f}=e,{chunks:h}=e,{longChunks:p}=e,{iChunks:m=[]}=e,{resource:g}=e,{highlightedDates:$,theme:v,_interaction:y,_today:w}=R("state");c(t,$,(t=>n(17,r=t))),c(t,v,(t=>n(8,o=t))),c(t,y,(t=>n(9,i=t))),c(t,w,(t=>n(18,l=t)));let b=[];return t.$$set=t=>{"date"in t&&n(0,f=t.date),"chunks"in t&&n(14,h=t.chunks),"longChunks"in t&&n(1,p=t.longChunks),"iChunks"in t&&n(2,m=t.iChunks),"resource"in t&&n(15,g=t.resource)},t.$$.update=()=>{if(16401&t.$$.dirty){n(4,a=[]);for(let t of h)Ut(t.date,f)&&a.push(t)}262145&t.$$.dirty&&n(5,u=Ut(f,l)),131073&t.$$.dirty&&n(6,d=r.some((t=>Ut(t,f)))),32777&t.$$.dirty&&s&&Jt(s,(()=>({allDay:!0,date:f,resource:g,dayEl:s})))},[f,p,m,s,a,u,d,b,o,i,$,v,y,w,h,g,function(){ge(b,a)},r,l,function(t,e){I[t?"unshift":"push"]((()=>{b[e]=t,n(7,b)}))},function(t){I[t?"unshift":"push"]((()=>{s=t,n(3,s)}))}]}let Jr=class extends ft{constructor(t){super(),dt(this,t,Vr,Xr,i,{date:0,chunks:14,longChunks:1,iChunks:2,resource:15,reposition:16})}get reposition(){return this.$$.ctx[16]}};function Kr(t,e,n){const r=t.slice();return r[18]=e[n],r[19]=e,r[20]=n,r}function Qr(t){let e,n,r=t[20];const l=()=>t[15](e,r),o=()=>t[15](null,r);let i={date:t[18],chunks:t[2],longChunks:t[3],iChunks:t[4],resource:t[1]};return e=new Jr({props:i}),l(),{c(){at(e.$$.fragment)},m(t,r){ct(e,t,r),n=!0},p(t,n){r!==t[20]&&(o(),r=t[20],l());const i={};1&n&&(i.date=t[18]),4&n&&(i.chunks=t[2]),8&n&&(i.longChunks=t[3]),16&n&&(i.iChunks=t[4]),2&n&&(i.resource=t[1]),e.$set(i)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){o(),ut(e,t)}}}function Zr(t){let e,n,r,l,o=ot(t[0]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Qr(Kr(t,o,e));const s=t=>lt(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);y(o,e,s),n=!0,r||(l=T(window,"resize",t[9]),r=!0)},p(t,n){let[r]=n;if(63&r){let n;for(o=ot(t[0]),n=0;n<o.length;n+=1){const l=Kr(t,o,n);i[n]?(i[n].p(l,r),rt(i[n],1)):(i[n]=Qr(l),i[n].c(),rt(i[n],1),i[n].m(e.parentNode,e))}for(et(),n=o.length;n<i.length;n+=1)s(n);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)rt(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)lt(i[t]);n=!1},d(t){t&&w(e),b(i,t),r=!1,l()}}}function tl(t,e,n){let r,l,o,{dates:i}=e,{resource:s}=e,{_events:a,_iEvents:u,_queue2:d,hiddenDays:f}=R("state");c(t,a,(t=>n(14,o=t))),c(t,u,(t=>n(13,l=t))),c(t,f,(t=>n(12,r=t)));let h,p,m,g,$=[],v=[],y={};function w(){At((()=>ge(v,i)),y,d)}return t.$$set=t=>{"dates"in t&&n(0,i=t.dates),"resource"in t&&n(1,s=t.resource)},t.$$.update=()=>{if(1&t.$$.dirty&&(n(10,m=i[0]),n(11,g=Tt(xt(i[i.length-1])))),23558&t.$$.dirty){n(2,h=[]);for(let t of o)if(t.allDay&&!ye(t.display)&&$e(t,m,g,s)){let e=ie(t,m,g);h.push(e)}n(3,p=pe(h,r)),w()}15362&t.$$.dirty&&n(4,$=l.map((t=>{let e;return t&&t.allDay&&$e(t,m,g,s)?(e=ie(t,m,g),pe([e],r)):e=null,e})))},[i,s,h,p,$,v,a,u,f,w,m,g,r,l,o,function(t,e){I[t?"unshift":"push"]((()=>{v[e]=t,n(5,v)}))}]}class el extends ft{constructor(t){super(),dt(this,t,tl,Zr,i,{dates:0,resource:1})}}function nl(t,e,n){const r=t.slice();return r[10]=e[n],r}function rl(t,e,n){const r=t.slice();return r[10]=e[n],r}function ll(t){let e,n,r,l,i,s,a,c,u;return{c(){e=k("div"),n=k("time"),s=_(),E(n,"datetime",r=Mt(t[10],10)),E(n,"aria-label",l=t[2].format(t[10])),E(e,"class",a=t[0].day+" "+t[0].weekdays?.[t[10].getUTCDay()]),E(e,"role","columnheader")},m(r,l){y(r,e,l),v(e,n),v(e,s),c||(u=g(i=vt.call(null,n,t[3].format(t[10]))),c=!0)},p(s,c){t=s,2&c&&r!==(r=Mt(t[10],10))&&E(n,"datetime",r),6&c&&l!==(l=t[2].format(t[10]))&&E(n,"aria-label",l),i&&o(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()])&&E(e,"class",a)},d(t){t&&w(e),c=!1,u()}}}function ol(t){let e,n=ot(t[1]),r=[];for(let e=0;e<n.length;e+=1)r[e]=ll(rl(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);y(t,e,n)},p(t,l){if(15&l){let o;for(n=ot(t[1]),o=0;o<n.length;o+=1){const i=rl(t,n,o);r[o]?r[o].p(i,l):(r[o]=ll(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&&w(e),b(r,t)}}}function il(t){let e,n,r,l,o,i,s,a,c;return r=new vr({props:{$$slots:{default:[sl]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),at(r.$$.fragment),l=_(),o=k("div"),E(o,"class",i=t[0].hiddenScroll),E(n,"class",s=t[0].content),E(e,"class",a=t[0].allDay)},m(t,i){y(t,e,i),v(e,n),ct(r,n,null),v(n,l),v(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))&&E(o,"class",i),(!c||1&l&&s!==(s=t[0].content))&&E(n,"class",s),(!c||1&l&&a!==(a=t[0].allDay))&&E(e,"class",a)},i(t){c||(rt(r.$$.fragment,t),c=!0)},o(t){lt(r.$$.fragment,t),c=!1},d(t){t&&w(e),ut(r)}}}function sl(t){let e,n;return e=new el({props:{dates:t[1]}}),{c(){at(e.$$.fragment)},m(t,r){ct(e,t,r),n=!0},p(t,n){const r={};2&n&&(r.dates=t[1]),e.$set(r)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function al(t){let e,n;return e=new Ir({props:{date:t[10]}}),{c(){at(e.$$.fragment)},m(t,r){ct(e,t,r),n=!0},p(t,n){const r={};2&n&&(r.date=t[10]),e.$set(r)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function cl(t){let e,n,r=ot(t[1]),l=[];for(let e=0;e<r.length;e+=1)l[e]=al(nl(t,r,e));const o=t=>lt(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);y(t,e,r),n=!0},p(t,n){if(2&n){let i;for(r=ot(t[1]),i=0;i<r.length;i+=1){const o=nl(t,r,i);l[i]?(l[i].p(o,n),rt(l[i],1)):(l[i]=al(o),l[i].c(),rt(l[i],1),l[i].m(e.parentNode,e))}for(et(),i=r.length;i<l.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)rt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)lt(l[t]);n=!1},d(t){t&&w(e),b(l,t)}}}function ul(t){let e,n,r,l,o,i,s,a,c,u;n=new vr({props:{$$slots:{default:[ol]},$$scope:{ctx:t}}});let d=t[4]&&il(t);return c=new Cr({props:{$$slots:{default:[cl]},$$scope:{ctx:t}}}),{c(){e=k("div"),at(n.$$.fragment),r=_(),l=k("div"),s=_(),d&&d.c(),a=_(),at(c.$$.fragment),E(l,"class",o=t[0].hiddenScroll),E(e,"class",i=t[0].header)},m(t,o){y(t,e,o),ct(n,e,null),v(e,r),v(e,l),y(t,s,o),d&&d.m(t,o),y(t,a,o),ct(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))&&E(l,"class",o),(!u||1&s&&i!==(i=t[0].header))&&E(e,"class",i),t[4]?d?(d.p(t,s),16&s&&rt(d,1)):(d=il(t),d.c(),rt(d,1),d.m(a.parentNode,a)):d&&(et(),lt(d,1,1,(()=>{d=null})),nt());const h={};32770&s&&(h.$$scope={dirty:s,ctx:t}),c.$set(h)},i(t){u||(rt(n.$$.fragment,t),rt(d),rt(c.$$.fragment,t),u=!0)},o(t){lt(n.$$.fragment,t),lt(d),lt(c.$$.fragment,t),u=!1},d(t){t&&(w(e),w(s),w(a)),ut(n),d&&d.d(t),ut(c,t)}}}function dl(t,e,n){let r,l,o,i,s,{_viewDates:a,_intlDayHeader:u,_intlDayHeaderAL:d,allDaySlot:f,theme:h}=R("state");return c(t,a,(t=>n(1,l=t))),c(t,u,(t=>n(3,i=t))),c(t,d,(t=>n(2,o=t))),c(t,f,(t=>n(4,s=t))),c(t,h,(t=>n(0,r=t))),[r,l,o,i,s,a,u,d,f,h]}let fl=class extends ft{constructor(t){super(),dt(this,t,dl,ul,i,{})}};var hl={createOptions(t){t.buttonText.timeGridDay="day",t.buttonText.timeGridWeek="week",t.view="timeGridWeek",t.views.timeGridDay={buttonText:be,component:fl,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:Te("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},t.views.timeGridWeek={buttonText:ke,component:fl,duration:{weeks:1},theme:Te("ec-time-grid ec-week-view")}},createStores(t){t._slotTimeLimits=function(t){return gt([t.slotMinTime,t.slotMaxTime,t.flexibleSlotTimeLimits,t._viewDates,t._events],(t=>Ue(...t)))}(t),t._times=function(t){return gt([t.slotDuration,t._slotTimeLimits,t._intlSlotLabel],(t=>Me(Et(bt()),...t)))}(t)}};function pl(t){return t.map((t=>({id:String(t.id),title:t.title||"",titleHTML:t.titleHTML||"",eventBackgroundColor:t.eventBackgroundColor,eventTextColor:t.eventTextColor})))}function ml(e){let n,r,l,i;return{c(){n=k("span"),E(n,"aria-label",e[2])},m(t,o){y(t,n,o),e[9](n),l||(i=g(r=vt.call(null,n,e[1])),l=!0)},p(t,e){let[l]=e;4&l&&E(n,"aria-label",t[2]),r&&o(r.update)&&2&l&&r.update.call(null,t[1])},i:t,o:t,d(t){t&&w(n),e[9](null),l=!1,i()}}}function gl(t,e,n){let r,l,i,{resource:s}=e,{date:a}=e,{resourceLabelContent:u,resourceLabelDidMount:d,_intlDayHeaderAL:f}=R("state");c(t,u,(t=>n(8,i=t))),c(t,d,(t=>n(11,l=t))),c(t,f,(t=>n(10,r=t)));const h=F();let p,m,g;return N((()=>{o(l)&&l({resource:s,date:a?St(a):void 0,el:p})})),A((()=>{a?n(2,g=r.format(a)+", "+p.innerText):(n(2,g=void 0),h("text",p.innerText))})),t.$$set=t=>{"resource"in t&&n(6,s=t.resource),"date"in t&&n(7,a=t.date)},t.$$.update=()=>{448&t.$$.dirty&&n(1,m=i?o(i)?i({resource:s,date:a?St(a):void 0}):i:s.title)},[p,m,g,u,d,f,s,a,i,function(t){I[t?"unshift":"push"]((()=>{p=t,n(0,p)}))}]}let $l=class extends ft{constructor(t){super(),dt(this,t,gl,ml,i,{resource:6,date:7})}};function vl(t,e,n){const r=t.slice();return r[17]=e[n],r}function yl(t,e,n){const r=t.slice();return r[20]=e[n],r}function wl(t,e,n){const r=t.slice();return r[26]=e[n],r}function bl(t,e,n){const r=t.slice();return r[23]=e[n],r}function kl(t,e,n){const r=t.slice();return r[26]=e[n],r}function xl(t,e,n){const r=t.slice();return r[17]=e[n],r[32]=n,r}function _l(t,e,n){const r=t.slice();return r[20]=e[n],r}function Cl(t){let e,n,r,l;return n=new $l({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=k("div"),at(n.$$.fragment),E(e,"class",r=t[5].day)},m(t,r){y(t,e,r),ct(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))&&E(e,"class",r)},i(t){l||(rt(n.$$.fragment,t),l=!0)},o(t){lt(n.$$.fragment,t),l=!1},d(t){t&&w(e),ut(n)}}}function Tl(e){let n,r,l,i,s,a,c,u;return{c(){n=k("div"),r=k("time"),E(r,"datetime",l=Mt(e[17],10)),E(r,"aria-label",i=e[6].format(e[17])),E(n,"class",a=e[5].day+" "+e[5].weekdays?.[e[17].getUTCDay()])},m(t,l){y(t,n,l),v(n,r),c||(u=g(s=vt.call(null,r,e[7].format(e[17]))),c=!0)},p(t,c){e=t,8&c[0]&&l!==(l=Mt(e[17],10))&&E(r,"datetime",l),72&c[0]&&i!==(i=e[6].format(e[17]))&&E(r,"aria-label",i),s&&o(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()])&&E(n,"class",a)},i:t,o:t,d(t){t&&w(n),c=!1,u()}}}function Dl(t){let e,n,r,l=ot(t[3][1]),o=[];for(let e=0;e<l.length;e+=1)o[e]=Ml(_l(t,l,e));const i=t=>lt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=k("div");for(let t=0;t<o.length;t+=1)o[t].c();E(e,"class",n=t[5].days)},m(t,n){y(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=ot(t[3][1]),n=0;n<l.length;n+=1){const r=_l(t,l,n);o[n]?(o[n].p(r,s),rt(o[n],1)):(o[n]=Ml(r),o[n].c(),rt(o[n],1),o[n].m(e,null))}for(et(),n=l.length;n<o.length;n+=1)i(n);nt()}(!r||32&s[0]&&n!==(n=t[5].days))&&E(e,"class",n)},i(t){if(!r){for(let t=0;t<l.length;t+=1)rt(o[t]);r=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)lt(o[t]);r=!1},d(t){t&&w(e),b(o,t)}}}function El(e){let n,r,l,i,s,a,c,u,d;return{c(){n=k("div"),r=k("time"),a=_(),E(r,"datetime",l=Mt(e[20],10)),E(r,"aria-label",i=""+(e[4][e[32]]+e[6].format(e[20]))),E(n,"class",c=e[5].day+" "+e[5].weekdays?.[e[20].getUTCDay()]),E(n,"role","columnheader")},m(t,l){y(t,n,l),v(n,r),v(n,a),u||(d=g(s=vt.call(null,r,e[7].format(e[20]))),u=!0)},p(t,a){e=t,8&a[0]&&l!==(l=Mt(e[20],10))&&E(r,"datetime",l),88&a[0]&&i!==(i=""+(e[4][e[32]]+e[6].format(e[20])))&&E(r,"aria-label",i),s&&o(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()])&&E(n,"class",c)},i:t,o:t,d(t){t&&w(n),u=!1,d()}}}function Sl(t){let e,n,r,l,o;return n=new $l({props:{resource:t[20],date:t[17]}}),{c(){e=k("div"),at(n.$$.fragment),r=_(),E(e,"class",l=t[5].day),E(e,"role","columnheader")},m(t,l){y(t,e,l),ct(n,e,null),v(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))&&E(e,"class",l)},i(t){o||(rt(n.$$.fragment,t),o=!0)},o(t){lt(n.$$.fragment,t),o=!1},d(t){t&&w(e),ut(n)}}}function Ml(t){let e,n,r,l;const o=[Sl,El],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),y(t,r,n),l=!0},p(t,l){let a=e;e=s(t),e===a?i[e].p(t,l):(et(),lt(i[a],1,1,(()=>{i[a]=null})),nt(),n=i[e],n?n.p(t,l):(n=i[e]=o[e](t),n.c()),rt(n,1),n.m(r.parentNode,r))},i(t){l||(rt(n),l=!0)},o(t){lt(n),l=!1},d(t){t&&w(r),i[e].d(t)}}}function Ul(t){let e,n,r,l,o,i,s;const a=[Tl,Cl],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&&Dl(t);return{c(){e=k("div"),r.c(),l=_(),d&&d.c(),o=_(),E(e,"class",i=t[5].resource)},m(t,r){y(t,e,r),c[n].m(e,null),v(e,l),d&&d.m(e,null),v(e,o),s=!0},p(t,f){let h=n;n=u(t),n===h?c[n].p(t,f):(et(),lt(c[h],1,1,(()=>{c[h]=null})),nt(),r=c[n],r?r.p(t,f):(r=c[n]=a[n](t),r.c()),rt(r,1),r.m(e,l)),t[3][1].length>1?d?(d.p(t,f),8&f[0]&&rt(d,1)):(d=Dl(t),d.c(),rt(d,1),d.m(e,o)):d&&(et(),lt(d,1,1,(()=>{d=null})),nt()),(!s||32&f[0]&&i!==(i=t[5].resource))&&E(e,"class",i)},i(t){s||(rt(r),rt(d),s=!0)},o(t){lt(r),lt(d),s=!1},d(t){t&&w(e),c[n].d(),d&&d.d()}}}function Ll(t){let e,n,r=ot(t[3][0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Ul(xl(t,r,e));const o=t=>lt(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);y(t,e,r),n=!0},p(t,n){if(252&n[0]){let i;for(r=ot(t[3][0]),i=0;i<r.length;i+=1){const o=xl(t,r,i);l[i]?(l[i].p(o,n),rt(l[i],1)):(l[i]=Ul(o),l[i].c(),rt(l[i],1),l[i].m(e.parentNode,e))}for(et(),i=r.length;i<l.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)rt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)lt(l[t]);n=!1},d(t){t&&w(e),b(l,t)}}}function Hl(t){let e,n,r,l,o,i,s,a,c;return r=new vr({props:{$$slots:{default:[Pl]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),at(r.$$.fragment),l=_(),o=k("div"),E(o,"class",i=t[5].hiddenScroll),E(n,"class",s=t[5].content),E(e,"class",a=t[5].allDay)},m(t,i){y(t,e,i),v(e,n),ct(r,n,null),v(n,l),v(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))&&E(o,"class",i),(!c||32&l[0]&&s!==(s=t[5].content))&&E(n,"class",s),(!c||32&l[0]&&a!==(a=t[5].allDay))&&E(e,"class",a)},i(t){c||(rt(r.$$.fragment,t),c=!0)},o(t){lt(r.$$.fragment,t),c=!1},d(t){t&&w(e),ut(r)}}}function Bl(t){let e,n,r=ot(t[1]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Al(wl(t,r,e));const o=t=>lt(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);y(t,e,r),n=!0},p(t,n){if(35&n[0]){let i;for(r=ot(t[1]),i=0;i<r.length;i+=1){const o=wl(t,r,i);l[i]?(l[i].p(o,n),rt(l[i],1)):(l[i]=Al(o),l[i].c(),rt(l[i],1),l[i].m(e.parentNode,e))}for(et(),i=r.length;i<l.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)rt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)lt(l[t]);n=!1},d(t){t&&w(e),b(l,t)}}}function Nl(t){let e,n,r=ot(t[0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Rl(bl(t,r,e));const o=t=>lt(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);y(t,e,r),n=!0},p(t,n){if(35&n[0]){let i;for(r=ot(t[0]),i=0;i<r.length;i+=1){const o=bl(t,r,i);l[i]?(l[i].p(o,n),rt(l[i],1)):(l[i]=Rl(o),l[i].c(),rt(l[i],1),l[i].m(e.parentNode,e))}for(et(),i=r.length;i<l.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)rt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)lt(l[t]);n=!1},d(t){t&&w(e),b(l,t)}}}function Al(t){let e,n,r,l,o;return n=new el({props:{dates:t[0],resource:t[26]}}),{c(){e=k("div"),at(n.$$.fragment),r=_(),E(e,"class",l=t[5].resource)},m(t,l){y(t,e,l),ct(n,e,null),v(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))&&E(e,"class",l)},i(t){o||(rt(n.$$.fragment,t),o=!0)},o(t){lt(n.$$.fragment,t),o=!1},d(t){t&&w(e),ut(n)}}}function Fl(t){let e,n;return e=new el({props:{dates:[t[23]],resource:t[26]}}),{c(){at(e.$$.fragment)},m(t,r){ct(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||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Rl(t){let e,n,r,l,o=ot(t[1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Fl(kl(t,o,e));const s=t=>lt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=k("div");for(let t=0;t<i.length;t+=1)i[t].c();n=_(),E(e,"class",r=t[5].resource)},m(t,r){y(t,e,r);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);v(e,n),l=!0},p(t,a){if(3&a[0]){let r;for(o=ot(t[1]),r=0;r<o.length;r+=1){const l=kl(t,o,r);i[r]?(i[r].p(l,a),rt(i[r],1)):(i[r]=Fl(l),i[r].c(),rt(i[r],1),i[r].m(e,n))}for(et(),r=o.length;r<i.length;r+=1)s(r);nt()}(!l||32&a[0]&&r!==(r=t[5].resource))&&E(e,"class",r)},i(t){if(!l){for(let t=0;t<o.length;t+=1)rt(i[t]);l=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)lt(i[t]);l=!1},d(t){t&&w(e),b(i,t)}}}function Pl(t){let e,n,r,l;const o=[Nl,Bl],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),y(t,r,n),l=!0},p(t,l){let a=e;e=s(t),e===a?i[e].p(t,l):(et(),lt(i[a],1,1,(()=>{i[a]=null})),nt(),n=i[e],n?n.p(t,l):(n=i[e]=o[e](t),n.c()),rt(n,1),n.m(r.parentNode,r))},i(t){l||(rt(n),l=!0)},o(t){lt(n),l=!1},d(t){t&&w(r),i[e].d(t)}}}function zl(t){let e,n;return e=new Ir({props:{date:t[2]?t[17]:t[20],resource:t[2]?t[20]:t[17]}}),{c(){at(e.$$.fragment)},m(t,r){ct(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||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Il(t){let e,n,r,l,o=ot(t[3][1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=zl(yl(t,o,e));const s=t=>lt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=k("div");for(let t=0;t<i.length;t+=1)i[t].c();n=_(),E(e,"class",r=t[5].resource)},m(t,r){y(t,e,r);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);v(e,n),l=!0},p(t,a){if(12&a[0]){let r;for(o=ot(t[3][1]),r=0;r<o.length;r+=1){const l=yl(t,o,r);i[r]?(i[r].p(l,a),rt(i[r],1)):(i[r]=zl(l),i[r].c(),rt(i[r],1),i[r].m(e,n))}for(et(),r=o.length;r<i.length;r+=1)s(r);nt()}(!l||32&a[0]&&r!==(r=t[5].resource))&&E(e,"class",r)},i(t){if(!l){for(let t=0;t<o.length;t+=1)rt(i[t]);l=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)lt(i[t]);l=!1},d(t){t&&w(e),b(i,t)}}}function jl(t){let e,n,r=ot(t[3][0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Il(vl(t,r,e));const o=t=>lt(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);y(t,e,r),n=!0},p(t,n){if(44&n[0]){let i;for(r=ot(t[3][0]),i=0;i<r.length;i+=1){const o=vl(t,r,i);l[i]?(l[i].p(o,n),rt(l[i],1)):(l[i]=Il(o),l[i].c(),rt(l[i],1),l[i].m(e.parentNode,e))}for(et(),i=r.length;i<l.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)rt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)lt(l[t]);n=!1},d(t){t&&w(e),b(l,t)}}}function Ol(t){let e,n,r,l,o,i,s,a,c,u;n=new vr({props:{$$slots:{default:[Ll]},$$scope:{ctx:t}}});let d=t[8]&&Hl(t);return c=new Cr({props:{$$slots:{default:[jl]},$$scope:{ctx:t}}}),{c(){e=k("div"),at(n.$$.fragment),r=_(),l=k("div"),s=_(),d&&d.c(),a=_(),at(c.$$.fragment),E(l,"class",o=t[5].hiddenScroll),E(e,"class",i=t[5].header)},m(t,o){y(t,e,o),ct(n,e,null),v(e,r),v(e,l),y(t,s,o),d&&d.m(t,o),y(t,a,o),ct(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))&&E(l,"class",o),(!u||32&r[0]&&i!==(i=t[5].header))&&E(e,"class",i),t[8]?d?(d.p(t,r),256&r[0]&&rt(d,1)):(d=Hl(t),d.c(),rt(d,1),d.m(a.parentNode,a)):d&&(et(),lt(d,1,1,(()=>{d=null})),nt());const f={};44&r[0]|16&r[1]&&(f.$$scope={dirty:r,ctx:t}),c.$set(f)},i(t){u||(rt(n.$$.fragment,t),rt(d),rt(c.$$.fragment,t),u=!0)},o(t){lt(n.$$.fragment,t),lt(d),lt(c.$$.fragment,t),u=!1},d(t){t&&(w(e),w(s),w(a)),ut(n),d&&d.d(t),ut(c,t)}}}function Gl(t,e,n){let r,l,o,i,s,a,u,d,{datesAboveResources:f,_viewDates:h,_viewResources:p,_intlDayHeader:m,_intlDayHeaderAL:g,allDaySlot:$,theme:v}=R("state");c(t,f,(t=>n(2,o=t))),c(t,h,(t=>n(0,r=t))),c(t,p,(t=>n(1,l=t))),c(t,m,(t=>n(7,a=t))),c(t,g,(t=>n(6,s=t))),c(t,$,(t=>n(8,u=t))),c(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,a,u,f,h,p,m,g,$,v,(t,e)=>n(4,y[t]=e.detail+", ",y)]}let Wl=class extends ft{constructor(t){super(),dt(this,t,Gl,Ol,i,{},null,[-1,-1])}};function ql(t,e,n){let r,l,o,{resources:i,_resBgColor:s,_resTxtColor:a}=R("state");return c(t,i,(t=>n(3,r=t))),c(t,s,(t=>n(5,o=t))),c(t,a,(t=>n(4,l=t))),m(s,o=t=>{let e=r.find((e=>t.resourceIds.includes(e.id)));return e?.eventBackgroundColor},o),m(a,l=t=>{let e=r.find((e=>t.resourceIds.includes(e.id)));return e?.eventTextColor},l),[i,s,a]}let Yl=class extends ft{constructor(t){super(),dt(this,t,ql,null,i,{})}};var Xl={createOptions(t){t.datesAboveResources=!1,t.filterResourcesWithEvents=!1,t.buttonText.resourceTimeGridDay="resources",t.buttonText.resourceTimeGridWeek="resources",t.view="resourceTimeGridWeek",t.views.resourceTimeGridDay={buttonText:be,component:Wl,duration:{days:1},theme:Te("ec-time-grid ec-resource-day-view")},t.views.resourceTimeGridWeek={buttonText:ke,component:Wl,duration:{weeks:1},theme:Te("ec-time-grid ec-resource-week-view")}},createParsers(t){t.resources=pl},createStores(t){"_times"in t||hl.createStores(t),t._auxiliary.update((t=>[...t,Yl])),t._viewResources=function(t){return gt([t.resources,t.filterResourcesWithEvents,t._events,t._activeRange],(t=>{let[e,n,r,l]=t,o=e;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=pl([{}])),o}))}(t)}};function Vl(e){let n,r,l,i;return{c(){n=k("span")},m(t,o){y(t,n,o),e[7](n),l||(i=g(r=vt.call(null,n,e[1])),l=!0)},p(t,e){let[n]=e;r&&o(r.update)&&2&n&&r.update.call(null,t[1])},i:t,o:t,d(t){t&&w(n),e[7](null),l=!1,i()}}}function Jl(t,e,n){let r,l,i,s,{resource:a}=e,{date:u}=e,{resourceLabelContent:d,resourceLabelDidMount:f}=R("state");return c(t,d,(t=>n(6,l=t))),c(t,f,(t=>n(8,r=t))),N((()=>{o(r)&&r({resource:a,date:u?St(u):void 0,el:i})})),t.$$set=t=>{"resource"in t&&n(4,a=t.resource),"date"in t&&n(5,u=t.date)},t.$$.update=()=>{112&t.$$.dirty&&n(1,s=l?o(l)?l({resource:a,date:u?St(u):void 0}):l:a.title)},[i,s,d,f,a,u,l,function(t){I[t?"unshift":"push"]((()=>{i=t,n(0,i)}))}]}class Kl extends ft{constructor(t){super(),dt(this,t,Jl,Vl,i,{resource:4,date:5})}}function Ql(t,e,n){const r=t.slice();return r[12]=e[n],r}function Zl(t){let e,n,r,l,o;return n=new Kl({props:{resource:t[12]}}),{c(){e=k("div"),at(n.$$.fragment),r=_(),E(e,"class",l=t[1].resource),M(e,"flex-basis",Gt(t[4].get(t[12])??0,34)+"px"),E(e,"role","rowheader")},m(t,l){y(t,e,l),ct(n,e,null),v(e,r),o=!0},p(t,r){const i={};8&r&&(i.resource=t[12]),n.$set(i),(!o||2&r&&l!==(l=t[1].resource))&&E(e,"class",l),(!o||24&r)&&M(e,"flex-basis",Gt(t[4].get(t[12])??0,34)+"px")},i(t){o||(rt(n.$$.fragment,t),o=!0)},o(t){lt(n.$$.fragment,t),o=!1},d(t){t&&w(e),ut(n)}}}function to(t){let e,n,r,l,o,i,s,a,c=ot(t[3]),u=[];for(let e=0;e<c.length;e+=1)u[e]=Zl(Ql(t,c,e));const d=t=>lt(u[t],1,1,(()=>{u[t]=null}));return{c(){e=k("div"),n=k("div"),l=_(),o=k("div");for(let t=0;t<u.length;t+=1)u[t].c();E(n,"class",r=t[1].sidebarTitle),M(n,"flex-basis",t[0]+"px"),E(o,"class",i=t[1].content),E(e,"class",s=t[1].sidebar)},m(r,i){y(r,e,i),v(e,n),v(e,l),v(e,o);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(o,null);t[11](o),a=!0},p(t,l){let[f]=l;if((!a||2&f&&r!==(r=t[1].sidebarTitle))&&E(n,"class",r),(!a||1&f)&&M(n,"flex-basis",t[0]+"px"),26&f){let e;for(c=ot(t[3]),e=0;e<c.length;e+=1){const n=Ql(t,c,e);u[e]?(u[e].p(n,f),rt(u[e],1)):(u[e]=Zl(n),u[e].c(),rt(u[e],1),u[e].m(o,null))}for(et(),e=c.length;e<u.length;e+=1)d(e);nt()}(!a||2&f&&i!==(i=t[1].content))&&E(o,"class",i),(!a||2&f&&s!==(s=t[1].sidebar))&&E(e,"class",s)},i(t){if(!a){for(let t=0;t<c.length;t+=1)rt(u[t]);a=!0}},o(t){u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)lt(u[t]);a=!1},d(n){n&&w(e),b(u,n),t[11](null)}}}function eo(t,e,n){let r,l,o,i,s,{_viewResources:a,_headerEl:u,_resHs:d,_sidebarEl:f,theme:h}=R("state");c(t,a,(t=>n(3,i=t))),c(t,u,(t=>n(10,r=t))),c(t,d,(t=>n(4,s=t))),c(t,f,(t=>n(2,o=t))),c(t,h,(t=>n(1,l=t)));let p=0;return t.$$.update=()=>{1024&t.$$.dirty&&r&&n(0,p=r.clientHeight)},[p,l,o,i,s,a,u,d,f,h,r,function(t){I[t?"unshift":"push"]((()=>{o=t,f.set(o)}))}]}class no extends ft{constructor(t){super(),dt(this,t,eo,to,i,{})}}function ro(t,e,n){const r=t.slice();return r[11]=e[n],r}function lo(t,e,n){const r=t.slice();return r[14]=e[n],r}function oo(t){let e,n,r,l,i,s,a,c,u;return{c(){e=k("div"),n=k("time"),i=_(),E(n,"datetime",r=t[14][0]),E(e,"class",s=t[0].time),E(e,"aria-label",a=t[14][3]),E(e,"role","columnheader")},m(r,o){y(r,e,o),v(e,n),v(e,i),c||(u=g(l=vt.call(null,n,t[14][1])),c=!0)},p(i,c){t=i,20&c&&r!==(r=t[14][0])&&E(n,"datetime",r),l&&o(l.update)&&20&c&&l.update.call(null,t[14][1]),1&c&&s!==(s=t[0].time)&&E(e,"class",s),20&c&&a!==(a=t[14][3])&&E(e,"aria-label",a)},d(t){t&&w(e),c=!1,u()}}}function io(t){let e,n,r,l,i,s,a,c,u,d,f,h,p,m=ot(t[4][t[11].getTime()]),$=[];for(let e=0;e<m.length;e+=1)$[e]=oo(lo(t,m,e));return{c(){e=k("div"),n=k("div"),r=k("time"),a=_(),c=k("div");for(let t=0;t<$.length;t+=1)$[t].c();d=_(),E(r,"datetime",l=Mt(t[11],10)),E(n,"class",s=t[0].dayHead),E(c,"class",u=t[0].times),E(e,"class",f=t[0].day+" "+t[0].weekdays?.[t[11].getUTCDay()])},m(l,o){y(l,e,o),v(e,n),v(n,r),v(e,a),v(e,c);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(c,null);v(e,d),h||(p=g(i=vt.call(null,r,t[3].format(t[11]))),h=!0)},p(a,d){if(t=a,4&d&&l!==(l=Mt(t[11],10))&&E(r,"datetime",l),i&&o(i.update)&&12&d&&i.update.call(null,t[3].format(t[11])),1&d&&s!==(s=t[0].dayHead)&&E(n,"class",s),21&d){let e;for(m=ot(t[4][t[11].getTime()]),e=0;e<m.length;e+=1){const n=lo(t,m,e);$[e]?$[e].p(n,d):($[e]=oo(n),$[e].c(),$[e].m(c,null))}for(;e<$.length;e+=1)$[e].d(1);$.length=m.length}1&d&&u!==(u=t[0].times)&&E(c,"class",u),5&d&&f!==(f=t[0].day+" "+t[0].weekdays?.[t[11].getUTCDay()])&&E(e,"class",f)},d(t){t&&w(e),b($,t),h=!1,p()}}}function so(e){let n,r,l,o,i,s,a,c=ot(e[2]),u=[];for(let t=0;t<c.length;t+=1)u[t]=io(ro(e,c,t));return{c(){n=k("div"),r=k("div");for(let t=0;t<u.length;t+=1)u[t].c();o=_(),i=k("div"),E(r,"class",l=e[0].days),E(r,"role","row"),E(i,"class",s=e[0].hiddenScroll),E(n,"class",a=e[0].header)},m(t,l){y(t,n,l),v(n,r);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(r,null);v(n,o),v(n,i),e[10](n)},p(t,e){let[o]=e;if(29&o){let e;for(c=ot(t[2]),e=0;e<c.length;e+=1){const n=ro(t,c,e);u[e]?u[e].p(n,o):(u[e]=io(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)&&E(r,"class",l),1&o&&s!==(s=t[0].hiddenScroll)&&E(i,"class",s),1&o&&a!==(a=t[0].header)&&E(n,"class",a)},i:t,o:t,d(t){t&&w(n),b(u,t),e[10](null)}}}function ao(t,e,n){let r,l,o,i,s,{_headerEl:a,_intlDayHeader:u,_dayTimes:d,_viewDates:f,theme:h}=R("state");return c(t,a,(t=>n(1,l=t))),c(t,u,(t=>n(3,i=t))),c(t,d,(t=>n(4,s=t))),c(t,f,(t=>n(2,o=t))),c(t,h,(t=>n(0,r=t))),[r,l,o,i,s,a,u,d,f,h,function(t){I[t?"unshift":"push"]((()=>{l=t,a.set(l)}))}]}class co extends ft{constructor(t){super(),dt(this,t,ao,so,i,{})}}function uo(t){let e,n,r,i,s,a,c,u,d,f,h;var p=t[10].resizer;function m(t,e){return{props:{event:t[0]}}}return p&&(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[33](t[10],"x"))&&t[33](t[10],"x").apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),a&&at(a.$$.fragment),E(n,"class",r=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",c=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(r,l){y(r,e,l),v(e,n),v(e,s),a&&ct(a,e,null),t[56](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){o(t[7])&&t[7].apply(this,arguments)})),T(e,"keydown",(function(){o(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){o(t[32](t[8],t[1]))&&t[32](t[8],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){o(t[32](t[9],t[1]))&&t[32](t[9],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){o(!ye(t[1])&&!ve(t[1])&&t[33](t[10]))&&(!ye(t[1])&&!ve(t[1])&&t[33](t[10])).apply(this,arguments)}))],f=!0)},p(l,s){if(t=l,(!d||4&s[0]&&r!==(r=t[2].eventBody))&&E(n,"class",r),i&&o(i.update)&&64&s[0]&&i.update.call(null,t[6]),1024&s[0]&&p!==(p=t[10].resizer)){if(a){et();const t=a;lt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[33](t[10],"x"))&&t[33](t[10],"x").apply(this,arguments)})),at(a.$$.fragment),rt(a.$$.fragment,1),ct(a,e,null)):a=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),a.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&c!==(c=t[7]?"button":void 0))&&E(e,"role",c),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(a&&rt(a.$$.fragment,t),d=!0)},o(t){a&<(a.$$.fragment,t),d=!1},d(n){n&&w(e),a&&ut(a),t[56](null),f=!1,l(h)}}}function fo(t,e,n){let r,l,i,s,a,u,d,f,h,p,m,g,$,v,y,w,b,k,x,_,C,T,D,E,S,M,U,L,H,{date:B}=e,{chunk:F}=e,{dayChunks:P=[]}=e,{longChunks:z={}}=e,{resource:j}=e,{displayEventEnd:O,eventAllUpdated:G,eventBackgroundColor:W,eventTextColor:q,eventColor:Y,eventContent:X,eventClick:V,eventDidMount:J,eventClassNames:K,eventMouseEnter:Q,eventMouseLeave:Z,slotDuration:tt,slotWidth:et,theme:nt,_view:rt,_intlEventTime:lt,_interaction:ot,_iClasses:it,_resBgColor:st,_resTxtColor:at,_dayTimeLimits:ct,_tasks:ut}=R("state");c(t,O,(t=>n(45,f=t))),c(t,G,(t=>n(58,i=t))),c(t,W,(t=>n(51,v=t))),c(t,q,(t=>n(48,m=t))),c(t,Y,(t=>n(50,$=t))),c(t,X,(t=>n(44,d=t))),c(t,V,(t=>n(41,r=t))),c(t,J,(t=>n(59,s=t))),c(t,K,(t=>n(46,h=t))),c(t,Q,(t=>n(8,x=t))),c(t,Z,(t=>n(9,_=t))),c(t,tt,(t=>n(55,k=t))),c(t,et,(t=>n(53,w=t))),c(t,nt,(t=>n(2,u=t))),c(t,rt,(t=>n(42,l=t))),c(t,lt,(t=>n(43,a=t))),c(t,ot,(t=>n(10,C=t))),c(t,it,(t=>n(47,p=t))),c(t,st,(t=>n(52,y=t))),c(t,at,(t=>n(49,g=t))),c(t,ct,(t=>n(54,b=t)));let dt=1;function ft(t,e){return!ve(e)&&o(t)?e=>t({event:de(D),el:T,jsEvent:e,view:te(l)}):void 0}return N((()=>{o(s)&&s({event:de(D),timeText:L,el:T,view:te(l)})})),A((()=>{o(i)&&!ve(E)&&Rt((()=>i({view:te(l)})),"eau",ut)})),t.$$set=t=>{"date"in t&&n(34,B=t.date),"chunk"in t&&n(35,F=t.chunk),"dayChunks"in t&&n(36,P=t.dayChunks),"longChunks"in t&&n(37,z=t.longChunks),"resource"in t&&n(38,j=t.resource)},t.$$.update=()=>{if(16&t.$$.dirty[1]&&n(0,D=F.event),39&t.$$.dirty[0]|33524376&t.$$.dirty[1]){n(1,E=D.display);let t=Bt(k),e=(F.start-B)/1e3,r=(F.end-B)/1e3;e-=Bt(b[B.getTime()]?.min),e<0&&(e=0);let o=0;for(let t=0;t<F.days;++t){let e=b[F.dates[t].getTime()],n=Bt(e?.min),l=Bt(e?.max,wt),i=wt*t,s=i+wt;s>r&&(s=r),s>i+l&&(o+=s-i-l);let a=r-i;a>n&&(a=n),o+=a}r-=o;let i=e/t*w,s=(r-e)/t*w,a=D.backgroundColor||y(D)||v||$,c=D.textColor||g(D)||m,d=dt;if(D._margin){let[t,e]=D._margin;j===e&&(d=t)}n(5,M=`left:${i}px;width:${s}px;margin-top:${d}px;`),a&&n(5,M+=`background-color:${a};`),c&&n(5,M+=`color:${c};`),n(4,S=[ye(E)?u.bgEvent:u.event,...p([],D),...ue(h,D,l)].join(" "))}4&t.$$.dirty[0]|30736&t.$$.dirty[1]&&n(6,[L,U]=ae(F,f,d,u,a,l),U),2&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(7,H=!ye(E)&&ft(r,E))},[D,E,u,T,S,M,U,H,x,_,C,O,G,W,q,Y,X,V,J,K,Q,Z,tt,et,nt,rt,lt,ot,it,st,at,ct,ft,function(t,e){return t.action?n=>t.action.drag(D,n,e,null,[dt,j]):void 0},B,F,P,z,j,function(){if(!T)return 0;let t=Xt(T);return n(40,dt=function(t,e,n,r){t.top=0,t.bottom=r,e.sort(((t,e)=>(t.top??0)-(e.top??0)||t.start-e.start||e.event.allDay-t.event.allDay));let l=1;for(let n of e)if(n!==t&&t.start<n.end&&t.end>n.start&&t.top<n.bottom&&t.bottom>n.top){let e=n.bottom-t.top+1;l+=e,t.top+=e,t.bottom+=e}let o=t.date.getTime();if(n[o]){n[o].sorted||(n[o].chunks.sort(((t,e)=>t.top-e.top)),n[o].sorted=!0);for(let e of n[o].chunks)if(t.start<e.end&&t.end>e.start&&t.top<e.bottom&&t.bottom>e.top){let n=e.bottom-t.top+1;l+=n,t.top+=n,t.bottom+=n}}return l}(F,P,z,t)),dt+t},dt,r,l,a,d,f,h,p,m,g,$,v,y,w,b,k,function(t){I[t?"unshift":"push"]((()=>{T=t,n(3,T)}))}]}class ho extends ft{constructor(t){super(),dt(this,t,fo,uo,i,{date:34,chunk:35,dayChunks:36,longChunks:37,resource:38,reposition:39},null,[-1,-1])}get reposition(){return this.$$.ctx[39]}}function po(t,e,n){const r=t.slice();return r[32]=e[n],r[33]=e,r[34]=n,r}function mo(t,e,n){const r=t.slice();return r[32]=e[n],r}function go(t,e){let n,r,l;return r=new ho({props:{date:e[0],chunk:e[32]}}),{key:t,first:null,c(){n=C(),at(r.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(r,t,e),l=!0},p(t,n){e=t;const l={};1&n[0]&&(l.date=e[0]),64&n[0]&&(l.chunk=e[32]),r.$set(l)},i(t){l||(rt(r.$$.fragment,t),l=!0)},o(t){lt(r.$$.fragment,t),l=!1},d(t){t&&w(n),ut(r,t)}}}function $o(t){let e,n;return e=new ho({props:{date:t[0],chunk:t[3][1]}}),{c(){at(e.$$.fragment)},m(t,r){ct(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.date=t[0]),8&n[0]&&(r.chunk=t[3][1]),e.$set(r)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function vo(t,e){let n,r,l,o=e[34];const i=()=>e[28](r,o),s=()=>e[28](null,o);let a={date:e[0],chunk:e[32],dayChunks:e[5],longChunks:e[2],resource:e[1]};return r=new ho({props:a}),i(),{key:t,first:null,c(){n=C(),at(r.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(r,t,e),l=!0},p(t,n){o!==(e=t)[34]&&(s(),o=e[34],i());const l={};1&n[0]&&(l.date=e[0]),32&n[0]&&(l.chunk=e[32]),32&n[0]&&(l.dayChunks=e[5]),4&n[0]&&(l.longChunks=e[2]),2&n[0]&&(l.resource=e[1]),r.$set(l)},i(t){l||(rt(r.$$.fragment,t),l=!0)},o(t){lt(r.$$.fragment,t),l=!1},d(t){t&&w(n),s(),ut(r,t)}}}function yo(t){let e,n;return e=new ho({props:{date:t[0],chunk:t[3][0],resource:t[1]}}),{c(){at(e.$$.fragment)},m(t,r){ct(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.date=t[0]),8&n[0]&&(r.chunk=t[3][0]),2&n[0]&&(r.resource=t[1]),e.$set(r)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function wo(t){let e,n,r,i,s,a,c,u,d,f,h=[],p=new Map,m=t[3][1]&&Ut(t[3][1].date,t[0]),g=[],$=new Map,b=t[3][0]&&Ut(t[3][0].date,t[0]),x=ot(t[6]);const C=t=>t[32].event;for(let e=0;e<x.length;e+=1){let n=mo(t,x,e),r=C(n);p.set(r,h[e]=go(r,n))}let D=m&&$o(t),S=ot(t[5]);const U=t=>t[32].event;for(let e=0;e<S.length;e+=1){let n=po(t,S,e),r=U(n);$.set(r,g[e]=vo(r,n))}let L=b&&yo(t);return{c(){e=k("div"),n=k("div");for(let t=0;t<h.length;t+=1)h[t].c();r=_(),D&&D.c(),i=_();for(let t=0;t<g.length;t+=1)g[t].c();s=_(),L&&L.c(),E(n,"class",a=t[12].events),E(e,"class",c=t[12].day+" "+t[12].weekdays?.[t[0].getUTCDay()]+(t[8]?" "+t[12].today:"")+(t[9]?" "+t[12].highlight:"")),M(e,"flex-grow",jt((Bt(t[7].max)-Bt(t[7].min))/Bt(t[11]))),E(e,"role","cell")},m(l,a){y(l,e,a),v(e,n);for(let t=0;t<h.length;t+=1)h[t]&&h[t].m(n,null);v(n,r),D&&D.m(n,null),v(n,i);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(n,null);v(n,s),L&&L.m(n,null),t[29](e),u=!0,d||(f=[T(e,"pointerleave",(function(){o(t[13].pointer?.leave)&&t[13].pointer?.leave.apply(this,arguments)})),T(e,"pointerdown",(function(){o(t[13].action?.select)&&t[13].action?.select.apply(this,arguments)}))],d=!0)},p(l,o){t=l,65&o[0]&&(x=ot(t[6]),et(),h=st(h,o,C,0,t,x,p,n,it,go,r,mo),nt()),9&o[0]&&(m=t[3][1]&&Ut(t[3][1].date,t[0])),m?D?(D.p(t,o),9&o[0]&&rt(D,1)):(D=$o(t),D.c(),rt(D,1),D.m(n,i)):D&&(et(),lt(D,1,1,(()=>{D=null})),nt()),1063&o[0]&&(S=ot(t[5]),et(),g=st(g,o,U,0,t,S,$,n,it,vo,s,po),nt()),9&o[0]&&(b=t[3][0]&&Ut(t[3][0].date,t[0])),b?L?(L.p(t,o),9&o[0]&&rt(L,1)):(L=yo(t),L.c(),rt(L,1),L.m(n,null)):L&&(et(),lt(L,1,1,(()=>{L=null})),nt()),(!u||4096&o[0]&&a!==(a=t[12].events))&&E(n,"class",a),(!u||4865&o[0]&&c!==(c=t[12].day+" "+t[12].weekdays?.[t[0].getUTCDay()]+(t[8]?" "+t[12].today:"")+(t[9]?" "+t[12].highlight:"")))&&E(e,"class",c),(!u||2176&o[0])&&M(e,"flex-grow",jt((Bt(t[7].max)-Bt(t[7].min))/Bt(t[11])))},i(t){if(!u){for(let t=0;t<x.length;t+=1)rt(h[t]);rt(D);for(let t=0;t<S.length;t+=1)rt(g[t]);rt(L),u=!0}},o(t){for(let t=0;t<h.length;t+=1)lt(h[t]);lt(D);for(let t=0;t<g.length;t+=1)lt(g[t]);lt(L),u=!1},d(n){n&&w(e);for(let t=0;t<h.length;t+=1)h[t].d();D&&D.d();for(let t=0;t<g.length;t+=1)g[t].d();L&&L.d(),t[29](null),d=!1,l(f)}}}function bo(t,e,n){let r,l,o,i,s,a,u,d,f,h,p,m,{date:g}=e,{resource:$}=e,{chunks:v}=e,{longChunks:y}=e,{iChunks:w=[]}=e,{highlightedDates:b,slotDuration:k,slotWidth:x,theme:_,_interaction:C,_today:T,_dayTimeLimits:D}=R("state");c(t,b,(t=>n(25,o=t))),c(t,k,(t=>n(11,l=t))),c(t,x,(t=>n(30,r=t))),c(t,_,(t=>n(12,a=t))),c(t,C,(t=>n(13,u=t))),c(t,T,(t=>n(26,i=t))),c(t,D,(t=>n(27,s=t)));let E,S,M,U=[];function L(t,e){return t-=qt(d).left,{allDay:!1,date:_t(_t(xt(g),E.min),l,It(t/r)),resource:$,dayEl:d}}return t.$$set=t=>{"date"in t&&n(0,g=t.date),"resource"in t&&n(1,$=t.resource),"chunks"in t&&n(21,v=t.chunks),"longChunks"in t&&n(2,y=t.longChunks),"iChunks"in t&&n(3,w=t.iChunks)},t.$$.update=()=>{if(134217857&t.$$.dirty[0]&&(n(7,E=s[g.getTime()]),n(23,S=_t(xt(g),E.min)),n(24,M=_t(xt(g),E.max))),27263073&t.$$.dirty[0]){n(5,f=[]),n(6,h=[]);for(let t of v)if(Ut(t.date,g)&&(t.start<M&&t.end>S||t.event.allDay))if("background"===t.event.display)h.push(t);else f.push(t)}67108865&t.$$.dirty[0]&&n(8,p=Ut(g,i)),33554433&t.$$.dirty[0]&&n(9,m=o.some((t=>Ut(t,g)))),16&t.$$.dirty[0]&&d&&Jt(d,L)},[g,$,y,w,d,f,h,E,p,m,U,l,a,u,b,k,x,_,C,T,D,v,function(){return Gt(...ge(U,f))},S,M,o,i,s,function(t,e){I[t?"unshift":"push"]((()=>{U[e]=t,n(10,U)}))},function(t){I[t?"unshift":"push"]((()=>{d=t,n(4,d)}))}]}class ko extends ft{constructor(t){super(),dt(this,t,bo,wo,i,{date:0,resource:1,chunks:21,longChunks:2,iChunks:3,reposition:22},null,[-1,-1])}get reposition(){return this.$$.ctx[22]}}function xo(t,e,n){const r=t.slice();return r[24]=e[n],r[25]=e,r[26]=n,r}function _o(t){let e,n,r=t[26];const l=()=>t[20](e,r),o=()=>t[20](null,r);let i={date:t[24],resource:t[0],chunks:t[1],longChunks:t[3],iChunks:t[4]};return e=new ko({props:i}),l(),{c(){at(e.$$.fragment)},m(t,r){ct(e,t,r),n=!0},p(t,n){r!==t[26]&&(o(),r=t[26],l());const i={};4&n&&(i.date=t[24]),1&n&&(i.resource=t[0]),2&n&&(i.chunks=t[1]),8&n&&(i.longChunks=t[3]),16&n&&(i.iChunks=t[4]),e.$set(i)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){o(),ut(e,t)}}}function Co(t){let e,n,r,l,o,i=ot(t[2]),s=[];for(let e=0;e<i.length;e+=1)s[e]=_o(xo(t,i,e));const a=t=>lt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=k("div");for(let t=0;t<s.length;t+=1)s[t].c();E(e,"class",n=t[7].days),M(e,"flex-basis",Gt(t[6],34)+"px"),E(e,"role","row")},m(n,i){y(n,e,i);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);r=!0,l||(o=T(window,"resize",t[14]),l=!0)},p(t,l){let[o]=l;if(63&o){let n;for(i=ot(t[2]),n=0;n<i.length;n+=1){const r=xo(t,i,n);s[n]?(s[n].p(r,o),rt(s[n],1)):(s[n]=_o(r),s[n].c(),rt(s[n],1),s[n].m(e,null))}for(et(),n=i.length;n<s.length;n+=1)a(n);nt()}(!r||128&o&&n!==(n=t[7].days))&&E(e,"class",n),(!r||64&o)&&M(e,"flex-basis",Gt(t[6],34)+"px")},i(t){if(!r){for(let t=0;t<i.length;t+=1)rt(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)lt(s[t]);r=!1},d(t){t&&w(e),b(s,t),l=!1,o()}}}function To(t,e,n){let r,l,o,i,s,a,{resource:u}=e,{_viewDates:d,_events:f,_iEvents:h,_queue2:p,_resHs:m,hiddenDays:g,theme:$}=R("state");c(t,d,(t=>n(2,s=t))),c(t,f,(t=>n(19,o=t))),c(t,h,(t=>n(18,l=t))),c(t,m,(t=>n(21,i=t))),c(t,g,(t=>n(17,r=t))),c(t,$,(t=>n(7,a=t)));let v,y,w,b,k=[],x=[],_=0,C={};function T(){At((()=>{n(6,_=jt(Gt(...ge(x,s)))+10),i.set(u,_),m.set(i)}),C,p)}return t.$$set=t=>{"resource"in t&&n(0,u=t.resource)},t.$$.update=()=>{if(4&t.$$.dirty&&(n(15,w=s[0]),n(16,b=Tt(xt(s[s.length-1])))),753667&t.$$.dirty){n(1,v=[]);for(let t of o)if($e(t,w,b,u)){let e=ie(t,w,b);v.push(e)}n(3,y=pe(v,r)),T()}491521&t.$$.dirty&&n(4,k=l.map((t=>{let e;return t&&$e(t,w,b,u)?(e=ie(t,w,b),pe([e],r)):e=null,e})))},[u,v,s,y,k,x,_,a,d,f,h,m,g,$,T,w,b,r,l,o,function(t,e){I[t?"unshift":"push"]((()=>{x[e]=t,n(5,x)}))}]}class Do extends ft{constructor(t){super(),dt(this,t,To,Co,i,{resource:0})}}function Eo(t,e,n){const r=t.slice();return r[16]=e[n],r}function So(t,e,n){const r=t.slice();return r[19]=e[n],r}function Mo(t,e,n){const r=t.slice();return r[22]=e[n],r}function Uo(t){let e,n;return{c(){e=k("div"),E(e,"class",n=t[1].line)},m(t,n){y(t,e,n)},p(t,r){2&r&&n!==(n=t[1].line)&&E(e,"class",n)},d(t){t&&w(e)}}}function Lo(t){let e,n=ot(t[3][t[19].getTime()]),r=[];for(let e=0;e<n.length;e+=1)r[e]=Uo(Mo(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);y(t,e,n)},p(t,l){if(14&l){let o;for(n=ot(t[3][t[19].getTime()]),o=0;o<n.length;o+=1){const i=Mo(t,n,o);r[o]?r[o].p(i,l):(r[o]=Uo(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&&w(e),b(r,t)}}}function Ho(t){let e,n;return e=new Do({props:{resource:t[16]}}),{c(){at(e.$$.fragment)},m(t,r){ct(e,t,r),n=!0},p(t,n){const r={};16&n&&(r.resource=t[16]),e.$set(r)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Bo(t){let e,n,r,l,o,i,s,a,c,u,d=ot(t[2]),f=[];for(let e=0;e<d.length;e+=1)f[e]=Lo(So(t,d,e));let h=ot(t[4]),p=[];for(let e=0;e<h.length;e+=1)p[e]=Ho(Eo(t,h,e));const m=t=>lt(p[t],1,1,(()=>{p[t]=null}));return{c(){e=k("div"),n=k("div"),r=k("div");for(let t=0;t<f.length;t+=1)f[t].c();o=_();for(let t=0;t<p.length;t+=1)p[t].c();E(r,"class",l=t[1].lines),E(n,"class",i=t[1].content),E(e,"class",s=t[1].body)},m(l,i){y(l,e,i),v(e,n),v(n,r);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(r,null);v(n,o);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(n,null);t[13](e),a=!0,c||(u=T(e,"scroll",t[12]),c=!0)},p(t,o){let[c]=o;if(14&c){let e;for(d=ot(t[2]),e=0;e<d.length;e+=1){const n=So(t,d,e);f[e]?f[e].p(n,c):(f[e]=Lo(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||2&c&&l!==(l=t[1].lines))&&E(r,"class",l),16&c){let e;for(h=ot(t[4]),e=0;e<h.length;e+=1){const r=Eo(t,h,e);p[e]?(p[e].p(r,c),rt(p[e],1)):(p[e]=Ho(r),p[e].c(),rt(p[e],1),p[e].m(n,null))}for(et(),e=h.length;e<p.length;e+=1)m(e);nt()}(!a||2&c&&i!==(i=t[1].content))&&E(n,"class",i),(!a||2&c&&s!==(s=t[1].body))&&E(e,"class",s)},i(t){if(!a){for(let t=0;t<h.length;t+=1)rt(p[t]);a=!0}},o(t){p=p.filter(Boolean);for(let t=0;t<p.length;t+=1)lt(p[t]);a=!1},d(n){n&&w(e),b(f,n),b(p,n),t[13](null),c=!1,u()}}}function No(t,e,n){let r,l,o,i,s,a,u,{_bodyEl:d,_headerEl:f,_sidebarEl:h,_dayTimes:p,_viewResources:g,_viewDates:$,theme:v}=R("state");return c(t,d,(t=>n(0,r=t))),c(t,f,(t=>n(15,o=t))),c(t,h,(t=>n(14,l=t))),c(t,p,(t=>n(3,a=t))),c(t,g,(t=>n(4,u=t))),c(t,$,(t=>n(2,s=t))),c(t,v,(t=>n(1,i=t))),[r,i,s,a,u,d,f,h,p,g,$,v,function(){m(f,o.scrollLeft=r.scrollLeft,o),m(h,l.scrollTop=r.scrollTop,l)},function(t){I[t?"unshift":"push"]((()=>{r=t,d.set(r)}))}]}class Ao extends ft{constructor(t){super(),dt(this,t,No,Bo,i,{})}}function Fo(t){let e,n,r,l,o,i,s,a,c,u;return n=new no({}),o=new co({}),s=new Ao({}),{c(){e=k("div"),at(n.$$.fragment),r=_(),l=k("div"),at(o.$$.fragment),i=_(),at(s.$$.fragment),E(l,"class",a=t[0].main),E(e,"class",c=t[0].container)},m(t,a){y(t,e,a),ct(n,e,null),v(e,r),v(e,l),ct(o,l,null),v(l,i),ct(s,l,null),u=!0},p(t,n){let[r]=n;(!u||1&r&&a!==(a=t[0].main))&&E(l,"class",a),(!u||1&r&&c!==(c=t[0].container))&&E(e,"class",c)},i(t){u||(rt(n.$$.fragment,t),rt(o.$$.fragment,t),rt(s.$$.fragment,t),u=!0)},o(t){lt(n.$$.fragment,t),lt(o.$$.fragment,t),lt(s.$$.fragment,t),u=!1},d(t){t&&w(e),ut(n),ut(o),ut(s)}}}function Ro(t,e,n){let r,{theme:l}=R("state");return c(t,l,(t=>n(0,r=t))),[r,l]}class Po extends ft{constructor(t){super(),dt(this,t,Ro,Fo,i,{})}}var zo={createOptions(t){t.buttonText.resourceTimelineDay="timeline",t.buttonText.resourceTimelineWeek="timeline",t.dayHeaderAriaLabelFormat={dateStyle:"long",timeStyle:"short"},t.theme.main="ec-main",t.theme.times="ec-times",t.theme.container="ec-container",t.view="resourceTimelineWeek",t.views.resourceTimelineDay={buttonText:be,component:Po,dayHeaderFormat:{weekday:"long"},duration:{days:1},slotDuration:"01:00",theme:Te("ec-timeline ec-resource-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},t.views.resourceTimelineWeek={buttonText:ke,component:Po,displayEventEnd:!1,duration:{weeks:1},slotDuration:"01:00",theme:Te("ec-timeline ec-resource-week-view")}},createStores(t){t._headerEl=mt(void 0),t._dayTimeLimits=function(t){return gt([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()]=Ue(e,n,r,[t],o);return i}))}(t),t._dayTimes=function(t){return gt([t._viewDates,t.slotDuration,t._dayTimeLimits,t._intlSlotLabel,t._intlDayHeaderAL],(t=>{let[e,n,r,l,o]=t,i={};for(let t of e){let e=t.getTime();i[e]=e in r?Me(t,n,r[e],l,o):[]}return i}))}(t),t._resHs=mt(new Map),t._sidebarEl=mt(void 0)}};let Io=!1;function jo(t,e,n){return Gt(e,Ot(n,t))}const{window:Oo}=$;function Go(e){let n,r;return{c:t,m(t,l){n||(r=[T(Oo,"pointermove",e[33]),T(Oo,"pointerup",e[34]),T(Oo,"pointercancel",e[34]),T(Oo,"scroll",e[0]),T(Oo,"selectstart",qo(e[35])),T(Oo,"contextmenu",(function(){o(qo(e[43]))&&qo(e[43]).apply(this,arguments)})),T(Oo,"touchstart",e[36]),T(Oo,"touchmove",e[42],{passive:!1})],n=!0)},p(t,n){e=t},i:t,o:t,d(t){n=!1,l(r)}}}function Wo(t){return t.isPrimary&&("mouse"!==t.pointerType||1&t.buttons)}function qo(t){return e=>{t()&&e.preventDefault()}}function Yo(t,e,n){let r,i,s,a,u,d,f,h,p,g,$,v,y,w,b,k,x,_,C,D,E,S,M,U,L,H,B,N,A,F,z,I,j,O,G,W,q,Y,X,V,J,K,Q,Z,tt,et,nt,rt,lt,ot,it,st,at,ct,ut,dt,ft,{_iEvents:ht,_iClass:pt,_events:mt,_view:gt,_dayGrid:$t,_draggable:vt,_bodyEl:yt,dateClick:wt,dragScroll:bt,datesAboveResources:Dt,eventDragMinDistance:Et,eventDragStart:Ut,eventDragStop:Lt,eventDrop:Ht,eventLongPressDelay:Bt,eventResizeStart:Nt,eventResizeStop:At,eventResize:Ft,longPressDelay:Rt,selectable:zt,select:It,selectBackgroundColor:jt,selectLongPressDelay:Wt,selectMinDistance:Xt,slotDuration:Vt,slotHeight:Jt,slotWidth:Kt,unselect:re,unselectAuto:le,unselectCancel:oe,view:ie}=R("state");function se(t){window.getSelection().removeAllRanges(),V=K=t.clientX,J=Q=t.clientY;let e=Zt(K,Q);({allDay:lt,date:W,resource:Y}=Qt(e)(K,Q)),ne(f)?Z=et=N:(Z=Yt(e,Y?4:3),et=Yt(e,Y&&(1===I||B)?2:1)),ce(),"mouse"!==t.pointerType&&n(1,ut=setTimeout((()=>{I&&(j=!0,ae(t))}),(me()?H:L)??U))}function ae(t){if(j||t&&"mouse"===t.pointerType&&Math.sqrt(Math.pow(K-V,2)+Math.pow(Q-J,2))>=(me()?M:S)){j=!0,$e(t),m(pt,h=ot,h),a[0]||(me()?m(ht,a[0]={id:"{select}",allDay:O.allDay,start:O.start,title:"",display:"preview",extendedProps:{},backgroundColor:u,resourceIds:O.resourceIds},a):function(t,e){o(e)&&e({event:de(O),jsEvent:t,view:te(r)});G=O.display,O.display="preview",m(ht,a[0]=fe(O),a),void 0!==ft&&m(ht,a[0]._margin=ft,a);O.display="ghost",mt.set(s)}(t,pe()?E:D));let e=Zt(jo(K,dt[0],dt[1]),jo(Q,dt[2],dt[3]));if(e){let t;({allDay:t,date:q,resource:X}=Qt(e)(K,Q)),t===lt&&(rt=kt((q-W)/1e3),m(ht,a[0].end=_t(xt(O.end),rt),a),pe()?a[0].end<it&&m(ht,a[0].end=it,a):me()?a[0].end<O.end?(m(ht,a[0].start=Ct(a[0].end,st),a),m(ht,a[0].end=O.end,a)):m(ht,a[0].start=O.start,a):(m(ht,a[0].start=_t(xt(O.start),rt),a),Y&&(m(ht,a[0].resourceIds=O.resourceIds.filter((t=>t!==Y.id)),a),a[0].resourceIds.push(X.id))))}}if(C){let t=2*_,n=x;e=()=>{Z&&(Q<t&&window.scrollBy(0,Gt(-10,(Q-t)/3)),Q<tt.top+t&&(Z.scrollTop+=Gt(-10,(Q-tt.top-t)/3)),Q>window.innerHeight-t&&window.scrollBy(0,Ot(10,(Q-window.innerHeight+t)/3)),Q>tt.bottom-t&&(Z.scrollTop+=Ot(10,(Q-tt.bottom+t)/3)),ne(f)&&(K<tt.left+n&&(Z.scrollLeft+=Gt(-10,(K-tt.left-n)/3)),K>tt.right-n&&(Z.scrollLeft+=Ot(10,(K-tt.right+n)/3))))},Io||(Io=!0,window.requestAnimationFrame((()=>{e(),Io=!1})))}var e}function ce(){tt=qt(Z),nt=qt(et),dt=[Gt(0,nt.left+(ne(f)?1:d?0:8)),Ot(document.documentElement.clientWidth,nt.left+et.clientWidth)-2,Gt(0,tt.top),Ot(document.documentElement.clientHeight,tt.top+Z.clientHeight)-2]}function ue(){m(ht,a[0]=null,a)}function he(t,e){t.start=e.start,t.end=e.end,t.resourceIds=e.resourceIds,mt.set(s)}function pe(){return 2===I}function me(){return 3===I}function ge(){return I&&I<4}function $e(t){at&&(at=!1,ue(),o(i)&&i({jsEvent:t,view:te(r)}))}c(t,ht,(t=>n(72,a=t))),c(t,pt,(t=>n(76,h=t))),c(t,mt,(t=>n(71,s=t))),c(t,gt,(t=>n(69,r=t))),c(t,$t,(t=>n(74,d=t))),c(t,vt,(t=>n(99,z=t))),c(t,yt,(t=>n(96,N=t))),c(t,wt,(t=>n(77,p=t))),c(t,bt,(t=>n(87,C=t))),c(t,Dt,(t=>n(95,B=t))),c(t,Et,(t=>n(90,S=t))),c(t,Ut,(t=>n(88,D=t))),c(t,Lt,(t=>n(80,v=t))),c(t,Ht,(t=>n(78,g=t))),c(t,Bt,(t=>n(93,L=t))),c(t,Nt,(t=>n(89,E=t))),c(t,At,(t=>n(81,y=t))),c(t,Ft,(t=>n(79,$=t))),c(t,Rt,(t=>n(92,U=t))),c(t,zt,(t=>n(98,F=t))),c(t,It,(t=>n(82,w=t))),c(t,jt,(t=>n(73,u=t))),c(t,Wt,(t=>n(94,H=t))),c(t,Xt,(t=>n(91,M=t))),c(t,Vt,(t=>n(97,A=t))),c(t,Jt,(t=>n(86,_=t))),c(t,Kt,(t=>n(85,x=t))),c(t,re,(t=>n(70,i=t))),c(t,le,(t=>n(84,k=t))),c(t,oe,(t=>n(83,b=t))),c(t,ie,(t=>n(75,f=t))),gt.subscribe($e);return[function(){ge()&&(ce(),ae())},ut,ht,pt,mt,gt,$t,vt,yt,wt,bt,Dt,Et,Ut,Lt,Ht,Bt,Nt,At,Ft,Rt,zt,It,jt,Wt,Xt,Vt,Jt,Kt,re,le,oe,ie,function(t){ge()&&t.isPrimary&&(K=t.clientX,Q=t.clientY,ae(t))},function(t){if(!at||!k||b&&t.target.closest(b)||$e(t),I&&t.isPrimary){if(j)if(me()){if(at=!0,o(w)){let{start:e,end:n}=de(a[0]);w({start:e,end:n,startStr:Mt(a[0].start),endStr:Mt(a[0].end),allDay:lt,jsEvent:t,view:te(r),resource:Y})}}else{O.display=G;let e=pe()?y:v;o(e)&&e({event:de(O),jsEvent:t,view:te(r)});let n=fe(O);if(he(O,a[0]),ue(),e=pe()?$:g,o(e)){let l,o=O;l=pe()?{endDelta:rt}:{delta:rt,oldResource:Y!==X?Y:void 0,newResource:Y!==X?X:void 0},e(Pt(l,{event:de(O),oldEvent:de(n),jsEvent:t,view:te(r),revert(){he(o,n)}}))}}else if((4===I||me())&&o(p)&&!ct){K=t.clientX,Q=t.clientY;let e=Zt(K,Q);if(e){let{allDay:n,date:l,resource:o}=Qt(e)(K,Q);p({allDay:n,date:St(l),dateStr:Mt(l),dayEl:e,jsEvent:t,view:te(r),resource:o})}}j=!1,I=V=J=K=Q=O=G=W=q=Y=X=rt=lt=m(pt,h=it=st=ft=void 0,h),Z=et=tt=nt=void 0,ut&&(clearTimeout(ut),n(1,ut=void 0))}ct=!1},ge,function(t){if(ge()){let e=t.target,n=[],r=()=>l(n);n.push(T(e,"touchmove",qo((()=>j)))),n.push(T(e,"touchend",r)),n.push(T(e,"touchcancel",r))}},function(t,e,n,r,l){I||(I=Wo(e)?n?2:z(t)?1:5:5,ge()&&(O=t,se(e),r&&(W=r),l&&(ft=l),ot=n?"x"==n?"resizingX":"resizingY":"dragging",n&&(it=xt(O.start),lt?(it.setUTCHours(O.end.getUTCHours(),O.end.getUTCMinutes(),O.end.getUTCSeconds(),0),it<O.start&&Tt(it)):_t(it,A)),ae(e)))},function(t){I||(I=Wo(t)?F&&!ee(f)?3:4:5,ge()&&(se(t),ot="selecting",st=lt?kt({day:1}):A,O={allDay:lt,start:W,end:_t(xt(W),st),resourceIds:Y?[Y.id]:[]},ae(t)))},function(){I||(I=5)},$e,function(){ct=!0},function(e){P.call(this,t,e)},()=>ut]}class Xo extends ft{constructor(t){super(),dt(this,t,Yo,Go,i,{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 Vo(e){let n,r;return{c:t,m(t,l){n||(r=[T(window,"pointermove",e[3]),T(window,"scroll",e[0])],n=!0)},p:t,i:t,o:t,d(t){n=!1,l(r)}}}function Jo(t){return t.isPrimary&&"mouse"===t.pointerType}function Ko(t,e,n){let r,l,{_iEvents:o,slotDuration:i}=R("state");c(t,o,(t=>n(5,r=t))),c(t,i,(t=>n(8,l=t)));let s=0,a=0;function u(){let t=Zt(s,a);if(t){let{date:e,resource:n}=Qt(t)(s,a);r[1]||m(o,r[1]={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent"},r),m(o,r[1].start=e,r),m(o,r[1].end=_t(xt(e),l),r),m(o,r[1].resourceIds=n?[n.id]:[],r)}}function d(){m(o,r[1]=null,r)}return t.$$.update=()=>{32&t.$$.dirty&&r[0]&&d()},[function(){u()},o,i,function(t){Jo(t)&&(s=t.clientX,a=t.clientY,u())},function(t){Jo(t)&&d()},r]}class Qo extends ft{constructor(t){super(),dt(this,t,Ko,Vo,i,{leave:4,handleScroll:0})}get leave(){return this.$$.ctx[4]}get handleScroll(){return this.$$.ctx[0]}}function Zo(t){let e,n,r,l;return{c(){e=k("div"),E(e,"class",n=t[1].resizer)},m(n,o){y(n,e,o),r||(l=T(e,"pointerdown",t[8]),r=!0)},p(t,r){2&r&&n!==(n=t[1].resizer)&&E(e,"class",n)},d(t){t&&w(e),r=!1,l()}}}function ti(e){let n,r=e[0]&&Zo(e);return{c(){r&&r.c(),n=C()},m(t,e){r&&r.m(t,e),y(t,n,e)},p(t,e){let[l]=e;t[0]?r?r.p(t,l):(r=Zo(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},i:t,o:t,d(t){t&&w(n),r&&r.d(t)}}}function ei(t,e,n){let r,l,o,i,{event:s}=e,{theme:a,eventDurationEditable:u,editable:d}=R("state");return c(t,a,(t=>n(1,o=t))),c(t,u,(t=>n(7,l=t))),c(t,d,(t=>n(6,r=t))),t.$$set=t=>{"event"in t&&n(5,s=t.event)},t.$$.update=()=>{224&t.$$.dirty&&n(0,i=!ye(s.display)&&!ve(s.display)&&((s.durationEditable??l)||(s.editable??r)))},[i,o,a,u,d,s,r,l,function(e){P.call(this,t,e)}]}class ni extends ft{constructor(t){super(),dt(this,t,ei,ti,i,{event:5})}}function ri(t){let e,n;return e=new Qo({props:{}}),t[16](e),{c(){at(e.$$.fragment)},m(t,r){ct(e,t,r),n=!0},p(t,n){e.$set({})},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){lt(e.$$.fragment,t),n=!1},d(n){t[16](null),ut(e,n)}}}function li(t){let e,n,r,l;e=new Xo({props:{}}),t[15](e);let o=t[1]&&ri(t);return{c(){at(e.$$.fragment),n=_(),o&&o.c(),r=C()},m(t,i){ct(e,t,i),y(t,n,i),o&&o.m(t,i),y(t,r,i),l=!0},p(t,n){let[l]=n;e.$set({}),t[1]?o?(o.p(t,l),2&l&&rt(o,1)):(o=ri(t),o.c(),rt(o,1),o.m(r.parentNode,r)):o&&(et(),lt(o,1,1,(()=>{o=null})),nt())},i(t){l||(rt(e.$$.fragment,t),rt(o),l=!0)},o(t){lt(e.$$.fragment,t),lt(o),l=!1},d(l){l&&(w(n),w(r)),t[15](null),ut(e,l),o&&o.d(l)}}}function oi(t,e,n){let r,l,o,i,s,a,u,d,{theme:f,editable:h,eventStartEditable:p,eventDurationEditable:g,pointer:$,_bodyEl:v,_interaction:y,_iClasses:w,_draggable:b}=R("state");function k(){for(let t of Object.values(r))t?.handleScroll?.()}return c(t,f,(t=>n(11,o=t))),c(t,h,(t=>n(13,a=t))),c(t,p,(t=>n(14,u=t))),c(t,$,(t=>n(1,d=t))),c(t,v,(t=>n(10,l=t))),c(t,y,(t=>n(0,r=t))),c(t,w,(t=>n(17,s=t))),c(t,b,(t=>n(12,i=t))),m(y,r.resizer=ni,r),t.$$.update=()=>{24576&t.$$.dirty&&m(b,i=t=>(t.startEditable??u)||(t.editable??a),i),6144&t.$$.dirty&&m(w,s=(t,e)=>{let{display:n}=e;return ve(n)?[o[n]]:!ye(n)&&i(e)?[o.draggable]:[]},s),1024&t.$$.dirty&&l&&T(l,"scroll",k)},[r,d,f,h,p,$,v,y,w,b,l,o,i,a,u,function(t){I[t?"unshift":"push"]((()=>{r.action=t,y.set(r)}))},function(t){I[t?"unshift":"push"]((()=>{r.pointer=t,y.set(r)}))}]}class ii extends ft{constructor(t){super(),dt(this,t,oi,li,i,{})}}var si={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.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.dragging="ec-dragging",t.theme.resizingY="ec-resizing-y",t.theme.resizingX="ec-resizing-x",t.theme.selecting="ec-selecting"},createStores(e){e._draggable=mt(t),e._auxiliary.update((t=>[...t,ii]))}};return class extends dn{constructor(t,e){super({target:t,props:{plugins:[qn,dr,hl,Xl,zo,si],options:e}})}get view(){return this.getView()}}}();
|
|
5
|
+
var EventCalendar=function(){"use strict";function t(){}const e=t=>t;function n(t){return t()}function l(){return Object.create(null)}function r(t){t.forEach(n)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(e){for(var n=arguments.length,l=new Array(n>1?n-1:0),r=1;r<n;r++)l[r-1]=arguments[r];if(null==e){for(const t of l)t(void 0);return t}const o=e.subscribe(...l);return o.unsubscribe?()=>o.unsubscribe():o}function a(t){let e;return s(t,(t=>e=t))(),e}function c(t,e,n){t.$$.on_destroy.push(s(e,n))}function u(t,e,n,l){if(t){const r=d(t,e,n,l);return t[0](r)}}function d(t,e,n,l){return t[1]&&l?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](l(e))):n.ctx}function f(t,e,n,l){if(t[2]&&l){const r=t[2](l(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let l=0;l<n;l+=1)t[l]=e.dirty[l]|r[l];return t}return e.dirty|r}return e.dirty}function h(t,e,n,l,r,o){if(r){const i=d(e,n,l,o);t.p(i,r)}}function p(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 g(e){return e&&o(e.destroy)?e.destroy:t}const $="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function v(t,e){t.appendChild(e)}function y(t,e,n){t.insertBefore(e,n||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function b(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function k(t){return document.createElement(t)}function x(t){return document.createTextNode(t)}function _(){return x(" ")}function C(){return x("")}function T(t,e,n,l){return t.addEventListener(e,n,l),()=>t.removeEventListener(e,n,l)}function D(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function E(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function S(t,e){e=""+e,t.data!==e&&(t.data=e)}function M(t,e,n,l){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function U(t,e){return new t(e)}let L;function H(t){L=t}function B(){if(!L)throw new Error("Function called outside component initialization");return L}function R(t){B().$$.on_mount.push(t)}function N(t){B().$$.after_update.push(t)}function A(){const t=B();return function(e,n){let{cancelable:l=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.$$.callbacks[e];if(r){const o=function(t,e){let{bubbles:n=!1,cancelable:l=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:l})}(e,n,{cancelable:l});return r.slice().forEach((e=>{e.call(t,o)})),!o.defaultPrevented}return!0}}function F(t){return B().$$.context.get(t)}function z(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const P=[],I=[];let j=[];const O=[],W=Promise.resolve();let G=!1;function q(){G||(G=!0,W.then(K))}function Y(){return q(),W}function X(t){j.push(t)}const V=new Set;let J=0;function K(){if(0!==J)return;const t=L;do{try{for(;J<P.length;){const t=P[J];J++,H(t),Q(t.$$)}}catch(t){throw P.length=0,J=0,t}for(H(null),P.length=0,J=0;I.length;)I.pop()();for(let t=0;t<j.length;t+=1){const e=j[t];V.has(e)||(V.add(e),e())}j.length=0}while(P.length);for(;O.length;)O.pop()();G=!1,V.clear(),H(t)}function Q(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(X)}}const Z=new Set;let tt;function et(){tt={r:0,c:[],p:tt}}function nt(){tt.r||r(tt.c),tt=tt.p}function lt(t,e){t&&t.i&&(Z.delete(t),t.i(e))}function rt(t,e,n,l){if(t&&t.o){if(Z.has(t))return;Z.add(t),tt.c.push((()=>{Z.delete(t),l&&(n&&t.d(1),l())})),t.o(e)}else l&&l()}function ot(t){return void 0!==t?.length?t:Array.from(t)}function it(t,e){rt(t,1,1,(()=>{e.delete(t.key)}))}function st(t,e,n,l,o,i,s,a,c,u,d,f){let h=t.length,p=i.length,m=h;const g={};for(;m--;)g[t[m].key]=m;const $=[],v=new Map,y=new Map,w=[];for(m=p;m--;){const t=f(o,i,m),l=n(t);let r=s.get(l);r?w.push((()=>r.p(t,e))):(r=u(l,t),r.c()),v.set(l,$[m]=r),l in g&&y.set(l,Math.abs(m-g[l]))}const b=new Set,k=new Set;function x(t){lt(t,1),t.m(a,d),s.set(t.key,t),d=t.first,p--}for(;h&&p;){const e=$[p-1],n=t[h-1],l=e.key,r=n.key;e===n?(d=e.first,h--,p--):v.has(r)?!s.has(l)||b.has(l)?x(e):k.has(r)?h--:y.get(l)>y.get(r)?(k.add(l),x(e)):(b.add(r),h--):(c(n,s),h--)}for(;h--;){const e=t[h];v.has(e.key)||c(e,s)}for(;p;)x($[p-1]);return r(w),$}function at(t){t&&t.c()}function ct(t,e,l){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,l),X((()=>{const e=t.$$.on_mount.map(n).filter(o);t.$$.on_destroy?t.$$.on_destroy.push(...e):r(e),t.$$.on_mount=[]})),s.forEach(X)}function ut(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];j.forEach((l=>-1===t.indexOf(l)?e.push(l):n.push(l))),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 dt(e,n,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=L;H(e);const f=e.$$={fragment:null,ctx:[],props:a,update:t,not_equal:s,bound:l(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:l(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};c&&c(f.root);let h=!1;if(f.ctx=o?o(e,n.props||{},(function(t,n){const l=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&s(f.ctx[t],f.ctx[t]=l)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](l),h&&function(t,e){-1===t.$$.dirty[0]&&(P.push(t),q(),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),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);f.fragment&&f.fragment.l(t),t.forEach(w)}else f.fragment&&f.fragment.c();n.intro&<(e.$$.fragment),ct(e,n.target,n.anchor),K()}H(d)}class ft{$$=void 0;$$set=void 0;$destroy(){ut(this,1),this.$destroy=t}$on(e,n){if(!o(n))return t;const l=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return l.push(n),()=>{const t=l.indexOf(n);-1!==t&&l.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 ht=[];function pt(t,e){return{subscribe:mt(t,e).subscribe}}function mt(e){let n,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;const r=new Set;function o(t){if(i(e,t)&&(e=t,n)){const t=!ht.length;for(const t of r)t[1](),ht.push(t,e);if(t){for(let t=0;t<ht.length;t+=2)ht[t][0](ht[t+1]);ht.length=0}}}function s(t){o(t(e))}return{set:o,update:s,subscribe:function(i){const a=[i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t];return r.add(a),1===r.size&&(n=l(o,s)||t),i(e),()=>{r.delete(a),0===r.size&&n&&(n(),n=null)}}}}function gt(e,n,l){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 pt(l,((e,l)=>{let u=!1;const d=[];let f=0,h=t;const p=()=>{if(f)return;h();const r=n(i?d[0]:d,e,l);c?e(r):h=o(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 vt(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 yt(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 wt=86400;function bt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return void 0!==t?t instanceof Date?Rt(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):Rt(new Date)}function kt(t){if("number"==typeof t)t={seconds:t};else if("string"==typeof t){let e=0,n=2;for(let l of t.split(":",3))e+=parseInt(l,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 xt(t){return new Date(t.getTime())}function _t(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.setUTCFullYear(t.getUTCFullYear()+n*e.years);let l=t.getUTCMonth()+n*e.months;for(t.setUTCMonth(l),l%=12,l<0&&(l+=12);t.getUTCMonth()!==l;)Dt(t);return t.setUTCDate(t.getUTCDate()+n*e.days),t.setUTCSeconds(t.getUTCSeconds()+n*e.seconds),t}function Ct(t,e){return _t(t,e,-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1))}function Tt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t.setUTCDate(t.getUTCDate()+e),t}function Dt(t){return Tt(t,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function Et(t){return t.setUTCHours(0,0,0,0),t}function St(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())}function Mt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:19;return t.toISOString().substring(0,e)}function Ut(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),l=1;l<e;l++)n[l-1]=arguments[l];return n.every((e=>t.getTime()===e.getTime()))}function Lt(t,e){let n=e-t.getUTCDay();return t.setUTCDate(t.getUTCDate()+(n<=0?n:n-7)),t}function Ht(t){return"string"==typeof t&&t.length<=10}function Bt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t?.seconds??e}function Rt(t){return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()))}function Nt(t,e,n){n.update((n=>n.set(e,t)))}function At(t){r(t),t.clear()}function Ft(t,e,n){e??=t,n.has(e)||n.set(e,setTimeout((()=>{n.delete(e),t()})))}function zt(){return Object.assign(...arguments)}function Pt(t){return Object.keys(t)}function It(t){return Math.floor(t)}function jt(t){return Math.ceil(t)}function Ot(){return Math.min(...arguments)}function Wt(){return Math.max(...arguments)}function Gt(t,e,n){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=document.createElement(t);r.className=e,"string"==typeof n?r.innerText=n:n.domNodes?r.replaceChildren(...n.domNodes):n.html&&(r.innerHTML=n.html);for(let t of l)r.setAttribute(...t);return r}function qt(t){return t.getBoundingClientRect()}function Yt(t,e){for(;e--;)t=t.parentElement;return t}function Xt(t){return qt(t).height}let Vt=Symbol("ec");function Jt(t,e){t[Vt]=e}function Kt(t){return!!t?.[Vt]}function Qt(t){return t[Vt]}function Zt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;for(let l of n.elementsFromPoint(t,e)){if(Kt(l))return l;if(l.shadowRoot){let n=Zt(t,e,l.shadowRoot);if(n)return n}}return null}function te(t){return(t=zt({},t)).currentStart=St(t.currentStart),t.currentEnd=St(t.currentEnd),t.activeStart=St(t.activeStart),t.activeEnd=St(t.activeEnd),t}function ee(t){return t.startsWith("list")}function ne(t){return t.includes("Timeline")}let le=1;function re(t){return t.map((t=>{let e={id:"id"in t?String(t.id):`{generated-${le++}}`,resourceIds:Array.isArray(t.resourceIds)?t.resourceIds.map(String):"resourceId"in t?[String(t.resourceId)]:[],allDay:t.allDay??(Ht(t.start)&&Ht(t.end)),start:bt(t.start),end:bt(t.end),title:t.title||"",titleHTML:t.titleHTML||"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display||"auto",extendedProps:t.extendedProps||{},backgroundColor:t.backgroundColor||t.color,textColor:t.textColor};if(e.allDay){Et(e.start);let t=xt(e.end);Et(e.end),Ut(e.end,t)&&!Ut(e.end,e.start)||Tt(e.end)}return e}))}function oe(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 ie(t,e,n){return{start:t.start>e?t.start:e,end:t.end<n?t.end:n,event:t}}function se(t){t.sort(((t,e)=>t.start-e.start||e.event.allDay-t.event.allDay))}function ae(t,e,n,l,r,i){let s=r.formatRange(t.start,e&&"pointer"!==t.event.display?(a=xt(t.start),c=t.end,a.setUTCHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),0),a):t.start);var a,c;let u;if(n)u=o(n)?n({event:de(t.event),timeText:s,view:te(i)}):n;else{let e;switch(t.event.display){case"background":e=[];break;case"pointer":e=[ce(s,t,l)];break;default:e=[...t.event.allDay?[]:[ce(s,t,l)],Gt("h4",l.eventTitle,t.event.title)]}u={domNodes:e}}return[s,u]}function ce(t,e,n){return Gt("time",n.eventTime,t,[["datetime",Mt(e.start)]])}function ue(t,e,n){return t?(o(t)&&(t=t({event:de(e),view:te(n)})),Array.isArray(t)?t:[t]):[]}function de(t){return he(t,St)}function fe(t){return he(t,xt)}function he(t,e){return(t=zt({},t)).start=e(t.start),t.end=e(t.end),t}function pe(t,e){let n={};if(t.length){let l;se(t);for(let r of t){let t=[],o=Et(xt(r.start));for(;r.end>o;){if(!e.includes(o.getUTCDay())&&(t.push(xt(o)),t.length>1)){let t=o.getTime();n[t]?n[t].chunks.push(r):n[t]={sorted:!1,chunks:[r]}}Tt(o)}t.length?(r.date=t[0],r.days=t.length,r.dates=t):(r.date=Et(xt(r.start)),r.days=1,r.dates=[r.date]),l&&Ut(l.date,r.date)&&(r.prev=l),l=r}}return n}function me(t,e,n){t.top=0,t.prev&&(t.top=t.prev.bottom+1),t.bottom=t.top+n;let l=1,r=t.date.getTime();if(e[r]){e[r].sorted||(e[r].chunks.sort(((t,e)=>t.top-e.top)),e[r].sorted=!0);for(let n of e[r].chunks)if(t.top<n.bottom&&t.bottom>n.top){let e=n.bottom-t.top+1;l+=e,t.top+=e,t.bottom+=e}}return l}function ge(t,e){t.length=e.length;let n=[];for(let e of t)n.push(e?.reposition?.());return n}function $e(t,e,n,l){return t.start<n&&t.end>e&&(void 0===l||t.resourceIds.includes(l.id))}function ve(t){return function(t){return"preview"===t}(t)||we(t)||function(t){return"pointer"===t}(t)}function ye(t){return"background"===t}function we(t){return"ghost"===t}function be(t){return Ce(t,"day")}function ke(t){return Ce(t,"week")}function xe(t){return Ce(t,"month")}function _e(t){return Ce(t,"year")}function Ce(t,e){return{...t,next:"Next "+e,prev:"Previous "+e}}function Te(t){return e=>({...e,view:t})}function De(t){return t.map((t=>({id:String(t.id),title:t.title||"",titleHTML:t.titleHTML||"",eventBackgroundColor:t.eventBackgroundColor,eventTextColor:t.eventTextColor})))}function Ee(t,e){return gt([t,e],(t=>{let[e,n]=t,l=o(n)?{format:n}:new Intl.DateTimeFormat(e,n);return{format:t=>l.format(St(t))}}))}function Se(t,e){return gt([t,e],(t=>{let e,[n,l]=t;if(o(l))e=l;else{let t=new Intl.DateTimeFormat(n,l);e=(e,n)=>{if(e<=n)return t.formatRange(e,n);{let l=t.formatRangeToParts(n,e),r="",o=["startRange","endRange"],i=[!1,!1];for(let t of l){let e=o.indexOf(t.source);e>=0?i[e]||(r+=Me(o[1-e],l),i[e]=!0):r+=t.value}return r}}}return{formatRange:(t,n)=>e(St(t),St(n))}}))}function Me(t,e){let n="";for(let l of e)l.source==t&&(n+=l.value);return n}function Ue(t){return gt([t.resources,t.filterResourcesWithEvents,t._events,t._activeRange],(t=>{let[e,n,l,r]=t,o=e;return n&&(o=e.filter((t=>{for(let e of l)if("background"!==e.display&&e.resourceIds.includes(t.id)&&e.start<r.end&&e.end>r.start)return!0;return!1}))),o.length||(o=De([{}])),o}))}function Le(t,e,n,l,r){t=xt(t);let o=e.seconds<3600,i=[],s=xt(t),a=1;for(_t(t,n.min),_t(s,n.max);t<s;)i.push([Mt(t),l.format(t),i.length&&(a||!o),r&&r.format(t)]),_t(t,e),a=1-a;return i}function He(t,e,n,l,r){let i=kt(t),s=kt(e);if(n){let t=kt(Ot(Bt(i),Wt(0,Bt(s)-wt))),e=kt(Wt(Bt(s),Bt(t)+wt)),a=o(n?.eventFilter)?n.eventFilter:t=>!ye(t.display);t:for(let n of l){let l=_t(xt(n),i),o=_t(xt(n),s),c=_t(xt(n),t),u=_t(xt(n),e);for(let d of r)if(!d.allDay&&a(d)&&d.start<u&&d.end>c){if(d.start<l){let e=Wt((d.start-n)/1e3,Bt(t));e<Bt(i)&&(i.seconds=e)}if(d.end>o){let t=Ot((d.end-n)/1e3,Bt(e));t>Bt(s)&&(s.seconds=t)}if(Bt(i)===Bt(t)&&Bt(s)===Bt(e))break t}}}return{min:i,max:s}}class Be{constructor(n,l){let r=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:"long"},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"},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:52,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}(n=n||[]),i=function(t){let e={date:t=>Et(bt(t)),duration:kt,events:re,eventSources:oe,hiddenDays:t=>[...new Set(t)],highlightedDates:t=>t.map(bt),resources:De,scrollTime:kt,slotDuration:kt,slotMaxTime:kt,slotMinTime:kt};for(let n of t)n.createParsers?.(e);return e}(n);r=Re(r,i),l=Re(l,i);for(let[t,e]of Object.entries(r))this[t]=mt(e);this._queue=mt(new Map),this._queue2=mt(new Map),this._tasks=new Map,this._auxiliary=mt([]),this._dayGrid=gt(this.view,(t=>t?.startsWith("dayGrid"))),this._currentRange=function(t){return gt([t.date,t.duration,t.firstDay,t._dayGrid],(t=>{let e,[n,l,r,o]=t,i=xt(n);return o?i.setUTCDate(1):l.inWeeks&&Lt(i,r),e=_t(xt(i),l),{start:i,end:e}}))}(this),this._activeRange=function(t){return gt([t._currentRange,t.firstDay,t.slotMaxTime,t._dayGrid],(t=>{let[e,n,l,r]=t,o=xt(e.start),i=xt(e.end);if(r)Lt(o,n),function(t,e){let n=e-t.getUTCDay();t.setUTCDate(t.getUTCDate()+(n>=0?n:n+7))}(i,n);else if(l.days||l.seconds>wt){_t(Dt(i),l);let t=Dt(xt(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([]),l=0,r={};return gt([t.events,t.eventSources,t._activeRange,t._fetchedRange,t.lazyFetching,t.loading],((n,i)=>Nt((()=>{let[t,r,s,a,c,u]=n;if(r.length){if(!a.start||a.start>s.start||a.end<s.end||!c){e&&e.abort(),e=new AbortController,o(u)&&!l&&u(!0);let t=()=>{0==--l&&o(u)&&u(!1)},n=[],c=e=>t(),d=e=>{n=n.concat(re(e)),i(n),t()},f=Mt(s.start),h=Mt(s.end);for(let t of r){if(o(t.events)){let e=t.events({start:St(s.start),end:St(s.end),startStr:f,endStr:h},d,c);void 0!==e&&Promise.resolve(e).then(d,c)}else{let n=o(t.extraParams)?t.extraParams():zt({},t.extraParams);n.start=f,n.end=h,n=new URLSearchParams(n);let l,r=t.url,i={};["GET","HEAD"].includes(t.method)?r+=(r.includes("?")?"&":"?")+n:(i["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",l=String(n)),fetch(r,{method:t.method,headers:i,body:l,signal:e.signal,credentials:"same-origin"}).then((t=>t.json())).then(d).catch(c)}++l}a.start=s.start,a.end=s.end}}else i(t)}),r,t._queue)),[]).subscribe(n.set),n}(this),this._now=pt(bt(),(t=>{let e=setInterval((()=>{t(bt())}),1e3);return()=>clearInterval(e)})),this._today=function(t){return gt(t._now,(t=>Et(xt(t))))}(this),this._intlEventTime=Se(this.locale,this.eventTimeFormat),this._intlSlotLabel=Ee(this.locale,this.slotLabelFormat),this._intlDayHeader=Ee(this.locale,this.dayHeaderFormat),this._intlDayHeaderAL=Ee(this.locale,this.dayHeaderAriaLabelFormat),this._intlTitle=Se(this.locale,this.titleFormat),this._bodyEl=mt(void 0),this._scrollable=mt(!1),this._viewTitle=function(t){return gt([t.date,t._activeRange,t._intlTitle,t._dayGrid],(t=>{let[e,n,l,r]=t;return r?l.formatRange(e,e):l.formatRange(n.start,Dt(xt(n.end)))}))}(this),this._viewDates=function(t){return gt([t._activeRange,t.hiddenDays],(e=>{let[n,l]=e,r=[],o=Et(xt(n.start)),i=Et(xt(n.end));for(;o<i;)l.includes(o.getUTCDay())||r.push(xt(o)),Tt(o);return!r.length&&l.length&&l.length<7&&(t.date.update((t=>{for(;l.includes(t.getUTCDay());)Tt(t);return t})),r=a(t._viewDates)),r}))}(this),this._view=function(t){return gt([t.view,t._viewTitle,t._currentRange,t._activeRange],(t=>function(t,e,n,l){return{type:t,title:e,currentStart:n.start,currentEnd:n.end,activeStart:l.start,activeEnd:l.end,calendar:void 0}}(...t)))}(this),this._viewComponent=mt(void 0),this._resBgColor=mt(t),this._resTxtColor=mt(t),this._interaction=mt({}),this._iEvents=mt([null,null]),this._iClasses=mt(e),this._iClass=mt(void 0),this._set=(t,e)=>{Fe(t,this)&&(i[t]&&(e=i[t](e)),this[t].set(e))},this._get=t=>Fe(t,this)?a(this[t]):void 0;for(let t of n)t.createStores?.(this);l.view&&this.view.set(l.view);let s=new Set([...Pt(r.views),...Pt(l.views??{})]);for(let t of s){let e=Ne(r,r.views[t]??{}),n=Ne(e,l,l.views?.[t]??{}),i=n.component;Ae(n,this);for(let t of Pt(n)){let{set:l,_set:r=l,...i}=this[t];this[t]={set:["buttonText","theme"].includes(t)?i=>{if(o(i)){let o=i(e[t]);n[t]=o,l(l===r?o:i)}else n[t]=i,l(i)}:e=>{n[t]=e,l(e)},_set:r,...i}}this.view.subscribe((e=>{if(e===t){this._viewComponent.set(i),o(n.viewDidMount)&&Y().then((()=>n.viewDidMount(a(this._view))));for(let t of Pt(n))this[t]._set(n[t])}}))}}}function Re(t,e){let n={...t};for(let t of Pt(e))t in n&&(n[t]=e[t](n[t]));if(t.views){n.views={};for(let l of Pt(t.views))n.views[l]=Re(t.views[l],e)}return n}function Ne(){let t={};for(var e=arguments.length,n=new Array(e),l=0;l<e;l++)n[l]=arguments[l];for(let e of n){let n={};for(let l of["buttonText","theme"])o(e[l])&&(n[l]=e[l](t[l]));t={...t,...e,...n}}return t}function Ae(t,e){Pt(t).filter((t=>!Fe(t,e)||"view"==t)).forEach((e=>delete t[e]))}function Fe(t,e){return e.hasOwnProperty(t)&&"_"!==t[0]}function ze(t,e,n){const l=t.slice();return l[25]=e[n],l}function Pe(t){let e,n,l,r,o,i=t[5][t[25]]+"";function s(){return t[22](t[25])}return{c(){e=k("button"),n=x(i),E(e,"class",l=t[3].button+(t[7]===t[25]?" "+t[3].active:"")+" ec-"+t[25])},m(t,l){y(t,e,l),v(e,n),r||(o=T(e,"click",s),r=!0)},p(r,o){t=r,33&o&&i!==(i=t[5][t[25]]+"")&&S(n,i),137&o&&l!==(l=t[3].button+(t[7]===t[25]?" "+t[3].active:"")+" ec-"+t[25])&&E(e,"class",l)},d(t){t&&w(e),r=!1,o()}}}function Ie(t){let e,n,l,r,i,s=t[6][t[25]].text+"";return{c(){e=k("button"),n=x(s),E(e,"class",l=t[3].button+" ec-"+t[25])},m(l,s){y(l,e,s),v(e,n),r||(i=T(e,"click",(function(){o(t[6][t[25]].click)&&t[6][t[25]].click.apply(this,arguments)})),r=!0)},p(r,o){t=r,65&o&&s!==(s=t[6][t[25]].text+"")&&S(n,s),9&o&&l!==(l=t[3].button+" ec-"+t[25])&&E(e,"class",l)},d(t){t&&w(e),r=!1,i()}}}function je(t){let e,n,l,r,o,i=t[5][t[25]]+"";return{c(){e=k("button"),n=x(i),E(e,"class",l=t[3].button+" ec-"+t[25]),e.disabled=t[1]},m(l,i){y(l,e,i),v(e,n),r||(o=T(e,"click",t[21]),r=!0)},p(t,r){33&r&&i!==(i=t[5][t[25]]+"")&&S(n,i),9&r&&l!==(l=t[3].button+" ec-"+t[25])&&E(e,"class",l),2&r&&(e.disabled=t[1])},d(t){t&&w(e),r=!1,o()}}}function Oe(t){let e,n,l,r,o,i,s,a;return{c(){e=k("button"),n=k("i"),E(n,"class",l=t[3].icon+" ec-"+t[25]),E(e,"class",r=t[3].button+" ec-"+t[25]),E(e,"aria-label",o=t[5].next),E(e,"title",i=t[5].next)},m(l,r){y(l,e,r),v(e,n),s||(a=T(e,"click",t[19]),s=!0)},p(t,s){9&s&&l!==(l=t[3].icon+" ec-"+t[25])&&E(n,"class",l),9&s&&r!==(r=t[3].button+" ec-"+t[25])&&E(e,"class",r),32&s&&o!==(o=t[5].next)&&E(e,"aria-label",o),32&s&&i!==(i=t[5].next)&&E(e,"title",i)},d(t){t&&w(e),s=!1,a()}}}function We(t){let e,n,l,r,o,i,s,a;return{c(){e=k("button"),n=k("i"),E(n,"class",l=t[3].icon+" ec-"+t[25]),E(e,"class",r=t[3].button+" ec-"+t[25]),E(e,"aria-label",o=t[5].prev),E(e,"title",i=t[5].prev)},m(l,r){y(l,e,r),v(e,n),s||(a=T(e,"click",t[18]),s=!0)},p(t,s){9&s&&l!==(l=t[3].icon+" ec-"+t[25])&&E(n,"class",l),9&s&&r!==(r=t[3].button+" ec-"+t[25])&&E(e,"class",r),32&s&&o!==(o=t[5].prev)&&E(e,"aria-label",o),32&s&&i!==(i=t[5].prev)&&E(e,"title",i)},d(t){t&&w(e),s=!1,a()}}}function Ge(t){let e,n,l,r,i;return{c(){e=k("h2"),E(e,"class",n=t[3].title)},m(n,o){y(n,e,o),r||(i=g(l=vt.call(null,e,t[4])),r=!0)},p(t,r){8&r&&n!==(n=t[3].title)&&E(e,"class",n),l&&o(l.update)&&16&r&&l.update.call(null,t[4])},d(t){t&&w(e),r=!1,i()}}}function qe(t){let e;function n(t,e){return"title"==t[25]?Ge:"prev"==t[25]?We:"next"==t[25]?Oe:"today"==t[25]?je:t[6][t[25]]?Ie:""!=t[25]?Pe:void 0}let l=n(t),r=l&&l(t);return{c(){r&&r.c(),e=C()},m(t,n){r&&r.m(t,n),y(t,e,n)},p(t,o){l===(l=n(t))&&r?r.p(t,o):(r&&r.d(1),r=l&&l(t),r&&(r.c(),r.m(e.parentNode,e)))},d(t){t&&w(e),r&&r.d(t)}}}function Ye(e){let n,l=ot(e[0]),r=[];for(let t=0;t<l.length;t+=1)r[t]=qe(ze(e,l,t));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();n=C()},m(t,e){for(let n=0;n<r.length;n+=1)r[n]&&r[n].m(t,e);y(t,n,e)},p(t,e){let[o]=e;if(917759&o){let e;for(l=ot(t[0]),e=0;e<l.length;e+=1){const i=ze(t,l,e);r[e]?r[e].p(i,o):(r[e]=qe(i),r[e].c(),r[e].m(n.parentNode,n))}for(;e<r.length;e+=1)r[e].d(1);r.length=l.length}},i:t,o:t,d(t){t&&w(n),b(r,t)}}}function Xe(t,e,n){let l,r,o,i,s,a,u,d,f,{buttons:h}=e,{_currentRange:p,_viewTitle:g,buttonText:$,customButtons:v,date:y,duration:w,hiddenDays:b,theme:k,view:x}=F("state");c(t,p,(t=>n(20,i=t))),c(t,g,(t=>n(4,a=t))),c(t,$,(t=>n(5,u=t))),c(t,v,(t=>n(6,d=t))),c(t,y,(t=>n(2,r=t))),c(t,w,(t=>n(23,l=t))),c(t,b,(t=>n(24,o=t))),c(t,k,(t=>n(3,s=t))),c(t,x,(t=>n(7,f=t)));let _,C=Et(bt());return t.$$set=t=>{"buttons"in t&&n(0,h=t.buttons)},t.$$.update=()=>{1048576&t.$$.dirty&&n(1,_=C>=i.start&&C<i.end||null)},[h,_,r,s,a,u,d,f,p,g,$,v,y,w,b,k,x,C,function(){let t=Ct(r,l);if(o.length&&o.length<7)for(;o.includes(t.getUTCDay());)Dt(t);m(y,r=t,r)},function(){m(y,r=_t(r,l),r)},i,()=>m(y,r=xt(C),r),t=>m(x,f=t,f)]}class Ve extends ft{constructor(t){super(),dt(this,t,Xe,Ye,i,{buttons:0})}}function Je(t,e,n){const l=t.slice();return l[5]=e[n],l}function Ke(t,e,n){const l=t.slice();return l[8]=e[n],l}function Qe(t){let e,n;return e=new Ve({props:{buttons:t[8]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.buttons=t[8]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Ze(t){let e,n,l,r;return n=new Ve({props:{buttons:t[8]}}),{c(){e=k("div"),at(n.$$.fragment),E(e,"class",l=t[1].buttonGroup)},m(t,l){y(t,e,l),ct(n,e,null),r=!0},p(t,o){const i={};1&o&&(i.buttons=t[8]),n.$set(i),(!r||2&o&&l!==(l=t[1].buttonGroup))&&E(e,"class",l)},i(t){r||(lt(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function tn(t){let e,n,l,r;const o=[Ze,Qe],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(),l=C()},m(t,n){i[e].m(t,n),y(t,l,n),r=!0},p(t,r){let a=e;e=s(t),e===a?i[e].p(t,r):(et(),rt(i[a],1,1,(()=>{i[a]=null})),nt(),n=i[e],n?n.p(t,r):(n=i[e]=o[e](t),n.c()),lt(n,1),n.m(l.parentNode,l))},i(t){r||(lt(n),r=!0)},o(t){rt(n),r=!1},d(t){t&&w(l),i[e].d(t)}}}function en(t){let e,n,l,r=ot(t[0][t[5]]),o=[];for(let e=0;e<r.length;e+=1)o[e]=tn(Ke(t,r,e));const i=t=>rt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=k("div");for(let t=0;t<o.length;t+=1)o[t].c();n=_()},m(t,r){y(t,e,r);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);v(e,n),l=!0},p(t,l){if(3&l){let s;for(r=ot(t[0][t[5]]),s=0;s<r.length;s+=1){const i=Ke(t,r,s);o[s]?(o[s].p(i,l),lt(o[s],1)):(o[s]=tn(i),o[s].c(),lt(o[s],1),o[s].m(e,n))}for(et(),s=r.length;s<o.length;s+=1)i(s);nt()}},i(t){if(!l){for(let t=0;t<r.length;t+=1)lt(o[t]);l=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)rt(o[t]);l=!1},d(t){t&&w(e),b(o,t)}}}function nn(t){let e,n,l,r=ot(Object.keys(t[0])),o=[];for(let e=0;e<r.length;e+=1)o[e]=en(Je(t,r,e));const i=t=>rt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=k("nav");for(let t=0;t<o.length;t+=1)o[t].c();E(e,"class",n=t[1].toolbar)},m(t,n){y(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);l=!0},p(t,s){let[a]=s;if(3&a){let n;for(r=ot(Object.keys(t[0])),n=0;n<r.length;n+=1){const l=Je(t,r,n);o[n]?(o[n].p(l,a),lt(o[n],1)):(o[n]=en(l),o[n].c(),lt(o[n],1),o[n].m(e,null))}for(et(),n=r.length;n<o.length;n+=1)i(n);nt()}(!l||2&a&&n!==(n=t[1].toolbar))&&E(e,"class",n)},i(t){if(!l){for(let t=0;t<r.length;t+=1)lt(o[t]);l=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)rt(o[t]);l=!1},d(t){t&&w(e),b(o,t)}}}function ln(t,e,n){let l,r,{headerToolbar:o,theme:i}=F("state");c(t,o,(t=>n(4,l=t))),c(t,i,(t=>n(1,r=t)));let s={start:[],center:[],end:[]};return t.$$.update=()=>{if(17&t.$$.dirty)for(let t of Object.keys(s))n(0,s[t]=l[t].split(" ").map((t=>t.split(","))),s)},[s,r,o,i,l]}class rn extends ft{constructor(t){super(),dt(this,t,ln,nn,i,{})}}function on(t,e,n){const l=t.slice();return l[11]=e[n],l}function sn(t){let e,n,l;var r=t[11];return r&&(e=U(r,{})),{c(){e&&at(e.$$.fragment),n=C()},m(t,r){e&&ct(e,t,r),y(t,n,r),l=!0},p(t,l){if(1&l&&r!==(r=t[11])){if(e){et();const t=e;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}r?(e=U(r,{}),at(e.$$.fragment),lt(e.$$.fragment,1),ct(e,n.parentNode,n)):e=null}},i(t){l||(e&<(e.$$.fragment,t),l=!0)},o(t){e&&rt(e.$$.fragment,t),l=!1},d(t){t&&w(n),e&&ut(e,t)}}}function an(t){let e,n,l=ot(t[0]),r=[];for(let e=0;e<l.length;e+=1)r[e]=sn(on(t,l,e));const o=t=>rt(r[t],1,1,(()=>{r[t]=null}));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);y(t,e,l),n=!0},p(t,n){let[i]=n;if(1&i){let n;for(l=ot(t[0]),n=0;n<l.length;n+=1){const o=on(t,l,n);r[n]?(r[n].p(o,i),lt(r[n],1)):(r[n]=sn(o),r[n].c(),lt(r[n],1),r[n].m(e.parentNode,e))}for(et(),n=l.length;n<r.length;n+=1)o(n);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)lt(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function cn(t,e,n){let l,r,i,s,{datesSet:a,_auxiliary:u,_activeRange:d,_queue:f,_view:h}=F("state");c(t,a,(t=>n(7,r=t))),c(t,u,(t=>n(0,s=t))),c(t,d,(t=>n(5,i=t))),c(t,h,(t=>n(6,l=t)));let p={};return t.$$.update=()=>{32&t.$$.dirty&&function(t){o(r)&&Nt((()=>r({start:St(t.start),end:St(t.end),startStr:Mt(t.start),endStr:Mt(t.end),view:te(l)})),p,f)}(i)},[s,a,u,d,h,i]}let un=class extends ft{constructor(t){super(),dt(this,t,cn,an,i,{})}};function dn(t){let e,n,l,r,o,i,s,a,c,u,d;n=new rn({});var f=t[5];return f&&(r=U(f,{})),a=new un({}),{c(){e=k("div"),at(n.$$.fragment),l=_(),r&&at(r.$$.fragment),s=_(),at(a.$$.fragment),E(e,"class",o=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")),E(e,"role",i=ee(t[4])?"list":"table"),M(e,"height",t[3])},m(o,i){y(o,e,i),ct(n,e,null),v(e,l),r&&ct(r,e,null),y(o,s,i),ct(a,o,i),c=!0,u||(d=T(window,"resize",t[17]),u=!0)},p(t,n){if(32&n[0]&&f!==(f=t[5])){if(r){et();const t=r;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}f?(r=U(f,{}),at(r.$$.fragment),lt(r.$$.fragment,1),ct(r,e,null)):r=null}(!c||7&n[0]&&o!==(o=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")))&&E(e,"class",o),(!c||16&n[0]&&i!==(i=ee(t[4])?"list":"table"))&&E(e,"role",i),8&n[0]&&M(e,"height",t[3])},i(t){c||(lt(n.$$.fragment,t),r&<(r.$$.fragment,t),lt(a.$$.fragment,t),c=!0)},o(t){rt(n.$$.fragment,t),r&&rt(r.$$.fragment,t),rt(a.$$.fragment,t),c=!1},d(t){t&&(w(e),w(s)),ut(n),r&&ut(r),ut(a,t),u=!1,d()}}}function fn(t,e,n){let l,r,o,i,s,u,d,f,h,p,g,{plugins:$=[]}=e,{options:v={}}=e,y=B(),w=new Be($,v);var b,k;b="state",k=w,B().$$.context.set(b,k);let{_viewComponent:x,_bodyEl:_,_interaction:C,_iClass:T,_events:D,_queue:E,_queue2:S,_tasks:M,_scrollable:U,height:L,theme:H,view:R}=w;c(t,x,(t=>n(5,g=t))),c(t,_,(t=>n(32,l=t))),c(t,C,(t=>n(35,s=t))),c(t,T,(t=>n(2,f=t))),c(t,D,(t=>n(36,u=t))),c(t,E,(t=>n(34,i=t))),c(t,S,(t=>n(33,o=t))),c(t,U,(t=>n(0,r=t))),c(t,L,(t=>n(3,h=t))),c(t,H,(t=>n(1,d=t))),c(t,R,(t=>n(4,p=t)));let A={...v};function F(t,e){return w._set(t,e),this}var z;function P(){var t;l&&m(U,r=(t=l).scrollHeight>t.clientHeight,r)}return z=()=>{At(i)},B().$$.before_update.push(z),N((()=>{At(o),Ft(P,null,M)})),t.$$set=t=>{"plugins"in t&&n(18,$=t.plugins),"options"in t&&n(19,v=t.options)},t.$$.update=()=>{if(524288&t.$$.dirty[0])for(let[t,e]of function(t,e){let n=[];for(let l of Pt(t))t[l]!==e[l]&&n.push([l,t[l]]);return zt(e,t),n}(v,A))F(t,e)},[r,d,f,h,p,g,x,_,C,T,D,E,S,U,L,H,R,P,$,v,F,function(t){let e=w._get(t);return e instanceof Date?St(e):e},function(){return w._fetchedRange.set({start:void 0,end:void 0}),this},function(){return u.map(de)},function(t){for(let e of u)if(e.id==t)return de(e);return null},function(t){return u.push(re([t])[0]),D.set(u),this},function(t){for(let e of u)if(e.id==t.id){zt(e,re([t])[0]),D.set(u);break}return this},function(t){let e=u.findIndex((e=>e.id==t));return e>=0&&(u.splice(e,1),D.set(u)),this},function(){return te(a(w._view))},function(){return s.action&&s.action.unselect(),this},function(t,e){let n=Zt(t,e);return n?Qt(n)(t,e):null},function(){ut(y,!0)}]}class hn extends ft{constructor(t){super(),dt(this,t,fn,dn,i,{plugins:18,options:19,setOption:20,getOption:21,refetchEvents:22,getEvents:23,getEventById:24,addEvent:25,updateEvent:26,removeEventById:27,getView:28,unselect:29,dateFromPoint:30,destroy:31},null,[-1,-1])}get setOption(){return this.$$.ctx[20]}get getOption(){return this.$$.ctx[21]}get refetchEvents(){return this.$$.ctx[22]}get getEvents(){return this.$$.ctx[23]}get getEventById(){return this.$$.ctx[24]}get addEvent(){return this.$$.ctx[25]}get updateEvent(){return this.$$.ctx[26]}get removeEventById(){return this.$$.ctx[27]}get getView(){return this.$$.ctx[28]}get unselect(){return this.$$.ctx[29]}get dateFromPoint(){return this.$$.ctx[30]}get destroy(){return this.$$.ctx[31]}}function pn(t,e,n){const l=t.slice();return l[8]=e[n],l}function mn(t){let e,n,l,r,i,s,a,c;return{c(){e=k("div"),n=k("span"),i=_(),E(n,"aria-label",l=t[2].format(t[8])),E(e,"class",s=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()]),E(e,"role","columnheader")},m(l,o){y(l,e,o),v(e,n),v(e,i),a||(c=g(r=vt.call(null,n,t[3].format(t[8]))),a=!0)},p(i,a){t=i,6&a&&l!==(l=t[2].format(t[8]))&&E(n,"aria-label",l),r&&o(r.update)&&10&a&&r.update.call(null,t[3].format(t[8])),3&a&&s!==(s=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()])&&E(e,"class",s)},d(t){t&&w(e),a=!1,c()}}}function gn(e){let n,l,r,o,i,s,a,c=ot(e[1]),u=[];for(let t=0;t<c.length;t+=1)u[t]=mn(pn(e,c,t));return{c(){n=k("div"),l=k("div");for(let t=0;t<u.length;t+=1)u[t].c();o=_(),i=k("div"),E(l,"class",r=e[0].days),E(l,"role","row"),E(i,"class",s=e[0].hiddenScroll),E(n,"class",a=e[0].header)},m(t,e){y(t,n,e),v(n,l);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(l,null);v(n,o),v(n,i)},p(t,e){let[o]=e;if(15&o){let e;for(c=ot(t[1]),e=0;e<c.length;e+=1){const n=pn(t,c,e);u[e]?u[e].p(n,o):(u[e]=mn(n),u[e].c(),u[e].m(l,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=c.length}1&o&&r!==(r=t[0].days)&&E(l,"class",r),1&o&&s!==(s=t[0].hiddenScroll)&&E(i,"class",s),1&o&&a!==(a=t[0].header)&&E(n,"class",a)},i:t,o:t,d(t){t&&w(n),b(u,t)}}}function $n(t,e,n){let l,r,o,i,{theme:s,_intlDayHeader:a,_intlDayHeaderAL:u,_days:d}=F("state");return c(t,s,(t=>n(0,l=t))),c(t,a,(t=>n(3,i=t))),c(t,u,(t=>n(2,o=t))),c(t,d,(t=>n(1,r=t))),[l,r,o,i,s,a,u,d]}let vn=class extends ft{constructor(t){super(),dt(this,t,$n,gn,i,{})}};function yn(t){let e,n,l,i,s,a,c,u,d,f,h;var p=t[8].resizer;function m(t,e){return{props:{event:t[0]}}}return p&&(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[33](t[8],"x"))&&t[33](t[8],"x").apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),a&&at(a.$$.fragment),E(n,"class",l=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",c=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(l,r){y(l,e,r),v(e,n),v(e,s),a&&ct(a,e,null),t[53](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){o(t[7]||void 0)&&(t[7]||void 0).apply(this,arguments)})),T(e,"keydown",(function(){o(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){o(t[32](t[9],t[1]))&&t[32](t[9],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){o(t[32](t[10],t[1]))&&t[32](t[10],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){o(!ve(t[1])&&t[33](t[8]))&&(!ve(t[1])&&t[33](t[8])).apply(this,arguments)}))],f=!0)},p(r,s){if(t=r,(!d||4&s[0]&&l!==(l=t[2].eventBody))&&E(n,"class",l),i&&o(i.update)&&64&s[0]&&i.update.call(null,t[6]),256&s[0]&&p!==(p=t[8].resizer)){if(a){et();const t=a;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[33](t[8],"x"))&&t[33](t[8],"x").apply(this,arguments)})),at(a.$$.fragment),lt(a.$$.fragment,1),ct(a,e,null)):a=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),a.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&c!==(c=t[7]?"button":void 0))&&E(e,"role",c),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(a&<(a.$$.fragment,t),d=!0)},o(t){a&&rt(a.$$.fragment,t),d=!1},d(n){n&&w(e),a&&ut(a),t[53](null),f=!1,r(h)}}}function wn(t,e,n){let l,r,i,s,a,u,d,f,h,p,m,g,$,v,y,w,b,k,x,_,C,T,D,E,S,M,U,{chunk:L}=e,{longChunks:H={}}=e,{inPopup:B=!1}=e,{dates:A=[]}=e,{dayMaxEvents:z,displayEventEnd:P,eventAllUpdated:j,eventBackgroundColor:O,eventTextColor:W,eventClick:G,eventColor:q,eventContent:Y,eventClassNames:X,eventDidMount:V,eventMouseEnter:J,eventMouseLeave:K,theme:Q,_view:Z,_intlEventTime:tt,_interaction:et,_iClasses:nt,_resBgColor:lt,_resTxtColor:rt,_hiddenEvents:ot,_popupDate:it,_tasks:st}=F("state");c(t,z,(t=>n(56,i=t))),c(t,P,(t=>n(45,g=t))),c(t,j,(t=>n(58,d=t))),c(t,O,(t=>n(51,k=t))),c(t,W,(t=>n(48,y=t))),c(t,G,(t=>n(41,l=t))),c(t,q,(t=>n(50,b=t))),c(t,Y,(t=>n(44,m=t))),c(t,X,(t=>n(46,$=t))),c(t,V,(t=>n(59,f=t))),c(t,J,(t=>n(9,_=t))),c(t,K,(t=>n(10,C=t))),c(t,Q,(t=>n(2,p=t))),c(t,Z,(t=>n(42,u=t))),c(t,tt,(t=>n(43,h=t))),c(t,et,(t=>n(8,a=t))),c(t,nt,(t=>n(47,v=t))),c(t,lt,(t=>n(52,x=t))),c(t,rt,(t=>n(49,w=t))),c(t,ot,(t=>n(55,r=t))),c(t,it,(t=>n(57,s=t)));let at,ct,ut=1,dt=!1;function ft(t,e){return!ve(e)&&o(t)?e=>t({event:de(D),el:T,jsEvent:e,view:te(u)}):void 0}return R((()=>{o(f)&&f({event:de(D),timeText:U,el:T,view:te(u)})})),N((()=>{o(d)&&!ve(at)&&Ft((()=>d({view:te(u)})),"eau",st)})),t.$$set=t=>{"chunk"in t&&n(34,L=t.chunk),"longChunks"in t&&n(35,H=t.longChunks),"inPopup"in t&&n(36,B=t.inPopup),"dates"in t&&n(37,A=t.dates)},t.$$.update=()=>{if(8&t.$$.dirty[1]&&n(0,D=L.event),37&t.$$.dirty[0]|4164360&t.$$.dirty[1]){n(1,at=D.display);let t=D.backgroundColor||x(D)||k||b,e=D.textColor||w(D)||y,l=ut;if(D._margin){let[t,e]=D._margin;L.date>=e[0]&&L.date<=e[e.length-1]&&(l=t)}n(5,S=`width:calc(${100*L.days}% + ${7*(L.days-1)}px);margin-top:${l}px;`),t&&n(5,S+=`background-color:${t};`),e&&n(5,S+=`color:${e};`),dt&&n(5,S+="visibility:hidden;"),n(4,E=[p.event,...v([],D),...ue($,D,u)].join(" "))}4&t.$$.dirty[0]|30728&t.$$.dirty[1]&&n(6,[U,M]=ae(L,g,m,p,h,u),M),2&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(7,ct=ft(l,at))},[D,at,p,T,E,S,M,ct,a,_,C,z,P,j,O,W,G,q,Y,X,V,J,K,Q,Z,tt,et,nt,lt,rt,ot,it,ft,function(t,e){return t.action?t=>a.action.drag(D,t,e,B?s:null,[qt(T).top-qt(Yt(T,1)).top,A]):void 0},L,H,B,A,function(){T&&(n(39,ut=me(L,H,Xt(T))),!0===i?function(){let t=Yt(T,2),e=Xt(t)-Xt(t.firstElementChild)-function(t){let e=0;for(let n=0;n<L.days&&(e=Wt(e,Xt(t.lastElementChild)),t=t.nextElementSibling);++n);return e}(t);n(40,dt=L.bottom>e);let l=!1;for(let t of L.dates){let e=r[t.getTime()];if(e){let t=e.size;dt?e.add(L.event):e.delete(L.event),t!==e.size&&(l=!0)}}l&&ot.set(r)}():n(40,dt=!1))},ut,dt,l,u,h,m,g,$,v,y,w,b,k,x,function(t){I[t?"unshift":"push"]((()=>{T=t,n(3,T)}))}]}let bn=class extends ft{constructor(t){super(),dt(this,t,wn,yn,i,{chunk:34,longChunks:35,inPopup:36,dates:37,reposition:38},null,[-1,-1,-1])}get reposition(){return this.$$.ctx[38]}};function kn(t,e,n){const l=t.slice();return l[20]=e[n],l}function xn(t,e){let n,l,r;return l=new bn({props:{chunk:e[20],inPopup:!0}}),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){e=t;const r={};1&n&&(r.chunk=e[20]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),ut(l,t)}}}function _n(t){let e,n,l,i,s,a,c,u,d,f,h,p,m,$,b,C,S,M=[],U=new Map,L=ot(t[0]);const H=t=>t[20].event;for(let e=0;e<L.length;e+=1){let n=kn(t,L,e),l=H(n);U.set(l,M[e]=xn(l,n))}return{c(){e=k("div"),n=k("div"),l=k("time"),a=_(),c=k("a"),u=x("×"),h=_(),p=k("div");for(let t=0;t<M.length;t+=1)M[t].c();E(l,"datetime",i=Mt(t[3],10)),E(c,"role","button"),E(c,"tabindex","0"),E(c,"aria-label",d=t[6].close),E(n,"class",f=t[4].dayHead),E(p,"class",m=t[4].events),E(e,"class",$=t[4].popup),E(e,"style",t[2])},m(r,o){y(r,e,o),v(e,n),v(n,l),v(n,a),v(n,c),v(c,u),v(e,h),v(e,p);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(p,null);t[16](e),b=!0,C||(S=[g(s=vt.call(null,l,t[5].format(t[3]))),T(c,"click",D(t[13])),T(c,"keydown",$t(t[13])),g(yt.call(null,e,"pointerdown")),T(e,"pointerdown",D(t[15])),T(e,"pointerdownoutside",t[14])],C=!0)},p(t,r){let[a]=r;(!b||8&a&&i!==(i=Mt(t[3],10)))&&E(l,"datetime",i),s&&o(s.update)&&40&a&&s.update.call(null,t[5].format(t[3])),(!b||64&a&&d!==(d=t[6].close))&&E(c,"aria-label",d),(!b||16&a&&f!==(f=t[4].dayHead))&&E(n,"class",f),1&a&&(L=ot(t[0]),et(),M=st(M,a,H,0,t,L,U,p,it,xn,null,kn),nt()),(!b||16&a&&m!==(m=t[4].events))&&E(p,"class",m),(!b||16&a&&$!==($=t[4].popup))&&E(e,"class",$),(!b||4&a)&&E(e,"style",t[2])},i(t){if(!b){for(let t=0;t<L.length;t+=1)lt(M[t]);b=!0}},o(t){for(let t=0;t<M.length;t+=1)rt(M[t]);b=!1},d(n){n&&w(e);for(let t=0;t<M.length;t+=1)M[t].d();t[16](null),C=!1,r(S)}}}function Cn(t,e,n){let l,r,o,i,s,a,u,{buttonText:d,theme:f,_interaction:h,_intlDayPopover:p,_popupDate:g,_popupChunks:$}=F("state");c(t,d,(t=>n(6,a=t))),c(t,f,(t=>n(4,i=t))),c(t,h,(t=>n(17,l=t))),c(t,p,(t=>n(5,s=t))),c(t,g,(t=>n(3,r=t))),c(t,$,(t=>n(0,o=t)));let v="";function y(){u&&(n(2,v=""),Y().then((()=>{o.length?function(){let t,e,l=Yt(u,1),r=Yt(l,3),o=qt(u),i=qt(l),s=qt(r);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(g,r=null,r)}return t.$$.update=()=>{1&t.$$.dirty&&o&&y()},[o,u,v,r,i,s,a,d,f,h,p,g,$,w,function(t){w(),l.action?.noClick()},function(e){z.call(this,t,e)},function(t){I[t?"unshift":"push"]((()=>{u=t,n(1,u)}))}]}class Tn extends ft{constructor(t){super(),dt(this,t,Cn,_n,i,{})}}function Dn(t,e,n){const l=t.slice();return l[42]=e[n],l[43]=e,l[44]=n,l}function En(t){let e,n,l,r;return n=new bn({props:{chunk:t[2][1]}}),{c(){e=k("div"),at(n.$$.fragment),E(e,"class",l=t[13].events)},m(t,l){y(t,e,l),ct(n,e,null),r=!0},p(t,o){const i={};4&o[0]&&(i.chunk=t[2][1]),n.$set(i),(!r||8192&o[0]&&l!==(l=t[13].events))&&E(e,"class",l)},i(t){r||(lt(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function Sn(t){let e,n,l,r;return n=new bn({props:{chunk:t[2][0]}}),{c(){e=k("div"),at(n.$$.fragment),E(e,"class",l=t[13].events+" "+t[13].preview)},m(t,l){y(t,e,l),ct(n,e,null),r=!0},p(t,o){const i={};4&o[0]&&(i.chunk=t[2][0]),n.$set(i),(!r||8192&o[0]&&l!==(l=t[13].events+" "+t[13].preview))&&E(e,"class",l)},i(t){r||(lt(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function Mn(t,e){let n,l,r,o=e[44];const i=()=>e[36](l,o),s=()=>e[36](null,o);let a={chunk:e[42],longChunks:e[1],dates:e[3]};return l=new bn({props:a}),i(),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){o!==(e=t)[44]&&(s(),o=e[44],i());const r={};32&n[0]&&(r.chunk=e[42]),2&n[0]&&(r.longChunks=e[1]),8&n[0]&&(r.dates=e[3]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),s(),ut(l,t)}}}function Un(t){let e,n;return e=new Tn({}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Ln(t){let e,n,l,i;return{c(){e=k("a"),E(e,"role","button"),E(e,"tabindex","0"),E(e,"aria-haspopup","true")},m(r,o){y(r,e,o),l||(i=[T(e,"click",D(t[26])),T(e,"keydown",$t(t[26])),T(e,"pointerdown",D(t[35])),g(n=vt.call(null,e,t[11]))],l=!0)},p(t,e){n&&o(n.update)&&2048&e[0]&&n.update.call(null,t[11])},d(t){t&&w(e),l=!1,r(i)}}}function Hn(t){let e,n,l,i,s,a,c,u,d,f,h,p,m,$,b,x,C,D,S=t[2][1]&&Ut(t[2][1].date,t[0]),M=t[2][0]&&Ut(t[2][0].date,t[0]),U=[],L=new Map,H=S&&En(t),B=M&&Sn(t),R=ot(t[5]);const N=t=>t[42].event;for(let e=0;e<R.length;e+=1){let n=Dn(t,R,e),l=N(n);L.set(l,U[e]=Mn(l,n))}let A=t[7]&&Un(),F=t[6].size&&Ln(t);return{c(){e=k("div"),n=k("time"),a=_(),H&&H.c(),c=_(),B&&B.c(),u=_(),d=k("div");for(let t=0;t<U.length;t+=1)U[t].c();h=_(),A&&A.c(),p=_(),m=k("div"),F&&F.c(),E(n,"class",l=t[13].dayHead),E(n,"datetime",i=Mt(t[0],10)),E(d,"class",f=t[13].events),E(m,"class",$=t[13].dayFoot),E(e,"class",b=t[13].day+" "+t[13].weekdays?.[t[0].getUTCDay()]+(t[8]?" "+t[13].today:"")+(t[9]?" "+t[13].otherMonth:"")+(t[10]?" "+t[13].highlight:"")),E(e,"role","cell")},m(l,r){y(l,e,r),v(e,n),v(e,a),H&&H.m(e,null),v(e,c),B&&B.m(e,null),v(e,u),v(e,d);for(let t=0;t<U.length;t+=1)U[t]&&U[t].m(d,null);v(e,h),A&&A.m(e,null),v(e,p),v(e,m),F&&F.m(m,null),t[37](e),x=!0,C||(D=[g(s=vt.call(null,n,t[15].format(t[0]))),T(e,"pointerleave",(function(){o(t[14].pointer?.leave)&&t[14].pointer?.leave.apply(this,arguments)})),T(e,"pointerdown",(function(){o(t[14].action?.select)&&t[14].action?.select.apply(this,arguments)}))],C=!0)},p(r,a){t=r,(!x||8192&a[0]&&l!==(l=t[13].dayHead))&&E(n,"class",l),(!x||1&a[0]&&i!==(i=Mt(t[0],10)))&&E(n,"datetime",i),s&&o(s.update)&&32769&a[0]&&s.update.call(null,t[15].format(t[0])),5&a[0]&&(S=t[2][1]&&Ut(t[2][1].date,t[0])),S?H?(H.p(t,a),5&a[0]&<(H,1)):(H=En(t),H.c(),lt(H,1),H.m(e,c)):H&&(et(),rt(H,1,1,(()=>{H=null})),nt()),5&a[0]&&(M=t[2][0]&&Ut(t[2][0].date,t[0])),M?B?(B.p(t,a),5&a[0]&<(B,1)):(B=Sn(t),B.c(),lt(B,1),B.m(e,u)):B&&(et(),rt(B,1,1,(()=>{B=null})),nt()),4138&a[0]&&(R=ot(t[5]),et(),U=st(U,a,N,0,t,R,L,d,it,Mn,null,Dn),nt()),(!x||8192&a[0]&&f!==(f=t[13].events))&&E(d,"class",f),t[7]?A?128&a[0]&<(A,1):(A=Un(),A.c(),lt(A,1),A.m(e,p)):A&&(et(),rt(A,1,1,(()=>{A=null})),nt()),t[6].size?F?F.p(t,a):(F=Ln(t),F.c(),F.m(m,null)):F&&(F.d(1),F=null),(!x||8192&a[0]&&$!==($=t[13].dayFoot))&&E(m,"class",$),(!x||9985&a[0]&&b!==(b=t[13].day+" "+t[13].weekdays?.[t[0].getUTCDay()]+(t[8]?" "+t[13].today:"")+(t[9]?" "+t[13].otherMonth:"")+(t[10]?" "+t[13].highlight:"")))&&E(e,"class",b)},i(t){if(!x){lt(H),lt(B);for(let t=0;t<R.length;t+=1)lt(U[t]);lt(A),x=!0}},o(t){rt(H),rt(B);for(let t=0;t<U.length;t+=1)rt(U[t]);rt(A),x=!1},d(n){n&&w(e),H&&H.d(),B&&B.d();for(let t=0;t<U.length;t+=1)U[t].d();A&&A.d(),F&&F.d(),t[37](null),C=!1,r(D)}}}function Bn(t,e,n){let l,r,i,s,a,u,d,f,h,p,g,$,v,y,w,{date:b}=e,{chunks:k}=e,{longChunks:x}=e,{iChunks:_=[]}=e,{dates:C}=e,{date:T,dayMaxEvents:D,highlightedDates:E,moreLinkContent:S,theme:M,_hiddenEvents:U,_intlDayCell:L,_popupDate:H,_popupChunks:B,_today:R,_interaction:N,_queue:A}=F("state");c(t,T,(t=>n(33,u=t))),c(t,E,(t=>n(32,a=t))),c(t,S,(t=>n(30,i=t))),c(t,M,(t=>n(13,f=t))),c(t,U,(t=>n(31,s=t))),c(t,L,(t=>n(15,p=t))),c(t,H,(t=>n(29,r=t))),c(t,B,(t=>n(38,l=t))),c(t,R,(t=>n(34,d=t))),c(t,N,(t=>n(14,h=t)));let P,j=new Set,O="",W=[];function G(){let t=Tt(xt(b)),e=$.concat(x[b.getTime()]?.chunks||[]);m(B,l=e.map((e=>zt({},e,ie(e.event,b,t),{days:1,dates:[b]}))).sort(((t,e)=>t.top-e.top)),l)}return t.$$set=t=>{"date"in t&&n(0,b=t.date),"chunks"in t&&n(27,k=t.chunks),"longChunks"in t&&n(1,x=t.longChunks),"iChunks"in t&&n(2,_=t.iChunks),"dates"in t&&n(3,C=t.dates)},t.$$.update=()=>{if(134217825&t.$$.dirty[0]){n(5,$=[]),j.clear(),n(6,j),n(27,k),n(0,b),n(5,$);for(let t of k)Ut(t.date,b)&&$.push(t)}if(65&t.$$.dirty[0]&&m(U,s[b.getTime()]=j,s),1&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(8,v=Ut(b,d)),1&t.$$.dirty[0]|6&t.$$.dirty[1]&&(n(9,y=b.getUTCMonth()!==u.getUTCMonth()),n(10,w=a.some((t=>Ut(t,b))))),1073741888&t.$$.dirty[0]|1&t.$$.dirty[1]&&s&&j.size){let t="+"+j.size+" more";n(11,O=i?o(i)?i({num:j.size,text:t}):i:t)}536870913&t.$$.dirty[0]&&n(7,P=r&&Ut(b,r)),162&t.$$.dirty[0]&&P&&x&&$&&Y().then(G),17&t.$$.dirty[0]&&g&&Jt(g,(()=>({allDay:!0,date:b,resource:void 0,dayEl:g})))},[b,x,_,C,g,$,j,P,v,y,w,O,W,f,h,p,T,E,S,M,U,L,H,B,R,N,function(){m(H,r=b,r)},k,function(){ge(W,$)},r,i,s,a,u,d,function(e){z.call(this,t,e)},function(t,e){I[t?"unshift":"push"]((()=>{W[e]=t,n(12,W)}))},function(t){I[t?"unshift":"push"]((()=>{g=t,n(4,g)}))}]}let Rn=class extends ft{constructor(t){super(),dt(this,t,Bn,Hn,i,{date:0,chunks:27,longChunks:1,iChunks:2,dates:3,reposition:28},null,[-1,-1])}get reposition(){return this.$$.ctx[28]}};function Nn(t,e,n){const l=t.slice();return l[21]=e[n],l[22]=e,l[23]=n,l}function An(t){let e,n,l=t[23];const r=()=>t[18](e,l),o=()=>t[18](null,l);let i={date:t[21],chunks:t[1],longChunks:t[2],iChunks:t[3],dates:t[0]};return e=new Rn({props:i}),r(),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){l!==t[23]&&(o(),l=t[23],r());const i={};1&n&&(i.date=t[21]),2&n&&(i.chunks=t[1]),4&n&&(i.longChunks=t[2]),8&n&&(i.iChunks=t[3]),1&n&&(i.dates=t[0]),e.$set(i)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ut(e,t)}}}function Fn(t){let e,n,l,r,o,i=ot(t[0]),s=[];for(let e=0;e<i.length;e+=1)s[e]=An(Nn(t,i,e));const a=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=k("div");for(let t=0;t<s.length;t+=1)s[t].c();E(e,"class",n=t[5].days),E(e,"role","row")},m(n,i){y(n,e,i);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);l=!0,r||(o=T(window,"resize",t[11]),r=!0)},p(t,r){let[o]=r;if(31&o){let n;for(i=ot(t[0]),n=0;n<i.length;n+=1){const l=Nn(t,i,n);s[n]?(s[n].p(l,o),lt(s[n],1)):(s[n]=An(l),s[n].c(),lt(s[n],1),s[n].m(e,null))}for(et(),n=i.length;n<s.length;n+=1)a(n);nt()}(!l||32&o&&n!==(n=t[5].days))&&E(e,"class",n)},i(t){if(!l){for(let t=0;t<i.length;t+=1)lt(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&&w(e),b(s,t),r=!1,o()}}}function zn(t,e,n){let l,r,o,i,s,{dates:a}=e,{_events:u,_iEvents:d,_queue2:f,_hiddenEvents:h,hiddenDays:p,theme:m}=F("state");c(t,u,(t=>n(17,i=t))),c(t,d,(t=>n(16,o=t))),c(t,h,(t=>n(14,l=t))),c(t,p,(t=>n(15,r=t))),c(t,m,(t=>n(5,s=t)));let g,$,v,y,w=[],b=[],k={};function x(){Nt((()=>ge(b,a)),k,f)}return t.$$set=t=>{"dates"in t&&n(0,a=t.dates)},t.$$.update=()=>{if(1&t.$$.dirty&&(n(12,v=a[0]),n(13,y=Tt(xt(a[a.length-1])))),176130&t.$$.dirty){n(1,g=[]);for(let t of i)if(!ye(t.display)&&$e(t,v,y)){let e=ie(t,v,y);g.push(e)}n(2,$=pe(g,r)),x()}110592&t.$$.dirty&&n(3,w=o.map((t=>{let e;return t&&$e(t,v,y)?(e=ie(t,v,y),pe([e],r)):e=null,e}))),16384&t.$$.dirty&&l&&Y().then(x)},[a,g,$,w,b,s,u,d,h,p,m,x,v,y,l,r,o,i,function(t,e){I[t?"unshift":"push"]((()=>{b[e]=t,n(4,b)}))}]}let Pn=class extends ft{constructor(t){super(),dt(this,t,zn,Fn,i,{dates:0})}};function In(t,e,n){const l=t.slice();return l[15]=e[n],l}function jn(t){let e,n;return e=new Pn({props:{dates:t[15]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.dates=t[15]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function On(t){let e,n,l,r,o,i=ot(t[0]),s=[];for(let e=0;e<i.length;e+=1)s[e]=jn(In(t,i,e));const a=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=k("div"),n=k("div");for(let t=0;t<s.length;t+=1)s[t].c();E(n,"class",l=t[2].content),E(e,"class",r=t[2].body+(!0===t[1]?" "+t[2].uniform:""))},m(l,r){y(l,e,r),v(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=ot(t[0]),e=0;e<i.length;e+=1){const l=In(t,i,e);s[e]?(s[e].p(l,u),lt(s[e],1)):(s[e]=jn(l),s[e].c(),lt(s[e],1),s[e].m(n,null))}for(et(),e=i.length;e<s.length;e+=1)a(e);nt()}(!o||4&u&&l!==(l=t[2].content))&&E(n,"class",l),(!o||6&u&&r!==(r=t[2].body+(!0===t[1]?" "+t[2].uniform:"")))&&E(e,"class",r)},i(t){if(!o){for(let t=0;t<i.length;t+=1)lt(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&&w(e),b(s,n),t[13](null)}}}function Wn(t,e,n){let l,r,o,i,s,a,u,d,{_bodyEl:f,_viewDates:h,_hiddenEvents:p,dayMaxEvents:g,hiddenDays:$,theme:v}=F("state");return c(t,f,(t=>n(3,a=t))),c(t,h,(t=>n(11,l=t))),c(t,p,(t=>n(14,o=t))),c(t,g,(t=>n(1,r=t))),c(t,$,(t=>n(12,i=t))),c(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<l.length/d;++t){let e=[];for(let n=0;n<d;++n)e.push(l[t*d+n]);u.push(e)}}},[u,r,s,a,f,h,p,g,$,v,d,l,i,function(t){I[t?"unshift":"push"]((()=>{a=t,f.set(a)}))}]}let Gn=class extends ft{constructor(t){super(),dt(this,t,Wn,On,i,{})}};function qn(e){let n,l,r,o;return n=new vn({}),r=new Gn({}),{c(){at(n.$$.fragment),l=_(),at(r.$$.fragment)},m(t,e){ct(n,t,e),y(t,l,e),ct(r,t,e),o=!0},p:t,i(t){o||(lt(n.$$.fragment,t),lt(r.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),rt(r.$$.fragment,t),o=!1},d(t){t&&w(l),ut(n,t),ut(r,t)}}}let Yn=class extends ft{constructor(t){super(),dt(this,t,null,qn,i,{})}};var Xn={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:xe,component:Yn,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:Te("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(t){t._days=function(t){return gt([t.date,t.firstDay,t.hiddenDays],(t=>{let[e,n,l]=t,r=[],o=xt(e),i=7;for(;o.getUTCDay()!==n&&i;)Dt(o),--i;for(let t=0;t<7;++t)l.includes(o.getUTCDay())||r.push(xt(o)),Tt(o);return r}))}(t),t._intlDayCell=Ee(t.locale,t.dayCellFormat),t._intlDayPopover=Ee(t.locale,t.dayPopoverFormat),t._hiddenEvents=mt({}),t._popupDate=mt(null),t._popupChunks=mt([])}};function Vn(e){let n,l,i,s,a,c,u,d,f,h,p;return{c(){n=k("article"),l=k("div"),s=_(),a=k("div"),E(l,"class",i=e[0].eventTag),E(l,"style",e[3]),E(a,"class",c=e[0].eventBody),E(n,"class",e[2]),E(n,"role",d=e[5]?"button":void 0),E(n,"tabindex",f=e[5]?0:void 0)},m(t,r){y(t,n,r),v(n,l),v(n,s),v(n,a),e[40](n),h||(p=[g(u=vt.call(null,a,e[4])),T(n,"click",(function(){o(e[5])&&e[5].apply(this,arguments)})),T(n,"keydown",(function(){o(e[5]&&$t(e[5]))&&(e[5]&&$t(e[5])).apply(this,arguments)})),T(n,"mouseenter",(function(){o(e[26](e[6]))&&e[26](e[6]).apply(this,arguments)})),T(n,"mouseleave",(function(){o(e[26](e[7]))&&e[26](e[7]).apply(this,arguments)})),T(n,"pointerdown",(function(){o(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)&&E(l,"class",i),8&r[0]&&E(l,"style",e[3]),1&r[0]&&c!==(c=e[0].eventBody)&&E(a,"class",c),u&&o(u.update)&&16&r[0]&&u.update.call(null,e[4]),4&r[0]&&E(n,"class",e[2]),32&r[0]&&d!==(d=e[5]?"button":void 0)&&E(n,"role",d),32&r[0]&&f!==(f=e[5]?0:void 0)&&E(n,"tabindex",f)},i:t,o:t,d(t){t&&w(n),e[40](null),h=!1,r(p)}}}function Jn(t,e,n){let l,r,i,s,a,u,d,f,h,p,m,g,$,v,y,w,b,k,x,_,C,T,D,E,{chunk:S}=e,{displayEventEnd:M,eventAllUpdated:U,eventBackgroundColor:L,eventTextColor:H,eventColor:B,eventContent:A,eventClassNames:z,eventClick:P,eventDidMount:j,eventMouseEnter:O,eventMouseLeave:W,theme:G,_view:q,_intlEventTime:Y,_resBgColor:X,_resTxtColor:V,_interaction:J,_tasks:K}=F("state");function Q(t){return o(t)?e=>t({event:de(x),el:k,jsEvent:e,view:te(r)}):void 0}return c(t,M,(t=>n(33,f=t))),c(t,U,(t=>n(42,i=t))),c(t,L,(t=>n(38,$=t))),c(t,H,(t=>n(35,p=t))),c(t,B,(t=>n(37,g=t))),c(t,A,(t=>n(32,d=t))),c(t,z,(t=>n(34,h=t))),c(t,P,(t=>n(29,l=t))),c(t,j,(t=>n(43,s=t))),c(t,O,(t=>n(6,y=t))),c(t,W,(t=>n(7,w=t))),c(t,G,(t=>n(0,u=t))),c(t,q,(t=>n(30,r=t))),c(t,Y,(t=>n(31,a=t))),c(t,X,(t=>n(39,v=t))),c(t,V,(t=>n(36,m=t))),c(t,J,(t=>n(8,b=t))),R((()=>{o(s)&&s({event:de(x),timeText:D,el:k,view:te(r)})})),N((()=>{o(i)&&Ft((()=>i({view:te(r)})),"eau",K)})),t.$$set=t=>{"chunk"in t&&n(27,S=t.chunk)},t.$$.update=()=>{if(134217728&t.$$.dirty[0]&&n(28,x=S.event),1342177289&t.$$.dirty[0]|504&t.$$.dirty[1]){n(3,C="");let t=x.backgroundColor||v(x)||$||g;t&&n(3,C=`background-color:${t};`);let e=x.textColor||m(x)||p;e&&n(3,C+=`color:${e};`),n(2,_=[u.event,...ue(h,x,r)].join(" "))}1207959553&t.$$.dirty[0]|7&t.$$.dirty[1]&&n(4,[D,T]=ae(S,f,d,u,a,r),T),536870912&t.$$.dirty[0]&&n(5,E=Q(l))},[u,k,_,C,T,E,y,w,b,M,U,L,H,B,A,z,P,j,O,W,G,q,Y,X,V,J,Q,S,x,l,r,a,d,f,h,p,m,g,$,v,function(t){I[t?"unshift":"push"]((()=>{k=t,n(1,k)}))}]}let Kn=class extends ft{constructor(t){super(),dt(this,t,Jn,Vn,i,{chunk:27},null,[-1,-1])}};function Qn(t,e,n){const l=t.slice();return l[21]=e[n],l}function Zn(t){let e,n,l,i,s,a,c,u,d,f,h,p,m,$,b=[],x=new Map,C=ot(t[2]);const D=t=>t[21].event;for(let e=0;e<C.length;e+=1){let n=Qn(t,C,e),l=D(n);x.set(l,b[e]=tl(l,n))}return{c(){e=k("div"),n=k("h4"),l=k("time"),s=_(),a=k("time"),f=_();for(let t=0;t<b.length;t+=1)b[t].c();E(l,"datetime",t[5]),E(a,"class",c=t[6].daySide),E(a,"datetime",t[5]),E(n,"class",d=t[6].dayHead),E(e,"class",h=t[6].day+" "+t[6].weekdays?.[t[0].getUTCDay()]+(t[3]?" "+t[6].today:"")+(t[4]?" "+t[6].highlight:"")),E(e,"role","listitem")},m(r,c){y(r,e,c),v(e,n),v(n,l),v(n,s),v(n,a),v(e,f);for(let t=0;t<b.length;t+=1)b[t]&&b[t].m(e,null);t[20](e),p=!0,m||($=[g(i=vt.call(null,l,t[8].format(t[0]))),g(u=vt.call(null,a,t[9].format(t[0]))),T(e,"pointerdown",(function(){o(t[7].action?.select)&&t[7].action?.select.apply(this,arguments)}))],m=!0)},p(r,s){t=r,(!p||32&s)&&E(l,"datetime",t[5]),i&&o(i.update)&&257&s&&i.update.call(null,t[8].format(t[0])),(!p||64&s&&c!==(c=t[6].daySide))&&E(a,"class",c),(!p||32&s)&&E(a,"datetime",t[5]),u&&o(u.update)&&513&s&&u.update.call(null,t[9].format(t[0])),(!p||64&s&&d!==(d=t[6].dayHead))&&E(n,"class",d),4&s&&(C=ot(t[2]),et(),b=st(b,s,D,0,t,C,x,e,it,tl,null,Qn),nt()),(!p||89&s&&h!==(h=t[6].day+" "+t[6].weekdays?.[t[0].getUTCDay()]+(t[3]?" "+t[6].today:"")+(t[4]?" "+t[6].highlight:"")))&&E(e,"class",h)},i(t){if(!p){for(let t=0;t<C.length;t+=1)lt(b[t]);p=!0}},o(t){for(let t=0;t<b.length;t+=1)rt(b[t]);p=!1},d(n){n&&w(e);for(let t=0;t<b.length;t+=1)b[t].d();t[20](null),m=!1,r($)}}}function tl(t,e){let n,l,r;return l=new Kn({props:{chunk:e[21]}}),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){e=t;const r={};4&n&&(r.chunk=e[21]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),ut(l,t)}}}function el(t){let e,n,l=t[2].length&&Zn(t);return{c(){l&&l.c(),e=C()},m(t,r){l&&l.m(t,r),y(t,e,r),n=!0},p(t,n){let[r]=n;t[2].length?l?(l.p(t,r),4&r&<(l,1)):(l=Zn(t),l.c(),lt(l,1),l.m(e.parentNode,e)):l&&(et(),rt(l,1,1,(()=>{l=null})),nt())},i(t){n||(lt(l),n=!0)},o(t){rt(l),n=!1},d(t){t&&w(e),l&&l.d(t)}}}function nl(t,e,n){let l,r,o,i,s,a,u,d,f,h,p,m,{date:g}=e,{_events:$,_interaction:v,_intlListDay:y,_intlListDaySide:w,_today:b,highlightedDates:k,theme:x}=F("state");return c(t,$,(t=>n(19,o=t))),c(t,v,(t=>n(7,s=t))),c(t,y,(t=>n(8,a=t))),c(t,w,(t=>n(9,u=t))),c(t,b,(t=>n(18,r=t))),c(t,k,(t=>n(17,l=t))),c(t,x,(t=>n(6,i=t))),t.$$set=t=>{"date"in t&&n(0,g=t.date)},t.$$.update=()=>{if(524293&t.$$.dirty){n(2,f=[]);let t=g,e=Tt(xt(g));for(let n of o)if(!ye(n.display)&&$e(n,t,e)){let l=ie(n,t,e);f.push(l)}se(f)}262145&t.$$.dirty&&n(3,h=Ut(g,r)),131073&t.$$.dirty&&n(4,p=l.some((t=>Ut(t,g)))),1&t.$$.dirty&&n(5,m=Mt(g,10)),3&t.$$.dirty&&d&&Jt(d,(()=>({allDay:!0,date:g,resource:void 0,dayEl:d})))},[g,d,f,h,p,m,i,s,a,u,$,v,y,w,b,k,x,l,r,o,function(t){I[t?"unshift":"push"]((()=>{d=t,n(1,d)}))}]}let ll=class extends ft{constructor(t){super(),dt(this,t,nl,el,i,{date:0})}};function rl(t,e,n){const l=t.slice();return l[18]=e[n],l}function ol(t){let e,n,l=ot(t[1]),r=[];for(let e=0;e<l.length;e+=1)r[e]=sl(rl(t,l,e));const o=t=>rt(r[t],1,1,(()=>{r[t]=null}));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);y(t,e,l),n=!0},p(t,n){if(2&n){let i;for(l=ot(t[1]),i=0;i<l.length;i+=1){const o=rl(t,l,i);r[i]?(r[i].p(o,n),lt(r[i],1)):(r[i]=sl(o),r[i].c(),lt(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=l.length;i<r.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)lt(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function il(e){let n,l,i,s,a;return{c(){n=k("div"),E(n,"class",l=e[3].noEvents)},m(t,l){y(t,n,l),s||(a=[g(i=vt.call(null,n,e[0])),T(n,"click",e[12])],s=!0)},p(t,e){8&e&&l!==(l=t[3].noEvents)&&E(n,"class",l),i&&o(i.update)&&1&e&&i.update.call(null,t[0])},i:t,o:t,d(t){t&&w(n),s=!1,r(a)}}}function sl(t){let e,n;return e=new ll({props:{date:t[18]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};2&n&&(l.date=t[18]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function al(t){let e,n,l,r,o,i,s;const a=[il,ol],c=[];function u(t,e){return t[2]?0:1}return l=u(t),r=c[l]=a[l](t),{c(){e=k("div"),n=k("div"),r.c(),E(n,"class",o=t[3].content),E(e,"class",i=t[3].body)},m(r,o){y(r,e,o),v(e,n),c[l].m(n,null),t[15](e),s=!0},p(t,d){let[f]=d,h=l;l=u(t),l===h?c[l].p(t,f):(et(),rt(c[h],1,1,(()=>{c[h]=null})),nt(),r=c[l],r?r.p(t,f):(r=c[l]=a[l](t),r.c()),lt(r,1),r.m(n,null)),(!s||8&f&&o!==(o=t[3].content))&&E(n,"class",o),(!s||8&f&&i!==(i=t[3].body))&&E(e,"class",i)},i(t){s||(lt(r),s=!0)},o(t){rt(r),s=!1},d(n){n&&w(e),c[l].d(),t[15](null)}}}function cl(t,e,n){let l,r,i,s,a,u,d,f,h,{_bodyEl:p,_events:m,_view:g,_viewDates:$,noEventsClick:v,noEventsContent:y,theme:w}=F("state");return c(t,p,(t=>n(4,d=t))),c(t,m,(t=>n(14,s=t))),c(t,g,(t=>n(16,l=t))),c(t,$,(t=>n(1,a=t))),c(t,v,(t=>n(17,r=t))),c(t,y,(t=>n(13,i=t))),c(t,w,(t=>n(3,u=t))),t.$$.update=()=>{if(16386&t.$$.dirty&&(n(2,f=!0),a.length)){let t=a[0],e=Tt(xt(a[a.length-1]));for(let l of s)if(!ye(l.display)&&l.start<e&&l.end>t){n(2,f=!1);break}}8193&t.$$.dirty&&(n(0,h=o(i)?i():i),"string"==typeof h&&n(0,h={html:h}))},[h,a,f,u,d,p,m,g,$,v,y,w,function(t){o(r)&&r({jsEvent:t,view:te(l)})},i,s,function(t){I[t?"unshift":"push"]((()=>{d=t,p.set(d)}))}]}let ul=class extends ft{constructor(t){super(),dt(this,t,cl,al,i,{})}};function dl(e){let n,l;return n=new ul({}),{c(){at(n.$$.fragment)},m(t,e){ct(n,t,e),l=!0},p:t,i(t){l||(lt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){ut(n,t)}}}let fl=class extends ft{constructor(t){super(),dt(this,t,null,dl,i,{})}};var hl={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:be,component:fl,duration:{days:1},theme:Te("ec-list ec-day-view")},t.views.listWeek={buttonText:ke,component:fl,duration:{weeks:1},theme:Te("ec-list ec-week-view")},t.views.listMonth={buttonText:xe,component:fl,duration:{months:1},theme:Te("ec-list ec-month-view")},t.views.listYear={buttonText:_e,component:fl,duration:{years:1},theme:Te("ec-list ec-year-view")}},createStores(t){t._intlListDay=Ee(t.locale,t.listDayFormat),t._intlListDaySide=Ee(t.locale,t.listDaySideFormat)}};const pl=t=>({}),ml=t=>({});function gl(t,e,n){const l=t.slice();return l[9]=e[n],l}function $l(t){let e,n,l,r,i,s;return{c(){e=k("time"),E(e,"class",n=t[1].time),E(e,"datetime",l=t[9][0])},m(n,l){y(n,e,l),i||(s=g(r=vt.call(null,e,t[9][2]?t[9][1]:"")),i=!0)},p(i,s){t=i,2&s&&n!==(n=t[1].time)&&E(e,"class",n),4&s&&l!==(l=t[9][0])&&E(e,"datetime",l),r&&o(r.update)&&4&s&&r.update.call(null,t[9][2]?t[9][1]:"")},d(t){t&&w(e),i=!1,s()}}}function vl(t){let e,n,l,r,i,s,a,c,d,m,$,x,C,T,D,S=ot(t[2]),M=[];for(let e=0;e<S.length;e+=1)M[e]=$l(gl(t,S,e));const U=t[8].lines,L=u(U,t,t[7],ml),H=t[8].default,B=u(H,t,t[7],null);return{c(){e=k("div"),n=k("div"),i=_();for(let t=0;t<M.length;t+=1)M[t].c();a=_(),c=k("div"),d=k("div"),L&&L.c(),$=_(),B&&B.c(),E(n,"class",l=t[1].sidebarTitle),E(e,"class",s=t[1].sidebar),E(d,"class",m=t[1].lines),E(c,"class",x=t[1].days),E(c,"role","row")},m(l,o){y(l,e,o),v(e,n),v(e,i);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(e,null);y(l,a,o),y(l,c,o),v(c,d),L&&L.m(d,null),v(c,$),B&&B.m(c,null),C=!0,T||(D=g(r=vt.call(null,n,t[0])),T=!0)},p(t,i){let[a]=i;if((!C||2&a&&l!==(l=t[1].sidebarTitle))&&E(n,"class",l),r&&o(r.update)&&1&a&&r.update.call(null,t[0]),6&a){let n;for(S=ot(t[2]),n=0;n<S.length;n+=1){const l=gl(t,S,n);M[n]?M[n].p(l,a):(M[n]=$l(l),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&&s!==(s=t[1].sidebar))&&E(e,"class",s),L&&L.p&&(!C||128&a)&&h(L,U,t,t[7],C?f(U,t[7],a,pl):p(t[7]),ml),(!C||2&a&&m!==(m=t[1].lines))&&E(d,"class",m),B&&B.p&&(!C||128&a)&&h(B,H,t,t[7],C?f(H,t[7],a,null):p(t[7]),null),(!C||2&a&&x!==(x=t[1].days))&&E(c,"class",x)},i(t){C||(lt(L,t),lt(B,t),C=!0)},o(t){rt(L,t),rt(B,t),C=!1},d(t){t&&(w(e),w(a),w(c)),b(M,t),L&&L.d(t),B&&B.d(t),T=!1,D()}}}function yl(t,e,n){let l,r,i,s,{$$slots:a={},$$scope:u}=e,{allDayContent:d,theme:f,_times:h}=F("state");return c(t,d,(t=>n(6,l=t))),c(t,f,(t=>n(1,r=t))),c(t,h,(t=>n(2,i=t))),t.$$set=t=>{"$$scope"in t&&n(7,u=t.$$scope)},t.$$.update=()=>{64&t.$$.dirty&&n(0,s=function(t){let e,n="all-day";return t?(e=o(t)?t({text:n}):t,"string"==typeof e&&(e={html:e})):e={html:n},e}(l))},[s,r,i,d,f,h,l,u,a]}class wl extends ft{constructor(t){super(),dt(this,t,yl,vl,i,{})}}function bl(t,e,n){const l=t.slice();return l[23]=e[n],l}function kl(t){let e;const n=t[16].default,l=u(n,t,t[18],null);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,r){l&&l.p&&(!e||262144&r)&&h(l,n,t,t[18],e?f(n,t[18],r,null):p(t[18]),null)},i(t){e||(lt(l,t),e=!0)},o(t){rt(l,t),e=!1},d(t){l&&l.d(t)}}}function xl(t){let e,n;return{c(){e=k("div"),E(e,"class",n=t[3].line)},m(t,n){y(t,e,n)},p(t,l){8&l&&n!==(n=t[3].line)&&E(e,"class",n)},d(t){t&&w(e)}}}function _l(t){let e,n=ot(t[2]),l=[];for(let e=0;e<n.length;e+=1)l[e]=xl(bl(t,n,e));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,n){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,n);y(t,e,n)},p(t,r){if(12&r){let o;for(n=ot(t[2]),o=0;o<n.length;o+=1){const i=bl(t,n,o);l[o]?l[o].p(i,r):(l[o]=xl(i),l[o].c(),l[o].m(e.parentNode,e))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(t){t&&w(e),b(l,t)}}}function Cl(t){let e,n,l,r,o,i;return l=new wl({props:{$$slots:{lines:[_l],default:[kl]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),at(l.$$.fragment),E(n,"class",r=t[3].content),E(e,"class",o=t[3].body+(t[1]?" "+t[3].compact:""))},m(r,o){y(r,e,o),v(e,n),ct(l,n,null),t[17](e),i=!0},p(t,s){let[a]=s;const c={};262156&a&&(c.$$scope={dirty:a,ctx:t}),l.$set(c),(!i||8&a&&r!==(r=t[3].content))&&E(n,"class",r),(!i||10&a&&o!==(o=t[3].body+(t[1]?" "+t[3].compact:"")))&&E(e,"class",o)},i(t){i||(lt(l.$$.fragment,t),i=!0)},o(t){rt(l.$$.fragment,t),i=!1},d(n){n&&w(e),ut(l),t[17](null)}}}function Tl(t,e,n){let l,r,o,i,s,a,u,d,f,h,{$$slots:p={},$$scope:g}=e,{_bodyEl:$,_viewDates:v,_slotTimeLimits:y,_times:w,scrollTime:b,slotDuration:k,slotHeight:x,theme:_}=F("state");c(t,$,(t=>n(21,u=t))),c(t,v,(t=>n(14,s=t))),c(t,y,(t=>n(20,o=t))),c(t,w,(t=>n(15,a=t))),c(t,b,(t=>n(13,i=t))),c(t,k,(t=>n(12,r=t))),c(t,x,(t=>n(19,l=t))),c(t,_,(t=>n(3,d=t)));let C=[];return t.$$set=t=>{"$$scope"in t&&n(18,g=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty&&m($,u=f,u),36864&t.$$.dirty&&(n(1,h=r.seconds>=3600),n(2,C.length=a.length,C)),24577&t.$$.dirty&&f&&n(0,f.scrollTop=((i.seconds-o.min.seconds)/r.seconds-.5)*l,f)},[f,h,C,d,$,v,y,w,b,k,x,_,r,i,s,a,p,function(t){I[t?"unshift":"push"]((()=>{f=t,n(0,f)}))},g]}let Dl=class extends ft{constructor(t){super(),dt(this,t,Tl,Cl,i,{})}};function El(t){let e,n,l,i,s,a,c,u,d,f,h;var p=t[10].resizer;function m(t,e){return{props:{event:t[0]}}}return p&&(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[34](t[10],"y"))&&t[34](t[10],"y").apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),a&&at(a.$$.fragment),E(n,"class",l=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",c=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(l,r){y(l,e,r),v(e,n),v(e,s),a&&ct(a,e,null),t[53](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){o(t[7])&&t[7].apply(this,arguments)})),T(e,"keydown",(function(){o(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){o(t[33](t[8],t[1]))&&t[33](t[8],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){o(t[33](t[9],t[1]))&&t[33](t[9],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){o(!ye(t[1])&&!ve(t[1])&&t[34](t[10]))&&(!ye(t[1])&&!ve(t[1])&&t[34](t[10])).apply(this,arguments)}))],f=!0)},p(r,s){if(t=r,(!d||4&s[0]&&l!==(l=t[2].eventBody))&&E(n,"class",l),i&&o(i.update)&&64&s[0]&&i.update.call(null,t[6]),1024&s[0]&&p!==(p=t[10].resizer)){if(a){et();const t=a;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[34](t[10],"y"))&&t[34](t[10],"y").apply(this,arguments)})),at(a.$$.fragment),lt(a.$$.fragment,1),ct(a,e,null)):a=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),a.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&c!==(c=t[7]?"button":void 0))&&E(e,"role",c),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(a&<(a.$$.fragment,t),d=!0)},o(t){a&&rt(a.$$.fragment,t),d=!1},d(n){n&&w(e),a&&ut(a),t[53](null),f=!1,r(h)}}}function Sl(t,e,n){let l,r,i,s,a,u,d,f,h,p,m,g,$,v,y,w,b,k,x,_,C,T,D,E,S,M,U,L,H,B,{date:A}=e,{chunk:z}=e,{displayEventEnd:P,eventAllUpdated:j,eventBackgroundColor:O,eventTextColor:W,eventColor:G,eventContent:q,eventClick:Y,eventDidMount:X,eventClassNames:V,eventMouseEnter:J,eventMouseLeave:K,slotEventOverlap:Q,slotDuration:Z,slotHeight:tt,theme:et,_view:nt,_intlEventTime:lt,_interaction:rt,_iClasses:ot,_resBgColor:it,_resTxtColor:st,_slotTimeLimits:at,_tasks:ct}=F("state");function ut(t,e){return!ve(e)&&o(t)?e=>t({event:de(E),el:D,jsEvent:e,view:te(r)}):void 0}return c(t,P,(t=>n(41,f=t))),c(t,j,(t=>n(55,i=t))),c(t,O,(t=>n(48,y=t))),c(t,W,(t=>n(45,g=t))),c(t,G,(t=>n(47,v=t))),c(t,q,(t=>n(40,d=t))),c(t,Y,(t=>n(37,l=t))),c(t,X,(t=>n(56,s=t))),c(t,V,(t=>n(42,h=t))),c(t,J,(t=>n(8,_=t))),c(t,K,(t=>n(9,C=t))),c(t,Q,(t=>n(44,m=t))),c(t,Z,(t=>n(52,x=t))),c(t,tt,(t=>n(50,b=t))),c(t,et,(t=>n(2,u=t))),c(t,nt,(t=>n(38,r=t))),c(t,lt,(t=>n(39,a=t))),c(t,rt,(t=>n(10,T=t))),c(t,ot,(t=>n(43,p=t))),c(t,it,(t=>n(49,w=t))),c(t,st,(t=>n(46,$=t))),c(t,at,(t=>n(51,k=t))),R((()=>{o(s)&&s({event:de(E),timeText:H,el:D,view:te(r)})})),N((()=>{o(i)&&!ve(S)&&Ft((()=>i({view:te(r)})),"eau",ct)})),t.$$set=t=>{"date"in t&&n(35,A=t.date),"chunk"in t&&n(36,z=t.chunk)},t.$$.update=()=>{if(32&t.$$.dirty[1]&&n(0,E=z.event),39&t.$$.dirty[0]|4192432&t.$$.dirty[1]){n(1,S=E.display);let t=x.seconds,e=k.min.seconds,l=(z.start-A)/1e3,o=(z.end-A)/1e3,i=(l-e)/t*b,s=(o-l)/t*b,a=(k.max.seconds-l)/t*b,c=E.backgroundColor||w(E)||y||v,d=E.textColor||$(E)||g;n(5,U=`top:${i}px;min-height:${s}px;height:${s}px;max-height:${a}px;`),c&&n(5,U+=`background-color:${c};`),d&&n(5,U+=`color:${d};`),(!ye(S)&&!ve(S)||we(S))&&n(5,U+=`z-index:${z.column+1};left:${100/z.group.columns.length*z.column}%;width:${100/z.group.columns.length*(m?.5*(1+z.group.columns.length-z.column):1)}%;`),n(4,M=[ye(S)?u.bgEvent:u.event,...p([],E),...ue(h,E,r)].join(" "))}4&t.$$.dirty[0]|1952&t.$$.dirty[1]&&n(6,[H,L]=ae(z,f,d,u,a,r),L),2&t.$$.dirty[0]|64&t.$$.dirty[1]&&n(7,B=!ye(S)&&ut(l,S))},[E,S,u,D,M,U,L,B,_,C,T,P,j,O,W,G,q,Y,X,V,J,K,Q,Z,tt,et,nt,lt,rt,ot,it,st,at,ut,function(t,e){return t.action?n=>t.action.drag(E,n,e):void 0},A,z,l,r,a,d,f,h,p,m,g,$,v,y,w,b,k,x,function(t){I[t?"unshift":"push"]((()=>{D=t,n(3,D)}))}]}let Ml=class extends ft{constructor(t){super(),dt(this,t,Sl,El,i,{date:35,chunk:36},null,[-1,-1])}};function Ul(e){let n,l;return{c(){n=k("div"),E(n,"class",l=e[1].nowIndicator),M(n,"top",e[0]+"px")},m(t,e){y(t,n,e)},p(t,e){let[r]=e;2&r&&l!==(l=t[1].nowIndicator)&&E(n,"class",l),1&r&&M(n,"top",t[0]+"px")},i:t,o:t,d(t){t&&w(n)}}}function Ll(t,e,n){let l,r,o,i,s,a,u,{slotDuration:d,slotHeight:f,theme:h,_now:p,_today:m,_slotTimeLimits:g}=F("state");c(t,d,(t=>n(11,o=t))),c(t,f,(t=>n(9,l=t))),c(t,h,(t=>n(1,a=t))),c(t,p,(t=>n(13,s=t))),c(t,m,(t=>n(12,i=t))),c(t,g,(t=>n(10,r=t)));let $=0;return t.$$.update=()=>{if(12288&t.$$.dirty&&n(8,u=(s-i)/1e3/60),3840&t.$$.dirty){let t=o.seconds/60,e=r.min.seconds/60;n(0,$=(u-e)/t*l)}},[$,a,d,f,h,p,m,g,u,l,r,o,i,s]}class Hl extends ft{constructor(t){super(),dt(this,t,Ll,Ul,i,{})}}function Bl(t,e,n){const l=t.slice();return l[32]=e[n],l}function Rl(t,e,n){const l=t.slice();return l[32]=e[n],l}function Nl(t,e){let n,l,r;return l=new Ml({props:{date:e[0],chunk:e[32]}}),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){e=t;const r={};1&n[0]&&(r.date=e[0]),8&n[0]&&(r.chunk=e[32]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),ut(l,t)}}}function Al(t){let e,n;return e=new Ml({props:{date:t[0],chunk:t[4][1]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};1&n[0]&&(l.date=t[0]),16&n[0]&&(l.chunk=t[4][1]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Fl(t,e){let n,l,r;return l=new Ml({props:{date:e[0],chunk:e[32]}}),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){e=t;const r={};1&n[0]&&(r.date=e[0]),4&n[0]&&(r.chunk=e[32]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),ut(l,t)}}}function zl(t){let e,n;return e=new Ml({props:{date:t[0],chunk:t[4][0]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};1&n[0]&&(l.date=t[0]),16&n[0]&&(l.chunk=t[4][0]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Pl(t){let e,n;return e=new Hl({}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Il(t){let e,n,l,i,s,a,c,u,d,f,h,p,m,g,$,b=[],x=new Map,C=[],D=new Map,S=ot(t[3]);const M=t=>t[32].event;for(let e=0;e<S.length;e+=1){let n=Rl(t,S,e),l=M(n);x.set(l,b[e]=Nl(l,n))}let U=t[4][1]&&Al(t),L=ot(t[2]);const H=t=>t[32].event;for(let e=0;e<L.length;e+=1){let n=Bl(t,L,e),l=H(n);D.set(l,C[e]=Fl(l,n))}let B=t[4][0]&&!t[4][0].event.allDay&&zl(t),R=t[9]&&t[5]&&Pl();return{c(){e=k("div"),n=k("div");for(let t=0;t<b.length;t+=1)b[t].c();i=_(),s=k("div"),U&&U.c(),a=_();for(let t=0;t<C.length;t+=1)C[t].c();c=_(),B&&B.c(),d=_(),f=k("div"),R&&R.c(),E(n,"class",l=t[7].bgEvents),E(s,"class",u=t[7].events),E(f,"class",h=t[7].extra),E(e,"class",p=t[7].day+" "+t[7].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[7].today:"")+(t[6]?" "+t[7].highlight:"")),E(e,"role","cell")},m(l,r){y(l,e,r),v(e,n);for(let t=0;t<b.length;t+=1)b[t]&&b[t].m(n,null);v(e,i),v(e,s),U&&U.m(s,null),v(s,a);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(s,null);v(s,c),B&&B.m(s,null),v(e,d),v(e,f),R&&R.m(f,null),t[28](e),m=!0,g||($=[T(e,"pointerleave",(function(){o(t[8].pointer?.leave)&&t[8].pointer?.leave.apply(this,arguments)})),T(e,"pointerdown",(function(){o(t[8].action?.select)&&t[8].action?.select.apply(this,arguments)}))],g=!0)},p(r,o){t=r,9&o[0]&&(S=ot(t[3]),et(),b=st(b,o,M,0,t,S,x,n,it,Nl,null,Rl),nt()),(!m||128&o[0]&&l!==(l=t[7].bgEvents))&&E(n,"class",l),t[4][1]?U?(U.p(t,o),16&o[0]&<(U,1)):(U=Al(t),U.c(),lt(U,1),U.m(s,a)):U&&(et(),rt(U,1,1,(()=>{U=null})),nt()),5&o[0]&&(L=ot(t[2]),et(),C=st(C,o,H,0,t,L,D,s,it,Fl,c,Bl),nt()),t[4][0]&&!t[4][0].event.allDay?B?(B.p(t,o),16&o[0]&<(B,1)):(B=zl(t),B.c(),lt(B,1),B.m(s,null)):B&&(et(),rt(B,1,1,(()=>{B=null})),nt()),(!m||128&o[0]&&u!==(u=t[7].events))&&E(s,"class",u),t[9]&&t[5]?R?544&o[0]&<(R,1):(R=Pl(),R.c(),lt(R,1),R.m(f,null)):R&&(et(),rt(R,1,1,(()=>{R=null})),nt()),(!m||128&o[0]&&h!==(h=t[7].extra))&&E(f,"class",h),(!m||225&o[0]&&p!==(p=t[7].day+" "+t[7].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[7].today:"")+(t[6]?" "+t[7].highlight:"")))&&E(e,"class",p)},i(t){if(!m){for(let t=0;t<S.length;t+=1)lt(b[t]);lt(U);for(let t=0;t<L.length;t+=1)lt(C[t]);lt(B),lt(R),m=!0}},o(t){for(let t=0;t<b.length;t+=1)rt(b[t]);rt(U);for(let t=0;t<C.length;t+=1)rt(C[t]);rt(B),rt(R),m=!1},d(n){n&&w(e);for(let t=0;t<b.length;t+=1)b[t].d();U&&U.d();for(let t=0;t<C.length;t+=1)C[t].d();B&&B.d(),R&&R.d(),t[28](null),g=!1,r($)}}}function jl(t,e,n){let l,r,o,i,s,a,u,d,f,h,p,{date:m}=e,{resource:g}=e,{_events:$,_iEvents:v,highlightedDates:y,nowIndicator:w,slotDuration:b,slotHeight:k,theme:x,_interaction:_,_today:C,_slotTimeLimits:T}=F("state");c(t,$,(t=>n(27,u=t))),c(t,v,(t=>n(26,a=t))),c(t,y,(t=>n(24,i=t))),c(t,w,(t=>n(9,h=t))),c(t,b,(t=>n(30,r=t))),c(t,k,(t=>n(29,l=t))),c(t,x,(t=>n(7,d=t))),c(t,_,(t=>n(8,f=t))),c(t,C,(t=>n(25,s=t))),c(t,T,(t=>n(23,o=t)));let D,E,S,M,U,L,H=[];function B(t,e){return e-=qt(p).top,{allDay:!1,date:_t(_t(xt(m),o.min),r,It(e/l)),resource:g,dayEl:p}}return t.$$set=t=>{"date"in t&&n(0,m=t.date),"resource"in t&&n(20,g=t.resource)},t.$$.update=()=>{if(8388609&t.$$.dirty[0]&&(n(21,U=_t(xt(m),o.min)),n(22,L=_t(xt(m),o.max))),141557772&t.$$.dirty[0]){n(2,D=[]),n(3,E=[]);for(let t of u)if(!t.allDay&&$e(t,U,L,g)){let e=ie(t,U,L);if("background"===t.display)E.push(e);else D.push(e)}!function(t){if(!t.length)return;se(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][e.columns[t].length-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}}(D)}74448896&t.$$.dirty[0]&&n(4,H=a.map((t=>t&&$e(t,U,L,g)?ie(t,U,L):null))),33554433&t.$$.dirty[0]&&n(5,S=Ut(m,s)),16777217&t.$$.dirty[0]&&n(6,M=i.some((t=>Ut(t,m)))),2&t.$$.dirty[0]&&p&&Jt(p,B)},[m,p,D,E,H,S,M,d,f,h,$,v,y,w,b,k,x,_,C,T,g,U,L,o,i,s,a,u,function(t){I[t?"unshift":"push"]((()=>{p=t,n(1,p)}))}]}let Ol=class extends ft{constructor(t){super(),dt(this,t,jl,Il,i,{date:0,resource:20},null,[-1,-1])}};function Wl(t){let e,n,l,i,s,a,c,u,d,f,h;var p=t[10].resizer;function m(t,e){return{props:{event:t[0]}}}return p&&(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[30](t[10],"x"))&&t[30](t[10],"x").apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),a&&at(a.$$.fragment),E(n,"class",l=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",c=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(l,r){y(l,e,r),v(e,n),v(e,s),a&&ct(a,e,null),t[47](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){o(t[7])&&t[7].apply(this,arguments)})),T(e,"keydown",(function(){o(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){o(t[29](t[8],t[1]))&&t[29](t[8],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){o(t[29](t[9],t[1]))&&t[29](t[9],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){o(!ve(t[1])&&t[30](t[10]))&&(!ve(t[1])&&t[30](t[10])).apply(this,arguments)}))],f=!0)},p(r,s){if(t=r,(!d||4&s[0]&&l!==(l=t[2].eventBody))&&E(n,"class",l),i&&o(i.update)&&64&s[0]&&i.update.call(null,t[6]),1024&s[0]&&p!==(p=t[10].resizer)){if(a){et();const t=a;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[30](t[10],"x"))&&t[30](t[10],"x").apply(this,arguments)})),at(a.$$.fragment),lt(a.$$.fragment,1),ct(a,e,null)):a=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),a.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&c!==(c=t[7]?"button":void 0))&&E(e,"role",c),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(a&<(a.$$.fragment,t),d=!0)},o(t){a&&rt(a.$$.fragment,t),d=!1},d(n){n&&w(e),a&&ut(a),t[47](null),f=!1,r(h)}}}function Gl(t,e,n){let l,r,i,s,a,u,d,f,h,p,m,g,$,v,y,w,b,k,x,_,C,T,D,E,{chunk:S}=e,{longChunks:M={}}=e,{displayEventEnd:U,eventAllUpdated:L,eventBackgroundColor:H,eventTextColor:B,eventClick:A,eventColor:z,eventContent:P,eventClassNames:j,eventDidMount:O,eventMouseEnter:W,eventMouseLeave:G,theme:q,_view:Y,_intlEventTime:X,_interaction:V,_iClasses:J,_resBgColor:K,_resTxtColor:Q,_tasks:Z}=F("state");c(t,U,(t=>n(39,f=t))),c(t,L,(t=>n(49,i=t))),c(t,H,(t=>n(45,v=t))),c(t,B,(t=>n(42,m=t))),c(t,A,(t=>n(35,l=t))),c(t,z,(t=>n(44,$=t))),c(t,P,(t=>n(38,d=t))),c(t,j,(t=>n(40,h=t))),c(t,O,(t=>n(50,s=t))),c(t,W,(t=>n(8,w=t))),c(t,G,(t=>n(9,b=t))),c(t,q,(t=>n(2,u=t))),c(t,Y,(t=>n(36,r=t))),c(t,X,(t=>n(37,a=t))),c(t,V,(t=>n(10,k=t))),c(t,J,(t=>n(41,p=t))),c(t,K,(t=>n(46,y=t))),c(t,Q,(t=>n(43,g=t)));let tt,et,nt=1;function lt(t,e){return!ve(e)&&o(t)?e=>t({event:de(_),el:x,jsEvent:e,view:te(r)}):void 0}return R((()=>{o(s)&&s({event:de(_),timeText:E,el:x,view:te(r)})})),N((()=>{o(i)&&!ve(tt)&&Ft((()=>i({view:te(r)})),"eau",Z)})),t.$$set=t=>{"chunk"in t&&n(31,S=t.chunk),"longChunks"in t&&n(32,M=t.longChunks)},t.$$.update=()=>{if(1&t.$$.dirty[1]&&n(0,_=S.event),37&t.$$.dirty[0]|65065&t.$$.dirty[1]){n(1,tt=_.display);let t=_.backgroundColor||y(_)||v||$,e=_.textColor||g(_)||m;n(5,T=`width:calc(${100*S.days}% + ${7*(S.days-1)}px);margin-top:${_._margin??nt}px;`),t&&n(5,T+=`background-color:${t};`),e&&n(5,T+=`color:${e};`),n(4,C=[u.event,...p([],_),...ue(h,_,r)].join(" "))}4&t.$$.dirty[0]|481&t.$$.dirty[1]&&n(6,[E,D]=ae(S,f,d,u,a,r),D),2&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(7,et=lt(l,tt))},[_,tt,u,x,C,T,D,et,w,b,k,U,L,H,B,A,z,P,j,O,W,G,q,Y,X,V,J,K,Q,lt,function(t,e){return t.action?n=>t.action.drag(_,n,e,null,qt(x).top-qt(Yt(x,1)).top):void 0},S,M,function(){x&&n(34,nt=me(S,M,Xt(x)))},nt,l,r,a,d,f,h,p,m,g,$,v,y,function(t){I[t?"unshift":"push"]((()=>{x=t,n(3,x)}))}]}let ql=class extends ft{constructor(t){super(),dt(this,t,Gl,Wl,i,{chunk:31,longChunks:32,reposition:33},null,[-1,-1])}get reposition(){return this.$$.ctx[33]}};function Yl(t,e,n){const l=t.slice();return l[21]=e[n],l[22]=e,l[23]=n,l}function Xl(t){let e,n,l,r;return n=new ql({props:{chunk:t[2][0]}}),{c(){e=k("div"),at(n.$$.fragment),E(e,"class",l=t[8].events+" "+t[8].preview)},m(t,l){y(t,e,l),ct(n,e,null),r=!0},p(t,o){const i={};4&o&&(i.chunk=t[2][0]),n.$set(i),(!r||256&o&&l!==(l=t[8].events+" "+t[8].preview))&&E(e,"class",l)},i(t){r||(lt(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function Vl(t,e){let n,l,r,o=e[23];const i=()=>e[19](l,o),s=()=>e[19](null,o);let a={chunk:e[21],longChunks:e[1]};return l=new ql({props:a}),i(),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){o!==(e=t)[23]&&(s(),o=e[23],i());const r={};16&n&&(r.chunk=e[21]),2&n&&(r.longChunks=e[1]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),s(),ut(l,t)}}}function Jl(t){let e,n,l,r,i,s,a,c,u=t[2][0]&&Ut(t[2][0].date,t[0]),d=[],f=new Map,h=u&&Xl(t),p=ot(t[4]);const m=t=>t[21].event;for(let e=0;e<p.length;e+=1){let n=Yl(t,p,e),l=m(n);f.set(l,d[e]=Vl(l,n))}return{c(){e=k("div"),h&&h.c(),n=_(),l=k("div");for(let t=0;t<d.length;t+=1)d[t].c();E(l,"class",r=t[8].events),E(e,"class",i=t[8].day+" "+t[8].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[8].today:"")+(t[6]?" "+t[8].highlight:"")),E(e,"role","cell")},m(r,i){y(r,e,i),h&&h.m(e,null),v(e,n),v(e,l);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(l,null);t[20](e),s=!0,a||(c=T(e,"pointerdown",(function(){o(t[9].action?.select)&&t[9].action?.select.apply(this,arguments)})),a=!0)},p(o,a){let[c]=a;t=o,5&c&&(u=t[2][0]&&Ut(t[2][0].date,t[0])),u?h?(h.p(t,c),5&c&<(h,1)):(h=Xl(t),h.c(),lt(h,1),h.m(e,n)):h&&(et(),rt(h,1,1,(()=>{h=null})),nt()),146&c&&(p=ot(t[4]),et(),d=st(d,c,m,0,t,p,f,l,it,Vl,null,Yl),nt()),(!s||256&c&&r!==(r=t[8].events))&&E(l,"class",r),(!s||353&c&&i!==(i=t[8].day+" "+t[8].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[8].today:"")+(t[6]?" "+t[8].highlight:"")))&&E(e,"class",i)},i(t){if(!s){lt(h);for(let t=0;t<p.length;t+=1)lt(d[t]);s=!0}},o(t){rt(h);for(let t=0;t<d.length;t+=1)rt(d[t]);s=!1},d(n){n&&w(e),h&&h.d();for(let t=0;t<d.length;t+=1)d[t].d();t[20](null),a=!1,c()}}}function Kl(t,e,n){let l,r,o,i,s,a,u,d,{date:f}=e,{chunks:h}=e,{longChunks:p}=e,{iChunks:m=[]}=e,{resource:g}=e,{highlightedDates:$,theme:v,_interaction:y,_today:w}=F("state");c(t,$,(t=>n(17,l=t))),c(t,v,(t=>n(8,o=t))),c(t,y,(t=>n(9,i=t))),c(t,w,(t=>n(18,r=t)));let b=[];return t.$$set=t=>{"date"in t&&n(0,f=t.date),"chunks"in t&&n(14,h=t.chunks),"longChunks"in t&&n(1,p=t.longChunks),"iChunks"in t&&n(2,m=t.iChunks),"resource"in t&&n(15,g=t.resource)},t.$$.update=()=>{if(16401&t.$$.dirty){n(4,a=[]);for(let t of h)Ut(t.date,f)&&a.push(t)}262145&t.$$.dirty&&n(5,u=Ut(f,r)),131073&t.$$.dirty&&n(6,d=l.some((t=>Ut(t,f)))),32777&t.$$.dirty&&s&&Jt(s,(()=>({allDay:!0,date:f,resource:g,dayEl:s})))},[f,p,m,s,a,u,d,b,o,i,$,v,y,w,h,g,function(){ge(b,a)},l,r,function(t,e){I[t?"unshift":"push"]((()=>{b[e]=t,n(7,b)}))},function(t){I[t?"unshift":"push"]((()=>{s=t,n(3,s)}))}]}let Ql=class extends ft{constructor(t){super(),dt(this,t,Kl,Jl,i,{date:0,chunks:14,longChunks:1,iChunks:2,resource:15,reposition:16})}get reposition(){return this.$$.ctx[16]}};function Zl(t,e,n){const l=t.slice();return l[18]=e[n],l[19]=e,l[20]=n,l}function tr(t){let e,n,l=t[20];const r=()=>t[15](e,l),o=()=>t[15](null,l);let i={date:t[18],chunks:t[2],longChunks:t[3],iChunks:t[4],resource:t[1]};return e=new Ql({props:i}),r(),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){l!==t[20]&&(o(),l=t[20],r());const i={};1&n&&(i.date=t[18]),4&n&&(i.chunks=t[2]),8&n&&(i.longChunks=t[3]),16&n&&(i.iChunks=t[4]),2&n&&(i.resource=t[1]),e.$set(i)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ut(e,t)}}}function er(t){let e,n,l,r,o=ot(t[0]),i=[];for(let e=0;e<o.length;e+=1)i[e]=tr(Zl(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);y(o,e,s),n=!0,l||(r=T(window,"resize",t[9]),l=!0)},p(t,n){let[l]=n;if(63&l){let n;for(o=ot(t[0]),n=0;n<o.length;n+=1){const r=Zl(t,o,n);i[n]?(i[n].p(r,l),lt(i[n],1)):(i[n]=tr(r),i[n].c(),lt(i[n],1),i[n].m(e.parentNode,e))}for(et(),n=o.length;n<i.length;n+=1)s(n);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)lt(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&&w(e),b(i,t),l=!1,r()}}}function nr(t,e,n){let l,r,o,{dates:i}=e,{resource:s}=e,{_events:a,_iEvents:u,_queue2:d,hiddenDays:f}=F("state");c(t,a,(t=>n(14,o=t))),c(t,u,(t=>n(13,r=t))),c(t,f,(t=>n(12,l=t)));let h,p,m,g,$=[],v=[],y={};function w(){Nt((()=>ge(v,i)),y,d)}return t.$$set=t=>{"dates"in t&&n(0,i=t.dates),"resource"in t&&n(1,s=t.resource)},t.$$.update=()=>{if(1&t.$$.dirty&&(n(10,m=i[0]),n(11,g=Tt(xt(i[i.length-1])))),23558&t.$$.dirty){n(2,h=[]);for(let t of o)if(t.allDay&&!ye(t.display)&&$e(t,m,g,s)){let e=ie(t,m,g);h.push(e)}n(3,p=pe(h,l)),w()}15362&t.$$.dirty&&n(4,$=r.map((t=>{let e;return t&&t.allDay&&$e(t,m,g,s)?(e=ie(t,m,g),pe([e],l)):e=null,e})))},[i,s,h,p,$,v,a,u,f,w,m,g,l,r,o,function(t,e){I[t?"unshift":"push"]((()=>{v[e]=t,n(5,v)}))}]}class lr extends ft{constructor(t){super(),dt(this,t,nr,er,i,{dates:0,resource:1})}}function rr(t,e,n){const l=t.slice();return l[10]=e[n],l}function or(t,e,n){const l=t.slice();return l[10]=e[n],l}function ir(t){let e,n,l,r,i,s,a,c,u;return{c(){e=k("div"),n=k("time"),s=_(),E(n,"datetime",l=Mt(t[10],10)),E(n,"aria-label",r=t[2].format(t[10])),E(e,"class",a=t[0].day+" "+t[0].weekdays?.[t[10].getUTCDay()]),E(e,"role","columnheader")},m(l,r){y(l,e,r),v(e,n),v(e,s),c||(u=g(i=vt.call(null,n,t[3].format(t[10]))),c=!0)},p(s,c){t=s,2&c&&l!==(l=Mt(t[10],10))&&E(n,"datetime",l),6&c&&r!==(r=t[2].format(t[10]))&&E(n,"aria-label",r),i&&o(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()])&&E(e,"class",a)},d(t){t&&w(e),c=!1,u()}}}function sr(t){let e,n=ot(t[1]),l=[];for(let e=0;e<n.length;e+=1)l[e]=ir(or(t,n,e));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,n){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,n);y(t,e,n)},p(t,r){if(15&r){let o;for(n=ot(t[1]),o=0;o<n.length;o+=1){const i=or(t,n,o);l[o]?l[o].p(i,r):(l[o]=ir(i),l[o].c(),l[o].m(e.parentNode,e))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(t){t&&w(e),b(l,t)}}}function ar(t){let e,n,l,r,o,i,s,a,c;return l=new wl({props:{$$slots:{default:[cr]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),at(l.$$.fragment),r=_(),o=k("div"),E(o,"class",i=t[0].hiddenScroll),E(n,"class",s=t[0].content),E(e,"class",a=t[0].allDay)},m(t,i){y(t,e,i),v(e,n),ct(l,n,null),v(n,r),v(n,o),c=!0},p(t,r){const u={};32770&r&&(u.$$scope={dirty:r,ctx:t}),l.$set(u),(!c||1&r&&i!==(i=t[0].hiddenScroll))&&E(o,"class",i),(!c||1&r&&s!==(s=t[0].content))&&E(n,"class",s),(!c||1&r&&a!==(a=t[0].allDay))&&E(e,"class",a)},i(t){c||(lt(l.$$.fragment,t),c=!0)},o(t){rt(l.$$.fragment,t),c=!1},d(t){t&&w(e),ut(l)}}}function cr(t){let e,n;return e=new lr({props:{dates:t[1]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};2&n&&(l.dates=t[1]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function ur(t){let e,n;return e=new Ol({props:{date:t[10]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};2&n&&(l.date=t[10]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function dr(t){let e,n,l=ot(t[1]),r=[];for(let e=0;e<l.length;e+=1)r[e]=ur(rr(t,l,e));const o=t=>rt(r[t],1,1,(()=>{r[t]=null}));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);y(t,e,l),n=!0},p(t,n){if(2&n){let i;for(l=ot(t[1]),i=0;i<l.length;i+=1){const o=rr(t,l,i);r[i]?(r[i].p(o,n),lt(r[i],1)):(r[i]=ur(o),r[i].c(),lt(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=l.length;i<r.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)lt(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function fr(t){let e,n,l,r,o,i,s,a,c,u;n=new wl({props:{$$slots:{default:[sr]},$$scope:{ctx:t}}});let d=t[4]&&ar(t);return c=new Dl({props:{$$slots:{default:[dr]},$$scope:{ctx:t}}}),{c(){e=k("div"),at(n.$$.fragment),l=_(),r=k("div"),s=_(),d&&d.c(),a=_(),at(c.$$.fragment),E(r,"class",o=t[0].hiddenScroll),E(e,"class",i=t[0].header)},m(t,o){y(t,e,o),ct(n,e,null),v(e,l),v(e,r),y(t,s,o),d&&d.m(t,o),y(t,a,o),ct(c,t,o),u=!0},p(t,l){let[s]=l;const f={};32783&s&&(f.$$scope={dirty:s,ctx:t}),n.$set(f),(!u||1&s&&o!==(o=t[0].hiddenScroll))&&E(r,"class",o),(!u||1&s&&i!==(i=t[0].header))&&E(e,"class",i),t[4]?d?(d.p(t,s),16&s&<(d,1)):(d=ar(t),d.c(),lt(d,1),d.m(a.parentNode,a)):d&&(et(),rt(d,1,1,(()=>{d=null})),nt());const h={};32770&s&&(h.$$scope={dirty:s,ctx:t}),c.$set(h)},i(t){u||(lt(n.$$.fragment,t),lt(d),lt(c.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(d),rt(c.$$.fragment,t),u=!1},d(t){t&&(w(e),w(s),w(a)),ut(n),d&&d.d(t),ut(c,t)}}}function hr(t,e,n){let l,r,o,i,s,{_viewDates:a,_intlDayHeader:u,_intlDayHeaderAL:d,allDaySlot:f,theme:h}=F("state");return c(t,a,(t=>n(1,r=t))),c(t,u,(t=>n(3,i=t))),c(t,d,(t=>n(2,o=t))),c(t,f,(t=>n(4,s=t))),c(t,h,(t=>n(0,l=t))),[l,r,o,i,s,a,u,d,f,h]}let pr=class extends ft{constructor(t){super(),dt(this,t,hr,fr,i,{})}};var mr={createOptions(t){t.buttonText.timeGridDay="day",t.buttonText.timeGridWeek="week",t.view="timeGridWeek",t.views.timeGridDay={buttonText:be,component:pr,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:Te("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},t.views.timeGridWeek={buttonText:ke,component:pr,duration:{weeks:1},theme:Te("ec-time-grid ec-week-view")}},createStores(t){t._slotTimeLimits=function(t){return gt([t.slotMinTime,t.slotMaxTime,t.flexibleSlotTimeLimits,t._viewDates,t._events],(t=>He(...t)))}(t),t._times=function(t){return gt([t.slotDuration,t._slotTimeLimits,t._intlSlotLabel],(t=>Le(Et(bt()),...t)))}(t)}};function gr(e){let n,l,r,i;return{c(){n=k("span"),E(n,"aria-label",e[2])},m(t,o){y(t,n,o),e[9](n),r||(i=g(l=vt.call(null,n,e[1])),r=!0)},p(t,e){let[r]=e;4&r&&E(n,"aria-label",t[2]),l&&o(l.update)&&2&r&&l.update.call(null,t[1])},i:t,o:t,d(t){t&&w(n),e[9](null),r=!1,i()}}}function $r(t,e,n){let l,r,i,{resource:s}=e,{date:a}=e,{resourceLabelContent:u,resourceLabelDidMount:d,_intlDayHeaderAL:f}=F("state");c(t,u,(t=>n(8,i=t))),c(t,d,(t=>n(11,r=t))),c(t,f,(t=>n(10,l=t)));const h=A();let p,m,g;return R((()=>{o(r)&&r({resource:s,date:a?St(a):void 0,el:p})})),N((()=>{a?n(2,g=l.format(a)+", "+p.innerText):(n(2,g=void 0),h("text",p.innerText))})),t.$$set=t=>{"resource"in t&&n(6,s=t.resource),"date"in t&&n(7,a=t.date)},t.$$.update=()=>{448&t.$$.dirty&&n(1,m=i?o(i)?i({resource:s,date:a?St(a):void 0}):i:s.title)},[p,m,g,u,d,f,s,a,i,function(t){I[t?"unshift":"push"]((()=>{p=t,n(0,p)}))}]}let vr=class extends ft{constructor(t){super(),dt(this,t,$r,gr,i,{resource:6,date:7})}};function yr(t,e,n){const l=t.slice();return l[17]=e[n],l}function wr(t,e,n){const l=t.slice();return l[20]=e[n],l}function br(t,e,n){const l=t.slice();return l[26]=e[n],l}function kr(t,e,n){const l=t.slice();return l[23]=e[n],l}function xr(t,e,n){const l=t.slice();return l[26]=e[n],l}function _r(t,e,n){const l=t.slice();return l[17]=e[n],l[32]=n,l}function Cr(t,e,n){const l=t.slice();return l[20]=e[n],l}function Tr(t){let e,n,l,r;return n=new vr({props:{resource:t[17]}}),n.$on("text",(function(){for(var e=arguments.length,n=new Array(e),l=0;l<e;l++)n[l]=arguments[l];return t[16](t[32],...n)})),{c(){e=k("div"),at(n.$$.fragment),E(e,"class",l=t[5].day)},m(t,l){y(t,e,l),ct(n,e,null),r=!0},p(o,i){t=o;const s={};8&i[0]&&(s.resource=t[17]),n.$set(s),(!r||32&i[0]&&l!==(l=t[5].day))&&E(e,"class",l)},i(t){r||(lt(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function Dr(e){let n,l,r,i,s,a,c,u;return{c(){n=k("div"),l=k("time"),E(l,"datetime",r=Mt(e[17],10)),E(l,"aria-label",i=e[6].format(e[17])),E(n,"class",a=e[5].day+" "+e[5].weekdays?.[e[17].getUTCDay()])},m(t,r){y(t,n,r),v(n,l),c||(u=g(s=vt.call(null,l,e[7].format(e[17]))),c=!0)},p(t,c){e=t,8&c[0]&&r!==(r=Mt(e[17],10))&&E(l,"datetime",r),72&c[0]&&i!==(i=e[6].format(e[17]))&&E(l,"aria-label",i),s&&o(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()])&&E(n,"class",a)},i:t,o:t,d(t){t&&w(n),c=!1,u()}}}function Er(t){let e,n,l,r=ot(t[3][1]),o=[];for(let e=0;e<r.length;e+=1)o[e]=Ur(Cr(t,r,e));const i=t=>rt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=k("div");for(let t=0;t<o.length;t+=1)o[t].c();E(e,"class",n=t[5].days)},m(t,n){y(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);l=!0},p(t,s){if(252&s[0]){let n;for(r=ot(t[3][1]),n=0;n<r.length;n+=1){const l=Cr(t,r,n);o[n]?(o[n].p(l,s),lt(o[n],1)):(o[n]=Ur(l),o[n].c(),lt(o[n],1),o[n].m(e,null))}for(et(),n=r.length;n<o.length;n+=1)i(n);nt()}(!l||32&s[0]&&n!==(n=t[5].days))&&E(e,"class",n)},i(t){if(!l){for(let t=0;t<r.length;t+=1)lt(o[t]);l=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)rt(o[t]);l=!1},d(t){t&&w(e),b(o,t)}}}function Sr(e){let n,l,r,i,s,a,c,u,d;return{c(){n=k("div"),l=k("time"),a=_(),E(l,"datetime",r=Mt(e[20],10)),E(l,"aria-label",i=""+(e[4][e[32]]+e[6].format(e[20]))),E(n,"class",c=e[5].day+" "+e[5].weekdays?.[e[20].getUTCDay()]),E(n,"role","columnheader")},m(t,r){y(t,n,r),v(n,l),v(n,a),u||(d=g(s=vt.call(null,l,e[7].format(e[20]))),u=!0)},p(t,a){e=t,8&a[0]&&r!==(r=Mt(e[20],10))&&E(l,"datetime",r),88&a[0]&&i!==(i=""+(e[4][e[32]]+e[6].format(e[20])))&&E(l,"aria-label",i),s&&o(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()])&&E(n,"class",c)},i:t,o:t,d(t){t&&w(n),u=!1,d()}}}function Mr(t){let e,n,l,r,o;return n=new vr({props:{resource:t[20],date:t[17]}}),{c(){e=k("div"),at(n.$$.fragment),l=_(),E(e,"class",r=t[5].day),E(e,"role","columnheader")},m(t,r){y(t,e,r),ct(n,e,null),v(e,l),o=!0},p(t,l){const i={};8&l[0]&&(i.resource=t[20]),8&l[0]&&(i.date=t[17]),n.$set(i),(!o||32&l[0]&&r!==(r=t[5].day))&&E(e,"class",r)},i(t){o||(lt(n.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),o=!1},d(t){t&&w(e),ut(n)}}}function Ur(t){let e,n,l,r;const o=[Mr,Sr],i=[];function s(t,e){return t[2]?0:1}return e=s(t),n=i[e]=o[e](t),{c(){n.c(),l=C()},m(t,n){i[e].m(t,n),y(t,l,n),r=!0},p(t,r){let a=e;e=s(t),e===a?i[e].p(t,r):(et(),rt(i[a],1,1,(()=>{i[a]=null})),nt(),n=i[e],n?n.p(t,r):(n=i[e]=o[e](t),n.c()),lt(n,1),n.m(l.parentNode,l))},i(t){r||(lt(n),r=!0)},o(t){rt(n),r=!1},d(t){t&&w(l),i[e].d(t)}}}function Lr(t){let e,n,l,r,o,i,s;const a=[Dr,Tr],c=[];function u(t,e){return t[2]?0:1}n=u(t),l=c[n]=a[n](t);let d=t[3][1].length>1&&Er(t);return{c(){e=k("div"),l.c(),r=_(),d&&d.c(),o=_(),E(e,"class",i=t[5].resource)},m(t,l){y(t,e,l),c[n].m(e,null),v(e,r),d&&d.m(e,null),v(e,o),s=!0},p(t,f){let h=n;n=u(t),n===h?c[n].p(t,f):(et(),rt(c[h],1,1,(()=>{c[h]=null})),nt(),l=c[n],l?l.p(t,f):(l=c[n]=a[n](t),l.c()),lt(l,1),l.m(e,r)),t[3][1].length>1?d?(d.p(t,f),8&f[0]&<(d,1)):(d=Er(t),d.c(),lt(d,1),d.m(e,o)):d&&(et(),rt(d,1,1,(()=>{d=null})),nt()),(!s||32&f[0]&&i!==(i=t[5].resource))&&E(e,"class",i)},i(t){s||(lt(l),lt(d),s=!0)},o(t){rt(l),rt(d),s=!1},d(t){t&&w(e),c[n].d(),d&&d.d()}}}function Hr(t){let e,n,l=ot(t[3][0]),r=[];for(let e=0;e<l.length;e+=1)r[e]=Lr(_r(t,l,e));const o=t=>rt(r[t],1,1,(()=>{r[t]=null}));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);y(t,e,l),n=!0},p(t,n){if(252&n[0]){let i;for(l=ot(t[3][0]),i=0;i<l.length;i+=1){const o=_r(t,l,i);r[i]?(r[i].p(o,n),lt(r[i],1)):(r[i]=Lr(o),r[i].c(),lt(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=l.length;i<r.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)lt(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function Br(t){let e,n,l,r,o,i,s,a,c;return l=new wl({props:{$$slots:{default:[Pr]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),at(l.$$.fragment),r=_(),o=k("div"),E(o,"class",i=t[5].hiddenScroll),E(n,"class",s=t[5].content),E(e,"class",a=t[5].allDay)},m(t,i){y(t,e,i),v(e,n),ct(l,n,null),v(n,r),v(n,o),c=!0},p(t,r){const u={};39&r[0]|16&r[1]&&(u.$$scope={dirty:r,ctx:t}),l.$set(u),(!c||32&r[0]&&i!==(i=t[5].hiddenScroll))&&E(o,"class",i),(!c||32&r[0]&&s!==(s=t[5].content))&&E(n,"class",s),(!c||32&r[0]&&a!==(a=t[5].allDay))&&E(e,"class",a)},i(t){c||(lt(l.$$.fragment,t),c=!0)},o(t){rt(l.$$.fragment,t),c=!1},d(t){t&&w(e),ut(l)}}}function Rr(t){let e,n,l=ot(t[1]),r=[];for(let e=0;e<l.length;e+=1)r[e]=Ar(br(t,l,e));const o=t=>rt(r[t],1,1,(()=>{r[t]=null}));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);y(t,e,l),n=!0},p(t,n){if(35&n[0]){let i;for(l=ot(t[1]),i=0;i<l.length;i+=1){const o=br(t,l,i);r[i]?(r[i].p(o,n),lt(r[i],1)):(r[i]=Ar(o),r[i].c(),lt(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=l.length;i<r.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)lt(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function Nr(t){let e,n,l=ot(t[0]),r=[];for(let e=0;e<l.length;e+=1)r[e]=zr(kr(t,l,e));const o=t=>rt(r[t],1,1,(()=>{r[t]=null}));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);y(t,e,l),n=!0},p(t,n){if(35&n[0]){let i;for(l=ot(t[0]),i=0;i<l.length;i+=1){const o=kr(t,l,i);r[i]?(r[i].p(o,n),lt(r[i],1)):(r[i]=zr(o),r[i].c(),lt(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=l.length;i<r.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)lt(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function Ar(t){let e,n,l,r,o;return n=new lr({props:{dates:t[0],resource:t[26]}}),{c(){e=k("div"),at(n.$$.fragment),l=_(),E(e,"class",r=t[5].resource)},m(t,r){y(t,e,r),ct(n,e,null),v(e,l),o=!0},p(t,l){const i={};1&l[0]&&(i.dates=t[0]),2&l[0]&&(i.resource=t[26]),n.$set(i),(!o||32&l[0]&&r!==(r=t[5].resource))&&E(e,"class",r)},i(t){o||(lt(n.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),o=!1},d(t){t&&w(e),ut(n)}}}function Fr(t){let e,n;return e=new lr({props:{dates:[t[23]],resource:t[26]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};1&n[0]&&(l.dates=[t[23]]),2&n[0]&&(l.resource=t[26]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function zr(t){let e,n,l,r,o=ot(t[1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Fr(xr(t,o,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=k("div");for(let t=0;t<i.length;t+=1)i[t].c();n=_(),E(e,"class",l=t[5].resource)},m(t,l){y(t,e,l);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);v(e,n),r=!0},p(t,a){if(3&a[0]){let l;for(o=ot(t[1]),l=0;l<o.length;l+=1){const r=xr(t,o,l);i[l]?(i[l].p(r,a),lt(i[l],1)):(i[l]=Fr(r),i[l].c(),lt(i[l],1),i[l].m(e,n))}for(et(),l=o.length;l<i.length;l+=1)s(l);nt()}(!r||32&a[0]&&l!==(l=t[5].resource))&&E(e,"class",l)},i(t){if(!r){for(let t=0;t<o.length;t+=1)lt(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&&w(e),b(i,t)}}}function Pr(t){let e,n,l,r;const o=[Nr,Rr],i=[];function s(t,e){return t[2]?0:1}return e=s(t),n=i[e]=o[e](t),{c(){n.c(),l=C()},m(t,n){i[e].m(t,n),y(t,l,n),r=!0},p(t,r){let a=e;e=s(t),e===a?i[e].p(t,r):(et(),rt(i[a],1,1,(()=>{i[a]=null})),nt(),n=i[e],n?n.p(t,r):(n=i[e]=o[e](t),n.c()),lt(n,1),n.m(l.parentNode,l))},i(t){r||(lt(n),r=!0)},o(t){rt(n),r=!1},d(t){t&&w(l),i[e].d(t)}}}function Ir(t){let e,n;return e=new Ol({props:{date:t[2]?t[17]:t[20],resource:t[2]?t[20]:t[17]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};12&n[0]&&(l.date=t[2]?t[17]:t[20]),12&n[0]&&(l.resource=t[2]?t[20]:t[17]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function jr(t){let e,n,l,r,o=ot(t[3][1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Ir(wr(t,o,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=k("div");for(let t=0;t<i.length;t+=1)i[t].c();n=_(),E(e,"class",l=t[5].resource)},m(t,l){y(t,e,l);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);v(e,n),r=!0},p(t,a){if(12&a[0]){let l;for(o=ot(t[3][1]),l=0;l<o.length;l+=1){const r=wr(t,o,l);i[l]?(i[l].p(r,a),lt(i[l],1)):(i[l]=Ir(r),i[l].c(),lt(i[l],1),i[l].m(e,n))}for(et(),l=o.length;l<i.length;l+=1)s(l);nt()}(!r||32&a[0]&&l!==(l=t[5].resource))&&E(e,"class",l)},i(t){if(!r){for(let t=0;t<o.length;t+=1)lt(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&&w(e),b(i,t)}}}function Or(t){let e,n,l=ot(t[3][0]),r=[];for(let e=0;e<l.length;e+=1)r[e]=jr(yr(t,l,e));const o=t=>rt(r[t],1,1,(()=>{r[t]=null}));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);y(t,e,l),n=!0},p(t,n){if(44&n[0]){let i;for(l=ot(t[3][0]),i=0;i<l.length;i+=1){const o=yr(t,l,i);r[i]?(r[i].p(o,n),lt(r[i],1)):(r[i]=jr(o),r[i].c(),lt(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=l.length;i<r.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)lt(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function Wr(t){let e,n,l,r,o,i,s,a,c,u;n=new wl({props:{$$slots:{default:[Hr]},$$scope:{ctx:t}}});let d=t[8]&&Br(t);return c=new Dl({props:{$$slots:{default:[Or]},$$scope:{ctx:t}}}),{c(){e=k("div"),at(n.$$.fragment),l=_(),r=k("div"),s=_(),d&&d.c(),a=_(),at(c.$$.fragment),E(r,"class",o=t[5].hiddenScroll),E(e,"class",i=t[5].header)},m(t,o){y(t,e,o),ct(n,e,null),v(e,l),v(e,r),y(t,s,o),d&&d.m(t,o),y(t,a,o),ct(c,t,o),u=!0},p(t,l){const s={};252&l[0]|16&l[1]&&(s.$$scope={dirty:l,ctx:t}),n.$set(s),(!u||32&l[0]&&o!==(o=t[5].hiddenScroll))&&E(r,"class",o),(!u||32&l[0]&&i!==(i=t[5].header))&&E(e,"class",i),t[8]?d?(d.p(t,l),256&l[0]&<(d,1)):(d=Br(t),d.c(),lt(d,1),d.m(a.parentNode,a)):d&&(et(),rt(d,1,1,(()=>{d=null})),nt());const f={};44&l[0]|16&l[1]&&(f.$$scope={dirty:l,ctx:t}),c.$set(f)},i(t){u||(lt(n.$$.fragment,t),lt(d),lt(c.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(d),rt(c.$$.fragment,t),u=!1},d(t){t&&(w(e),w(s),w(a)),ut(n),d&&d.d(t),ut(c,t)}}}function Gr(t,e,n){let l,r,o,i,s,a,u,d,{datesAboveResources:f,_viewDates:h,_viewResources:p,_intlDayHeader:m,_intlDayHeaderAL:g,allDaySlot:$,theme:v}=F("state");c(t,f,(t=>n(2,o=t))),c(t,h,(t=>n(0,l=t))),c(t,p,(t=>n(1,r=t))),c(t,m,(t=>n(7,a=t))),c(t,g,(t=>n(6,s=t))),c(t,$,(t=>n(8,u=t))),c(t,v,(t=>n(5,i=t)));let y=[];return t.$$.update=()=>{7&t.$$.dirty[0]&&n(3,d=o?[l,r]:[r,l])},[l,r,o,d,y,i,s,a,u,f,h,p,m,g,$,v,(t,e)=>n(4,y[t]=e.detail+", ",y)]}let qr=class extends ft{constructor(t){super(),dt(this,t,Gr,Wr,i,{},null,[-1,-1])}};function Yr(t,e,n){let l,r,o,{resources:i,_resBgColor:s,_resTxtColor:a}=F("state");return c(t,i,(t=>n(3,l=t))),c(t,s,(t=>n(5,o=t))),c(t,a,(t=>n(4,r=t))),m(s,o=t=>{let e=l.find((e=>t.resourceIds.includes(e.id)));return e?.eventBackgroundColor},o),m(a,r=t=>{let e=l.find((e=>t.resourceIds.includes(e.id)));return e?.eventTextColor},r),[i,s,a]}let Xr=class extends ft{constructor(t){super(),dt(this,t,Yr,null,i,{})}};var Vr={createOptions(t){t.datesAboveResources=!1,t.buttonText.resourceTimeGridDay="resources",t.buttonText.resourceTimeGridWeek="resources",t.view="resourceTimeGridWeek",t.views.resourceTimeGridDay={buttonText:be,component:qr,duration:{days:1},theme:Te("ec-time-grid ec-resource-day-view")},t.views.resourceTimeGridWeek={buttonText:ke,component:qr,duration:{weeks:1},theme:Te("ec-time-grid ec-resource-week-view")}},createStores(t){"_times"in t||mr.createStores(t),t._auxiliary.update((t=>[...t,Xr])),"_viewResources"in t||(t._viewResources=Ue(t))}};function Jr(e){let n,l,r,i;return{c(){n=k("span")},m(t,o){y(t,n,o),e[7](n),r||(i=g(l=vt.call(null,n,e[1])),r=!0)},p(t,e){let[n]=e;l&&o(l.update)&&2&n&&l.update.call(null,t[1])},i:t,o:t,d(t){t&&w(n),e[7](null),r=!1,i()}}}function Kr(t,e,n){let l,r,i,s,{resource:a}=e,{date:u}=e,{resourceLabelContent:d,resourceLabelDidMount:f}=F("state");return c(t,d,(t=>n(6,r=t))),c(t,f,(t=>n(8,l=t))),R((()=>{o(l)&&l({resource:a,date:u?St(u):void 0,el:i})})),t.$$set=t=>{"resource"in t&&n(4,a=t.resource),"date"in t&&n(5,u=t.date)},t.$$.update=()=>{112&t.$$.dirty&&n(1,s=r?o(r)?r({resource:a,date:u?St(u):void 0}):r:a.title)},[i,s,d,f,a,u,r,function(t){I[t?"unshift":"push"]((()=>{i=t,n(0,i)}))}]}class Qr extends ft{constructor(t){super(),dt(this,t,Kr,Jr,i,{resource:4,date:5})}}function Zr(t,e,n){const l=t.slice();return l[12]=e[n],l}function to(t){let e,n,l,r,o;return n=new Qr({props:{resource:t[12]}}),{c(){e=k("div"),at(n.$$.fragment),l=_(),E(e,"class",r=t[1].resource),M(e,"flex-basis",Wt(t[4].get(t[12])??0,34)+"px"),E(e,"role","rowheader")},m(t,r){y(t,e,r),ct(n,e,null),v(e,l),o=!0},p(t,l){const i={};8&l&&(i.resource=t[12]),n.$set(i),(!o||2&l&&r!==(r=t[1].resource))&&E(e,"class",r),(!o||24&l)&&M(e,"flex-basis",Wt(t[4].get(t[12])??0,34)+"px")},i(t){o||(lt(n.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),o=!1},d(t){t&&w(e),ut(n)}}}function eo(t){let e,n,l,r,o,i,s,a,c=ot(t[3]),u=[];for(let e=0;e<c.length;e+=1)u[e]=to(Zr(t,c,e));const d=t=>rt(u[t],1,1,(()=>{u[t]=null}));return{c(){e=k("div"),n=k("div"),r=_(),o=k("div");for(let t=0;t<u.length;t+=1)u[t].c();E(n,"class",l=t[1].sidebarTitle),M(n,"flex-basis",t[0]+"px"),E(o,"class",i=t[1].content),E(e,"class",s=t[1].sidebar)},m(l,i){y(l,e,i),v(e,n),v(e,r),v(e,o);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(o,null);t[11](o),a=!0},p(t,r){let[f]=r;if((!a||2&f&&l!==(l=t[1].sidebarTitle))&&E(n,"class",l),(!a||1&f)&&M(n,"flex-basis",t[0]+"px"),26&f){let e;for(c=ot(t[3]),e=0;e<c.length;e+=1){const n=Zr(t,c,e);u[e]?(u[e].p(n,f),lt(u[e],1)):(u[e]=to(n),u[e].c(),lt(u[e],1),u[e].m(o,null))}for(et(),e=c.length;e<u.length;e+=1)d(e);nt()}(!a||2&f&&i!==(i=t[1].content))&&E(o,"class",i),(!a||2&f&&s!==(s=t[1].sidebar))&&E(e,"class",s)},i(t){if(!a){for(let t=0;t<c.length;t+=1)lt(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&&w(e),b(u,n),t[11](null)}}}function no(t,e,n){let l,r,o,i,s,{_viewResources:a,_headerEl:u,_resHs:d,_sidebarEl:f,theme:h}=F("state");c(t,a,(t=>n(3,i=t))),c(t,u,(t=>n(10,l=t))),c(t,d,(t=>n(4,s=t))),c(t,f,(t=>n(2,o=t))),c(t,h,(t=>n(1,r=t)));let p=0;return t.$$.update=()=>{1024&t.$$.dirty&&l&&n(0,p=l.clientHeight)},[p,r,o,i,s,a,u,d,f,h,l,function(t){I[t?"unshift":"push"]((()=>{o=t,f.set(o)}))}]}class lo extends ft{constructor(t){super(),dt(this,t,no,eo,i,{})}}function ro(t,e,n){const l=t.slice();return l[11]=e[n],l}function oo(t,e,n){const l=t.slice();return l[14]=e[n],l}function io(t){let e,n,l,r,i,s,a,c,u;return{c(){e=k("div"),n=k("time"),i=_(),E(n,"datetime",l=t[14][0]),E(e,"class",s=t[0].time),E(e,"aria-label",a=t[14][3]),E(e,"role","columnheader")},m(l,o){y(l,e,o),v(e,n),v(e,i),c||(u=g(r=vt.call(null,n,t[14][1])),c=!0)},p(i,c){t=i,20&c&&l!==(l=t[14][0])&&E(n,"datetime",l),r&&o(r.update)&&20&c&&r.update.call(null,t[14][1]),1&c&&s!==(s=t[0].time)&&E(e,"class",s),20&c&&a!==(a=t[14][3])&&E(e,"aria-label",a)},d(t){t&&w(e),c=!1,u()}}}function so(t){let e,n,l,r,i,s,a,c,u,d,f,h,p,m=ot(t[4][t[11].getTime()]),$=[];for(let e=0;e<m.length;e+=1)$[e]=io(oo(t,m,e));return{c(){e=k("div"),n=k("div"),l=k("time"),a=_(),c=k("div");for(let t=0;t<$.length;t+=1)$[t].c();d=_(),E(l,"datetime",r=Mt(t[11],10)),E(n,"class",s=t[0].dayHead),E(c,"class",u=t[0].times),E(e,"class",f=t[0].day+" "+t[0].weekdays?.[t[11].getUTCDay()])},m(r,o){y(r,e,o),v(e,n),v(n,l),v(e,a),v(e,c);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(c,null);v(e,d),h||(p=g(i=vt.call(null,l,t[3].format(t[11]))),h=!0)},p(a,d){if(t=a,4&d&&r!==(r=Mt(t[11],10))&&E(l,"datetime",r),i&&o(i.update)&&12&d&&i.update.call(null,t[3].format(t[11])),1&d&&s!==(s=t[0].dayHead)&&E(n,"class",s),21&d){let e;for(m=ot(t[4][t[11].getTime()]),e=0;e<m.length;e+=1){const n=oo(t,m,e);$[e]?$[e].p(n,d):($[e]=io(n),$[e].c(),$[e].m(c,null))}for(;e<$.length;e+=1)$[e].d(1);$.length=m.length}1&d&&u!==(u=t[0].times)&&E(c,"class",u),5&d&&f!==(f=t[0].day+" "+t[0].weekdays?.[t[11].getUTCDay()])&&E(e,"class",f)},d(t){t&&w(e),b($,t),h=!1,p()}}}function ao(e){let n,l,r,o,i,s,a,c=ot(e[2]),u=[];for(let t=0;t<c.length;t+=1)u[t]=so(ro(e,c,t));return{c(){n=k("div"),l=k("div");for(let t=0;t<u.length;t+=1)u[t].c();o=_(),i=k("div"),E(l,"class",r=e[0].days),E(l,"role","row"),E(i,"class",s=e[0].hiddenScroll),E(n,"class",a=e[0].header)},m(t,r){y(t,n,r),v(n,l);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(l,null);v(n,o),v(n,i),e[10](n)},p(t,e){let[o]=e;if(29&o){let e;for(c=ot(t[2]),e=0;e<c.length;e+=1){const n=ro(t,c,e);u[e]?u[e].p(n,o):(u[e]=so(n),u[e].c(),u[e].m(l,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=c.length}1&o&&r!==(r=t[0].days)&&E(l,"class",r),1&o&&s!==(s=t[0].hiddenScroll)&&E(i,"class",s),1&o&&a!==(a=t[0].header)&&E(n,"class",a)},i:t,o:t,d(t){t&&w(n),b(u,t),e[10](null)}}}function co(t,e,n){let l,r,o,i,s,{_headerEl:a,_intlDayHeader:u,_dayTimes:d,_viewDates:f,theme:h}=F("state");return c(t,a,(t=>n(1,r=t))),c(t,u,(t=>n(3,i=t))),c(t,d,(t=>n(4,s=t))),c(t,f,(t=>n(2,o=t))),c(t,h,(t=>n(0,l=t))),[l,r,o,i,s,a,u,d,f,h,function(t){I[t?"unshift":"push"]((()=>{r=t,a.set(r)}))}]}class uo extends ft{constructor(t){super(),dt(this,t,co,ao,i,{})}}function fo(t){let e,n,l,i,s,a,c,u,d,f,h;var p=t[10].resizer;function m(t,e){return{props:{event:t[0]}}}return p&&(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[33](t[10],"x"))&&t[33](t[10],"x").apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),a&&at(a.$$.fragment),E(n,"class",l=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",c=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(l,r){y(l,e,r),v(e,n),v(e,s),a&&ct(a,e,null),t[56](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){o(t[7])&&t[7].apply(this,arguments)})),T(e,"keydown",(function(){o(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){o(t[32](t[8],t[1]))&&t[32](t[8],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){o(t[32](t[9],t[1]))&&t[32](t[9],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){o(!ye(t[1])&&!ve(t[1])&&t[33](t[10]))&&(!ye(t[1])&&!ve(t[1])&&t[33](t[10])).apply(this,arguments)}))],f=!0)},p(r,s){if(t=r,(!d||4&s[0]&&l!==(l=t[2].eventBody))&&E(n,"class",l),i&&o(i.update)&&64&s[0]&&i.update.call(null,t[6]),1024&s[0]&&p!==(p=t[10].resizer)){if(a){et();const t=a;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[33](t[10],"x"))&&t[33](t[10],"x").apply(this,arguments)})),at(a.$$.fragment),lt(a.$$.fragment,1),ct(a,e,null)):a=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),a.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&c!==(c=t[7]?"button":void 0))&&E(e,"role",c),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(a&<(a.$$.fragment,t),d=!0)},o(t){a&&rt(a.$$.fragment,t),d=!1},d(n){n&&w(e),a&&ut(a),t[56](null),f=!1,r(h)}}}function ho(t,e,n){let l,r,i,s,a,u,d,f,h,p,m,g,$,v,y,w,b,k,x,_,C,T,D,E,S,M,U,L,H,{date:B}=e,{chunk:A}=e,{dayChunks:z=[]}=e,{longChunks:P={}}=e,{resource:j}=e,{displayEventEnd:O,eventAllUpdated:W,eventBackgroundColor:G,eventTextColor:q,eventColor:Y,eventContent:X,eventClick:V,eventDidMount:J,eventClassNames:K,eventMouseEnter:Q,eventMouseLeave:Z,slotDuration:tt,slotWidth:et,theme:nt,_view:lt,_intlEventTime:rt,_interaction:ot,_iClasses:it,_resBgColor:st,_resTxtColor:at,_dayTimeLimits:ct,_tasks:ut}=F("state");c(t,O,(t=>n(45,f=t))),c(t,W,(t=>n(58,i=t))),c(t,G,(t=>n(51,v=t))),c(t,q,(t=>n(48,m=t))),c(t,Y,(t=>n(50,$=t))),c(t,X,(t=>n(44,d=t))),c(t,V,(t=>n(41,l=t))),c(t,J,(t=>n(59,s=t))),c(t,K,(t=>n(46,h=t))),c(t,Q,(t=>n(8,x=t))),c(t,Z,(t=>n(9,_=t))),c(t,tt,(t=>n(55,k=t))),c(t,et,(t=>n(53,w=t))),c(t,nt,(t=>n(2,u=t))),c(t,lt,(t=>n(42,r=t))),c(t,rt,(t=>n(43,a=t))),c(t,ot,(t=>n(10,C=t))),c(t,it,(t=>n(47,p=t))),c(t,st,(t=>n(52,y=t))),c(t,at,(t=>n(49,g=t))),c(t,ct,(t=>n(54,b=t)));let dt=ve(A.event.display)?1:0;function ft(t,e){return!ve(e)&&o(t)?e=>t({event:de(D),el:T,jsEvent:e,view:te(r)}):void 0}return R((()=>{o(s)&&s({event:de(D),timeText:L,el:T,view:te(r)})})),N((()=>{o(i)&&!ve(E)&&Ft((()=>i({view:te(r)})),"eau",ut)})),t.$$set=t=>{"date"in t&&n(34,B=t.date),"chunk"in t&&n(35,A=t.chunk),"dayChunks"in t&&n(36,z=t.dayChunks),"longChunks"in t&&n(37,P=t.longChunks),"resource"in t&&n(38,j=t.resource)},t.$$.update=()=>{if(16&t.$$.dirty[1]&&n(0,D=A.event),39&t.$$.dirty[0]|33524376&t.$$.dirty[1]){n(1,E=D.display);let t=Bt(k),e=(A.start-B)/1e3,l=(A.end-B)/1e3;e-=Bt(b[B.getTime()]?.min),e<0&&(e=0);let o=0;for(let t=0;t<A.days;++t){let e=b[A.dates[t].getTime()],n=Bt(e?.min),r=Bt(e?.max,wt),i=wt*t,s=i+wt;s>l&&(s=l),s>i+r&&(o+=s-i-r);let a=l-i;a>n&&(a=n),o+=a}l-=o;let i=e/t*w,s=(l-e)/t*w,a=D.backgroundColor||y(D)||v||$,c=D.textColor||g(D)||m,d=dt;if(D._margin){let[t,e]=D._margin;j===e&&(d=t)}n(5,M=`left:${i}px;width:${s}px;margin-top:${d}px;`),a&&n(5,M+=`background-color:${a};`),c&&n(5,M+=`color:${c};`),n(4,S=[ye(E)?u.bgEvent:u.event,...p([],D),...ue(h,D,r)].join(" "))}4&t.$$.dirty[0]|30736&t.$$.dirty[1]&&n(6,[L,U]=ae(A,f,d,u,a,r),U),2&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(7,H=!ye(E)&&ft(l,E))},[D,E,u,T,S,M,U,H,x,_,C,O,W,G,q,Y,X,V,J,K,Q,Z,tt,et,nt,lt,rt,ot,it,st,at,ct,ft,function(t,e){return t.action?n=>t.action.drag(D,n,e,null,[dt,j]):void 0},B,A,z,P,j,function(){if(!T)return 0;let t=Xt(T);return n(40,dt=function(t,e,n,l){t.top=0,t.bottom=l,e.sort(((t,e)=>(t.top??0)-(e.top??0)||t.start-e.start||e.event.allDay-t.event.allDay));let r=1;for(let n of e)if(n!==t&&t.start<n.end&&t.end>n.start&&t.top<n.bottom&&t.bottom>n.top){let e=n.bottom-t.top+1;r+=e,t.top+=e,t.bottom+=e}let o=t.date.getTime();if(n[o]){n[o].sorted||(n[o].chunks.sort(((t,e)=>t.top-e.top)),n[o].sorted=!0);for(let e of n[o].chunks)if(t.start<e.end&&t.end>e.start&&t.top<e.bottom&&t.bottom>e.top){let n=e.bottom-t.top+1;r+=n,t.top+=n,t.bottom+=n}}return r}(A,z,P,t)),dt+t},dt,l,r,a,d,f,h,p,m,g,$,v,y,w,b,k,function(t){I[t?"unshift":"push"]((()=>{T=t,n(3,T)}))}]}class po extends ft{constructor(t){super(),dt(this,t,ho,fo,i,{date:34,chunk:35,dayChunks:36,longChunks:37,resource:38,reposition:39},null,[-1,-1])}get reposition(){return this.$$.ctx[39]}}function mo(t,e,n){const l=t.slice();return l[32]=e[n],l[33]=e,l[34]=n,l}function go(t,e,n){const l=t.slice();return l[32]=e[n],l}function $o(t,e){let n,l,r;return l=new po({props:{date:e[0],chunk:e[32]}}),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){e=t;const r={};1&n[0]&&(r.date=e[0]),64&n[0]&&(r.chunk=e[32]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),ut(l,t)}}}function vo(t){let e,n;return e=new po({props:{date:t[0],chunk:t[3][1]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};1&n[0]&&(l.date=t[0]),8&n[0]&&(l.chunk=t[3][1]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function yo(t,e){let n,l,r,o=e[34];const i=()=>e[28](l,o),s=()=>e[28](null,o);let a={date:e[0],chunk:e[32],dayChunks:e[5],longChunks:e[2],resource:e[1]};return l=new po({props:a}),i(),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){o!==(e=t)[34]&&(s(),o=e[34],i());const r={};1&n[0]&&(r.date=e[0]),32&n[0]&&(r.chunk=e[32]),32&n[0]&&(r.dayChunks=e[5]),4&n[0]&&(r.longChunks=e[2]),2&n[0]&&(r.resource=e[1]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),s(),ut(l,t)}}}function wo(t){let e,n;return e=new po({props:{date:t[0],chunk:t[3][0],resource:t[1]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};1&n[0]&&(l.date=t[0]),8&n[0]&&(l.chunk=t[3][0]),2&n[0]&&(l.resource=t[1]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function bo(t){let e,n,l,i,s,a,c,u,d,f,h=[],p=new Map,m=t[3][1]&&Ut(t[3][1].date,t[0]),g=[],$=new Map,b=t[3][0]&&Ut(t[3][0].date,t[0]),x=ot(t[6]);const C=t=>t[32].event;for(let e=0;e<x.length;e+=1){let n=go(t,x,e),l=C(n);p.set(l,h[e]=$o(l,n))}let D=m&&vo(t),S=ot(t[5]);const U=t=>t[32].event;for(let e=0;e<S.length;e+=1){let n=mo(t,S,e),l=U(n);$.set(l,g[e]=yo(l,n))}let L=b&&wo(t);return{c(){e=k("div"),n=k("div");for(let t=0;t<h.length;t+=1)h[t].c();l=_(),D&&D.c(),i=_();for(let t=0;t<g.length;t+=1)g[t].c();s=_(),L&&L.c(),E(n,"class",a=t[12].events),E(e,"class",c=t[12].day+" "+t[12].weekdays?.[t[0].getUTCDay()]+(t[8]?" "+t[12].today:"")+(t[9]?" "+t[12].highlight:"")),M(e,"flex-grow",jt((Bt(t[7].max)-Bt(t[7].min))/Bt(t[11]))),E(e,"role","cell")},m(r,a){y(r,e,a),v(e,n);for(let t=0;t<h.length;t+=1)h[t]&&h[t].m(n,null);v(n,l),D&&D.m(n,null),v(n,i);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(n,null);v(n,s),L&&L.m(n,null),t[29](e),u=!0,d||(f=[T(e,"pointerleave",(function(){o(t[13].pointer?.leave)&&t[13].pointer?.leave.apply(this,arguments)})),T(e,"pointerdown",(function(){o(t[13].action?.select)&&t[13].action?.select.apply(this,arguments)}))],d=!0)},p(r,o){t=r,65&o[0]&&(x=ot(t[6]),et(),h=st(h,o,C,0,t,x,p,n,it,$o,l,go),nt()),9&o[0]&&(m=t[3][1]&&Ut(t[3][1].date,t[0])),m?D?(D.p(t,o),9&o[0]&<(D,1)):(D=vo(t),D.c(),lt(D,1),D.m(n,i)):D&&(et(),rt(D,1,1,(()=>{D=null})),nt()),1063&o[0]&&(S=ot(t[5]),et(),g=st(g,o,U,0,t,S,$,n,it,yo,s,mo),nt()),9&o[0]&&(b=t[3][0]&&Ut(t[3][0].date,t[0])),b?L?(L.p(t,o),9&o[0]&<(L,1)):(L=wo(t),L.c(),lt(L,1),L.m(n,null)):L&&(et(),rt(L,1,1,(()=>{L=null})),nt()),(!u||4096&o[0]&&a!==(a=t[12].events))&&E(n,"class",a),(!u||4865&o[0]&&c!==(c=t[12].day+" "+t[12].weekdays?.[t[0].getUTCDay()]+(t[8]?" "+t[12].today:"")+(t[9]?" "+t[12].highlight:"")))&&E(e,"class",c),(!u||2176&o[0])&&M(e,"flex-grow",jt((Bt(t[7].max)-Bt(t[7].min))/Bt(t[11])))},i(t){if(!u){for(let t=0;t<x.length;t+=1)lt(h[t]);lt(D);for(let t=0;t<S.length;t+=1)lt(g[t]);lt(L),u=!0}},o(t){for(let t=0;t<h.length;t+=1)rt(h[t]);rt(D);for(let t=0;t<g.length;t+=1)rt(g[t]);rt(L),u=!1},d(n){n&&w(e);for(let t=0;t<h.length;t+=1)h[t].d();D&&D.d();for(let t=0;t<g.length;t+=1)g[t].d();L&&L.d(),t[29](null),d=!1,r(f)}}}function ko(t,e,n){let l,r,o,i,s,a,u,d,f,h,p,m,{date:g}=e,{resource:$}=e,{chunks:v}=e,{longChunks:y}=e,{iChunks:w=[]}=e,{highlightedDates:b,slotDuration:k,slotWidth:x,theme:_,_interaction:C,_today:T,_dayTimeLimits:D}=F("state");c(t,b,(t=>n(25,o=t))),c(t,k,(t=>n(11,r=t))),c(t,x,(t=>n(30,l=t))),c(t,_,(t=>n(12,a=t))),c(t,C,(t=>n(13,u=t))),c(t,T,(t=>n(26,i=t))),c(t,D,(t=>n(27,s=t)));let E,S,M,U=[];function L(t,e){return t-=qt(d).left,{allDay:!1,date:_t(_t(xt(g),E.min),r,It(t/l)),resource:$,dayEl:d}}return t.$$set=t=>{"date"in t&&n(0,g=t.date),"resource"in t&&n(1,$=t.resource),"chunks"in t&&n(21,v=t.chunks),"longChunks"in t&&n(2,y=t.longChunks),"iChunks"in t&&n(3,w=t.iChunks)},t.$$.update=()=>{if(134217857&t.$$.dirty[0]&&(n(7,E=s[g.getTime()]),n(23,S=_t(xt(g),E.min)),n(24,M=_t(xt(g),E.max))),27263073&t.$$.dirty[0]){n(5,f=[]),n(6,h=[]);for(let t of v)if(Ut(t.date,g)&&(t.start<M&&t.end>S||t.event.allDay))if("background"===t.event.display)h.push(t);else f.push(t)}67108865&t.$$.dirty[0]&&n(8,p=Ut(g,i)),33554433&t.$$.dirty[0]&&n(9,m=o.some((t=>Ut(t,g)))),16&t.$$.dirty[0]&&d&&Jt(d,L)},[g,$,y,w,d,f,h,E,p,m,U,r,a,u,b,k,x,_,C,T,D,v,function(){return Wt(...ge(U,f))},S,M,o,i,s,function(t,e){I[t?"unshift":"push"]((()=>{U[e]=t,n(10,U)}))},function(t){I[t?"unshift":"push"]((()=>{d=t,n(4,d)}))}]}class xo extends ft{constructor(t){super(),dt(this,t,ko,bo,i,{date:0,resource:1,chunks:21,longChunks:2,iChunks:3,reposition:22},null,[-1,-1])}get reposition(){return this.$$.ctx[22]}}function _o(t,e,n){const l=t.slice();return l[24]=e[n],l[25]=e,l[26]=n,l}function Co(t){let e,n,l=t[26];const r=()=>t[20](e,l),o=()=>t[20](null,l);let i={date:t[24],resource:t[0],chunks:t[1],longChunks:t[3],iChunks:t[4]};return e=new xo({props:i}),r(),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){l!==t[26]&&(o(),l=t[26],r());const i={};4&n&&(i.date=t[24]),1&n&&(i.resource=t[0]),2&n&&(i.chunks=t[1]),8&n&&(i.longChunks=t[3]),16&n&&(i.iChunks=t[4]),e.$set(i)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ut(e,t)}}}function To(t){let e,n,l,r,o,i=ot(t[2]),s=[];for(let e=0;e<i.length;e+=1)s[e]=Co(_o(t,i,e));const a=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=k("div");for(let t=0;t<s.length;t+=1)s[t].c();E(e,"class",n=t[7].days),M(e,"flex-basis",Wt(t[6],34)+"px"),E(e,"role","row")},m(n,i){y(n,e,i);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);l=!0,r||(o=T(window,"resize",t[14]),r=!0)},p(t,r){let[o]=r;if(63&o){let n;for(i=ot(t[2]),n=0;n<i.length;n+=1){const l=_o(t,i,n);s[n]?(s[n].p(l,o),lt(s[n],1)):(s[n]=Co(l),s[n].c(),lt(s[n],1),s[n].m(e,null))}for(et(),n=i.length;n<s.length;n+=1)a(n);nt()}(!l||128&o&&n!==(n=t[7].days))&&E(e,"class",n),(!l||64&o)&&M(e,"flex-basis",Wt(t[6],34)+"px")},i(t){if(!l){for(let t=0;t<i.length;t+=1)lt(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&&w(e),b(s,t),r=!1,o()}}}function Do(t,e,n){let l,r,o,i,s,a,{resource:u}=e,{_viewDates:d,_events:f,_iEvents:h,_queue2:p,_resHs:m,hiddenDays:g,theme:$}=F("state");c(t,d,(t=>n(2,s=t))),c(t,f,(t=>n(19,o=t))),c(t,h,(t=>n(18,r=t))),c(t,m,(t=>n(21,i=t))),c(t,g,(t=>n(17,l=t))),c(t,$,(t=>n(7,a=t)));let v,y,w,b,k=[],x=[],_=0,C={};function T(){Nt((()=>{n(6,_=jt(Wt(...ge(x,s)))+10),i.set(u,_),m.set(i)}),C,p)}return t.$$set=t=>{"resource"in t&&n(0,u=t.resource)},t.$$.update=()=>{if(4&t.$$.dirty&&(n(15,w=s[0]),n(16,b=Tt(xt(s[s.length-1])))),753667&t.$$.dirty){n(1,v=[]);for(let t of o)if($e(t,w,b,u)){let e=ie(t,w,b);v.push(e)}n(3,y=pe(v,l)),T()}491521&t.$$.dirty&&n(4,k=r.map((t=>{let e;return t&&$e(t,w,b,u)?(e=ie(t,w,b),pe([e],l)):e=null,e})))},[u,v,s,y,k,x,_,a,d,f,h,m,g,$,T,w,b,l,r,o,function(t,e){I[t?"unshift":"push"]((()=>{x[e]=t,n(5,x)}))}]}class Eo extends ft{constructor(t){super(),dt(this,t,Do,To,i,{resource:0})}}function So(t,e,n){const l=t.slice();return l[26]=e[n],l}function Mo(t,e,n){const l=t.slice();return l[29]=e[n],l}function Uo(t,e,n){const l=t.slice();return l[32]=e[n],l}function Lo(t){let e,n;return{c(){e=k("div"),E(e,"class",n=t[2].line)},m(t,n){y(t,e,n)},p(t,l){4&l[0]&&n!==(n=t[2].line)&&E(e,"class",n)},d(t){t&&w(e)}}}function Ho(t){let e,n=ot(t[3][t[29].getTime()]),l=[];for(let e=0;e<n.length;e+=1)l[e]=Lo(Uo(t,n,e));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,n){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,n);y(t,e,n)},p(t,r){if(14&r[0]){let o;for(n=ot(t[3][t[29].getTime()]),o=0;o<n.length;o+=1){const i=Uo(t,n,o);l[o]?l[o].p(i,r):(l[o]=Lo(i),l[o].c(),l[o].m(e.parentNode,e))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(t){t&&w(e),b(l,t)}}}function Bo(t){let e,n;return e=new Eo({props:{resource:t[26]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};16&n[0]&&(l.resource=t[26]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Ro(t){let e,n,l,r,o,i,s,a,c,u,d=ot(t[1]),f=[];for(let e=0;e<d.length;e+=1)f[e]=Ho(Mo(t,d,e));let h=ot(t[4]),p=[];for(let e=0;e<h.length;e+=1)p[e]=Bo(So(t,h,e));const m=t=>rt(p[t],1,1,(()=>{p[t]=null}));return{c(){e=k("div"),n=k("div"),l=k("div");for(let t=0;t<f.length;t+=1)f[t].c();o=_();for(let t=0;t<p.length;t+=1)p[t].c();E(l,"class",r=t[2].lines),E(n,"class",i=t[2].content),E(e,"class",s=t[2].body)},m(r,i){y(r,e,i),v(e,n),v(n,l);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(l,null);v(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=T(e,"scroll",t[16]),c=!0)},p(t,o){if(14&o[0]){let e;for(d=ot(t[1]),e=0;e<d.length;e+=1){const n=Mo(t,d,e);f[e]?f[e].p(n,o):(f[e]=Ho(n),f[e].c(),f[e].m(l,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=d.length}if((!a||4&o[0]&&r!==(r=t[2].lines))&&E(l,"class",r),16&o[0]){let e;for(h=ot(t[4]),e=0;e<h.length;e+=1){const l=So(t,h,e);p[e]?(p[e].p(l,o),lt(p[e],1)):(p[e]=Bo(l),p[e].c(),lt(p[e],1),p[e].m(n,null))}for(et(),e=h.length;e<p.length;e+=1)m(e);nt()}(!a||4&o[0]&&i!==(i=t[2].content))&&E(n,"class",i),(!a||4&o[0]&&s!==(s=t[2].body))&&E(e,"class",s)},i(t){if(!a){for(let t=0;t<h.length;t+=1)lt(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&&w(e),b(f,n),b(p,n),t[18](null),c=!1,u()}}}function No(t,e,n){let l,r,o,i,s,a,u,d,f,h,p,g,{_bodyEl:$,_headerEl:v,_sidebarEl:y,_dayTimes:w,_dayTimeLimits:b,_viewResources:k,_viewDates:x,scrollTime:_,slotDuration:C,slotWidth:T,theme:D}=F("state");return c(t,$,(t=>n(22,a=t))),c(t,v,(t=>n(24,d=t))),c(t,y,(t=>n(23,u=t))),c(t,w,(t=>n(3,h=t))),c(t,b,(t=>n(21,s=t))),c(t,k,(t=>n(4,p=t))),c(t,x,(t=>n(1,i=t))),c(t,_,(t=>n(17,o=t))),c(t,C,(t=>n(20,r=t))),c(t,T,(t=>n(19,l=t))),c(t,D,(t=>n(2,f=t))),t.$$.update=()=>{1&t.$$.dirty[0]&&m($,a=g,a),131075&t.$$.dirty[0]&&g&&function(){let t=s[i[0].getTime()];t&&n(0,g.scrollLeft=(Bt(o)-Bt(t.min))/Bt(r)*l,g)}()},[g,i,f,h,p,$,v,y,w,b,k,x,_,C,T,D,function(){m(v,d.scrollLeft=a.scrollLeft,d),m(y,u.scrollTop=a.scrollTop,u)},o,function(t){I[t?"unshift":"push"]((()=>{g=t,n(0,g)}))}]}class Ao extends ft{constructor(t){super(),dt(this,t,No,Ro,i,{},null,[-1,-1])}}function Fo(t){let e,n,l,r,o,i,s,a,c,u;return n=new lo({}),o=new uo({}),s=new Ao({}),{c(){e=k("div"),at(n.$$.fragment),l=_(),r=k("div"),at(o.$$.fragment),i=_(),at(s.$$.fragment),E(r,"class",a=t[0].main),E(e,"class",c=t[0].container)},m(t,a){y(t,e,a),ct(n,e,null),v(e,l),v(e,r),ct(o,r,null),v(r,i),ct(s,r,null),u=!0},p(t,n){let[l]=n;(!u||1&l&&a!==(a=t[0].main))&&E(r,"class",a),(!u||1&l&&c!==(c=t[0].container))&&E(e,"class",c)},i(t){u||(lt(n.$$.fragment,t),lt(o.$$.fragment,t),lt(s.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(o.$$.fragment,t),rt(s.$$.fragment,t),u=!1},d(t){t&&w(e),ut(n),ut(o),ut(s)}}}function zo(t,e,n){let l,{theme:r}=F("state");return c(t,r,(t=>n(0,l=t))),[l,r]}class Po extends ft{constructor(t){super(),dt(this,t,zo,Fo,i,{})}}var Io={createOptions(t){t.buttonText.resourceTimelineDay="timeline",t.buttonText.resourceTimelineWeek="timeline",t.dayHeaderAriaLabelFormat={dateStyle:"long",timeStyle:"short"},t.theme.main="ec-main",t.theme.times="ec-times",t.theme.container="ec-container",t.view="resourceTimelineWeek",t.views.resourceTimelineDay={buttonText:be,component:Po,dayHeaderFormat:{weekday:"long"},duration:{days:1},slotDuration:"01:00",theme:Te("ec-timeline ec-resource-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},t.views.resourceTimelineWeek={buttonText:ke,component:Po,displayEventEnd:!1,duration:{weeks:1},slotDuration:"01:00",theme:Te("ec-timeline ec-resource-week-view")}},createStores(t){"_viewResources"in t||(t._viewResources=Ue(t)),t._headerEl=mt(void 0),t._dayTimeLimits=function(t){return gt([t.slotMinTime,t.slotMaxTime,t.flexibleSlotTimeLimits,t._viewDates,t._events],(t=>{let[e,n,l,r,o]=t,i={};for(let t of r)i[t.getTime()]=He(e,n,l,[t],o);return i}))}(t),t._dayTimes=function(t){return gt([t._viewDates,t.slotDuration,t._dayTimeLimits,t._intlSlotLabel,t._intlDayHeaderAL],(t=>{let[e,n,l,r,o]=t,i={};for(let t of e){let e=t.getTime();i[e]=e in l?Le(t,n,l[e],r,o):[]}return i}))}(t),t._resHs=mt(new Map),t._sidebarEl=mt(void 0)}};let jo=!1;function Oo(t,e,n){return Wt(e,Ot(n,t))}const{window:Wo}=$;function Go(e){let n,l;return{c:t,m(t,r){n||(l=[T(Wo,"pointermove",e[33]),T(Wo,"pointerup",e[34]),T(Wo,"pointercancel",e[34]),T(Wo,"scroll",e[0]),T(Wo,"selectstart",Yo(e[35])),T(Wo,"contextmenu",(function(){o(Yo(e[43]))&&Yo(e[43]).apply(this,arguments)})),T(Wo,"touchstart",e[36]),T(Wo,"touchmove",e[42],{passive:!1})],n=!0)},p(t,n){e=t},i:t,o:t,d(t){n=!1,r(l)}}}function qo(t){return t.isPrimary&&("mouse"!==t.pointerType||1&t.buttons)}function Yo(t){return e=>{t()&&e.preventDefault()}}function Xo(t,e,n){let l,i,s,a,u,d,f,h,p,g,$,v,y,w,b,k,x,_,C,D,E,S,M,U,L,H,B,R,N,A,P,I,j,O,W,G,q,Y,X,V,J,K,Q,Z,tt,et,nt,lt,rt,ot,it,st,at,ct,ut,dt,ft,{_iEvents:ht,_iClass:pt,_events:mt,_view:gt,_dayGrid:$t,_draggable:vt,_bodyEl:yt,dateClick:wt,dragScroll:bt,datesAboveResources:Dt,eventDragMinDistance:Et,eventDragStart:Ut,eventDragStop:Lt,eventDrop:Ht,eventLongPressDelay:Bt,eventResizeStart:Rt,eventResizeStop:Nt,eventResize:At,longPressDelay:Ft,selectable:Pt,select:It,selectBackgroundColor:jt,selectLongPressDelay:Gt,selectMinDistance:Xt,slotDuration:Vt,slotHeight:Jt,slotWidth:Kt,unselect:le,unselectAuto:re,unselectCancel:oe,view:ie}=F("state");function se(t){window.getSelection().removeAllRanges(),V=K=t.clientX,J=Q=t.clientY;let e=Zt(K,Q);({allDay:rt,date:G,resource:Y}=Qt(e)(K,Q)),ne(f)?Z=et=R:(Z=Yt(e,Y?4:3),et=Yt(e,Y&&(1===I||B)?2:1)),ce(),"mouse"!==t.pointerType&&n(1,ut=setTimeout((()=>{I&&(j=!0,ae(t))}),(me()?H:L)??U))}function ae(t){if(j||t&&"mouse"===t.pointerType&&Math.sqrt(Math.pow(K-V,2)+Math.pow(Q-J,2))>=(me()?M:S)){j=!0,$e(t),m(pt,h=ot,h),a[0]||(me()?m(ht,a[0]={id:"{select}",allDay:O.allDay,start:O.start,title:"",display:"preview",extendedProps:{},backgroundColor:u,resourceIds:O.resourceIds},a):function(t,e){o(e)&&e({event:de(O),jsEvent:t,view:te(l)});W=O.display,O.display="preview",m(ht,a[0]=fe(O),a),void 0!==ft&&m(ht,a[0]._margin=ft,a);O.display="ghost",mt.set(s)}(t,pe()?E:D));let e=Zt(Oo(K,dt[0],dt[1]),Oo(Q,dt[2],dt[3]));if(e){let t;({allDay:t,date:q,resource:X}=Qt(e)(K,Q)),t===rt&&(lt=kt((q-G)/1e3),m(ht,a[0].end=_t(xt(O.end),lt),a),pe()?a[0].end<it&&m(ht,a[0].end=it,a):me()?a[0].end<O.end?(m(ht,a[0].start=Ct(a[0].end,st),a),m(ht,a[0].end=O.end,a)):m(ht,a[0].start=O.start,a):(m(ht,a[0].start=_t(xt(O.start),lt),a),Y&&(m(ht,a[0].resourceIds=O.resourceIds.filter((t=>t!==Y.id)),a),a[0].resourceIds.push(X.id))))}}if(C){let t=2*_,n=x;e=()=>{Z&&(Q<t&&window.scrollBy(0,Wt(-10,(Q-t)/3)),Q<tt.top+t&&(Z.scrollTop+=Wt(-10,(Q-tt.top-t)/3)),Q>window.innerHeight-t&&window.scrollBy(0,Ot(10,(Q-window.innerHeight+t)/3)),Q>tt.bottom-t&&(Z.scrollTop+=Ot(10,(Q-tt.bottom+t)/3)),ne(f)&&(K<tt.left+n&&(Z.scrollLeft+=Wt(-10,(K-tt.left-n)/3)),K>tt.right-n&&(Z.scrollLeft+=Ot(10,(K-tt.right+n)/3))))},jo||(jo=!0,window.requestAnimationFrame((()=>{e(),jo=!1})))}var e}function ce(){tt=qt(Z),nt=qt(et),dt=[Wt(0,nt.left+(ne(f)?1:d?0:8)),Ot(document.documentElement.clientWidth,nt.left+et.clientWidth)-2,Wt(0,tt.top),Ot(document.documentElement.clientHeight,tt.top+Z.clientHeight)-2]}function ue(){m(ht,a[0]=null,a)}function he(t,e){t.start=e.start,t.end=e.end,t.resourceIds=e.resourceIds,mt.set(s)}function pe(){return 2===I}function me(){return 3===I}function ge(){return I&&I<4}function $e(t){at&&(at=!1,ue(),o(i)&&i({jsEvent:t,view:te(l)}))}c(t,ht,(t=>n(72,a=t))),c(t,pt,(t=>n(76,h=t))),c(t,mt,(t=>n(71,s=t))),c(t,gt,(t=>n(69,l=t))),c(t,$t,(t=>n(74,d=t))),c(t,vt,(t=>n(99,P=t))),c(t,yt,(t=>n(96,R=t))),c(t,wt,(t=>n(77,p=t))),c(t,bt,(t=>n(87,C=t))),c(t,Dt,(t=>n(95,B=t))),c(t,Et,(t=>n(90,S=t))),c(t,Ut,(t=>n(88,D=t))),c(t,Lt,(t=>n(80,v=t))),c(t,Ht,(t=>n(78,g=t))),c(t,Bt,(t=>n(93,L=t))),c(t,Rt,(t=>n(89,E=t))),c(t,Nt,(t=>n(81,y=t))),c(t,At,(t=>n(79,$=t))),c(t,Ft,(t=>n(92,U=t))),c(t,Pt,(t=>n(98,A=t))),c(t,It,(t=>n(82,w=t))),c(t,jt,(t=>n(73,u=t))),c(t,Gt,(t=>n(94,H=t))),c(t,Xt,(t=>n(91,M=t))),c(t,Vt,(t=>n(97,N=t))),c(t,Jt,(t=>n(86,_=t))),c(t,Kt,(t=>n(85,x=t))),c(t,le,(t=>n(70,i=t))),c(t,re,(t=>n(84,k=t))),c(t,oe,(t=>n(83,b=t))),c(t,ie,(t=>n(75,f=t))),gt.subscribe($e);return[function(){ge()&&(ce(),ae())},ut,ht,pt,mt,gt,$t,vt,yt,wt,bt,Dt,Et,Ut,Lt,Ht,Bt,Rt,Nt,At,Ft,Pt,It,jt,Gt,Xt,Vt,Jt,Kt,le,re,oe,ie,function(t){ge()&&t.isPrimary&&(K=t.clientX,Q=t.clientY,ae(t))},function(t){if(!at||!k||b&&t.target.closest(b)||$e(t),I&&t.isPrimary){if(j)if(me()){if(at=!0,o(w)){let{start:e,end:n}=de(a[0]);w({start:e,end:n,startStr:Mt(a[0].start),endStr:Mt(a[0].end),allDay:rt,jsEvent:t,view:te(l),resource:Y})}}else{O.display=W;let e=pe()?y:v;o(e)&&e({event:de(O),jsEvent:t,view:te(l)});let n=fe(O);if(he(O,a[0]),ue(),e=pe()?$:g,o(e)){let r,o=O;r=pe()?{endDelta:lt}:{delta:lt,oldResource:Y!==X?Y:void 0,newResource:Y!==X?X:void 0},e(zt(r,{event:de(O),oldEvent:de(n),jsEvent:t,view:te(l),revert(){he(o,n)}}))}}else if((4===I||me())&&o(p)&&!ct){K=t.clientX,Q=t.clientY;let e=Zt(K,Q);if(e){let{allDay:n,date:r,resource:o}=Qt(e)(K,Q);p({allDay:n,date:St(r),dateStr:Mt(r),dayEl:e,jsEvent:t,view:te(l),resource:o})}}j=!1,I=V=J=K=Q=O=W=G=q=Y=X=lt=rt=m(pt,h=it=st=ft=void 0,h),Z=et=tt=nt=void 0,ut&&(clearTimeout(ut),n(1,ut=void 0))}ct=!1},ge,function(t){if(ge()){let e=t.target,n=[],l=()=>r(n);n.push(T(e,"touchmove",Yo((()=>j)))),n.push(T(e,"touchend",l)),n.push(T(e,"touchcancel",l))}},function(t,e,n,l,r){I||(I=qo(e)?n?2:P(t)?1:5:5,ge()&&(O=t,se(e),l&&(G=l),r&&(ft=r),ot=n?"x"==n?"resizingX":"resizingY":"dragging",n&&(it=xt(O.start),rt?(it.setUTCHours(O.end.getUTCHours(),O.end.getUTCMinutes(),O.end.getUTCSeconds(),0),it<O.start&&Tt(it)):_t(it,N)),ae(e)))},function(t){I||(I=qo(t)?A&&!ee(f)?3:4:5,ge()&&(se(t),ot="selecting",st=rt?kt({day:1}):N,O={allDay:rt,start:G,end:_t(xt(G),st),resourceIds:Y?[Y.id]:[]},ae(t)))},function(){I||(I=5)},$e,function(){ct=!0},function(e){z.call(this,t,e)},()=>ut]}class Vo extends ft{constructor(t){super(),dt(this,t,Xo,Go,i,{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 Jo(e){let n,l;return{c:t,m(t,r){n||(l=[T(window,"pointermove",e[3]),T(window,"scroll",e[0])],n=!0)},p:t,i:t,o:t,d(t){n=!1,r(l)}}}function Ko(t){return t.isPrimary&&"mouse"===t.pointerType}function Qo(t,e,n){let l,r,{_iEvents:o,slotDuration:i}=F("state");c(t,o,(t=>n(5,l=t))),c(t,i,(t=>n(8,r=t)));let s=0,a=0;function u(){let t=Zt(s,a);if(t){let{date:e,resource:n}=Qt(t)(s,a);l[1]||m(o,l[1]={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent"},l),m(o,l[1].start=e,l),m(o,l[1].end=_t(xt(e),r),l),m(o,l[1].resourceIds=n?[n.id]:[],l)}}function d(){m(o,l[1]=null,l)}return t.$$.update=()=>{32&t.$$.dirty&&l[0]&&d()},[function(){u()},o,i,function(t){Ko(t)&&(s=t.clientX,a=t.clientY,u())},function(t){Ko(t)&&d()},l]}class Zo extends ft{constructor(t){super(),dt(this,t,Qo,Jo,i,{leave:4,handleScroll:0})}get leave(){return this.$$.ctx[4]}get handleScroll(){return this.$$.ctx[0]}}function ti(t){let e,n,l,r;return{c(){e=k("div"),E(e,"class",n=t[1].resizer)},m(n,o){y(n,e,o),l||(r=T(e,"pointerdown",t[8]),l=!0)},p(t,l){2&l&&n!==(n=t[1].resizer)&&E(e,"class",n)},d(t){t&&w(e),l=!1,r()}}}function ei(e){let n,l=e[0]&&ti(e);return{c(){l&&l.c(),n=C()},m(t,e){l&&l.m(t,e),y(t,n,e)},p(t,e){let[r]=e;t[0]?l?l.p(t,r):(l=ti(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i:t,o:t,d(t){t&&w(n),l&&l.d(t)}}}function ni(t,e,n){let l,r,o,i,{event:s}=e,{theme:a,eventDurationEditable:u,editable:d}=F("state");return c(t,a,(t=>n(1,o=t))),c(t,u,(t=>n(7,r=t))),c(t,d,(t=>n(6,l=t))),t.$$set=t=>{"event"in t&&n(5,s=t.event)},t.$$.update=()=>{224&t.$$.dirty&&n(0,i=!ye(s.display)&&!ve(s.display)&&((s.durationEditable??r)||(s.editable??l)))},[i,o,a,u,d,s,l,r,function(e){z.call(this,t,e)}]}class li extends ft{constructor(t){super(),dt(this,t,ni,ei,i,{event:5})}}function ri(t){let e,n;return e=new Zo({props:{}}),t[16](e),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){e.$set({})},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(n){t[16](null),ut(e,n)}}}function oi(t){let e,n,l,r;e=new Vo({props:{}}),t[15](e);let o=t[1]&&ri(t);return{c(){at(e.$$.fragment),n=_(),o&&o.c(),l=C()},m(t,i){ct(e,t,i),y(t,n,i),o&&o.m(t,i),y(t,l,i),r=!0},p(t,n){let[r]=n;e.$set({}),t[1]?o?(o.p(t,r),2&r&<(o,1)):(o=ri(t),o.c(),lt(o,1),o.m(l.parentNode,l)):o&&(et(),rt(o,1,1,(()=>{o=null})),nt())},i(t){r||(lt(e.$$.fragment,t),lt(o),r=!0)},o(t){rt(e.$$.fragment,t),rt(o),r=!1},d(r){r&&(w(n),w(l)),t[15](null),ut(e,r),o&&o.d(r)}}}function ii(t,e,n){let l,r,o,i,s,a,u,d,{theme:f,editable:h,eventStartEditable:p,eventDurationEditable:g,pointer:$,_bodyEl:v,_interaction:y,_iClasses:w,_draggable:b}=F("state");function k(){for(let t of Object.values(l))t?.handleScroll?.()}return c(t,f,(t=>n(11,o=t))),c(t,h,(t=>n(13,a=t))),c(t,p,(t=>n(14,u=t))),c(t,$,(t=>n(1,d=t))),c(t,v,(t=>n(10,r=t))),c(t,y,(t=>n(0,l=t))),c(t,w,(t=>n(17,s=t))),c(t,b,(t=>n(12,i=t))),m(y,l.resizer=li,l),t.$$.update=()=>{24576&t.$$.dirty&&m(b,i=t=>(t.startEditable??u)||(t.editable??a),i),6144&t.$$.dirty&&m(w,s=(t,e)=>{let{display:n}=e;return ve(n)?[o[n]]:!ye(n)&&i(e)?[o.draggable]:[]},s),1024&t.$$.dirty&&r&&T(r,"scroll",k)},[l,d,f,h,p,$,v,y,w,b,r,o,i,a,u,function(t){I[t?"unshift":"push"]((()=>{l.action=t,y.set(l)}))},function(t){I[t?"unshift":"push"]((()=>{l.pointer=t,y.set(l)}))}]}class si extends ft{constructor(t){super(),dt(this,t,ii,oi,i,{})}}var ai={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.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.dragging="ec-dragging",t.theme.resizingY="ec-resizing-y",t.theme.resizingX="ec-resizing-x",t.theme.selecting="ec-selecting"},createStores(e){e._draggable=mt(t),e._auxiliary.update((t=>[...t,si]))}};return class extends hn{constructor(t,e){super({target:t,props:{plugins:[Xn,hl,mr,Vr,Io,ai],options:e}})}get view(){return this.getView()}}}();
|
|
6
6
|
//# sourceMappingURL=event-calendar.min.js.map
|