@event-calendar/build 5.2.4 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * EventCalendar v5.2.4
2
+ * EventCalendar v5.3.0
3
3
  * https://github.com/vkurko/calendar
4
4
  */
5
- var EventCalendar=(function(Qn){"use strict";var Ri=Array.isArray,Ro=Array.prototype.indexOf,jn=Array.from,Ii=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,Io=Object.getOwnPropertyDescriptors,Lo=Object.prototype,Po=Array.prototype,Li=Object.getPrototypeOf,Pi=Object.isExtensible;const Xt=()=>{};function Mo(e){for(var t=0;t<e.length;t++)e[t]()}function Mi(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function Ao(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const r=[];for(const i of e)if(r.push(i),r.length===t)break;return r}const Ve=2,$n=4,Pn=8,Er=1<<24,At=16,Ot=32,rn=64,Tr=128,pt=512,qe=1024,tt=2048,Nt=4096,lt=8192,Ft=16384,xr=32768,Kt=65536,Ai=1<<17,Oi=1<<18,_n=1<<19,Ni=1<<20,Ht=1<<25,sn=32768,Sr=1<<21,Rr=1<<22,Zt=1<<23,Mn=Symbol("$state"),Oo=Symbol("legacy props"),No=Symbol(""),yn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Fi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Fo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ho(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Wo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Uo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function zo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Vo(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function Bo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Go(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Yo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function qo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Xo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Ko=1,Zo=2,Hi=4,Jo=8,Qo=16,jo=1,$o=4,ea=8,ta=16,na=1,ra=2,Be=Symbol(),ia="http://www.w3.org/1999/xhtml";function sa(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Wi(e){return e===this.v}function oa(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ui(e){return!oa(e,this.v)}let ef=!1,Xe=null;function wn(e){Xe=e}function re(e){return Vi().get(e)}function An(e,t){return Vi().set(e,t),t}function ye(e,t=!1,r){Xe={p:Xe,i:!1,c:null,e:null,s:e,x:null,l:null}}function we(e){var t=Xe,r=t.e;if(r!==null){t.e=null;for(var i of r)ls(i)}return e!==void 0&&(t.x=e),t.i=!0,Xe=t.p,e??{}}function zi(){return!0}function Vi(e){return Xe===null&&Fi(),Xe.c??=new Map(aa(Xe)||void 0)}function aa(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let on=[];function Bi(){var e=on;on=[],Mo(e)}function an(e){if(on.length===0&&!On){var t=on;queueMicrotask(()=>{t===on&&Bi()})}on.push(e)}function la(){for(;on.length>0;)Bi()}function Gi(e){var t=Ee;if(t===null)return ce.f|=Zt,e;if((t.f&xr)===0){if((t.f&Tr)===0)throw e;t.b.error(e)}else bn(e,t)}function bn(e,t){for(;t!==null;){if((t.f&Tr)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const ua=-7169;function We(e,t){e.f=e.f&ua|t}function Ir(e){(e.f&pt)!==0||e.deps===null?We(e,qe):We(e,Nt)}function Yi(e){if(e!==null)for(const t of e)(t.f&Ve)===0||(t.f&sn)===0||(t.f^=sn,Yi(t.deps))}function qi(e,t,r){(e.f&tt)!==0?t.add(e):(e.f&Nt)!==0&&r.add(e),Yi(e.deps),We(e,qe)}const er=new Set;let Pe=null,kt=null,_t=[],tr=null,Lr=!1,On=!1;class xt{committed=!1;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=0;#r=0;#s=null;#i=new Set;#o=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){_t=[],this.apply();var r=[],i=[];for(const s of t)this.#a(s,r,i);this.is_fork||this.#u(),this.is_deferred()?(this.#l(i),this.#l(r)):(Pe=null,Ki(i),Ki(r),this.#s?.resolve()),kt=null}#a(t,r,i){t.f^=qe;for(var s=t.first,o=null;s!==null;){var l=s.f,u=(l&(Ot|rn))!==0,d=u&&(l&qe)!==0,f=d||(l&lt)!==0||this.skipped_effects.has(s);if(!f&&s.fn!==null){u?s.f^=qe:o!==null&&(l&($n|Pn|Er))!==0?o.b.defer_effect(s):(l&$n)!==0?r.push(s):Wn(s)&&((l&At)!==0&&this.#i.add(s),Un(s));var c=s.first;if(c!==null){s=c;continue}}var g=s.parent;for(s=s.next;s===null&&g!==null;)g===o&&(o=null),s=g.next,g=g.parent}}#l(t){for(var r=0;r<t.length;r+=1)qi(t[r],this.#i,this.#o)}capture(t,r){r!==Be&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Zt)===0&&(this.current.set(t,t.v),kt?.set(t,t.v))}activate(){Pe=this,this.apply()}deactivate(){Pe===this&&(Pe=null,kt=null)}flush(){if(this.activate(),_t.length>0){if(Xi(),Pe!==null&&Pe!==this)return}else this.#t===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#n)t(this);this.#n.clear()}#u(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#t===0&&this.#d()}#d(){if(er.size>1){this.previous.clear();var t=kt,r=!0;for(const s of er){if(s===this){r=!1;continue}const o=[];for(const[u,d]of this.current){if(s.current.has(u))if(r&&d!==s.current.get(u))s.current.set(u,d);else continue;o.push(u)}if(o.length===0)continue;const l=[...s.current.keys()].filter(u=>!this.current.has(u));if(l.length>0){var i=_t;_t=[];const u=new Set,d=new Map;for(const f of o)Zi(f,l,u,d);if(_t.length>0){Pe=s,s.apply();for(const f of _t)s.#a(f,[],[]);s.deactivate()}_t=i}}Pe=null,kt=t}this.committed=!0,er.delete(this)}increment(t){this.#t+=1,t&&(this.#r+=1)}decrement(t){this.#t-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#i)this.#o.delete(t),We(t,tt),Ut(t);for(const t of this.#o)We(t,Nt),Ut(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Mi()).promise}static ensure(){if(Pe===null){const t=Pe=new xt;er.add(Pe),On||xt.enqueue(()=>{Pe===t&&t.flush()})}return Pe}static enqueue(t){an(t)}apply(){}}function da(e){var t=On;On=!0;try{for(var r;;){if(la(),_t.length===0&&(Pe?.flush(),_t.length===0))return tr=null,r;Xi()}}finally{On=t}}function Xi(){var e=dn;Lr=!0;var t=null;try{var r=0;for(sr(!0);_t.length>0;){var i=xt.ensure();if(r++>1e3){var s,o;fa()}i.process(_t),Jt.clear()}}finally{Lr=!1,sr(e),tr=null}}function fa(){try{zo()}catch(e){bn(e,tr)}}let Wt=null;function Ki(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Ft|lt))===0&&Wn(i)&&(Wt=new Set,Un(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?cs(i):i.fn=null),Wt?.size>0)){Jt.clear();for(const s of Wt){if((s.f&(Ft|lt))!==0)continue;const o=[s];let l=s.parent;for(;l!==null;)Wt.has(l)&&(Wt.delete(l),o.push(l)),l=l.parent;for(let u=o.length-1;u>=0;u--){const d=o[u];(d.f&(Ft|lt))===0&&Un(d)}}Wt.clear()}}Wt=null}}function Zi(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const o=s.f;(o&Ve)!==0?Zi(s,t,r,i):(o&(Rr|At))!==0&&(o&tt)===0&&Ji(s,t,i)&&(We(s,tt),Ut(s))}}function Ji(e,t,r){const i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&Ve)!==0&&Ji(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function Ut(e){for(var t=tr=e;t.parent!==null;){t=t.parent;var r=t.f;if(Lr&&t===Ee&&(r&At)!==0&&(r&Oi)===0)return;if((r&(rn|Ot))!==0){if((r&qe)===0)return;t.f^=qe}}_t.push(t)}function ca(e){let t=0,r=Qt(0),i;return()=>{Or()&&(n(r),us(()=>(t===0&&(i=ee(()=>e(()=>St(r)))),t+=1,()=>{an(()=>{t-=1,t===0&&(i?.(),i=void 0,St(r))})})))}}var ha=Kt|_n|Tr;function va(e,t,r){new ga(e,t,r)}class ga{parent;is_pending=!1;#e;#n=null;#t;#r;#s;#i=null;#o=null;#a=null;#l=null;#u=null;#d=0;#f=0;#h=!1;#v=new Set;#g=new Set;#c=null;#y=ca(()=>(this.#c=Qt(this.#d),()=>{this.#c=null}));constructor(t,r,i){this.#e=t,this.#t=r,this.#r=i,this.parent=Ee.b,this.is_pending=!!this.#t.pending,this.#s=Fn(()=>{Ee.b=this;{var s=this.#_();try{this.#i=ut(()=>i(s))}catch(o){this.error(o)}this.#f>0?this.#p():this.is_pending=!1}return()=>{this.#u?.remove()}},ha)}#b(){try{this.#i=ut(()=>this.#r(this.#e))}catch(t){this.error(t)}}#k(){const t=this.#t.pending;t&&(this.#o=ut(()=>t(this.#e)),xt.enqueue(()=>{var r=this.#_();this.#i=this.#m(()=>(xt.ensure(),ut(()=>this.#r(r)))),this.#f>0?this.#p():(un(this.#o,()=>{this.#o=null}),this.is_pending=!1)}))}#_(){var t=this.#e;return this.is_pending&&(this.#u=zt(),this.#e.before(this.#u),t=this.#u),t}defer_effect(t){qi(t,this.#v,this.#g)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var r=Ee,i=ce,s=Xe;Rt(this.#s),rt(this.#s),wn(this.#s.ctx);try{return t()}catch(o){return Gi(o),null}finally{Rt(r),rt(i),wn(s)}}#p(){const t=this.#t.pending;this.#i!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#u),gs(this.#i,this.#l)),this.#o===null&&(this.#o=ut(()=>t(this.#e)))}#w(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t);return}if(this.#f+=t,this.#f===0){this.is_pending=!1;for(const r of this.#v)We(r,tt),Ut(r);for(const r of this.#g)We(r,Nt),Ut(r);this.#v.clear(),this.#g.clear(),this.#o&&un(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null)}}update_pending_count(t){this.#w(t),this.#d+=t,this.#c&&kn(this.#c,this.#d)}get_effect_pending(){return this.#y(),n(this.#c)}error(t){var r=this.#t.onerror;let i=this.#t.failed;if(this.#h||!r&&!i)throw t;this.#i&&($e(this.#i),this.#i=null),this.#o&&($e(this.#o),this.#o=null),this.#a&&($e(this.#a),this.#a=null);var s=!1,o=!1;const l=()=>{if(s){sa();return}s=!0,o&&Xo(),xt.ensure(),this.#d=0,this.#a!==null&&un(this.#a,()=>{this.#a=null}),this.is_pending=this.has_pending_snippet(),this.#i=this.#m(()=>(this.#h=!1,ut(()=>this.#r(this.#e)))),this.#f>0?this.#p():this.is_pending=!1};var u=ce;try{rt(null),o=!0,r?.(t,l),o=!1}catch(d){bn(d,this.#s&&this.#s.parent)}finally{rt(u)}i&&an(()=>{this.#a=this.#m(()=>{xt.ensure(),this.#h=!0;try{return ut(()=>{i(this.#e,()=>t,()=>l)})}catch(d){return bn(d,this.#s.parent),null}finally{this.#h=!1}})})}}function ma(e,t,r,i){const s=rr;if(r.length===0&&e.length===0){i(t.map(s));return}var o=Pe,l=Ee,u=pa();function d(){Promise.all(r.map(f=>_a(f))).then(f=>{u();try{i([...t.map(s),...f])}catch(c){(l.f&Ft)===0&&bn(c,l)}o?.deactivate(),nr()}).catch(f=>{bn(f,l)})}e.length>0?Promise.all(e).then(()=>{u();try{return d()}finally{o?.deactivate(),nr()}}):d()}function pa(){var e=Ee,t=ce,r=Xe,i=Pe;return function(o=!0){Rt(e),rt(t),wn(r),o&&i?.activate()}}function nr(){Rt(null),rt(null),wn(null)}function rr(e){var t=Ve|tt,r=ce!==null&&(ce.f&Ve)!==0?ce:null;return Ee!==null&&(Ee.f|=_n),{ctx:Xe,deps:null,effects:null,equals:Wi,f:t,fn:e,reactions:null,rv:0,v:Be,wv:0,parent:r??Ee,ac:null}}function _a(e,t,r){let i=Ee;i===null&&Fo();var s=i.b,o=void 0,l=Qt(Be),u=!ce,d=new Map;return Ta(()=>{var f=Mi();o=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{c===Pe&&c.committed&&c.deactivate(),nr()})}catch(v){f.reject(v),nr()}var c=Pe;if(u){var g=s.is_rendered();s.update_pending_count(1),c.increment(g),d.get(c)?.reject(yn),d.delete(c),d.set(c,f)}const h=(v,y=void 0)=>{if(c.activate(),y)y!==yn&&(l.f|=Zt,kn(l,y));else{(l.f&Zt)!==0&&(l.f^=Zt),kn(l,v);for(const[p,m]of d){if(d.delete(p),p===c)break;m.reject(yn)}}u&&(s.update_pending_count(-1),c.decrement(g))};f.promise.then(h,v=>h(null,v||"unknown"))}),Nr(()=>{for(const f of d.values())f.reject(yn)}),new Promise(f=>{function c(g){function h(){g===o?f(l):c(o)}g.then(h,h)}c(o)})}function a(e){const t=rr(e);return ps(t),t}function Qi(e){const t=rr(e);return t.equals=Ui,t}function ji(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)$e(t[r])}}function ya(e){for(var t=e.parent;t!==null;){if((t.f&Ve)===0)return(t.f&Ft)===0?t:null;t=t.parent}return null}function Pr(e){var t,r=Ee;Rt(ya(e));try{e.f&=~sn,ji(e),t=ks(e)}finally{Rt(r)}return t}function $i(e){var t=Pr(e);if(!e.equals(t)&&(e.wv=ws(),(!Pe?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){We(e,qe);return}jt||(kt!==null?(Or()||Pe?.is_fork)&&kt.set(e,t):Ir(e))}let Mr=new Set;const Jt=new Map;let es=!1;function Qt(e,t){var r={f:0,v:e,reactions:null,equals:Wi,rv:0,wv:0};return r}function Z(e,t){const r=Qt(e);return ps(r),r}function ts(e,t=!1,r=!0){const i=Qt(e);return t||(i.equals=Ui),i}function b(e,t,r=!1){ce!==null&&(!Et||(ce.f&Ai)!==0)&&zi()&&(ce.f&(Ve|At|Rr|Ai))!==0&&!Vt?.includes(e)&&qo();let i=r?nt(t):t;return kn(e,i)}function kn(e,t){if(!e.equals(t)){var r=e.v;jt?Jt.set(e,t):Jt.set(e,r),e.v=t;var i=xt.ensure();if(i.capture(e,r),(e.f&Ve)!==0){const s=e;(e.f&tt)!==0&&Pr(s),Ir(s)}e.wv=ws(),ns(e,tt),Ee!==null&&(Ee.f&qe)!==0&&(Ee.f&(Ot|rn))===0&&(yt===null?Ia([e]):yt.push(e)),!i.is_fork&&Mr.size>0&&!es&&wa()}return t}function wa(){es=!1;var e=dn;sr(!0);const t=Array.from(Mr);try{for(const r of t)(r.f&qe)!==0&&We(r,Nt),Wn(r)&&Un(r)}finally{sr(e)}Mr.clear()}function St(e){b(e,e.v+1)}function ns(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,u=(l&tt)===0;if(u&&We(o,t),(l&Ve)!==0){var d=o;kt?.delete(d),(l&sn)===0&&(l&pt&&(o.f|=sn),ns(d,Nt))}else u&&((l&At)!==0&&Wt!==null&&Wt.add(o),Ut(o))}}function nt(e){if(typeof e!="object"||e===null||Mn in e)return e;const t=Li(e);if(t!==Lo&&t!==Po)return e;var r=new Map,i=Ri(e),s=Z(0),o=Bt,l=u=>{if(Bt===o)return u();var d=ce,f=Bt;rt(null),ys(o);var c=u();return rt(d),ys(f),c};return i&&r.set("length",Z(e.length)),new Proxy(e,{defineProperty(u,d,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Go();var c=r.get(d);return c===void 0?c=l(()=>{var g=Z(f.value);return r.set(d,g),g}):b(c,f.value,!0),!0},deleteProperty(u,d){var f=r.get(d);if(f===void 0){if(d in u){const c=l(()=>Z(Be));r.set(d,c),St(s)}}else b(f,Be),St(s);return!0},get(u,d,f){if(d===Mn)return e;var c=r.get(d),g=d in u;if(c===void 0&&(!g||pn(u,d)?.writable)&&(c=l(()=>{var v=nt(g?u[d]:Be),y=Z(v);return y}),r.set(d,c)),c!==void 0){var h=n(c);return h===Be?void 0:h}return Reflect.get(u,d,f)},getOwnPropertyDescriptor(u,d){var f=Reflect.getOwnPropertyDescriptor(u,d);if(f&&"value"in f){var c=r.get(d);c&&(f.value=n(c))}else if(f===void 0){var g=r.get(d),h=g?.v;if(g!==void 0&&h!==Be)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(u,d){if(d===Mn)return!0;var f=r.get(d),c=f!==void 0&&f.v!==Be||Reflect.has(u,d);if(f!==void 0||Ee!==null&&(!c||pn(u,d)?.writable)){f===void 0&&(f=l(()=>{var h=c?nt(u[d]):Be,v=Z(h);return v}),r.set(d,f));var g=n(f);if(g===Be)return!1}return c},set(u,d,f,c){var g=r.get(d),h=d in u;if(i&&d==="length")for(var v=f;v<g.v;v+=1){var y=r.get(v+"");y!==void 0?b(y,Be):v in u&&(y=l(()=>Z(Be)),r.set(v+"",y))}if(g===void 0)(!h||pn(u,d)?.writable)&&(g=l(()=>Z(void 0)),b(g,nt(f)),r.set(d,g));else{h=g.v!==Be;var p=l(()=>nt(f));b(g,p)}var m=Reflect.getOwnPropertyDescriptor(u,d);if(m?.set&&m.set.call(c,f),!h){if(i&&typeof d=="string"){var _=r.get("length"),k=Number(d);Number.isInteger(k)&&k>=_.v&&b(_,k+1)}St(s)}return!0},ownKeys(u){n(s);var d=Reflect.ownKeys(u).filter(g=>{var h=r.get(g);return h===void 0||h.v!==Be});for(var[f,c]of r)c.v!==Be&&!(f in u)&&d.push(f);return d},setPrototypeOf(){Yo()}})}var Ct,rs,is,ss;function ba(){if(Ct===void 0){Ct=window,rs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;is=pn(t,"firstChild").get,ss=pn(t,"nextSibling").get,Pi(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Pi(r)&&(r.__t=void 0)}}function zt(e=""){return document.createTextNode(e)}function ir(e){return is.call(e)}function Nn(e){return ss.call(e)}function fe(e,t){return ir(e)}function J(e,t=!1){{var r=ir(e);return r instanceof Comment&&r.data===""?Nn(r):r}}function ie(e,t=1,r=!1){let i=e;for(;t--;)i=Nn(i);return i}function ka(e){e.textContent=""}function os(){return!1}function Ca(e,t){{const r=document.body;e.autofocus=!0,an(()=>{document.activeElement===r&&e.focus()})}}function Ar(e){var t=ce,r=Ee;rt(null),Rt(null);try{return e()}finally{rt(t),Rt(r)}}function as(e){Ee===null&&(ce===null&&Uo(),Wo()),jt&&Ho()}function Da(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Dt(e,t,r){var i=Ee;i!==null&&(i.f&lt)!==0&&(e|=lt);var s={ctx:Xe,deps:null,nodes:null,f:e|tt|pt,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Un(s),s.f|=xr}catch(u){throw $e(s),u}else t!==null&&Ut(s);var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&_n)===0&&(o=o.first,(e&At)!==0&&(e&Kt)!==0&&o!==null&&(o.f|=Kt)),o!==null&&(o.parent=i,i!==null&&Da(o,i),ce!==null&&(ce.f&Ve)!==0&&(e&rn)===0)){var l=ce;(l.effects??=[]).push(o)}return s}function Or(){return ce!==null&&!Et}function Nr(e){const t=Dt(Pn,null,!1);return We(t,qe),t.teardown=e,t}function Ke(e){as();var t=Ee.f,r=!ce&&(t&Ot)!==0&&(t&xr)===0;if(r){var i=Xe;(i.e??=[]).push(e)}else return ls(e)}function ls(e){return Dt($n|Ni,e,!1)}function ln(e){return as(),Dt(Pn|Ni,e,!0)}function Ea(e){xt.ensure();const t=Dt(rn|_n,e,!0);return(r={})=>new Promise(i=>{r.outro?un(t,()=>{$e(t),i(void 0)}):($e(t),i(void 0))})}function Fr(e){return Dt($n,e,!1)}function Ta(e){return Dt(Rr|_n,e,!0)}function us(e,t=0){return Dt(Pn|t,e,!0)}function ae(e,t=[],r=[],i=[]){ma(i,t,r,s=>{Dt(Pn,()=>e(...s.map(n)),!0)})}function Fn(e,t=0){var r=Dt(At|t,e,!0);return r}function xa(e,t=0){var r=Dt(Er|t,e,!0);return r}function ut(e){return Dt(Ot|_n,e,!0)}function ds(e){var t=e.teardown;if(t!==null){const r=jt,i=ce;ms(!0),rt(null);try{t.call(null)}finally{ms(r),rt(i)}}}function fs(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Ar(()=>{s.abort(yn)});var i=r.next;(r.f&rn)!==0?r.parent=null:$e(r,t),r=i}}function Sa(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ot)===0&&$e(t),t=r}}function $e(e,t=!0){var r=!1;(t||(e.f&Oi)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ra(e.nodes.start,e.nodes.end),r=!0),fs(e,t&&!r),or(e,0),We(e,Ft);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();ds(e);var s=e.parent;s!==null&&s.first!==null&&cs(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Ra(e,t){for(;e!==null;){var r=e===t?null:Nn(e);e.remove(),e=r}}function cs(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function un(e,t,r=!0){var i=[];hs(e,i,!0);var s=()=>{r&&$e(e),t&&t()},o=i.length;if(o>0){var l=()=>--o||s();for(var u of i)u.out(l)}else s()}function hs(e,t,r){if((e.f&lt)===0){e.f^=lt;var i=e.nodes&&e.nodes.t;if(i!==null)for(const u of i)(u.is_global||r)&&t.push(u);for(var s=e.first;s!==null;){var o=s.next,l=(s.f&Kt)!==0||(s.f&Ot)!==0&&(e.f&At)!==0;hs(s,t,l?r:!1),s=o}}}function Hr(e){vs(e,!0)}function vs(e,t){if((e.f&lt)!==0){e.f^=lt,(e.f&qe)===0&&(We(e,tt),Ut(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Kt)!==0||(r.f&Ot)!==0;vs(r,s?t:!1),r=i}var o=e.nodes&&e.nodes.t;if(o!==null)for(const l of o)(l.is_global||t)&&l.in()}}function gs(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:Nn(r);t.append(r),r=s}}let dn=!1;function sr(e){dn=e}let jt=!1;function ms(e){jt=e}let ce=null,Et=!1;function rt(e){ce=e}let Ee=null;function Rt(e){Ee=e}let Vt=null;function ps(e){ce!==null&&(Vt===null?Vt=[e]:Vt.push(e))}let et=null,dt=0,yt=null;function Ia(e){yt=e}let _s=1,Hn=0,Bt=Hn;function ys(e){Bt=e}function ws(){return++_s}function Wn(e){var t=e.f;if((t&tt)!==0)return!0;if(t&Ve&&(e.f&=~sn),(t&Nt)!==0){for(var r=e.deps,i=r.length,s=0;s<i;s++){var o=r[s];if(Wn(o)&&$i(o),o.wv>e.wv)return!0}(t&pt)!==0&&kt===null&&We(e,qe)}return!1}function bs(e,t,r=!0){var i=e.reactions;if(i!==null&&!Vt?.includes(e))for(var s=0;s<i.length;s++){var o=i[s];(o.f&Ve)!==0?bs(o,t,!1):t===o&&(r?We(o,tt):(o.f&qe)!==0&&We(o,Nt),Ut(o))}}function ks(e){var t=et,r=dt,i=yt,s=ce,o=Vt,l=Xe,u=Et,d=Bt,f=e.f;et=null,dt=0,yt=null,ce=(f&(Ot|rn))===0?e:null,Vt=null,wn(e.ctx),Et=!1,Bt=++Hn,e.ac!==null&&(Ar(()=>{e.ac.abort(yn)}),e.ac=null);try{e.f|=Sr;var c=e.fn,g=c(),h=e.deps;if(et!==null){var v;if(or(e,dt),h!==null&&dt>0)for(h.length=dt+et.length,v=0;v<et.length;v++)h[dt+v]=et[v];else e.deps=h=et;if(Or()&&(e.f&pt)!==0)for(v=dt;v<h.length;v++)(h[v].reactions??=[]).push(e)}else h!==null&&dt<h.length&&(or(e,dt),h.length=dt);if(zi()&&yt!==null&&!Et&&h!==null&&(e.f&(Ve|Nt|tt))===0)for(v=0;v<yt.length;v++)bs(yt[v],e);return s!==null&&s!==e&&(Hn++,yt!==null&&(i===null?i=yt:i.push(...yt))),(e.f&Zt)!==0&&(e.f^=Zt),g}catch(y){return Gi(y)}finally{e.f^=Sr,et=t,dt=r,yt=i,ce=s,Vt=o,wn(l),Et=u,Bt=d}}function La(e,t){let r=t.reactions;if(r!==null){var i=Ro.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}if(r===null&&(t.f&Ve)!==0&&(et===null||!et.includes(t))){var o=t;(o.f&pt)!==0&&(o.f^=pt,o.f&=~sn),Ir(o),ji(o),or(o,0)}}function or(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)La(e,r[i])}function Un(e){var t=e.f;if((t&Ft)===0){We(e,qe);var r=Ee,i=dn;Ee=e,dn=!0;try{(t&(At|Er))!==0?Sa(e):fs(e),ds(e);var s=ks(e);e.teardown=typeof s=="function"?s:null,e.wv=_s;var o}finally{dn=i,Ee=r}}}async function fn(){await Promise.resolve(),da()}function n(e){var t=e.f,r=(t&Ve)!==0;if(ce!==null&&!Et){var i=Ee!==null&&(Ee.f&Ft)!==0;if(!i&&!Vt?.includes(e)){var s=ce.deps;if((ce.f&Sr)!==0)e.rv<Hn&&(e.rv=Hn,et===null&&s!==null&&s[dt]===e?dt++:et===null?et=[e]:et.includes(e)||et.push(e));else{(ce.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[ce]:o.includes(ce)||o.push(ce)}}}if(jt&&Jt.has(e))return Jt.get(e);if(r){var l=e;if(jt){var u=l.v;return((l.f&qe)===0&&l.reactions!==null||Ds(l))&&(u=Pr(l)),Jt.set(l,u),u}var d=(l.f&pt)===0&&!Et&&ce!==null&&(dn||(ce.f&pt)!==0),f=l.deps===null;Wn(l)&&(d&&(l.f|=pt),$i(l)),d&&!f&&Cs(l)}if(kt?.has(e))return kt.get(e);if((e.f&Zt)!==0)throw e.v;return e.v}function Cs(e){if(e.deps!==null){e.f|=pt;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Ve)!==0&&(t.f&pt)===0&&Cs(t)}}function Ds(e){if(e.v===Be)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Jt.has(t)||(t.f&Ve)!==0&&Ds(t))return!0;return!1}function ee(e){var t=Et;try{return Et=!0,e()}finally{Et=t}}const Pa=["touchstart","touchmove"];function Ma(e){return Pa.includes(e)}const Es=new Set,Wr=new Set;function Aa(e,t,r,i={}){function s(o){if(i.capture||zn.call(t,o),!o.cancelBubble)return Ar(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?an(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function ft(e,t,r,i,s){var o={capture:i,passive:s},l=Aa(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Nr(()=>{t.removeEventListener(e,l,o)})}function $t(e){for(var t=0;t<e.length;t++)Es.add(e[t]);for(var r of Wr)r(e)}let Ts=null;function zn(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;Ts=e;var l=0,u=Ts===e&&e.__root;if(u){var d=s.indexOf(u);if(d!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;d<=f&&(l=d)}if(o=s[l]||e.target,o!==t){Ii(e,"currentTarget",{configurable:!0,get(){return o||r}});var c=ce,g=Ee;rt(null),Rt(null);try{for(var h,v=[];o!==null;){var y=o.assignedSlot||o.parentNode||o.host||null;try{var p=o["__"+i];p!=null&&(!o.disabled||e.target===o)&&p.call(o,e)}catch(m){h?v.push(m):h=m}if(e.cancelBubble||y===t||y===null)break;o=y}if(h){for(let m of v)queueMicrotask(()=>{throw m});throw h}}finally{e.__root=t,delete e.currentTarget,rt(c),Rt(g)}}}function Oa(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ar(e,t){var r=Ee;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function j(e,t){var r=(t&na)!==0,i=(t&ra)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=Oa(o?e:"<!>"+e),r||(s=ir(s)));var l=i||rs?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=ir(l),d=l.lastChild;ar(u,d)}else ar(l,l);return l}}function xs(e=""){{var t=zt(e+"");return ar(t,t),t}}function le(){var e=document.createDocumentFragment(),t=document.createComment(""),r=zt();return e.append(t,r),ar(t,r),e}function x(e,t){e!==null&&e.before(t)}function Ss(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Na(e,t){return Fa(e,t)}const Cn=new Map;function Fa(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0}){ba();var u=new Set,d=g=>{for(var h=0;h<g.length;h++){var v=g[h];if(!u.has(v)){u.add(v);var y=Ma(v);t.addEventListener(v,zn,{passive:y});var p=Cn.get(v);p===void 0?(document.addEventListener(v,zn,{passive:y}),Cn.set(v,1)):Cn.set(v,p+1)}}};d(jn(Es)),Wr.add(d);var f=void 0,c=Ea(()=>{var g=r??t.appendChild(zt());return va(g,{pending:()=>{}},h=>{if(o){ye({});var v=Xe;v.c=o}s&&(i.$$events=s),f=e(h,i)||{},o&&we()}),()=>{for(var h of u){t.removeEventListener(h,zn);var v=Cn.get(h);--v===0?(document.removeEventListener(h,zn),Cn.delete(h)):Cn.set(h,v)}Wr.delete(d),g!==r&&g.parentNode?.removeChild(g)}});return Ur.set(f,c),f}let Ur=new WeakMap;function Ha(e,t){const r=Ur.get(e);return r?(Ur.delete(e),r(t)):Promise.resolve()}class zr{anchor;#e=new Map;#n=new Map;#t=new Map;#r=new Set;#s=!0;constructor(t,r=!0){this.anchor=t,this.#s=r}#i=()=>{var t=Pe;if(this.#e.has(t)){var r=this.#e.get(t),i=this.#n.get(r);if(i)Hr(i),this.#r.delete(r);else{var s=this.#t.get(r);s&&(this.#n.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===t)break;const u=this.#t.get(l);u&&($e(u.effect),this.#t.delete(l))}for(const[o,l]of this.#n){if(o===r||this.#r.has(o))continue;const u=()=>{if(Array.from(this.#e.values()).includes(o)){var f=document.createDocumentFragment();gs(l,f),f.append(zt()),this.#t.set(o,{effect:l,fragment:f})}else $e(l);this.#r.delete(o),this.#n.delete(o)};this.#s||!i?(this.#r.add(o),un(l,u,!1)):u()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[i,s]of this.#t)r.includes(i)||($e(s.effect),this.#t.delete(i))};ensure(t,r){var i=Pe,s=os();if(r&&!this.#n.has(t)&&!this.#t.has(t))if(s){var o=document.createDocumentFragment(),l=zt();o.append(l),this.#t.set(t,{effect:ut(()=>r(l)),fragment:o})}else this.#n.set(t,ut(()=>r(this.anchor)));if(this.#e.set(i,t),s){for(const[u,d]of this.#n)u===t?i.skipped_effects.delete(d):i.skipped_effects.add(d);for(const[u,d]of this.#t)u===t?i.skipped_effects.delete(d.effect):i.skipped_effects.add(d.effect);i.oncommit(this.#i),i.ondiscard(this.#o)}else this.#i()}}function de(e,t,r=!1){var i=new zr(e),s=r?Kt:0;function o(l,u){i.ensure(l,u)}Fn(()=>{var l=!1;t((u,d=!0)=>{l=!0,o(d,u)}),l||o(!1,null)},s)}function Ce(e,t){return t}function Wa(e,t,r){for(var i=[],s=t.length,o,l=t.length,u=0;u<s;u++){let g=t[u];un(g,()=>{if(o){if(o.pending.delete(g),o.done.add(g),o.pending.size===0){var h=e.outrogroups;Vr(jn(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var d=i.length===0&&r!==null;if(d){var f=r,c=f.parentNode;ka(c),c.append(f),e.items.clear()}Vr(t,!d)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Vr(e,t=!0){for(var r=0;r<e.length;r++)$e(e[r],t)}var Rs;function ue(e,t,r,i,s,o=null){var l=e,u=new Map,d=(t&Hi)!==0;if(d){var f=e;l=f.appendChild(zt())}var c=null,g=Qi(()=>{var _=r();return Ri(_)?_:_==null?[]:jn(_)}),h,v=!0;function y(){m.fallback=c,Ua(m,h,l,t,i),c!==null&&(h.length===0?(c.f&Ht)===0?Hr(c):(c.f^=Ht,Vn(c,null,l)):un(c,()=>{c=null}))}var p=Fn(()=>{h=n(g);for(var _=h.length,k=new Set,S=Pe,C=os(),D=0;D<_;D+=1){var w=h[D],E=i(w,D),A=v?null:u.get(E);A?(A.v&&kn(A.v,w),A.i&&kn(A.i,D),C&&S.skipped_effects.delete(A.e)):(A=za(u,v?l:Rs??=zt(),w,E,D,s,t,r),v||(A.e.f|=Ht),u.set(E,A)),k.add(E)}if(_===0&&o&&!c&&(v?c=ut(()=>o(l)):(c=ut(()=>o(Rs??=zt())),c.f|=Ht)),!v)if(C){for(const[Y,R]of u)k.has(Y)||S.skipped_effects.add(R.e);S.oncommit(y),S.ondiscard(()=>{})}else y();n(g)}),m={effect:p,items:u,outrogroups:null,fallback:c};v=!1}function Ua(e,t,r,i,s){var o=(i&Jo)!==0,l=t.length,u=e.items,d=e.effect.first,f,c=null,g,h=[],v=[],y,p,m,_;if(o)for(_=0;_<l;_+=1)y=t[_],p=s(y,_),m=u.get(p).e,(m.f&Ht)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(_=0;_<l;_+=1){if(y=t[_],p=s(y,_),m=u.get(p).e,e.outrogroups!==null)for(const R of e.outrogroups)R.pending.delete(m),R.done.delete(m);if((m.f&Ht)!==0)if(m.f^=Ht,m===d)Vn(m,null,r);else{var k=c?c.next:d;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),en(e,c,m),en(e,m,k),Vn(m,k,r),c=m,h=[],v=[],d=c.next;continue}if((m.f&lt)!==0&&(Hr(m),o&&(m.nodes?.a?.unfix(),(g??=new Set).delete(m))),m!==d){if(f!==void 0&&f.has(m)){if(h.length<v.length){var S=v[0],C;c=S.prev;var D=h[0],w=h[h.length-1];for(C=0;C<h.length;C+=1)Vn(h[C],S,r);for(C=0;C<v.length;C+=1)f.delete(v[C]);en(e,D.prev,w.next),en(e,c,D),en(e,w,S),d=S,c=w,_-=1,h=[],v=[]}else f.delete(m),Vn(m,d,r),en(e,m.prev,m.next),en(e,m,c===null?e.effect.first:c.next),en(e,c,m),c=m;continue}for(h=[],v=[];d!==null&&d!==m;)(f??=new Set).add(d),v.push(d),d=d.next;if(d===null)continue}(m.f&Ht)===0&&h.push(m),c=m,d=m.next}if(e.outrogroups!==null){for(const R of e.outrogroups)R.pending.size===0&&(Vr(jn(R.done)),e.outrogroups?.delete(R));e.outrogroups.size===0&&(e.outrogroups=null)}if(d!==null||f!==void 0){var E=[];if(f!==void 0)for(m of f)(m.f&lt)===0&&E.push(m);for(;d!==null;)(d.f&lt)===0&&d!==e.fallback&&E.push(d),d=d.next;var A=E.length;if(A>0){var Y=(i&Hi)!==0&&l===0?r:null;if(o){for(_=0;_<A;_+=1)E[_].nodes?.a?.measure();for(_=0;_<A;_+=1)E[_].nodes?.a?.fix()}Wa(e,E,Y)}}o&&an(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function za(e,t,r,i,s,o,l,u){var d=(l&Ko)!==0?(l&Qo)===0?ts(r,!1,!1):Qt(r):null,f=(l&Zo)!==0?Qt(s):null;return{v:d,i:f,e:ut(()=>(o(t,d??r,f??s,u),()=>{e.delete(i)}))}}function Vn(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&Ht)===0?t.nodes.start:r;i!==null;){var l=Nn(i);if(o.before(i),i===s)return;i=l}}function en(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Gt(e,t,...r){var i=new zr(e);Fn(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Kt)}function Br(e,t,r){var i=new zr(e);Fn(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Kt)}function Ae(e,t){var r=void 0,i;xa(()=>{r!==(r=t())&&(i&&($e(i),i=null),r&&(i=ut(()=>{Fr(()=>r(e))})))})}function Is(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Is(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Va(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Is(e))&&(i&&(i+=" "),i+=t);return i}function It(e){return typeof e=="object"?Va(e):e??""}function Ba(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function Ls(e,t=!1){var r=t?" !important;":";",i="";for(var s in e){var o=e[s];o!=null&&o!==""&&(i+=" "+s+": "+o+r)}return i}function Gr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Ga(e,t){if(t){var r="",i,s;if(Array.isArray(t)?(i=t[0],s=t[1]):i=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,l=0,u=!1,d=[];i&&d.push(...Object.keys(i).map(Gr)),s&&d.push(...Object.keys(s).map(Gr));var f=0,c=-1;const p=e.length;for(var g=0;g<p;g++){var h=e[g];if(u?h==="/"&&e[g-1]==="*"&&(u=!1):o?o===h&&(o=!1):h==="/"&&e[g+1]==="*"?u=!0:h==='"'||h==="'"?o=h:h==="("?l++:h===")"&&l--,!u&&o===!1&&l===0){if(h===":"&&c===-1)c=g;else if(h===";"||g===p-1){if(c!==-1){var v=Gr(e.substring(f,c).trim());if(!d.includes(v)){h!==";"&&g++;var y=e.substring(f,g).trim();r+=" "+y+";"}}f=g+1,c=-1}}}}return i&&(r+=Ls(i)),s&&(r+=Ls(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function N(e,t,r,i,s,o){var l=e.__className;if(l!==r||l===void 0){var u=Ba(r);u==null?e.removeAttribute("class"):e.className=u,e.__className=r}return o}function Yr(e,t={},r,i){for(var s in r){var o=r[s];t[s]!==o&&(r[s]==null?e.style.removeProperty(s):e.style.setProperty(s,o,i))}}function Tt(e,t,r,i){var s=e.__style;if(s!==t){var o=Ga(t,i);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else i&&(Array.isArray(i)?(Yr(e,r?.[0],i[0]),Yr(e,r?.[1],i[1],"important")):Yr(e,r,i));return i}const Ya=Symbol("is custom element"),qa=Symbol("is html");function Ie(e,t,r,i){var s=Xa(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[No]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ka(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Xa(e){return e.__attributes??={[Ya]:e.nodeName.includes("-"),[qa]:e.namespaceURI===ia}}var Ps=new Map;function Ka(e){var t=e.getAttribute("is")||e.nodeName,r=Ps.get(t);if(r)return r;Ps.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=Io(s);for(var l in i)i[l].set&&r.push(l);s=Li(s)}return r}class qr{#e=new WeakMap;#n;#t;static entries=new WeakMap;constructor(t){this.#t=t}observe(t,r){var i=this.#e.get(t)||new Set;return i.add(r),this.#e.set(t,i),this.#r().observe(t,this.#t),()=>{var s=this.#e.get(t);s.delete(r),s.size===0&&(this.#e.delete(t),this.#n.unobserve(t))}}#r(){return this.#n??(this.#n=new ResizeObserver(t=>{for(var r of t){qr.entries.set(r.target,r);for(var i of this.#e.get(r.target)||[])i(r)}}))}}var Za=new qr({box:"border-box"});function lr(e,t,r){var i=Za.observe(e,()=>r(e[t]));Fr(()=>(ee(()=>r(e[t])),i))}function Ms(e,t){return e===t||e?.[Mn]===t}function it(e={},t,r,i){return Fr(()=>{var s,o;return us(()=>{s=o,o=i?.()||[],ee(()=>{e!==r(...o)&&(t(e,...o),s&&Ms(r(...s),e)&&t(null,...s))})}),()=>{an(()=>{o&&Ms(r(...o),e)&&t(null,...o)})}}),e}function As(e,t,r){if(e==null)return t(void 0),Xt;const i=ee(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}function Ja(e){let t;return As(e,r=>t=r)(),t}let ur=!1,Xr=Symbol();function Qa(e,t,r){const i=r[t]??={store:null,source:ts(void 0),unsubscribe:Xt};if(i.store!==e&&!(Xr in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=Xt;else{var s=!0;i.unsubscribe=As(e,o=>{s?i.source.v=o:b(i.source,o)}),s=!1}return e&&Xr in r?Ja(e):n(i.source)}function ja(){const e={};function t(){Nr(()=>{for(var r in e)e[r].unsubscribe();Ii(e,Xr,{enumerable:!1,value:!0})})}return[e,t]}function $a(e){var t=ur;try{return ur=!1,[e(),ur]}finally{ur=t}}function De(e,t,r,i){var s=(r&ea)!==0,o=(r&ta)!==0,l=i,u=!0,d=()=>(u&&(u=!1,l=o?ee(i):i),l),f;if(s){var c=Mn in e||Oo in e;f=pn(e,t)?.set??(c&&t in e?k=>e[t]=k:void 0)}var g,h=!1;s?[g,h]=$a(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=d(),f&&(Bo(),f(g)));var v;if(v=()=>{var k=e[t];return k===void 0?d():(u=!0,k)},(r&$o)===0)return v;if(f){var y=e.$$legacy;return(function(k,S){return arguments.length>0?((!S||y||h)&&f(S?v():k),k):v()})}var p=!1,m=((r&jo)!==0?rr:Qi)(()=>(p=!1,v()));s&&n(m);var _=Ee;return(function(k,S){if(arguments.length>0){const C=S?n(m):s?nt(k):k;return b(m,C),p=!0,l!==void 0&&(l=C),k}return jt&&p||(_.f&Ft)!==0?m.v:n(m)})}function el(){return ce===null&&Vo(),(ce.ac??=new AbortController).signal}function Bn(e){Xe===null&&Fi(),Ke(()=>{const t=ee(e);if(typeof t=="function")return t})}const tl="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(tl);function Kr(e,t=void 0){return function(r){return r.key==="Enter"||r.key===" "&&!r.preventDefault()?e.call(t,r):void 0}}function Ze(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function nl(e){return t=>{let r=i=>{t&&!t.contains(i.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:i}}))};return document.addEventListener(e,r,!0),()=>{document.removeEventListener(e,r,!0)}}}function Zr(e){return t=>{let r=new ResizeObserver(i=>{for(let s of i)e(t,s)});return r.observe(t),()=>{r.unobserve(t)}}}function Os(e,t){return r=>{let i=new IntersectionObserver(s=>{for(let o of s)e(r,o)},t);return i.observe(r),()=>{i.unobserve(r)}}}function ve(...e){return Object.assign(...e)}function cn(e){return Object.keys(e)}function Ns(e){return Object.entries(e)}function Jr(e){return Math.floor(e)}function rl(e){return Math.ceil(e)}function Lt(...e){return Math.min(...e)}function ct(...e){return Math.max(...e)}function il(){return Symbol("ec")}function Qr(e){return Array.isArray(e)}function ke(e){return typeof e=="function"}function sl(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function jr(e){return e instanceof Date}function ol(e){return e()}function al(e){e.forEach(ol)}function ll(){}const dr=e=>e;function $r(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function hn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const fr=86400;function Pt(e=void 0){return e!==void 0?jr(e)?Vs(e):fl(e):Vs(new Date)}function Fe(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let r=0,i=2;for(let s of e.split(":",3))r+=parseInt(s,10)*Math.pow(60,i--);e={seconds:r}}else jr(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function X(e){return new Date(e.getTime())}function xe(e,t,r=1){e.setUTCFullYear(e.getUTCFullYear()+r*t.years);let i=e.getUTCMonth()+r*t.months;for(e.setUTCMonth(i),i%=12,i<0&&(i+=12);e.getUTCMonth()!==i;)Dn(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function cr(e,t,r=1){return xe(e,t,-r)}function wt(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function Dn(e,t=1){return wt(e,-t)}function Yt(e){return e.setUTCHours(0,0,0,0),e}function Ue(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function ht(e,t=19){return e.toISOString().substring(0,t)}function Je(e,...t){return t.every(r=>e.getTime()===r.getTime())}function ul(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Fs(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function Hs(e){return typeof e=="string"&&e.length<=10}function ei(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function _e(e){return e.seconds}function Ws(e,t,r){return xe(e,t),zs(e,r,wt),e}function Us(e,t,r){return cr(e,t),zs(e,r,Dn),e}function zs(e,t,r){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)r(e)}function dl(e,t){e=X(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-r)/1e3/fr+1)/7)}function Vs(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function fl(e){const t=e.match(/\d+/g);return new Date(Date.UTC(Number(t[0]),Number(t[1])-1,Number(t[2]),Number(t[3]||0),Number(t[4]||0),Number(t[5]||0)))}let ti=il();function Bs(e,t){e[ti]=t}function cl(e){return!!e?.[ti]}function qt(e){return e[ti]}function Gs(e,t,r,i=[]){let s=document.createElement(e);s.className=t,typeof r=="string"?s.innerText=r:r.domNodes?s.replaceChildren(...r.domNodes):r.html&&(s.innerHTML=r.html);for(let o of i)s.setAttribute(...o);return s}function tn(e){return e.getBoundingClientRect()}function Ys(e,t){for(;t--;)e=e.parentElement;return e}function vn(e){return tn(e).height}function En(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(cl(s))return s;if(s.shadowRoot&&!i.includes(s.shadowRoot)){let o=En(e,t,s.shadowRoot,i);if(o)return o}}return null}function Gn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function hl(e,t,r,i){return{type:e,title:t,currentStart:r.start,currentEnd:r.end,activeStart:i.start,activeEnd:i.end,calendar:void 0}}function Qe(e){return e=ve({},e),e.currentStart=Ue(e.currentStart),e.currentEnd=Ue(e.currentEnd),e.activeStart=Ue(e.activeStart),e.activeEnd=Ue(e.activeEnd),e}let vl=1;function hr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${vl++}}`,resourceIds:ni(t,"resourceId").map(String),allDay:t.allDay??(Hs(t.start)&&Hs(t.end)),start:Pt(t.start),end:Pt(t.end),title:t.title??"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display??"auto",extendedProps:t.extendedProps??{},backgroundColor:t.backgroundColor??t.color,textColor:t.textColor,classNames:ni(t,"className"),styles:ni(t,"style")};if(r.allDay){Yt(r.start);let i=X(r.end);Yt(r.end),(!Je(r.end,i)||Je(r.end,r.start))&&wt(r.end)}return r})}function ni(e,t){let r=e[t+"s"]??e[t]??[];return Qr(r)?r:[r]}function gl(e){return e.map(t=>({events:t.events,url:t.url&&t.url.trimEnd("&")||"",method:t.method&&t.method.toUpperCase()||"GET",extraParams:t.extraParams||{}}))}function ml(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?ei(X(e.start),e.end):e.start),u;if(r&&(u=ke(r)?r({event:Ge(e.event),timeText:l,view:Qe(o)}):r),u===void 0){let d;switch(e.event.display){case"background":d=[];break;case"pointer":d=e.event.allDay?[]:[qs(l,e,i)];break;default:d=[...e.event.allDay?[]:[qs(l,e,i)],Gs("h4",i.eventTitle,e.event.title)]}u={domNodes:d}}return[l,u]}function qs(e,t,r){return Gs("time",r.eventTime,e,[["datetime",ht(t.start)]])}function pl(e,t,r){let i=t.classNames;return e&&(ke(e)&&(e=e({event:Ge(t),view:Qe(r)})),i=[...Qr(e)?e:[e],...i]),i}function Ge(e){return Xs(e,Ue)}function ri(e){return Xs(e,X)}function Xs(e,t){return e=ve({},e),e.start=t(e.start),e.end=t(e.end),e}function ii(e,t){e.length=t.length;for(let r of e)r?.reposition()}function Tn(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function vr(e){return _l(e)||yl(e)||wl(e)}function vt(e){return e==="background"}function _l(e){return e==="preview"}function yl(e){return e==="ghost"}function wl(e){return e==="pointer"}function Yn(e,t,r){return t=e.start>t?e.start:t,r=e.end<r?e.end:r,{start:t,end:r,event:e,zeroDuration:Je(t,r)}}function xn(e,t,r=!0){let i=[],s,o,l;for(let{gridColumn:u,gridRow:d,resource:f,dayStart:c,dayEnd:g,disabled:h}of t)!h&&Tn(e,c,g,f)&&(i.push(c),s=g,o||(o=u,l=d));if(i.length){let u=Yn(e,i[0],s);return ve(u,{gridColumn:o,gridRow:l,dates:i}),r&&si(u),[u]}return[]}function Ks(e){let t={},r={};for(let i of e){let{gridColumn:s,gridRow:o}=i;for(let u=1;u<i.dates.length;++u){let d=`${o}_${s+u}`;r[d]?r[d].chunks.push(i):r[d]={sorted:!1,chunks:[i]}}let l=`${o}_${s}`;i.long=r[l],i.prev=t[l],t[l]=i}}function Zs(e,t,r=1){e.prev&&(r=e.prev.bottom+1);let i=r+t;if(e.long){let s=e.long;s.sorted||(s.chunks.sort((o,l)=>o.top-l.top),s.sorted=!0);for(let o of s.chunks)if(r<o.bottom&&i>o.top){let l=o.bottom-r+1;r+=l,i+=l}}return ve(e,{top:r,bottom:i}),r}const Js=new WeakMap;let bl=1;function si(e){let{event:t,gridColumn:r,gridRow:i}=e,s=Js.get(t);s||(s=bl++,Js.set(t,s)),e.id=`${s}-${r}-${i}`}function gn(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return ee(()=>{s=ke(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(Ue(o))}}}function Qs(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return ee(()=>{if(ke(i))s=i;else{let o=new Intl.DateTimeFormat(r,i);s=(l,u)=>{if(l<=u)return o.formatRange(l,u);{let d=o.formatRangeToParts(u,l),f="",c=["startRange","endRange"],g=[!1,!1];for(let h of d){let v=c.indexOf(h.source);v>=0?g[v]||(f+=kl(c[1-v],d),g[v]=!0):f+=h.value}return f}}}}),{formatRange:(o,l)=>s(Ue(o),Ue(l))}}}function kl(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function qn(e){return gr(e,"day")}function Xn(e){return gr(e,"week")}function oi(e){return gr(e,"month")}function Cl(e){return gr(e,"year")}function gr(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function st(e){return t=>({...t,view:e})}function Dl(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=Yt(Pt(t))),r&&(r=Yt(Pt(r)))),{start:t,end:r}}function Sn(e,t){return t.start&&e<t.start||t.end&&e>t.end}function js(e){let t=[];return $s(e,0,t),t}function $s(e,t,r){let i=[];for(let s of e){let o=El(s);i.push(o),r.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};Bs(o,l),s.children&&(l.children=$s(s.children,t+1,r))}return i}function El(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:e.eventBackgroundColor,eventTextColor:e.eventTextColor,extendedProps:e.extendedProps??{}}}function Tl(e,t){return eo(e,t)?.eventBackgroundColor}function xl(e,t){return eo(e,t)?.eventTextColor}function eo(e,t){return t.find(r=>e.resourceIds.includes(r.id))}function to(e,t,r,i,s){let o=[];e=X(e);let l=X(e);for(xe(e,i.min),xe(l,i.max);e<l;)o.push([ht(e),s.format(e)]),xe(e,t,r);let u=Jr((e-l)/1e3/_e(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function no(e,t,r,i,s){let o=Fe(e),l=Fe(t);if(r){let u=Fe(Lt(_e(o),ct(0,_e(l)-fr))),d=Fe(ct(_e(l),_e(u)+fr)),f=ke(r?.eventFilter)?r.eventFilter:c=>!vt(c.display);e:for(let c of i){let g=xe(X(c),o),h=xe(X(c),l),v=xe(X(c),u),y=xe(X(c),d);for(let p of s)if(!p.allDay&&f(p)&&p.start<y&&p.end>v){if(p.start<g){let m=ct((p.start-c)/1e3,_e(u));m<_e(o)&&(o.seconds=m)}if(p.end>h){let m=Lt((p.end-c)/1e3,_e(d));m>_e(l)&&(l.seconds=m)}if(_e(o)===_e(u)&&_e(l)===_e(d))break e}}}return{min:o,max:l}}class ai extends Map{#e=new Map;#n=Z(0);#t=Z(0);#r=Bt||-1;constructor(t){if(super(),t){for(var[r,i]of t)super.set(r,i);this.#t.v=super.size}}#s(t){return Bt===this.#r?Z(t):Qt(t)}has(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#s(0),r.set(t,i);else return n(this.#n),!1}return n(i),!0}forEach(t,r){this.#i(),super.forEach(t,r)}get(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#s(0),r.set(t,i);else{n(this.#n);return}}return n(i),super.get(t)}set(t,r){var i=this.#e,s=i.get(t),o=super.get(t),l=super.set(t,r),u=this.#n;if(s===void 0)s=this.#s(0),i.set(t,s),b(this.#t,super.size),St(u);else if(o!==r){St(s);var d=u.reactions===null?null:new Set(u.reactions),f=d===null||!s.reactions?.every(c=>d.has(c));f&&St(u)}return l}delete(t){var r=this.#e,i=r.get(t),s=super.delete(t);return i!==void 0&&(r.delete(t),b(this.#t,super.size),b(i,-1),St(this.#n)),s}clear(){if(super.size!==0){super.clear();var t=this.#e;b(this.#t,0);for(var r of t.values())b(r,-1);St(this.#n),t.clear()}}#i(){n(this.#n);var t=this.#e;if(this.#t.v!==t.size){for(var r of super.keys())if(!t.has(r)){var i=this.#s(0);t.set(r,i)}}for([,i]of this.#e)n(i)}keys(){return n(this.#n),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return n(this.#t),super.size}}function Sl(e){let t={buttonText:{today:"today"},customButtons:{},customScrollbars:!1,date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,resources:[],selectable:!1,theme:{active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",colHead:"ec-col-head",customScrollbars:"ec-custom-scrollbars",day:"ec-day",dayHead:"ec-day-head",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",grid:"ec-grid",header:"ec-header",hidden:"ec-hidden",highlight:"ec-highlight",icon:"ec-icon",main:"ec-main",noBeb:"ec-no-beb",noIeb:"ec-no-ieb",today:"ec-today",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"]},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let r of e)r.createOptions?.(t);return t}function Rl(e){let t={date:r=>Yt(Pt(r)),duration:Fe,events:hr,eventSources:gl,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>Yt(Pt(i))),resources:js,validRange:Dl};for(let r of e)r.createParsers?.(t);return t}const ro=["buttonText","customButtons","theme"];function Il(e,t,r){let i=Sl(t),s=Rl(t);i=li(i,s),r=li(r,s);let o=ui(i,"views")??{},l=ui(r,"views")??{},u=new ai;so(u,i);let d={},f={};function c(){r.view&&u.set("view",r.view);let g=new Set([...cn(o),...cn(l)]);for(let h of g){let v=l[h]??{},y=io(i,o[h]??o[v.type]??{}),p=io(y,r,v),m=ui(p,"component");delete p.view;for(let _ of cn(p))u.has(_)?(d[_]||(d[_]=[]),d[_].push(ro.includes(_)?k=>p[_]=ke(k)?k(y[_]):k:k=>p[_]=k)):delete p[_];ln(()=>{let _=u.get("view");ee(()=>{_===h&&(e.setViewComponent(m),f=p,so(u,p))})})}}return{proxy:new Proxy(u,{set(g,h,v){return f[h]=v,g.set(h,v),!0},get(g,h){return g.get(h)}}),setOption(g,h,v){u.has(g)&&(!v&&g in s&&(h=s[g](h)),d[g]?.forEach(y=>y(h)),u.set(g,f[g]??h))},initEffects:c}}function li(e,t){let r={...e};for(let i of cn(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of cn(e.views))r.views[i]=li(e.views[i],t)}return r}function ui(e,t){let r=e[t];return delete e[t],r}function io(...e){let t={};for(let r of e){let i={};for(let s of ro)ke(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function so(e,t){for(let[r,i]of Ns(t))e.set(r,i)}function Ll(e,t){let r=[];for(let i of cn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function Pl(e){let t=0;return()=>{let{activeRange:r,fetchedRange:i,viewDates:s,options:{events:o,eventSources:l,lazyFetching:u,loading:d}}=e;ee(()=>{if(s.length&&(l.length||(e.events=o),!i.start||i.start>r.start||i.end<r.end||!u)){ke(d)&&!t&&d(!0);let f=()=>{--t===0&&ke(d)&&d(!1)},c=[],g=p=>f(),h=p=>{c=c.concat(hr(p)),e.events=c,f()},v=ht(r.start),y=ht(r.end);for(let p of l){if(ke(p.events)){let m=p.events({start:Ue(r.start),end:Ue(r.end),startStr:v,endStr:y},h,g);m!==void 0&&Promise.resolve(m).then(h,g)}else{let m=ke(p.extraParams)?p.extraParams():ve({},p.extraParams);m.start=v,m.end=y,m=new URLSearchParams(m);let _=p.url,k={},S;["GET","HEAD"].includes(p.method)?_+=(_.includes("?")?"&":"?")+m:(k["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",S=String(m)),fetch(_,{method:p.method,headers:k,body:S,signal:el(),credentials:"same-origin"}).then(C=>C.json()).then(h).catch(g)}++t}ve(i,r)}})}}function Ml(e){return()=>{let t=setInterval(()=>{let r=Pt(),i=Yt(X(r));e.now=r,Je(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function Al(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;ee(()=>{ke(r)&&r({start:Ue(t.start),end:Ue(t.end),startStr:ht(t.start),endStr:ht(t.end),view:Qe(e.view)})})}}function Ol(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;ee(()=>{ke(i)&&(t||(t=setTimeout(()=>{t=null,i({view:Qe(e.view)})})))})}}function Nl(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;ee(()=>{ke(r)&&fn().then(()=>r({view:Qe(e.view)}))})}}function Fl(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return ee(()=>{s=X(t),r.months?s.setUTCDate(1):r.inWeeks&&Fs(s,i),o=xe(X(s),r)}),{start:s,end:o}}}function Hl(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return ee(()=>{i=X(t.start),s=X(t.end)}),r?r(i,s):{start:i,end:s}}}function Wl(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o,view:l}}=e,u=[...t];return ee(()=>{if(ke(r)){let d=t.map(Ge),f=Qe(e.view);u=u.filter((c,g)=>r({event:Ge(c),index:g,events:d,view:f}))}s&&(u=u.filter(d=>o.some(f=>d.resourceIds.includes(f.id)))),ke(i)?u.sort((d,f)=>i(Ge(d),Ge(f))):u.sort((d,f)=>d.start-f.start||f.allDay-d.allDay)}),u}}function Ul(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return ee(()=>{let o=X(r.start),l=X(r.end);for(;o<l;)i.includes(o.getUTCDay())||s.push(X(o)),wt(o);if(!s.length&&i.length&&i.length<7){for(;i.includes(o.getUTCDay());)wt(o);fn().then(()=>{e.setOption("date",o)})}}),s}}function zl(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return ee(()=>{i=r.formatRange(t.start,Dn(X(t.end)))}),i}}function Vl(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return ee(()=>{o=hl(s,i,r,t)}),o}}class Bl{#e;get auxComponents(){return n(this.#e)}set auxComponents(t){b(this.#e,t,!0)}#n;get currentRange(){return n(this.#n)}set currentRange(t){b(this.#n,t)}#t;get activeRange(){return n(this.#t)}set activeRange(t){b(this.#t,t)}#r;get fetchedRange(){return n(this.#r)}set fetchedRange(t){b(this.#r,t)}#s;get events(){return n(this.#s)}set events(t){b(this.#s,t)}#i;get filteredEvents(){return n(this.#i)}set filteredEvents(t){b(this.#i,t)}#o;get mainEl(){return n(this.#o)}set mainEl(t){b(this.#o,t,!0)}#a;get now(){return n(this.#a)}set now(t){b(this.#a,t,!0)}#l;get today(){return n(this.#l)}set today(t){b(this.#l,t,!0)}#u;get intlEventTime(){return n(this.#u)}set intlEventTime(t){b(this.#u,t)}#d;get intlDayHeader(){return n(this.#d)}set intlDayHeader(t){b(this.#d,t)}#f;get intlDayHeaderAL(){return n(this.#f)}set intlDayHeaderAL(t){b(this.#f,t)}#h;get intlTitle(){return n(this.#h)}set intlTitle(t){b(this.#h,t)}#v;get viewDates(){return n(this.#v)}set viewDates(t){b(this.#v,t)}#g;get viewTitle(){return n(this.#g)}set viewTitle(t){b(this.#g,t)}#c;get view(){return n(this.#c)}set view(t){b(this.#c,t)}#y;get viewComponent(){return n(this.#y)}set viewComponent(t){b(this.#y,t,!0)}#b;get extensions(){return n(this.#b)}set extensions(t){b(this.#b,t,!0)}#k;get features(){return n(this.#k)}set features(t){b(this.#k,t,!0)}#_;get interaction(){return n(this.#_)}set interaction(t){b(this.#_,t,!0)}#m;get iClasses(){return n(this.#m)}set iClasses(t){b(this.#m,t,!0)}#p;get iClass(){return n(this.#p)}set iClass(t){b(this.#p,t,!0)}#w;constructor(t,r){let{proxy:i,setOption:s,initEffects:o}=Il(this,t,r);this.options=i,this.#w=s,this.#e=Z(nt([])),this.#n=a(Fl(this)),this.#t=a(Hl(this)),this.#r=Z({start:void 0,end:void 0}),this.#s=Z([]),this.#i=a(Wl(this)),this.#o=Z(),this.#a=Z(nt(Pt())),this.#l=Z(nt(Yt(Pt()))),this.#u=a(Qs(this,"eventTimeFormat")),this.#d=a(gn(this,"dayHeaderFormat")),this.#f=a(gn(this,"dayHeaderAriaLabelFormat")),this.#h=a(Qs(this,"titleFormat")),this.#v=a(Ul(this)),this.#g=a(zl(this)),this.#c=a(Vl(this)),this.#y=Z(),this.#b=Z(nt({})),this.#k=Z(nt([])),this.#_=Z(nt({})),this.iEvents=new ai,this.#m=Z(nt(dr)),this.#p=Z();for(let l of t)l.initState?.(this);o(),this.#C()}#C(){ln(Ml(this)),Ke(Pl(this)),Ke(Al(this)),Ke(Ol(this)),Ke(Nl(this))}setViewComponent(t){this.extensions={},this.features=[],this.viewComponent=t(this)}setOption(t,r,i=!0){this.#w(t,r,i)}}var Gl=j("<h2></h2>"),Yl=j("<button><i></i></button>"),ql=j("<button><i></i></button>"),Xl=j("<button> </button>"),Kl=j("<button></button>"),Zl=j("<button> </button>");function oo(e,t){ye(t,!0);let r=re("state"),i=a(()=>r.currentRange),s=a(()=>r.today),o=a(()=>r.viewTitle),l=a(()=>r.viewDates),u=a(()=>r.options.buttonText),d=a(()=>r.options.customButtons),f=a(()=>r.options.date),c=a(()=>r.options.duration),g=a(()=>r.options.hiddenDays),h=a(()=>r.options.theme),v=a(()=>r.options.validRange),y=a(()=>r.options.view),p=Z(!1),m=Z(!1),_=Z(!1),k=!1;ln(()=>{n(l),n(v),t.buttons,ee(()=>{k||(k=!0,t.buttons.includes("prev")&&(b(p,!1),n(v).start&&b(p,S(C),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,S(D),!0)),t.buttons.includes("today")&&(b(_,n(s)>=n(i).start&&n(s)<n(i).end,!0),!n(_)&&(n(v).start||n(v).end)&&b(_,S(w),!0)),fn().then(()=>k=!1))})});function S(Y){let R=n(f);Y();let te=n(l).every(ge=>Sn(ge,n(v)));return r.setOption("date",R),te}function C(){r.setOption("date",Us(X(n(f)),n(c),n(g)))}function D(){r.setOption("date",Ws(X(n(f)),n(c),n(g)))}function w(){r.setOption("date",X(n(s)))}var E=le(),A=J(E);ue(A,17,()=>t.buttons,Ce,(Y,R)=>{var te=le(),ge=J(te);{var be=z=>{var W=Gl();Ae(W,()=>Ze(n(o))),ae(()=>N(W,1,n(h).title)),x(z,W)},se=z=>{var W=le(),P=J(W);{var U=Q=>{var q=Yl();q.__click=C;var oe=fe(q);ae(()=>{N(q,1,`${n(h).button??""} ec-${n(R)??""}`),Ie(q,"aria-label",n(u).prev),Ie(q,"title",n(u).prev),q.disabled=n(p),N(oe,1,`${n(h).icon??""} ec-${n(R)??""}`)}),x(Q,q)},F=Q=>{var q=le(),oe=J(q);{var T=I=>{var V=ql();V.__click=D;var Ye=fe(V);ae(()=>{N(V,1,`${n(h).button??""} ec-${n(R)??""}`),Ie(V,"aria-label",n(u).next),Ie(V,"title",n(u).next),V.disabled=n(m),N(Ye,1,`${n(h).icon??""} ec-${n(R)??""}`)}),x(I,V)},M=I=>{var V=le(),Ye=J(V);{var Oe=Le=>{var Ne=Xl();Ne.__click=w;var gt=fe(Ne);ae(()=>{N(Ne,1,`${n(h).button??""} ec-${n(R)??""}`),Ne.disabled=n(_),Ss(gt,n(u)[n(R)])}),x(Le,Ne)},bt=Le=>{var Ne=le(),gt=J(Ne);{var Mt=K=>{var Se=Kl();Se.__click=function(...H){n(d)[n(R)].click?.apply(this,H)},Ae(Se,()=>Ze(n(d)[n(R)].text)),ae(()=>N(Se,1,It([n(h).button,`ec-${n(R)}`,n(d)[n(R)].active&&n(h).active]))),x(K,Se)},B=K=>{var Se=le(),H=J(Se);{var G=he=>{var me=Zl();me.__click=()=>r.setOption("view",n(R));var ne=fe(me);ae(()=>{N(me,1,It([n(h).button,`ec-${n(R)}`,n(y)===n(R)&&n(h).active])),Ss(ne,n(u)[n(R)])}),x(he,me)};de(H,he=>{n(R)!==""&&he(G)},!0)}x(K,Se)};de(gt,K=>{n(d)[n(R)]?K(Mt):K(B,!1)},!0)}x(Le,Ne)};de(Ye,Le=>{n(R)==="today"?Le(Oe):Le(bt,!1)},!0)}x(I,V)};de(oe,I=>{n(R)==="next"?I(T):I(M,!1)},!0)}x(Q,q)};de(P,Q=>{n(R)==="prev"?Q(U):Q(F,!1)},!0)}x(z,W)};de(ge,z=>{n(R)==="title"?z(be):z(se,!1)})}x(Y,te)}),x(e,E),we()}$t(["click"]);var Jl=j("<div><!></div>"),Ql=j("<div></div>"),jl=j("<nav></nav>");function $l(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.headerToolbar),s=a(()=>n(r).options.theme),o=a(()=>{let u={};for(let d of["start","center","end"])u[d]=n(i)[d]?.split(" ").map(f=>f.split(","))??[];return u});var l=jl();ue(l,21,()=>cn(n(o)),Ce,(u,d)=>{var f=Ql();ue(f,21,()=>n(o)[n(d)],Ce,(c,g)=>{var h=le(),v=J(h);{var y=m=>{var _=Jl(),k=fe(_);oo(k,{get buttons(){return n(g)}}),ae(()=>N(_,1,n(s).buttonGroup)),x(m,_)},p=m=>{oo(m,{get buttons(){return n(g)}})};de(v,m=>{n(g).length>1?m(y):m(p,!1)})}x(c,h)}),ae(()=>N(f,1,`ec-${n(d)??""}`)),x(u,f)}),ae(()=>N(l,1,n(s).toolbar)),x(e,l),we()}var eu=j("<div><!> <!> <!></div>");function tu(e,t){ye(t,!0);let r=De(t,"plugins",19,()=>[]),i=De(t,"options",19,()=>({})),s=new Bl(r(),i());An("state",s);let o=a(()=>s.auxComponents),l=a(()=>s.features),u=a(()=>s.events),d=a(()=>s.interaction),f=a(()=>s.iClass),c=a(()=>s.view),g=a(()=>s.viewComponent),h=a(()=>s.options.date),v=a(()=>s.options.duration),y=a(()=>s.options.height),p=a(()=>s.options.hiddenDays),m=a(()=>s.options.customScrollbars),_=a(()=>s.options.theme),k={...i()};ln(()=>{for(let[T,M]of Ll(i(),k))ee(()=>{S(T,M)});ve(k,i())});function S(T,M){return sl(M)&&(M={...M}),Qr(M)&&(M=[...M]),s.setOption(T,M,!1),this}function C(T){let M=s.options[T];return jr(M)?Ue(M):M}function D(){return s.fetchedRange={start:void 0,end:void 0},this}function w(){return n(u).map(Ge)}function E(T){T=String(T);for(let M of n(u))if(M.id===T)return Ge(M);return null}function A(T){return T=hr([T])[0],n(u).push(T),s.events=[...n(u)],Ge(T)}function Y(T){let M=String(T.id),I=n(u).findIndex(V=>V.id===M);return I>=0?(T=hr([T])[0],n(u)[I]=T,s.events=[...n(u)],Ge(T)):null}function R(T){T=String(T);let M=n(u).findIndex(I=>I.id===T);return M>=0&&(n(u).splice(M,1),s.events=[...n(u)]),this}function te(){return Qe(n(c))}function ge(){return n(d).action?.unselect(),this}function be(T,M){let I=En(T,M);if(I){let V=qt(I)(T,M);return V.date=Ue(V.date),V}return null}function se(){return s.setOption("date",Ws(X(n(h)),n(v),n(p))),this}function z(){return s.setOption("date",Us(X(n(h)),n(v),n(p))),this}var W={setOption:S,getOption:C,refetchEvents:D,getEvents:w,getEventById:E,addEvent:A,updateEvent:Y,removeEventById:R,getView:te,unselect:ge,dateFromPoint:be,next:se,prev:z},P=eu();let U;var F=fe(P);$l(F,{});var Q=ie(F,2);{var q=T=>{var M=le(),I=J(M);Br(I,()=>n(g),(V,Ye)=>{Ye(V,{})}),x(T,M)};de(Q,T=>{n(g)&&T(q)})}var oe=ie(Q,2);return ue(oe,17,()=>n(o),Ce,(T,M)=>{var I=le(),V=J(I);Br(V,()=>n(M),(Ye,Oe)=>{Oe(Ye,{})}),x(T,I)}),ae(T=>{N(P,1,It([n(_).calendar,n(_).view,n(f)&&n(_)[n(f)],n(m)&&n(_).customScrollbars])),Ie(P,"role",T),U=Tt(P,"",U,{height:n(y)})},[()=>n(l).includes("list")?"list":"table"]),x(e,P),we(W)}function nu(e){return()=>{let{viewDates:t,options:{duration:r,hiddenDays:i}}=e,s;return ee(()=>s=r.months||r.inWeeks?7-i.length:t.length),s}}function ru(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,l=[];return ee(()=>{let u=[],d=1,f=1;for(let c of s)u.push({gridColumn:d,gridRow:f,resource:void 0,dayStart:c,dayEnd:wt(X(c)),disabled:Sn(c,i),highlight:r.some(g=>Je(g,c))}),d===o&&(l.push(u),u=[],d=0,++f),++d}),l}}function iu(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return ee(()=>{for(let l of r)for(let u of i)vt(l.display)?l.allDay&&(o=o.concat(xn(l,u))):s=s.concat(xn(l,u));Ks(s)}),{chunks:s,bgChunks:o}}}function su(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&ee(()=>{for(let l of i)s=s.concat(xn(o,l,!1))});return s}}let ou=class{#e;get colsCount(){return n(this.#e)}set colsCount(t){b(this.#e,t)}#n;get grid(){return n(this.#n)}set grid(t){b(this.#n,t)}#t;get gridEl(){return n(this.#t)}set gridEl(t){b(this.#t,t,!0)}#r;get chunks(){return n(this.#r)}set chunks(t){b(this.#r,t)}#s;get bgChunks(){return n(this.#s)}set bgChunks(t){b(this.#s,t)}#i;get iChunks(){return n(this.#i)}set iChunks(t){b(this.#i,t)}#o;get intlDayCell(){return n(this.#o)}set intlDayCell(t){b(this.#o,t)}#a;get intlDayPopover(){return n(this.#a)}set intlDayPopover(t){b(this.#a,t)}#l;get popupDay(){return n(this.#l)}set popupDay(t){b(this.#l,t,!0)}constructor(t){this.#e=a(nu(t)),this.#n=a(ru(t,this)),this.#t=Z();let r=a(iu(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#r=a(()=>n(i)),this.#s=a(()=>n(s)),this.#i=a(su(t,this)),this.hiddenChunks=new ai,this.#o=a(gn(t,"dayCellFormat")),this.#a=a(gn(t,"dayPopoverFormat")),this.#l=Z(null)}};var au=j("<div><!></div>");function mr(e,t){ye(t,!0);let r=De(t,"el",15),i=De(t,"allDay",3,!1),s=De(t,"resource",3,void 0),o=De(t,"dateFromPoint",3,()=>t.date),l=De(t,"classes",3,dr),u=De(t,"disabled",3,!1),d=De(t,"highlight",3,!1),f=De(t,"role",3,"cell"),c=De(t,"noIeb",3,!1),g=De(t,"noBeb",3,!1),h=a(()=>re("state")),v=a(()=>n(h).today),y=a(()=>n(h).interaction.action),p=a(()=>n(h).options.theme),m=a(()=>re("view-state")),_=a(()=>n(m).snap),k=a(()=>Je(t.date,n(v))),S=a(()=>l()([n(p).day,n(p).weekdays?.[t.date.getUTCDay()],n(k)&&n(p).today,d()&&n(p).highlight,u()&&n(p).disabled,c()&&n(p).noIeb,g()&&n(p).noBeb]));Bn(()=>{Bs(r(),(E,A)=>({allDay:i(),date:o()(E,A),resource:s(),dayEl:r(),disabled:u()}))});let C=a(()=>!u()&&n(y)?E=>n(y).select(E,n(_)):void 0);var D=au();D.__pointerdown=function(...E){n(C)?.apply(this,E)};var w=fe(D);Gt(w,()=>t.children??Xt),it(D,E=>r(E),()=>r()),ae(()=>{N(D,1,It(n(S))),Ie(D,"role",f())}),x(e,D),we()}$t(["pointerdown"]);var lu=j("<div></div>"),uu=j("<article><!></article>");function ao(e,t){ye(t,!0);let r=De(t,"el",15),i=De(t,"classes",3,dr),s=De(t,"styles",3,dr),o=a(()=>re("state")),l=a(()=>n(o).intlEventTime),u=a(()=>n(o).view),d=a(()=>n(o).options.displayEventEnd),f=a(()=>n(o).options.eventBackgroundColor),c=a(()=>n(o).options.eventColor),g=a(()=>n(o).options.eventContent),h=a(()=>n(o).options.eventClick),v=a(()=>n(o).options.eventDidMount),y=a(()=>n(o).options.eventClassNames),p=a(()=>n(o).options.eventMouseEnter),m=a(()=>n(o).options.eventMouseLeave),_=a(()=>n(o).options.eventTextColor),k=a(()=>n(o).options.resources),S=a(()=>n(o).options.theme),C=a(()=>t.chunk.event),D=a(()=>t.chunk.event.display),w=a(()=>n(C).backgroundColor??Tl(n(C),n(k))??n(f)??n(c)),E=a(()=>n(C).textColor??xl(n(C),n(k))??n(_)),A=a(()=>Ns(s()({"background-color":n(w),color:n(E)})).map(T=>`${T[0]}:${T[1]}`).concat(n(C).styles).join(";")),Y=a(()=>i()([vt(n(D))?n(S).bgEvent:n(S).event,...pl(n(y),n(C),n(u))])),R=a(()=>ml(t.chunk,n(d),n(g),n(S),n(l),n(u))),te=a(()=>Ao(n(R),2)),ge=a(()=>n(te)[0]),be=a(()=>n(te)[1]);Bn(()=>{ke(n(v))&&n(v)({event:Ge(n(C)),timeText:n(ge),el:r(),view:Qe(n(u))})});function se(T,M){return ke(T)&&!vr(M)?I=>T({event:Ge(n(C)),el:r(),jsEvent:I,view:Qe(n(u))}):void 0}let z=a(()=>!vt(n(D))&&se(n(h),n(D))||void 0),W=a(()=>n(z)&&Kr(n(z))),P=a(()=>se(n(p),n(D))),U=a(()=>se(n(m),n(D)));var F=uu();F.__click=function(...T){n(z)?.apply(this,T)},F.__keydown=function(...T){n(W)?.apply(this,T)},F.__pointerdown=function(...T){t.onpointerdown?.apply(this,T)};{const T=M=>{var I=lu();Ae(I,()=>Ze(n(be))),ae(()=>N(I,1,It(n(S).eventBody))),x(M,I)};var Q=fe(F);{var q=M=>{var I=le(),V=J(I);Gt(V,()=>t.body,()=>T,()=>n(w),()=>n(E)),x(M,I)},oe=M=>{T(M)};de(Q,M=>{t.body?M(q):M(oe,!1)})}it(F,M=>r(M),()=>r())}ae(()=>{N(F,1,It(n(Y))),Tt(F,n(A)),Ie(F,"role",n(z)?"button":void 0),Ie(F,"tabindex",n(z)?0:void 0)}),ft("mouseenter",F,function(...T){n(P)?.apply(this,T)}),ft("mouseleave",F,function(...T){n(U)?.apply(this,T)}),x(e,F),we()}$t(["click","keydown","pointerdown"]);var du=j("<div><!></div>");function Kn(e,t){ye(t,!0);let r=De(t,"weekday",3,!0),i=De(t,"colSpan",3,1),s=De(t,"ariaHidden",3,!1),o=De(t,"disabled",3,!1),l=De(t,"highlight",3,!1),u=a(()=>re("state")),d=a(()=>n(u).today),f=a(()=>n(u).options.theme);var c=du(),g=fe(c);Gt(g,()=>t.children),ae(h=>{N(c,1,h),Ie(c,"role",s()?null:"columnheader"),Ie(c,"aria-colspan",s()||i()<=1?null:i()),Ie(c,"aria-colindex",s()?null:t.colIndex),Ie(c,"aria-hidden",s()?"true":null)},[()=>It([t.className??n(f).colHead,r()&&n(f).weekdays?.[t.date.getUTCDay()],r()&&Je(t.date,n(d))&&n(f).today,l()&&n(f).highlight,o()&&n(f).disabled])]),x(e,c),we()}var fu=j("<time></time>");function pr(e,t){ye(t,!0);let r=De(t,"alPrefix",3,""),i=a(()=>re("state")),s=a(()=>n(i).intlDayHeader),o=a(()=>n(i).intlDayHeaderAL);var l=fu();Ae(l,()=>Ze(n(s).format(t.date))),ae((u,d)=>{Ie(l,"datetime",u),Ie(l,"aria-label",`${r()??""}${d??""}`)},[()=>ht(t.date,10),()=>n(o).format(t.date)]),x(e,l),we()}function _r(e,t){ye(t,!0);let r=De(t,"el",15),i=a(()=>re("state")),s=a(()=>n(i).iClasses),o=a(()=>n(i).interaction.action),l=a(()=>n(i).interaction.resizer),u=a(()=>re("view-state")),d=a(()=>n(u).snap),f=a(()=>t.chunk.event),c=a(()=>t.chunk.event.display),g=a(()=>y=>n(s)(y,n(f)));function h(y){return n(o)?.draggable(y)?p=>n(o).drag(y,p,t.forceDate,t.forceMargin,n(d)):n(o)?.noAction}let v=a(()=>!vt(n(c))&&!vr(n(c))?h(n(f)):void 0);ao(e,{get chunk(){return t.chunk},get classes(){return n(g)},get styles(){return t.styles},get onpointerdown(){return n(v)},get el(){return r()},set el(p){r(p)},body:(p,m=Xt)=>{var _=le(),k=J(_);{var S=D=>{var w=le(),E=J(w);Br(E,()=>n(l),(A,Y)=>{Y(A,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(R,te)=>{var ge=le(),be=J(ge);Gt(be,m),x(R,ge)},$$slots:{default:!0}})}),x(D,w)},C=D=>{var w=le(),E=J(w);Gt(E,m),x(D,w)};de(k,D=>{n(l)?D(S):D(C,!1)})}x(p,_)},$$slots:{body:!0}}),we()}var cu=j("<time></time>"),hu=j("<span></span>"),vu=j('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),gu=j("<div><!> <!></div> <div><!></div>",1);function mu(e,t){ye(t,!0);const r=()=>Qa(n(f),"$firstDay",i),[i,s]=ja();let o=re("state"),l=re("view-state"),u=a(()=>o.features),d=a(()=>o.options.date),f=a(()=>o.options.firstDay),c=a(()=>o.options.moreLinkContent),g=a(()=>o.options.theme),h=a(()=>o.options.weekNumbers),v=a(()=>o.options.weekNumberContent),y=a(()=>l.hiddenChunks),p=a(()=>l.intlDayCell),m=a(()=>t.day.dayStart),_=a(()=>t.day.disabled),k=a(()=>t.day.highlight),S=a(()=>n(m).getUTCMonth()!==n(d).getUTCMonth()),C=a(()=>R=>[...R,n(S)&&n(g).otherMonth]),D=a(()=>n(h)&&n(m).getUTCDay()===(n(f)?1:0)),w=a(()=>{let R;if(n(D)){let te=dl(n(m),r());n(v)?R=ke(n(v))?n(v)({date:Ue(n(m)),week:te}):n(v):R="W"+String(te).padStart(2,"0")}return R}),E=a(()=>n(y).get(n(m).getTime())),A=a(()=>{let R="";if(n(E)){let te="+"+n(E).length+" more";n(c)?R=ke(n(c))?n(c)({num:n(E).length,text:te}):n(c):R=te}return R});function Y(){l.popupDay=t.day}mr(e,{get date(){return n(m)},allDay:!0,get classes(){return n(C)},get disabled(){return n(_)},get highlight(){return n(k)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(R,te)=>{var ge=gu(),be=J(ge),se=fe(be);{var z=q=>{var oe=cu();Ae(oe,()=>Ze(n(p).format(n(m)))),ae(T=>Ie(oe,"datetime",T),[()=>ht(n(m),10)]),x(q,oe)};de(se,q=>{n(u).includes("dayNumber")&&q(z)})}var W=ie(se,2);{var P=q=>{var oe=hu();Ae(oe,()=>Ze(n(w))),ae(()=>N(oe,1,n(g).weekNumber)),x(q,oe)};de(W,q=>{n(D)&&q(P)})}var U=ie(be,2),F=fe(U);{var Q=q=>{var oe=vu(),T=a(()=>$r(Y));oe.__click=function(...V){n(T)?.apply(this,V)};var M=a(()=>Kr(Y));oe.__keydown=function(...V){n(M)?.apply(this,V)};var I=a($r);oe.__pointerdown=function(...V){n(I)?.apply(this,V)},Ae(oe,()=>Ze(n(A))),x(q,oe)};de(F,q=>{n(E)&&q(Q)})}ae(()=>{N(be,1,n(g).dayHead),N(U,1,n(g).dayFoot)}),x(R,ge)},$$slots:{default:!0}}),we(),s()}$t(["click","keydown","pointerdown"]);function yr(e,t){ye(t,!0);let r=De(t,"inPopup",3,!1),i=a(()=>re("state")),s=a(()=>n(i).options.dayMaxEvents),o=a(()=>re("view-state")),l=a(()=>n(o).colsCount),u=a(()=>n(o).gridEl),d=a(()=>n(o).hiddenChunks),f=a(()=>n(o).popupDay),c=Z(void 0),g=Z(1),h=Z(!1),v=a(()=>t.chunk.event),y=a(()=>t.chunk.event.display),p=a(()=>n(u).children.item((t.chunk.gridRow-1)*n(l)+t.chunk.gridColumn-1));Ke(()=>{r()||b(g,vn(n(p).firstElementChild)||1,!0)});let m=a(()=>D=>{if(D["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,D["grid-row"]=t.chunk.gridRow,!vt(n(y))){let w=r()?1:n(g);if(n(v)._margin){let[E,A]=n(v)._margin;E>w&&t.chunk.gridRow===A&&(w=E)}D["margin-block-start"]=`${w}px`}return n(h)&&(D.visibility="hidden"),D});function _(){b(g,Zs(t.chunk,vn(n(c)),vn(n(p).firstElementChild)||1),!0)}function k(){if(n(s)===!0){let D=vn(n(p))-S(n(p));if(b(h,t.chunk.bottom>D),n(h))for(let w of t.chunk.dates){let E=w.getTime();if(n(d).has(E)){let A=n(d).get(E);A.includes(t.chunk)||n(d).set(E,[...A,t.chunk])}else n(d).set(E,[t.chunk])}}else b(h,!1),n(d).size&&n(d).clear()}function S(D){let w=0;for(let E=0;E<t.chunk.dates.length&&(w=ct(w,vn(D.lastElementChild)),D=D.nextElementSibling,!!D);++E);return w}var C={reposition:_,hide:k};{let D=a(()=>r()&&n(f).dayStart),w=a(()=>[n(g),t.chunk.gridRow]);_r(e,{get chunk(){return t.chunk},get styles(){return n(m)},axis:"x",get forceDate(){return n(D)},get forceMargin(){return n(w)},get el(){return n(c)},set el(E){b(c,E,!0)}})}return we(C)}var pu=j('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function _u(e,t){ye(t,!0);let r=re("view-state"),i=a(()=>re("state")),s=a(()=>n(i).interaction),o=a(()=>n(i).options.buttonText),l=a(()=>n(i).options.theme),u=a(()=>r.colsCount),d=a(()=>r.chunks),f=a(()=>r.gridEl),c=a(()=>r.intlDayPopover),g=a(()=>r.popupDay),h=Z(void 0),v=Z(""),y=a(()=>n(g).gridColumn),p=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),_=a(()=>n(g).dayEnd),k=a(()=>{let se=[];for(let z of n(d))z.gridRow===n(p)&&z.gridColumn<=n(y)&&z.gridColumn+z.dates.length>n(y)&&se.push(ve({},z,Yn(z.event,n(m),n(_))));return se.sort((z,W)=>z.top-W.top),se});Bn(()=>{n(h).show()}),Ke(()=>{n(k).length?ee(S):C()});function S(){let se=n(f).children.item((n(p)-1)*n(u)+n(y)-1),z=tn(n(h)),W=tn(se),P=tn(n(f));b(v,"");let U;if(z.width>=P.width){U=P.left-W.left;let Q=W.right-P.right;b(v,n(v)+`inset-inline-end:${Q}px;`)}else U=(W.width-z.width)/2,W.left+U<P.left?U=P.left-W.left:W.left+U+z.width>P.right&&(U=P.right-W.left-z.width);b(v,n(v)+`inset-inline-start:${U}px;`);let F;z.height>=P.height?(F=P.top-W.top,b(v,n(v)+`block-size:${P.height}px;`)):(F=(W.height-z.height)/2,W.top+F<P.top?F=P.top-W.top:W.top+F+z.height>P.bottom&&(F=P.bottom-W.top-z.height)),b(v,n(v)+`inset-block-start:${F}px;`)}function C(){r.popupDay=null}function D(){C(),n(s).action?.noClick()}var w=pu();let E;var A=fe(w),Y=fe(A);Ae(Y,()=>Ze(n(c).format(n(m))));var R=ie(Y,2);Ca(R);var te=a(()=>$r(C));R.__click=function(...se){n(te)?.apply(this,se)};var ge=a(()=>Kr(C));R.__keydown=function(...se){n(ge)?.apply(this,se)};var be=ie(A,2);ue(be,21,()=>n(k),Ce,(se,z)=>{yr(se,{get chunk(){return n(z)},inPopup:!0})}),it(w,se=>b(h,se),()=>n(h)),Ae(w,()=>nl("pointerdown")),ae(se=>{N(w,1,n(l).popup),E=Tt(w,n(v),E,{"grid-area":`${n(p)+1} / ${n(y)}`}),N(A,1,n(l).dayHead),Ie(Y,"datetime",se),Ie(R,"aria-label",n(o).close),N(be,1,n(l).events)},[()=>ht(n(m),10)]),ft("pointerdownoutside",w,D),ft("close",w,C),x(e,w),we()}$t(["click","keydown"]);var yu=j('<div role="columnheader"><span></span></div>'),wu=j('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function di(e,t){ye(t,!0);let r=re("state"),i=new ou(r);An("view-state",i);let s=a(()=>r.intlDayHeader),o=a(()=>r.intlDayHeaderAL),l=a(()=>r.options.dayMaxEvents),u=a(()=>r.options.theme),d=a(()=>i.grid),f=a(()=>i.chunks),c=a(()=>i.bgChunks),g=a(()=>i.iChunks),h=a(()=>i.hiddenChunks),v=a(()=>i.popupDay),y=[];function p(){ii(y,n(f)),n(h).clear(),fn().then(m)}function m(){n(h).size,y.forEach(C=>C?.hide())}Ke(p),Ke(m);var _=le(),k=J(_);{var S=C=>{var D=wu();let w;var E=fe(D),A=fe(E);ue(A,21,()=>n(d)[0],Ce,(P,U,F)=>{let Q=()=>n(U).dayStart;var q=yu();Ie(q,"aria-colindex",1+F);var oe=fe(q);Ae(oe,()=>Ze(n(s).format(Q()))),ae((T,M)=>{N(q,1,T),Ie(oe,"aria-label",M)},[()=>It([n(u).colHead,n(u).weekdays?.[Q().getUTCDay()]]),()=>n(o).format(Q())]),x(P,q)});var Y=ie(E,2),R=fe(Y);ue(R,21,()=>n(d),Ce,(P,U,F)=>{var Q=le(),q=J(Q);ue(q,17,()=>n(U),Ce,(oe,T,M)=>{{let I=a(()=>M+1===n(U).length),V=a(()=>F+1===n(d).length);mu(oe,{get day(){return n(T)},get noIeb(){return n(I)},get noBeb(){return n(V)}})}}),x(P,Q)}),it(R,P=>i.gridEl=P,()=>i?.gridEl);var te=ie(R,2),ge=fe(te);ue(ge,19,()=>n(f),P=>P.id,(P,U,F)=>{it(yr(P,{get chunk(){return n(U)}}),(Q,q)=>y[q]=Q,Q=>y?.[Q],()=>[n(F)])});var be=ie(ge,2);ue(be,17,()=>n(c),P=>P.id,(P,U)=>{yr(P,{get chunk(){return n(U)}})});var se=ie(be,2);ue(se,17,()=>n(g),Ce,(P,U)=>{yr(P,{get chunk(){return n(U)}})});var z=ie(Y,2);{var W=P=>{_u(P,{})};de(z,P=>{n(v)&&P(W)})}it(D,P=>r.mainEl=P,()=>r?.mainEl),Ae(D,()=>Zr(p)),ae(()=>{N(D,1,It([n(u).main,n(l)===!0&&n(u).uniform])),w=Tt(D,"",w,{"--ec-grid-cols":n(d)[0].length,"--ec-grid-rows":n(d).length}),N(E,1,n(u).header),N(A,1,n(u).grid),N(Y,1,n(u).body),N(R,1,n(u).grid),N(te,1,n(u).events)}),x(C,D)};de(k,C=>{n(d).length&&n(d)[0].length&&C(S)})}x(e,_),we()}const bu={createOptions(e){ve(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),ve(e.buttonText,{dayGridDay:"day",dayGridMonth:"month",dayGridWeek:"week",close:"Close"}),ve(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),ve(e.views,{dayGridDay:{buttonText:qn,component:()=>di,dayHeaderFormat:{weekday:"long"},displayEventEnd:!1,duration:{days:1},theme:st("ec-day-grid ec-day-view")},dayGridWeek:{buttonText:Xn,component:()=>di,displayEventEnd:!1,theme:st("ec-day-grid ec-week-view")},dayGridMonth:{buttonText:oi,component:ku,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:st("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function ku(e){return e.features=["dayNumber"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Fs(t,i),end:ul(r,i)}},di}function lo(e,t,r){return e.startEditable??t??e.editable??r}function Cu(e,t,r){return e.durationEditable??t??e.editable??r}let fi=!1;function Du(e){fi||(fi=!0,window.requestAnimationFrame(()=>{e(),fi=!1}))}function uo(e,t,r){return ct(t,Lt(r,e))}function Eu(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:l}=o;return[...s,vr(l)?[i[l]]:!vt(l)&&lo(o,r,t)?[i.draggable]:[]]}}}function Tu(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return Gn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class xu{constructor(t){this.#e(t)}#e(t){ln(Eu(t)),Ke(Tu(t))}}function Su(e,t){ye(t,!0);let r=re("state"),i=a(()=>r.events),s=a(()=>r.iEvents),o=a(()=>r.features),l=a(()=>r.view),u=a(()=>r.mainEl),d=a(()=>r.options.dateClick),f=a(()=>r.options.dragConstraint),c=a(()=>r.options.dragScroll),g=a(()=>r.options.editable),h=a(()=>r.options.eventStartEditable),v=a(()=>r.options.eventDragMinDistance),y=a(()=>r.options.eventDragStart),p=a(()=>r.options.eventDragStop),m=a(()=>r.options.eventDrop),_=a(()=>r.options.eventLongPressDelay),k=a(()=>r.options.eventResizeStart),S=a(()=>r.options.eventResizeStop),C=a(()=>r.options.eventResize),D=a(()=>r.options.longPressDelay),w=a(()=>r.options.resizeConstraint),E=a(()=>r.options.selectable),A=a(()=>r.options.select),Y=a(()=>r.options.selectBackgroundColor),R=a(()=>r.options.selectConstraint),te=a(()=>r.options.selectLongPressDelay),ge=a(()=>r.options.selectMinDistance),be=a(()=>r.options.unselect),se=a(()=>r.options.unselectAuto),z=a(()=>r.options.unselectCancel),W=a(()=>r.options.validRange);const P=1,U=2,F=3,Q=4,q=5,oe=6;let T,M,I,V,Ye,Oe,bt,Le,Ne,gt,Mt,B,K,Se,H,G,he,me,ne,Re,ze,ot,Me,Te,at,He,mt;function Rn(L){return lo(L,n(h),n(g))}function ki(L,O,pe,$,je){T||(T=Ti(O)?P:oe,mn()&&(I=L,Ei(O,je),pe&&(Oe=pe),$&&(at=$),me="dragging",In(O)))}function Ci(L,O,pe,$,je,Jn,Si,jd){T||(T=Ti(O)?pe?F:U:oe,mn()&&(I=L,Ei(O,jd),je&&(Oe=je),Jn&&(at=Jn),me=$==="x"?"resizingX":"resizingY",Cr()?(ne=X(I.end),he?(ei(ne,I.start),ne>=I.end&&Dn(ne)):(cr(ne,He),ne<I.start&&(ne=I.start),Oe=I.start)):(ne=X(I.start),he?(ei(ne,I.end),ne<=I.start&&!Si&&wt(ne)):(xe(ne,He),ne>I.end&&(ne=I.end),Oe=I.end,Si||(Oe=cr(X(Oe),He))),Si&&!he&&(mt=He)),In(O)))}function Di(L,O){T||(T=Ti(L)?n(E)&&!n(o).includes("list")?Q:q:oe,mn()&&(Ei(L,O),me="selecting",Re=he?Fe({day:1}):He,I={allDay:he,start:Oe,end:xe(X(Oe),Re),resourceIds:Le?[Le.id]:[]},In(L)))}function Ud(){T||(T=oe)}function Ei(L,O){window.getSelection().removeAllRanges(),gt=B=L.clientX,Mt=K=L.clientY,He=O?.duration;let pe=En(B,K);({allDay:he,date:Oe,resource:Le}=qt(pe)(B,K)),H=n(u)!==Ys(pe,3),Se=Ys(pe,1),Co(),L.pointerType!=="mouse"&&(Me=setTimeout(()=>{T&&(M=!0,In(L))},(nn()?n(te):n(_))??n(D)))}function In(L){if(M||L&&L.pointerType==="mouse"&&Yd()>=(nn()?n(ge):n(v))){M=!0,Dr(L),r.iClass=me,V||(nn()?Gd():Bd(L,Ln()?n(k):n(y)));let O=Zn(Vd());if(O){let pe;if({allDay:pe,date:bt,resource:Ne}=O,pe===he){let $=kr({},V),je=n(w);G=Fe((bt-Oe)/1e3),Cr()?($.start=xe(X(I.start),G),$.start>ne&&($.start=ne,G=Fe((ne-I.start)/1e3))):($.end=xe(X(I.end),G),mt&&xe($.end,mt),Ln()?$.end<ne&&($.end=ne,G=Fe((ne-I.end)/1e3)):nn()?($.end<I.end?($.start=cr($.end,Re),$.end=I.end):$.start=I.start,je=n(R)):($.start=xe(X(I.start),G),Le&&($.resourceIds=I.resourceIds.filter(Jn=>Jn!==Le.id),$.resourceIds.push(Ne.id)),je=n(f)));do{if(je!==void 0&&($=kr(ri(I),$),je(nn()?xo($,L):So($,I,L))===!1)){To(I);break}To($)}while(!1)}}}if(n(c)){let O=24,pe=24;Du(()=>{Te&&(H||(K<Te.top+O&&(n(u).scrollTop+=ct(-8,(K-Te.top-O)/3)),K>Te.bottom-O&&(n(u).scrollTop+=Lt(8,(K-Te.bottom+O)/3))),B<Te.left+pe&&(n(u).scrollLeft+=ct(-8,(B-Te.left-pe)/3)),B>Te.right-pe&&(n(u).scrollLeft+=Lt(8,(B-Te.right+pe)/3)),K<O&&window.scrollBy(0,ct(-8,(K-O)/3)),K>window.innerHeight-O&&window.scrollBy(0,Lt(8,(K-window.innerHeight+O)/3)))})}}function bo(){mn()&&(Co(),In())}function zd(L){mn()&&L.isPrimary&&(B=L.clientX,K=L.clientY,In(L))}function ko(L){if(ze&&n(se)&&!(n(z)&&L.target.closest(n(z)))&&Dr(L),T&&L.isPrimary){if(M)if(nn()){if(ze=!0,ke(n(A))){let O=xo(V,L);n(A)(O)}}else{I.display=Ye;let O=Ln()?n(S):n(p);ke(O)&&O({event:Ge(I),jsEvent:L,view:Qe(n(l))});let pe=ri(I);if(Eo(I,V),Do(),O=Ln()?n(C):n(m),ke(O)){let $=I,je=So(I,pe,L);O(ve(je,{revert(){Eo($,pe)}}))}}else if((qd()||nn())&&ke(n(d))&&!ot){B=L.clientX,K=L.clientY;let O=En(B,K);if(O){let{allDay:pe,date:$,resource:je}=qt(O)(B,K);n(d)({allDay:pe,date:Ue($),dateStr:ht($),dayEl:O,jsEvent:L,view:Qe(n(l)),resource:je})}}M=!1,T=gt=Mt=B=K=I=Ye=Oe=bt=Le=Ne=G=mt=he=ne=Re=at=Se=Te=He=void 0,r.iClass=void 0,Me&&(clearTimeout(Me),Me=void 0)}ot=!1}function Vd(){return En(uo(B,Te.left,Te.right),uo(K,Te.top,Te.bottom))}function Zn(L){if(L){let O=qt(L)(B,K);if(O.disabled){if(!n(W).end||O.date<n(W).end)return Zn(L.nextElementSibling);if(!n(W).start||O.date>n(W).start)return Zn(L.previousElementSibling)}else return(nn()||Ln())&&O.resource&&!V.resourceIds.includes(O.resource.id)&&!n(o).includes("timeline")?B>gt?Zn(L.previousElementSibling):Zn(L.nextElementSibling):O}return null}function Co(){let L=tn(n(u)),O=tn(Se),pe=L.width/n(u).offsetWidth,$=L.height/n(u).offsetHeight,je=hn();Te={left:ct(0,je?L.right-n(u).clientWidth*pe:O.left+n(u).scrollLeft*pe),right:Lt(document.documentElement.clientWidth,je?O.right+n(u).scrollLeft*pe:L.left+n(u).clientWidth*pe)-2,top:ct(0,O.top+(H?0:n(u).scrollTop)*$),bottom:Lt(document.documentElement.clientHeight,H?O.bottom:L.top+n(u).clientHeight*$)-2}}function Bd(L,O){ke(O)&&O({event:Ge(I),jsEvent:L,view:Qe(n(l))}),Ye=I.display,I.display="preview",V=ri(I),at!==void 0&&(V._margin=at),mt&&xe(V.end,mt),I.display="ghost",r.events=[...n(i)]}function Gd(){V={id:"{select}",allDay:I.allDay,start:I.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(Y),resourceIds:I.resourceIds,classNames:[],styles:[]}}function Do(){V=void 0,n(s).delete("action")}function kr(L,O){return L.start=O.start,L.end=O.end,L.resourceIds=O.resourceIds,{...L}}function Eo(L,O){kr(L,O),r.events=[...n(i)]}function To(L){V=kr(V,L),n(s).set("action",V)}function xo(L,O){let{start:pe,end:$}=Ge(L);return{start:pe,end:$,startStr:ht(L.start),endStr:ht(L.end),allDay:he,view:Qe(n(l)),resource:Le,jsEvent:O}}function So(L,O,pe){let $;return Ln()?$=Cr()?{startDelta:G,endDelta:Fe(0)}:{startDelta:Fe(0),endDelta:G}:$={delta:G,oldResource:Le!==Ne?Le:void 0,newResource:Le!==Ne?Ne:void 0},ve($,{event:Ge(L),oldEvent:Ge(O),view:Qe(n(l)),jsEvent:pe}),$}function Yd(){return Math.sqrt(Math.pow(B-gt,2)+Math.pow(K-Mt,2))}function Ln(){return T===U||Cr()}function Cr(){return T===F}function qd(){return T===q}function nn(){return T===Q}function mn(){return T&&T<q}function Ti(L){return L.isPrimary&&(L.pointerType!=="mouse"||L.buttons&1)}function Dr(L){ze&&(ze=!1,Do(),ke(n(be))&&n(be)({jsEvent:L,view:Qe(n(l))}))}ln(()=>{n(l),Dr()});function Xd(){ot=!0}function Kd(L){if(mn()){let O=L.target,pe=[],$=()=>al(pe);pe.push(Gn(O,"touchmove",xi(()=>M))),pe.push(Gn(O,"touchend",$)),pe.push(Gn(O,"touchcancel",$))}}function xi(L){return O=>{L()&&O.preventDefault()}}Bn(()=>Gn(window,"touchmove",ll,{passive:!1}));var Zd={draggable:Rn,drag:ki,resize:Ci,select:Di,noAction:Ud,handleScroll:bo,unselect:Dr,noClick:Xd};ft("pointermove",Ct,zd),ft("pointerup",Ct,ko),ft("pointercancel",Ct,ko),ft("scroll",Ct,bo);var Jd=a(()=>xi(mn));ft("selectstart",Ct,function(...L){n(Jd)?.apply(this,L)});var Qd=a(()=>xi(()=>Me));return ft("contextmenu",Ct,function(...L){n(Qd)?.apply(this,L)}),ft("touchstart",Ct,Kd,void 0,!0),we(Zd)}function Ru(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).iEvents),s=a(()=>n(r).options.slotDuration),o=0,l=0,u;function d(){let p=En(o,l);if(p&&!n(i).has("action")){let{allDay:m,date:_,resource:k,disabled:S}=qt(p)(o,l);if(!S){u||g(),u.allDay=m,u.start=_,u.end=xe(X(_),n(s)),u.resourceIds=k?[k.id]:[],n(i).set("pointer",{...u});return}}h()}function f(){d()}function c(p){v(p)&&(o=p.clientX,l=p.clientY,d())}function g(){u={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]}}function h(){u=void 0,n(i).delete("pointer")}function v(p){return p.isPrimary&&p.pointerType==="mouse"}var y={handleScroll:f};return ft("pointermove",Ct,c),ft("scroll",Ct,f),we(y)}var Iu=j("<div></div>"),Lu=j("<div></div>"),Pu=j("<!> <!> <!>",1);function Mu(e,t){ye(t,!0);let r=De(t,"forceDate",3,void 0),i=De(t,"forceMargin",3,void 0),s=a(()=>re("state")),o=a(()=>n(s).interaction.action),l=a(()=>n(s).options.editable),u=a(()=>n(s).options.eventDurationEditable),d=a(()=>n(s).options.eventResizableFromStart),f=a(()=>n(s).options.theme),c=a(()=>re("view-state")),g=a(()=>n(c).snap),h=a(()=>t.chunk.event),v=a(()=>t.chunk.event.display),y=a(()=>!vt(n(v))&&!vr(n(v))&&Cu(n(h),n(u),n(l)));function p(w){return E=>n(o).resize(n(h),E,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=Pu(),_=J(m);{var k=w=>{var E=Iu(),A=a(()=>p(!0));E.__pointerdown=function(...Y){n(A)?.apply(this,Y)},ae(()=>N(E,1,`${n(f).resizer??""} ${n(f).start??""}`)),x(w,E)};de(_,w=>{n(y)&&n(d)&&w(k)})}var S=ie(_,2);Gt(S,()=>t.children);var C=ie(S,2);{var D=w=>{var E=Lu(),A=a(()=>p(!1));E.__pointerdown=function(...Y){n(A)?.apply(this,Y)},ae(()=>N(E,1,n(f).resizer)),x(w,E)};de(C,w=>{n(y)&&w(D)})}x(e,m),we()}$t(["pointerdown"]);var Au=j("<!> <!>",1);function Ou(e,t){ye(t,!0);let r=re("state");new xu(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=Mu;var o=Au(),l=J(o);it(Su(l,{}),f=>n(i).action=f,()=>n(i)?.action);var u=ie(l,2);{var d=f=>{it(Ru(f,{}),c=>n(i).pointer=c,()=>n(i)?.pointer)};de(u,f=>{n(s)&&f(d)})}x(e,o),we()}const Nu={createOptions(e){ve(e,{dateClick:void 0,dragConstraint:void 0,dragScroll:!0,editable:!1,eventDragMinDistance:5,eventDragStart:void 0,eventDragStop:void 0,eventDrop:void 0,eventDurationEditable:!0,eventLongPressDelay:void 0,eventResizableFromStart:!1,eventResizeStart:void 0,eventResizeStop:void 0,eventResize:void 0,eventStartEditable:!0,longPressDelay:1e3,pointer:!1,resizeConstraint:void 0,select:void 0,selectBackgroundColor:void 0,selectConstraint:void 0,selectLongPressDelay:void 0,selectMinDistance:5,snapDuration:void 0,unselect:void 0,unselectAuto:!0,unselectCancel:""}),ve(e.theme,{draggable:"ec-draggable",ghost:"ec-ghost",preview:"ec-preview",pointer:"ec-pointer",resizer:"ec-resizer",start:"ec-start",dragging:"ec-dragging",resizingY:"ec-resizing-y",resizingX:"ec-resizing-x",selecting:"ec-selecting"})},initState(e){e.auxComponents.push(Ou)}};let Fu=class{#e;get intlListDay(){return n(this.#e)}set intlListDay(t){b(this.#e,t)}#n;get intlListDaySide(){return n(this.#n)}set intlListDaySide(t){b(this.#n,t)}constructor(t){this.#e=a(gn(t,"listDayFormat")),this.#n=a(gn(t,"listDaySideFormat"))}};var Hu=j("<div></div> <!>",1);function Wu(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).interaction),s=a(()=>n(r).options.theme),o=a(()=>l=>(delete l["background-color"],delete l.color,l));{const l=(d,f=Xt,c=Xt,g=Xt)=>{var h=Hu(),v=J(h);let y;var p=ie(v,2);Gt(p,f),ae(()=>{N(v,1,n(s).eventTag),y=Tt(v,"",y,{"background-color":c()})}),x(d,h)};let u=a(()=>n(i).action?.noAction);ao(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}we()}var Uu=j("<h4><time></time> <time></time></h4> <!>",1);function zu(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).filteredEvents),s=a(()=>n(r).options.highlightedDates),o=a(()=>n(r).options.theme),l=a(()=>n(r).options.validRange),u=a(()=>re("view-state")),d=a(()=>n(u).intlListDay),f=a(()=>n(u).intlListDaySide),c=a(()=>n(s).some(_=>Je(_,t.date))),g=a(()=>Sn(t.date,n(l))),h=a(()=>ht(t.date,10)),v=a(()=>{let _=[];if(!n(g)){let k=t.date,S=wt(X(t.date));for(let C of n(i))if(!vt(C.display)&&Tn(C,k,S)){let D=Yn(C,k,S);_.push(D)}}return _});var y=le(),p=J(y);{var m=_=>{mr(_,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(c)},children:(k,S)=>{var C=Uu(),D=J(C),w=fe(D);Ae(w,()=>Ze(n(d).format(t.date)));var E=ie(w,2);Ae(E,()=>Ze(n(f).format(t.date)));var A=ie(D,2);ue(A,17,()=>n(v),Y=>Y.event,(Y,R)=>{Wu(Y,{get chunk(){return n(R)}})}),ae(()=>{N(D,1,n(o).dayHead),Ie(w,"datetime",n(h)),N(E,1,n(o).daySide),Ie(E,"datetime",n(h))}),x(k,C)},$$slots:{default:!0}})};de(p,_=>{n(v).length&&_(m)})}x(e,y),we()}var Vu=j("<div></div>"),Bu=j("<section><!></section>");function Gu(e,t){ye(t,!0);let r=re("state"),i=new Fu(r);An("view-state",i);let s=a(()=>r.filteredEvents),o=a(()=>r.view),l=a(()=>r.viewDates),u=a(()=>r.options.noEventsClick),d=a(()=>r.options.noEventsContent),f=a(()=>r.options.theme),c=a(()=>{let _=!0;if(n(l).length){let k=n(l)[0],S=wt(X(n(l).at(-1)));for(let C of n(s))if(!vt(C.display)&&C.start<S&&C.end>k){_=!1;break}}return _}),g=a(()=>ke(n(d))?n(d)():n(d));function h(_){ke(n(u))&&n(u)({jsEvent:_,view:Qe(n(o))})}var v=Bu(),y=fe(v);{var p=_=>{var k=Vu();k.__click=h,Ae(k,()=>Ze(n(g))),ae(()=>N(k,1,n(f).noEvents)),x(_,k)},m=_=>{var k=le(),S=J(k);ue(S,17,()=>n(l),Ce,(C,D)=>{zu(C,{get date(){return n(D)}})}),x(_,k)};de(y,_=>{n(c)?_(p):_(m,!1)})}it(v,_=>r.mainEl=_,()=>r?.mainEl),ae(()=>N(v,1,n(f).main)),x(e,v),we()}$t(["click"]);const Yu={createOptions(e){ve(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),ve(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),ve(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),ve(e.views,{listDay:{buttonText:qn,component:wr,duration:{days:1},theme:st("ec-list ec-day-view")},listWeek:{buttonText:Xn,component:wr,duration:{weeks:1},theme:st("ec-list ec-week-view")},listMonth:{buttonText:oi,component:wr,duration:{months:1},theme:st("ec-list ec-month-view")},listYear:{buttonText:Cl,component:wr,duration:{years:1},theme:st("ec-list ec-year-view")}})}};function wr(e){return e.features=["list"],Gu}function ci(e,t,r=!0){let i=[];for(let{gridColumn:s,gridRow:o,resource:l,start:u,end:d,disabled:f}of t)if(!f&&Tn(e,u,d,l)){let c=Yn(e,u,d);ve(c,{gridColumn:s,gridRow:o,top:(c.start-u)/1e3,height:(c.end-c.start)/1e3,maxHeight:(d-c.start)/1e3}),r&&si(c),i.push(c)}return i}function qu(e){let t={};for(let r of e){let{gridColumn:i}=r,s=t[i],o=0;if(s&&r.start<s.end){for(;o<s.columns.length&&!(s.columns[o].at(-1).end<=r.start);++o);r.end>s.end&&(s.end=r.end)}else s={columns:[],end:r.end};s.columns.length<o+1&&s.columns.push([]),s.columns[o].push(r),t[i]=s,r.group=s,r.groupColumn=o}}function Xu(e){let t="all-day",r;return e?(r=ke(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function hi(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>fr){xe(Dn(r),i);let s=Dn(X(r));s<t&&(t=s)}return{start:t,end:r}}}function vi(e){"scrollTime"in e||(ve(e,{columnWidth:void 0,flexibleSlotTimeLimits:!1,nowIndicator:!1,scrollTime:"06:00:00",slotDuration:"00:30:00",slotHeight:24,slotLabelInterval:void 0,slotLabelFormat:{hour:"numeric",minute:"2-digit"},slotMaxTime:"24:00:00",slotMinTime:"00:00:00",snapDuration:void 0}),ve(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function fo(e){"allDaySlot"in e||(ve(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),ve(e.theme,{allDay:"ec-all-day"}))}function gi(e){"scrollTime"in e||ve(e,{scrollTime:Fe,slotDuration:Fe,slotLabelInterval:t=>t!==void 0?Fe(t):void 0,slotMaxTime:Fe,slotMinTime:Fe,snapDuration:t=>t!==void 0?Fe(t):void 0})}function co(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function Ku(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,l=[];return ee(()=>{let u=1;for(let d of r)l.push({gridColumn:u,gridRow:1,resource:void 0,start:xe(X(d),o.min),end:xe(X(d),o.max),dayStart:d,dayEnd:wt(X(d)),disabled:Sn(d,s),highlight:i.some(f=>Je(f,d))}),++u}),[l]}}function Zu(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],l=[],u=[];return ee(()=>{for(let d of r)for(let f of i)vt(d.display)?(o=o.concat(ci(d,f)),d.allDay&&(u=u.concat(xn(d,f)))):d.allDay?l=l.concat(xn(d,f)):s=s.concat(ci(d,f));qu(s),Ks(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function Ju(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,l]of r)l&&ee(()=>{for(let u of i)l.allDay?o=o.concat(xn(l,u,!1)):s=s.concat(ci(l,u,!1))});return{iChunks:s,allDayIChunks:o}}}function Qu(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return ee(()=>{l=no(s,o,i,r,t)}),l}}function ju(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return ee(()=>{i=r===void 0?_e(t)<3600?2:1:rl(_e(r)/_e(t))||1}),i}}function $u(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return ee(()=>{l=to(Yt(Pt()),r,s,o,i)}),l}}function ed(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:_e(r)/_e(t)}}}function mi(){return class{#e;get intlSlotLabel(){return n(this.#e)}set intlSlotLabel(e){b(this.#e,e)}#n;get slotLabelPeriodicity(){return n(this.#n)}set slotLabelPeriodicity(e){b(this.#n,e)}#t;get sidebarWidth(){return n(this.#t)}set sidebarWidth(e){b(this.#t,e,!0)}#r;get snap(){return n(this.#r)}set snap(e){b(this.#r,e)}constructor(e){this.#e=a(gn(e,"slotLabelFormat")),this.#n=a(ju(e)),this.#t=Z(0),this.#r=a(ed(e))}}}function ho(e){return class extends e{#e;get slotTimeLimits(){return n(this.#e)}set slotTimeLimits(t){b(this.#e,t)}#n;get slots(){return n(this.#n)}set slots(t){b(this.#n,t)}#t;get chunks(){return n(this.#t)}set chunks(t){b(this.#t,t)}#r;get bgChunks(){return n(this.#r)}set bgChunks(t){b(this.#r,t)}#s;get allDayChunks(){return n(this.#s)}set allDayChunks(t){b(this.#s,t)}#i;get allDayBgChunks(){return n(this.#i)}set allDayBgChunks(t){b(this.#i,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get allDayIChunks(){return n(this.#a)}set allDayIChunks(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(Qu(t)),this.#n=a($u(t,this));let r=a(Zu(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks),o=a(()=>n(r).allDayChunks),l=a(()=>n(r).allDayBgChunks);this.#t=a(()=>n(i)),this.#r=a(()=>n(s)),this.#s=a(()=>n(o)),this.#i=a(()=>n(l));let u=a(Ju(t,this)),d=a(()=>n(u).iChunks),f=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(d)),this.#a=a(()=>n(f))}}}let td=class extends ho(mi()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Ku(t,this))}};function nd(e){return()=>{let{activeRange:t,filteredEvents:r,options:{filterResourcesWithEvents:i,resources:s},extensions:{viewResources:o}}=e,l=o?o(s):s;return ee(()=>{i&&(l=s.filter(u=>r.some(d=>!vt(d.display)&&Tn(d,t.start,t.end,u)))),l.length||(l=js([{}]))}),l}}function rd(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:l,viewResources:u}=t,d=[];return ee(()=>{let f=1,c=i?[r,u]:[u,r];for(let g of c[0]){let h=[];for(let v of c[1]){let y=i?g:v,p=i?v:g;h.push({gridColumn:f,gridRow:1,resource:p,start:xe(X(y),l.min),end:xe(X(y),l.max),dayStart:y,dayEnd:wt(X(y)),disabled:Sn(y,o),highlight:s.some(m=>Je(m,y))}),++f}d.push(h)}}),d}}function vo(e){return class extends e{#e;get viewResources(){return n(this.#e)}set viewResources(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(nd(t))}}}let id=class extends vo(ho(mi())){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(rd(t,this))}};var sd=j("<span></span>");function pi(e,t){ye(t,!0);let r=De(t,"date",3,void 0),i=De(t,"setLabel",3,void 0),s=a(()=>re("state")),o=a(()=>n(s).intlDayHeaderAL),l=a(()=>n(s).options.resourceLabelContent),u=a(()=>n(s).options.resourceLabelDidMount),d=Z(void 0),f=a(()=>n(l)?ke(n(l))?n(l)({resource:t.resource,date:r()?Ue(r()):void 0}):n(l):t.resource.title),c=Z(void 0);Ke(()=>{n(f),ee(()=>{r()?b(c,n(o).format(r())+", "+n(d).innerText):i()&&(b(c,void 0),i()(n(d).innerText))})}),Bn(()=>{ke(n(u))&&n(u)({resource:t.resource,date:r()?Ue(r()):void 0,el:n(d)})});var g=sd();it(g,h=>b(d,h),()=>n(d)),Ae(g,()=>Ze(n(f))),ae(()=>Ie(g,"aria-label",n(c))),x(e,g),we()}function go(e,t){ye(t,!0);let r=De(t,"allDay",3,!1),i=a(()=>re("state")),s=a(()=>n(i).options.slotHeight),o=a(()=>re("view-state")),l=a(()=>n(o).snap),u=a(()=>t.day.dayStart),d=a(()=>t.day.start),f=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=Z(void 0);function v(y,p){if(r())return n(u);{let m=tn(n(h)),_=m.height/n(h).offsetHeight;return xe(X(n(d)),n(l).duration,Jr((p-m.top)/(n(s)*n(l).ratio*_)))}}mr(e,{get date(){return n(u)},get allDay(){return r()},get resource(){return n(f)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(y){b(h,y,!0)}}),we()}function _i(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotEventOverlap),s=a(()=>n(r).options.slotDuration),o=a(()=>n(r).options.slotHeight),l=a(()=>u=>{let d=_e(n(s)),f=t.chunk.top/d*n(o),c=t.chunk.height/d*n(o)||n(o),g=t.chunk.maxHeight/d*n(o);u["grid-column"]=t.chunk.gridColumn,u["inset-block-start"]=`${f}px`,u["min-block-size"]=`${c}px`,u["block-size"]=`${c}px`,u["max-block-size"]=`${g}px`;let h="100% - var(--ec-event-col-gap)";if(t.chunk.group){let v=t.chunk.group.columns.length;u["z-index"]=`${t.chunk.groupColumn+1}`,u["inset-inline-start"]=`calc((${h}) / ${v} * ${t.chunk.groupColumn})`,u["inline-size"]=`calc((${h}) / ${v} * ${n(i)?.5*(1+v-t.chunk.groupColumn):1})`}return u});_r(e,{get chunk(){return t.chunk},get styles(){return n(l)},axis:"y"}),we()}function yi(e,t){ye(t,!0);let r=Z(void 0),i=Z(0),s=a(()=>t.chunk.event),o=a(()=>d=>(d["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(n(i)||n(s)._margin)&&(d["margin-block-start"]=`${n(s)._margin??n(i)}px`),d));function l(){b(i,Zs(t.chunk,vn(n(r))),!0)}var u={reposition:l};return _r(e,{get chunk(){return t.chunk},get styles(){return n(o)},axis:"x",get forceMargin(){return n(i)},get el(){return n(r)},set el(d){b(r,d,!0)}}),we(u)}var od=j("<div></div>");function br(e,t){ye(t,!0);let r=De(t,"span",3,1),i=a(()=>re("state")),s=a(()=>n(i).mainEl),o=a(()=>n(i).now),l=a(()=>n(i).today),u=a(()=>n(i).options.slotDuration),d=a(()=>n(i).options.slotHeight),f=a(()=>n(i).options.theme),c=a(()=>re("view-state")),g=a(()=>n(c).sidebarWidth),h=a(()=>{for(let w of t.days)if(Je(w.dayStart,n(l)))return w;return{}}),v=a(()=>n(h).gridColumn),y=a(()=>n(h).start),p=a(()=>n(h).end),m=a(()=>{if(n(o)<n(y)||n(o)>n(p))return null;let w=_e(n(u));return(n(o)-n(y))/1e3/w*n(d)}),_=a(()=>({root:n(s),rootMargin:hn()?`0px -${n(g)+5.5}px 0px 0px`:`0px 0px 0px -${n(g)+5.5}px`,threshold:0}));function k(w,E){w.classList.toggle(n(f).hidden,!E.isIntersecting)}var S=le(),C=J(S);{var D=w=>{var E=od();let A;Ae(E,()=>Os(k,n(_))),ae(()=>{N(E,1,n(f).nowIndicator),A=Tt(E,"",A,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),x(w,E)};de(C,w=>{n(v)&&n(m)!==null&&w(D)})}x(e,S),we()}var ad=j('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),ld=j("<div><time></time></div>"),ud=j('<section><header><aside></aside> <div role="row"><!></div> <!></header> <div role="rowgroup"><aside aria-hidden="true"></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function mo(e,t){ye(t,!0);let r=De(t,"viewState",7),i=re("state");r()||r(new td(i)),An("view-state",r());let s=a(()=>i.mainEl),o=a(()=>i.viewDates),l=a(()=>i.options.allDayContent),u=a(()=>i.options.allDaySlot),d=a(()=>i.options.columnWidth),f=a(()=>i.options.nowIndicator),c=a(()=>i.options.scrollTime),g=a(()=>i.options.slotHeight),h=a(()=>i.options.slotDuration),v=a(()=>i.options.theme),y=a(()=>r().allDayChunks),p=a(()=>r().allDayBgChunks),m=a(()=>r().allDayIChunks),_=a(()=>r().bgChunks),k=a(()=>r().chunks),S=a(()=>r().iChunks),C=a(()=>r().grid),D=a(()=>r().sidebarWidth),w=a(()=>r().slots),E=a(()=>r().slotLabelPeriodicity),A=a(()=>r().slotTimeLimits),Y=Z(0),R=a(()=>Xu(n(l)));Ke(()=>{n(c),n(o).length&&fn().then(te)});function te(){n(s).scrollTop=((_e(n(c))-_e(n(A).min))/_e(n(h))-.5)*n(g)}let ge=[];function be(){ii(ge,n(y))}Ke(be);var se=le(),z=J(se);{var W=P=>{var U=ud();let F;var Q=fe(U),q=fe(Q),oe=ie(q,2),T=fe(oe);{var M=H=>{var G=le(),he=J(G);Gt(he,()=>t.header),x(H,G)},I=H=>{var G=le(),he=J(G);ue(he,17,()=>n(C)[0],Ce,(me,ne,Re)=>{let ze=()=>n(ne).dayStart,ot=()=>n(ne).disabled,Me=()=>n(ne).highlight;Kn(me,{get date(){return ze()},colIndex:1+Re,get disabled(){return ot()},get highlight(){return Me()},children:(Te,at)=>{pr(Te,{get date(){return ze()}})},$$slots:{default:!0}})}),x(H,G)};de(T,H=>{t.header?H(M):H(I,!1)})}var V=ie(oe,2);{var Ye=H=>{var G=ad(),he=fe(G);Ae(he,()=>Ze(n(R)));var me=ie(he,2);ue(me,21,()=>n(C),Ce,(Me,Te,at)=>{var He=le(),mt=J(He);ue(mt,17,()=>n(Te),Ce,(Rn,ki,Ci)=>{{let Di=a(()=>at+1===n(C).length&&Ci+1===n(Te).length);go(Rn,{get day(){return n(ki)},allDay:!0,get noIeb(){return n(Di)}})}}),x(Me,He)});var ne=ie(me,2),Re=fe(ne);ue(Re,19,()=>n(y),Me=>Me.id,(Me,Te,at)=>{it(yi(Me,{get chunk(){return n(Te)}}),(He,mt)=>ge[mt]=He,He=>ge?.[He],()=>[n(at)])});var ze=ie(Re,2);ue(ze,17,()=>n(p),Me=>Me.id,(Me,Te)=>{yi(Me,{get chunk(){return n(Te)}})});var ot=ie(ze,2);ue(ot,17,()=>n(m),Ce,(Me,Te)=>{yi(Me,{get chunk(){return n(Te)}})}),ae(()=>{N(G,1,n(v).allDay),N(he,1,n(v).sidebar),N(me,1,n(v).grid),N(ne,1,n(v).events)}),x(H,G)};de(V,H=>{n(u)&&H(Ye)})}var Oe=ie(Q,2),bt=fe(Oe);ue(bt,21,()=>n(w),Ce,(H,G,he)=>{var me=ld();let ne;var Re=fe(me);Ae(Re,()=>Ze(n(G)[1])),ae(()=>{N(me,1,It([n(v).slot,!he&&n(v).hidden])),ne=Tt(me,"",ne,{"--ec-slot-label-periodicity":n(G)[2]}),Ie(Re,"datetime",n(G)[0])}),x(H,me)});var Le=ie(bt,2);ue(Le,21,()=>n(C),Ce,(H,G,he)=>{var me=le(),ne=J(me);ue(ne,17,()=>n(G),Ce,(Re,ze,ot)=>{{let Me=a(()=>he+1===n(C).length&&ot+1===n(G).length);go(Re,{get day(){return n(ze)},get noIeb(){return n(Me)},noBeb:!0})}}),x(H,me)});var Ne=ie(Le,2),gt=fe(Ne);ue(gt,17,()=>n(k),H=>H.id,(H,G)=>{_i(H,{get chunk(){return n(G)}})});var Mt=ie(gt,2);ue(Mt,17,()=>n(_),H=>H.id,(H,G)=>{_i(H,{get chunk(){return n(G)}})});var B=ie(Mt,2);ue(B,17,()=>n(S),Ce,(H,G)=>{_i(H,{get chunk(){return n(G)}})});var K=ie(Oe,2);{var Se=H=>{var G=le(),he=J(G);{var me=Re=>{var ze=le(),ot=J(ze);Gt(ot,()=>t.nowIndicator),x(Re,ze)},ne=Re=>{br(Re,{get days(){return n(C)[0]}})};de(he,Re=>{t.nowIndicator?Re(me):Re(ne,!1)})}x(H,G)};de(K,H=>{n(f)&&H(Se)})}it(U,H=>i.mainEl=H,()=>i?.mainEl),Ae(U,()=>Zr(be)),ae(()=>{N(U,1,n(v).main),F=Tt(U,"",F,{"--ec-grid-cols":n(C).length*n(C)[0].length,"--ec-col-group-span":n(C)[0].length,"--ec-col-width":n(d)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(E),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(Y)??""}px`,"--ec-sidebar-width":`${n(D)??""}px`}),N(Q,1,n(v).header),N(q,1,n(v).sidebar),N(oe,1,n(v).grid),N(Oe,1,n(v).body),N(bt,1,n(v).sidebar),N(Le,1,n(v).grid),N(Ne,1,n(v).events)}),lr(q,"offsetWidth",H=>r().sidebarWidth=H),lr(Q,"offsetHeight",H=>b(Y,H)),x(P,U)};de(z,P=>{n(C).length&&n(C)[0].length&&P(W)})}x(e,se),we()}var dd=j("<!> <!>",1);function fd(e,t){ye(t,!0);let r=re("state"),i=new id(r),s=a(()=>r.today),o=a(()=>r.mainEl),l=a(()=>r.viewDates),u=a(()=>r.options.scrollTime),d=a(()=>r.options.datesAboveResources),f=a(()=>r.options.theme),c=a(()=>i.grid),g=a(()=>i.sidebarWidth),h=nt([]);Ke(()=>{n(d)&&(n(l),n(u),fn().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let y of n(c)){let p=y[0];if(Je(p.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(n(c).length*y.length)*(p.gridColumn-1)*(hn()?-1:1);break}}}mo(e,{get viewState(){return i},header:m=>{var _=dd(),k=J(_);ue(k,17,()=>n(c),Ce,(D,w,E)=>{const A=a(()=>{const{dayStart:Y,resource:R,disabled:te,highlight:ge}=n(w)[0];return{date:Y,resource:R,disabled:te,highlight:ge}});{let Y=a(()=>n(c)[0].length>1?n(f).colGroup:void 0),R=a(()=>1+E*n(w).length),te=a(()=>n(d)&&n(A).disabled),ge=a(()=>n(d)&&n(A).highlight);Kn(D,{get date(){return n(A).date},get className(){return n(Y)},get weekday(){return n(d)},get colSpan(){return n(w).length},get colIndex(){return n(R)},get disabled(){return n(te)},get highlight(){return n(ge)},children:(be,se)=>{var z=le(),W=J(z);{var P=F=>{pr(F,{get date(){return n(A).date}})},U=F=>{pi(F,{get resource(){return n(A).resource},setLabel:Q=>h[E]=Q+", "})};de(W,F=>{n(d)?F(P):F(U,!1)})}x(be,z)},$$slots:{default:!0}})}});var S=ie(k,2);{var C=D=>{var w=le(),E=J(w);ue(E,17,()=>n(c),Ce,(A,Y,R)=>{var te=le(),ge=J(te);ue(ge,17,()=>n(Y),Ce,(be,se,z)=>{const W=a(()=>{const{dayStart:P,resource:U,disabled:F,highlight:Q}=n(se);return{date:P,resource:U,disabled:F,highlight:Q}});{let P=a(()=>1+z+R*n(Y).length);Kn(be,{get date(){return n(W).date},get colIndex(){return n(P)},get disabled(){return n(W).disabled},get highlight(){return n(W).highlight},children:(U,F)=>{var Q=le(),q=J(Q);{var oe=M=>{pi(M,{get resource(){return n(W).resource},get date(){return n(W).date}})},T=M=>{pr(M,{get date(){return n(W).date},get alPrefix(){return h[R]}})};de(q,M=>{n(d)?M(oe):M(T,!1)})}x(U,Q)},$$slots:{default:!0}})}}),x(A,te)}),x(D,w)};de(S,D=>{n(c)[0].length>1&&D(C)})}x(m,_)},nowIndicator:m=>{var _=le(),k=J(_);{var S=D=>{{let w=a(()=>n(c).flat());br(D,{get days(){return n(w)},get span(){return n(c)[0].length}})}},C=D=>{var w=le(),E=J(w);{var A=R=>{var te=le(),ge=J(te);ue(ge,17,()=>n(c),Ce,(be,se)=>{br(be,{get days(){return n(se)}})}),x(R,te)},Y=R=>{{let te=a(()=>n(c).flat());br(R,{get days(){return n(te)},get span(){return n(c).length}})}};de(E,R=>{n(c)[0].length>1?R(A):R(Y,!1)})}x(D,w)};de(k,D=>{n(d)?D(S):D(C,!1)})}x(m,_)},$$slots:{header:!0,nowIndicator:!0}}),we()}const cd={createOptions(e){fo(e),vi(e),co(e),ve(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),ve(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),ve(e.theme,{colGroup:"ec-col-group"}),ve(e.views,{resourceTimeGridDay:{buttonText:qn,component:po,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:st("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:Xn,component:po,duration:{weeks:1},theme:st("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){gi(e)}};function po(e){return hi(e),fd}function wi(e,t,r,i=!0){let s=[],o,l,u,d,f,c=0;for(let{gridColumn:g,gridRow:h,resource:v,dayStart:y,dayEnd:p,start:m,end:_,disabled:k}of t)k||(r?Tn(e,y,p,v)&&(s.length||(o=y,u=g,d=h),s.push(y),l=_):Tn(e,m,_,v)&&(s.length||(o=m,u=g,d=h,f=ct(e.start-m,0)/1e3),s.push(y),l=_,c+=(Lt(_,e.end)-ct(m,e.start))/1e3));if(s.length){let g=Yn(e,o,l);return ve(g,{gridColumn:u,gridRow:d,dates:s,left:f,width:c}),i&&si(g),[g]}return[]}function hd(e){let t={};for(let r of e){let{gridColumn:i,gridRow:s}=r;for(let l=0;l<r.dates.length;++l){let u=`${s}_${i+l}`;t[u]?t[u].push(r):t[u]=[r]}let o=`${s}_${i}`;r.day=t[o]}}function vd(e,t,r){let i=1,s=i+t,o=e.day;o.sort((l,u)=>(l.top??Number.POSITIVE_INFINITY)-(u.top??Number.POSITIVE_INFINITY));for(let l of o)if(!(l===e||!("top"in l))&&(r||e.start<l.end&&e.end>l.start)&&i<l.bottom&&s>l.top){let u=l.bottom-i+1;i+=u,s+=u}return ve(e,{top:i,bottom:s}),i}function gd(e,t){return e[t.getTime()]??{min:Fe(0),max:Fe("24:00:00")}}function md(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:l}=t,u=[];return ee(()=>{let d=1;for(let f of l){let c=[],g=1;for(let h of r){let v=o[h.getTime()];c.push({gridColumn:g,gridRow:d,resource:f,start:xe(X(h),v.min),end:xe(X(h),v.max),dayStart:h,dayEnd:wt(X(h)),disabled:Sn(h,s),highlight:i.some(y=>Je(y,h))}),++g}u.push(c),++d}}),u}}function pd(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],l=[];return ee(()=>{for(let u of r)for(let d of i)vt(u.display)?(!s||u.allDay)&&(l=l.concat(wi(u,d,s))):o=o.concat(wi(u,d,s));hd(o)}),{chunks:o,bgChunks:l}}}function _d(e,t){return()=>{let{iEvents:r}=e,{grid:i,monthView:s}=t,o=[];for(let[,l]of r)l&&ee(()=>{for(let u of i)o=o.concat(wi(l,u,s,!1))});return o}}function yd(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l={};return ee(()=>{for(let u of r)l[u.getTime()]=no(s,o,i,[u],t)}),l}}function wd(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:l}=t,u={};return ee(()=>{for(let d of r){let f=d.getTime();u[f]=f in s?to(d,i,l,s[f],o):[]}}),u}}function bd(e){return()=>{let{options:{resources:t}}=e,r;return ee(()=>{r=t.some(i=>qt(i).children.length)}),r}}function kd(e){return()=>{let{options:{slotDuration:t}}=e,r;return ee(()=>{r=!_e(t)}),r}}class Cd extends vo(mi()){#e;get dayTimeLimits(){return n(this.#e)}set dayTimeLimits(t){b(this.#e,t)}#n;get daySlots(){return n(this.#n)}set daySlots(t){b(this.#n,t)}#t;get grid(){return n(this.#t)}set grid(t){b(this.#t,t)}#r;get monthView(){return n(this.#r)}set monthView(t){b(this.#r,t)}#s;get chunks(){return n(this.#s)}set chunks(t){b(this.#s,t)}#i;get bgChunks(){return n(this.#i)}set bgChunks(t){b(this.#i,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get nestedResources(){return n(this.#a)}set nestedResources(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(yd(t)),this.#n=a(wd(t,this)),this.#t=a(md(t,this)),this.#r=a(kd(t));let r=a(pd(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#s=a(()=>n(i)),this.#i=a(()=>n(s)),this.#o=a(_d(t,this)),this.#a=a(bd(t))}}function Dd(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotWidth),s=a(()=>re("view-state")),o=a(()=>n(s).monthView),l=a(()=>n(s).snap),u=a(()=>t.day.dayStart),d=a(()=>t.day.start),f=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=Z(void 0);function v(y,p){if(n(o))return n(u);{let m=tn(n(h)),_=m.width/n(h).offsetWidth;return xe(X(n(d)),n(l).duration,Jr((hn()?m.right-y:y-m.left)/(n(i)*n(l).ratio*_)))}}mr(e,{get allDay(){return n(o)},get date(){return n(u)},get resource(){return n(f)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(y){b(h,y,!0)}}),we()}function bi(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotDuration),s=a(()=>n(r).options.slotWidth),o=a(()=>re("view-state")),l=a(()=>n(o).monthView),u=Z(void 0),d=Z(1),f=a(()=>t.chunk.event),c=a(()=>v=>{if(v["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,v["grid-row"]=t.chunk.gridRow,!n(l)){let p=t.chunk.left/_e(n(i))*n(s);v["inset-inline-start"]=`${p}px`,v["inline-size"]=`${t.chunk.width/_e(n(i))*n(s)}px`}let y=n(d);if(n(f)._margin){let[p,m]=n(f)._margin;t.chunk.gridRow===m&&(y=p)}return v["margin-block-start"]=`${y}px`,v});function g(){b(d,vd(t.chunk,vn(n(u)),n(l)),!0)}var h={reposition:g};{let v=a(()=>[n(d),t.chunk.gridRow]);_r(e,{get chunk(){return t.chunk},get styles(){return n(c)},axis:"x",get forceMargin(){return n(v)},get el(){return n(u)},set el(y){b(u,y,!0)}})}return we(h)}var Ed=j("<span></span>"),Td=j("<button><!></button>"),xd=j("<!> <span><!></span>",1);function Sd(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options),s=a(()=>n(i).resources),o=a(()=>n(i).theme),l=Z({}),u=Z(!0);ln(()=>{b(l,qt(t.resource)),b(u,n(l).expanded,!0)});function d(){b(u,!n(u)),n(l).expanded=n(u),f(n(l).children,n(u)),n(i).resources=[...n(s)]}function f(p,m){for(let _ of p){let k=qt(_);k.hidden=!m,k.expanded&&f(k.children,m)}}var c=xd(),g=J(c);ue(g,17,()=>Array(n(l).level),Ce,(p,m)=>{var _=Ed();ae(()=>N(_,1,n(o).expander)),x(p,_)});var h=ie(g,2),v=fe(h);{var y=p=>{var m=Td();m.__click=d;var _=fe(m);{var k=C=>{var D=xs("−");x(C,D)},S=C=>{var D=xs("+");x(C,D)};de(_,C=>{n(u)?C(k):C(S,!1)})}ae(()=>N(m,1,n(o).button)),x(p,m)};de(v,p=>{n(l).children?.length&&p(y)})}ae(()=>N(h,1,n(o).expander)),x(e,c),we()}$t(["click"]);var Rd=j("<div></div>");function Id(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).mainEl),s=a(()=>n(r).now),o=a(()=>n(r).today),l=a(()=>n(r).options.slotDuration),u=a(()=>n(r).options.slotWidth),d=a(()=>n(r).options.theme),f=a(()=>re("view-state")),c=a(()=>n(f).grid),g=a(()=>n(f).sidebarWidth),h=a(()=>{for(let w of n(c)[0])if(Je(w.dayStart,n(o)))return w;return{}}),v=a(()=>n(h).gridColumn),y=a(()=>n(h).start),p=a(()=>n(h).end),m=a(()=>{if(n(s)<n(y)||n(s)>n(p))return null;let w=_e(n(l));return(n(s)-n(y))/1e3/w*n(u)}),_=a(()=>({root:n(i),rootMargin:hn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function k(w,E){w.classList.toggle(n(d).hidden,!E.isIntersecting)}var S=le(),C=J(S);{var D=w=>{var E=Rd();let A;Ae(E,()=>Os(k,n(_))),ae(()=>{N(E,1,n(d).nowIndicator),A=Tt(E,"",A,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(c).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),x(w,E)};de(C,w=>{n(v)&&n(m)!==null&&w(D)})}x(e,S),we()}var Ld=j("<div><time></time></div>"),Pd=j('<div role="rowheader"><!> <!></div>'),Md=j('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function Ad(e,t){ye(t,!0);let r=re("state"),i=new Cd(r);An("view-state",i);let s=a(()=>r.mainEl),o=a(()=>r.today),l=a(()=>r.viewDates),u=a(()=>r.options.columnWidth),d=a(()=>r.options.nowIndicator),f=a(()=>r.options.scrollTime),c=a(()=>r.options.slotDuration),g=a(()=>r.options.slotHeight),h=a(()=>r.options.slotWidth),v=a(()=>r.options.theme),y=a(()=>i.chunks),p=a(()=>i.bgChunks),m=a(()=>i.iChunks),_=a(()=>i.daySlots),k=a(()=>i.dayTimeLimits),S=a(()=>i.grid),C=a(()=>i.monthView),D=a(()=>i.nestedResources),w=a(()=>i.sidebarWidth),E=a(()=>i.slotLabelPeriodicity),A=a(()=>i.viewResources),Y=Z(0);Ke(()=>{n(f),n(l).length&&fn().then(R)});function R(){let W=0,P=n(o)<n(l)[0]||n(o)>n(l).at(-1);if(n(C)){if(!P){let U=n(S)[0];for(let F of U)if(Je(F.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/U.length*(F.gridColumn-1)*(hn()?-1:1);break}}}else{for(let U of n(l)){let F=gd(n(k),U);if(P||Je(U,n(o))){W+=ct(Lt(_e(n(f)),_e(F.max))-_e(F.min),0);break}else W+=_e(F.max)-_e(F.min)}n(s).scrollLeft=W/_e(n(c))*n(h)*(hn()?-1:1)}}let te=[];function ge(){ii(te,n(y))}Ke(ge);var be=le(),se=J(be);{var z=W=>{var P=Md();let U;var F=fe(P),Q=fe(F),q=ie(Q,2),oe=fe(q);ue(oe,17,()=>n(S)[0],Ce,(B,K,Se)=>{let H=()=>n(K).dayStart,G=()=>n(K).disabled,he=()=>n(K).highlight;Kn(B,{get date(){return H()},colIndex:1+Se,get disabled(){return G()},get highlight(){return he()},children:(me,ne)=>{pr(me,{get date(){return H()}})},$$slots:{default:!0}})});var T=ie(oe,2);{var M=B=>{var K=le(),Se=J(K);ue(Se,17,()=>n(S)[0],Ce,(H,G)=>{let he=()=>n(G).dayStart,me=()=>n(G).disabled,ne=()=>n(G).highlight;Kn(H,{get date(){return he()},get className(){return n(v).slots},get disabled(){return me()},get highlight(){return ne()},ariaHidden:!0,children:(Re,ze)=>{var ot=le(),Me=J(ot);ue(Me,17,()=>n(_)[he().getTime()],Ce,(Te,at)=>{var He=Ld();let mt;var Rn=fe(He);Ae(Rn,()=>Ze(n(at)[1])),ae(()=>{N(He,1,n(v).slot),mt=Tt(He,"",mt,{"--ec-slot-label-periodicity":n(at)[2]}),Ie(Rn,"datetime",n(at)[0])}),x(Te,He)}),x(Re,ot)},$$slots:{default:!0}})}),x(B,K)};de(T,B=>{n(C)||B(M)})}var I=ie(F,2),V=fe(I);ue(V,21,()=>n(A),Ce,(B,K)=>{var Se=Pd(),H=fe(Se);{var G=me=>{Sd(me,{get resource(){return n(K)}})};de(H,me=>{n(D)&&me(G)})}var he=ie(H,2);pi(he,{get resource(){return n(K)}}),ae(()=>N(Se,1,n(v).rowHead)),x(B,Se)});var Ye=ie(V,2);ue(Ye,21,()=>n(S),Ce,(B,K,Se)=>{var H=le(),G=J(H);ue(G,17,()=>n(K),Ce,(he,me,ne)=>{{let Re=a(()=>ne+1===n(K).length),ze=a(()=>Se+1===n(S).length);Dd(he,{get day(){return n(me)},get noIeb(){return n(Re)},get noBeb(){return n(ze)}})}}),x(B,H)});var Oe=ie(Ye,2),bt=fe(Oe);ue(bt,19,()=>n(y),B=>B.id,(B,K,Se)=>{it(bi(B,{get chunk(){return n(K)}}),(H,G)=>te[G]=H,H=>te?.[H],()=>[n(Se)])});var Le=ie(bt,2);ue(Le,17,()=>n(p),B=>B.id,(B,K)=>{bi(B,{get chunk(){return n(K)}})});var Ne=ie(Le,2);ue(Ne,17,()=>n(m),Ce,(B,K)=>{bi(B,{get chunk(){return n(K)}})});var gt=ie(I,2);{var Mt=B=>{Id(B,{})};de(gt,B=>{n(d)&&!n(C)&&B(Mt)})}it(P,B=>r.mainEl=B,()=>r?.mainEl),Ae(P,()=>Zr(ge)),ae(()=>{N(P,1,n(v).main),U=Tt(P,"",U,{"--ec-grid-cols":n(S)[0].length,"--ec-grid-rows":`${n(S).length>1?`repeat(${n(S).length-1}, auto)`:""} 1fr`,"--ec-col-width":n(u)??"minmax(4em, 1fr)","--ec-slot-label-periodicity":n(E),"--ec-slot-height":`${n(g)??""}px`,"--ec-slot-width":`${n(h)??""}px`,"--ec-header-height":`${n(Y)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`}),N(F,1,n(v).header),N(Q,1,n(v).sidebar),N(q,1,n(v).grid),N(I,1,n(v).body),N(V,1,n(v).sidebar),N(Ye,1,n(v).grid),N(Oe,1,n(v).events)}),lr(Q,"offsetWidth",B=>i.sidebarWidth=B),lr(F,"offsetHeight",B=>b(Y,B)),x(W,P)};de(se,W=>{n(S).length&&n(S)[0].length&&W(z)})}x(e,be),we()}const Od={createOptions(e){vi(e),co(e),e.slotWidth=32,e.buttonText.resourceTimelineDay="timeline",e.buttonText.resourceTimelineWeek="timeline",e.buttonText.resourceTimelineMonth="timeline",e.theme.expander="ec-expander",e.theme.rowHead="ec-row-head",e.theme.slots="ec-slots",e.view="resourceTimelineWeek",e.views.resourceTimelineDay={buttonText:qn,component:_o,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:st("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:Xn,component:_o,displayEventEnd:!1,duration:{weeks:1},theme:st("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:oi,component:yo,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:st("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){gi(e)}};function _o(e){return hi(e),yo(e)}function yo(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!qt(r).hidden),Ad}const Nd={createOptions(e){vi(e),fo(e),ve(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),ve(e,{view:"timeGridWeek"}),ve(e.views,{timeGridDay:{buttonText:qn,component:wo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:st("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:Xn,component:wo,duration:{weeks:1},theme:st("ec-time-grid ec-week-view")}})},createParsers(e){gi(e)}};function wo(e){return hi(e),mo}function Fd(e,t,r){return Na(tu,{target:e,props:{plugins:t,options:r}})}function Hd(e){return Ha(e)}function Wd(e,t){return Fd(e,[bu,Nu,Yu,cd,Od,Nd],t)}return Qn.create=Wd,Qn.destroy=Hd,Object.defineProperty(Qn,Symbol.toStringTag,{value:"Module"}),Qn})({});
5
+ var EventCalendar=(function(er){"use strict";var Pi=Array.isArray,Ao=Array.prototype.indexOf,tr=Array.from,Mi=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,Oo=Object.getOwnPropertyDescriptors,No=Object.prototype,Fo=Array.prototype,Ai=Object.getPrototypeOf,Oi=Object.isExtensible;const Zt=()=>{};function Ho(e){for(var t=0;t<e.length;t++)e[t]()}function Ni(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function Wo(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const r=[];for(const i of e)if(r.push(i),r.length===t)break;return r}const Ge=2,nr=4,On=8,Sr=1<<24,Ft=16,Ht=32,on=64,Rr=128,yt=512,Ke=1024,nt=2048,Wt=4096,ft=8192,Ut=16384,Ir=32768,Jt=65536,Fi=1<<17,Hi=1<<18,bn=1<<19,Wi=1<<20,zt=1<<25,an=32768,Lr=1<<21,Pr=1<<22,Qt=1<<23,Nn=Symbol("$state"),Uo=Symbol("legacy props"),zo=Symbol(""),kn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Ui(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Vo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Bo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Go(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Yo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function qo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xo(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function Ko(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Zo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Jo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Qo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function jo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const $o=1,ea=2,zi=4,ta=8,na=16,ra=1,ia=4,sa=8,oa=16,aa=1,la=2,Ye=Symbol(),ua="http://www.w3.org/1999/xhtml";function fa(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Vi(e){return e===this.v}function da(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Bi(e){return!da(e,this.v)}let od=!1,Ze=null;function Cn(e){Ze=e}function re(e){return Yi().get(e)}function Fn(e,t){return Yi().set(e,t),t}function ye(e,t=!1,r){Ze={p:Ze,i:!1,c:null,e:null,s:e,x:null,l:null}}function we(e){var t=Ze,r=t.e;if(r!==null){t.e=null;for(var i of r)ds(i)}return e!==void 0&&(t.x=e),t.i=!0,Ze=t.p,e??{}}function Gi(){return!0}function Yi(e){return Ze===null&&Ui(),Ze.c??=new Map(ca(Ze)||void 0)}function ca(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let ln=[];function qi(){var e=ln;ln=[],Ho(e)}function un(e){if(ln.length===0&&!Hn){var t=ln;queueMicrotask(()=>{t===ln&&qi()})}ln.push(e)}function ha(){for(;ln.length>0;)qi()}function Xi(e){var t=Ee;if(t===null)return ce.f|=Qt,e;if((t.f&Ir)===0){if((t.f&Rr)===0)throw e;t.b.error(e)}else Dn(e,t)}function Dn(e,t){for(;t!==null;){if((t.f&Rr)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const va=-7169;function ze(e,t){e.f=e.f&va|t}function Mr(e){(e.f&yt)!==0||e.deps===null?ze(e,Ke):ze(e,Wt)}function Ki(e){if(e!==null)for(const t of e)(t.f&Ge)===0||(t.f&an)===0||(t.f^=an,Ki(t.deps))}function Zi(e,t,r){(e.f&nt)!==0?t.add(e):(e.f&Wt)!==0&&r.add(e),Ki(e.deps),ze(e,Ke)}const rr=new Set;let Ae=null,Dt=null,wt=[],ir=null,Ar=!1,Hn=!1;class It{committed=!1;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=0;#r=0;#s=null;#i=new Set;#o=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){wt=[],this.apply();var r=[],i=[];for(const s of t)this.#a(s,r,i);this.is_fork||this.#u(),this.is_deferred()?(this.#l(i),this.#l(r)):(Ae=null,Qi(i),Qi(r),this.#s?.resolve()),Dt=null}#a(t,r,i){t.f^=Ke;for(var s=t.first,o=null;s!==null;){var l=s.f,u=(l&(Ht|on))!==0,f=u&&(l&Ke)!==0,d=f||(l&ft)!==0||this.skipped_effects.has(s);if(!d&&s.fn!==null){u?s.f^=Ke:o!==null&&(l&(nr|On|Sr))!==0?o.b.defer_effect(s):(l&nr)!==0?r.push(s):zn(s)&&((l&Ft)!==0&&this.#i.add(s),Vn(s));var c=s.first;if(c!==null){s=c;continue}}var g=s.parent;for(s=s.next;s===null&&g!==null;)g===o&&(o=null),s=g.next,g=g.parent}}#l(t){for(var r=0;r<t.length;r+=1)Zi(t[r],this.#i,this.#o)}capture(t,r){r!==Ye&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Qt)===0&&(this.current.set(t,t.v),Dt?.set(t,t.v))}activate(){Ae=this,this.apply()}deactivate(){Ae===this&&(Ae=null,Dt=null)}flush(){if(this.activate(),wt.length>0){if(Ji(),Ae!==null&&Ae!==this)return}else this.#t===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#n)t(this);this.#n.clear()}#u(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#t===0&&this.#f()}#f(){if(rr.size>1){this.previous.clear();var t=Dt,r=!0;for(const s of rr){if(s===this){r=!1;continue}const o=[];for(const[u,f]of this.current){if(s.current.has(u))if(r&&f!==s.current.get(u))s.current.set(u,f);else continue;o.push(u)}if(o.length===0)continue;const l=[...s.current.keys()].filter(u=>!this.current.has(u));if(l.length>0){var i=wt;wt=[];const u=new Set,f=new Map;for(const d of o)ji(d,l,u,f);if(wt.length>0){Ae=s,s.apply();for(const d of wt)s.#a(d,[],[]);s.deactivate()}wt=i}}Ae=null,Dt=t}this.committed=!0,rr.delete(this)}increment(t){this.#t+=1,t&&(this.#r+=1)}decrement(t){this.#t-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#i)this.#o.delete(t),ze(t,nt),Bt(t);for(const t of this.#o)ze(t,Wt),Bt(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Ni()).promise}static ensure(){if(Ae===null){const t=Ae=new It;rr.add(Ae),Hn||It.enqueue(()=>{Ae===t&&t.flush()})}return Ae}static enqueue(t){un(t)}apply(){}}function ga(e){var t=Hn;Hn=!0;try{for(var r;;){if(ha(),wt.length===0&&(Ae?.flush(),wt.length===0))return ir=null,r;Ji()}}finally{Hn=t}}function Ji(){var e=cn;Ar=!0;var t=null;try{var r=0;for(lr(!0);wt.length>0;){var i=It.ensure();if(r++>1e3){var s,o;ma()}i.process(wt),jt.clear()}}finally{Ar=!1,lr(e),ir=null}}function ma(){try{qo()}catch(e){Dn(e,ir)}}let Vt=null;function Qi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Ut|ft))===0&&zn(i)&&(Vt=new Set,Vn(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?gs(i):i.fn=null),Vt?.size>0)){jt.clear();for(const s of Vt){if((s.f&(Ut|ft))!==0)continue;const o=[s];let l=s.parent;for(;l!==null;)Vt.has(l)&&(Vt.delete(l),o.push(l)),l=l.parent;for(let u=o.length-1;u>=0;u--){const f=o[u];(f.f&(Ut|ft))===0&&Vn(f)}}Vt.clear()}}Vt=null}}function ji(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const o=s.f;(o&Ge)!==0?ji(s,t,r,i):(o&(Pr|Ft))!==0&&(o&nt)===0&&$i(s,t,i)&&(ze(s,nt),Bt(s))}}function $i(e,t,r){const i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&Ge)!==0&&$i(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function Bt(e){for(var t=ir=e;t.parent!==null;){t=t.parent;var r=t.f;if(Ar&&t===Ee&&(r&Ft)!==0&&(r&Hi)===0)return;if((r&(on|Ht))!==0){if((r&Ke)===0)return;t.f^=Ke}}wt.push(t)}function pa(e){let t=0,r=$t(0),i;return()=>{Hr()&&(n(r),cs(()=>(t===0&&(i=j(()=>e(()=>Lt(r)))),t+=1,()=>{un(()=>{t-=1,t===0&&(i?.(),i=void 0,Lt(r))})})))}}var _a=Jt|bn|Rr;function ya(e,t,r){new wa(e,t,r)}class wa{parent;is_pending=!1;#e;#n=null;#t;#r;#s;#i=null;#o=null;#a=null;#l=null;#u=null;#f=0;#d=0;#h=!1;#v=new Set;#g=new Set;#c=null;#w=pa(()=>(this.#c=$t(this.#f),()=>{this.#c=null}));constructor(t,r,i){this.#e=t,this.#t=r,this.#r=i,this.parent=Ee.b,this.is_pending=!!this.#t.pending,this.#s=Un(()=>{Ee.b=this;{var s=this.#_();try{this.#i=dt(()=>i(s))}catch(o){this.error(o)}this.#d>0?this.#p():this.is_pending=!1}return()=>{this.#u?.remove()}},_a)}#b(){try{this.#i=dt(()=>this.#r(this.#e))}catch(t){this.error(t)}}#k(){const t=this.#t.pending;t&&(this.#o=dt(()=>t(this.#e)),It.enqueue(()=>{var r=this.#_();this.#i=this.#m(()=>(It.ensure(),dt(()=>this.#r(r)))),this.#d>0?this.#p():(dn(this.#o,()=>{this.#o=null}),this.is_pending=!1)}))}#_(){var t=this.#e;return this.is_pending&&(this.#u=Gt(),this.#e.before(this.#u),t=this.#u),t}defer_effect(t){Zi(t,this.#v,this.#g)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var r=Ee,i=ce,s=Ze;Pt(this.#s),rt(this.#s),Cn(this.#s.ctx);try{return t()}catch(o){return Xi(o),null}finally{Pt(r),rt(i),Cn(s)}}#p(){const t=this.#t.pending;this.#i!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#u),_s(this.#i,this.#l)),this.#o===null&&(this.#o=dt(()=>t(this.#e)))}#y(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t);return}if(this.#d+=t,this.#d===0){this.is_pending=!1;for(const r of this.#v)ze(r,nt),Bt(r);for(const r of this.#g)ze(r,Wt),Bt(r);this.#v.clear(),this.#g.clear(),this.#o&&dn(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null)}}update_pending_count(t){this.#y(t),this.#f+=t,this.#c&&En(this.#c,this.#f)}get_effect_pending(){return this.#w(),n(this.#c)}error(t){var r=this.#t.onerror;let i=this.#t.failed;if(this.#h||!r&&!i)throw t;this.#i&&(tt(this.#i),this.#i=null),this.#o&&(tt(this.#o),this.#o=null),this.#a&&(tt(this.#a),this.#a=null);var s=!1,o=!1;const l=()=>{if(s){fa();return}s=!0,o&&jo(),It.ensure(),this.#f=0,this.#a!==null&&dn(this.#a,()=>{this.#a=null}),this.is_pending=this.has_pending_snippet(),this.#i=this.#m(()=>(this.#h=!1,dt(()=>this.#r(this.#e)))),this.#d>0?this.#p():this.is_pending=!1};var u=ce;try{rt(null),o=!0,r?.(t,l),o=!1}catch(f){Dn(f,this.#s&&this.#s.parent)}finally{rt(u)}i&&un(()=>{this.#a=this.#m(()=>{It.ensure(),this.#h=!0;try{return dt(()=>{i(this.#e,()=>t,()=>l)})}catch(f){return Dn(f,this.#s.parent),null}finally{this.#h=!1}})})}}function ba(e,t,r,i){const s=or;if(r.length===0&&e.length===0){i(t.map(s));return}var o=Ae,l=Ee,u=ka();function f(){Promise.all(r.map(d=>Ca(d))).then(d=>{u();try{i([...t.map(s),...d])}catch(c){(l.f&Ut)===0&&Dn(c,l)}o?.deactivate(),sr()}).catch(d=>{Dn(d,l)})}e.length>0?Promise.all(e).then(()=>{u();try{return f()}finally{o?.deactivate(),sr()}}):f()}function ka(){var e=Ee,t=ce,r=Ze,i=Ae;return function(o=!0){Pt(e),rt(t),Cn(r),o&&i?.activate()}}function sr(){Pt(null),rt(null),Cn(null)}function or(e){var t=Ge|nt,r=ce!==null&&(ce.f&Ge)!==0?ce:null;return Ee!==null&&(Ee.f|=bn),{ctx:Ze,deps:null,effects:null,equals:Vi,f:t,fn:e,reactions:null,rv:0,v:Ye,wv:0,parent:r??Ee,ac:null}}function Ca(e,t,r){let i=Ee;i===null&&Vo();var s=i.b,o=void 0,l=$t(Ye),u=!ce,f=new Map;return La(()=>{var d=Ni();o=d.promise;try{Promise.resolve(e()).then(d.resolve,d.reject).then(()=>{c===Ae&&c.committed&&c.deactivate(),sr()})}catch(v){d.reject(v),sr()}var c=Ae;if(u){var g=s.is_rendered();s.update_pending_count(1),c.increment(g),f.get(c)?.reject(kn),f.delete(c),f.set(c,d)}const h=(v,_=void 0)=>{if(c.activate(),_)_!==kn&&(l.f|=Qt,En(l,_));else{(l.f&Qt)!==0&&(l.f^=Qt),En(l,v);for(const[p,m]of f){if(f.delete(p),p===c)break;m.reject(kn)}}u&&(s.update_pending_count(-1),c.decrement(g))};d.promise.then(h,v=>h(null,v||"unknown"))}),Wr(()=>{for(const d of f.values())d.reject(kn)}),new Promise(d=>{function c(g){function h(){g===o?d(l):c(o)}g.then(h,h)}c(o)})}function a(e){const t=or(e);return ws(t),t}function es(e){const t=or(e);return t.equals=Bi,t}function ts(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)tt(t[r])}}function Da(e){for(var t=e.parent;t!==null;){if((t.f&Ge)===0)return(t.f&Ut)===0?t:null;t=t.parent}return null}function Or(e){var t,r=Ee;Pt(Da(e));try{e.f&=~an,ts(e),t=Es(e)}finally{Pt(r)}return t}function ns(e){var t=Or(e);if(!e.equals(t)&&(e.wv=Cs(),(!Ae?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){ze(e,Ke);return}en||(Dt!==null?(Hr()||Ae?.is_fork)&&Dt.set(e,t):Mr(e))}let Nr=new Set;const jt=new Map;let rs=!1;function $t(e,t){var r={f:0,v:e,reactions:null,equals:Vi,rv:0,wv:0};return r}function K(e,t){const r=$t(e);return ws(r),r}function is(e,t=!1,r=!0){const i=$t(e);return t||(i.equals=Bi),i}function b(e,t,r=!1){ce!==null&&(!xt||(ce.f&Fi)!==0)&&Gi()&&(ce.f&(Ge|Ft|Pr|Fi))!==0&&!Yt?.includes(e)&&Qo();let i=r?et(t):t;return En(e,i)}function En(e,t){if(!e.equals(t)){var r=e.v;en?jt.set(e,t):jt.set(e,r),e.v=t;var i=It.ensure();if(i.capture(e,r),(e.f&Ge)!==0){const s=e;(e.f&nt)!==0&&Or(s),Mr(s)}e.wv=Cs(),ss(e,nt),Ee!==null&&(Ee.f&Ke)!==0&&(Ee.f&(Ht|on))===0&&(bt===null?Oa([e]):bt.push(e)),!i.is_fork&&Nr.size>0&&!rs&&Ea()}return t}function Ea(){rs=!1;var e=cn;lr(!0);const t=Array.from(Nr);try{for(const r of t)(r.f&Ke)!==0&&ze(r,Wt),zn(r)&&Vn(r)}finally{lr(e)}Nr.clear()}function Lt(e){b(e,e.v+1)}function ss(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,u=(l&nt)===0;if(u&&ze(o,t),(l&Ge)!==0){var f=o;Dt?.delete(f),(l&an)===0&&(l&yt&&(o.f|=an),ss(f,Wt))}else u&&((l&Ft)!==0&&Vt!==null&&Vt.add(o),Bt(o))}}function et(e){if(typeof e!="object"||e===null||Nn in e)return e;const t=Ai(e);if(t!==No&&t!==Fo)return e;var r=new Map,i=Pi(e),s=K(0),o=qt,l=u=>{if(qt===o)return u();var f=ce,d=qt;rt(null),ks(o);var c=u();return rt(f),ks(d),c};return i&&r.set("length",K(e.length)),new Proxy(e,{defineProperty(u,f,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Zo();var c=r.get(f);return c===void 0?c=l(()=>{var g=K(d.value);return r.set(f,g),g}):b(c,d.value,!0),!0},deleteProperty(u,f){var d=r.get(f);if(d===void 0){if(f in u){const c=l(()=>K(Ye));r.set(f,c),Lt(s)}}else b(d,Ye),Lt(s);return!0},get(u,f,d){if(f===Nn)return e;var c=r.get(f),g=f in u;if(c===void 0&&(!g||wn(u,f)?.writable)&&(c=l(()=>{var v=et(g?u[f]:Ye),_=K(v);return _}),r.set(f,c)),c!==void 0){var h=n(c);return h===Ye?void 0:h}return Reflect.get(u,f,d)},getOwnPropertyDescriptor(u,f){var d=Reflect.getOwnPropertyDescriptor(u,f);if(d&&"value"in d){var c=r.get(f);c&&(d.value=n(c))}else if(d===void 0){var g=r.get(f),h=g?.v;if(g!==void 0&&h!==Ye)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return d},has(u,f){if(f===Nn)return!0;var d=r.get(f),c=d!==void 0&&d.v!==Ye||Reflect.has(u,f);if(d!==void 0||Ee!==null&&(!c||wn(u,f)?.writable)){d===void 0&&(d=l(()=>{var h=c?et(u[f]):Ye,v=K(h);return v}),r.set(f,d));var g=n(d);if(g===Ye)return!1}return c},set(u,f,d,c){var g=r.get(f),h=f in u;if(i&&f==="length")for(var v=d;v<g.v;v+=1){var _=r.get(v+"");_!==void 0?b(_,Ye):v in u&&(_=l(()=>K(Ye)),r.set(v+"",_))}if(g===void 0)(!h||wn(u,f)?.writable)&&(g=l(()=>K(void 0)),b(g,et(d)),r.set(f,g));else{h=g.v!==Ye;var p=l(()=>et(d));b(g,p)}var m=Reflect.getOwnPropertyDescriptor(u,f);if(m?.set&&m.set.call(c,d),!h){if(i&&typeof f=="string"){var y=r.get("length"),k=Number(f);Number.isInteger(k)&&k>=y.v&&b(y,k+1)}Lt(s)}return!0},ownKeys(u){n(s);var f=Reflect.ownKeys(u).filter(g=>{var h=r.get(g);return h===void 0||h.v!==Ye});for(var[d,c]of r)c.v!==Ye&&!(d in u)&&f.push(d);return f},setPrototypeOf(){Jo()}})}var Et,os,as,ls;function Ta(){if(Et===void 0){Et=window,os=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;as=wn(t,"firstChild").get,ls=wn(t,"nextSibling").get,Oi(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Oi(r)&&(r.__t=void 0)}}function Gt(e=""){return document.createTextNode(e)}function ar(e){return as.call(e)}function Wn(e){return ls.call(e)}function de(e,t){return ar(e)}function Q(e,t=!1){{var r=ar(e);return r instanceof Comment&&r.data===""?Wn(r):r}}function se(e,t=1,r=!1){let i=e;for(;t--;)i=Wn(i);return i}function xa(e){e.textContent=""}function us(){return!1}function Sa(e,t){{const r=document.body;e.autofocus=!0,un(()=>{document.activeElement===r&&e.focus()})}}function Fr(e){var t=ce,r=Ee;rt(null),Pt(null);try{return e()}finally{rt(t),Pt(r)}}function fs(e){Ee===null&&(ce===null&&Yo(),Go()),en&&Bo()}function Ra(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Tt(e,t,r){var i=Ee;i!==null&&(i.f&ft)!==0&&(e|=ft);var s={ctx:Ze,deps:null,nodes:null,f:e|nt|yt,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Vn(s),s.f|=Ir}catch(u){throw tt(s),u}else t!==null&&Bt(s);var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&bn)===0&&(o=o.first,(e&Ft)!==0&&(e&Jt)!==0&&o!==null&&(o.f|=Jt)),o!==null&&(o.parent=i,i!==null&&Ra(o,i),ce!==null&&(ce.f&Ge)!==0&&(e&on)===0)){var l=ce;(l.effects??=[]).push(o)}return s}function Hr(){return ce!==null&&!xt}function Wr(e){const t=Tt(On,null,!1);return ze(t,Ke),t.teardown=e,t}function qe(e){fs();var t=Ee.f,r=!ce&&(t&Ht)!==0&&(t&Ir)===0;if(r){var i=Ze;(i.e??=[]).push(e)}else return ds(e)}function ds(e){return Tt(nr|Wi,e,!1)}function fn(e){return fs(),Tt(On|Wi,e,!0)}function Ia(e){It.ensure();const t=Tt(on|bn,e,!0);return(r={})=>new Promise(i=>{r.outro?dn(t,()=>{tt(t),i(void 0)}):(tt(t),i(void 0))})}function Ur(e){return Tt(nr,e,!1)}function La(e){return Tt(Pr|bn,e,!0)}function cs(e,t=0){return Tt(On|t,e,!0)}function ae(e,t=[],r=[],i=[]){ba(i,t,r,s=>{Tt(On,()=>e(...s.map(n)),!0)})}function Un(e,t=0){var r=Tt(Ft|t,e,!0);return r}function Pa(e,t=0){var r=Tt(Sr|t,e,!0);return r}function dt(e){return Tt(Ht|bn,e,!0)}function hs(e){var t=e.teardown;if(t!==null){const r=en,i=ce;ys(!0),rt(null);try{t.call(null)}finally{ys(r),rt(i)}}}function vs(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Fr(()=>{s.abort(kn)});var i=r.next;(r.f&on)!==0?r.parent=null:tt(r,t),r=i}}function Ma(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ht)===0&&tt(t),t=r}}function tt(e,t=!0){var r=!1;(t||(e.f&Hi)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Aa(e.nodes.start,e.nodes.end),r=!0),vs(e,t&&!r),ur(e,0),ze(e,Ut);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();hs(e);var s=e.parent;s!==null&&s.first!==null&&gs(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Aa(e,t){for(;e!==null;){var r=e===t?null:Wn(e);e.remove(),e=r}}function gs(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function dn(e,t,r=!0){var i=[];ms(e,i,!0);var s=()=>{r&&tt(e),t&&t()},o=i.length;if(o>0){var l=()=>--o||s();for(var u of i)u.out(l)}else s()}function ms(e,t,r){if((e.f&ft)===0){e.f^=ft;var i=e.nodes&&e.nodes.t;if(i!==null)for(const u of i)(u.is_global||r)&&t.push(u);for(var s=e.first;s!==null;){var o=s.next,l=(s.f&Jt)!==0||(s.f&Ht)!==0&&(e.f&Ft)!==0;ms(s,t,l?r:!1),s=o}}}function zr(e){ps(e,!0)}function ps(e,t){if((e.f&ft)!==0){e.f^=ft,(e.f&Ke)===0&&(ze(e,nt),Bt(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Jt)!==0||(r.f&Ht)!==0;ps(r,s?t:!1),r=i}var o=e.nodes&&e.nodes.t;if(o!==null)for(const l of o)(l.is_global||t)&&l.in()}}function _s(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:Wn(r);t.append(r),r=s}}let cn=!1;function lr(e){cn=e}let en=!1;function ys(e){en=e}let ce=null,xt=!1;function rt(e){ce=e}let Ee=null;function Pt(e){Ee=e}let Yt=null;function ws(e){ce!==null&&(Yt===null?Yt=[e]:Yt.push(e))}let it=null,ct=0,bt=null;function Oa(e){bt=e}let bs=1,hn=0,qt=hn;function ks(e){qt=e}function Cs(){return++bs}function zn(e){var t=e.f;if((t&nt)!==0)return!0;if(t&Ge&&(e.f&=~an),(t&Wt)!==0){for(var r=e.deps,i=r.length,s=0;s<i;s++){var o=r[s];if(zn(o)&&ns(o),o.wv>e.wv)return!0}(t&yt)!==0&&Dt===null&&ze(e,Ke)}return!1}function Ds(e,t,r=!0){var i=e.reactions;if(i!==null&&!Yt?.includes(e))for(var s=0;s<i.length;s++){var o=i[s];(o.f&Ge)!==0?Ds(o,t,!1):t===o&&(r?ze(o,nt):(o.f&Ke)!==0&&ze(o,Wt),Bt(o))}}function Es(e){var t=it,r=ct,i=bt,s=ce,o=Yt,l=Ze,u=xt,f=qt,d=e.f;it=null,ct=0,bt=null,ce=(d&(Ht|on))===0?e:null,Yt=null,Cn(e.ctx),xt=!1,qt=++hn,e.ac!==null&&(Fr(()=>{e.ac.abort(kn)}),e.ac=null);try{e.f|=Lr;var c=e.fn,g=c(),h=e.deps;if(it!==null){var v;if(ur(e,ct),h!==null&&ct>0)for(h.length=ct+it.length,v=0;v<it.length;v++)h[ct+v]=it[v];else e.deps=h=it;if(Hr()&&(e.f&yt)!==0)for(v=ct;v<h.length;v++)(h[v].reactions??=[]).push(e)}else h!==null&&ct<h.length&&(ur(e,ct),h.length=ct);if(Gi()&&bt!==null&&!xt&&h!==null&&(e.f&(Ge|Wt|nt))===0)for(v=0;v<bt.length;v++)Ds(bt[v],e);if(s!==null&&s!==e){if(hn++,s.deps!==null)for(let _=0;_<r;_+=1)s.deps[_].rv=hn;if(t!==null)for(const _ of t)_.rv=hn;bt!==null&&(i===null?i=bt:i.push(...bt))}return(e.f&Qt)!==0&&(e.f^=Qt),g}catch(_){return Xi(_)}finally{e.f^=Lr,it=t,ct=r,bt=i,ce=s,Yt=o,Cn(l),xt=u,qt=f}}function Na(e,t){let r=t.reactions;if(r!==null){var i=Ao.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}if(r===null&&(t.f&Ge)!==0&&(it===null||!it.includes(t))){var o=t;(o.f&yt)!==0&&(o.f^=yt,o.f&=~an),Mr(o),ts(o),ur(o,0)}}function ur(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Na(e,r[i])}function Vn(e){var t=e.f;if((t&Ut)===0){ze(e,Ke);var r=Ee,i=cn;Ee=e,cn=!0;try{(t&(Ft|Sr))!==0?Ma(e):vs(e),hs(e);var s=Es(e);e.teardown=typeof s=="function"?s:null,e.wv=bs;var o}finally{cn=i,Ee=r}}}async function vn(){await Promise.resolve(),ga()}function n(e){var t=e.f,r=(t&Ge)!==0;if(ce!==null&&!xt){var i=Ee!==null&&(Ee.f&Ut)!==0;if(!i&&!Yt?.includes(e)){var s=ce.deps;if((ce.f&Lr)!==0)e.rv<hn&&(e.rv=hn,it===null&&s!==null&&s[ct]===e?ct++:it===null?it=[e]:it.push(e));else{(ce.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[ce]:o.includes(ce)||o.push(ce)}}}if(en&&jt.has(e))return jt.get(e);if(r){var l=e;if(en){var u=l.v;return((l.f&Ke)===0&&l.reactions!==null||xs(l))&&(u=Or(l)),jt.set(l,u),u}var f=(l.f&yt)===0&&!xt&&ce!==null&&(cn||(ce.f&yt)!==0),d=l.deps===null;zn(l)&&(f&&(l.f|=yt),ns(l)),f&&!d&&Ts(l)}if(Dt?.has(e))return Dt.get(e);if((e.f&Qt)!==0)throw e.v;return e.v}function Ts(e){if(e.deps!==null){e.f|=yt;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Ge)!==0&&(t.f&yt)===0&&Ts(t)}}function xs(e){if(e.v===Ye)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(jt.has(t)||(t.f&Ge)!==0&&xs(t))return!0;return!1}function j(e){var t=xt;try{return xt=!0,e()}finally{xt=t}}const Fa=["touchstart","touchmove"];function Ha(e){return Fa.includes(e)}const Ss=new Set,Vr=new Set;function Wa(e,t,r,i={}){function s(o){if(i.capture||Bn.call(t,o),!o.cancelBubble)return Fr(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?un(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function ht(e,t,r,i,s){var o={capture:i,passive:s},l=Wa(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Wr(()=>{t.removeEventListener(e,l,o)})}function tn(e){for(var t=0;t<e.length;t++)Ss.add(e[t]);for(var r of Vr)r(e)}let Rs=null;function Bn(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;Rs=e;var l=0,u=Rs===e&&e.__root;if(u){var f=s.indexOf(u);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var d=s.indexOf(t);if(d===-1)return;f<=d&&(l=f)}if(o=s[l]||e.target,o!==t){Mi(e,"currentTarget",{configurable:!0,get(){return o||r}});var c=ce,g=Ee;rt(null),Pt(null);try{for(var h,v=[];o!==null;){var _=o.assignedSlot||o.parentNode||o.host||null;try{var p=o["__"+i];p!=null&&(!o.disabled||e.target===o)&&p.call(o,e)}catch(m){h?v.push(m):h=m}if(e.cancelBubble||_===t||_===null)break;o=_}if(h){for(let m of v)queueMicrotask(()=>{throw m});throw h}}finally{e.__root=t,delete e.currentTarget,rt(c),Pt(g)}}}function Ua(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function fr(e,t){var r=Ee;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function $(e,t){var r=(t&aa)!==0,i=(t&la)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=Ua(o?e:"<!>"+e),r||(s=ar(s)));var l=i||os?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=ar(l),f=l.lastChild;fr(u,f)}else fr(l,l);return l}}function Is(e=""){{var t=Gt(e+"");return fr(t,t),t}}function le(){var e=document.createDocumentFragment(),t=document.createComment(""),r=Gt();return e.append(t,r),fr(t,r),e}function x(e,t){e!==null&&e.before(t)}function Ls(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function za(e,t){return Va(e,t)}const Tn=new Map;function Va(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0}){Ta();var u=new Set,f=g=>{for(var h=0;h<g.length;h++){var v=g[h];if(!u.has(v)){u.add(v);var _=Ha(v);t.addEventListener(v,Bn,{passive:_});var p=Tn.get(v);p===void 0?(document.addEventListener(v,Bn,{passive:_}),Tn.set(v,1)):Tn.set(v,p+1)}}};f(tr(Ss)),Vr.add(f);var d=void 0,c=Ia(()=>{var g=r??t.appendChild(Gt());return ya(g,{pending:()=>{}},h=>{if(o){ye({});var v=Ze;v.c=o}s&&(i.$$events=s),d=e(h,i)||{},o&&we()}),()=>{for(var h of u){t.removeEventListener(h,Bn);var v=Tn.get(h);--v===0?(document.removeEventListener(h,Bn),Tn.delete(h)):Tn.set(h,v)}Vr.delete(f),g!==r&&g.parentNode?.removeChild(g)}});return Br.set(d,c),d}let Br=new WeakMap;function Ba(e,t){const r=Br.get(e);return r?(Br.delete(e),r(t)):Promise.resolve()}class Gr{anchor;#e=new Map;#n=new Map;#t=new Map;#r=new Set;#s=!0;constructor(t,r=!0){this.anchor=t,this.#s=r}#i=()=>{var t=Ae;if(this.#e.has(t)){var r=this.#e.get(t),i=this.#n.get(r);if(i)zr(i),this.#r.delete(r);else{var s=this.#t.get(r);s&&(this.#n.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===t)break;const u=this.#t.get(l);u&&(tt(u.effect),this.#t.delete(l))}for(const[o,l]of this.#n){if(o===r||this.#r.has(o))continue;const u=()=>{if(Array.from(this.#e.values()).includes(o)){var d=document.createDocumentFragment();_s(l,d),d.append(Gt()),this.#t.set(o,{effect:l,fragment:d})}else tt(l);this.#r.delete(o),this.#n.delete(o)};this.#s||!i?(this.#r.add(o),dn(l,u,!1)):u()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[i,s]of this.#t)r.includes(i)||(tt(s.effect),this.#t.delete(i))};ensure(t,r){var i=Ae,s=us();if(r&&!this.#n.has(t)&&!this.#t.has(t))if(s){var o=document.createDocumentFragment(),l=Gt();o.append(l),this.#t.set(t,{effect:dt(()=>r(l)),fragment:o})}else this.#n.set(t,dt(()=>r(this.anchor)));if(this.#e.set(i,t),s){for(const[u,f]of this.#n)u===t?i.skipped_effects.delete(f):i.skipped_effects.add(f);for(const[u,f]of this.#t)u===t?i.skipped_effects.delete(f.effect):i.skipped_effects.add(f.effect);i.oncommit(this.#i),i.ondiscard(this.#o)}else this.#i()}}function fe(e,t,r=!1){var i=new Gr(e),s=r?Jt:0;function o(l,u){i.ensure(l,u)}Un(()=>{var l=!1;t((u,f=!0)=>{l=!0,o(f,u)}),l||o(!1,null)},s)}function Ce(e,t){return t}function Ga(e,t,r){for(var i=[],s=t.length,o,l=t.length,u=0;u<s;u++){let g=t[u];dn(g,()=>{if(o){if(o.pending.delete(g),o.done.add(g),o.pending.size===0){var h=e.outrogroups;Yr(tr(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var f=i.length===0&&r!==null;if(f){var d=r,c=d.parentNode;xa(c),c.append(d),e.items.clear()}Yr(t,!f)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Yr(e,t=!0){for(var r=0;r<e.length;r++)tt(e[r],t)}var Ps;function ue(e,t,r,i,s,o=null){var l=e,u=new Map,f=(t&zi)!==0;if(f){var d=e;l=d.appendChild(Gt())}var c=null,g=es(()=>{var y=r();return Pi(y)?y:y==null?[]:tr(y)}),h,v=!0;function _(){m.fallback=c,Ya(m,h,l,t,i),c!==null&&(h.length===0?(c.f&zt)===0?zr(c):(c.f^=zt,Gn(c,null,l)):dn(c,()=>{c=null}))}var p=Un(()=>{h=n(g);for(var y=h.length,k=new Set,S=Ae,D=us(),E=0;E<y;E+=1){var w=h[E],C=i(w,E),M=v?null:u.get(C);M?(M.v&&En(M.v,w),M.i&&En(M.i,E),D&&S.skipped_effects.delete(M.e)):(M=qa(u,v?l:Ps??=Gt(),w,C,E,s,t,r),v||(M.e.f|=zt),u.set(C,M)),k.add(C)}if(y===0&&o&&!c&&(v?c=dt(()=>o(l)):(c=dt(()=>o(Ps??=Gt())),c.f|=zt)),!v)if(D){for(const[q,R]of u)k.has(q)||S.skipped_effects.add(R.e);S.oncommit(_),S.ondiscard(()=>{})}else _();n(g)}),m={effect:p,items:u,outrogroups:null,fallback:c};v=!1}function Ya(e,t,r,i,s){var o=(i&ta)!==0,l=t.length,u=e.items,f=e.effect.first,d,c=null,g,h=[],v=[],_,p,m,y;if(o)for(y=0;y<l;y+=1)_=t[y],p=s(_,y),m=u.get(p).e,(m.f&zt)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(y=0;y<l;y+=1){if(_=t[y],p=s(_,y),m=u.get(p).e,e.outrogroups!==null)for(const R of e.outrogroups)R.pending.delete(m),R.done.delete(m);if((m.f&zt)!==0)if(m.f^=zt,m===f)Gn(m,null,r);else{var k=c?c.next:f;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),nn(e,c,m),nn(e,m,k),Gn(m,k,r),c=m,h=[],v=[],f=c.next;continue}if((m.f&ft)!==0&&(zr(m),o&&(m.nodes?.a?.unfix(),(g??=new Set).delete(m))),m!==f){if(d!==void 0&&d.has(m)){if(h.length<v.length){var S=v[0],D;c=S.prev;var E=h[0],w=h[h.length-1];for(D=0;D<h.length;D+=1)Gn(h[D],S,r);for(D=0;D<v.length;D+=1)d.delete(v[D]);nn(e,E.prev,w.next),nn(e,c,E),nn(e,w,S),f=S,c=w,y-=1,h=[],v=[]}else d.delete(m),Gn(m,f,r),nn(e,m.prev,m.next),nn(e,m,c===null?e.effect.first:c.next),nn(e,c,m),c=m;continue}for(h=[],v=[];f!==null&&f!==m;)(d??=new Set).add(f),v.push(f),f=f.next;if(f===null)continue}(m.f&zt)===0&&h.push(m),c=m,f=m.next}if(e.outrogroups!==null){for(const R of e.outrogroups)R.pending.size===0&&(Yr(tr(R.done)),e.outrogroups?.delete(R));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||d!==void 0){var C=[];if(d!==void 0)for(m of d)(m.f&ft)===0&&C.push(m);for(;f!==null;)(f.f&ft)===0&&f!==e.fallback&&C.push(f),f=f.next;var M=C.length;if(M>0){var q=(i&zi)!==0&&l===0?r:null;if(o){for(y=0;y<M;y+=1)C[y].nodes?.a?.measure();for(y=0;y<M;y+=1)C[y].nodes?.a?.fix()}Ga(e,C,q)}}o&&un(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function qa(e,t,r,i,s,o,l,u){var f=(l&$o)!==0?(l&na)===0?is(r,!1,!1):$t(r):null,d=(l&ea)!==0?$t(s):null;return{v:f,i:d,e:dt(()=>(o(t,f??r,d??s,u),()=>{e.delete(i)}))}}function Gn(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&zt)===0?t.nodes.start:r;i!==null;){var l=Wn(i);if(o.before(i),i===s)return;i=l}}function nn(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Xt(e,t,...r){var i=new Gr(e);Un(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Jt)}function qr(e,t,r){var i=new Gr(e);Un(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Jt)}function Fe(e,t){var r=void 0,i;Pa(()=>{r!==(r=t())&&(i&&(tt(i),i=null),r&&(i=dt(()=>{Ur(()=>r(e))})))})}function Ms(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Ms(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Xa(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Ms(e))&&(i&&(i+=" "),i+=t);return i}function Mt(e){return typeof e=="object"?Xa(e):e??""}function Ka(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function As(e,t=!1){var r=t?" !important;":";",i="";for(var s in e){var o=e[s];o!=null&&o!==""&&(i+=" "+s+": "+o+r)}return i}function Xr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Za(e,t){if(t){var r="",i,s;if(Array.isArray(t)?(i=t[0],s=t[1]):i=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,l=0,u=!1,f=[];i&&f.push(...Object.keys(i).map(Xr)),s&&f.push(...Object.keys(s).map(Xr));var d=0,c=-1;const p=e.length;for(var g=0;g<p;g++){var h=e[g];if(u?h==="/"&&e[g-1]==="*"&&(u=!1):o?o===h&&(o=!1):h==="/"&&e[g+1]==="*"?u=!0:h==='"'||h==="'"?o=h:h==="("?l++:h===")"&&l--,!u&&o===!1&&l===0){if(h===":"&&c===-1)c=g;else if(h===";"||g===p-1){if(c!==-1){var v=Xr(e.substring(d,c).trim());if(!f.includes(v)){h!==";"&&g++;var _=e.substring(d,g).trim();r+=" "+_+";"}}d=g+1,c=-1}}}}return i&&(r+=As(i)),s&&(r+=As(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function O(e,t,r,i,s,o){var l=e.__className;if(l!==r||l===void 0){var u=Ka(r);u==null?e.removeAttribute("class"):e.className=u,e.__className=r}return o}function Kr(e,t={},r,i){for(var s in r){var o=r[s];t[s]!==o&&(r[s]==null?e.style.removeProperty(s):e.style.setProperty(s,o,i))}}function St(e,t,r,i){var s=e.__style;if(s!==t){var o=Za(t,i);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else i&&(Array.isArray(i)?(Kr(e,r?.[0],i[0]),Kr(e,r?.[1],i[1],"important")):Kr(e,r,i));return i}const Ja=Symbol("is custom element"),Qa=Symbol("is html");function Le(e,t,r,i){var s=ja(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[zo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&$a(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ja(e){return e.__attributes??={[Ja]:e.nodeName.includes("-"),[Qa]:e.namespaceURI===ua}}var Os=new Map;function $a(e){var t=e.getAttribute("is")||e.nodeName,r=Os.get(t);if(r)return r;Os.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=Oo(s);for(var l in i)i[l].set&&r.push(l);s=Ai(s)}return r}class Zr{#e=new WeakMap;#n;#t;static entries=new WeakMap;constructor(t){this.#t=t}observe(t,r){var i=this.#e.get(t)||new Set;return i.add(r),this.#e.set(t,i),this.#r().observe(t,this.#t),()=>{var s=this.#e.get(t);s.delete(r),s.size===0&&(this.#e.delete(t),this.#n.unobserve(t))}}#r(){return this.#n??(this.#n=new ResizeObserver(t=>{for(var r of t){Zr.entries.set(r.target,r);for(var i of this.#e.get(r.target)||[])i(r)}}))}}var el=new Zr({box:"border-box"});function dr(e,t,r){var i=el.observe(e,()=>r(e[t]));Ur(()=>(j(()=>r(e[t])),i))}function Ns(e,t){return e===t||e?.[Nn]===t}function st(e={},t,r,i){return Ur(()=>{var s,o;return cs(()=>{s=o,o=i?.()||[],j(()=>{e!==r(...o)&&(t(e,...o),s&&Ns(r(...s),e)&&t(null,...s))})}),()=>{un(()=>{o&&Ns(r(...o),e)&&t(null,...o)})}}),e}function Fs(e,t,r){if(e==null)return t(void 0),Zt;const i=j(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}function tl(e){let t;return Fs(e,r=>t=r)(),t}let cr=!1,Jr=Symbol();function nl(e,t,r){const i=r[t]??={store:null,source:is(void 0),unsubscribe:Zt};if(i.store!==e&&!(Jr in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=Zt;else{var s=!0;i.unsubscribe=Fs(e,o=>{s?i.source.v=o:b(i.source,o)}),s=!1}return e&&Jr in r?tl(e):n(i.source)}function rl(){const e={};function t(){Wr(()=>{for(var r in e)e[r].unsubscribe();Mi(e,Jr,{enumerable:!1,value:!0})})}return[e,t]}function il(e){var t=cr;try{return cr=!1,[e(),cr]}finally{cr=t}}function De(e,t,r,i){var s=(r&sa)!==0,o=(r&oa)!==0,l=i,u=!0,f=()=>(u&&(u=!1,l=o?j(i):i),l),d;if(s){var c=Nn in e||Uo in e;d=wn(e,t)?.set??(c&&t in e?k=>e[t]=k:void 0)}var g,h=!1;s?[g,h]=il(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=f(),d&&(Ko(),d(g)));var v;if(v=()=>{var k=e[t];return k===void 0?f():(u=!0,k)},(r&ia)===0)return v;if(d){var _=e.$$legacy;return(function(k,S){return arguments.length>0?((!S||_||h)&&d(S?v():k),k):v()})}var p=!1,m=((r&ra)!==0?or:es)(()=>(p=!1,v()));s&&n(m);var y=Ee;return(function(k,S){if(arguments.length>0){const D=S?n(m):s?et(k):k;return b(m,D),p=!0,l!==void 0&&(l=D),k}return en&&p||(y.f&Ut)!==0?m.v:n(m)})}function sl(){return ce===null&&Xo(),(ce.ac??=new AbortController).signal}function Yn(e){Ze===null&&Ui(),qe(()=>{const t=j(e);if(typeof t=="function")return t})}const ol="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ol);function Qr(e,t=void 0){return function(r){return r.key==="Enter"||r.key===" "&&!r.preventDefault()?e.call(t,r):void 0}}function Je(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function al(e){return t=>{let r=i=>{t&&!t.contains(i.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:i}}))};return document.addEventListener(e,r,!0),()=>{document.removeEventListener(e,r,!0)}}}function jr(e){return t=>{let r=new ResizeObserver(i=>{for(let s of i)e(t,s)});return r.observe(t),()=>{r.unobserve(t)}}}function Hs(e,t){return r=>{let i=new IntersectionObserver(s=>{for(let o of s)e(r,o)},t);return i.observe(r),()=>{i.unobserve(r)}}}function ge(...e){return Object.assign(...e)}function gn(e){return Object.keys(e)}function Ws(e){return Object.entries(e)}function $r(e){return Math.floor(e)}function ll(e){return Math.ceil(e)}function At(...e){return Math.min(...e)}function vt(...e){return Math.max(...e)}function ul(){return Symbol("ec")}function Te(e){return e.length}function kt(e){return!Te(e)}function qn(e){return Array.isArray(e)}function ke(e){return typeof e=="function"}function fl(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ei(e){return e instanceof Date}function dl(e){return e()}function cl(e){e.forEach(dl)}function hl(){}const hr=e=>e;function mn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const vr=86400;function Ot(e=void 0){return e!==void 0?ei(e)?Ys(e):ml(e):Ys(new Date)}function We(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let r=0,i=2;for(let s of e.split(":",3))r+=parseInt(s,10)*Math.pow(60,i--);e={seconds:r}}else ei(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function Z(e){return new Date(e.getTime())}function Se(e,t,r=1){e.setUTCFullYear(e.getUTCFullYear()+r*t.years);let i=e.getUTCMonth()+r*t.months;for(e.setUTCMonth(i),i%=12,i<0&&(i+=12);e.getUTCMonth()!==i;)xn(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function gr(e,t,r=1){return Se(e,t,-r)}function Ct(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function xn(e,t=1){return Ct(e,-t)}function Rt(e){return e.setUTCHours(0,0,0,0),e}function Ve(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function gt(e,t=19){return e.toISOString().substring(0,t)}function Qe(e,...t){return t.every(r=>e.getTime()===r.getTime())}function vl(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Us(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function zs(e){return typeof e=="string"&&e.length<=10}function ti(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function _e(e){return e.seconds}function Vs(e,t,r){return Se(e,t),Gs(e,r,Ct),e}function Bs(e,t,r){return gr(e,t),Gs(e,r,xn),e}function Gs(e,t,r){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)r(e)}function gl(e,t){e=Z(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-r)/1e3/vr+1)/7)}function Ys(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function ml(e){const t=e.match(/\d+/g);return new Date(Date.UTC(Number(t[0]),Number(t[1])-1,Number(t[2]),Number(t[3]||0),Number(t[4]||0),Number(t[5]||0)))}let ni=ul();function qs(e,t){e[ni]=t}function pl(e){return!!e?.[ni]}function Kt(e){return e[ni]}function Xs(e,t,r,i=[]){let s=document.createElement(e);s.className=t,typeof r=="string"?s.innerText=r:r.domNodes?s.replaceChildren(...r.domNodes):r.html&&(s.innerHTML=r.html);for(let o of i)s.setAttribute(...o);return s}function rn(e){return e.getBoundingClientRect()}function Ks(e,t){for(;t--;)e=e.parentElement;return e}function pn(e){return rn(e).height}function Sn(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(pl(s))return s;if(s.shadowRoot&&!i.includes(s.shadowRoot)){let o=Sn(e,t,s.shadowRoot,i);if(o)return o}}return null}function Xn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function ri(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function _l(e,t,r,i){return{type:e,title:t,currentStart:r.start,currentEnd:r.end,activeStart:i.start,activeEnd:i.end,calendar:void 0}}function je(e){return e=ge({},e),e.currentStart=Ve(e.currentStart),e.currentEnd=Ve(e.currentEnd),e.activeStart=Ve(e.activeStart),e.activeEnd=Ve(e.activeEnd),e}let yl=1;function mr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${yl++}}`,resourceIds:ii(t,"resourceId").map(String),allDay:t.allDay??(zs(t.start)&&zs(t.end)),start:Ot(t.start),end:Ot(t.end),title:t.title??"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display??"auto",extendedProps:t.extendedProps??{},backgroundColor:t.backgroundColor??t.color,textColor:t.textColor,classNames:ii(t,"className"),styles:ii(t,"style")};if(r.allDay){Rt(r.start);let i=Z(r.end);Rt(r.end),(!Qe(r.end,i)||Qe(r.end,r.start))&&Ct(r.end)}return r})}function ii(e,t){let r=e[t+"s"]??e[t]??[];return qn(r)?r:[r]}function wl(e){return e.map(t=>({events:t.events,url:t.url&&t.url.trimEnd("&")||"",method:t.method&&t.method.toUpperCase()||"GET",extraParams:t.extraParams||{}}))}function bl(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?ti(Z(e.start),e.end):e.start),u;if(r&&(u=ke(r)?r({event:Xe(e.event),timeText:l,view:je(o)}):r),u===void 0){let f;switch(e.event.display){case"background":f=[];break;case"pointer":f=e.event.allDay?[]:[Zs(l,e,i)];break;default:f=[...e.event.allDay?[]:[Zs(l,e,i)],Xs("h4",i.eventTitle,e.event.title)]}u={domNodes:f}}return[l,u]}function Zs(e,t,r){return Xs("time",r.eventTime,e,[["datetime",gt(t.start)]])}function kl(e,t,r){let i=t.classNames;return e&&(ke(e)&&(e=e({event:Xe(t),view:je(r)})),i=[...qn(e)?e:[e],...i]),i}function Xe(e){return Js(e,Ve)}function si(e){return Js(e,Z)}function Js(e,t){return e=ge({},e),e.start=t(e.start),e.end=t(e.end),e}function oi(e,t){e.length=t.length;for(let r of e)r?.reposition()}function Rn(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function pr(e){return Cl(e)||Dl(e)||El(e)}function mt(e){return e==="background"}function Cl(e){return e==="preview"}function Dl(e){return e==="ghost"}function El(e){return e==="pointer"}function Kn(e,t,r){return t=e.start>t?e.start:t,r=e.end<r?e.end:r,{start:t,end:r,event:e,zeroDuration:Qe(t,r)}}function In(e,t,r=!0){let i=[],s,o,l,u;for(let{gridColumn:f,gridRow:d,resource:c,dayStart:g,dayEnd:h,disabled:v}of t)!v&&Rn(e,g,h,c)&&(i.push(g),s=h,o||(o=f,l=d,u=c));if(i.length){let f=Kn(e,i[0],s);return ge(f,{gridColumn:o,gridRow:l,resource:u,dates:i}),r&&ai(f),[f]}return[]}function Qs(e){let t={},r={};for(let i of e){let{gridColumn:s,gridRow:o}=i;for(let u=1;u<i.dates.length;++u){let f=`${o}_${s+u}`;r[f]?r[f].chunks.push(i):r[f]={sorted:!1,chunks:[i]}}let l=`${o}_${s}`;i.long=r[l],i.prev=t[l],t[l]=i}}function js(e,t,r=1){e.prev&&(r=e.prev.bottom+1);let i=r+t;if(e.long){let s=e.long;s.sorted||(s.chunks.sort((o,l)=>o.top-l.top),s.sorted=!0);for(let o of s.chunks)if(r<o.bottom&&i>o.top){let l=o.bottom-r+1;r+=l,i+=l}}return ge(e,{top:r,bottom:i}),r}const $s=new WeakMap;let Tl=1;function ai(e){let{event:t,gridColumn:r,gridRow:i}=e,s=$s.get(t);s||(s=Tl++,$s.set(t,s)),e.id=`${s}-${r}-${i}`}function _n(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return j(()=>{s=ke(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(Ve(o))}}}function eo(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return j(()=>{if(ke(i))s=i;else{let o=new Intl.DateTimeFormat(r,i);s=(l,u)=>{if(l<=u)return o.formatRange(l,u);{let f=o.formatRangeToParts(u,l),d="",c=["startRange","endRange"],g=[!1,!1];for(let h of f){let v=c.indexOf(h.source);v>=0?g[v]||(d+=xl(c[1-v],f),g[v]=!0):d+=h.value}return d}}}}),{formatRange:(o,l)=>s(Ve(o),Ve(l))}}}function xl(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function Zn(e){return _r(e,"day")}function Jn(e){return _r(e,"week")}function li(e){return _r(e,"month")}function Sl(e){return _r(e,"year")}function _r(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function ot(e){return t=>({...t,view:e})}function Rl(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=Rt(Ot(t))),r&&(r=Rt(Ot(r)))),{start:t,end:r}}function Ln(e,t){return t.start&&e<t.start||t.end&&e>t.end}function ui(e){let t=[];return to(e,0,t),t}function to(e,t,r){let i=[];for(let s of e){let o=Il(s);i.push(o),r.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};qs(o,l),s.children&&(l.children=to(s.children,t+1,r))}return i}function Il(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:no(e),eventTextColor:ro(e),extendedProps:e.extendedProps??{}}}function no(e){return e?.eventBackgroundColor}function ro(e){return e?.eventTextColor}function io(e,t){return kt(e.resourceIds)?void 0:t.find(r=>e.resourceIds.includes(r.id))}function so(e,t,r,i,s){let o=[];e=Z(e);let l=Z(e);for(Se(e,i.min),Se(l,i.max);e<l;)o.push([gt(e),s.format(e)]),Se(e,t,r);let u=$r((e-l)/1e3/_e(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function oo(e,t,r,i,s){let o=We(e),l=We(t);if(r){let u=We(At(_e(o),vt(0,_e(l)-vr))),f=We(vt(_e(l),_e(u)+vr)),d=ke(r?.eventFilter)?r.eventFilter:c=>!mt(c.display);e:for(let c of i){let g=Se(Z(c),o),h=Se(Z(c),l),v=Se(Z(c),u),_=Se(Z(c),f);for(let p of s)if(!p.allDay&&d(p)&&p.start<_&&p.end>v){if(p.start<g){let m=vt((p.start-c)/1e3,_e(u));m<_e(o)&&(o.seconds=m)}if(p.end>h){let m=At((p.end-c)/1e3,_e(f));m>_e(l)&&(l.seconds=m)}if(_e(o)===_e(u)&&_e(l)===_e(f))break e}}}return{min:o,max:l}}class fi extends Map{#e=new Map;#n=K(0);#t=K(0);#r=qt||-1;constructor(t){if(super(),t){for(var[r,i]of t)super.set(r,i);this.#t.v=super.size}}#s(t){return qt===this.#r?K(t):$t(t)}has(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#s(0),r.set(t,i);else return n(this.#n),!1}return n(i),!0}forEach(t,r){this.#i(),super.forEach(t,r)}get(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#s(0),r.set(t,i);else{n(this.#n);return}}return n(i),super.get(t)}set(t,r){var i=this.#e,s=i.get(t),o=super.get(t),l=super.set(t,r),u=this.#n;if(s===void 0)s=this.#s(0),i.set(t,s),b(this.#t,super.size),Lt(u);else if(o!==r){Lt(s);var f=u.reactions===null?null:new Set(u.reactions),d=f===null||!s.reactions?.every(c=>f.has(c));d&&Lt(u)}return l}delete(t){var r=this.#e,i=r.get(t),s=super.delete(t);return i!==void 0&&(r.delete(t),b(this.#t,super.size),b(i,-1),Lt(this.#n)),s}clear(){if(super.size!==0){super.clear();var t=this.#e;b(this.#t,0);for(var r of t.values())b(r,-1);Lt(this.#n),t.clear()}}#i(){n(this.#n);var t=this.#e;if(this.#t.v!==t.size){for(var r of super.keys())if(!t.has(r)){var i=this.#s(0);t.set(r,i)}}for([,i]of this.#e)n(i)}keys(){return n(this.#n),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return n(this.#t),super.size}}function Ll(e){let t={buttonText:{today:"today"},customButtons:{},customScrollbars:!1,date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,refetchResourcesOnNavigate:!1,resources:[],selectable:!1,theme:{active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",colHead:"ec-col-head",customScrollbars:"ec-custom-scrollbars",day:"ec-day",dayHead:"ec-day-head",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",grid:"ec-grid",header:"ec-header",hidden:"ec-hidden",highlight:"ec-highlight",icon:"ec-icon",main:"ec-main",noBeb:"ec-no-beb",noIeb:"ec-no-ieb",today:"ec-today",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"]},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let r of e)r.createOptions?.(t);return t}function Pl(e){let t={date:r=>Rt(Ot(r)),duration:We,events:mr,eventSources:wl,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>Rt(Ot(i))),resources:r=>qn(r)?ui(r):r,validRange:Rl};for(let r of e)r.createParsers?.(t);return t}const ao=["buttonText","customButtons","theme"];function Ml(e,t,r){let i=Ll(t),s=Pl(t);i=di(i,s),r=di(r,s);let o=ci(i,"views")??{},l=ci(r,"views")??{},u=new fi;uo(u,i);let f={},d={};function c(){r.view&&u.set("view",r.view);let g=new Set([...gn(o),...gn(l)]);for(let h of g){let v=l[h]??{},_=lo(i,o[h]??o[v.type]??{}),p=lo(_,r,v),m=ci(p,"component");delete p.view;for(let y of gn(p))u.has(y)?(f[y]||(f[y]=[]),f[y].push(ao.includes(y)?k=>p[y]=ke(k)?k(_[y]):k:k=>p[y]=k)):delete p[y];fn(()=>{let y=u.get("view");j(()=>{y===h&&(e.setViewComponent(m),d=p,uo(u,p))})})}}return{proxy:new Proxy(u,{set(g,h,v){return d[h]=v,g.set(h,v),!0},get(g,h){return g.get(h)}}),setOption(g,h,v){u.has(g)&&(!v&&g in s&&(h=s[g](h)),f[g]?.forEach(_=>_(h)),u.set(g,d[g]??h))},initEffects:c}}function di(e,t){let r={...e};for(let i of gn(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of gn(e.views))r.views[i]=di(e.views[i],t)}return r}function ci(e,t){let r=e[t];return delete e[t],r}function lo(...e){let t={};for(let r of e){let i={};for(let s of ao)ke(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function uo(e,t){for(let[r,i]of Ws(t))e.set(r,i)}function Al(e,t){let r=[];for(let i of gn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function Ol(e,t){return()=>{let{activeRange:r,fetchedRange:{events:i},viewDates:s,options:{events:o,eventSources:l,lazyFetching:u}}=e;j(()=>{fo(l.map(f=>ke(f.events)?f.events:f),o,mr,f=>e.events=f,r,i,s,!0,u,t)})}}function Nl(e,t){return()=>{let{activeRange:r,fetchedRange:{resources:i},viewDates:s,options:{lazyFetching:o,refetchResourcesOnNavigate:l,resources:u}}=e;j(()=>{fo(qn(u)?[]:[u],u,ui,f=>e.resources=f,r,i,s,l,o,t)})}}function fo(e,t,r,i,s,o,l,u,f,d){if(!kt(l)){if(kt(e)){i(t);return}if((u||!o.start)&&(!f||!o.start||o.start>s.start||o.end<s.end)){let c=[],g=p=>d.stop(),h=p=>{c=c.concat(r(p)),i(c),d.stop()},v=gt(s.start),_=gt(s.end);for(let p of e)if(d.start(),ke(p)){let m=p(u?{start:Ve(s.start),end:Ve(s.end),startStr:v,endStr:_}:{},h,g);m!==void 0&&Promise.resolve(m).then(h,g)}else{let m=ke(p.extraParams)?p.extraParams():ge({},p.extraParams);u&&(m.start=v,m.end=_),m=new URLSearchParams(m);let y=p.url,k={},S;["GET","HEAD"].includes(p.method)?y+=(y.includes("?")?"&":"?")+m:(k["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",S=String(m)),fetch(y,{method:p.method,headers:k,body:S,signal:sl(),credentials:"same-origin"}).then(D=>D.json()).then(h).catch(g)}ge(o,s)}}}function Fl(e){let t=0;function r(i){let{loading:s}=e;ke(s)&&s(i)}return{start:()=>++t===1&&r(!0),stop:()=>--t===0&&r(!1)}}function Hl(e){return()=>{let t=setInterval(()=>{let r=Ot(),i=Rt(Z(r));e.now=r,Qe(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function Wl(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;j(()=>{ke(r)&&r({start:Ve(t.start),end:Ve(t.end),startStr:gt(t.start),endStr:gt(t.end),view:je(e.view)})})}}function Ul(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;j(()=>{ke(i)&&(t||(t=setTimeout(()=>{t=null,i({view:je(e.view)})})))})}}function zl(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;j(()=>{ke(r)&&vn().then(()=>r({view:je(e.view)}))})}}function Vl(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return j(()=>{s=Z(t),r.months?s.setUTCDate(1):r.inWeeks&&Us(s,i),o=Se(Z(s),r)}),{start:s,end:o}}}function Bl(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return j(()=>{i=Z(t.start),s=Z(t.end)}),r?r(i,s):{start:i,end:s}}}function Gl(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o,view:l}}=e,u=[...t];return j(()=>{if(ke(r)){let f=t.map(Xe),d=je(e.view);u=u.filter((c,g)=>r({event:Xe(c),index:g,events:f,view:d}))}s&&(u=u.filter(f=>o.some(d=>f.resourceIds.includes(d.id)))),ke(i)?u.sort((f,d)=>i(Xe(f),Xe(d))):u.sort((f,d)=>f.start-d.start||d.allDay-f.allDay)}),u}}function Yl(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return j(()=>{let o=Rt(Z(r.start)),l=Rt(Z(r.end));for(;o<l;)i.includes(o.getUTCDay())||s.push(Z(o)),Ct(o);if(!s.length&&i.length&&i.length<7){for(;i.includes(o.getUTCDay());)Ct(o);vn().then(()=>{e.setOption("date",o)})}}),s}}function ql(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return j(()=>{i=r.formatRange(t.start,xn(Z(t.end)))}),i}}function Xl(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return j(()=>{o=_l(s,i,r,t)}),o}}class Kl{#e;get auxComponents(){return n(this.#e)}set auxComponents(t){b(this.#e,t,!0)}#n;get currentRange(){return n(this.#n)}set currentRange(t){b(this.#n,t)}#t;get activeRange(){return n(this.#t)}set activeRange(t){b(this.#t,t)}#r;get fetchedRange(){return n(this.#r)}set fetchedRange(t){b(this.#r,t,!0)}#s;get events(){return n(this.#s)}set events(t){b(this.#s,t)}#i;get filteredEvents(){return n(this.#i)}set filteredEvents(t){b(this.#i,t)}#o;get mainEl(){return n(this.#o)}set mainEl(t){b(this.#o,t,!0)}#a;get now(){return n(this.#a)}set now(t){b(this.#a,t,!0)}#l;get resources(){return n(this.#l)}set resources(t){b(this.#l,t)}#u;get today(){return n(this.#u)}set today(t){b(this.#u,t,!0)}#f;get intlEventTime(){return n(this.#f)}set intlEventTime(t){b(this.#f,t)}#d;get intlDayHeader(){return n(this.#d)}set intlDayHeader(t){b(this.#d,t)}#h;get intlDayHeaderAL(){return n(this.#h)}set intlDayHeaderAL(t){b(this.#h,t)}#v;get intlTitle(){return n(this.#v)}set intlTitle(t){b(this.#v,t)}#g;get viewDates(){return n(this.#g)}set viewDates(t){b(this.#g,t)}#c;get viewTitle(){return n(this.#c)}set viewTitle(t){b(this.#c,t)}#w;get view(){return n(this.#w)}set view(t){b(this.#w,t)}#b;get viewComponent(){return n(this.#b)}set viewComponent(t){b(this.#b,t,!0)}#k;get extensions(){return n(this.#k)}set extensions(t){b(this.#k,t,!0)}#_;get features(){return n(this.#_)}set features(t){b(this.#_,t,!0)}#m;get interaction(){return n(this.#m)}set interaction(t){b(this.#m,t,!0)}#p;get iClasses(){return n(this.#p)}set iClasses(t){b(this.#p,t,!0)}#y;get iClass(){return n(this.#y)}set iClass(t){b(this.#y,t,!0)}#C;constructor(t,r){let{proxy:i,setOption:s,initEffects:o}=Ml(this,t,r);this.options=i,this.#C=s,this.#e=K(et([])),this.#n=a(Vl(this)),this.#t=a(Bl(this)),this.#r=K(et({events:{},resources:{}})),this.#s=K([]),this.#i=a(Gl(this)),this.#o=K(),this.#a=K(et(Ot())),this.#l=K([]),this.#u=K(et(Rt(Ot()))),this.#f=a(eo(this,"eventTimeFormat")),this.#d=a(_n(this,"dayHeaderFormat")),this.#h=a(_n(this,"dayHeaderAriaLabelFormat")),this.#v=a(eo(this,"titleFormat")),this.#g=a(Yl(this)),this.#c=a(ql(this)),this.#w=a(Xl(this)),this.#b=K(),this.#k=K(et({})),this.#_=K(et([])),this.#m=K(et({})),this.iEvents=new fi,this.#p=K(et(hr)),this.#y=K();for(let l of t)l.initState?.(this);o(),this.#D()}#D(){let t=Fl(this.options);fn(Hl(this)),qe(Ol(this,t)),qe(Nl(this,t)),qe(Wl(this)),qe(Ul(this)),qe(zl(this))}setViewComponent(t){this.extensions={},this.features=[],this.viewComponent=t(this)}setOption(t,r,i=!0){this.#C(t,r,i)}}var Zl=$("<h2></h2>"),Jl=$("<button><i></i></button>"),Ql=$("<button><i></i></button>"),jl=$("<button> </button>"),$l=$("<button></button>"),eu=$("<button> </button>");function co(e,t){ye(t,!0);let r=re("state"),i=a(()=>r.currentRange),s=a(()=>r.today),o=a(()=>r.viewTitle),l=a(()=>r.viewDates),u=a(()=>r.options.buttonText),f=a(()=>r.options.customButtons),d=a(()=>r.options.date),c=a(()=>r.options.duration),g=a(()=>r.options.hiddenDays),h=a(()=>r.options.theme),v=a(()=>r.options.validRange),_=a(()=>r.options.view),p=K(!1),m=K(!1),y=K(!1),k=!1;fn(()=>{n(l),n(v),t.buttons,j(()=>{k||(k=!0,t.buttons.includes("prev")&&(b(p,!1),n(v).start&&b(p,S(D),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,S(E),!0)),t.buttons.includes("today")&&(b(y,n(s)>=n(i).start&&n(s)<n(i).end,!0),!n(y)&&(n(v).start||n(v).end)&&b(y,S(w),!0)),vn().then(()=>k=!1))})});function S(q){let R=n(d);q();let te=n(l).every(he=>Ln(he,n(v)));return r.setOption("date",R),te}function D(){r.setOption("date",Bs(Z(n(d)),n(c),n(g)))}function E(){r.setOption("date",Vs(Z(n(d)),n(c),n(g)))}function w(){r.setOption("date",Z(n(s)))}var C=le(),M=Q(C);ue(M,17,()=>t.buttons,Ce,(q,R)=>{var te=le(),he=Q(te);{var be=X=>{var W=Zl();Fe(W,()=>Je(n(o))),ae(()=>O(W,1,n(h).title)),x(X,W)},ie=X=>{var W=le(),P=Q(W);{var H=G=>{var B=Jl();B.__click=D;var oe=de(B);ae(()=>{O(B,1,`${n(h).button??""} ec-${n(R)??""}`),Le(B,"aria-label",n(u).prev),Le(B,"title",n(u).prev),B.disabled=n(p),O(oe,1,`${n(h).icon??""} ec-${n(R)??""}`)}),x(G,B)},F=G=>{var B=le(),oe=Q(B);{var U=T=>{var z=Ql();z.__click=E;var Oe=de(z);ae(()=>{O(z,1,`${n(h).button??""} ec-${n(R)??""}`),Le(z,"aria-label",n(u).next),Le(z,"title",n(u).next),z.disabled=n(m),O(Oe,1,`${n(h).icon??""} ec-${n(R)??""}`)}),x(T,z)},L=T=>{var z=le(),Oe=Q(z);{var Pe=Me=>{var He=jl();He.__click=w;var pt=de(He);ae(()=>{O(He,1,`${n(h).button??""} ec-${n(R)??""}`),He.disabled=n(y),Ls(pt,n(u)[n(R)])}),x(Me,He)},at=Me=>{var He=le(),pt=Q(He);{var Nt=J=>{var Re=$l();Re.__click=function(...N){n(f)[n(R)].click?.apply(this,N)},Fe(Re,()=>Je(n(f)[n(R)].text)),ae(()=>O(Re,1,Mt([n(h).button,`ec-${n(R)}`,n(f)[n(R)].active&&n(h).active]))),x(J,Re)},V=J=>{var Re=le(),N=Q(Re);{var Y=ve=>{var me=eu();me.__click=()=>r.setOption("view",n(R));var ne=de(me);ae(()=>{O(me,1,Mt([n(h).button,`ec-${n(R)}`,n(_)===n(R)&&n(h).active])),Ls(ne,n(u)[n(R)])}),x(ve,me)};fe(N,ve=>{n(R)!==""&&ve(Y)},!0)}x(J,Re)};fe(pt,J=>{n(f)[n(R)]?J(Nt):J(V,!1)},!0)}x(Me,He)};fe(Oe,Me=>{n(R)==="today"?Me(Pe):Me(at,!1)},!0)}x(T,z)};fe(oe,T=>{n(R)==="next"?T(U):T(L,!1)},!0)}x(G,B)};fe(P,G=>{n(R)==="prev"?G(H):G(F,!1)},!0)}x(X,W)};fe(he,X=>{n(R)==="title"?X(be):X(ie,!1)})}x(q,te)}),x(e,C),we()}tn(["click"]);var tu=$("<div><!></div>"),nu=$("<div></div>"),ru=$("<nav></nav>");function iu(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.headerToolbar),s=a(()=>n(r).options.theme),o=a(()=>{let u={};for(let f of["start","center","end"])u[f]=n(i)[f]?.split(" ").map(d=>d.split(","))??[];return u});var l=ru();ue(l,21,()=>gn(n(o)),Ce,(u,f)=>{var d=nu();ue(d,21,()=>n(o)[n(f)],Ce,(c,g)=>{var h=le(),v=Q(h);{var _=m=>{var y=tu(),k=de(y);co(k,{get buttons(){return n(g)}}),ae(()=>O(y,1,n(s).buttonGroup)),x(m,y)},p=m=>{co(m,{get buttons(){return n(g)}})};fe(v,m=>{n(g).length>1?m(_):m(p,!1)})}x(c,h)}),ae(()=>O(d,1,`ec-${n(f)??""}`)),x(u,d)}),ae(()=>O(l,1,n(s).toolbar)),x(e,l),we()}var su=$("<div><!> <!> <!></div>");function ou(e,t){ye(t,!0);let r=De(t,"plugins",19,()=>[]),i=De(t,"options",19,()=>({})),s=new Kl(r(),i());Fn("state",s);let o=a(()=>s.auxComponents),l=a(()=>s.features),u=a(()=>s.events),f=a(()=>s.interaction),d=a(()=>s.iClass),c=a(()=>s.view),g=a(()=>s.viewComponent),h=a(()=>s.options.date),v=a(()=>s.options.duration),_=a(()=>s.options.height),p=a(()=>s.options.hiddenDays),m=a(()=>s.options.customScrollbars),y=a(()=>s.options.theme),k={...i()};fn(()=>{for(let[L,T]of Al(i(),k))j(()=>{S(L,T)});ge(k,i())});function S(L,T){return fl(T)&&(T={...T}),qn(T)&&(T=[...T]),s.setOption(L,T,!1),this}function D(L){let T=s.options[L];return ei(T)?Ve(T):T}function E(){return s.fetchedRange.resources={},this}function w(){return s.fetchedRange.events={},this}function C(){return n(u).map(Xe)}function M(L){L=String(L);for(let T of n(u))if(T.id===L)return Xe(T);return null}function q(L){return L=mr([L])[0],n(u).push(L),s.events=[...n(u)],Xe(L)}function R(L){let T=String(L.id),z=n(u).findIndex(Oe=>Oe.id===T);return z>=0?(L=mr([L])[0],n(u)[z]=L,s.events=[...n(u)],Xe(L)):null}function te(L){L=String(L);let T=n(u).findIndex(z=>z.id===L);return T>=0&&(n(u).splice(T,1),s.events=[...n(u)]),this}function he(){return je(n(c))}function be(){return n(f).action?.unselect(),this}function ie(L,T){let z=Sn(L,T);if(z){let Oe=Kt(z)(L,T);return Oe.date=Ve(Oe.date),Oe}return null}function X(){return s.setOption("date",Vs(Z(n(h)),n(v),n(p))),this}function W(){return s.setOption("date",Bs(Z(n(h)),n(v),n(p))),this}var P={setOption:S,getOption:D,refetchResources:E,refetchEvents:w,getEvents:C,getEventById:M,addEvent:q,updateEvent:R,removeEventById:te,getView:he,unselect:be,dateFromPoint:ie,next:X,prev:W},H=su();let F;var G=de(H);iu(G,{});var B=se(G,2);{var oe=L=>{var T=le(),z=Q(T);qr(z,()=>n(g),(Oe,Pe)=>{Pe(Oe,{})}),x(L,T)};fe(B,L=>{n(g)&&L(oe)})}var U=se(B,2);return ue(U,17,()=>n(o),Ce,(L,T)=>{var z=le(),Oe=Q(z);qr(Oe,()=>n(T),(Pe,at)=>{at(Pe,{})}),x(L,z)}),ae(L=>{O(H,1,Mt([n(y).calendar,n(y).view,n(d)&&n(y)[n(d)],n(m)&&n(y).customScrollbars])),Le(H,"role",L),F=St(H,"",F,{height:n(_)})},[()=>n(l).includes("list")?"list":"table"]),x(e,H),we(P)}function au(e){return()=>{let{viewDates:t,options:{duration:r,hiddenDays:i}}=e,s;return j(()=>s=r.months||r.inWeeks?7-i.length:t.length),s}}function lu(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,l=[];return j(()=>{let u=[],f=1,d=1;for(let c of s)u.push({gridColumn:f,gridRow:d,resource:void 0,dayStart:c,dayEnd:Ct(Z(c)),disabled:Ln(c,i),highlight:r.some(g=>Qe(g,c))}),f===o&&(l.push(u),u=[],f=0,++d),++f}),l}}function uu(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return j(()=>{for(let l of r)for(let u of i)mt(l.display)?l.allDay&&(o=o.concat(In(l,u))):s=s.concat(In(l,u));Qs(s)}),{chunks:s,bgChunks:o}}}function fu(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&j(()=>{for(let l of i)s=s.concat(In(o,l,!1))});return s}}let du=class{#e;get colsCount(){return n(this.#e)}set colsCount(t){b(this.#e,t)}#n;get grid(){return n(this.#n)}set grid(t){b(this.#n,t)}#t;get gridEl(){return n(this.#t)}set gridEl(t){b(this.#t,t,!0)}#r;get chunks(){return n(this.#r)}set chunks(t){b(this.#r,t)}#s;get bgChunks(){return n(this.#s)}set bgChunks(t){b(this.#s,t)}#i;get iChunks(){return n(this.#i)}set iChunks(t){b(this.#i,t)}#o;get intlDayCell(){return n(this.#o)}set intlDayCell(t){b(this.#o,t)}#a;get intlDayPopover(){return n(this.#a)}set intlDayPopover(t){b(this.#a,t)}#l;get popupDay(){return n(this.#l)}set popupDay(t){b(this.#l,t,!0)}constructor(t){this.#e=a(au(t)),this.#n=a(lu(t,this)),this.#t=K();let r=a(uu(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#r=a(()=>n(i)),this.#s=a(()=>n(s)),this.#i=a(fu(t,this)),this.hiddenChunks=new fi,this.#o=a(_n(t,"dayCellFormat")),this.#a=a(_n(t,"dayPopoverFormat")),this.#l=K(null)}};var cu=$("<div><!></div>");function yr(e,t){ye(t,!0);let r=De(t,"el",15),i=De(t,"allDay",3,!1),s=De(t,"resource",3,void 0),o=De(t,"dateFromPoint",3,()=>t.date),l=De(t,"classes",3,hr),u=De(t,"disabled",3,!1),f=De(t,"highlight",3,!1),d=De(t,"role",3,"cell"),c=De(t,"noIeb",3,!1),g=De(t,"noBeb",3,!1),h=a(()=>re("state")),v=a(()=>n(h).today),_=a(()=>n(h).interaction.action),p=a(()=>n(h).options.theme),m=a(()=>re("view-state")),y=a(()=>n(m).snap),k=a(()=>Qe(t.date,n(v))),S=a(()=>l()([n(p).day,n(p).weekdays?.[t.date.getUTCDay()],n(k)&&n(p).today,f()&&n(p).highlight,u()&&n(p).disabled,c()&&n(p).noIeb,g()&&n(p).noBeb]));Yn(()=>{qs(r(),(C,M)=>({allDay:i(),date:o()(C,M),resource:s(),dayEl:r(),disabled:u()}))});let D=a(()=>!u()&&n(_)?C=>n(_).select(C,n(y)):void 0);var E=cu();E.__pointerdown=function(...C){n(D)?.apply(this,C)};var w=de(E);Xt(w,()=>t.children??Zt),st(E,C=>r(C),()=>r()),ae(()=>{O(E,1,Mt(n(S))),Le(E,"role",d())}),x(e,E),we()}tn(["pointerdown"]);var hu=$("<div></div>"),vu=$("<article><!></article>");function ho(e,t){ye(t,!0);let r=De(t,"el",15),i=De(t,"classes",3,hr),s=De(t,"styles",3,hr),o=a(()=>re("state")),l=a(()=>n(o).intlEventTime),u=a(()=>n(o).resources),f=a(()=>n(o).view),d=a(()=>n(o).options.displayEventEnd),c=a(()=>n(o).options.eventBackgroundColor),g=a(()=>n(o).options.eventColor),h=a(()=>n(o).options.eventContent),v=a(()=>n(o).options.eventClick),_=a(()=>n(o).options.eventDidMount),p=a(()=>n(o).options.eventClassNames),m=a(()=>n(o).options.eventMouseEnter),y=a(()=>n(o).options.eventMouseLeave),k=a(()=>n(o).options.eventTextColor),S=a(()=>n(o).options.theme),D=a(()=>t.chunk.event),E=a(()=>t.chunk.event.display),w=a(()=>n(D).backgroundColor??no(t.chunk.resource??io(n(D),n(u)))??n(c)??n(g)),C=a(()=>n(D).textColor??ro(t.chunk.resource??io(n(D),n(u)))??n(k)),M=a(()=>Ws(s()({"background-color":n(w),color:n(C)})).map(U=>`${U[0]}:${U[1]}`).concat(n(D).styles).join(";")),q=a(()=>i()([mt(n(E))?n(S).bgEvent:n(S).event,...kl(n(p),n(D),n(f))])),R=a(()=>bl(t.chunk,n(d),n(h),n(S),n(l),n(f))),te=a(()=>Wo(n(R),2)),he=a(()=>n(te)[0]),be=a(()=>n(te)[1]);Yn(()=>{ke(n(_))&&n(_)({event:Xe(n(D)),timeText:n(he),el:r(),view:je(n(f))})});function ie(U,L){return ke(U)&&!pr(L)?T=>U({event:Xe(n(D)),el:r(),jsEvent:T,view:je(n(f))}):void 0}let X=a(()=>!mt(n(E))&&ie(n(v),n(E))||void 0),W=a(()=>n(X)&&Qr(n(X))),P=a(()=>ie(n(m),n(E))),H=a(()=>ie(n(y),n(E)));var F=vu();F.__click=function(...U){n(X)?.apply(this,U)},F.__keydown=function(...U){n(W)?.apply(this,U)},F.__pointerdown=function(...U){t.onpointerdown?.apply(this,U)};{const U=L=>{var T=hu();Fe(T,()=>Je(n(be))),ae(()=>O(T,1,Mt(n(S).eventBody))),x(L,T)};var G=de(F);{var B=L=>{var T=le(),z=Q(T);Xt(z,()=>t.body,()=>U,()=>n(w),()=>n(C)),x(L,T)},oe=L=>{U(L)};fe(G,L=>{t.body?L(B):L(oe,!1)})}st(F,L=>r(L),()=>r())}ae(()=>{O(F,1,Mt(n(q))),St(F,n(M)),Le(F,"role",n(X)?"button":void 0),Le(F,"tabindex",n(X)?0:void 0)}),ht("mouseenter",F,function(...U){n(P)?.apply(this,U)}),ht("mouseleave",F,function(...U){n(H)?.apply(this,U)}),x(e,F),we()}tn(["click","keydown","pointerdown"]);var gu=$("<div><!></div>");function Qn(e,t){ye(t,!0);let r=De(t,"weekday",3,!0),i=De(t,"colSpan",3,1),s=De(t,"ariaHidden",3,!1),o=De(t,"disabled",3,!1),l=De(t,"highlight",3,!1),u=a(()=>re("state")),f=a(()=>n(u).today),d=a(()=>n(u).options.theme);var c=gu(),g=de(c);Xt(g,()=>t.children),ae(h=>{O(c,1,h),Le(c,"role",s()?null:"columnheader"),Le(c,"aria-colspan",s()||i()<=1?null:i()),Le(c,"aria-colindex",s()?null:t.colIndex),Le(c,"aria-hidden",s()?"true":null)},[()=>Mt([t.className??n(d).colHead,r()&&n(d).weekdays?.[t.date.getUTCDay()],r()&&Qe(t.date,n(f))&&n(d).today,l()&&n(d).highlight,o()&&n(d).disabled])]),x(e,c),we()}var mu=$("<time></time>");function wr(e,t){ye(t,!0);let r=De(t,"alPrefix",3,""),i=a(()=>re("state")),s=a(()=>n(i).intlDayHeader),o=a(()=>n(i).intlDayHeaderAL);var l=mu();Fe(l,()=>Je(n(s).format(t.date))),ae((u,f)=>{Le(l,"datetime",u),Le(l,"aria-label",`${r()??""}${f??""}`)},[()=>gt(t.date,10),()=>n(o).format(t.date)]),x(e,l),we()}function br(e,t){ye(t,!0);let r=De(t,"el",15),i=a(()=>re("state")),s=a(()=>n(i).iClasses),o=a(()=>n(i).interaction.action),l=a(()=>n(i).interaction.resizer),u=a(()=>re("view-state")),f=a(()=>n(u).snap),d=a(()=>t.chunk.event),c=a(()=>t.chunk.event.display),g=a(()=>_=>n(s)(_,n(d)));function h(_){return n(o)?.draggable(_)?p=>n(o).drag(_,p,t.forceDate,t.forceMargin,n(f)):n(o)?.noAction}let v=a(()=>!mt(n(c))&&!pr(n(c))?h(n(d)):void 0);ho(e,{get chunk(){return t.chunk},get classes(){return n(g)},get styles(){return t.styles},get onpointerdown(){return n(v)},get el(){return r()},set el(p){r(p)},body:(p,m=Zt)=>{var y=le(),k=Q(y);{var S=E=>{var w=le(),C=Q(w);qr(C,()=>n(l),(M,q)=>{q(M,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(R,te)=>{var he=le(),be=Q(he);Xt(be,m),x(R,he)},$$slots:{default:!0}})}),x(E,w)},D=E=>{var w=le(),C=Q(w);Xt(C,m),x(E,w)};fe(k,E=>{n(l)?E(S):E(D,!1)})}x(p,y)},$$slots:{body:!0}}),we()}var pu=$("<time></time>"),_u=$("<span></span>"),yu=$('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),wu=$("<div><!> <!></div> <div><!></div>",1);function bu(e,t){ye(t,!0);const r=()=>nl(n(d),"$firstDay",i),[i,s]=rl();let o=re("state"),l=re("view-state"),u=a(()=>o.features),f=a(()=>o.options.date),d=a(()=>o.options.firstDay),c=a(()=>o.options.moreLinkContent),g=a(()=>o.options.theme),h=a(()=>o.options.weekNumbers),v=a(()=>o.options.weekNumberContent),_=a(()=>l.hiddenChunks),p=a(()=>l.intlDayCell),m=a(()=>t.day.dayStart),y=a(()=>t.day.disabled),k=a(()=>t.day.highlight),S=a(()=>n(m).getUTCMonth()!==n(f).getUTCMonth()),D=a(()=>R=>[...R,n(S)&&n(g).otherMonth]),E=a(()=>n(h)&&n(m).getUTCDay()===(n(d)?1:0)),w=a(()=>{let R;if(n(E)){let te=gl(n(m),r());n(v)?R=ke(n(v))?n(v)({date:Ve(n(m)),week:te}):n(v):R="W"+String(te).padStart(2,"0")}return R}),C=a(()=>n(_).get(n(m).getTime())),M=a(()=>{let R="";if(n(C)){let te="+"+n(C).length+" more";n(c)?R=ke(n(c))?n(c)({num:n(C).length,text:te}):n(c):R=te}return R});function q(){l.popupDay=t.day}yr(e,{get date(){return n(m)},allDay:!0,get classes(){return n(D)},get disabled(){return n(y)},get highlight(){return n(k)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(R,te)=>{var he=wu(),be=Q(he),ie=de(be);{var X=B=>{var oe=pu();Fe(oe,()=>Je(n(p).format(n(m)))),ae(U=>Le(oe,"datetime",U),[()=>gt(n(m),10)]),x(B,oe)};fe(ie,B=>{n(u).includes("dayNumber")&&B(X)})}var W=se(ie,2);{var P=B=>{var oe=_u();Fe(oe,()=>Je(n(w))),ae(()=>O(oe,1,n(g).weekNumber)),x(B,oe)};fe(W,B=>{n(E)&&B(P)})}var H=se(be,2),F=de(H);{var G=B=>{var oe=yu(),U=a(()=>ri(q));oe.__click=function(...z){n(U)?.apply(this,z)};var L=a(()=>Qr(q));oe.__keydown=function(...z){n(L)?.apply(this,z)};var T=a(ri);oe.__pointerdown=function(...z){n(T)?.apply(this,z)},Fe(oe,()=>Je(n(M))),x(B,oe)};fe(F,B=>{n(C)&&B(G)})}ae(()=>{O(be,1,n(g).dayHead),O(H,1,n(g).dayFoot)}),x(R,he)},$$slots:{default:!0}}),we(),s()}tn(["click","keydown","pointerdown"]);function kr(e,t){ye(t,!0);let r=De(t,"inPopup",3,!1),i=a(()=>re("state")),s=a(()=>n(i).options.dayMaxEvents),o=a(()=>re("view-state")),l=a(()=>n(o).colsCount),u=a(()=>n(o).gridEl),f=a(()=>n(o).hiddenChunks),d=a(()=>n(o).popupDay),c=K(void 0),g=K(1),h=K(!1),v=a(()=>t.chunk.event),_=a(()=>t.chunk.event.display),p=a(()=>n(u).children.item((t.chunk.gridRow-1)*n(l)+t.chunk.gridColumn-1));qe(()=>{r()||b(g,pn(n(p).firstElementChild)||1,!0)});let m=a(()=>E=>{if(E["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,E["grid-row"]=t.chunk.gridRow,!mt(n(_))){let w=r()?1:n(g);if(n(v)._margin){let[C,M]=n(v)._margin;C>w&&t.chunk.gridRow===M&&(w=C)}E["margin-block-start"]=`${w}px`}return n(h)&&(E.visibility="hidden"),E});function y(){b(g,js(t.chunk,pn(n(c)),pn(n(p).firstElementChild)||1),!0)}function k(){if(n(s)===!0){let E=pn(n(p))-S(n(p));if(b(h,t.chunk.bottom>E),n(h))for(let w of t.chunk.dates){let C=w.getTime();if(n(f).has(C)){let M=n(f).get(C);M.includes(t.chunk)||n(f).set(C,[...M,t.chunk])}else n(f).set(C,[t.chunk])}}else b(h,!1),n(f).size&&n(f).clear()}function S(E){let w=0;for(let C=0;C<t.chunk.dates.length&&(w=vt(w,pn(E.lastElementChild)),E=E.nextElementSibling,!!E);++C);return w}var D={reposition:y,hide:k};{let E=a(()=>r()&&n(d).dayStart),w=a(()=>[n(g),t.chunk.gridRow]);br(e,{get chunk(){return t.chunk},get styles(){return n(m)},axis:"x",get forceDate(){return n(E)},get forceMargin(){return n(w)},get el(){return n(c)},set el(C){b(c,C,!0)}})}return we(D)}var ku=$('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function Cu(e,t){ye(t,!0);let r=re("view-state"),i=a(()=>re("state")),s=a(()=>n(i).interaction),o=a(()=>n(i).options.buttonText),l=a(()=>n(i).options.theme),u=a(()=>r.colsCount),f=a(()=>r.chunks),d=a(()=>r.gridEl),c=a(()=>r.intlDayPopover),g=a(()=>r.popupDay),h=K(void 0),v=K(""),_=a(()=>n(g).gridColumn),p=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),y=a(()=>n(g).dayEnd),k=a(()=>{let ie=[];for(let X of n(f))X.gridRow===n(p)&&X.gridColumn<=n(_)&&X.gridColumn+X.dates.length>n(_)&&ie.push(ge({},X,Kn(X.event,n(m),n(y))));return ie.sort((X,W)=>X.top-W.top),ie});Yn(()=>{n(h).show()}),qe(()=>{n(k).length?j(S):D()});function S(){let ie=n(d).children.item((n(p)-1)*n(u)+n(_)-1),X=rn(n(h)),W=rn(ie),P=rn(n(d));b(v,"");let H;if(X.width>=P.width){H=P.left-W.left;let G=W.right-P.right;b(v,n(v)+`inset-inline-end:${G}px;`)}else H=(W.width-X.width)/2,W.left+H<P.left?H=P.left-W.left:W.left+H+X.width>P.right&&(H=P.right-W.left-X.width);b(v,n(v)+`inset-inline-start:${H}px;`);let F;X.height>=P.height?(F=P.top-W.top,b(v,n(v)+`block-size:${P.height}px;`)):(F=(W.height-X.height)/2,W.top+F<P.top?F=P.top-W.top:W.top+F+X.height>P.bottom&&(F=P.bottom-W.top-X.height)),b(v,n(v)+`inset-block-start:${F}px;`)}function D(){r.popupDay=null}function E(){D(),n(s).action?.noClick()}var w=ku();let C;var M=de(w),q=de(M);Fe(q,()=>Je(n(c).format(n(m))));var R=se(q,2);Sa(R);var te=a(()=>ri(D));R.__click=function(...ie){n(te)?.apply(this,ie)};var he=a(()=>Qr(D));R.__keydown=function(...ie){n(he)?.apply(this,ie)};var be=se(M,2);ue(be,21,()=>n(k),Ce,(ie,X)=>{kr(ie,{get chunk(){return n(X)},inPopup:!0})}),st(w,ie=>b(h,ie),()=>n(h)),Fe(w,()=>al("pointerdown")),ae(ie=>{O(w,1,n(l).popup),C=St(w,n(v),C,{"grid-area":`${n(p)+1} / ${n(_)}`}),O(M,1,n(l).dayHead),Le(q,"datetime",ie),Le(R,"aria-label",n(o).close),O(be,1,n(l).events)},[()=>gt(n(m),10)]),ht("pointerdownoutside",w,E),ht("close",w,D),x(e,w),we()}tn(["click","keydown"]);var Du=$('<div role="columnheader"><span></span></div>'),Eu=$('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function hi(e,t){ye(t,!0);let r=re("state"),i=new du(r);Fn("view-state",i);let s=a(()=>r.intlDayHeader),o=a(()=>r.intlDayHeaderAL),l=a(()=>r.options.dayMaxEvents),u=a(()=>r.options.theme),f=a(()=>i.grid),d=a(()=>i.chunks),c=a(()=>i.bgChunks),g=a(()=>i.iChunks),h=a(()=>i.hiddenChunks),v=a(()=>i.popupDay),_=[];function p(){oi(_,n(d)),n(h).clear(),vn().then(m)}function m(){n(h).size,_.forEach(D=>D?.hide())}qe(p),qe(m);var y=le(),k=Q(y);{var S=D=>{var E=Eu();let w;var C=de(E),M=de(C);ue(M,21,()=>n(f)[0],Ce,(P,H,F)=>{let G=()=>n(H).dayStart;var B=Du();Le(B,"aria-colindex",1+F);var oe=de(B);Fe(oe,()=>Je(n(s).format(G()))),ae((U,L)=>{O(B,1,U),Le(oe,"aria-label",L)},[()=>Mt([n(u).colHead,n(u).weekdays?.[G().getUTCDay()]]),()=>n(o).format(G())]),x(P,B)});var q=se(C,2),R=de(q);ue(R,21,()=>n(f),Ce,(P,H,F)=>{var G=le(),B=Q(G);ue(B,17,()=>n(H),Ce,(oe,U,L)=>{{let T=a(()=>L+1===Te(n(H))),z=a(()=>F+1===Te(n(f)));bu(oe,{get day(){return n(U)},get noIeb(){return n(T)},get noBeb(){return n(z)}})}}),x(P,G)}),st(R,P=>i.gridEl=P,()=>i?.gridEl);var te=se(R,2),he=de(te);ue(he,19,()=>n(d),P=>P.id,(P,H,F)=>{st(kr(P,{get chunk(){return n(H)}}),(G,B)=>_[B]=G,G=>_?.[G],()=>[n(F)])});var be=se(he,2);ue(be,17,()=>n(c),P=>P.id,(P,H)=>{kr(P,{get chunk(){return n(H)}})});var ie=se(be,2);ue(ie,17,()=>n(g),Ce,(P,H)=>{kr(P,{get chunk(){return n(H)}})});var X=se(q,2);{var W=P=>{Cu(P,{})};fe(X,P=>{n(v)&&P(W)})}st(E,P=>r.mainEl=P,()=>r?.mainEl),Fe(E,()=>jr(p)),ae(P=>{O(E,1,Mt([n(u).main,n(l)===!0&&n(u).uniform])),w=St(E,"",w,P),O(C,1,n(u).header),O(M,1,n(u).grid),O(q,1,n(u).body),O(R,1,n(u).grid),O(te,1,n(u).events)},[()=>({"--ec-grid-cols":Te(n(f)[0]),"--ec-grid-rows":Te(n(f))})]),x(D,E)};fe(k,D=>{!kt(n(f))&&!kt(n(f)[0])&&D(S)})}x(e,y),we()}const Tu={createOptions(e){ge(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),ge(e.buttonText,{dayGridDay:"day",dayGridMonth:"month",dayGridWeek:"week",close:"Close"}),ge(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),ge(e.views,{dayGridDay:{buttonText:Zn,component:()=>hi,dayHeaderFormat:{weekday:"long"},displayEventEnd:!1,duration:{days:1},theme:ot("ec-day-grid ec-day-view")},dayGridWeek:{buttonText:Jn,component:()=>hi,displayEventEnd:!1,theme:ot("ec-day-grid ec-week-view")},dayGridMonth:{buttonText:li,component:xu,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:ot("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function xu(e){return e.features=["dayNumber"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Us(t,i),end:vl(r,i)}},hi}function vo(e,t,r){return e.startEditable??t??e.editable??r}function Su(e,t,r){return e.durationEditable??t??e.editable??r}let vi=!1;function Ru(e){vi||(vi=!0,window.requestAnimationFrame(()=>{e(),vi=!1}))}function go(e,t,r){return vt(t,At(r,e))}function Iu(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:l}=o;return[...s,pr(l)?[i[l]]:!mt(l)&&vo(o,r,t)?[i.draggable]:[]]}}}function Lu(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return Xn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class Pu{constructor(t){this.#e(t)}#e(t){fn(Iu(t)),qe(Lu(t))}}function Mu(e,t){ye(t,!0);let r=re("state"),i=a(()=>r.events),s=a(()=>r.iEvents),o=a(()=>r.features),l=a(()=>r.view),u=a(()=>r.mainEl),f=a(()=>r.options.dateClick),d=a(()=>r.options.dragConstraint),c=a(()=>r.options.dragScroll),g=a(()=>r.options.editable),h=a(()=>r.options.eventStartEditable),v=a(()=>r.options.eventDragMinDistance),_=a(()=>r.options.eventDragStart),p=a(()=>r.options.eventDragStop),m=a(()=>r.options.eventDrop),y=a(()=>r.options.eventLongPressDelay),k=a(()=>r.options.eventResizeStart),S=a(()=>r.options.eventResizeStop),D=a(()=>r.options.eventResize),E=a(()=>r.options.longPressDelay),w=a(()=>r.options.resizeConstraint),C=a(()=>r.options.selectable),M=a(()=>r.options.select),q=a(()=>r.options.selectBackgroundColor),R=a(()=>r.options.selectConstraint),te=a(()=>r.options.selectLongPressDelay),he=a(()=>r.options.selectMinDistance),be=a(()=>r.options.unselect),ie=a(()=>r.options.unselectAuto),X=a(()=>r.options.unselectCancel),W=a(()=>r.options.validRange);const P=1,H=2,F=3,G=4,B=5,oe=6;let U,L,T,z,Oe,Pe,at,Me,He,pt,Nt,V,J,Re,N,Y,ve,me,ne,Ie,Be,lt,Ne,xe,ut,Ue,_t;function Pn(I){return vo(I,n(h),n(g))}function Ei(I,A,pe,ee,$e){U||(U=Ri(A)?P:oe,yn()&&(T=I,Si(A,$e),pe&&(Pe=pe),ee&&(ut=ee),me="dragging",Mn(A)))}function Ti(I,A,pe,ee,$e,$n,Li,id){U||(U=Ri(A)?pe?F:H:oe,yn()&&(T=I,Si(A,id),$e&&(Pe=$e),$n&&(ut=$n),me=ee==="x"?"resizingX":"resizingY",Tr()?(ne=Z(T.end),ve?(ti(ne,T.start),ne>=T.end&&xn(ne)):(gr(ne,Ue),ne<T.start&&(ne=T.start),Pe=T.start)):(ne=Z(T.start),ve?(ti(ne,T.end),ne<=T.start&&!Li&&Ct(ne)):(Se(ne,Ue),ne>T.end&&(ne=T.end),Pe=T.end,Li||(Pe=gr(Z(Pe),Ue))),Li&&!ve&&(_t=Ue)),Mn(A)))}function xi(I,A){U||(U=Ri(I)?n(C)&&!n(o).includes("list")?G:B:oe,yn()&&(Si(I,A),me="selecting",Ie=ve?We({day:1}):Ue,T={allDay:ve,start:Pe,end:Se(Z(Pe),Ie),resourceIds:Me?[Me.id]:[]},Mn(I)))}function qf(){U||(U=oe)}function Si(I,A){window.getSelection().removeAllRanges(),pt=V=I.clientX,Nt=J=I.clientY,Ue=A?.duration;let pe=Sn(V,J);({allDay:ve,date:Pe,resource:Me}=Kt(pe)(V,J)),N=n(u)!==Ks(pe,3),Re=Ks(pe,1),So(),I.pointerType!=="mouse"&&(Ne=setTimeout(()=>{U&&(L=!0,Mn(I))},(sn()?n(te):n(y))??n(E)))}function Mn(I){if(L||I&&I.pointerType==="mouse"&&Qf()>=(sn()?n(he):n(v))){L=!0,xr(I),r.iClass=me,z||(sn()?Jf():Zf(I,An()?n(k):n(_)));let A=jn(Kf());if(A){let pe;if({allDay:pe,date:at,resource:He}=A,pe===ve){let ee=Er({},z),$e=n(w);Y=We((at-Pe)/1e3),Tr()?(ee.start=Se(Z(T.start),Y),ee.start>ne&&(ee.start=ne,Y=We((ne-T.start)/1e3))):(ee.end=Se(Z(T.end),Y),_t&&Se(ee.end,_t),An()?ee.end<ne&&(ee.end=ne,Y=We((ne-T.end)/1e3)):sn()?(ee.end<T.end?(ee.start=gr(ee.end,Ie),ee.end=T.end):ee.start=T.start,$e=n(R)):(ee.start=Se(Z(T.start),Y),Me&&(ee.resourceIds=T.resourceIds.filter($n=>$n!==Me.id),ee.resourceIds.push(He.id)),$e=n(d)));do{if($e!==void 0&&(ee=Er(si(T),ee),$e(sn()?Po(ee,I):Mo(ee,T,I))===!1)){Lo(T);break}Lo(ee)}while(!1)}}}if(n(c)){let A=24,pe=24;Ru(()=>{xe&&(N||(J<xe.top+A&&(n(u).scrollTop+=vt(-8,(J-xe.top-A)/3)),J>xe.bottom-A&&(n(u).scrollTop+=At(8,(J-xe.bottom+A)/3))),V<xe.left+pe&&(n(u).scrollLeft+=vt(-8,(V-xe.left-pe)/3)),V>xe.right-pe&&(n(u).scrollLeft+=At(8,(V-xe.right+pe)/3)),J<A&&window.scrollBy(0,vt(-8,(J-A)/3)),J>window.innerHeight-A&&window.scrollBy(0,At(8,(J-window.innerHeight+A)/3)))})}}function To(){yn()&&(So(),Mn())}function Xf(I){yn()&&I.isPrimary&&(V=I.clientX,J=I.clientY,Mn(I))}function xo(I){if(Be&&n(ie)&&!(n(X)&&I.target.closest(n(X)))&&xr(I),U&&I.isPrimary){if(L)if(sn()){if(Be=!0,ke(n(M))){let A=Po(z,I);n(M)(A)}}else{T.display=Oe;let A=An()?n(S):n(p);ke(A)&&A({event:Xe(T),jsEvent:I,view:je(n(l))});let pe=si(T);if(Io(T,z),Ro(),A=An()?n(D):n(m),ke(A)){let ee=T,$e=Mo(T,pe,I);A(ge($e,{revert(){Io(ee,pe)}}))}}else if((jf()||sn())&&ke(n(f))&&!lt){V=I.clientX,J=I.clientY;let A=Sn(V,J);if(A){let{allDay:pe,date:ee,resource:$e}=Kt(A)(V,J);n(f)({allDay:pe,date:Ve(ee),dateStr:gt(ee),dayEl:A,jsEvent:I,view:je(n(l)),resource:$e})}}L=!1,U=pt=Nt=V=J=T=Oe=Pe=at=Me=He=Y=_t=ve=ne=Ie=ut=Re=xe=Ue=void 0,r.iClass=void 0,Ne&&(clearTimeout(Ne),Ne=void 0)}lt=!1}function Kf(){return Sn(go(V,xe.left,xe.right),go(J,xe.top,xe.bottom))}function jn(I){if(I){let A=Kt(I)(V,J);if(A.disabled){if(!n(W).end||A.date<n(W).end)return jn(I.nextElementSibling);if(!n(W).start||A.date>n(W).start)return jn(I.previousElementSibling)}else return(sn()||An())&&A.resource&&!z.resourceIds.includes(A.resource.id)&&!n(o).includes("timeline")?V>pt?jn(I.previousElementSibling):jn(I.nextElementSibling):A}return null}function So(){let I=rn(n(u)),A=rn(Re),pe=I.width/n(u).offsetWidth,ee=I.height/n(u).offsetHeight,$e=mn();xe={left:vt(0,$e?I.right-n(u).clientWidth*pe:A.left+n(u).scrollLeft*pe),right:At(document.documentElement.clientWidth,$e?A.right+n(u).scrollLeft*pe:I.left+n(u).clientWidth*pe)-2,top:vt(0,A.top+(N?0:n(u).scrollTop)*ee),bottom:At(document.documentElement.clientHeight,N?A.bottom:I.top+n(u).clientHeight*ee)-2}}function Zf(I,A){ke(A)&&A({event:Xe(T),jsEvent:I,view:je(n(l))}),Oe=T.display,T.display="preview",z=si(T),ut!==void 0&&(z._margin=ut),_t&&Se(z.end,_t),T.display="ghost",r.events=[...n(i)]}function Jf(){z={id:"{select}",allDay:T.allDay,start:T.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(q),resourceIds:T.resourceIds,classNames:[],styles:[]}}function Ro(){z=void 0,n(s).delete("action")}function Er(I,A){return I.start=A.start,I.end=A.end,I.resourceIds=A.resourceIds,{...I}}function Io(I,A){Er(I,A),r.events=[...n(i)]}function Lo(I){z=Er(z,I),n(s).set("action",z)}function Po(I,A){let{start:pe,end:ee}=Xe(I);return{start:pe,end:ee,startStr:gt(I.start),endStr:gt(I.end),allDay:ve,view:je(n(l)),resource:Me,jsEvent:A}}function Mo(I,A,pe){let ee;return An()?ee=Tr()?{startDelta:Y,endDelta:We(0)}:{startDelta:We(0),endDelta:Y}:ee={delta:Y,oldResource:Me!==He?Me:void 0,newResource:Me!==He?He:void 0},ge(ee,{event:Xe(I),oldEvent:Xe(A),view:je(n(l)),jsEvent:pe}),ee}function Qf(){return Math.sqrt(Math.pow(V-pt,2)+Math.pow(J-Nt,2))}function An(){return U===H||Tr()}function Tr(){return U===F}function jf(){return U===B}function sn(){return U===G}function yn(){return U&&U<B}function Ri(I){return I.isPrimary&&(I.pointerType!=="mouse"||I.buttons&1)}function xr(I){Be&&(Be=!1,Ro(),ke(n(be))&&n(be)({jsEvent:I,view:je(n(l))}))}fn(()=>{n(l),xr()});function $f(){lt=!0}function ed(I){if(yn()){let A=I.target,pe=[],ee=()=>cl(pe);pe.push(Xn(A,"touchmove",Ii(()=>L))),pe.push(Xn(A,"touchend",ee)),pe.push(Xn(A,"touchcancel",ee))}}function Ii(I){return A=>{I()&&A.preventDefault()}}Yn(()=>Xn(window,"touchmove",hl,{passive:!1}));var td={draggable:Pn,drag:Ei,resize:Ti,select:xi,noAction:qf,handleScroll:To,unselect:xr,noClick:$f};ht("pointermove",Et,Xf),ht("pointerup",Et,xo),ht("pointercancel",Et,xo),ht("scroll",Et,To);var nd=a(()=>Ii(yn));ht("selectstart",Et,function(...I){n(nd)?.apply(this,I)});var rd=a(()=>Ii(()=>Ne));return ht("contextmenu",Et,function(...I){n(rd)?.apply(this,I)}),ht("touchstart",Et,ed,void 0,!0),we(td)}function Au(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).iEvents),s=a(()=>n(r).options.slotDuration),o=0,l=0,u;function f(){let p=Sn(o,l);if(p&&!n(i).has("action")){let{allDay:m,date:y,resource:k,disabled:S}=Kt(p)(o,l);if(!S){u||g(),u.allDay=m,u.start=y,u.end=Se(Z(y),n(s)),u.resourceIds=k?[k.id]:[],n(i).set("pointer",{...u});return}}h()}function d(){f()}function c(p){v(p)&&(o=p.clientX,l=p.clientY,f())}function g(){u={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]}}function h(){u=void 0,n(i).delete("pointer")}function v(p){return p.isPrimary&&p.pointerType==="mouse"}var _={handleScroll:d};return ht("pointermove",Et,c),ht("scroll",Et,d),we(_)}var Ou=$("<div></div>"),Nu=$("<div></div>"),Fu=$("<!> <!> <!>",1);function Hu(e,t){ye(t,!0);let r=De(t,"forceDate",3,void 0),i=De(t,"forceMargin",3,void 0),s=a(()=>re("state")),o=a(()=>n(s).interaction.action),l=a(()=>n(s).options.editable),u=a(()=>n(s).options.eventDurationEditable),f=a(()=>n(s).options.eventResizableFromStart),d=a(()=>n(s).options.theme),c=a(()=>re("view-state")),g=a(()=>n(c).snap),h=a(()=>t.chunk.event),v=a(()=>t.chunk.event.display),_=a(()=>!mt(n(v))&&!pr(n(v))&&Su(n(h),n(u),n(l)));function p(w){return C=>n(o).resize(n(h),C,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=Fu(),y=Q(m);{var k=w=>{var C=Ou(),M=a(()=>p(!0));C.__pointerdown=function(...q){n(M)?.apply(this,q)},ae(()=>O(C,1,`${n(d).resizer??""} ${n(d).start??""}`)),x(w,C)};fe(y,w=>{n(_)&&n(f)&&w(k)})}var S=se(y,2);Xt(S,()=>t.children);var D=se(S,2);{var E=w=>{var C=Nu(),M=a(()=>p(!1));C.__pointerdown=function(...q){n(M)?.apply(this,q)},ae(()=>O(C,1,n(d).resizer)),x(w,C)};fe(D,w=>{n(_)&&w(E)})}x(e,m),we()}tn(["pointerdown"]);var Wu=$("<!> <!>",1);function Uu(e,t){ye(t,!0);let r=re("state");new Pu(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=Hu;var o=Wu(),l=Q(o);st(Mu(l,{}),d=>n(i).action=d,()=>n(i)?.action);var u=se(l,2);{var f=d=>{st(Au(d,{}),c=>n(i).pointer=c,()=>n(i)?.pointer)};fe(u,d=>{n(s)&&d(f)})}x(e,o),we()}const zu={createOptions(e){ge(e,{dateClick:void 0,dragConstraint:void 0,dragScroll:!0,editable:!1,eventDragMinDistance:5,eventDragStart:void 0,eventDragStop:void 0,eventDrop:void 0,eventDurationEditable:!0,eventLongPressDelay:void 0,eventResizableFromStart:!1,eventResizeStart:void 0,eventResizeStop:void 0,eventResize:void 0,eventStartEditable:!0,longPressDelay:1e3,pointer:!1,resizeConstraint:void 0,select:void 0,selectBackgroundColor:void 0,selectConstraint:void 0,selectLongPressDelay:void 0,selectMinDistance:5,snapDuration:void 0,unselect:void 0,unselectAuto:!0,unselectCancel:""}),ge(e.theme,{draggable:"ec-draggable",ghost:"ec-ghost",preview:"ec-preview",pointer:"ec-pointer",resizer:"ec-resizer",start:"ec-start",dragging:"ec-dragging",resizingY:"ec-resizing-y",resizingX:"ec-resizing-x",selecting:"ec-selecting"})},initState(e){e.auxComponents.push(Uu)}};let Vu=class{#e;get intlListDay(){return n(this.#e)}set intlListDay(t){b(this.#e,t)}#n;get intlListDaySide(){return n(this.#n)}set intlListDaySide(t){b(this.#n,t)}constructor(t){this.#e=a(_n(t,"listDayFormat")),this.#n=a(_n(t,"listDaySideFormat"))}};var Bu=$("<div></div> <!>",1);function Gu(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).interaction),s=a(()=>n(r).options.theme),o=a(()=>l=>(delete l["background-color"],delete l.color,l));{const l=(f,d=Zt,c=Zt,g=Zt)=>{var h=Bu(),v=Q(h);let _;var p=se(v,2);Xt(p,d),ae(()=>{O(v,1,n(s).eventTag),_=St(v,"",_,{"background-color":c()})}),x(f,h)};let u=a(()=>n(i).action?.noAction);ho(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}we()}var Yu=$("<h4><time></time> <time></time></h4> <!>",1);function qu(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).filteredEvents),s=a(()=>n(r).options.highlightedDates),o=a(()=>n(r).options.theme),l=a(()=>n(r).options.validRange),u=a(()=>re("view-state")),f=a(()=>n(u).intlListDay),d=a(()=>n(u).intlListDaySide),c=a(()=>n(s).some(y=>Qe(y,t.date))),g=a(()=>Ln(t.date,n(l))),h=a(()=>gt(t.date,10)),v=a(()=>{let y=[];if(!n(g)){let k=t.date,S=Ct(Z(t.date));for(let D of n(i))if(!mt(D.display)&&Rn(D,k,S)){let E=Kn(D,k,S);y.push(E)}}return y});var _=le(),p=Q(_);{var m=y=>{yr(y,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(c)},children:(k,S)=>{var D=Yu(),E=Q(D),w=de(E);Fe(w,()=>Je(n(f).format(t.date)));var C=se(w,2);Fe(C,()=>Je(n(d).format(t.date)));var M=se(E,2);ue(M,17,()=>n(v),q=>q.event,(q,R)=>{Gu(q,{get chunk(){return n(R)}})}),ae(()=>{O(E,1,n(o).dayHead),Le(w,"datetime",n(h)),O(C,1,n(o).daySide),Le(C,"datetime",n(h))}),x(k,D)},$$slots:{default:!0}})};fe(p,y=>{n(v).length&&y(m)})}x(e,_),we()}var Xu=$("<div></div>"),Ku=$("<section><!></section>");function Zu(e,t){ye(t,!0);let r=re("state"),i=new Vu(r);Fn("view-state",i);let s=a(()=>r.filteredEvents),o=a(()=>r.view),l=a(()=>r.viewDates),u=a(()=>r.options.noEventsClick),f=a(()=>r.options.noEventsContent),d=a(()=>r.options.theme),c=a(()=>{let y=!0;if(!kt(n(l))){let k=n(l)[0],S=Ct(Z(n(l).at(-1)));for(let D of n(s))if(!mt(D.display)&&D.start<S&&D.end>k){y=!1;break}}return y}),g=a(()=>ke(n(f))?n(f)():n(f));function h(y){ke(n(u))&&n(u)({jsEvent:y,view:je(n(o))})}var v=Ku(),_=de(v);{var p=y=>{var k=Xu();k.__click=h,Fe(k,()=>Je(n(g))),ae(()=>O(k,1,n(d).noEvents)),x(y,k)},m=y=>{var k=le(),S=Q(k);ue(S,17,()=>n(l),Ce,(D,E)=>{qu(D,{get date(){return n(E)}})}),x(y,k)};fe(_,y=>{n(c)?y(p):y(m,!1)})}st(v,y=>r.mainEl=y,()=>r?.mainEl),ae(()=>O(v,1,n(d).main)),x(e,v),we()}tn(["click"]);const Ju={createOptions(e){ge(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),ge(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),ge(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),ge(e.views,{listDay:{buttonText:Zn,component:Cr,duration:{days:1},theme:ot("ec-list ec-day-view")},listWeek:{buttonText:Jn,component:Cr,duration:{weeks:1},theme:ot("ec-list ec-week-view")},listMonth:{buttonText:li,component:Cr,duration:{months:1},theme:ot("ec-list ec-month-view")},listYear:{buttonText:Sl,component:Cr,duration:{years:1},theme:ot("ec-list ec-year-view")}})}};function Cr(e){return e.features=["list"],Zu}function gi(e,t,r=!0){let i=[];for(let{gridColumn:s,gridRow:o,resource:l,start:u,end:f,disabled:d}of t)if(!d&&Rn(e,u,f,l)){let c=Kn(e,u,f);ge(c,{gridColumn:s,gridRow:o,resource:l,top:(c.start-u)/1e3,height:(c.end-c.start)/1e3,maxHeight:(f-c.start)/1e3}),r&&ai(c),i.push(c)}return i}function Qu(e){let t={};for(let r of e){let{gridColumn:i}=r,s=t[i],o=0;if(s&&r.start<s.end){for(;o<s.columns.length&&!(s.columns[o].at(-1).end<=r.start);++o);r.end>s.end&&(s.end=r.end)}else s={columns:[],end:r.end};s.columns.length<o+1&&s.columns.push([]),s.columns[o].push(r),t[i]=s,r.group=s,r.groupColumn=o}}function ju(e){let t="all-day",r;return e?(r=ke(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function mi(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>vr){Se(xn(r),i);let s=xn(Z(r));s<t&&(t=s)}return{start:t,end:r}}}function pi(e){"scrollTime"in e||(ge(e,{columnWidth:void 0,flexibleSlotTimeLimits:!1,nowIndicator:!1,scrollTime:"06:00:00",slotDuration:"00:30:00",slotHeight:24,slotLabelInterval:void 0,slotLabelFormat:{hour:"numeric",minute:"2-digit"},slotMaxTime:"24:00:00",slotMinTime:"00:00:00",snapDuration:void 0}),ge(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function mo(e){"allDaySlot"in e||(ge(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),ge(e.theme,{allDay:"ec-all-day"}))}function _i(e){"scrollTime"in e||ge(e,{scrollTime:We,slotDuration:We,slotLabelInterval:t=>t!==void 0?We(t):void 0,slotMaxTime:We,slotMinTime:We,snapDuration:t=>t!==void 0?We(t):void 0})}function po(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function $u(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,l=[];return j(()=>{let u=1;for(let f of r)l.push({gridColumn:u,gridRow:1,resource:void 0,start:Se(Z(f),o.min),end:Se(Z(f),o.max),dayStart:f,dayEnd:Ct(Z(f)),disabled:Ln(f,s),highlight:i.some(d=>Qe(d,f))}),++u}),[l]}}function ef(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],l=[],u=[];return j(()=>{for(let f of r)for(let d of i)mt(f.display)?(o=o.concat(gi(f,d)),f.allDay&&(u=u.concat(In(f,d)))):f.allDay?l=l.concat(In(f,d)):s=s.concat(gi(f,d));Qu(s),Qs(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function tf(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,l]of r)l&&j(()=>{for(let u of i)l.allDay?o=o.concat(In(l,u,!1)):s=s.concat(gi(l,u,!1))});return{iChunks:s,allDayIChunks:o}}}function nf(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return j(()=>{l=oo(s,o,i,r,t)}),l}}function rf(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return j(()=>{i=r===void 0?_e(t)<3600?2:1:ll(_e(r)/_e(t))||1}),i}}function sf(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return j(()=>{l=so(Rt(Ot()),r,s,o,i)}),l}}function of(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:_e(r)/_e(t)}}}function yi(){return class{#e;get intlSlotLabel(){return n(this.#e)}set intlSlotLabel(e){b(this.#e,e)}#n;get slotLabelPeriodicity(){return n(this.#n)}set slotLabelPeriodicity(e){b(this.#n,e)}#t;get sidebarWidth(){return n(this.#t)}set sidebarWidth(e){b(this.#t,e,!0)}#r;get snap(){return n(this.#r)}set snap(e){b(this.#r,e)}constructor(e){this.#e=a(_n(e,"slotLabelFormat")),this.#n=a(rf(e)),this.#t=K(0),this.#r=a(of(e))}}}function _o(e){return class extends e{#e;get slotTimeLimits(){return n(this.#e)}set slotTimeLimits(t){b(this.#e,t)}#n;get slots(){return n(this.#n)}set slots(t){b(this.#n,t)}#t;get chunks(){return n(this.#t)}set chunks(t){b(this.#t,t)}#r;get bgChunks(){return n(this.#r)}set bgChunks(t){b(this.#r,t)}#s;get allDayChunks(){return n(this.#s)}set allDayChunks(t){b(this.#s,t)}#i;get allDayBgChunks(){return n(this.#i)}set allDayBgChunks(t){b(this.#i,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get allDayIChunks(){return n(this.#a)}set allDayIChunks(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(nf(t)),this.#n=a(sf(t,this));let r=a(ef(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks),o=a(()=>n(r).allDayChunks),l=a(()=>n(r).allDayBgChunks);this.#t=a(()=>n(i)),this.#r=a(()=>n(s)),this.#s=a(()=>n(o)),this.#i=a(()=>n(l));let u=a(tf(t,this)),f=a(()=>n(u).iChunks),d=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(f)),this.#a=a(()=>n(d))}}}let af=class extends _o(yi()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a($u(t,this))}};function lf(e){return()=>{let{activeRange:t,filteredEvents:r,resources:i,options:{filterResourcesWithEvents:s},extensions:{viewResources:o}}=e,l=o?o(i):i;return j(()=>{s&&(l=i.filter(u=>r.some(f=>!mt(f.display)&&Rn(f,t.start,t.end,u)))),l.length||(l=ui([{}]))}),l}}function uf(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:l,viewResources:u}=t,f=[];return j(()=>{let d=1,c=i?[r,u]:[u,r];for(let g of c[0]){let h=[];for(let v of c[1]){let _=i?g:v,p=i?v:g;h.push({gridColumn:d,gridRow:1,resource:p,start:Se(Z(_),l.min),end:Se(Z(_),l.max),dayStart:_,dayEnd:Ct(Z(_)),disabled:Ln(_,o),highlight:s.some(m=>Qe(m,_))}),++d}f.push(h)}}),f}}function yo(e){return class extends e{#e;get viewResources(){return n(this.#e)}set viewResources(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(lf(t))}}}let ff=class extends yo(_o(yi())){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(uf(t,this))}};var df=$("<span></span>");function wi(e,t){ye(t,!0);let r=De(t,"date",3,void 0),i=De(t,"setLabel",3,void 0),s=a(()=>re("state")),o=a(()=>n(s).intlDayHeaderAL),l=a(()=>n(s).options.resourceLabelContent),u=a(()=>n(s).options.resourceLabelDidMount),f=K(void 0),d=a(()=>n(l)?ke(n(l))?n(l)({resource:t.resource,date:r()?Ve(r()):void 0}):n(l):t.resource.title),c=K(void 0);qe(()=>{n(d),j(()=>{r()?b(c,n(o).format(r())+", "+n(f).innerText):i()&&(b(c,void 0),i()(n(f).innerText))})}),Yn(()=>{ke(n(u))&&n(u)({resource:t.resource,date:r()?Ve(r()):void 0,el:n(f)})});var g=df();st(g,h=>b(f,h),()=>n(f)),Fe(g,()=>Je(n(d))),ae(()=>Le(g,"aria-label",n(c))),x(e,g),we()}function wo(e,t){ye(t,!0);let r=De(t,"allDay",3,!1),i=a(()=>re("state")),s=a(()=>n(i).options.slotHeight),o=a(()=>re("view-state")),l=a(()=>n(o).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=K(void 0);function v(_,p){if(r())return n(u);{let m=rn(n(h)),y=m.height/n(h).offsetHeight;return Se(Z(n(f)),n(l).duration,$r((p-m.top)/(n(s)*n(l).ratio*y)))}}yr(e,{get date(){return n(u)},get allDay(){return r()},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(_){b(h,_,!0)}}),we()}function bi(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotEventOverlap),s=a(()=>n(r).options.slotDuration),o=a(()=>n(r).options.slotHeight),l=a(()=>u=>{let f=_e(n(s)),d=t.chunk.top/f*n(o),c=t.chunk.height/f*n(o)||n(o),g=t.chunk.maxHeight/f*n(o);u["grid-column"]=t.chunk.gridColumn,u["inset-block-start"]=`${d}px`,u["min-block-size"]=`${c}px`,u["block-size"]=`${c}px`,u["max-block-size"]=`${g}px`;let h="100% - var(--ec-event-col-gap)";if(t.chunk.group){let v=t.chunk.group.columns.length;u["z-index"]=`${t.chunk.groupColumn+1}`,u["inset-inline-start"]=`calc((${h}) / ${v} * ${t.chunk.groupColumn})`,u["inline-size"]=`calc((${h}) / ${v} * ${n(i)?.5*(1+v-t.chunk.groupColumn):1})`}return u});br(e,{get chunk(){return t.chunk},get styles(){return n(l)},axis:"y"}),we()}function ki(e,t){ye(t,!0);let r=K(void 0),i=K(0),s=a(()=>t.chunk.event),o=a(()=>f=>(f["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(n(i)||n(s)._margin)&&(f["margin-block-start"]=`${n(s)._margin??n(i)}px`),f));function l(){b(i,js(t.chunk,pn(n(r))),!0)}var u={reposition:l};return br(e,{get chunk(){return t.chunk},get styles(){return n(o)},axis:"x",get forceMargin(){return n(i)},get el(){return n(r)},set el(f){b(r,f,!0)}}),we(u)}var cf=$("<div></div>");function Dr(e,t){ye(t,!0);let r=De(t,"span",3,1),i=a(()=>re("state")),s=a(()=>n(i).mainEl),o=a(()=>n(i).now),l=a(()=>n(i).today),u=a(()=>n(i).options.slotDuration),f=a(()=>n(i).options.slotHeight),d=a(()=>n(i).options.theme),c=a(()=>re("view-state")),g=a(()=>n(c).sidebarWidth),h=a(()=>{for(let w of t.days)if(Qe(w.dayStart,n(l)))return w;return{}}),v=a(()=>n(h).gridColumn),_=a(()=>n(h).start),p=a(()=>n(h).end),m=a(()=>{if(n(o)<n(_)||n(o)>n(p))return null;let w=_e(n(u));return(n(o)-n(_))/1e3/w*n(f)}),y=a(()=>({root:n(s),rootMargin:mn()?`0px -${n(g)+5.5}px 0px 0px`:`0px 0px 0px -${n(g)+5.5}px`,threshold:0}));function k(w,C){w.classList.toggle(n(d).hidden,!C.isIntersecting)}var S=le(),D=Q(S);{var E=w=>{var C=cf();let M;Fe(C,()=>Hs(k,n(y))),ae(()=>{O(C,1,n(d).nowIndicator),M=St(C,"",M,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),x(w,C)};fe(D,w=>{n(v)&&n(m)!==null&&w(E)})}x(e,S),we()}var hf=$('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),vf=$("<div><time></time></div>"),gf=$('<section><header><aside></aside> <div role="row"><!></div> <!></header> <div role="rowgroup"><aside aria-hidden="true"></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function bo(e,t){ye(t,!0);let r=De(t,"viewState",7),i=re("state");r()||r(new af(i)),Fn("view-state",r());let s=a(()=>i.mainEl),o=a(()=>i.viewDates),l=a(()=>i.options.allDayContent),u=a(()=>i.options.allDaySlot),f=a(()=>i.options.columnWidth),d=a(()=>i.options.nowIndicator),c=a(()=>i.options.scrollTime),g=a(()=>i.options.slotHeight),h=a(()=>i.options.slotDuration),v=a(()=>i.options.theme),_=a(()=>r().allDayChunks),p=a(()=>r().allDayBgChunks),m=a(()=>r().allDayIChunks),y=a(()=>r().bgChunks),k=a(()=>r().chunks),S=a(()=>r().iChunks),D=a(()=>r().grid),E=a(()=>r().sidebarWidth),w=a(()=>r().slots),C=a(()=>r().slotLabelPeriodicity),M=a(()=>r().slotTimeLimits),q=K(0),R=a(()=>ju(n(l)));qe(()=>{n(c),kt(n(o))||vn().then(te)});function te(){n(s).scrollTop=((_e(n(c))-_e(n(M).min))/_e(n(h))-.5)*n(g)}let he=[];function be(){oi(he,n(_))}qe(be);var ie=le(),X=Q(ie);{var W=P=>{var H=gf();let F;var G=de(H),B=de(G),oe=se(B,2),U=de(oe);{var L=N=>{var Y=le(),ve=Q(Y);Xt(ve,()=>t.header),x(N,Y)},T=N=>{var Y=le(),ve=Q(Y);ue(ve,17,()=>n(D)[0],Ce,(me,ne,Ie)=>{let Be=()=>n(ne).dayStart,lt=()=>n(ne).disabled,Ne=()=>n(ne).highlight;Qn(me,{get date(){return Be()},colIndex:1+Ie,get disabled(){return lt()},get highlight(){return Ne()},children:(xe,ut)=>{wr(xe,{get date(){return Be()}})},$$slots:{default:!0}})}),x(N,Y)};fe(U,N=>{t.header?N(L):N(T,!1)})}var z=se(oe,2);{var Oe=N=>{var Y=hf(),ve=de(Y);Fe(ve,()=>Je(n(R)));var me=se(ve,2);ue(me,21,()=>n(D),Ce,(Ne,xe,ut)=>{var Ue=le(),_t=Q(Ue);ue(_t,17,()=>n(xe),Ce,(Pn,Ei,Ti)=>{{let xi=a(()=>ut+1===Te(n(D))&&Ti+1===Te(n(xe)));wo(Pn,{get day(){return n(Ei)},allDay:!0,get noIeb(){return n(xi)}})}}),x(Ne,Ue)});var ne=se(me,2),Ie=de(ne);ue(Ie,19,()=>n(_),Ne=>Ne.id,(Ne,xe,ut)=>{st(ki(Ne,{get chunk(){return n(xe)}}),(Ue,_t)=>he[_t]=Ue,Ue=>he?.[Ue],()=>[n(ut)])});var Be=se(Ie,2);ue(Be,17,()=>n(p),Ne=>Ne.id,(Ne,xe)=>{ki(Ne,{get chunk(){return n(xe)}})});var lt=se(Be,2);ue(lt,17,()=>n(m),Ce,(Ne,xe)=>{ki(Ne,{get chunk(){return n(xe)}})}),ae(()=>{O(Y,1,n(v).allDay),O(ve,1,n(v).sidebar),O(me,1,n(v).grid),O(ne,1,n(v).events)}),x(N,Y)};fe(z,N=>{n(u)&&N(Oe)})}var Pe=se(G,2),at=de(Pe);ue(at,21,()=>n(w),Ce,(N,Y,ve)=>{var me=vf();let ne;var Ie=de(me);Fe(Ie,()=>Je(n(Y)[1])),ae(()=>{O(me,1,Mt([n(v).slot,!ve&&n(v).hidden])),ne=St(me,"",ne,{"--ec-slot-label-periodicity":n(Y)[2]}),Le(Ie,"datetime",n(Y)[0])}),x(N,me)});var Me=se(at,2);ue(Me,21,()=>n(D),Ce,(N,Y,ve)=>{var me=le(),ne=Q(me);ue(ne,17,()=>n(Y),Ce,(Ie,Be,lt)=>{{let Ne=a(()=>ve+1===Te(n(D))&&lt+1===Te(n(Y)));wo(Ie,{get day(){return n(Be)},get noIeb(){return n(Ne)},noBeb:!0})}}),x(N,me)});var He=se(Me,2),pt=de(He);ue(pt,17,()=>n(k),N=>N.id,(N,Y)=>{bi(N,{get chunk(){return n(Y)}})});var Nt=se(pt,2);ue(Nt,17,()=>n(y),N=>N.id,(N,Y)=>{bi(N,{get chunk(){return n(Y)}})});var V=se(Nt,2);ue(V,17,()=>n(S),Ce,(N,Y)=>{bi(N,{get chunk(){return n(Y)}})});var J=se(Pe,2);{var Re=N=>{var Y=le(),ve=Q(Y);{var me=Ie=>{var Be=le(),lt=Q(Be);Xt(lt,()=>t.nowIndicator),x(Ie,Be)},ne=Ie=>{Dr(Ie,{get days(){return n(D)[0]}})};fe(ve,Ie=>{t.nowIndicator?Ie(me):Ie(ne,!1)})}x(N,Y)};fe(J,N=>{n(d)&&N(Re)})}st(H,N=>i.mainEl=N,()=>i?.mainEl),Fe(H,()=>jr(be)),ae(N=>{O(H,1,n(v).main),F=St(H,"",F,N),O(G,1,n(v).header),O(B,1,n(v).sidebar),O(oe,1,n(v).grid),O(Pe,1,n(v).body),O(at,1,n(v).sidebar),O(Me,1,n(v).grid),O(He,1,n(v).events)},[()=>({"--ec-grid-cols":Te(n(D))*Te(n(D)[0]),"--ec-col-group-span":Te(n(D)[0]),"--ec-col-width":n(f)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(q)??""}px`,"--ec-sidebar-width":`${n(E)??""}px`})]),dr(B,"offsetWidth",N=>r().sidebarWidth=N),dr(G,"offsetHeight",N=>b(q,N)),x(P,H)};fe(X,P=>{!kt(n(D))&&!kt(n(D)[0])&&P(W)})}x(e,ie),we()}var mf=$("<!> <!>",1);function pf(e,t){ye(t,!0);let r=re("state"),i=new ff(r),s=a(()=>r.today),o=a(()=>r.mainEl),l=a(()=>r.viewDates),u=a(()=>r.options.scrollTime),f=a(()=>r.options.datesAboveResources),d=a(()=>r.options.theme),c=a(()=>i.grid),g=a(()=>i.sidebarWidth),h=et([]);qe(()=>{n(f)&&(n(l),n(u),vn().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let _ of n(c)){let p=_[0];if(Qe(p.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(Te(n(c))*Te(_))*(p.gridColumn-1)*(mn()?-1:1);break}}}bo(e,{get viewState(){return i},header:m=>{var y=mf(),k=Q(y);ue(k,17,()=>n(c),Ce,(E,w,C)=>{const M=a(()=>{const{dayStart:q,resource:R,disabled:te,highlight:he}=n(w)[0];return{date:q,resource:R,disabled:te,highlight:he}});{let q=a(()=>Te(n(c)[0])>1?n(d).colGroup:void 0),R=a(()=>Te(n(w))),te=a(()=>1+C*Te(n(w))),he=a(()=>n(f)&&n(M).disabled),be=a(()=>n(f)&&n(M).highlight);Qn(E,{get date(){return n(M).date},get className(){return n(q)},get weekday(){return n(f)},get colSpan(){return n(R)},get colIndex(){return n(te)},get disabled(){return n(he)},get highlight(){return n(be)},children:(ie,X)=>{var W=le(),P=Q(W);{var H=G=>{wr(G,{get date(){return n(M).date}})},F=G=>{wi(G,{get resource(){return n(M).resource},setLabel:B=>h[C]=B+", "})};fe(P,G=>{n(f)?G(H):G(F,!1)})}x(ie,W)},$$slots:{default:!0}})}});var S=se(k,2);{var D=E=>{var w=le(),C=Q(w);ue(C,17,()=>n(c),Ce,(M,q,R)=>{var te=le(),he=Q(te);ue(he,17,()=>n(q),Ce,(be,ie,X)=>{const W=a(()=>{const{dayStart:P,resource:H,disabled:F,highlight:G}=n(ie);return{date:P,resource:H,disabled:F,highlight:G}});{let P=a(()=>1+X+R*Te(n(q)));Qn(be,{get date(){return n(W).date},get colIndex(){return n(P)},get disabled(){return n(W).disabled},get highlight(){return n(W).highlight},children:(H,F)=>{var G=le(),B=Q(G);{var oe=L=>{wi(L,{get resource(){return n(W).resource},get date(){return n(W).date}})},U=L=>{wr(L,{get date(){return n(W).date},get alPrefix(){return h[R]}})};fe(B,L=>{n(f)?L(oe):L(U,!1)})}x(H,G)},$$slots:{default:!0}})}}),x(M,te)}),x(E,w)};fe(S,E=>{Te(n(c)[0])>1&&E(D)})}x(m,y)},nowIndicator:m=>{var y=le(),k=Q(y);{var S=E=>{{let w=a(()=>n(c).flat()),C=a(()=>Te(n(c)[0]));Dr(E,{get days(){return n(w)},get span(){return n(C)}})}},D=E=>{var w=le(),C=Q(w);{var M=R=>{var te=le(),he=Q(te);ue(he,17,()=>n(c),Ce,(be,ie)=>{Dr(be,{get days(){return n(ie)}})}),x(R,te)},q=R=>{{let te=a(()=>n(c).flat()),he=a(()=>Te(n(c)));Dr(R,{get days(){return n(te)},get span(){return n(he)}})}};fe(C,R=>{Te(n(c)[0])>1?R(M):R(q,!1)})}x(E,w)};fe(k,E=>{n(f)?E(S):E(D,!1)})}x(m,y)},$$slots:{header:!0,nowIndicator:!0}}),we()}const _f={createOptions(e){mo(e),pi(e),po(e),ge(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),ge(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),ge(e.theme,{colGroup:"ec-col-group"}),ge(e.views,{resourceTimeGridDay:{buttonText:Zn,component:ko,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ot("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:Jn,component:ko,duration:{weeks:1},theme:ot("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){_i(e)}};function ko(e){return mi(e),pf}function Ci(e,t,r,i=!0){let s=[],o,l,u,f,d,c,g=0;for(let{gridColumn:h,gridRow:v,resource:_,dayStart:p,dayEnd:m,start:y,end:k,disabled:S}of t)S||(r?Rn(e,p,m,_)&&(s.length||(o=p,u=h,f=v,d=_),s.push(p),l=k):Rn(e,y,k,_)&&(s.length||(o=y,u=h,f=v,d=_,c=vt(e.start-y,0)/1e3),s.push(p),l=k,g+=(At(k,e.end)-vt(y,e.start))/1e3));if(s.length){let h=Kn(e,o,l);return ge(h,{gridColumn:u,gridRow:f,resource:d,dates:s,left:c,width:g}),i&&ai(h),[h]}return[]}function yf(e){let t={};for(let r of e){let{gridColumn:i,gridRow:s}=r;for(let l=0;l<r.dates.length;++l){let u=`${s}_${i+l}`;t[u]?t[u].push(r):t[u]=[r]}let o=`${s}_${i}`;r.day=t[o]}}function wf(e,t,r){let i=1,s=i+t,o=e.day;o.sort((l,u)=>(l.top??Number.POSITIVE_INFINITY)-(u.top??Number.POSITIVE_INFINITY));for(let l of o)if(!(l===e||!("top"in l))&&(r||e.start<l.end&&e.end>l.start)&&i<l.bottom&&s>l.top){let u=l.bottom-i+1;i+=u,s+=u}return ge(e,{top:i,bottom:s}),i}function bf(e,t){return e[t.getTime()]??{min:We(0),max:We("24:00:00")}}function kf(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:l}=t,u=[];return j(()=>{let f=1;for(let d of l){let c=[],g=1;for(let h of r){let v=o[h.getTime()];c.push({gridColumn:g,gridRow:f,resource:d,start:Se(Z(h),v.min),end:Se(Z(h),v.max),dayStart:h,dayEnd:Ct(Z(h)),disabled:Ln(h,s),highlight:i.some(_=>Qe(_,h))}),++g}u.push(c),++f}}),u}}function Cf(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],l=[];return j(()=>{for(let u of r)for(let f of i)mt(u.display)?(!s||u.allDay)&&(l=l.concat(Ci(u,f,s))):o=o.concat(Ci(u,f,s));yf(o)}),{chunks:o,bgChunks:l}}}function Df(e,t){return()=>{let{iEvents:r}=e,{grid:i,monthView:s}=t,o=[];for(let[,l]of r)l&&j(()=>{for(let u of i)o=o.concat(Ci(l,u,s,!1))});return o}}function Ef(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l={};return j(()=>{for(let u of r)l[u.getTime()]=oo(s,o,i,[u],t)}),l}}function Tf(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:l}=t,u={};return j(()=>{for(let f of r){let d=f.getTime();u[d]=d in s?so(f,i,l,s[d],o):[]}}),u}}function xf(e){return()=>{let{resources:t}=e,r;return j(()=>{r=t.some(i=>Kt(i).children.length)}),r}}function Sf(e){return()=>{let{options:{slotDuration:t}}=e,r;return j(()=>{r=!_e(t)}),r}}class Rf extends yo(yi()){#e;get dayTimeLimits(){return n(this.#e)}set dayTimeLimits(t){b(this.#e,t)}#n;get daySlots(){return n(this.#n)}set daySlots(t){b(this.#n,t)}#t;get grid(){return n(this.#t)}set grid(t){b(this.#t,t)}#r;get monthView(){return n(this.#r)}set monthView(t){b(this.#r,t)}#s;get chunks(){return n(this.#s)}set chunks(t){b(this.#s,t)}#i;get bgChunks(){return n(this.#i)}set bgChunks(t){b(this.#i,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get nestedResources(){return n(this.#a)}set nestedResources(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(Ef(t)),this.#n=a(Tf(t,this)),this.#t=a(kf(t,this)),this.#r=a(Sf(t));let r=a(Cf(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#s=a(()=>n(i)),this.#i=a(()=>n(s)),this.#o=a(Df(t,this)),this.#a=a(xf(t))}}function If(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotWidth),s=a(()=>re("view-state")),o=a(()=>n(s).monthView),l=a(()=>n(s).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=K(void 0);function v(_,p){if(n(o))return n(u);{let m=rn(n(h)),y=m.width/n(h).offsetWidth;return Se(Z(n(f)),n(l).duration,$r((mn()?m.right-_:_-m.left)/(n(i)*n(l).ratio*y)))}}yr(e,{get allDay(){return n(o)},get date(){return n(u)},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(_){b(h,_,!0)}}),we()}function Di(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotDuration),s=a(()=>n(r).options.slotWidth),o=a(()=>re("view-state")),l=a(()=>n(o).monthView),u=K(void 0),f=K(1),d=a(()=>t.chunk.event),c=a(()=>v=>{if(v["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,v["grid-row"]=t.chunk.gridRow,!n(l)){let p=t.chunk.left/_e(n(i))*n(s);v["inset-inline-start"]=`${p}px`,v["inline-size"]=`${t.chunk.width/_e(n(i))*n(s)}px`}let _=n(f);if(n(d)._margin){let[p,m]=n(d)._margin;t.chunk.gridRow===m&&(_=p)}return v["margin-block-start"]=`${_}px`,v});function g(){b(f,wf(t.chunk,pn(n(u)),n(l)),!0)}var h={reposition:g};{let v=a(()=>[n(f),t.chunk.gridRow]);br(e,{get chunk(){return t.chunk},get styles(){return n(c)},axis:"x",get forceMargin(){return n(v)},get el(){return n(u)},set el(_){b(u,_,!0)}})}return we(h)}var Lf=$("<span></span>"),Pf=$("<button><!></button>"),Mf=$("<!> <span><!></span>",1);function Af(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options),s=a(()=>n(i).resources),o=a(()=>n(i).theme),l=K({}),u=K(!0);fn(()=>{b(l,Kt(t.resource)),b(u,n(l).expanded,!0)});function f(){b(u,!n(u)),n(l).expanded=n(u),d(n(l).children,n(u)),n(i).resources=[...n(s)]}function d(p,m){for(let y of p){let k=Kt(y);k.hidden=!m,k.expanded&&d(k.children,m)}}var c=Mf(),g=Q(c);ue(g,17,()=>Array(n(l).level),Ce,(p,m)=>{var y=Lf();ae(()=>O(y,1,n(o).expander)),x(p,y)});var h=se(g,2),v=de(h);{var _=p=>{var m=Pf();m.__click=f;var y=de(m);{var k=D=>{var E=Is("−");x(D,E)},S=D=>{var E=Is("+");x(D,E)};fe(y,D=>{n(u)?D(k):D(S,!1)})}ae(()=>O(m,1,n(o).button)),x(p,m)};fe(v,p=>{n(l).children?.length&&p(_)})}ae(()=>O(h,1,n(o).expander)),x(e,c),we()}tn(["click"]);var Of=$("<div></div>");function Nf(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).mainEl),s=a(()=>n(r).now),o=a(()=>n(r).today),l=a(()=>n(r).options.slotDuration),u=a(()=>n(r).options.slotWidth),f=a(()=>n(r).options.theme),d=a(()=>re("view-state")),c=a(()=>n(d).grid),g=a(()=>n(d).sidebarWidth),h=a(()=>{for(let w of n(c)[0])if(Qe(w.dayStart,n(o)))return w;return{}}),v=a(()=>n(h).gridColumn),_=a(()=>n(h).start),p=a(()=>n(h).end),m=a(()=>{if(n(s)<n(_)||n(s)>n(p))return null;let w=_e(n(l));return(n(s)-n(_))/1e3/w*n(u)}),y=a(()=>({root:n(i),rootMargin:mn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function k(w,C){w.classList.toggle(n(f).hidden,!C.isIntersecting)}var S=le(),D=Q(S);{var E=w=>{var C=Of();let M;Fe(C,()=>Hs(k,n(y))),ae(()=>{O(C,1,n(f).nowIndicator),M=St(C,"",M,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(c).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),x(w,C)};fe(D,w=>{n(v)&&n(m)!==null&&w(E)})}x(e,S),we()}var Ff=$("<div><time></time></div>"),Hf=$('<div role="rowheader"><!> <!></div>'),Wf=$('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function Uf(e,t){ye(t,!0);let r=re("state"),i=new Rf(r);Fn("view-state",i);let s=a(()=>r.mainEl),o=a(()=>r.today),l=a(()=>r.viewDates),u=a(()=>r.options.columnWidth),f=a(()=>r.options.nowIndicator),d=a(()=>r.options.scrollTime),c=a(()=>r.options.slotDuration),g=a(()=>r.options.slotHeight),h=a(()=>r.options.slotWidth),v=a(()=>r.options.theme),_=a(()=>i.chunks),p=a(()=>i.bgChunks),m=a(()=>i.iChunks),y=a(()=>i.daySlots),k=a(()=>i.dayTimeLimits),S=a(()=>i.grid),D=a(()=>i.monthView),E=a(()=>i.nestedResources),w=a(()=>i.sidebarWidth),C=a(()=>i.slotLabelPeriodicity),M=a(()=>i.viewResources),q=K(0);qe(()=>{n(d),kt(n(l))||vn().then(R)});function R(){let W=0,P=n(o)<n(l)[0]||n(o)>n(l).at(-1);if(n(D)){if(!P){let H=n(S)[0];for(let F of H)if(Qe(F.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/Te(H)*(F.gridColumn-1)*(mn()?-1:1);break}}}else{for(let H of n(l)){let F=bf(n(k),H);if(P||Qe(H,n(o))){W+=vt(At(_e(n(d)),_e(F.max))-_e(F.min),0);break}else W+=_e(F.max)-_e(F.min)}n(s).scrollLeft=W/_e(n(c))*n(h)*(mn()?-1:1)}}let te=[];function he(){oi(te,n(_))}qe(he);var be=le(),ie=Q(be);{var X=W=>{var P=Wf();let H;var F=de(P),G=de(F),B=se(G,2),oe=de(B);ue(oe,17,()=>n(S)[0],Ce,(V,J,Re)=>{let N=()=>n(J).dayStart,Y=()=>n(J).disabled,ve=()=>n(J).highlight;Qn(V,{get date(){return N()},colIndex:1+Re,get disabled(){return Y()},get highlight(){return ve()},children:(me,ne)=>{wr(me,{get date(){return N()}})},$$slots:{default:!0}})});var U=se(oe,2);{var L=V=>{var J=le(),Re=Q(J);ue(Re,17,()=>n(S)[0],Ce,(N,Y)=>{let ve=()=>n(Y).dayStart,me=()=>n(Y).disabled,ne=()=>n(Y).highlight;Qn(N,{get date(){return ve()},get className(){return n(v).slots},get disabled(){return me()},get highlight(){return ne()},ariaHidden:!0,children:(Ie,Be)=>{var lt=le(),Ne=Q(lt);ue(Ne,17,()=>n(y)[ve().getTime()],Ce,(xe,ut)=>{var Ue=Ff();let _t;var Pn=de(Ue);Fe(Pn,()=>Je(n(ut)[1])),ae(()=>{O(Ue,1,n(v).slot),_t=St(Ue,"",_t,{"--ec-slot-label-periodicity":n(ut)[2]}),Le(Pn,"datetime",n(ut)[0])}),x(xe,Ue)}),x(Ie,lt)},$$slots:{default:!0}})}),x(V,J)};fe(U,V=>{n(D)||V(L)})}var T=se(F,2),z=de(T);ue(z,21,()=>n(M),Ce,(V,J)=>{var Re=Hf(),N=de(Re);{var Y=me=>{Af(me,{get resource(){return n(J)}})};fe(N,me=>{n(E)&&me(Y)})}var ve=se(N,2);wi(ve,{get resource(){return n(J)}}),ae(()=>O(Re,1,n(v).rowHead)),x(V,Re)});var Oe=se(z,2);ue(Oe,21,()=>n(S),Ce,(V,J,Re)=>{var N=le(),Y=Q(N);ue(Y,17,()=>n(J),Ce,(ve,me,ne)=>{{let Ie=a(()=>ne+1===Te(n(J))),Be=a(()=>Re+1===Te(n(S)));If(ve,{get day(){return n(me)},get noIeb(){return n(Ie)},get noBeb(){return n(Be)}})}}),x(V,N)});var Pe=se(Oe,2),at=de(Pe);ue(at,19,()=>n(_),V=>V.id,(V,J,Re)=>{st(Di(V,{get chunk(){return n(J)}}),(N,Y)=>te[Y]=N,N=>te?.[N],()=>[n(Re)])});var Me=se(at,2);ue(Me,17,()=>n(p),V=>V.id,(V,J)=>{Di(V,{get chunk(){return n(J)}})});var He=se(Me,2);ue(He,17,()=>n(m),Ce,(V,J)=>{Di(V,{get chunk(){return n(J)}})});var pt=se(T,2);{var Nt=V=>{Nf(V,{})};fe(pt,V=>{n(f)&&!n(D)&&V(Nt)})}st(P,V=>r.mainEl=V,()=>r?.mainEl),Fe(P,()=>jr(he)),ae(V=>{O(P,1,n(v).main),H=St(P,"",H,V),O(F,1,n(v).header),O(G,1,n(v).sidebar),O(B,1,n(v).grid),O(T,1,n(v).body),O(z,1,n(v).sidebar),O(Oe,1,n(v).grid),O(Pe,1,n(v).events)},[()=>({"--ec-grid-cols":Te(n(S)[0]),"--ec-grid-rows":`${Te(n(S))>1?`repeat(${Te(n(S))-1}, auto)`:""} 1fr`,"--ec-col-width":n(u)??"minmax(4em, 1fr)","--ec-slot-label-periodicity":n(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-slot-width":`${n(h)??""}px`,"--ec-header-height":`${n(q)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`})]),dr(G,"offsetWidth",V=>i.sidebarWidth=V),dr(F,"offsetHeight",V=>b(q,V)),x(W,P)};fe(ie,W=>{!kt(n(S))&&!kt(n(S)[0])&&W(X)})}x(e,be),we()}const zf={createOptions(e){pi(e),po(e),e.slotWidth=32,e.buttonText.resourceTimelineDay="timeline",e.buttonText.resourceTimelineWeek="timeline",e.buttonText.resourceTimelineMonth="timeline",e.theme.expander="ec-expander",e.theme.rowHead="ec-row-head",e.theme.slots="ec-slots",e.view="resourceTimelineWeek",e.views.resourceTimelineDay={buttonText:Zn,component:Co,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ot("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:Jn,component:Co,displayEventEnd:!1,duration:{weeks:1},theme:ot("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:li,component:Do,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:ot("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){_i(e)}};function Co(e){return mi(e),Do(e)}function Do(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Kt(r).hidden),Uf}const Vf={createOptions(e){pi(e),mo(e),ge(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),ge(e,{view:"timeGridWeek"}),ge(e.views,{timeGridDay:{buttonText:Zn,component:Eo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ot("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:Jn,component:Eo,duration:{weeks:1},theme:ot("ec-time-grid ec-week-view")}})},createParsers(e){_i(e)}};function Eo(e){return mi(e),bo}function Bf(e,t,r){return za(ou,{target:e,props:{plugins:t,options:r}})}function Gf(e){return Ba(e)}function Yf(e,t){return Bf(e,[Tu,zu,Ju,_f,zf,Vf],t)}return er.create=Yf,er.destroy=Gf,Object.defineProperty(er,Symbol.toStringTag,{value:"Module"}),er})({});
6
6
  //# sourceMappingURL=event-calendar.min.js.map