@event-calendar/build 5.0.6 → 5.1.1

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.0.6
2
+ * EventCalendar v5.1.1
3
3
  * https://github.com/vkurko/calendar
4
4
  */
5
- var EventCalendar=(function(Hr){"use strict";var vo=Array.isArray,dl=Array.prototype.indexOf,Wr=Array.from,go=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,_o=Object.getOwnPropertyDescriptors,hl=Object.prototype,vl=Array.prototype,vi=Object.getPrototypeOf,mo=Object.isExtensible;const _t=()=>{};function gl(e){return e()}function Ur(e){for(var t=0;t<e.length;t++)e[t]()}function yo(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function _l(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const at=2,gi=4,zr=8,bo=1<<24,fn=16,dn=32,An=64,Br=128,Vt=512,dt=1024,Rt=2048,en=4096,It=8192,hn=16384,_i=32768,En=65536,wo=1<<17,po=1<<18,Qn=1<<19,$o=1<<20,vn=1<<25,On=32768,mi=1<<21,yi=1<<22,kn=1<<23,Fn=Symbol("$state"),ml=Symbol("legacy props"),yl=Symbol(""),jn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Do(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function bl(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function wl(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function pl(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function $l(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Dl(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function El(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function kl(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Cl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Tl(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xl(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Sl=1,Rl=2,Eo=4,Il=8,Ll=16,Ml=1,Pl=2,Al=4,Ol=8,Fl=16,Nl=1,Hl=2,ht=Symbol(),Wl="http://www.w3.org/1999/xhtml";function Ul(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function ko(e){return e===this.v}function Co(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function To(e){return!Co(e,this.v)}let er=!1,Cf=!1;function zl(){er=!0}let Ue=null;function tr(e){Ue=e}function Te(e){return xo().get(e)}function Bl(e,t){return xo().set(e,t),t}function ye(e,t=!1,n){Ue={p:Ue,i:!1,c:null,e:null,s:e,x:null,l:er&&!t?{s:null,u:null,$:[]}:null}}function be(e){var t=Ue,n=t.e;if(n!==null){t.e=null;for(var r of n)Vo(r)}return e!==void 0&&(t.x=e),t.i=!0,Ue=t.p,e??{}}function vr(){return!er||Ue!==null&&Ue.l===null}function xo(e){return Ue===null&&Do(),Ue.c??=new Map(Vl(Ue)||void 0)}function Vl(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let Nn=[];function So(){var e=Nn;Nn=[],Ur(e)}function Hn(e){if(Nn.length===0&&!gr){var t=Nn;queueMicrotask(()=>{t===Nn&&So()})}Nn.push(e)}function Gl(){for(;Nn.length>0;)So()}function Ro(e){var t=Le;if(t===null)return pe.f|=kn,e;if((t.f&_i)===0){if((t.f&Br)===0)throw e;t.b.error(e)}else nr(e,t)}function nr(e,t){for(;t!==null;){if((t.f&Br)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Vr=new Set;let ze=null,Nt=null,Ht=[],Gr=null,bi=!1,gr=!1;class tn{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#s=null;#o=new Set;#i=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){Ht=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[]};for(const r of t)this.#a(r,n);this.is_fork||this.#c(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects)):(ze=null,Lo(n.render_effects),Lo(n.effects),this.#s?.resolve()),Nt=null}#a(t,n){t.f^=dt;for(var r=t.first;r!==null;){var i=r.f,o=(i&(dn|An))!==0,l=o&&(i&dt)!==0,s=l||(i&It)!==0||this.skipped_effects.has(r);if((r.f&Br)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[]}),!s&&r.fn!==null){o?r.f^=dt:(i&gi)!==0?n.effects.push(r):$r(r)&&((r.f&fn)!==0&&this.#o.add(r),Dr(r));var u=r.first;if(u!==null){r=u;continue}}var c=r.parent;for(r=r.next;r===null&&c!==null;)c===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),n=n.parent),r=c.next,c=c.parent}}#l(t){for(const n of t)(n.f&Rt)!==0?this.#o.add(n):(n.f&en)!==0&&this.#i.add(n),this.#u(n.deps),vt(n,dt)}#u(t){if(t!==null)for(const n of t)(n.f&at)===0||(n.f&On)===0||(n.f^=On,this.#u(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&kn)===0&&(this.current.set(t,t.v),Nt?.set(t,t.v))}activate(){ze=this,this.apply()}deactivate(){ze===this&&(ze=null,Nt=null)}flush(){if(this.activate(),Ht.length>0){if(Io(),ze!==null&&ze!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#c(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#n===0&&this.#f()}#f(){if(Vr.size>1){this.previous.clear();var t=Nt,n=!0,r={parent:null,effect:null,effects:[],render_effects:[]};for(const o of Vr){if(o===this){n=!1;continue}const l=[];for(const[u,c]of this.current){if(o.current.has(u))if(n&&c!==o.current.get(u))o.current.set(u,c);else continue;l.push(u)}if(l.length===0)continue;const s=[...o.current.keys()].filter(u=>!this.current.has(u));if(s.length>0){var i=Ht;Ht=[];const u=new Set,c=new Map;for(const f of l)Mo(f,s,u,c);if(Ht.length>0){ze=o,o.apply();for(const f of Ht)o.#a(f,r);o.deactivate()}Ht=i}}ze=null,Nt=t}this.committed=!0,Vr.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#o)this.#i.delete(t),vt(t,Rt),Wn(t);for(const t of this.#i)vt(t,en),Wn(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#s??=yo()).promise}static ensure(){if(ze===null){const t=ze=new tn;Vr.add(ze),gr||tn.enqueue(()=>{ze===t&&t.flush()})}return ze}static enqueue(t){Hn(t)}apply(){}}function Yl(e){var t=gr;gr=!0;try{for(var n;;){if(Gl(),Ht.length===0&&(ze?.flush(),Ht.length===0))return Gr=null,n;Io()}}finally{gr=t}}function Io(){var e=Gn;bi=!0;var t=null;try{var n=0;for(Kr(!0);Ht.length>0;){var r=tn.ensure();if(n++>1e3){var i,o;ql()}r.process(Ht),Cn.clear()}}finally{bi=!1,Kr(e),Gr=null}}function ql(){try{Dl()}catch(e){nr(e,Gr)}}let gn=null;function Lo(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(hn|It))===0&&$r(r)&&(gn=new Set,Dr(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?Xo(r):r.fn=null),gn?.size>0)){Cn.clear();for(const i of gn){if((i.f&(hn|It))!==0)continue;const o=[i];let l=i.parent;for(;l!==null;)gn.has(l)&&(gn.delete(l),o.push(l)),l=l.parent;for(let s=o.length-1;s>=0;s--){const u=o[s];(u.f&(hn|It))===0&&Dr(u)}}gn.clear()}}gn=null}}function Mo(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;(o&at)!==0?Mo(i,t,n,r):(o&(yi|fn))!==0&&(o&Rt)===0&&Po(i,t,r)&&(vt(i,Rt),Wn(i))}}function Po(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&at)!==0&&Po(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Wn(e){for(var t=Gr=e;t.parent!==null;){t=t.parent;var n=t.f;if(bi&&t===Le&&(n&fn)!==0&&(n&po)===0)return;if((n&(An|dn))!==0){if((n&dt)===0)return;t.f^=dt}}Ht.push(t)}function Xl(e){let t=0,n=Un(0),r;return()=>{br()&&(a(n),Go(()=>(t===0&&(r=U(()=>e(()=>mr(n)))),t+=1,()=>{Hn(()=>{t-=1,t===0&&(r?.(),r=void 0,mr(n))})})))}}var Kl=En|Qn|Br;function Zl(e,t,n){new Jl(e,t,n)}class Jl{parent;#e=!1;#t;#n=null;#r;#s;#o;#i=null;#a=null;#l=null;#u=null;#c=null;#f=0;#d=0;#v=!1;#h=null;#b=Xl(()=>(this.#h=Un(this.#f),()=>{this.#h=null}));constructor(t,n,r){this.#t=t,this.#r=n,this.#s=r,this.parent=Le.b,this.#e=!!this.#r.pending,this.#o=wr(()=>{Le.b=this;{var i=this.#m();try{this.#i=Lt(()=>r(i))}catch(o){this.error(o)}this.#d>0?this.#_():this.#e=!1}return()=>{this.#c?.remove()}},Kl)}#w(){try{this.#i=Lt(()=>this.#s(this.#t))}catch(t){this.error(t)}this.#e=!1}#p(){const t=this.#r.pending;t&&(this.#a=Lt(()=>t(this.#t)),tn.enqueue(()=>{var n=this.#m();this.#i=this.#g(()=>(tn.ensure(),Lt(()=>this.#s(n)))),this.#d>0?this.#_():(Vn(this.#a,()=>{this.#a=null}),this.#e=!1)}))}#m(){var t=this.#t;return this.#e&&(this.#c=_n(),this.#t.before(this.#c),t=this.#c),t}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#g(t){var n=Le,r=pe,i=Ue;rn(this.#o),Dt(this.#o),tr(this.#o.ctx);try{return t()}catch(o){return Ro(o),null}finally{rn(n),Dt(r),tr(i)}}#_(){const t=this.#r.pending;this.#i!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#c),Jo(this.#i,this.#u)),this.#a===null&&(this.#a=Lt(()=>t(this.#t)))}#y(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t);return}this.#d+=t,this.#d===0&&(this.#e=!1,this.#a&&Vn(this.#a,()=>{this.#a=null}),this.#u&&(this.#t.before(this.#u),this.#u=null))}update_pending_count(t){this.#y(t),this.#f+=t,this.#h&&rr(this.#h,this.#f)}get_effect_pending(){return this.#b(),a(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(mt(this.#i),this.#i=null),this.#a&&(mt(this.#a),this.#a=null),this.#l&&(mt(this.#l),this.#l=null);var i=!1,o=!1;const l=()=>{if(i){Ul();return}i=!0,o&&xl(),tn.ensure(),this.#f=0,this.#l!==null&&Vn(this.#l,()=>{this.#l=null}),this.#e=this.has_pending_snippet(),this.#i=this.#g(()=>(this.#v=!1,Lt(()=>this.#s(this.#t)))),this.#d>0?this.#_():this.#e=!1};var s=pe;try{Dt(null),o=!0,n?.(t,l),o=!1}catch(u){nr(u,this.#o&&this.#o.parent)}finally{Dt(s)}r&&Hn(()=>{this.#l=this.#g(()=>{tn.ensure(),this.#v=!0;try{return Lt(()=>{r(this.#t,()=>t,()=>l)})}catch(u){return nr(u,this.#o.parent),null}finally{this.#v=!1}})})}}function Ql(e,t,n,r){const i=vr()?_r:wi;if(n.length===0&&e.length===0){r(t.map(i));return}var o=ze,l=Le,s=jl();function u(){Promise.all(n.map(c=>es(c))).then(c=>{s();try{r([...t.map(i),...c])}catch(f){(l.f&hn)===0&&nr(f,l)}o?.deactivate(),Yr()}).catch(c=>{nr(c,l)})}e.length>0?Promise.all(e).then(()=>{s();try{return u()}finally{o?.deactivate(),Yr()}}):u()}function jl(){var e=Le,t=pe,n=Ue,r=ze;return function(o=!0){rn(e),Dt(t),tr(n),o&&r?.activate()}}function Yr(){rn(null),Dt(null),tr(null)}function _r(e){var t=at|Rt,n=pe!==null&&(pe.f&at)!==0?pe:null;return Le!==null&&(Le.f|=Qn),{ctx:Ue,deps:null,effects:null,equals:ko,f:t,fn:e,reactions:null,rv:0,v:ht,wv:0,parent:n??Le,ac:null}}function es(e,t){let n=Le;n===null&&bl();var r=n.b,i=void 0,o=Un(ht),l=!pe,s=new Map;return ss(()=>{var u=yo();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{c===ze&&c.committed&&c.deactivate(),Yr()})}catch(h){u.reject(h),Yr()}var c=ze;if(l){var f=!r.is_pending();r.update_pending_count(1),c.increment(f),s.get(c)?.reject(jn),s.delete(c),s.set(c,u)}const v=(h,_=void 0)=>{if(c.activate(),_)_!==jn&&(o.f|=kn,rr(o,_));else{(o.f&kn)!==0&&(o.f^=kn),rr(o,h);for(const[m,w]of s){if(s.delete(m),m===c)break;w.reject(jn)}}l&&(r.update_pending_count(-1),c.decrement(f))};u.promise.then(v,h=>v(null,h||"unknown"))}),Xr(()=>{for(const u of s.values())u.reject(jn)}),new Promise(u=>{function c(f){function v(){f===i?u(o):c(i)}f.then(v,v)}c(i)})}function y(e){const t=_r(e);return jo(t),t}function wi(e){const t=_r(e);return t.equals=To,t}function Ao(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)mt(t[n])}}function ts(e){for(var t=e.parent;t!==null;){if((t.f&at)===0)return(t.f&hn)===0?t:null;t=t.parent}return null}function pi(e){var t,n=Le;rn(ts(e));try{e.f&=~On,Ao(e),t=ia(e)}finally{rn(n)}return t}function Oo(e){var t=pi(e);if(e.equals(t)||(ze?.is_fork||(e.v=t),e.wv=na()),!Yn)if(Nt!==null)(br()||ze?.is_fork)&&Nt.set(e,t);else{var n=(e.f&Vt)===0?en:dt;vt(e,n)}}let $i=new Set;const Cn=new Map;let Fo=!1;function Un(e,t){var n={f:0,v:e,reactions:null,equals:ko,rv:0,wv:0};return n}function Ie(e,t){const n=Un(e);return jo(n),n}function Di(e,t=!1,n=!0){const r=Un(e);return t||(r.equals=To),er&&n&&Ue!==null&&Ue.l!==null&&(Ue.l.s??=[]).push(r),r}function Z(e,t,n=!1){pe!==null&&(!nn||(pe.f&wo)!==0)&&vr()&&(pe.f&(at|fn|yi|wo))!==0&&!mn?.includes(e)&&Tl();let r=n?zn(t):t;return rr(e,r)}function rr(e,t){if(!e.equals(t)){var n=e.v;Yn?Cn.set(e,t):Cn.set(e,n),e.v=t;var r=tn.ensure();r.capture(e,n),(e.f&at)!==0&&((e.f&Rt)!==0&&pi(e),vt(e,(e.f&Vt)!==0?dt:en)),e.wv=na(),No(e,Rt),vr()&&Le!==null&&(Le.f&dt)!==0&&(Le.f&(dn|An))===0&&(Wt===null?ds([e]):Wt.push(e)),!r.is_fork&&$i.size>0&&!Fo&&ns()}return t}function ns(){Fo=!1;var e=Gn;Kr(!0);const t=Array.from($i);try{for(const n of t)(n.f&dt)!==0&&vt(n,en),$r(n)&&Dr(n)}finally{Kr(e)}$i.clear()}function mr(e){Z(e,e.v+1)}function No(e,t){var n=e.reactions;if(n!==null)for(var r=vr(),i=n.length,o=0;o<i;o++){var l=n[o],s=l.f;if(!(!r&&l===Le)){var u=(s&Rt)===0;if(u&&vt(l,t),(s&at)!==0){var c=l;Nt?.delete(c),(s&On)===0&&(s&Vt&&(l.f|=On),No(c,en))}else u&&((s&fn)!==0&&gn!==null&&gn.add(l),Wn(l))}}}function zn(e){if(typeof e!="object"||e===null||Fn in e)return e;const t=vi(e);if(t!==hl&&t!==vl)return e;var n=new Map,r=vo(e),i=Ie(0),o=qn,l=s=>{if(qn===o)return s();var u=pe,c=qn;Dt(null),ta(o);var f=s();return Dt(u),ta(c),f};return r&&n.set("length",Ie(e.length)),new Proxy(e,{defineProperty(s,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&kl();var f=n.get(u);return f===void 0?f=l(()=>{var v=Ie(c.value);return n.set(u,v),v}):Z(f,c.value,!0),!0},deleteProperty(s,u){var c=n.get(u);if(c===void 0){if(u in s){const f=l(()=>Ie(ht));n.set(u,f),mr(i)}}else Z(c,ht),mr(i);return!0},get(s,u,c){if(u===Fn)return e;var f=n.get(u),v=u in s;if(f===void 0&&(!v||Pn(s,u)?.writable)&&(f=l(()=>{var _=zn(v?s[u]:ht),m=Ie(_);return m}),n.set(u,f)),f!==void 0){var h=a(f);return h===ht?void 0:h}return Reflect.get(s,u,c)},getOwnPropertyDescriptor(s,u){var c=Reflect.getOwnPropertyDescriptor(s,u);if(c&&"value"in c){var f=n.get(u);f&&(c.value=a(f))}else if(c===void 0){var v=n.get(u),h=v?.v;if(v!==void 0&&h!==ht)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return c},has(s,u){if(u===Fn)return!0;var c=n.get(u),f=c!==void 0&&c.v!==ht||Reflect.has(s,u);if(c!==void 0||Le!==null&&(!f||Pn(s,u)?.writable)){c===void 0&&(c=l(()=>{var h=f?zn(s[u]):ht,_=Ie(h);return _}),n.set(u,c));var v=a(c);if(v===ht)return!1}return f},set(s,u,c,f){var v=n.get(u),h=u in s;if(r&&u==="length")for(var _=c;_<v.v;_+=1){var m=n.get(_+"");m!==void 0?Z(m,ht):_ in s&&(m=l(()=>Ie(ht)),n.set(_+"",m))}if(v===void 0)(!h||Pn(s,u)?.writable)&&(v=l(()=>Ie(void 0)),Z(v,zn(c)),n.set(u,v));else{h=v.v!==ht;var w=l(()=>zn(c));Z(v,w)}var g=Reflect.getOwnPropertyDescriptor(s,u);if(g?.set&&g.set.call(f,c),!h){if(r&&typeof u=="string"){var b=n.get("length"),$=Number(u);Number.isInteger($)&&$>=b.v&&Z(b,$+1)}mr(i)}return!0},ownKeys(s){a(i);var u=Reflect.ownKeys(s).filter(v=>{var h=n.get(v);return h===void 0||h.v!==ht});for(var[c,f]of n)f.v!==ht&&!(c in s)&&u.push(c);return u},setPrototypeOf(){Cl()}})}var Gt,Ho,Wo,Uo;function rs(){if(Gt===void 0){Gt=window,Ho=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wo=Pn(t,"firstChild").get,Uo=Pn(t,"nextSibling").get,mo(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),mo(n)&&(n.__t=void 0)}}function _n(e=""){return document.createTextNode(e)}function qr(e){return Wo.call(e)}function yr(e){return Uo.call(e)}function fe(e,t){return qr(e)}function J(e,t=!1){{var n=qr(e);return n instanceof Comment&&n.data===""?yr(n):n}}function ne(e,t=1,n=!1){let r=e;for(;t--;)r=yr(r);return r}function is(e){e.textContent=""}function zo(){return!1}function os(e,t){{const n=document.body;e.autofocus=!0,Hn(()=>{document.activeElement===n&&e.focus()})}}function Ei(e){var t=pe,n=Le;Dt(null),rn(null);try{return e()}finally{Dt(t),rn(n)}}function Bo(e){Le===null&&(pe===null&&$l(),pl()),Yn&&wl()}function as(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Yt(e,t,n){var r=Le;r!==null&&(r.f&It)!==0&&(e|=It);var i={ctx:Ue,deps:null,nodes:null,f:e|Rt|Vt,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Dr(i),i.f|=_i}catch(s){throw mt(i),s}else t!==null&&Wn(i);var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&Qn)===0&&(o=o.first,(e&fn)!==0&&(e&En)!==0&&o!==null&&(o.f|=En)),o!==null&&(o.parent=r,r!==null&&as(o,r),pe!==null&&(pe.f&at)!==0&&(e&An)===0)){var l=pe;(l.effects??=[]).push(o)}return i}function br(){return pe!==null&&!nn}function Xr(e){const t=Yt(zr,null,!1);return vt(t,dt),t.teardown=e,t}function et(e){Bo();var t=Le.f,n=!pe&&(t&dn)!==0&&(t&_i)===0;if(n){var r=Ue;(r.e??=[]).push(e)}else return Vo(e)}function Vo(e){return Yt(gi|$o,e,!1)}function Bn(e){return Bo(),Yt(zr|$o,e,!0)}function ls(e){tn.ensure();const t=Yt(An|Qn,e,!0);return(n={})=>new Promise(r=>{n.outro?Vn(t,()=>{mt(t),r(void 0)}):(mt(t),r(void 0))})}function ki(e){return Yt(gi,e,!1)}function ss(e){return Yt(yi|Qn,e,!0)}function Go(e,t=0){return Yt(zr|t,e,!0)}function le(e,t=[],n=[],r=[]){Ql(r,t,n,i=>{Yt(zr,()=>e(...i.map(a)),!0)})}function wr(e,t=0){var n=Yt(fn|t,e,!0);return n}function us(e,t=0){var n=Yt(bo|t,e,!0);return n}function Lt(e){return Yt(dn|Qn,e,!0)}function Yo(e){var t=e.teardown;if(t!==null){const n=Yn,r=pe;Qo(!0),Dt(null);try{t.call(null)}finally{Qo(n),Dt(r)}}}function qo(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Ei(()=>{i.abort(jn)});var r=n.next;(n.f&An)!==0?n.parent=null:mt(n,t),n=r}}function cs(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&dn)===0&&mt(t),t=n}}function mt(e,t=!0){var n=!1;(t||(e.f&po)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(fs(e.nodes.start,e.nodes.end),n=!0),qo(e,t&&!n),Zr(e,0),vt(e,hn);var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)o.stop();Yo(e);var i=e.parent;i!==null&&i.first!==null&&Xo(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function fs(e,t){for(;e!==null;){var n=e===t?null:yr(e);e.remove(),e=n}}function Xo(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Vn(e,t,n=!0){var r=[];Ko(e,r,!0);var i=()=>{n&&mt(e),t&&t()},o=r.length;if(o>0){var l=()=>--o||i();for(var s of r)s.out(l)}else i()}function Ko(e,t,n){if((e.f&It)===0){e.f^=It;var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)(s.is_global||n)&&t.push(s);for(var i=e.first;i!==null;){var o=i.next,l=(i.f&En)!==0||(i.f&dn)!==0&&(e.f&fn)!==0;Ko(i,t,l?n:!1),i=o}}}function Ci(e){Zo(e,!0)}function Zo(e,t){if((e.f&It)!==0){e.f^=It,(e.f&dt)===0&&(vt(e,Rt),Wn(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&En)!==0||(n.f&dn)!==0;Zo(n,i?t:!1),n=r}var o=e.nodes&&e.nodes.t;if(o!==null)for(const l of o)(l.is_global||t)&&l.in()}}function Jo(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:yr(n);t.append(n),n=i}}let Gn=!1;function Kr(e){Gn=e}let Yn=!1;function Qo(e){Yn=e}let pe=null,nn=!1;function Dt(e){pe=e}let Le=null;function rn(e){Le=e}let mn=null;function jo(e){pe!==null&&(mn===null?mn=[e]:mn.push(e))}let yt=null,Mt=0,Wt=null;function ds(e){Wt=e}let ea=1,pr=0,qn=pr;function ta(e){qn=e}function na(){return++ea}function $r(e){var t=e.f;if((t&Rt)!==0)return!0;if(t&at&&(e.f&=~On),(t&en)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i];if($r(o)&&Oo(o),o.wv>e.wv)return!0}(t&Vt)!==0&&Nt===null&&vt(e,dt)}return!1}function ra(e,t,n=!0){var r=e.reactions;if(r!==null&&!mn?.includes(e))for(var i=0;i<r.length;i++){var o=r[i];(o.f&at)!==0?ra(o,t,!1):t===o&&(n?vt(o,Rt):(o.f&dt)!==0&&vt(o,en),Wn(o))}}function ia(e){var t=yt,n=Mt,r=Wt,i=pe,o=mn,l=Ue,s=nn,u=qn,c=e.f;yt=null,Mt=0,Wt=null,pe=(c&(dn|An))===0?e:null,mn=null,tr(e.ctx),nn=!1,qn=++pr,e.ac!==null&&(Ei(()=>{e.ac.abort(jn)}),e.ac=null);try{e.f|=mi;var f=e.fn,v=f(),h=e.deps;if(yt!==null){var _;if(Zr(e,Mt),h!==null&&Mt>0)for(h.length=Mt+yt.length,_=0;_<yt.length;_++)h[Mt+_]=yt[_];else e.deps=h=yt;if(br()&&(e.f&Vt)!==0)for(_=Mt;_<h.length;_++)(h[_].reactions??=[]).push(e)}else h!==null&&Mt<h.length&&(Zr(e,Mt),h.length=Mt);if(vr()&&Wt!==null&&!nn&&h!==null&&(e.f&(at|en|Rt))===0)for(_=0;_<Wt.length;_++)ra(Wt[_],e);return i!==null&&i!==e&&(pr++,Wt!==null&&(r===null?r=Wt:r.push(...Wt))),(e.f&kn)!==0&&(e.f^=kn),v}catch(m){return Ro(m)}finally{e.f^=mi,yt=t,Mt=n,Wt=r,pe=i,mn=o,tr(l),nn=s,qn=u}}function hs(e,t){let n=t.reactions;if(n!==null){var r=dl.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&at)!==0&&(yt===null||!yt.includes(t))&&(vt(t,en),(t.f&Vt)!==0&&(t.f^=Vt,t.f&=~On),Ao(t),Zr(t,0))}function Zr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)hs(e,n[r])}function Dr(e){var t=e.f;if((t&hn)===0){vt(e,dt);var n=Le,r=Gn;Le=e,Gn=!0;try{(t&(fn|bo))!==0?cs(e):qo(e),Yo(e);var i=ia(e);e.teardown=typeof i=="function"?i:null,e.wv=ea;var o}finally{Gn=r,Le=n}}}async function Jr(){await Promise.resolve(),Yl()}function a(e){var t=e.f,n=(t&at)!==0;if(pe!==null&&!nn){var r=Le!==null&&(Le.f&hn)!==0;if(!r&&!mn?.includes(e)){var i=pe.deps;if((pe.f&mi)!==0)e.rv<pr&&(e.rv=pr,yt===null&&i!==null&&i[Mt]===e?Mt++:yt===null?yt=[e]:yt.includes(e)||yt.push(e));else{(pe.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[pe]:o.includes(pe)||o.push(pe)}}}if(Yn){if(Cn.has(e))return Cn.get(e);if(n){var l=e,s=l.v;return((l.f&dt)===0&&l.reactions!==null||aa(l))&&(s=pi(l)),Cn.set(l,s),s}}else n&&(!Nt?.has(e)||ze?.is_fork&&!br())&&(l=e,$r(l)&&Oo(l),Gn&&br()&&(l.f&Vt)===0&&oa(l));if(Nt?.has(e))return Nt.get(e);if((e.f&kn)!==0)throw e.v;return e.v}function oa(e){if(e.deps!==null){e.f^=Vt;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&at)!==0&&(t.f&Vt)===0&&oa(t)}}function aa(e){if(e.v===ht)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Cn.has(t)||(t.f&at)!==0&&aa(t))return!0;return!1}function U(e){var t=nn;try{return nn=!0,e()}finally{nn=t}}const vs=-7169;function vt(e,t){e.f=e.f&vs|t}function gs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Fn in e)Ti(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Fn in n&&Ti(n)}}}function Ti(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ti(e[r],t)}catch{}const n=vi(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=_o(n);for(let i in r){const o=r[i].get;if(o)try{o.call(e)}catch{}}}}}const _s=["touchstart","touchmove"];function ms(e){return _s.includes(e)}const la=new Set,xi=new Set;function ys(e,t,n,r={}){function i(o){if(r.capture||Er.call(t,o),!o.cancelBubble)return Ei(()=>n?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Hn(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Pt(e,t,n,r,i){var o={capture:r,passive:i},l=ys(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Xr(()=>{t.removeEventListener(e,l,o)})}function Tn(e){for(var t=0;t<e.length;t++)la.add(e[t]);for(var n of xi)n(e)}let sa=null;function Er(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;sa=e;var l=0,s=sa===e&&e.__root;if(s){var u=i.indexOf(s);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var c=i.indexOf(t);if(c===-1)return;u<=c&&(l=u)}if(o=i[l]||e.target,o!==t){go(e,"currentTarget",{configurable:!0,get(){return o||n}});var f=pe,v=Le;Dt(null),rn(null);try{for(var h,_=[];o!==null;){var m=o.assignedSlot||o.parentNode||o.host||null;try{var w=o["__"+r];w!=null&&(!o.disabled||e.target===o)&&w.call(o,e)}catch(g){h?_.push(g):h=g}if(e.cancelBubble||m===t||m===null)break;o=m}if(h){for(let g of _)queueMicrotask(()=>{throw g});throw h}}finally{e.__root=t,delete e.currentTarget,Dt(f),rn(v)}}}function bs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Qr(e,t){var n=Le;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function j(e,t){var n=(t&Nl)!==0,r=(t&Hl)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=bs(o?e:"<!>"+e),n||(i=qr(i)));var l=r||Ho?document.importNode(i,!0):i.cloneNode(!0);if(n){var s=qr(l),u=l.lastChild;Qr(s,u)}else Qr(l,l);return l}}function ua(e=""){{var t=_n(e+"");return Qr(t,t),t}}function _e(){var e=document.createDocumentFragment(),t=document.createComment(""),n=_n();return e.append(t,n),Qr(t,n),e}function x(e,t){e!==null&&e.before(t)}function ca(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function ws(e,t){return ps(e,t)}const ir=new Map;function ps(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:l=!0}){rs();var s=new Set,u=v=>{for(var h=0;h<v.length;h++){var _=v[h];if(!s.has(_)){s.add(_);var m=ms(_);t.addEventListener(_,Er,{passive:m});var w=ir.get(_);w===void 0?(document.addEventListener(_,Er,{passive:m}),ir.set(_,1)):ir.set(_,w+1)}}};u(Wr(la)),xi.add(u);var c=void 0,f=ls(()=>{var v=n??t.appendChild(_n());return Zl(v,{pending:()=>{}},h=>{if(o){ye({});var _=Ue;_.c=o}i&&(r.$$events=i),c=e(h,r)||{},o&&be()}),()=>{for(var h of s){t.removeEventListener(h,Er);var _=ir.get(h);--_===0?(document.removeEventListener(h,Er),ir.delete(h)):ir.set(h,_)}xi.delete(u),v!==n&&v.parentNode?.removeChild(v)}});return Si.set(c,f),c}let Si=new WeakMap;function $s(e,t){const n=Si.get(e);return n?(Si.delete(e),n(t)):Promise.resolve()}class Ri{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#o=()=>{var t=ze;if(this.#e.has(t)){var n=this.#e.get(t),r=this.#t.get(n);if(r)Ci(r),this.#r.delete(n);else{var i=this.#n.get(n);i&&(this.#t.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===t)break;const s=this.#n.get(l);s&&(mt(s.effect),this.#n.delete(l))}for(const[o,l]of this.#t){if(o===n||this.#r.has(o))continue;const s=()=>{if(Array.from(this.#e.values()).includes(o)){var c=document.createDocumentFragment();Jo(l,c),c.append(_n()),this.#n.set(o,{effect:l,fragment:c})}else mt(l);this.#r.delete(o),this.#t.delete(o)};this.#s||!r?(this.#r.add(o),Vn(l,s,!1)):s()}}};#i=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#n)n.includes(r)||(mt(i.effect),this.#n.delete(r))};ensure(t,n){var r=ze,i=zo();if(n&&!this.#t.has(t)&&!this.#n.has(t))if(i){var o=document.createDocumentFragment(),l=_n();o.append(l),this.#n.set(t,{effect:Lt(()=>n(l)),fragment:o})}else this.#t.set(t,Lt(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[s,u]of this.#t)s===t?r.skipped_effects.delete(u):r.skipped_effects.add(u);for(const[s,u]of this.#n)s===t?r.skipped_effects.delete(u.effect):r.skipped_effects.add(u.effect);r.oncommit(this.#o),r.ondiscard(this.#i)}else this.#o()}}function $e(e,t,n=!1){var r=new Ri(e),i=n?En:0;function o(l,s){r.ensure(l,s)}wr(()=>{var l=!1;t((s,u=!0)=>{l=!0,o(u,s)}),l||o(!1,null)},i)}function se(e,t){return t}function Ds(e,t,n){for(var r=[],i=t.length,o,l=t.length,s=0;s<i;s++){let v=t[s];Vn(v,()=>{if(o){if(o.pending.delete(v),o.done.add(v),o.pending.size===0){var h=e.outrogroups;Ii(Wr(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var u=r.length===0&&n!==null;if(u){var c=n,f=c.parentNode;is(f),f.append(c),e.items.clear()}Ii(t,!u)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Ii(e,t=!0){for(var n=0;n<e.length;n++)mt(e[n],t)}var fa;function oe(e,t,n,r,i,o=null){var l=e,s=new Map,u=(t&Eo)!==0;if(u){var c=e;l=c.appendChild(_n())}var f=null,v=wi(()=>{var b=n();return vo(b)?b:b==null?[]:Wr(b)}),h,_=!0;function m(){g.fallback=f,Es(g,h,l,t,r),f!==null&&(h.length===0?(f.f&vn)===0?Ci(f):(f.f^=vn,kr(f,null,l)):Vn(f,()=>{f=null}))}var w=wr(()=>{h=a(v);for(var b=h.length,$=new Set,p=ze,T=zo(),D=0;D<b;D+=1){var k=h[D],L=r(k,D),E=_?null:s.get(L);E?(E.v&&rr(E.v,k),E.i&&rr(E.i,D),T&&p.skipped_effects.delete(E.e)):(E=ks(s,_?l:fa??=_n(),k,L,D,i,t,n),_||(E.e.f|=vn),s.set(L,E)),$.add(L)}if(b===0&&o&&!f&&(_?f=Lt(()=>o(l)):(f=Lt(()=>o(fa??=_n())),f.f|=vn)),!_)if(T){for(const[H,C]of s)$.has(H)||p.skipped_effects.add(C.e);p.oncommit(m),p.ondiscard(()=>{})}else m();a(v)}),g={effect:w,items:s,outrogroups:null,fallback:f};_=!1}function Es(e,t,n,r,i){var o=(r&Il)!==0,l=t.length,s=e.items,u=e.effect.first,c,f=null,v,h=[],_=[],m,w,g,b;if(o)for(b=0;b<l;b+=1)m=t[b],w=i(m,b),g=s.get(w).e,(g.f&vn)===0&&(g.nodes?.a?.measure(),(v??=new Set).add(g));for(b=0;b<l;b+=1){if(m=t[b],w=i(m,b),g=s.get(w).e,e.outrogroups!==null)for(const C of e.outrogroups)C.pending.delete(g),C.done.delete(g);if((g.f&vn)!==0)if(g.f^=vn,g===u)kr(g,null,n);else{var $=f?f.next:u;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),xn(e,f,g),xn(e,g,$),kr(g,$,n),f=g,h=[],_=[],u=f.next;continue}if((g.f&It)!==0&&(Ci(g),o&&(g.nodes?.a?.unfix(),(v??=new Set).delete(g))),g!==u){if(c!==void 0&&c.has(g)){if(h.length<_.length){var p=_[0],T;f=p.prev;var D=h[0],k=h[h.length-1];for(T=0;T<h.length;T+=1)kr(h[T],p,n);for(T=0;T<_.length;T+=1)c.delete(_[T]);xn(e,D.prev,k.next),xn(e,f,D),xn(e,k,p),u=p,f=k,b-=1,h=[],_=[]}else c.delete(g),kr(g,u,n),xn(e,g.prev,g.next),xn(e,g,f===null?e.effect.first:f.next),xn(e,f,g),f=g;continue}for(h=[],_=[];u!==null&&u!==g;)(c??=new Set).add(u),_.push(u),u=u.next;if(u===null)continue}(g.f&vn)===0&&h.push(g),f=g,u=g.next}if(e.outrogroups!==null){for(const C of e.outrogroups)C.pending.size===0&&(Ii(Wr(C.done)),e.outrogroups?.delete(C));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||c!==void 0){var L=[];if(c!==void 0)for(g of c)(g.f&It)===0&&L.push(g);for(;u!==null;)(u.f&It)===0&&u!==e.fallback&&L.push(u),u=u.next;var E=L.length;if(E>0){var H=(r&Eo)!==0&&l===0?n:null;if(o){for(b=0;b<E;b+=1)L[b].nodes?.a?.measure();for(b=0;b<E;b+=1)L[b].nodes?.a?.fix()}Ds(e,L,H)}}o&&Hn(()=>{if(v!==void 0)for(g of v)g.nodes?.a?.apply()})}function ks(e,t,n,r,i,o,l,s){var u=(l&Sl)!==0?(l&Ll)===0?Di(n,!1,!1):Un(n):null,c=(l&Rl)!==0?Un(i):null;return{v:u,i:c,e:Lt(()=>(o(t,u??n,c??i,s),()=>{e.delete(r)}))}}function kr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,o=t&&(t.f&vn)===0?t.nodes.start:n;r!==null;){var l=yr(r);if(o.before(r),r===i)return;r=l}}function xn(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function yn(e,t,...n){var r=new Ri(e);wr(()=>{const i=t()??null;r.ensure(i,i&&(o=>i(o,...n)))},En)}function Li(e,t,n){var r=new Ri(e);wr(()=>{var i=t()??null;r.ensure(i,i&&(o=>n(o,i)))},En)}function Ye(e,t){var n=void 0,r;us(()=>{n!==(n=t())&&(r&&(mt(r),r=null),n&&(r=Lt(()=>{ki(()=>n(e))})))})}function da(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=da(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Cs(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=da(e))&&(r&&(r+=" "),r+=t);return r}function on(e){return typeof e=="object"?Cs(e):e??""}function Ts(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function ha(e,t=!1){var n=t?" !important;":";",r="";for(var i in e){var o=e[i];o!=null&&o!==""&&(r+=" "+i+": "+o+n)}return r}function Mi(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function xs(e,t){if(t){var n="",r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,l=0,s=!1,u=[];r&&u.push(...Object.keys(r).map(Mi)),i&&u.push(...Object.keys(i).map(Mi));var c=0,f=-1;const w=e.length;for(var v=0;v<w;v++){var h=e[v];if(s?h==="/"&&e[v-1]==="*"&&(s=!1):o?o===h&&(o=!1):h==="/"&&e[v+1]==="*"?s=!0:h==='"'||h==="'"?o=h:h==="("?l++:h===")"&&l--,!s&&o===!1&&l===0){if(h===":"&&f===-1)f=v;else if(h===";"||v===w-1){if(f!==-1){var _=Mi(e.substring(c,f).trim());if(!u.includes(_)){h!==";"&&v++;var m=e.substring(c,v).trim();n+=" "+m+";"}}c=v+1,f=-1}}}}return r&&(n+=ha(r)),i&&(n+=ha(i,!0)),n=n.trim(),n===""?null:n}return e==null?null:String(e)}function N(e,t,n,r,i,o){var l=e.__className;if(l!==n||l===void 0){var s=Ts(n);s==null?e.removeAttribute("class"):e.className=s,e.__className=n}return o}function Pi(e,t={},n,r){for(var i in n){var o=n[i];t[i]!==o&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,o,r))}}function qt(e,t,n,r){var i=e.__style;if(i!==t){var o=xs(t,r);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else r&&(Array.isArray(r)?(Pi(e,n?.[0],r[0]),Pi(e,n?.[1],r[1],"important")):Pi(e,n,r));return r}const Ss=Symbol("is custom element"),Rs=Symbol("is html");function Be(e,t,n,r){var i=Is(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[yl]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Ls(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Is(e){return e.__attributes??={[Ss]:e.nodeName.includes("-"),[Rs]:e.namespaceURI===Wl}}var va=new Map;function Ls(e){var t=e.getAttribute("is")||e.nodeName,n=va.get(t);if(n)return n;va.set(t,n=[]);for(var r,i=e,o=Element.prototype;o!==i;){r=_o(i);for(var l in r)r[l].set&&n.push(l);i=vi(i)}return n}function Sn(e,t,n){var r=Pn(e,t);r&&r.set&&(e[t]=n,Xr(()=>{e[t]=null}))}class Ai{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(t){this.#n=t}observe(t,n){var r=this.#e.get(t)||new Set;return r.add(n),this.#e.set(t,r),this.#r().observe(t,this.#n),()=>{var i=this.#e.get(t);i.delete(n),i.size===0&&(this.#e.delete(t),this.#t.unobserve(t))}}#r(){return this.#t??(this.#t=new ResizeObserver(t=>{for(var n of t){Ai.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}}))}}var Ms=new Ai({box:"border-box"});function jr(e,t,n){var r=Ms.observe(e,()=>n(e[t]));ki(()=>(U(()=>n(e[t])),r))}function ga(e,t){return e===t||e?.[Fn]===t}function bt(e={},t,n,r){return ki(()=>{var i,o;return Go(()=>{i=o,o=r?.()||[],U(()=>{e!==n(...o)&&(t(e,...o),i&&ga(n(...i),e)&&t(null,...i))})}),()=>{Hn(()=>{o&&ga(n(...o),e)&&t(null,...o)})}}),e}function Ps(e=!1){const t=Ue,n=t.l.u;if(!n)return;let r=()=>gs(t.s);if(e){let i=0,o={};const l=_r(()=>{let s=!1;const u=t.s;for(const c in u)u[c]!==o[c]&&(o[c]=u[c],s=!0);return s&&i++,i});r=()=>a(l)}n.b.length&&Bn(()=>{_a(t,r),Ur(n.b)}),et(()=>{const i=U(()=>n.m.map(gl));return()=>{for(const o of i)typeof o=="function"&&o()}}),n.a.length&&et(()=>{_a(t,r),Ur(n.a)})}function _a(e,t){if(e.l.s)for(const n of e.l.s)a(n);t()}function Oi(e,t,n){if(e==null)return t(void 0),n&&n(void 0),_t;const r=U(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const or=[];function ma(e,t){return{subscribe:lt(e,t).subscribe}}function lt(e,t=_t){let n=null;const r=new Set;function i(s){if(Co(e,s)&&(e=s,n)){const u=!or.length;for(const c of r)c[1](),or.push(c,e);if(u){for(let c=0;c<or.length;c+=2)or[c][0](or[c+1]);or.length=0}}}function o(s){i(s(e))}function l(s,u=_t){const c=[s,u];return r.add(c),r.size===1&&(n=t(i,o)||_t),s(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:l}}function tt(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return ma(n,(l,s)=>{let u=!1;const c=[];let f=0,v=_t;const h=()=>{if(f)return;v();const m=t(r?c[0]:c,l,s);o?l(m):v=typeof m=="function"?m:_t},_=i.map((m,w)=>Oi(m,g=>{c[w]=g,f&=~(1<<w),u&&h()},()=>{f|=1<<w}));return u=!0,h(),function(){Ur(_),v(),u=!1}})}function Cr(e){let t;return Oi(e,n=>t=n)(),t}let ei=!1,Fi=Symbol();function d(e,t,n){const r=n[t]??={store:null,source:Di(void 0),unsubscribe:_t};if(r.store!==e&&!(Fi in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=_t;else{var i=!0;r.unsubscribe=Oi(e,o=>{i?r.source.v=o:Z(r.source,o)}),i=!1}return e&&Fi in n?Cr(e):a(r.source)}function Oe(e,t){return e.set(t),t}function Ee(){const e={};function t(){Xr(()=>{for(var n in e)e[n].unsubscribe();go(e,Fi,{enumerable:!1,value:!0})})}return[e,t]}function Ve(e,t,n){return e.set(n),t}function As(e){var t=ei;try{return ei=!1,[e(),ei]}finally{ei=t}}function Me(e,t,n,r){var i=!er||(n&Pl)!==0,o=(n&Ol)!==0,l=(n&Fl)!==0,s=r,u=!0,c=()=>(u&&(u=!1,s=l?U(r):r),s),f;if(o){var v=Fn in e||ml in e;f=Pn(e,t)?.set??(v&&t in e?p=>e[t]=p:void 0)}var h,_=!1;o?[h,_]=As(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=c(),f&&(i&&El(),f(h)));var m;if(i?m=()=>{var p=e[t];return p===void 0?c():(u=!0,p)}:m=()=>{var p=e[t];return p!==void 0&&(s=void 0),p===void 0?s:p},i&&(n&Al)===0)return m;if(f){var w=e.$$legacy;return(function(p,T){return arguments.length>0?((!i||!T||w||_)&&f(T?m():p),p):m()})}var g=!1,b=((n&Ml)!==0?_r:wi)(()=>(g=!1,m()));o&&a(b);var $=Le;return(function(p,T){if(arguments.length>0){const D=T?a(b):i&&o?zn(p):p;return Z(b,D),g=!0,s!==void 0&&(s=D),p}return Yn&&g||($.f&hn)!==0?b.v:a(b)})}function ar(e){Ue===null&&Do(),er&&Ue.l!==null?Os(Ue).m.push(e):et(()=>{const t=U(e);if(typeof t=="function")return t})}function Os(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const Fs="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Fs);function Ni(e,t=void 0){return function(n){return n.key==="Enter"||n.key===" "&&!n.preventDefault()?e.call(t,n):void 0}}function st(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function Ns(e){return t=>{let n=r=>{t&&!t.contains(r.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:r}}))};return document.addEventListener(e,n,!0),()=>{document.removeEventListener(e,n,!0)}}}function Hi(e){return t=>{let n=new ResizeObserver(r=>{for(let i of r)e(t,i)});return n.observe(t),()=>{n.unobserve(t)}}}function ya(e,t){return n=>{let r=new IntersectionObserver(i=>{for(let o of i)e(n,o)},t);return r.observe(n),()=>{r.unobserve(n)}}}const Tr=86400;function an(e=void 0){return e!==void 0?e instanceof Date?Da(e):Us(e):Da(new Date)}function it(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let n=0,r=2;for(let i of e.split(":",3))n+=parseInt(i,10)*Math.pow(60,r--);e={seconds:n}}else e instanceof Date&&(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 Fe(e,t,n=1){e.setUTCFullYear(e.getUTCFullYear()+n*t.years);let r=e.getUTCMonth()+n*t.months;for(e.setUTCMonth(r),r%=12,r<0&&(r+=12);e.getUTCMonth()!==r;)Rn(e);return e.setUTCDate(e.getUTCDate()+n*t.days),e.setUTCSeconds(e.getUTCSeconds()+n*t.seconds),e}function ti(e,t,n=1){return Fe(e,t,-n)}function Xt(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function Rn(e,t=1){return Xt(e,-t)}function Kt(e){return e.setUTCHours(0,0,0,0),e}function Je(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function At(e,t=19){return e.toISOString().substring(0,t)}function Et(e,...t){return t.every(n=>e.getTime()===n.getTime())}function Hs(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n>=0?n:n+7)),e}function ba(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n<=0?n:n-7)),e}function wa(e){return typeof e=="string"&&e.length<=10}function Wi(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function xe(e){return e.seconds}function pa(e,t){return Fe(e,t),e}function $a(e,t,n){if(ti(e,t),n.length&&n.length<7)for(;n.includes(e.getUTCDay());)Rn(e);return e}function Ws(e,t){e=X(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let n=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-n)/1e3/Tr+1)/7)}function Da(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function Us(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)))}function gt(...e){return Object.assign(...e)}function bn(e){return Object.keys(e)}function zs(e){return Object.entries(e)}function Ui(e){return Math.floor(e)}function Bs(e){return Math.ceil(e)}function ln(...e){return Math.min(...e)}function Ot(...e){return Math.max(...e)}function Vs(){return Symbol("ec")}function Ea(e){return Array.isArray(e)}function De(e){return typeof e=="function"}function Gs(e){for(let t in e)if(Object.hasOwn(e,t))return!1;return!0}function Ys(e){return e()}function ka(e){e.forEach(Ys)}function qs(){}const Xn=e=>e;function zi(e,t=void 0){return function(n){n.stopPropagation(),e&&e.call(t,n)}}function xr(){return window.getComputedStyle(document.documentElement).direction==="rtl"}let Bi=Vs();function Ca(e,t){e[Bi]=t}function Xs(e){return!!e?.[Bi]}function wn(e){return e[Bi]}function Ta(e,t,n,r=[]){let i=document.createElement(e);i.className=t,typeof n=="string"?i.innerText=n:n.domNodes?i.replaceChildren(...n.domNodes):n.html&&(i.innerHTML=n.html);for(let o of r)i.setAttribute(...o);return i}function In(e){return e.getBoundingClientRect()}function xa(e,t){for(;t--;)e=e.parentElement;return e}function Kn(e){return In(e).height}function lr(e,t,n=document,r=[]){r.push(n);for(let i of n.elementsFromPoint(e,t)){if(Xs(i))return i;if(i.shadowRoot&&!r.includes(i.shadowRoot)){let o=lr(e,t,i.shadowRoot,r);if(o)return o}}return null}function Sr(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Ks(e,t,n,r){return{type:e,title:t,currentStart:n.start,currentEnd:n.end,activeStart:r.start,activeEnd:r.end,calendar:void 0}}function wt(e){return e=gt({},e),e.currentStart=Je(e.currentStart),e.currentEnd=Je(e.currentEnd),e.activeStart=Je(e.activeStart),e.activeEnd=Je(e.activeEnd),e}function Sa(e){return e.startsWith("list")}function Zs(e){return e.includes("Timeline")}let Js=1;function ni(e){return e.map(t=>{let n={id:"id"in t?String(t.id):`{generated-${Js++}}`,resourceIds:Vi(t,"resourceId").map(String),allDay:t.allDay??(wa(t.start)&&wa(t.end)),start:an(t.start),end:an(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:Vi(t,"className"),styles:Vi(t,"style")};if(n.allDay){Kt(n.start);let r=X(n.end);Kt(n.end),(!Et(n.end,r)||Et(n.end,n.start))&&Xt(n.end)}return n})}function Vi(e,t){let n=e[t+"s"]??e[t]??[];return Ea(n)?n:[n]}function Qs(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 js(e,t,n,r,i,o){let l=i.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?Wi(X(e.start),e.end):e.start),s;if(n&&(s=De(n)?n({event:ut(e.event),timeText:l,view:wt(o)}):n),s===void 0){let u;switch(e.event.display){case"background":u=[];break;case"pointer":u=e.event.allDay?[]:[Ra(l,e,r)];break;default:u=[...e.event.allDay?[]:[Ra(l,e,r)],Ta("h4",r.eventTitle,e.event.title)]}s={domNodes:u}}return[l,s]}function Ra(e,t,n){return Ta("time",n.eventTime,e,[["datetime",At(t.start)]])}function eu(e,t,n){let r=t.classNames;return e&&(De(e)&&(e=e({event:ut(t),view:wt(n)})),r=[...Ea(e)?e:[e],...r]),r}function ut(e){return Ia(e,Je)}function Gi(e){return Ia(e,X)}function Ia(e,t){return e=gt({},e),e.start=t(e.start),e.end=t(e.end),e}function Yi(e,t){e.length=t.length;for(let n of e)n?.reposition()}function Rr(e,t,n,r=void 0){return(!r||e.resourceIds.includes(r.id))&&e.start<n&&e.end>t}function ri(e){return tu(e)||nu(e)||ru(e)}function Ut(e){return e==="background"}function tu(e){return e==="preview"}function nu(e){return e==="ghost"}function ru(e){return e==="pointer"}function Ir(e,t,n){let r={start:e.start>t?e.start:t,end:e.end<n?e.end:n,event:e};return r.zeroDuration=Et(r.start,r.end),r}function sr(e,t){let n=[],r,i,o;for(let{gridColumn:l,gridRow:s,resource:u,dayStart:c,dayEnd:f,disabled:v}of t)!v&&Rr(e,c,f,u)&&(n.push(c),r=f,i||(i=l,o=s));if(n.length){let l=Ir(e,n[0],r);return gt(l,{gridColumn:i,gridRow:o,dates:n}),[l]}return[]}function La(e){let t={},n={};for(let r of e){let{gridColumn:i,gridRow:o}=r;for(let s=1;s<r.dates.length;++s){let u=`${o}_${i+s}`;n[u]?n[u].chunks.push(r):n[u]={sorted:!1,chunks:[r]}}let l=`${o}_${i}`;r.long=n[l],r.prev=t[l],t[l]=r}}function Ma(e,t,n=0){e.prev&&(n=e.prev.bottom+1);let r=n+t;if(e.long){let i=e.long;i.sorted||(i.chunks.sort((o,l)=>o.top-l.top),i.sorted=!0);for(let o of i.chunks)if(n<o.bottom&&r>o.top){let l=o.bottom-n+1;n+=l,r+=l}}return gt(e,{top:n,bottom:r}),n}function Pa(e,t,n){n.update(r=>r.set(t,e))}function iu(e){ka(e),e.clear()}function ou(e,t,n){t??=e,n.has(t)||n.set(t,setTimeout(()=>{n.delete(t),e()}))}function ii(e){return ai(e,"day")}function oi(e){return ai(e,"week")}function qi(e){return ai(e,"month")}function au(e){return ai(e,"year")}function ai(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function zt(e){return t=>({...t,view:e})}function lu(e){let t,n;return e&&({start:t,end:n}=e,t&&(t=Kt(an(t))),n&&(n=Kt(an(n)))),{start:t,end:n}}function ur(e,t){return t.start&&e<t.start||t.end&&e>t.end}function Aa(e){let t=[];return Oa(e,0,t),t}function Oa(e,t,n){let r=[];for(let i of e){let o=su(i);r.push(o),n.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};Ca(o,l),i.children&&(l.children=Oa(i.children,t+1,n))}return r}function su(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:e.eventBackgroundColor,eventTextColor:e.eventTextColor,extendedProps:e.extendedProps??{}}}function uu(e,t){return Fa(e,t)?.eventBackgroundColor}function cu(e,t){return Fa(e,t)?.eventTextColor}function Fa(e,t){return t.find(n=>e.resourceIds.includes(n.id))}function Na(e,t,n,r,i){let o=[];e=X(e);let l=X(e);for(Fe(e,r.min),Fe(l,r.max);e<l;)o.push([At(e),i.format(e)]),Fe(e,t,n);let s=Ui((e-l)/1e3/xe(t));return s&&s!==n&&(o.at(-1)[2]=n-s),o}function Ha(e,t,n,r,i){let o=it(e),l=it(t);if(n){let s=it(ln(xe(o),Ot(0,xe(l)-Tr))),u=it(Ot(xe(l),xe(s)+Tr)),c=De(n?.eventFilter)?n.eventFilter:f=>!Ut(f.display);e:for(let f of r){let v=Fe(X(f),o),h=Fe(X(f),l),_=Fe(X(f),s),m=Fe(X(f),u);for(let w of i)if(!w.allDay&&c(w)&&w.start<m&&w.end>_){if(w.start<v){let g=Ot((w.start-f)/1e3,xe(s));g<xe(o)&&(o.seconds=g)}if(w.end>h){let g=ln((w.end-f)/1e3,xe(u));g>xe(l)&&(l.seconds=g)}if(xe(o)===xe(s)&&xe(l)===xe(u))break e}}}return{min:o,max:l}}function Zn(e,t){return tt([e,t],([n,r])=>{let i=De(r)?{format:r}:new Intl.DateTimeFormat(n,r);return{format:o=>i.format(Je(o))}})}function Wa(e,t){return tt([e,t],([n,r])=>{let i;if(De(r))i=r;else{let o=new Intl.DateTimeFormat(n,r);i=(l,s)=>{if(l<=s)return o.formatRange(l,s);{let u=o.formatRangeToParts(s,l),c="",f=["startRange","endRange"],v=[!1,!1];for(let h of u){let _=f.indexOf(h.source);_>=0?v[_]||(c+=fu(f[1-_],u),v[_]=!0):c+=h.value}return c}}}return{formatRange:(o,l)=>i(Je(o),Je(l))}})}function fu(e,t){let n="";for(let r of t)r.source==e&&(n+=r.value);return n}const Ua=["buttonText","customButtons","theme"];function du(e){let t={buttonText:{today:"today"},customButtons:{},date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,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:{allDay:"ec-all-day",active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",colHead:"ec-col-head",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 n of e)n.createOptions?.(t);return t}function hu(e){let t={date:n=>Kt(an(n)),duration:it,events:ni,eventSources:Qs,hiddenDays:n=>[...new Set(n)],highlightedDates:n=>n.map(r=>Kt(an(r))),resources:Aa,validRange:lu};for(let n of e)n.createParsers?.(t);return t}function vu(e,t){let n=[];for(let r of bn(e))e[r]!==t[r]&&n.push([r,e[r]]);return n}function gu(e){return tt(e.view,t=>t?.startsWith("dayGrid"))}function _u(e){return tt([e._currentRange,e._activeRangeExt],([t,n])=>n({start:X(t.start),end:X(t.end)}))}function mu(e){return tt([e.date,e.duration,e.firstDay],([t,n,r])=>{let i=X(t),o;return n.months?i.setUTCDate(1):n.inWeeks&&ba(i,r),o=Fe(X(i),n),{start:i,end:o}})}function yu(e){return tt([e._activeRange,e.hiddenDays],([t,n])=>{let r=[],i=Kt(X(t.start)),o=Kt(X(t.end));for(;i<o;)n.includes(i.getUTCDay())||r.push(X(i)),Xt(i);return!r.length&&n.length&&n.length<7&&(e.date.update(l=>{for(;n.includes(l.getUTCDay());)Xt(l);return l}),r=Cr(e._viewDates)),r})}function bu(e){return tt([e.date,e._activeRange,e._intlTitle,e._dayGrid],([t,n,r,i])=>i?r.formatRange(t,t):r.formatRange(n.start,Rn(X(n.end))))}function wu(e){return tt([e.view,e._viewTitle,e._currentRange,e._activeRange],t=>Ks(...t))}function pu(e){let t=lt([]),n,r=0,i={};return tt([e.events,e.eventSources,e._activeRange,e._fetchedRange,e.lazyFetching,e.loading],(o,l)=>Pa(()=>{let[s,u,c,f,v,h]=o;if(!u.length){l(s);return}if(!f.start||f.start>c.start||f.end<c.end||!v){n&&n.abort(),n=new AbortController,De(h)&&!r&&h(!0);let _=()=>{--r===0&&De(h)&&h(!1)},m=[],w=p=>_(),g=p=>{m=m.concat(ni(p)),l(m),_()},b=At(c.start),$=At(c.end);for(let p of u){if(De(p.events)){let T=p.events({start:Je(c.start),end:Je(c.end),startStr:b,endStr:$},g,w);T!==void 0&&Promise.resolve(T).then(g,w)}else{let T=De(p.extraParams)?p.extraParams():gt({},p.extraParams);T.start=b,T.end=$,T=new URLSearchParams(T);let D=p.url,k={},L;["GET","HEAD"].includes(p.method)?D+=(D.includes("?")?"&":"?")+T:(k["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",L=String(T)),fetch(D,{method:p.method,headers:k,body:L,signal:n.signal,credentials:"same-origin"}).then(E=>E.json()).then(g).catch(w)}++r}f.start=c.start,f.end=c.end}},i,e._queue),[]).subscribe(t.set),t}function $u(e){let t;e._view.subscribe(r=>t=r);let n={};return tt([e._events,e.eventFilter,e.eventOrder,e.filterEventsWithResources,e.resources],(r,i)=>Pa(()=>{let[o,l,s,u,c]=r,f=[...o];if(De(l)){let v=o.map(ut);f=f.filter((h,_)=>l({event:ut(h),index:_,events:v,view:t}))}u&&(f=f.filter(v=>c.some(h=>v.resourceIds.includes(h.id)))),De(s)?f.sort((v,h)=>s(ut(v),ut(h))):f.sort((v,h)=>v.start-h.start||h.allDay-v.allDay),i(f)},n,e._queue),[])}function Du(){return ma(an(),e=>{let t=setInterval(()=>{e(an())},1e3);return()=>clearInterval(t)})}function Eu(e){let t=Kt(an()),n=lt(t);return e._now.subscribe(r=>{let i=Kt(X(r));Et(t,i)||(t=i,n.set(i))}),n}class ku{constructor(t,n){t=t||[];let r=du(t),i=hu(t);r=Xi(r,i),n=Xi(n,i);for(let[l,s]of Object.entries(r))this[l]=lt(s);this._queue=lt(new Map),this._tasks=new Map,this._auxiliary=lt([]),this._dayGrid=gu(this),this._currentRange=mu(this),this._activeRangeExt=lt(Xn),this._activeRange=_u(this),this._fetchedRange=lt({start:void 0,end:void 0}),this._events=pu(this),this._mainEl=lt(void 0),this._now=Du(),this._today=Eu(this),this._intlEventTime=Wa(this.locale,this.eventTimeFormat),this._intlDayHeader=Zn(this.locale,this.dayHeaderFormat),this._intlDayHeaderAL=Zn(this.locale,this.dayHeaderAriaLabelFormat),this._intlTitle=Wa(this.locale,this.titleFormat),this._viewTitle=bu(this),this._viewDates=yu(this),this._view=wu(this),this._viewComponent=lt(void 0),this._filteredEvents=$u(this),this._interaction=lt({}),this._iEvents=lt([null,null]),this._iClasses=lt(Xn),this._iClass=lt(void 0),this._set=(l,s)=>{Ki(l,this)&&(i[l]&&(s=i[l](s)),this[l].set(s))},this._get=l=>Ki(l,this)?Cr(this[l]):void 0;for(let l of t)l.createStores?.(this);n.view&&this.view.set(n.view);let o=new Set([...bn(r.views),...bn(n.views??{})]);for(let l of o){let s=za(r,r.views[l]??{}),u=za(s,n,n.views?.[l]??{}),c=u.component;Cu(u,this);for(let f of bn(u)){let{set:v,_set:h=v,..._}=this[f];this[f]={set:Ua.includes(f)?m=>{if(De(m)){let w=m(s[f]);u[f]=w,v(v===h?w:m)}else u[f]=m,v(m)}:m=>{u[f]=m,v(m)},_set:h,..._}}this.view.subscribe(f=>{if(f===l){this._viewComponent.set(c),De(u.viewDidMount)&&Jr().then(()=>u.viewDidMount({view:wt(Cr(this._view))}));for(let v of bn(u))this[v]._set(u[v])}})}}}function Xi(e,t){let n={...e};for(let r of bn(t))r in n&&(n[r]=t[r](n[r]));if(e.views){n.views={};for(let r of bn(e.views))n.views[r]=Xi(e.views[r],t)}return n}function za(...e){let t={};for(let n of e){let r={};for(let i of Ua)De(n[i])&&(r[i]=n[i](t[i]));t={...t,...n,...r}}return t}function Cu(e,t){bn(e).filter(n=>!Ki(n,t)||n==="view").forEach(n=>delete e[n])}function Ki(e,t){return t.hasOwnProperty(e)&&e[0]!=="_"}var Tu=j("<h2></h2>"),xu=j("<button><i></i></button>"),Su=j("<button><i></i></button>"),Ru=j("<button> </button>"),Iu=j("<button></button>"),Lu=j("<button> </button>");function Ba(e,t){ye(t,!0);const n=()=>d(p,"$_viewDates",m),r=()=>d(C,"$validRange",m),i=()=>d(b,"$_today",m),o=()=>d(g,"$_currentRange",m),l=()=>d(k,"$date",m),s=()=>d(L,"$duration",m),u=()=>d(E,"$hiddenDays",m),c=()=>d(H,"$theme",m),f=()=>d($,"$_viewTitle",m),v=()=>d(T,"$buttonText",m),h=()=>d(D,"$customButtons",m),_=()=>d(S,"$view",m),[m,w]=Ee();let{_currentRange:g,_today:b,_viewTitle:$,_viewDates:p,buttonText:T,customButtons:D,date:k,duration:L,hiddenDays:E,theme:H,validRange:C,view:S}=Te("state"),P=Ie(!1),A=Ie(!1),G=Ie(!1),q=!1;Bn(()=>{n(),r(),t.buttons,U(()=>{q||(q=!0,t.buttons.includes("prev")&&(Z(P,!1),r().start&&Z(P,te(O),!0)),t.buttons.includes("next")&&(Z(A,!1),r().end&&Z(A,te(Y),!0)),t.buttons.includes("today")&&(Z(G,i()>=o().start&&i()<o().end,!0),!a(G)&&(r().start||r().end)&&Z(G,te(B),!0)),Jr().then(()=>q=!1))})});function te(de){let V=X(l());de();let Pe=n().every(re=>ur(re,r()));return Oe(k,V),Pe}function O(){Oe(k,$a(l(),s(),u()))}function Y(){Oe(k,pa(l(),s()))}function B(){Oe(k,X(i()))}var K=_e(),ue=J(K);oe(ue,17,()=>t.buttons,se,(de,V)=>{var Pe=_e(),re=J(Pe);{var ke=He=>{var ae=Tu();Ye(ae,()=>st(f())),le(()=>N(ae,1,c().title)),x(He,ae)},Xe=He=>{var ae=_e(),he=J(ae);{var kt=Ke=>{var M=xu();M.__click=O;var me=fe(M);le(()=>{N(M,1,`${c().button??""} ec-${a(V)??""}`),Be(M,"aria-label",v().prev),Be(M,"title",v().prev),M.disabled=a(P),N(me,1,`${c().icon??""} ec-${a(V)??""}`)}),x(Ke,M)},Ct=Ke=>{var M=_e(),me=J(M);{var Qe=Q=>{var ge=Su();ge.__click=Y;var Ce=fe(ge);le(()=>{N(ge,1,`${c().button??""} ec-${a(V)??""}`),Be(ge,"aria-label",v().next),Be(ge,"title",v().next),ge.disabled=a(A),N(Ce,1,`${c().icon??""} ec-${a(V)??""}`)}),x(Q,ge)},ve=Q=>{var ge=_e(),Ce=J(ge);{var Ge=je=>{var qe=Ru();qe.__click=B;var pt=fe(qe);le(()=>{N(qe,1,`${c().button??""} ec-${a(V)??""}`),qe.disabled=a(G),ca(pt,v()[a(V)])}),x(je,qe)},ot=je=>{var qe=_e(),pt=J(qe);{var sn=Bt=>{var Ft=Iu();Ft.__click=function(...Zt){h()[a(V)].click?.apply(this,Zt)},Ye(Ft,()=>st(h()[a(V)].text)),le(()=>N(Ft,1,on([c().button,`ec-${a(V)}`,h()[a(V)].active&&c().active]))),x(Bt,Ft)},Ln=Bt=>{var Ft=_e(),Zt=J(Ft);{var Jt=Tt=>{var xt=Lu();xt.__click=()=>Oe(S,a(V));var un=fe(xt);le(()=>{N(xt,1,on([c().button,`ec-${a(V)}`,_()===a(V)&&c().active])),ca(un,v()[a(V)])}),x(Tt,xt)};$e(Zt,Tt=>{a(V)!==""&&Tt(Jt)},!0)}x(Bt,Ft)};$e(pt,Bt=>{h()[a(V)]?Bt(sn):Bt(Ln,!1)},!0)}x(je,qe)};$e(Ce,je=>{a(V)==="today"?je(Ge):je(ot,!1)},!0)}x(Q,ge)};$e(me,Q=>{a(V)==="next"?Q(Qe):Q(ve,!1)},!0)}x(Ke,M)};$e(he,Ke=>{a(V)==="prev"?Ke(kt):Ke(Ct,!1)},!0)}x(He,ae)};$e(re,He=>{a(V)==="title"?He(ke):He(Xe,!1)})}x(de,Pe)}),x(e,K),be(),w()}Tn(["click"]);var Mu=j("<div><!></div>"),Pu=j("<div></div>"),Au=j("<nav></nav>");function Ou(e,t){ye(t,!0);const n=()=>d(l,"$headerToolbar",i),r=()=>d(s,"$theme",i),[i,o]=Ee();let{headerToolbar:l,theme:s}=Te("state"),u=y(()=>{let f={};for(let v of["start","center","end"])f[v]=n()[v]?.split(" ").map(h=>h.split(","))??[];return f});var c=Au();oe(c,21,()=>bn(a(u)),se,(f,v)=>{var h=Pu();oe(h,21,()=>a(u)[a(v)],se,(_,m)=>{var w=_e(),g=J(w);{var b=p=>{var T=Mu(),D=fe(T);Ba(D,{get buttons(){return a(m)}}),le(()=>N(T,1,r().buttonGroup)),x(p,T)},$=p=>{Ba(p,{get buttons(){return a(m)}})};$e(g,p=>{a(m).length>1?p(b):p($,!1)})}x(_,w)}),le(()=>N(h,1,`ec-${a(v)??""}`)),x(f,h)}),le(()=>N(c,1,r().toolbar)),x(e,c),be(),o()}function Fu(e,t){ye(t,!0);const n=()=>d(m,"$_activeRange",c),r=()=>d(v,"$datesSet",c),i=()=>d($,"$_view",c),o=()=>d(w,"$_filteredEvents",c),l=()=>d(h,"$eventAllUpdated",c),s=()=>d(b,"$_queue",c),u=()=>d(_,"$_auxiliary",c),[c,f]=Ee();let{datesSet:v,eventAllUpdated:h,_auxiliary:_,_activeRange:m,_filteredEvents:w,_tasks:g,_queue:b,_view:$}=Te("state");et(()=>{n(),U(()=>{De(r())&&r()({start:Je(n().start),end:Je(n().end),startStr:At(n().start),endStr:At(n().end),view:wt(i())})})}),et(()=>{o(),U(()=>{De(l())&&ou(()=>l()({view:wt(i())}),"eau",g)})}),et(()=>{s(),U(()=>{iu(s())})});var p=_e(),T=J(p);oe(T,1,u,se,(D,k)=>{var L=_e(),E=J(L);Li(E,()=>a(k),(H,C)=>{C(H,{})}),x(D,L)}),x(e,p),be(),f()}var Nu=j("<div><!> <!></div> <!>",1);function Hu(e,t){ye(t,!0);const n=()=>d(T,"$_events",h),r=()=>d($,"$_interaction",h),i=()=>d(D,"$date",h),o=()=>d(k,"$duration",h),l=()=>d(L,"$hiddenDays",h),s=()=>d(b,"$_viewComponent",h),u=()=>d(H,"$theme",h),c=()=>d(p,"$_iClass",h),f=()=>d(E,"$height",h),v=()=>d(C,"$view",h),[h,_]=Ee();let m=Me(t,"plugins",19,()=>[]),w=Me(t,"options",19,()=>({})),g=new ku(m(),w());Bl("state",g);let{_viewComponent:b,_interaction:$,_iClass:p,_events:T,date:D,duration:k,hiddenDays:L,height:E,theme:H,view:C}=g,S={...w()};et(()=>{for(let[M,me]of vu(w(),S))U(()=>{P(M,me)});gt(S,w())});function P(M,me){return g._set(M,me),this}function A(M){let me=g._get(M);return me instanceof Date?Je(me):me}function G(){return g._fetchedRange.set({start:void 0,end:void 0}),this}function q(){return n().map(ut)}function te(M){for(let me of n())if(me.id==M)return ut(me);return null}function O(M){return M=ni([M])[0],n().push(M),Oe(T,n()),ut(M)}function Y(M){let me=String(M.id),Qe=n().findIndex(ve=>ve.id===me);return Qe>=0?(M=ni([M])[0],Ve(T,U(n)[Qe]=M,U(n)),ut(M)):null}function B(M){M=String(M);let me=n().findIndex(Qe=>Qe.id===M);return me>=0&&(n().splice(me,1),Oe(T,n())),this}function K(){return wt(Cr(g._view))}function ue(){return r().action?.unselect(),this}function de(M,me){let Qe=lr(M,me);if(Qe){let ve=wn(Qe)(M,me);return ve.date=Je(ve.date),ve}return null}function V(){return Oe(D,pa(i(),o())),this}function Pe(){return Oe(D,$a(i(),o(),l())),this}let re=y(s);var ke={setOption:P,getOption:A,refetchEvents:G,getEvents:q,getEventById:te,addEvent:O,updateEvent:Y,removeEventById:B,getView:K,unselect:ue,dateFromPoint:de,next:V,prev:Pe},Xe=Nu(),He=J(Xe);let ae;var he=fe(He);Ou(he,{});var kt=ne(he,2);Li(kt,()=>a(re),(M,me)=>{me(M,{})});var Ct=ne(He,2);Fu(Ct,{}),le(M=>{N(He,1,on([u().calendar,u().view,c()&&u()[c()]])),Be(He,"role",M),ae=qt(He,"",ae,{height:f()})},[()=>Sa(v())?"list":"table"]),x(e,Xe);var Ke=be(ke);return _(),Ke}function Wu(e){return tt(e.hiddenDays,t=>7-t.length)}var Uu=j("<div><!></div>");function li(e,t){ye(t,!0);const n=()=>d($,"$_today",o),r=()=>d(p,"$theme",o),i=()=>d(b,"$_interaction",o),[o,l]=Ee();let s=Me(t,"el",15),u=Me(t,"allDay",3,!1),c=Me(t,"resource",3,void 0),f=Me(t,"dateFromPoint",3,()=>t.date),v=Me(t,"classes",3,Xn),h=Me(t,"disabled",3,!1),_=Me(t,"highlight",3,!1),m=Me(t,"role",3,"cell"),w=Me(t,"noIeb",3,!1),g=Me(t,"noBeb",3,!1),{_interaction:b,_today:$,theme:p}=Te("state"),T=y(()=>Et(t.date,n())),D=y(()=>v()([r().day,r().weekdays?.[t.date.getUTCDay()],a(T)&&r().today,_()&&r().highlight,h()&&r().disabled,w()&&r().noIeb,g()&&r().noBeb]));ar(()=>{Ca(s(),(E,H)=>({allDay:u(),date:f()(E,H),resource:c(),dayEl:s(),disabled:h()}))});var k=Uu();k.__pointerdown=function(...E){(h()?void 0:i().action?.select)?.apply(this,E)};var L=fe(k);yn(L,()=>t.children??_t),bt(k,E=>s(E),()=>s()),le(()=>{N(k,1,on(a(D))),Be(k,"role",m())}),x(e,k),be(),l()}Tn(["pointerdown"]);var zu=j("<div></div>"),Bu=j("<article><!></article>");function Va(e,t){ye(t,!0);const n=()=>d(q,"$resources",g),r=()=>d(k,"$eventBackgroundColor",g),i=()=>d(L,"$eventColor",g),o=()=>d(G,"$eventTextColor",g),l=()=>d(te,"$theme",g),s=()=>d(S,"$eventClassNames",g),u=()=>d(O,"$_view",g),c=()=>d(D,"$displayEventEnd",g),f=()=>d(E,"$eventContent",g),v=()=>d(Y,"$_intlEventTime",g),h=()=>d(C,"$eventDidMount",g),_=()=>d(H,"$eventClick",g),m=()=>d(P,"$eventMouseEnter",g),w=()=>d(A,"$eventMouseLeave",g),[g,b]=Ee();let $=Me(t,"el",15),p=Me(t,"classes",3,Xn),T=Me(t,"styles",3,Xn),{displayEventEnd:D,eventBackgroundColor:k,eventColor:L,eventContent:E,eventClick:H,eventDidMount:C,eventClassNames:S,eventMouseEnter:P,eventMouseLeave:A,eventTextColor:G,resources:q,theme:te,_view:O,_intlEventTime:Y}=Te("state"),B=y(()=>t.chunk.event),K=y(()=>t.chunk.event.display),ue=y(()=>a(B).backgroundColor??uu(a(B),n())??r()??i()),de=y(()=>a(B).textColor??cu(a(B),n())??o()),V=y(()=>zs(T()({"background-color":a(ue),color:a(de)})).map(Q=>`${Q[0]}:${Q[1]}`).concat(a(B).styles).join(";")),Pe=y(()=>p()([Ut(a(K))?l().bgEvent:l().event,...eu(s(),a(B),u())])),re=y(()=>js(t.chunk,c(),f(),l(),v(),u())),ke=y(()=>_l(a(re),2)),Xe=y(()=>a(ke)[0]),He=y(()=>a(ke)[1]);ar(()=>{De(h())&&h()({event:ut(a(B)),timeText:a(Xe),el:$(),view:wt(u())})});function ae(Q,ge){return!ri(ge)&&De(Q)?Ce=>Q({event:ut(a(B)),el:$(),jsEvent:Ce,view:wt(u())}):void 0}let he=y(()=>!Ut(a(K))&&ae(_(),a(K))||void 0),kt=y(()=>a(he)&&Ni(a(he))),Ct=y(()=>ae(m(),a(K))),Ke=y(()=>ae(w(),a(K)));var M=Bu();M.__click=function(...Q){a(he)?.apply(this,Q)},M.__keydown=function(...Q){a(kt)?.apply(this,Q)},M.__pointerdown=function(...Q){t.onpointerdown?.apply(this,Q)};{const Q=ge=>{var Ce=zu();Ye(Ce,()=>st(a(He))),le(()=>N(Ce,1,on(l().eventBody))),x(ge,Ce)};var me=fe(M);{var Qe=ge=>{var Ce=_e(),Ge=J(Ce);yn(Ge,()=>t.body,()=>Q,()=>a(ue),()=>a(de)),x(ge,Ce)},ve=ge=>{Q(ge)};$e(me,ge=>{t.body?ge(Qe):ge(ve,!1)})}bt(M,ge=>$(ge),()=>$())}le(()=>{N(M,1,on(a(Pe))),qt(M,a(V)),Be(M,"role",a(he)?"button":void 0),Be(M,"tabindex",a(he)?0:void 0)}),Pt("mouseenter",M,function(...Q){a(Ct)?.apply(this,Q)}),Pt("mouseleave",M,function(...Q){a(Ke)?.apply(this,Q)}),x(e,M),be(),b()}Tn(["click","keydown","pointerdown"]);var Vu=j("<div><!></div>");function Lr(e,t){ye(t,!0);const n=()=>d(h,"$theme",i),r=()=>d(v,"$_today",i),[i,o]=Ee();let l=Me(t,"weekday",3,!0),s=Me(t,"colSpan",3,1),u=Me(t,"ariaHidden",3,!1),c=Me(t,"disabled",3,!1),f=Me(t,"highlight",3,!1),{_today:v,theme:h}=Te("state");var _=Vu(),m=fe(_);yn(m,()=>t.children),le(w=>{N(_,1,w),Be(_,"role",u()?null:"columnheader"),Be(_,"aria-colspan",u()||s()<=1?null:s()),Be(_,"aria-colindex",u()?null:t.colIndex),Be(_,"aria-hidden",u()?"true":null)},[()=>on([t.className??n().colHead,l()&&n().weekdays?.[t.date.getUTCDay()],l()&&Et(t.date,r())&&n().today,f()&&n().highlight,c()&&n().disabled])]),x(e,_),be(),o()}var Gu=j("<time></time>");function si(e,t){ye(t,!0);const n=()=>d(u,"$_intlDayHeaderAL",i),r=()=>d(s,"$_intlDayHeader",i),[i,o]=Ee();let l=Me(t,"alPrefix",3,""),{_intlDayHeader:s,_intlDayHeaderAL:u}=Te("state");var c=Gu();Ye(c,()=>st(r().format(t.date))),le((f,v)=>{Be(c,"datetime",f),Be(c,"aria-label",`${l()??""}${v??""}`)},[()=>At(t.date,10),()=>n().format(t.date)]),x(e,c),be(),o()}function ui(e,t){ye(t,!0);const n=()=>d(u,"$_iClasses",i),r=()=>d(s,"$_interaction",i),[i,o]=Ee();let l=Me(t,"el",15),{_interaction:s,_iClasses:u}=Te("state"),c=y(()=>t.chunk.event),f=y(()=>t.chunk.event.display),v=y(()=>w=>n()(w,a(c)));function h(w){return r().action?.draggable(w)?g=>r().action.drag(w,g,t.forceDate,t.forceMargin):r().action?.noAction}let _=y(()=>!Ut(a(f))&&!ri(a(f))?h(a(c)):void 0),m=y(()=>r().resizer);Va(e,{get chunk(){return t.chunk},get classes(){return a(v)},get styles(){return t.styles},get onpointerdown(){return a(_)},get el(){return l()},set el(g){l(g)},body:(g,b=_t)=>{var $=_e(),p=J($);{var T=k=>{var L=_e(),E=J(L);Li(E,()=>a(m),(H,C)=>{C(H,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(S,P)=>{var A=_e(),G=J(A);yn(G,b),x(S,A)},$$slots:{default:!0}})}),x(k,L)},D=k=>{var L=_e(),E=J(L);yn(E,b),x(k,L)};$e(p,k=>{a(m)?k(T):k(D,!1)})}x(g,$)},$$slots:{body:!0}}),be(),o()}var Yu=j("<span></span>"),qu=j('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),Xu=j("<div><time></time> <!></div> <div><!></div>",1);function Ku(e,t){ye(t,!0);const n=()=>d(h,"$date",f),r=()=>d(w,"$theme",f),i=()=>d(g,"$weekNumbers",f),o=()=>d(_,"$firstDay",f),l=()=>d(b,"$weekNumberContent",f),s=()=>d($,"$_hiddenChunks",f),u=()=>d(m,"$moreLinkContent",f),c=()=>d(p,"$_intlDayCell",f),[f,v]=Ee();let{date:h,firstDay:_,moreLinkContent:m,theme:w,weekNumbers:g,weekNumberContent:b,_hiddenChunks:$,_intlDayCell:p,_popupDay:T}=Te("state"),D=y(()=>t.day.dayStart),k=y(()=>t.day.disabled),L=y(()=>t.day.highlight),E=y(()=>a(D).getUTCMonth()!==n().getUTCMonth()),H=y(()=>q=>[...q,a(E)&&r().otherMonth]),C=y(()=>i()&&a(D).getUTCDay()===(o()?1:0)),S=y(()=>{let q;if(a(C)){let te=Ws(a(D),o());l()?q=De(l())?l()({date:Je(a(D)),week:te}):l():q="W"+String(te).padStart(2,"0")}return q}),P=y(()=>s()[a(D).getTime()]),A=y(()=>{let q="";if(a(P)){let te="+"+a(P).length+" more";u()?q=De(u())?u()({num:a(P).length,text:te}):u():q=te}return q});function G(){Oe(T,t.day)}li(e,{get date(){return a(D)},allDay:!0,get classes(){return a(H)},get disabled(){return a(k)},get highlight(){return a(L)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(q,te)=>{var O=Xu(),Y=J(O),B=fe(Y);Ye(B,()=>st(c().format(a(D))));var K=ne(B,2);{var ue=re=>{var ke=Yu();Ye(ke,()=>st(a(S))),le(()=>N(ke,1,r().weekNumber)),x(re,ke)};$e(K,re=>{a(C)&&re(ue)})}var de=ne(Y,2),V=fe(de);{var Pe=re=>{var ke=qu(),Xe=y(()=>zi(G));ke.__click=function(...he){a(Xe)?.apply(this,he)};var He=y(()=>Ni(G));ke.__keydown=function(...he){a(He)?.apply(this,he)};var ae=y(zi);ke.__pointerdown=function(...he){a(ae)?.apply(this,he)},Ye(ke,()=>st(a(A))),x(re,ke)};$e(V,re=>{a(P)&&re(Pe)})}le(re=>{N(Y,1,r().dayHead),Be(B,"datetime",re),N(de,1,r().dayFoot)},[()=>At(a(D),10)]),x(q,O)},$$slots:{default:!0}}),be(),v()}Tn(["click","keydown","pointerdown"]);function ci(e,t){ye(t,!0);const n=()=>d(c,"$_colsCount",l),r=()=>d(h,"$dayMaxEvents",l),i=()=>d(f,"$_hiddenChunks",l),o=()=>d(v,"$_popupDay",l),[l,s]=Ee();let u=Me(t,"inPopup",3,!1),{_colsCount:c,_hiddenChunks:f,_popupDay:v,dayMaxEvents:h}=Te("state"),_=Ie(void 0),m=Ie(0),w=Ie(!1),g=y(()=>t.chunk.event),b=y(()=>t.chunk.event.display),$=y(()=>t.gridEl?.children.item((t.chunk.gridRow-1)*n()+t.chunk.gridColumn-1));et(()=>{a($)&&Z(m,Kn(a($).firstElementChild),!0)});let p=y(()=>H=>{if(H["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,H["grid-row"]=t.chunk.gridRow,!Ut(a(b))){let C=u()?1:a(m);if(a(g)._margin){let[S,P]=a(g)._margin;S>C&&t.chunk.gridRow===P&&(C=S)}H["margin-block-start"]=`${C}px`}return a(w)&&(H.visibility="hidden"),H});function T(){Z(m,Ma(t.chunk,Kn(a(_)),Kn(a($).firstElementChild)),!0)}function D(){if(r()===!0){let H=Kn(a($))-k(a($));if(Z(w,t.chunk.bottom>H),a(w))for(let C of t.chunk.dates){let S=C.getTime();i()[S]?i()[S].includes(t.chunk)||Ve(f,U(i)[S]=[...i()[S],t.chunk],U(i)):Ve(f,U(i)[S]=[t.chunk],U(i))}}else Z(w,!1),Gs(i())||Oe(f,{})}function k(H){let C=0;for(let S=0;S<t.chunk.dates.length&&(C=Ot(C,Kn(H.lastElementChild)),H=H.nextElementSibling,!!H);++S);return C}var L={reposition:T,hide:D};{let H=y(()=>u()&&o().dayStart),C=y(()=>[a(m),t.chunk.gridRow]);ui(e,{get chunk(){return t.chunk},get styles(){return a(p)},axis:"x",get forceDate(){return a(H)},get forceMargin(){return a(C)},get el(){return a(_)},set el(S){Z(_,S,!0)}})}var E=be(L);return s(),E}var Zu=j('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function Ju(e,t){ye(t,!0);const n=()=>d(_,"$_popupDay",u),r=()=>d(f,"$_colsCount",u),i=()=>d(v,"$_interaction",u),o=()=>d(w,"$theme",u),l=()=>d(h,"$_intlDayPopover",u),s=()=>d(m,"$buttonText",u),[u,c]=Ee();let{_colsCount:f,_interaction:v,_intlDayPopover:h,_popupDay:_,buttonText:m,theme:w}=Te("state"),g=Ie(void 0),b=Ie(""),$=y(()=>n().gridColumn),p=y(()=>n().gridRow),T=y(()=>n().dayStart),D=y(()=>n().dayEnd),k=y(()=>{let Y=[];for(let B of t.chunks)B.gridRow===a(p)&&B.gridColumn<=a($)&&B.gridColumn+B.dates.length>a($)&&Y.push(gt({},B,Ir(B.event,a(T),a(D))));return Y.sort((B,K)=>B.top-K.top),Y});ar(()=>{a(g).show()}),et(()=>{a(k).length?U(L):E()});function L(){let Y=t.gridEl.children.item((a(p)-1)*r()+a($)-1),B=In(a(g)),K=In(Y),ue=In(t.gridEl);Z(b,"");let de;if(B.width>=ue.width){de=ue.left-K.left;let Pe=K.right-ue.right;Z(b,a(b)+`inset-inline-end:${Pe}px;`)}else de=(K.width-B.width)/2,K.left+de<ue.left?de=ue.left-K.left:K.left+de+B.width>ue.right&&(de=ue.right-K.left-B.width);Z(b,a(b)+`inset-inline-start:${de}px;`);let V;if(B.height>=ue.height){V=ue.top-K.top;let Pe=K.bottom-ue.bottom;Z(b,a(b)+`inset-block-end:${Pe}px;`)}else V=(K.height-B.height)/2,K.top+V<ue.top?V=ue.top-K.top:K.top+V+B.height>ue.bottom&&(V=ue.bottom-K.top-B.height);Z(b,a(b)+`inset-block-start:${V}px;`)}function E(){Oe(_,null)}function H(){E(),i().action?.noClick()}var C=Zu();let S;var P=fe(C),A=fe(P);Ye(A,()=>st(l().format(a(T))));var G=ne(A,2);os(G);var q=y(()=>zi(E));G.__click=function(...Y){a(q)?.apply(this,Y)};var te=y(()=>Ni(E));G.__keydown=function(...Y){a(te)?.apply(this,Y)};var O=ne(P,2);oe(O,21,()=>a(k),se,(Y,B)=>{ci(Y,{get chunk(){return a(B)},inPopup:!0})}),bt(C,Y=>Z(g,Y),()=>a(g)),Ye(C,()=>Ns("pointerdown")),le(Y=>{N(C,1,o().popup),S=qt(C,a(b),S,{"grid-area":`${a(p)+1} / ${a($)}`}),N(P,1,o().dayHead),Be(A,"datetime",Y),Be(G,"aria-label",s().close),N(O,1,o().events)},[()=>At(a(T),10)]),Pt("pointerdownoutside",C,H),Pt("close",C,E),x(e,C),be(),c()}Tn(["click","keydown"]);function Qu(e,t,n,r){let i=[],o=[],l=1,s=1;for(let u of e)o.push({gridColumn:l,gridRow:s,resource:void 0,dayStart:u,dayEnd:Xt(X(u)),disabled:ur(u,n),highlight:r.some(c=>Et(c,u))}),l===t&&(i.push(o),o=[],l=0,++s),++l;return i}function ju(e,t){let n=[],r=[];for(let i of e)for(let o of t)Ut(i.display)?i.allDay&&(r=r.concat(sr(i,o))):n=n.concat(sr(i,o));return La(n),{chunks:n,bgChunks:r}}function ec(e,t){let n=[];for(let r of e)if(r)for(let i of t)n=n.concat(sr(r,i));return n}var tc=j('<div role="columnheader"><span></span></div>'),nc=j('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function rc(e,t){ye(t,!0);const n=()=>d(S,"$_viewDates",g),r=()=>d(T,"$_colsCount",g),i=()=>d(te,"$validRange",g),o=()=>d(G,"$highlightedDates",g),l=()=>d(D,"$_filteredEvents",g),s=()=>d(L,"$_iEvents",g),u=()=>d(A,"$firstDay",g),c=()=>d(k,"$_hiddenChunks",g),f=()=>d(p,"$_mainEl",g),v=()=>d(q,"$theme",g),h=()=>d(P,"$dayMaxEvents",g),_=()=>d(H,"$_intlDayHeaderAL",g),m=()=>d(E,"$_intlDayHeader",g),w=()=>d(C,"$_popupDay",g),[g,b]=Ee();let{_activeRangeExt:$,_mainEl:p,_colsCount:T,_filteredEvents:D,_hiddenChunks:k,_iEvents:L,_intlDayHeader:E,_intlDayHeaderAL:H,_popupDay:C,_viewDates:S,dayMaxEvents:P,firstDay:A,highlightedDates:G,theme:q,validRange:te}=Te("state"),O=Ie(void 0),Y=y(()=>Qu(n(),r(),i(),o())),B=y(()=>ju(l(),a(Y))),K=y(()=>a(B).chunks),ue=y(()=>a(B).bgChunks),de=y(()=>ec(s(),a(Y)));Bn(()=>{Oe($,({start:ve,end:Q})=>({start:ba(ve,u()),end:Hs(Q,u())}))});let V=[];function Pe(){Oe(k,{}),Yi(V,a(K))}et(Pe),et(()=>{c(),V.forEach(ve=>ve.hide())});var re=nc();let ke;var Xe=fe(re),He=fe(Xe);oe(He,21,()=>a(Y)[0],se,(ve,Q,ge)=>{let Ce=()=>a(Q).dayStart;var Ge=tc();Be(Ge,"aria-colindex",1+ge);var ot=fe(Ge);Ye(ot,()=>st(m().format(Ce()))),le((je,qe)=>{N(Ge,1,je),Be(ot,"aria-label",qe)},[()=>on([v().colHead,v().weekdays?.[Ce().getUTCDay()]]),()=>_().format(Ce())]),x(ve,Ge)});var ae=ne(Xe,2),he=fe(ae);oe(he,21,()=>a(Y),se,(ve,Q,ge)=>{var Ce=_e(),Ge=J(Ce);oe(Ge,17,()=>a(Q),se,(ot,je,qe)=>{{let pt=y(()=>qe+1===a(Q).length),sn=y(()=>ge+1===a(Y).length);Ku(ot,{get day(){return a(je)},get noIeb(){return a(pt)},get noBeb(){return a(sn)}})}}),x(ve,Ce)}),bt(he,ve=>Z(O,ve),()=>a(O));var kt=ne(he,2),Ct=fe(kt);oe(Ct,17,()=>a(K),se,(ve,Q,ge)=>{bt(ci(ve,{get chunk(){return a(Q)},get gridEl(){return a(O)}}),(Ce,Ge)=>V[Ge]=Ce,Ce=>V?.[Ce],()=>[ge])});var Ke=ne(Ct,2);oe(Ke,17,()=>a(ue),se,(ve,Q)=>{ci(ve,{get chunk(){return a(Q)}})});var M=ne(Ke,2);oe(M,17,()=>a(de),se,(ve,Q)=>{ci(ve,{get chunk(){return a(Q)},get gridEl(){return a(O)}})});var me=ne(ae,2);{var Qe=ve=>{Ju(ve,{get gridEl(){return a(O)},get chunks(){return a(K)}})};$e(me,ve=>{w()&&ve(Qe)})}bt(re,ve=>Oe(p,ve),()=>f()),Ye(re,()=>Hi(Pe)),le(()=>{N(re,1,on([v().main,h()===!0&&v().uniform])),ke=qt(re,"",ke,{"--ec-grid-cols":a(Y)[0].length,"--ec-grid-rows":a(Y).length}),N(Xe,1,v().header),N(He,1,v().grid),N(ae,1,v().body),N(he,1,v().grid),N(kt,1,v().events)}),x(e,re),be(),b()}const ic={createOptions(e){e.dayMaxEvents=!1,e.dayCellFormat={day:"numeric"},e.dayPopoverFormat={month:"long",day:"numeric",year:"numeric"},e.moreLinkContent=void 0,e.weekNumbers=!1,e.weekNumberContent=void 0,e.buttonText.dayGridMonth="month",e.buttonText.close="Close",e.theme.uniform="ec-uniform",e.theme.dayFoot="ec-day-foot",e.theme.otherMonth="ec-other-month",e.theme.popup="ec-popup",e.theme.weekNumber="ec-week-number",e.view="dayGridMonth",e.views.dayGridMonth={buttonText:qi,component:rc,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:zt("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(e){e._colsCount=Wu(e),e._intlDayCell=Zn(e.locale,e.dayCellFormat),e._intlDayPopover=Zn(e.locale,e.dayPopoverFormat),e._hiddenChunks=lt({}),e._popupDay=lt(null)}};function Ga(e,t,n){return e.startEditable??t??e.editable??n}function oc(e,t,n){return e.durationEditable??t??e.editable??n}let Zi=!1;function ac(e){Zi||(Zi=!0,window.requestAnimationFrame(()=>{e(),Zi=!1}))}function Ya(e,t,n){return Ot(t,ln(n,e))}zl();function lc(e,t){ye(t,!1);const n=()=>d(He,"$eventStartEditable",O),r=()=>d(Xe,"$editable",O),i=()=>d(pt,"$slotDuration",O),o=()=>d(ge,"$selectable",O),l=()=>d(Zt,"$view",O),s=()=>d(V,"$_mainEl",O),u=()=>d(je,"$selectLongPressDelay",O),c=()=>d(Ke,"$eventLongPressDelay",O),f=()=>d(ve,"$longPressDelay",O),v=()=>d(qe,"$selectMinDistance",O),h=()=>d(ae,"$eventDragMinDistance",O),_=()=>d(B,"$_iEvents",O),m=()=>d(M,"$eventResizeStart",O),w=()=>d(he,"$eventDragStart",O),g=()=>d(Q,"$resizeConstraint",O),b=()=>d(ot,"$selectConstraint",O),$=()=>d(re,"$dragConstraint",O),p=()=>d(ke,"$dragScroll",O),T=()=>d(Ln,"$unselectAuto",O),D=()=>d(Bt,"$unselectCancel",O),k=()=>d(Ce,"$selectFn",O),L=()=>d(me,"$eventResizeStop",O),E=()=>d(kt,"$eventDragStop",O),H=()=>d(de,"$_view",O),C=()=>d(Qe,"$eventResize",O),S=()=>d(Ct,"$eventDrop",O),P=()=>d(Pe,"$dateClick",O),A=()=>d(Ft,"$validRange",O),G=()=>d(ue,"$_events",O),q=()=>d(Ge,"$selectBackgroundColor",O),te=()=>d(sn,"$unselectFn",O),[O,Y]=Ee();let{_iEvents:B,_iClass:K,_events:ue,_view:de,_mainEl:V,dateClick:Pe,dragConstraint:re,dragScroll:ke,editable:Xe,eventStartEditable:He,eventDragMinDistance:ae,eventDragStart:he,eventDragStop:kt,eventDrop:Ct,eventLongPressDelay:Ke,eventResizeStart:M,eventResizeStop:me,eventResize:Qe,longPressDelay:ve,resizeConstraint:Q,selectable:ge,select:Ce,selectBackgroundColor:Ge,selectConstraint:ot,selectLongPressDelay:je,selectMinDistance:qe,slotDuration:pt,unselect:sn,unselectAuto:Ln,unselectCancel:Bt,validRange:Ft,view:Zt}=Te("state");const Jt=1,Tt=2,xt=3,un=4,pn=5,$n=6;let Ze,cn,R,W,z,ie,ce,Ae,Se,nt,Ne,we,ct,Qt,rt,ft,jt,We,Dn,cr,lo,Mr=Di(),$t,Pr,fr;function el(I){return Ga(I,n(),r())}function tl(I,F,Re,ee){Ze||(Ze=co(F)?Jt:$n,Jn()&&(R=I,so(F),Re&&(z=Re),ee&&(Pr=ee),jt="dragging",dr(F)))}function nl(I,F,Re,ee,St,Nr,ho){Ze||(Ze=co(F)?Re?xt:Tt:$n,Jn()&&(R=I,so(F),St&&(z=St),Nr&&(Pr=Nr),jt=ee==="x"?"resizingX":"resizingY",hi()?(We=X(R.end),ft?(Wi(We,R.start),We>=R.end&&Rn(We)):(ti(We,i()),We<R.start&&(We=R.start),z=R.start)):(We=X(R.start),ft?(Wi(We,R.end),We<=R.start&&!ho&&Xt(We)):(Fe(We,i()),We>R.end&&(We=R.end),z=R.end,ho||(z=ti(X(z),i()))),ho&&!ft&&(fr=i())),dr(F)))}function rl(I){Ze||(Ze=co(I)?o()&&!Sa(l())?un:pn:$n,Jn()&&(so(I),jt="selecting",Dn=ft?it({day:1}):i(),R={allDay:ft,start:z,end:Fe(X(z),Dn),resourceIds:ce?[ce.id]:[]},dr(I)))}function il(){Ze||(Ze=$n)}function so(I){window.getSelection().removeAllRanges(),Se=Ne=I.clientX,nt=we=I.clientY;let F=lr(Ne,we);({allDay:ft,date:z,resource:ce}=wn(F)(Ne,we)),Qt=s()!==xa(F,3),ct=xa(F,1),al(),I.pointerType!=="mouse"&&Z(Mr,setTimeout(()=>{Ze&&(cn=!0,dr(I))},(Mn()?u():c())??f()))}function dr(I){if(cn||I&&I.pointerType==="mouse"&&yf()>=(Mn()?v():h())){cn=!0,Fr(I),Oe(K,jt),_()[0]||(Mn()?mf():_f(I,hr()?m():w()));let F=Ar(gf());if(F){let Re;if({allDay:Re,date:ie,resource:Ae}=F,Re===ft){let ee=Or({},_()[0]),St=g();rt=it((ie-z)/1e3),hi()?(ee.start=Fe(X(R.start),rt),ee.start>We&&(ee.start=We,rt=it((We-R.start)/1e3))):(ee.end=Fe(X(R.end),rt),fr&&Fe(ee.end,fr),hr()?ee.end<We&&(ee.end=We,rt=it((We-R.end)/1e3)):Mn()?(ee.end<R.end?(ee.start=ti(ee.end,Dn),ee.end=R.end):ee.start=R.start,St=b()):(ee.start=Fe(X(R.start),rt),ce&&(ee.resourceIds=R.resourceIds.filter(Nr=>Nr!==ce.id),ee.resourceIds.push(Ae.id)),St=$()));do{if(St!==void 0&&(ee=Or(Gi(R),ee),St(Mn()?ul(ee,I):cl(ee,R,I))===!1)){Ve(B,U(_)[0]=Or(_()[0],R),U(_));break}Ve(B,U(_)[0]=Or(_()[0],ee),U(_))}while(!1)}}}if(p()){let F=24,Re=24;ac(()=>{$t&&(Qt||(we<$t.top+F&&Ve(V,U(s).scrollTop+=Ot(-8,(we-$t.top-F)/3),U(s)),we>$t.bottom-F&&Ve(V,U(s).scrollTop+=ln(8,(we-$t.bottom+F)/3),U(s))),Ne<$t.left+Re&&Ve(V,U(s).scrollLeft+=Ot(-8,(Ne-$t.left-Re)/3),U(s)),Ne>$t.right-Re&&Ve(V,U(s).scrollLeft+=ln(8,(Ne-$t.right+Re)/3),U(s)),we<F&&window.scrollBy(0,Ot(-8,(we-F)/3)),we>window.innerHeight-F&&window.scrollBy(0,ln(8,(we-window.innerHeight+F)/3)))})}}function uo(){Jn()&&(al(),dr())}function vf(I){Jn()&&I.isPrimary&&(Ne=I.clientX,we=I.clientY,dr(I))}function ol(I){if(cr&&T()&&!(D()&&I.target.closest(D()))&&Fr(I),Ze&&I.isPrimary){if(cn)if(Mn()){if(cr=!0,De(k())){let F=ul(_()[0],I);k()(F)}}else{R.display=W;let F=hr()?L():E();De(F)&&F({event:ut(R),jsEvent:I,view:wt(H())});let Re=Gi(R);if(sl(R,_()[0]),ll(),F=hr()?C():S(),De(F)){let ee=R,St=cl(R,Re,I);F(gt(St,{revert(){sl(ee,Re)}}))}}else if((bf()||Mn())&&De(P())&&!lo){Ne=I.clientX,we=I.clientY;let F=lr(Ne,we);if(F){let{allDay:Re,date:ee,resource:St}=wn(F)(Ne,we);P()({allDay:Re,date:Je(ee),dateStr:At(ee),dayEl:F,jsEvent:I,view:wt(H()),resource:St})}}cn=!1,Ze=Se=nt=Ne=we=R=W=z=ie=ce=Ae=rt=fr=ft=Oe(K,We=Dn=Pr=ct=$t=void 0),a(Mr)&&(clearTimeout(a(Mr)),Z(Mr,void 0))}lo=!1}function gf(){return lr(Ya(Ne,$t.left,$t.right),Ya(we,$t.top,$t.bottom))}function Ar(I){if(I){let F=wn(I)(Ne,we);if(F.disabled){if(!A().end||F.date<A().end)return Ar(I.nextElementSibling);if(!A().start||F.date>A().start)return Ar(I.previousElementSibling)}else return(Mn()||hr())&&F.resource&&!_()[0].resourceIds.includes(F.resource.id)&&!Zs(l())?Ne>Se?Ar(I.previousElementSibling):Ar(I.nextElementSibling):F}return null}function al(){let I=In(s()),F=In(ct),Re=I.width/s().offsetWidth,ee=I.height/s().offsetHeight,St=xr();$t={left:Ot(0,St?I.right-s().clientWidth*Re:F.left+s().scrollLeft*Re),right:ln(document.documentElement.clientWidth,St?F.right+s().scrollLeft*Re:I.left+s().clientWidth*Re)-2,top:Ot(0,F.top+(Qt?0:s().scrollTop)*ee),bottom:ln(document.documentElement.clientHeight,Qt?F.bottom:I.top+s().clientHeight*ee)-2}}function _f(I,F){De(F)&&F({event:ut(R),jsEvent:I,view:wt(H())}),W=R.display,R.display="preview",Ve(B,U(_)[0]=Gi(R),U(_)),Pr!==void 0&&Ve(B,U(_)[0]._margin=Pr,U(_)),fr&&Fe(_()[0].end,fr),R.display="ghost",Oe(ue,G())}function mf(){Ve(B,U(_)[0]={id:"{select}",allDay:R.allDay,start:R.start,title:"",display:"preview",extendedProps:{},backgroundColor:q(),resourceIds:R.resourceIds,classNames:[],styles:[]},U(_))}function ll(){Ve(B,U(_)[0]=null,U(_))}function Or(I,F){return I.start=F.start,I.end=F.end,I.resourceIds=F.resourceIds,I}function sl(I,F){Or(I,F),Oe(ue,G())}function ul(I,F){let{start:Re,end:ee}=ut(I);return{start:Re,end:ee,startStr:At(I.start),endStr:At(I.end),allDay:ft,view:wt(H()),resource:ce,jsEvent:F}}function cl(I,F,Re){let ee;return hr()?ee=hi()?{startDelta:rt,endDelta:it(0)}:{startDelta:it(0),endDelta:rt}:ee={delta:rt,oldResource:ce!==Ae?ce:void 0,newResource:ce!==Ae?Ae:void 0},gt(ee,{event:ut(I),oldEvent:ut(F),view:wt(H()),jsEvent:Re}),ee}function yf(){return Math.sqrt(Math.pow(Ne-Se,2)+Math.pow(we-nt,2))}function hr(){return Ze===Tt||hi()}function hi(){return Ze===xt}function bf(){return Ze===pn}function Mn(){return Ze===un}function Jn(){return Ze&&Ze<pn}function co(I){return I.isPrimary&&(I.pointerType!=="mouse"||I.buttons&1)}function Fr(I){cr&&(cr=!1,ll(),De(te())&&te()({jsEvent:I,view:wt(H())}))}function fl(){lo=!0}de.subscribe(Fr);function wf(I){if(Jn()){let F=I.target,Re=[],ee=()=>ka(Re);Re.push(Sr(F,"touchmove",fo(()=>cn))),Re.push(Sr(F,"touchend",ee)),Re.push(Sr(F,"touchcancel",ee))}}function fo(I){return F=>{I()&&F.preventDefault()}}ar(()=>Sr(window,"touchmove",qs,{passive:!1}));var pf={draggable:el,drag:tl,resize:nl,select:rl,noAction:il,handleScroll:uo,unselect:Fr,noClick:fl};Ps(),Pt("pointermove",Gt,vf),Pt("pointerup",Gt,ol),Pt("pointercancel",Gt,ol),Pt("scroll",Gt,uo);var $f=y(()=>fo(Jn));Pt("selectstart",Gt,function(...I){a($f)?.apply(this,I)});var Df=y(()=>fo(()=>a(Mr)));Pt("contextmenu",Gt,function(...I){a(Df)?.apply(this,I)}),Pt("touchstart",Gt,wf,void 0,!0),Sn(t,"draggable",el),Sn(t,"drag",tl),Sn(t,"resize",nl),Sn(t,"select",rl),Sn(t,"noAction",il),Sn(t,"handleScroll",uo),Sn(t,"unselect",Fr),Sn(t,"noClick",fl);var Ef=be(pf);return Y(),Ef}function sc(e,t){ye(t,!0);const n=()=>d(l,"$_iEvents",i),r=()=>d(s,"$slotDuration",i),[i,o]=Ee();let{_iEvents:l,slotDuration:s}=Te("state"),u=0,c=0;et(()=>{n()[0]&&m()});function f(){let $=lr(u,c);if($){let{allDay:p,date:T,resource:D,disabled:k}=wn($)(u,c);if(!k){n()[1]||_(),Ve(l,U(n)[1].allDay=p,U(n)),Ve(l,U(n)[1].start=T,U(n)),Ve(l,U(n)[1].end=Fe(X(T),r()),U(n)),Ve(l,U(n)[1].resourceIds=D?[D.id]:[],U(n));return}}m()}function v(){f()}function h($){w($)&&(u=$.clientX,c=$.clientY,f())}function _(){Ve(l,U(n)[1]={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]},U(n))}function m(){n()[1]&&Ve(l,U(n)[1]=null,U(n))}function w($){return $.isPrimary&&$.pointerType==="mouse"}var g={handleScroll:v};Pt("pointermove",Gt,h),Pt("scroll",Gt,v);var b=be(g);return o(),b}var uc=j("<div></div>"),cc=j("<div></div>"),fc=j("<!> <!> <!>",1);function dc(e,t){ye(t,!0);const n=()=>d(h,"$eventDurationEditable",s),r=()=>d(m,"$editable",s),i=()=>d(w,"$_interaction",s),o=()=>d(_,"$eventResizableFromStart",s),l=()=>d(v,"$theme",s),[s,u]=Ee();let c=Me(t,"forceDate",3,void 0),f=Me(t,"forceMargin",3,void 0),{theme:v,eventDurationEditable:h,eventResizableFromStart:_,editable:m,_interaction:w}=Te("state"),g=y(()=>t.chunk.event),b=y(()=>t.chunk.event.display),$=y(()=>!Ut(a(b))&&!ri(a(b))&&oc(a(g),n(),r()));function p(C){return S=>i().action.resize(a(g),S,C,t.axis,c(),f(),t.chunk.zeroDuration)}var T=fc(),D=J(T);{var k=C=>{var S=uc(),P=y(()=>p(!0));S.__pointerdown=function(...A){a(P)?.apply(this,A)},le(()=>N(S,1,`${l().resizer??""} ${l().start??""}`)),x(C,S)};$e(D,C=>{a($)&&o()&&C(k)})}var L=ne(D,2);yn(L,()=>t.children);var E=ne(L,2);{var H=C=>{var S=cc(),P=y(()=>p(!1));S.__pointerdown=function(...A){a(P)?.apply(this,A)},le(()=>N(S,1,l().resizer)),x(C,S)};$e(E,C=>{a($)&&C(H)})}x(e,T),be(),u()}Tn(["pointerdown"]);var hc=j("<!> <!>",1);function vc(e,t){ye(t,!0);const n=()=>d(w,"$_interaction",u),r=()=>d(f,"$theme",u),i=()=>d(h,"$eventStartEditable",u),o=()=>d(v,"$editable",u),l=()=>d(m,"$_mainEl",u),s=()=>d(_,"$pointer",u),[u,c]=Ee();let{theme:f,editable:v,eventStartEditable:h,pointer:_,_mainEl:m,_interaction:w,_iClasses:g}=Te("state");Ve(w,U(n).resizer=dc,U(n)),et(()=>{r(),i(),o(),Oe(g,(k,L)=>{let{display:E}=L;return[...k,ri(E)?[r()[E]]:!Ut(E)&&Ga(L,i(),o())?[r().draggable]:[]]})}),et(()=>{if(l())return Sr(l(),"scroll",b)});function b(){for(let k of Object.values(n()))k?.handleScroll?.()}var $=hc(),p=J($);bt(lc(p,{}),k=>Ve(w,U(n).action=k,U(n)),()=>n()?.action);var T=ne(p,2);{var D=k=>{bt(sc(k,{}),L=>Ve(w,U(n).pointer=L,U(n)),()=>n()?.pointer)};$e(T,k=>{s()&&k(D)})}x(e,$),be(),c()}const gc={createOptions(e){e.dateClick=void 0,e.dragConstraint=void 0,e.dragScroll=!0,e.editable=!1,e.eventDragMinDistance=5,e.eventDragStart=void 0,e.eventDragStop=void 0,e.eventDrop=void 0,e.eventDurationEditable=!0,e.eventLongPressDelay=void 0,e.eventResizableFromStart=!1,e.eventResizeStart=void 0,e.eventResizeStop=void 0,e.eventResize=void 0,e.eventStartEditable=!0,e.longPressDelay=1e3,e.pointer=!1,e.resizeConstraint=void 0,e.select=void 0,e.selectBackgroundColor=void 0,e.selectConstraint=void 0,e.selectLongPressDelay=void 0,e.selectMinDistance=5,e.unselect=void 0,e.unselectAuto=!0,e.unselectCancel="",e.theme.draggable="ec-draggable",e.theme.ghost="ec-ghost",e.theme.preview="ec-preview",e.theme.pointer="ec-pointer",e.theme.resizer="ec-resizer",e.theme.start="ec-start",e.theme.dragging="ec-dragging",e.theme.resizingY="ec-resizing-y",e.theme.resizingX="ec-resizing-x",e.theme.selecting="ec-selecting"},createStores(e){e._auxiliary.update(t=>[...t,vc])}};var _c=j("<div></div> <!>",1);function mc(e,t){ye(t,!0);const n=()=>d(s,"$_interaction",i),r=()=>d(l,"$theme",i),[i,o]=Ee();let{theme:l,_interaction:s}=Te("state"),u=y(()=>c=>(delete c["background-color"],delete c.color,c));{const c=(v,h=_t,_=_t,m=_t)=>{var w=_c(),g=J(w);let b;var $=ne(g,2);yn($,h),le(()=>{N(g,1,r().eventTag),b=qt(g,"",b,{"background-color":_()})}),x(v,w)};let f=y(()=>n().action?.noAction);Va(e,{get chunk(){return t.chunk},get styles(){return a(u)},get onpointerdown(){return a(f)},body:c,$$slots:{body:!0}})}be(),o()}var yc=j("<h4><time></time> <time></time></h4> <!>",1);function bc(e,t){ye(t,!0);const n=()=>d(_,"$highlightedDates",u),r=()=>d(w,"$validRange",u),i=()=>d(f,"$_filteredEvents",u),o=()=>d(m,"$theme",u),l=()=>d(v,"$_intlListDay",u),s=()=>d(h,"$_intlListDaySide",u),[u,c]=Ee();let{_filteredEvents:f,_intlListDay:v,_intlListDaySide:h,highlightedDates:_,theme:m,validRange:w}=Te("state"),g=y(()=>n().some(L=>Et(L,t.date))),b=y(()=>ur(t.date,r())),$=y(()=>At(t.date,10)),p=y(()=>{let L=[];if(!a(b)){let E=t.date,H=Xt(X(t.date));for(let C of i())if(!Ut(C.display)&&Rr(C,E,H)){let S=Ir(C,E,H);L.push(S)}}return L});var T=_e(),D=J(T);{var k=L=>{li(L,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return a(b)},get highlight(){return a(g)},children:(E,H)=>{var C=yc(),S=J(C),P=fe(S);Ye(P,()=>st(l().format(t.date)));var A=ne(P,2);Ye(A,()=>st(s().format(t.date)));var G=ne(S,2);oe(G,17,()=>a(p),q=>q.event,(q,te)=>{mc(q,{get chunk(){return a(te)}})}),le(()=>{N(S,1,o().dayHead),Be(P,"datetime",a($)),N(A,1,o().daySide),Be(A,"datetime",a($))}),x(E,C)},$$slots:{default:!0}})};$e(D,L=>{a(p).length&&L(k)})}x(e,T),be(),c()}var wc=j("<div></div>"),pc=j("<section><!></section>");function fi(e,t){ye(t,!0);const n=()=>d(w,"$_viewDates",c),r=()=>d(_,"$_filteredEvents",c),i=()=>d(b,"$noEventsContent",c),o=()=>d(g,"$noEventsClick",c),l=()=>d(m,"$_view",c),s=()=>d(h,"$_mainEl",c),u=()=>d($,"$theme",c),[c,f]=Ee();let{_activeRangeExt:v,_mainEl:h,_filteredEvents:_,_view:m,_viewDates:w,noEventsClick:g,noEventsContent:b,theme:$}=Te("state");Bn(()=>{Oe(v,Xn)});let p=y(()=>{let C=!0;if(n().length){let S=n()[0],P=Xt(X(n().at(-1)));for(let A of r())if(!Ut(A.display)&&A.start<P&&A.end>S){C=!1;break}}return C}),T=y(()=>De(i())?i()():i());function D(C){De(o())&&o()({jsEvent:C,view:wt(l())})}var k=pc(),L=fe(k);{var E=C=>{var S=wc();S.__click=D,Ye(S,()=>st(a(T))),le(()=>N(S,1,u().noEvents)),x(C,S)},H=C=>{var S=_e(),P=J(S);oe(P,1,n,se,(A,G)=>{bc(A,{get date(){return a(G)}})}),x(C,S)};$e(L,C=>{a(p)?C(E):C(H,!1)})}bt(k,C=>Oe(h,C),()=>s()),le(()=>N(k,1,u().main)),x(e,k),be(),f()}Tn(["click"]);const $c={createOptions(e){e.buttonText.listDay="list",e.buttonText.listWeek="list",e.buttonText.listMonth="list",e.buttonText.listYear="list",e.listDayFormat={weekday:"long"},e.listDaySideFormat={year:"numeric",month:"long",day:"numeric"},e.noEventsClick=void 0,e.noEventsContent="No events",e.theme.daySide="ec-day-side",e.theme.eventTag="ec-event-tag",e.theme.noEvents="ec-no-events",e.view="listWeek",e.views.listDay={buttonText:ii,component:fi,duration:{days:1},theme:zt("ec-list ec-day-view")},e.views.listWeek={buttonText:oi,component:fi,duration:{weeks:1},theme:zt("ec-list ec-week-view")},e.views.listMonth={buttonText:qi,component:fi,duration:{months:1},theme:zt("ec-list ec-month-view")},e.views.listYear={buttonText:au,component:fi,duration:{years:1},theme:zt("ec-list ec-year-view")}},createStores(e){e._intlListDay=Zn(e.locale,e.listDayFormat),e._intlListDaySide=Zn(e.locale,e.listDaySideFormat)}};function qa(e){"allDaySlot"in e||gt(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0})}function Ji(e){"scrollTime"in e||(gt(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"}),gt(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function Qi(e){"scrollTime"in e||gt(e,{scrollTime:it,slotDuration:it,slotLabelInterval:t=>t!==void 0?it(t):void 0,slotMaxTime:it,slotMinTime:it})}function Dc(e){return tt([e.slotMinTime,e.slotMaxTime,e.flexibleSlotTimeLimits,e._viewDates,e._filteredEvents],t=>Ha(...t))}function Ec(e){return tt([e.slotDuration,e.slotLabelInterval],([t,n])=>n===void 0?xe(t)<3600?2:1:Bs(xe(n)/xe(t))||1)}function kc(e){return tt([e.slotDuration,e._slotLabelPeriodicity,e._slotTimeLimits,e._intlSlotLabel],t=>Na(Kt(an()),...t))}function ji(e){"_sidebarWidth"in e||(e._intlSlotLabel=Zn(e.locale,e.slotLabelFormat),e._slotLabelPeriodicity=Ec(e),e._sidebarWidth=lt(0))}function Xa(e){"_slots"in e||(e._slotTimeLimits=Dc(e),e._slots=kc(e))}function Ka(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function Cc(e){return tt([e.resources,e.filterResourcesWithEvents,e._filteredEvents,e._activeRange],([t,n,r,i])=>{let o=t.filter(l=>!wn(l).hidden);return n&&(o=t.filter(l=>r.some(s=>Rr(s,i.start,i.end,l)))),o.length||(o=Aa([{}])),o})}function Za(e){"_viewResources"in e||(e._viewResources=Cc(e))}function Tc(e,t,n,r,i,o){let l=[],s=1,u=r?[e,t]:[t,e];for(let c of u[0]){let f=[];for(let v of u[1]){let h=r?c:v,_=r?v:c;f.push({gridColumn:s,gridRow:1,resource:_,start:Fe(X(h),n.min),end:Fe(X(h),n.max),dayStart:h,dayEnd:Xt(X(h)),disabled:ur(h,i),highlight:o.some(m=>Et(m,h))}),++s}l.push(f)}return l}var xc=j("<span></span>");function Ja(e,t){ye(t,!0);const n=()=>d(c,"$resourceLabelContent",o),r=()=>d(v,"$_intlDayHeaderAL",o),i=()=>d(f,"$resourceLabelDidMount",o),[o,l]=Ee();let s=Me(t,"date",3,void 0),u=Me(t,"setLabel",3,void 0),{resourceLabelContent:c,resourceLabelDidMount:f,_intlDayHeaderAL:v}=Te("state"),h=Ie(void 0),_=y(()=>n()?De(n())?n()({resource:t.resource,date:s()?Je(s()):void 0}):n():t.resource.title),m=Ie(void 0);et(()=>{a(_),U(()=>{s()?Z(m,r().format(s())+", "+a(h).innerText):u()&&(Z(m,void 0),u()(a(h).innerText))})}),ar(()=>{De(i())&&i()({resource:t.resource,date:s()?Je(s()):void 0,el:a(h)})});var w=xc();bt(w,g=>Z(h,g),()=>a(h)),Ye(w,()=>st(a(_))),le(()=>Be(w,"aria-label",a(m))),x(e,w),be(),l()}function Sc(e,t,n,r){let i=[],o=1;for(let l of e)i.push({gridColumn:o,gridRow:1,resource:void 0,start:Fe(X(l),t.min),end:Fe(X(l),t.max),dayStart:l,dayEnd:Xt(X(l)),disabled:ur(l,n),highlight:r.some(s=>Et(s,l))}),++o;return[i]}function Rc(e,t){let n=[],r=[],i=[],o=[];for(let l of e)for(let s of t)Ut(l.display)?(r=r.concat(eo(l,s)),l.allDay&&(o=o.concat(sr(l,s)))):l.allDay?i=i.concat(sr(l,s)):n=n.concat(eo(l,s));return Lc(n),La(i),{chunks:n,bgChunks:r,allDayChunks:i,allDayBgChunks:o}}function Ic(e,t){let n=[],r=[];for(let i of e)if(i)for(let o of t)i.allDay?r=r.concat(sr(i,o)):n=n.concat(eo(i,o));return{iChunks:n,allDayIChunks:r}}function eo(e,t){let n=[];for(let{gridColumn:r,gridRow:i,resource:o,start:l,end:s,disabled:u}of t)if(!u&&Rr(e,l,s,o)){let c=Ir(e,l,s);gt(c,{gridColumn:r,gridRow:i,top:(c.start-l)/1e3,height:(c.end-c.start)/1e3,maxHeight:(s-c.start)/1e3}),n.push(c)}return n}function Lc(e){let t={};for(let n of e){let{gridColumn:r}=n,i=t[r],o=0;if(i&&n.start<i.end){for(;o<i.columns.length&&!(i.columns[o].at(-1).end<=n.start);++o);n.end>i.end&&(i.end=n.end)}else i={columns:[],end:n.end};i.columns.length<o+1&&i.columns.push([]),i.columns[o].push(n),t[r]=i,n.group=i,n.groupColumn=o}}function Mc(e){let t="all-day",n;return e?(n=De(e)?e({text:t}):e,typeof n=="string"&&(n={html:n})):n={html:t},n}function Qa(e,t){ye(t,!0);const n=()=>d(s,"$slotDuration",i),r=()=>d(u,"$slotHeight",i),[i,o]=Ee();let l=Me(t,"allDay",3,!1),{slotDuration:s,slotHeight:u}=Te("state"),c=y(()=>t.day.dayStart),f=y(()=>t.day.start),v=y(()=>t.day.resource),h=y(()=>t.day.disabled),_=y(()=>t.day.highlight),m=Ie(void 0);function w(g,b){if(l())return a(c);{let $=In(a(m)),p=$.height/a(m).offsetHeight;return Fe(X(a(f)),n(),Ui((b-$.top)/(r()*p)))}}li(e,{get date(){return a(c)},get allDay(){return l()},get resource(){return a(v)},dateFromPoint:w,get disabled(){return a(h)},get highlight(){return a(_)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return a(m)},set el(g){Z(m,g,!0)}}),be(),o()}function to(e,t){ye(t,!0);const n=()=>d(u,"$slotDuration",o),r=()=>d(c,"$slotHeight",o),i=()=>d(s,"$slotEventOverlap",o),[o,l]=Ee();let{slotEventOverlap:s,slotDuration:u,slotHeight:c}=Te("state"),f=y(()=>v=>{let h=xe(n()),_=t.chunk.top/h*r(),m=t.chunk.height/h*r()||r(),w=t.chunk.maxHeight/h*r();v["grid-column"]=t.chunk.gridColumn,v["inset-block-start"]=`${_}px`,v["min-block-size"]=`${m}px`,v["block-size"]=`${m}px`,v["max-block-size"]=`${w}px`;let g="100% - var(--ec-event-col-gap)";if(t.chunk.group){let b=t.chunk.group.columns.length;v["z-index"]=`${t.chunk.groupColumn+1}`,v["inset-inline-start"]=`calc((${g}) / ${b} * ${t.chunk.groupColumn})`,v["inline-size"]=`calc((${g}) / ${b} * ${i()?.5*(1+b-t.chunk.groupColumn):1})`}return v});ui(e,{get chunk(){return t.chunk},get styles(){return a(f)},axis:"y"}),be(),l()}function no(e,t){ye(t,!0);let n=Ie(void 0),r=Ie(0),i=y(()=>t.chunk.event),o=y(()=>u=>(u["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(a(r)||a(i)._margin)&&(u["margin-block-start"]=`${a(i)._margin??a(r)}px`),u));function l(){Z(r,Ma(t.chunk,Kn(a(n))),!0)}var s={reposition:l};return ui(e,{get chunk(){return t.chunk},get styles(){return a(o)},axis:"x",get forceMargin(){return a(r)},get el(){return a(n)},set el(u){Z(n,u,!0)}}),be(s)}var Pc=j("<div></div>");function di(e,t){ye(t,!0);const n=()=>d(m,"$_today",c),r=()=>d(_,"$_now",c),i=()=>d(g,"$slotDuration",c),o=()=>d(b,"$slotHeight",c),l=()=>d(h,"$_mainEl",c),s=()=>d(w,"$_sidebarWidth",c),u=()=>d($,"$theme",c),[c,f]=Ee();let v=Me(t,"span",3,1),{_mainEl:h,_now:_,_today:m,_sidebarWidth:w,slotDuration:g,slotHeight:b,theme:$}=Te("state"),p=y(()=>{for(let A of t.days)if(Et(A.dayStart,n()))return A;return{}}),T=y(()=>a(p).gridColumn),D=y(()=>a(p).start),k=y(()=>a(p).end),L=y(()=>{if(r()<a(D)||r()>a(k))return null;let A=xe(i());return(r()-a(D))/1e3/A*o()}),E=y(()=>({root:l(),rootMargin:xr()?`0px -${s()+5.5}px 0px 0px`:`0px 0px 0px -${s()+5.5}px`,threshold:0}));function H(A,G){A.classList.toggle(u().hidden,!G.isIntersecting)}var C=_e(),S=J(C);{var P=A=>{var G=Pc();let q;Ye(G,()=>ya(H,a(E))),le(()=>{N(G,1,u().nowIndicator),q=qt(G,"",q,{"grid-column":`${a(T)+1} / span ${v()??""}`,"inset-block-start":`${a(L)??""}px`})}),x(A,G)};$e(S,A=>{a(T)&&a(L)!==null&&A(P)})}x(e,C),be(),f()}var Ac=j('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),Oc=j("<div><time></time></div>"),Fc=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 ro(e,t){ye(t,!0);const n=()=>d(te,"$allDayContent",D),r=()=>d(q,"$_viewDates",D),i=()=>d(A,"$_slotTimeLimits",D),o=()=>d(ke,"$validRange",D),l=()=>d(B,"$highlightedDates",D),s=()=>d(H,"$_filteredEvents",D),u=()=>d(C,"$_iEvents",D),c=()=>d(Pe,"$slotMaxTime",D),f=()=>d(ue,"$scrollTime",D),v=()=>d(E,"$_mainEl",D),h=()=>d(V,"$slotDuration",D),_=()=>d(de,"$slotHeight",D),m=()=>d(re,"$theme",D),w=()=>d(Y,"$columnWidth",D),g=()=>d(P,"$_slotLabelPeriodicity",D),b=()=>d(S,"$_sidebarWidth",D),$=()=>d(O,"$allDaySlot",D),p=()=>d(G,"$_slots",D),T=()=>d(K,"$showNowIndicator",D),[D,k]=Ee();let{_activeRangeExt:L,_mainEl:E,_filteredEvents:H,_iEvents:C,_sidebarWidth:S,_slotLabelPeriodicity:P,_slotTimeLimits:A,_slots:G,_viewDates:q,allDayContent:te,allDaySlot:O,columnWidth:Y,highlightedDates:B,nowIndicator:K,scrollTime:ue,slotHeight:de,slotDuration:V,slotMaxTime:Pe,theme:re,validRange:ke}=Te("state"),Xe=Ie(0),He=y(()=>Mc(n())),ae=y(()=>t.createGridFn?.()??Sc(r(),i(),o(),l())),he=y(()=>Rc(s(),a(ae))),kt=y(()=>a(he).chunks),Ct=y(()=>a(he).bgChunks),Ke=y(()=>a(he).allDayChunks),M=y(()=>a(he).allDayBgChunks),me=y(()=>Ic(u(),a(ae))),Qe=y(()=>a(me).iChunks),ve=y(()=>a(me).allDayIChunks);Bn(()=>{Oe(L,({start:W,end:z})=>{if(c().days||c().seconds>Tr){Fe(Rn(z),c());let ie=Rn(X(z));ie<W&&(W=ie)}return{start:W,end:z}})}),et(()=>{r(),f(),Jr().then(Q)});function Q(){Ve(E,U(v).scrollTop=((xe(f())-xe(i().min))/xe(h())-.5)*_(),U(v))}let ge=[];function Ce(){Yi(ge,a(Ke))}et(Ce);var Ge=Fc();let ot;var je=fe(Ge),qe=fe(je),pt=ne(qe,2),sn=fe(pt);{var Ln=W=>{var z=_e(),ie=J(z);yn(ie,()=>t.header,()=>a(ae)),x(W,z)},Bt=W=>{var z=_e(),ie=J(z);oe(ie,17,()=>a(ae)[0],se,(ce,Ae,Se)=>{let nt=()=>a(Ae).dayStart,Ne=()=>a(Ae).disabled,we=()=>a(Ae).highlight;Lr(ce,{get date(){return nt()},colIndex:1+Se,get disabled(){return Ne()},get highlight(){return we()},children:(ct,Qt)=>{si(ct,{get date(){return nt()}})},$$slots:{default:!0}})}),x(W,z)};$e(sn,W=>{t.header?W(Ln):W(Bt,!1)})}var Ft=ne(pt,2);{var Zt=W=>{var z=Ac(),ie=fe(z);Ye(ie,()=>st(a(He)));var ce=ne(ie,2);oe(ce,21,()=>a(ae),se,(we,ct,Qt)=>{var rt=_e(),ft=J(rt);oe(ft,17,()=>a(ct),se,(jt,We,Dn)=>{{let cr=y(()=>Qt+1===a(ae).length&&Dn+1===a(ct).length);Qa(jt,{get day(){return a(We)},allDay:!0,get noIeb(){return a(cr)}})}}),x(we,rt)});var Ae=ne(ce,2),Se=fe(Ae);oe(Se,17,()=>a(Ke),se,(we,ct,Qt)=>{bt(no(we,{get chunk(){return a(ct)}}),(rt,ft)=>ge[ft]=rt,rt=>ge?.[rt],()=>[Qt])});var nt=ne(Se,2);oe(nt,17,()=>a(M),se,(we,ct)=>{no(we,{get chunk(){return a(ct)}})});var Ne=ne(nt,2);oe(Ne,17,()=>a(ve),se,(we,ct)=>{no(we,{get chunk(){return a(ct)}})}),le(()=>{N(z,1,m().allDay),N(ie,1,m().sidebar),N(ce,1,m().grid),N(Ae,1,m().events)}),x(W,z)};$e(Ft,W=>{$()&&W(Zt)})}var Jt=ne(je,2),Tt=fe(Jt);oe(Tt,5,p,se,(W,z,ie)=>{var ce=Oc();let Ae;var Se=fe(ce);Ye(Se,()=>st(a(z)[1])),le(()=>{N(ce,1,on([m().slot,!ie&&m().hidden])),Ae=qt(ce,"",Ae,{"--ec-slot-label-periodicity":a(z)[2]}),Be(Se,"datetime",a(z)[0])}),x(W,ce)});var xt=ne(Tt,2);oe(xt,21,()=>a(ae),se,(W,z,ie)=>{var ce=_e(),Ae=J(ce);oe(Ae,17,()=>a(z),se,(Se,nt,Ne)=>{{let we=y(()=>ie+1===a(ae).length&&Ne+1===a(z).length);Qa(Se,{get day(){return a(nt)},get noIeb(){return a(we)},noBeb:!0})}}),x(W,ce)});var un=ne(xt,2),pn=fe(un);oe(pn,17,()=>a(kt),se,(W,z)=>{to(W,{get chunk(){return a(z)}})});var $n=ne(pn,2);oe($n,17,()=>a(Ct),se,(W,z)=>{to(W,{get chunk(){return a(z)}})});var Ze=ne($n,2);oe(Ze,17,()=>a(Qe),se,(W,z)=>{to(W,{get chunk(){return a(z)}})});var cn=ne(Jt,2);{var R=W=>{var z=_e(),ie=J(z);{var ce=Se=>{var nt=_e(),Ne=J(nt);yn(Ne,()=>t.nowIndicator,()=>a(ae)),x(Se,nt)},Ae=Se=>{di(Se,{get days(){return a(ae)[0]}})};$e(ie,Se=>{t.nowIndicator?Se(ce):Se(Ae,!1)})}x(W,z)};$e(cn,W=>{T()&&W(R)})}bt(Ge,W=>Oe(E,W),()=>v()),Ye(Ge,()=>Hi(Ce)),le(()=>{N(Ge,1,m().main),ot=qt(Ge,"",ot,{"--ec-grid-cols":a(ae).length*a(ae)[0].length,"--ec-col-group-span":a(ae)[0].length,"--ec-col-width":w()??"minmax(0, 1fr)","--ec-slot-label-periodicity":g(),"--ec-slot-height":`${_()??""}px`,"--ec-header-height":`${a(Xe)??""}px`,"--ec-sidebar-width":`${b()??""}px`}),N(je,1,m().header),N(qe,1,m().sidebar),N(pt,1,m().grid),N(Jt,1,m().body),N(Tt,1,m().sidebar),N(xt,1,m().grid),N(un,1,m().events)}),jr(qe,"offsetWidth",W=>Oe(S,W)),jr(je,"offsetHeight",W=>Z(Xe,W)),x(e,Ge),be(),k()}var Nc=j("<!> <!>",1);function ja(e,t){ye(t,!0);const n=()=>d(v,"$_viewDates",c),r=()=>d(h,"$_viewResources",c),i=()=>d(_,"$_slotTimeLimits",c),o=()=>d(m,"$datesAboveResources",c),l=()=>d(g,"$validRange",c),s=()=>d(w,"$highlightedDates",c),u=()=>d(b,"$theme",c),[c,f]=Ee();let{_viewDates:v,_viewResources:h,_slotTimeLimits:_,datesAboveResources:m,highlightedDates:w,validRange:g,theme:b}=Te("state"),$=zn([]);ro(e,{createGridFn:()=>Tc(n(),r(),i(),o(),l(),s()),header:(D,k=_t)=>{var L=Nc(),E=J(L);oe(E,17,k,se,(S,P,A)=>{const G=y(()=>{const{dayStart:q,resource:te,disabled:O,highlight:Y}=a(P)[0];return{date:q,resource:te,disabled:O,highlight:Y}});{let q=y(()=>k()[0].length>1?u().colGroup:void 0),te=y(()=>1+A*a(P).length),O=y(()=>o()&&a(G).disabled),Y=y(()=>o()&&a(G).highlight);Lr(S,{get date(){return a(G).date},get className(){return a(q)},get weekday(){return o()},get colSpan(){return a(P).length},get colIndex(){return a(te)},get disabled(){return a(O)},get highlight(){return a(Y)},children:(B,K)=>{var ue=_e(),de=J(ue);{var V=re=>{si(re,{get date(){return a(G).date}})},Pe=re=>{Ja(re,{get resource(){return a(G).resource},setLabel:ke=>$[A]=ke+", "})};$e(de,re=>{o()?re(V):re(Pe,!1)})}x(B,ue)},$$slots:{default:!0}})}});var H=ne(E,2);{var C=S=>{var P=_e(),A=J(P);oe(A,17,k,se,(G,q,te)=>{var O=_e(),Y=J(O);oe(Y,17,()=>a(q),se,(B,K,ue)=>{const de=y(()=>{const{dayStart:V,resource:Pe,disabled:re,highlight:ke}=a(K);return{date:V,resource:Pe,disabled:re,highlight:ke}});{let V=y(()=>1+ue+te*a(q).length);Lr(B,{get date(){return a(de).date},get colIndex(){return a(V)},get disabled(){return a(de).disabled},get highlight(){return a(de).highlight},children:(Pe,re)=>{var ke=_e(),Xe=J(ke);{var He=he=>{Ja(he,{get resource(){return a(de).resource},get date(){return a(de).date}})},ae=he=>{si(he,{get date(){return a(de).date},get alPrefix(){return $[te]}})};$e(Xe,he=>{o()?he(He):he(ae,!1)})}x(Pe,ke)},$$slots:{default:!0}})}}),x(G,O)}),x(S,P)};$e(H,S=>{k()[0].length>1&&S(C)})}x(D,L)},nowIndicator:(D,k=_t)=>{var L=_e(),E=J(L);{var H=S=>{{let P=y(()=>k().flat());di(S,{get days(){return a(P)},get span(){return k()[0].length}})}},C=S=>{var P=_e(),A=J(P);{var G=te=>{var O=_e(),Y=J(O);oe(Y,17,k,se,(B,K)=>{di(B,{get days(){return a(K)}})}),x(te,O)},q=te=>{{let O=y(()=>k().flat());di(te,{get days(){return a(O)},get span(){return k().length}})}};$e(A,te=>{k()[0].length>1?te(G):te(q,!1)})}x(S,P)};$e(E,S=>{o()?S(H):S(C,!1)})}x(D,L)},$$slots:{header:!0,nowIndicator:!0}}),be(),f()}const Hc={createOptions(e){qa(e),Ji(e),Ka(e),e.datesAboveResources=!1,e.buttonText.resourceTimeGridDay="resources",e.buttonText.resourceTimeGridWeek="resources",e.theme.colGroup="ec-col-group",e.view="resourceTimeGridWeek",e.views.resourceTimeGridDay={buttonText:ii,component:ja,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:zt("ec-resource ec-time-grid ec-day-view")},e.views.resourceTimeGridWeek={buttonText:oi,component:ja,duration:{weeks:1},theme:zt("ec-resource ec-time-grid ec-week-view")}},createParsers(e){Qi(e)},createStores(e){ji(e),Xa(e),Za(e)}};function Wc(e){return tt([e.slotMinTime,e.slotMaxTime,e.flexibleSlotTimeLimits,e._viewDates,e._filteredEvents],([t,n,r,i,o])=>{let l={};for(let s of i)l[s.getTime()]=Ha(t,n,r,[s],o);return l})}function Uc(e){return tt([e._viewDates,e.slotDuration,e._slotLabelPeriodicity,e._dayTimeLimits,e._intlSlotLabel],([t,n,r,i,o])=>{let l={};for(let s of t){let u=s.getTime();l[u]=u in i?Na(s,n,r,i[u],o):[]}return l})}function zc(e){return tt(e.resources,t=>t.some(n=>wn(n).children.length))}function Bc(e){return tt(e.slotDuration,t=>!xe(t))}function Vc(e,t,n,r,i){let o=[],l=1;for(let s of t){let u=[],c=1;for(let f of e){let v=n[f.getTime()];u.push({gridColumn:c,gridRow:l,resource:s,start:Fe(X(f),v.min),end:Fe(X(f),v.max),dayStart:f,dayEnd:Xt(X(f)),disabled:ur(f,r),highlight:i.some(h=>Et(h,f))}),++c}o.push(u),++l}return o}function Gc(e,t){let n=[],r=[];for(let i of e)for(let o of t)Ut(i.display)?r=r.concat(io(i,o)):n=n.concat(io(i,o));return qc(n),{chunks:n,bgChunks:r}}function Yc(e,t){let n=[];for(let r of e)if(r)for(let i of t)n=n.concat(io(r,i));return n}function io(e,t){let n=[],r,i,o,l,s,u=0;for(let{gridColumn:c,gridRow:f,resource:v,dayStart:h,start:_,end:m,disabled:w}of t)!w&&Rr(e,_,m,v)&&(n.length||(r=_,o=c,l=f,s=Ot(e.start-_,0)/1e3),n.push(h),i=m,u+=(ln(m,e.end)-Ot(_,e.start))/1e3);if(n.length){let c=Ir(e,r,i);return gt(c,{gridColumn:o,gridRow:l,dates:n,left:s,width:u}),[c]}return[]}function qc(e){let t={};for(let n of e){let{gridColumn:r,gridRow:i}=n;for(let l=0;l<n.dates.length;++l){let s=`${i}_${r+l}`;t[s]?t[s].push(n):t[s]=[n]}let o=`${i}_${r}`;n.day=t[o]}}function Xc(e,t,n){let r=0,i=r+t,o=e.day;o.sort((l,s)=>(l.top??Number.POSITIVE_INFINITY)-(s.top??Number.POSITIVE_INFINITY));for(let l of o)if(!(l===e||!("top"in l))&&(n||e.start<l.end&&e.end>l.start)&&r<l.bottom&&i>l.top){let s=l.bottom-r+1;r+=s,i+=s}return gt(e,{top:r,bottom:i}),r}function Kc(e,t){return e[t.getTime()]??{min:it(0),max:it("24:00:00")}}function Zc(e,t){ye(t,!0);const n=()=>d(s,"$_monthView",o),r=()=>d(u,"$slotDuration",o),i=()=>d(c,"$slotWidth",o),[o,l]=Ee();let{_monthView:s,slotDuration:u,slotWidth:c}=Te("state"),f=y(()=>t.day.dayStart),v=y(()=>t.day.start),h=y(()=>t.day.resource),_=y(()=>t.day.disabled),m=y(()=>t.day.highlight),w=Ie(void 0);function g(b,$){if(n())return a(f);{let p=In(a(w)),T=p.width/a(w).offsetWidth;return Fe(X(a(v)),r(),Ui((xr()?p.right-b:b-p.left)/(i()*T)))}}li(e,{get allDay(){return n()},get date(){return a(f)},get resource(){return a(h)},dateFromPoint:g,get disabled(){return a(_)},get highlight(){return a(m)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return a(w)},set el(b){Z(w,b,!0)}}),be(),l()}function oo(e,t){ye(t,!0);const n=()=>d(c,"$_monthView",o),r=()=>d(s,"$slotDuration",o),i=()=>d(u,"$slotWidth",o),[o,l]=Ee();let{slotDuration:s,slotWidth:u,_monthView:c}=Te("state"),f=Ie(void 0),v=Ie(0),h=y(()=>t.chunk.event),_=y(()=>b=>{if(b["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,b["grid-row"]=t.chunk.gridRow,!n()){let p=t.chunk.left/xe(r())*i();b["inset-inline-start"]=`${p}px`,b["inline-size"]=`${t.chunk.width/xe(r())*i()}px`}let $=a(v);if(a(h)._margin){let[p,T]=a(h)._margin;t.chunk.gridRow===T&&($=p)}return b["margin-block-start"]=`${$}px`,b});function m(){Z(v,Xc(t.chunk,Kn(a(f)),n()),!0)}var w={reposition:m};{let b=y(()=>[a(v),t.chunk.gridRow]);ui(e,{get chunk(){return t.chunk},get styles(){return a(_)},axis:"x",get forceMargin(){return a(b)},get el(){return a(f)},set el($){Z(f,$,!0)}})}var g=be(w);return l(),g}var Jc=j("<span></span>");function Qc(e,t){ye(t,!0);const n=()=>d(s,"$resourceLabelContent",i),r=()=>d(u,"$resourceLabelDidMount",i),[i,o]=Ee();let l=Me(t,"date",3,void 0),{resourceLabelContent:s,resourceLabelDidMount:u}=Te("state"),c=Ie(void 0),f=y(()=>n()?De(n())?n()({resource:t.resource,date:l()?Je(l()):void 0}):n():t.resource.title);ar(()=>{De(r())&&r()({resource:t.resource,date:l()?Je(l()):void 0,el:a(c)})});var v=Jc();bt(v,h=>Z(c,h),()=>a(c)),Ye(v,()=>st(a(f))),x(e,v),be(),o()}var jc=j("<span></span>"),ef=j("<button><!></button>"),tf=j("<!> <span><!></span>",1);function nf(e,t){ye(t,!0);const n=()=>d(l,"$theme",r),[r,i]=Ee();let{resources:o,theme:l}=Te("state"),s=Ie({}),u=Ie(!0);Bn(()=>{Z(s,wn(t.resource)),Z(u,a(s).expanded,!0)});function c(){Z(u,!a(u)),a(s).expanded=a(u),f(a(s).children,a(u)),o.update(Xn)}function f(g,b){for(let $ of g){let p=wn($);p.hidden=!b,p.expanded&&f(p.children,b)}}var v=tf(),h=J(v);oe(h,17,()=>Array(a(s).level),se,(g,b)=>{var $=jc();le(()=>N($,1,n().expander)),x(g,$)});var _=ne(h,2),m=fe(_);{var w=g=>{var b=ef();b.__click=c;var $=fe(b);{var p=D=>{var k=ua("−");x(D,k)},T=D=>{var k=ua("+");x(D,k)};$e($,D=>{a(u)?D(p):D(T,!1)})}le(()=>N(b,1,n().button)),x(g,b)};$e(m,g=>{a(s).children?.length&&g(w)})}le(()=>N(_,1,n().expander)),x(e,v),be(),i()}Tn(["click"]);var rf=j("<div></div>");function of(e,t){ye(t,!0);const n=()=>d(_,"$_today",c),r=()=>d(h,"$_now",c),i=()=>d(w,"$slotDuration",c),o=()=>d(g,"$slotWidth",c),l=()=>d(v,"$_mainEl",c),s=()=>d(m,"$_sidebarWidth",c),u=()=>d(b,"$theme",c),[c,f]=Ee();let{_mainEl:v,_now:h,_today:_,_sidebarWidth:m,slotDuration:w,slotWidth:g,theme:b}=Te("state"),$=y(()=>{for(let P of t.grid[0])if(Et(P.dayStart,n()))return P;return{}}),p=y(()=>a($).gridColumn),T=y(()=>a($).start),D=y(()=>a($).end),k=y(()=>{if(r()<a(T)||r()>a(D))return null;let P=xe(i());return(r()-a(T))/1e3/P*o()}),L=y(()=>({root:l(),rootMargin:xr()?`0px -${s()+1}px 0px 0px`:`0px 0px 0px -${s()+1}px`,threshold:0}));function E(P,A){P.classList.toggle(u().hidden,!A.isIntersecting)}var H=_e(),C=J(H);{var S=P=>{var A=rf();let G;Ye(A,()=>ya(E,a(L))),le(()=>{N(A,1,u().nowIndicator),G=qt(A,"",G,{"grid-column":a(p)+1,"grid-row":`2 / span ${t.grid.length??""}`,"inset-inline-start":`${a(k)??""}px`})}),x(P,A)};$e(C,P=>{a(p)&&a(k)!==null&&P(S)})}x(e,H),be(),f()}var af=j("<div><time></time></div>"),lf=j('<div role="rowheader"><!> <!></div>'),sf=j('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function ao(e,t){ye(t,!0);const n=()=>d(de,"$_viewDates",E),r=()=>d(ue,"$_viewResources",E),i=()=>d(P,"$_dayTimeLimits",E),o=()=>d(Ct,"$validRange",E),l=()=>d(Pe,"$highlightedDates",E),s=()=>d(A,"$_filteredEvents",E),u=()=>d(G,"$_iEvents",E),c=()=>d(ae,"$slotMaxTime",E),f=()=>d(ke,"$scrollTime",E),v=()=>d(te,"$_monthView",E),h=()=>d(K,"$_today",E),_=()=>d(q,"$_mainEl",E),m=()=>d(Xe,"$slotDuration",E),w=()=>d(he,"$slotWidth",E),g=()=>d(kt,"$theme",E),b=()=>d(V,"$columnWidth",E),$=()=>d(B,"$_slotLabelPeriodicity",E),p=()=>d(He,"$slotHeight",E),T=()=>d(Y,"$_sidebarWidth",E),D=()=>d(S,"$_daySlots",E),k=()=>d(O,"$_nestedResources",E),L=()=>d(re,"$nowIndicator",E),[E,H]=Ee();let{_activeRangeExt:C,_daySlots:S,_dayTimeLimits:P,_filteredEvents:A,_iEvents:G,_mainEl:q,_monthView:te,_nestedResources:O,_sidebarWidth:Y,_slotLabelPeriodicity:B,_today:K,_viewResources:ue,_viewDates:de,columnWidth:V,highlightedDates:Pe,nowIndicator:re,scrollTime:ke,slotDuration:Xe,slotHeight:He,slotMaxTime:ae,slotWidth:he,theme:kt,validRange:Ct}=Te("state"),Ke=Ie(0),M=y(()=>Vc(n(),r(),i(),o(),l())),me=y(()=>Gc(s(),a(M))),Qe=y(()=>a(me).chunks),ve=y(()=>a(me).bgChunks),Q=y(()=>Yc(u(),a(M)));Bn(()=>{Oe(C,({start:R,end:W})=>{if(c().days||c().seconds>Tr){Fe(Rn(W),c());let z=Rn(X(W));z<R&&(R=z)}return{start:R,end:W}})}),et(()=>{n(),f(),Jr().then(ge)});function ge(){if(v())return;let R=0,W=h()<n()[0]||h()>n().at(-1);for(let z of n()){let ie=Kc(i(),z);if(W||Et(z,h())){R+=Ot(ln(xe(f()),xe(ie.max))-xe(ie.min),0);break}else R+=xe(ie.max)-xe(ie.min)}Ve(q,U(_).scrollLeft=R/xe(m())*w()*(xr()?-1:1),U(_))}let Ce=[];function Ge(){Yi(Ce,a(Qe))}et(Ge);var ot=sf();let je;var qe=fe(ot),pt=fe(qe),sn=ne(pt,2),Ln=fe(sn);oe(Ln,17,()=>a(M)[0],se,(R,W,z)=>{let ie=()=>a(W).dayStart,ce=()=>a(W).disabled,Ae=()=>a(W).highlight;Lr(R,{get date(){return ie()},colIndex:1+z,get disabled(){return ce()},get highlight(){return Ae()},children:(Se,nt)=>{si(Se,{get date(){return ie()}})},$$slots:{default:!0}})});var Bt=ne(Ln,2);{var Ft=R=>{var W=_e(),z=J(W);oe(z,17,()=>a(M)[0],se,(ie,ce)=>{let Ae=()=>a(ce).dayStart,Se=()=>a(ce).disabled,nt=()=>a(ce).highlight;Lr(ie,{get date(){return Ae()},get className(){return g().slots},get disabled(){return Se()},get highlight(){return nt()},ariaHidden:!0,children:(Ne,we)=>{var ct=_e(),Qt=J(ct);oe(Qt,1,()=>D()[Ae().getTime()],se,(rt,ft)=>{var jt=af();let We;var Dn=fe(jt);Ye(Dn,()=>st(a(ft)[1])),le(()=>{N(jt,1,g().slot),We=qt(jt,"",We,{"--ec-slot-label-periodicity":a(ft)[2]}),Be(Dn,"datetime",a(ft)[0])}),x(rt,jt)}),x(Ne,ct)},$$slots:{default:!0}})}),x(R,W)};$e(Bt,R=>{v()||R(Ft)})}var Zt=ne(qe,2),Jt=fe(Zt);oe(Jt,5,r,se,(R,W)=>{var z=lf(),ie=fe(z);{var ce=Se=>{nf(Se,{get resource(){return a(W)}})};$e(ie,Se=>{k()&&Se(ce)})}var Ae=ne(ie,2);Qc(Ae,{get resource(){return a(W)}}),le(()=>N(z,1,g().rowHead)),x(R,z)});var Tt=ne(Jt,2);oe(Tt,21,()=>a(M),se,(R,W,z)=>{var ie=_e(),ce=J(ie);oe(ce,17,()=>a(W),se,(Ae,Se,nt)=>{{let Ne=y(()=>nt+1===a(W).length),we=y(()=>z+1===a(M).length);Zc(Ae,{get day(){return a(Se)},get noIeb(){return a(Ne)},get noBeb(){return a(we)}})}}),x(R,ie)});var xt=ne(Tt,2),un=fe(xt);oe(un,17,()=>a(Qe),se,(R,W,z)=>{bt(oo(R,{get chunk(){return a(W)}}),(ie,ce)=>Ce[ce]=ie,ie=>Ce?.[ie],()=>[z])});var pn=ne(un,2);oe(pn,17,()=>a(ve),se,(R,W)=>{oo(R,{get chunk(){return a(W)}})});var $n=ne(pn,2);oe($n,17,()=>a(Q),se,(R,W)=>{oo(R,{get chunk(){return a(W)}})});var Ze=ne(Zt,2);{var cn=R=>{of(R,{get grid(){return a(M)}})};$e(Ze,R=>{L()&&!v()&&R(cn)})}bt(ot,R=>Oe(q,R),()=>_()),Ye(ot,()=>Hi(Ge)),le(()=>{N(ot,1,g().main),je=qt(ot,"",je,{"--ec-grid-cols":a(M)[0].length,"--ec-grid-rows":`${a(M).length>1?`repeat(${a(M).length-1}, auto)`:""} minmax(auto, 1fr)`,"--ec-col-width":b()??"minmax(4em, 1fr)","--ec-slot-label-periodicity":$(),"--ec-slot-height":`${p()??""}px`,"--ec-slot-width":`${w()??""}px`,"--ec-header-height":`${a(Ke)??""}px`,"--ec-sidebar-width":`${T()??""}px`}),N(qe,1,g().header),N(pt,1,g().sidebar),N(sn,1,g().grid),N(Zt,1,g().body),N(Jt,1,g().sidebar),N(Tt,1,g().grid),N(xt,1,g().events)}),jr(pt,"offsetWidth",R=>Oe(Y,R)),jr(qe,"offsetHeight",R=>Z(Ke,R)),x(e,ot),be(),H()}const uf={createOptions(e){Ji(e),Ka(e),e.slotWidth=16,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:ii,component:ao,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},slotLabelInterval:"01:00",slotDuration:"00:15",theme:zt("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:oi,component:ao,displayEventEnd:!1,duration:{weeks:1},slotLabelInterval:"01:00",slotDuration:"00:15",theme:zt("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:qi,component:ao,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:zt("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){Qi(e)},createStores(e){ji(e),Za(e),e._dayTimeLimits=Wc(e),e._daySlots=Uc(e),e._monthView=Bc(e),e._nestedResources=zc(e)}},cf={createOptions(e){qa(e),Ji(e),e.buttonText.timeGridDay="day",e.buttonText.timeGridWeek="week",e.view="timeGridWeek",e.views.timeGridDay={buttonText:ii,component:ro,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:zt("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.timeGridWeek={buttonText:oi,component:ro,duration:{weeks:1},theme:zt("ec-time-grid ec-week-view")}},createParsers(e){Qi(e)},createStores(e){ji(e),Xa(e)}};function ff(e,t,n){return ws(Hu,{target:e,props:{plugins:t,options:n}})}function df(e){return $s(e)}function hf(e,t){return ff(e,[ic,gc,$c,Hc,uf,cf],t)}return Hr.create=hf,Hr.destroy=df,Object.defineProperty(Hr,Symbol.toStringTag,{value:"Module"}),Hr})({});
5
+ var EventCalendar=(function(Kn){"use strict";var yi=Array.isArray,po=Array.prototype.indexOf,Zn=Array.from,wi=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,_o=Object.getOwnPropertyDescriptors,yo=Object.prototype,wo=Array.prototype,bi=Object.getPrototypeOf,ki=Object.isExtensible;const Yt=()=>{};function bo(e){for(var t=0;t<e.length;t++)e[t]()}function Ci(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function ko(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 Ue=2,Er=4,Jn=8,Di=1<<24,Mt=16,At=32,en=64,Qn=128,_t=512,Ve=1024,rt=2048,Dt=4096,it=8192,Ot=16384,Tr=32768,Gt=65536,Ei=1<<17,Ti=1<<18,mn=1<<19,xi=1<<20,Nt=1<<25,tn=32768,xr=1<<21,Sr=1<<22,qt=1<<23,Rn=Symbol("$state"),Co=Symbol("legacy props"),Do=Symbol(""),pn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Si(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Eo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function To(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function xo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function So(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ro(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Io(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function Lo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Po(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Mo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ao(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Oo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const No=1,Fo=2,Ri=4,Ho=8,Uo=16,Wo=1,zo=4,Vo=8,Bo=16,Yo=1,Go=2,Be=Symbol(),qo="http://www.w3.org/1999/xhtml";function Xo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ii(e){return e===this.v}function Ko(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Li(e){return!Ko(e,this.v)}let Gf=!1,Ye=null;function _n(e){Ye=e}function ne(e){return Mi().get(e)}function In(e,t){return Mi().set(e,t),t}function ke(e,t=!1,r){Ye={p:Ye,i:!1,c:null,e:null,s:e,x:null,l:null}}function Ce(e){var t=Ye,r=t.e;if(r!==null){t.e=null;for(var i of r)Qi(i)}return e!==void 0&&(t.x=e),t.i=!0,Ye=t.p,e??{}}function Pi(){return!0}function Mi(e){return Ye===null&&Si(),Ye.c??=new Map(Zo(Ye)||void 0)}function Zo(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let nn=[];function Ai(){var e=nn;nn=[],bo(e)}function rn(e){if(nn.length===0&&!Ln){var t=nn;queueMicrotask(()=>{t===nn&&Ai()})}nn.push(e)}function Jo(){for(;nn.length>0;)Ai()}function Oi(e){var t=Te;if(t===null)return ve.f|=qt,e;if((t.f&Tr)===0){if((t.f&Qn)===0)throw e;t.b.error(e)}else yn(e,t)}function yn(e,t){for(;t!==null;){if((t.f&Qn)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const jn=new Set;let Le=null,dt=null,ct=[],$n=null,Rr=!1,Ln=!1;class Et{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=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){ct=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[]};for(const i of t)this.#a(i,r);this.is_fork||this.#f(),this.is_deferred()?(this.#l(r.effects),this.#l(r.render_effects)):(Le=null,Fi(r.render_effects),Fi(r.effects),this.#s?.resolve()),dt=null}#a(t,r){t.f^=Ve;for(var i=t.first;i!==null;){var s=i.f,o=(s&(At|en))!==0,l=o&&(s&Ve)!==0,u=l||(s&it)!==0||this.skipped_effects.has(i);if((i.f&Qn)!==0&&i.b?.is_pending()&&(r={parent:r,effect:i,effects:[],render_effects:[]}),!u&&i.fn!==null){o?i.f^=Ve:(s&Er)!==0?r.effects.push(i):Nn(i)&&((i.f&Mt)!==0&&this.#i.add(i),Fn(i));var f=i.first;if(f!==null){i=f;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)d===r.effect&&(this.#l(r.effects),this.#l(r.render_effects),r=r.parent),i=d.next,d=d.parent}}#l(t){for(const r of t)(r.f&rt)!==0?this.#i.add(r):(r.f&Dt)!==0&&this.#o.add(r),this.#u(r.deps),qe(r,Ve)}#u(t){if(t!==null)for(const r of t)(r.f&Ue)===0||(r.f&tn)===0||(r.f^=tn,this.#u(r.deps))}capture(t,r){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(){Le=this,this.apply()}deactivate(){Le===this&&(Le=null,dt=null)}flush(){if(this.activate(),ct.length>0){if(Ni(),Le!==null&&Le!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#f(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#n===0&&this.#d()}#d(){if(jn.size>1){this.previous.clear();var t=dt,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const o of jn){if(o===this){r=!1;continue}const l=[];for(const[f,d]of this.current){if(o.current.has(f))if(r&&d!==o.current.get(f))o.current.set(f,d);else continue;l.push(f)}if(l.length===0)continue;const u=[...o.current.keys()].filter(f=>!this.current.has(f));if(u.length>0){var s=ct;ct=[];const f=new Set,d=new Map;for(const h of l)Hi(h,u,f,d);if(ct.length>0){Le=o,o.apply();for(const h of ct)o.#a(h,i);o.deactivate()}ct=s}}Le=null,dt=t}this.committed=!0,jn.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#i)this.#o.delete(t),qe(t,rt),sn(t);for(const t of this.#o)qe(t,Dt),sn(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#s??=Ci()).promise}static ensure(){if(Le===null){const t=Le=new Et;jn.add(Le),Ln||Et.enqueue(()=>{Le===t&&t.flush()})}return Le}static enqueue(t){rn(t)}apply(){}}function Qo(e){var t=Ln;Ln=!0;try{for(var r;;){if(Jo(),ct.length===0&&(Le?.flush(),ct.length===0))return $n=null,r;Ni()}}finally{Ln=t}}function Ni(){var e=ln;Rr=!0;var t=null;try{var r=0;for(rr(!0);ct.length>0;){var i=Et.ensure();if(r++>1e3){var s,o;jo()}i.process(ct),Xt.clear()}}finally{Rr=!1,rr(e),$n=null}}function jo(){try{Ro()}catch(e){yn(e,$n)}}let Ft=null;function Fi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Ot|it))===0&&Nn(i)&&(Ft=new Set,Fn(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?ts(i):i.fn=null),Ft?.size>0)){Xt.clear();for(const s of Ft){if((s.f&(Ot|it))!==0)continue;const o=[s];let l=s.parent;for(;l!==null;)Ft.has(l)&&(Ft.delete(l),o.push(l)),l=l.parent;for(let u=o.length-1;u>=0;u--){const f=o[u];(f.f&(Ot|it))===0&&Fn(f)}}Ft.clear()}}Ft=null}}function Hi(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&Ue)!==0?Hi(s,t,r,i):(o&(Sr|Mt))!==0&&(o&rt)===0&&Ui(s,t,i)&&(qe(s,rt),sn(s))}}function Ui(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&Ue)!==0&&Ui(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function sn(e){for(var t=$n=e;t.parent!==null;){t=t.parent;var r=t.f;if(Rr&&t===Te&&(r&Mt)!==0&&(r&Ti)===0)return;if((r&(en|At))!==0){if((r&Ve)===0)return;t.f^=Ve}}ct.push(t)}function $o(e){let t=0,r=Kt(0),i;return()=>{Mn()&&(n(r),ji(()=>(t===0&&(i=ee(()=>e(()=>Tt(r)))),t+=1,()=>{rn(()=>{t-=1,t===0&&(i?.(),i=void 0,Tt(r))})})))}}var ea=Gt|mn|Qn;function ta(e,t,r){new na(e,t,r)}class na{parent;#e=!1;#t;#n=null;#r;#s;#i;#o=null;#a=null;#l=null;#u=null;#f=null;#d=0;#c=0;#v=!1;#h=null;#y=$o(()=>(this.#h=Kt(this.#d),()=>{this.#h=null}));constructor(t,r,i){this.#t=t,this.#r=r,this.#s=i,this.parent=Te.b,this.#e=!!this.#r.pending,this.#i=An(()=>{Te.b=this;{var s=this.#p();try{this.#o=st(()=>i(s))}catch(o){this.error(o)}this.#c>0?this.#m():this.#e=!1}return()=>{this.#f?.remove()}},ea)}#w(){try{this.#o=st(()=>this.#s(this.#t))}catch(t){this.error(t)}this.#e=!1}#b(){const t=this.#r.pending;t&&(this.#a=st(()=>t(this.#t)),Et.enqueue(()=>{var r=this.#p();this.#o=this.#g(()=>(Et.ensure(),st(()=>this.#s(r)))),this.#c>0?this.#m():(an(this.#a,()=>{this.#a=null}),this.#e=!1)}))}#p(){var t=this.#t;return this.#e&&(this.#f=Ht(),this.#t.before(this.#f),t=this.#f),t}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#g(t){var r=Te,i=ve,s=Ye;St(this.#i),tt(this.#i),_n(this.#i.ctx);try{return t()}catch(o){return Oi(o),null}finally{St(r),tt(i),_n(s)}}#m(){const t=this.#r.pending;this.#o!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),is(this.#o,this.#u)),this.#a===null&&(this.#a=st(()=>t(this.#t)))}#_(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#_(t);return}this.#c+=t,this.#c===0&&(this.#e=!1,this.#a&&an(this.#a,()=>{this.#a=null}),this.#u&&(this.#t.before(this.#u),this.#u=null))}update_pending_count(t){this.#_(t),this.#d+=t,this.#h&&wn(this.#h,this.#d)}get_effect_pending(){return this.#y(),n(this.#h)}error(t){var r=this.#r.onerror;let i=this.#r.failed;if(this.#v||!r&&!i)throw t;this.#o&&(Qe(this.#o),this.#o=null),this.#a&&(Qe(this.#a),this.#a=null),this.#l&&(Qe(this.#l),this.#l=null);var s=!1,o=!1;const l=()=>{if(s){Xo();return}s=!0,o&&Oo(),Et.ensure(),this.#d=0,this.#l!==null&&an(this.#l,()=>{this.#l=null}),this.#e=this.has_pending_snippet(),this.#o=this.#g(()=>(this.#v=!1,st(()=>this.#s(this.#t)))),this.#c>0?this.#m():this.#e=!1};var u=ve;try{tt(null),o=!0,r?.(t,l),o=!1}catch(f){yn(f,this.#i&&this.#i.parent)}finally{tt(u)}i&&rn(()=>{this.#l=this.#g(()=>{Et.ensure(),this.#v=!0;try{return st(()=>{i(this.#t,()=>t,()=>l)})}catch(f){return yn(f,this.#i.parent),null}finally{this.#v=!1}})})}}function ra(e,t,r,i){const s=tr;if(r.length===0&&e.length===0){i(t.map(s));return}var o=Le,l=Te,u=ia();function f(){Promise.all(r.map(d=>sa(d))).then(d=>{u();try{i([...t.map(s),...d])}catch(h){(l.f&Ot)===0&&yn(h,l)}o?.deactivate(),er()}).catch(d=>{yn(d,l)})}e.length>0?Promise.all(e).then(()=>{u();try{return f()}finally{o?.deactivate(),er()}}):f()}function ia(){var e=Te,t=ve,r=Ye,i=Le;return function(o=!0){St(e),tt(t),_n(r),o&&i?.activate()}}function er(){St(null),tt(null),_n(null)}function tr(e){var t=Ue|rt,r=ve!==null&&(ve.f&Ue)!==0?ve:null;return Te!==null&&(Te.f|=mn),{ctx:Ye,deps:null,effects:null,equals:Ii,f:t,fn:e,reactions:null,rv:0,v:Be,wv:0,parent:r??Te,ac:null}}function sa(e,t){let r=Te;r===null&&Eo();var i=r.b,s=void 0,o=Kt(Be),l=!ve,u=new Map;return ha(()=>{var f=Ci();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{d===Le&&d.committed&&d.deactivate(),er()})}catch(c){f.reject(c),er()}var d=Le;if(l){var h=!i.is_pending();i.update_pending_count(1),d.increment(h),u.get(d)?.reject(pn),u.delete(d),u.set(d,f)}const g=(c,v=void 0)=>{if(d.activate(),v)v!==pn&&(o.f|=qt,wn(o,v));else{(o.f&qt)!==0&&(o.f^=qt),wn(o,c);for(const[p,_]of u){if(u.delete(p),p===d)break;_.reject(pn)}}l&&(i.update_pending_count(-1),d.decrement(h))};f.promise.then(g,c=>g(null,c||"unknown"))}),Mr(()=>{for(const f of u.values())f.reject(pn)}),new Promise(f=>{function d(h){function g(){h===s?f(o):d(s)}h.then(g,g)}d(s)})}function a(e){const t=tr(e);return os(t),t}function Wi(e){const t=tr(e);return t.equals=Li,t}function zi(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Qe(t[r])}}function oa(e){for(var t=e.parent;t!==null;){if((t.f&Ue)===0)return(t.f&Ot)===0?t:null;t=t.parent}return null}function Ir(e){var t,r=Te;St(oa(e));try{e.f&=~tn,zi(e),t=ds(e)}finally{St(r)}return t}function Vi(e){var t=Ir(e);if(e.equals(t)||(Le?.is_fork||(e.v=t),e.wv=us()),!un)if(dt!==null)(Mn()||Le?.is_fork)&&dt.set(e,t);else{var r=(e.f&_t)===0?Dt:Ve;qe(e,r)}}let Lr=new Set;const Xt=new Map;let Bi=!1;function Kt(e,t){var r={f:0,v:e,reactions:null,equals:Ii,rv:0,wv:0};return r}function K(e,t){const r=Kt(e);return os(r),r}function Yi(e,t=!1,r=!0){const i=Kt(e);return t||(i.equals=Li),i}function b(e,t,r=!1){ve!==null&&(!xt||(ve.f&Ei)!==0)&&Pi()&&(ve.f&(Ue|Mt|Sr|Ei))!==0&&!Ut?.includes(e)&&Ao();let i=r?Je(t):t;return wn(e,i)}function wn(e,t){if(!e.equals(t)){var r=e.v;un?Xt.set(e,t):Xt.set(e,r),e.v=t;var i=Et.ensure();i.capture(e,r),(e.f&Ue)!==0&&((e.f&rt)!==0&&Ir(e),qe(e,(e.f&_t)!==0?Ve:Dt)),e.wv=us(),Gi(e,rt),Te!==null&&(Te.f&Ve)!==0&&(Te.f&(At|en))===0&&(ht===null?pa([e]):ht.push(e)),!i.is_fork&&Lr.size>0&&!Bi&&aa()}return t}function aa(){Bi=!1;var e=ln;rr(!0);const t=Array.from(Lr);try{for(const r of t)(r.f&Ve)!==0&&qe(r,Dt),Nn(r)&&Fn(r)}finally{rr(e)}Lr.clear()}function Tt(e){b(e,e.v+1)}function Gi(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&rt)===0;if(u&&qe(o,t),(l&Ue)!==0){var f=o;dt?.delete(f),(l&tn)===0&&(l&_t&&(o.f|=tn),Gi(f,Dt))}else u&&((l&Mt)!==0&&Ft!==null&&Ft.add(o),sn(o))}}function Je(e){if(typeof e!="object"||e===null||Rn in e)return e;const t=bi(e);if(t!==yo&&t!==wo)return e;var r=new Map,i=yi(e),s=K(0),o=Wt,l=u=>{if(Wt===o)return u();var f=ve,d=Wt;tt(null),ls(o);var h=u();return tt(f),ls(d),h};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)&&Po();var h=r.get(f);return h===void 0?h=l(()=>{var g=K(d.value);return r.set(f,g),g}):b(h,d.value,!0),!0},deleteProperty(u,f){var d=r.get(f);if(d===void 0){if(f in u){const h=l(()=>K(Be));r.set(f,h),Tt(s)}}else b(d,Be),Tt(s);return!0},get(u,f,d){if(f===Rn)return e;var h=r.get(f),g=f in u;if(h===void 0&&(!g||gn(u,f)?.writable)&&(h=l(()=>{var v=Je(g?u[f]:Be),p=K(v);return p}),r.set(f,h)),h!==void 0){var c=n(h);return c===Be?void 0:c}return Reflect.get(u,f,d)},getOwnPropertyDescriptor(u,f){var d=Reflect.getOwnPropertyDescriptor(u,f);if(d&&"value"in d){var h=r.get(f);h&&(d.value=n(h))}else if(d===void 0){var g=r.get(f),c=g?.v;if(g!==void 0&&c!==Be)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return d},has(u,f){if(f===Rn)return!0;var d=r.get(f),h=d!==void 0&&d.v!==Be||Reflect.has(u,f);if(d!==void 0||Te!==null&&(!h||gn(u,f)?.writable)){d===void 0&&(d=l(()=>{var c=h?Je(u[f]):Be,v=K(c);return v}),r.set(f,d));var g=n(d);if(g===Be)return!1}return h},set(u,f,d,h){var g=r.get(f),c=f in u;if(i&&f==="length")for(var v=d;v<g.v;v+=1){var p=r.get(v+"");p!==void 0?b(p,Be):v in u&&(p=l(()=>K(Be)),r.set(v+"",p))}if(g===void 0)(!c||gn(u,f)?.writable)&&(g=l(()=>K(void 0)),b(g,Je(d)),r.set(f,g));else{c=g.v!==Be;var _=l(()=>Je(d));b(g,_)}var m=Reflect.getOwnPropertyDescriptor(u,f);if(m?.set&&m.set.call(h,d),!c){if(i&&typeof f=="string"){var y=r.get("length"),E=Number(f);Number.isInteger(E)&&E>=y.v&&b(y,E+1)}Tt(s)}return!0},ownKeys(u){n(s);var f=Reflect.ownKeys(u).filter(g=>{var c=r.get(g);return c===void 0||c.v!==Be});for(var[d,h]of r)h.v!==Be&&!(d in u)&&f.push(d);return f},setPrototypeOf(){Mo()}})}var yt,qi,Xi,Ki;function la(){if(yt===void 0){yt=window,qi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Xi=gn(t,"firstChild").get,Ki=gn(t,"nextSibling").get,ki(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ki(r)&&(r.__t=void 0)}}function Ht(e=""){return document.createTextNode(e)}function nr(e){return Xi.call(e)}function Pn(e){return Ki.call(e)}function ue(e,t){return nr(e)}function $(e,t=!1){{var r=nr(e);return r instanceof Comment&&r.data===""?Pn(r):r}}function re(e,t=1,r=!1){let i=e;for(;t--;)i=Pn(i);return i}function ua(e){e.textContent=""}function Zi(){return!1}function fa(e,t){{const r=document.body;e.autofocus=!0,rn(()=>{document.activeElement===r&&e.focus()})}}function Pr(e){var t=ve,r=Te;tt(null),St(null);try{return e()}finally{tt(t),St(r)}}function Ji(e){Te===null&&(ve===null&&So(),xo()),un&&To()}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 wt(e,t,r){var i=Te;i!==null&&(i.f&it)!==0&&(e|=it);var s={ctx:Ye,deps:null,nodes:null,f:e|rt|_t,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{Fn(s),s.f|=Tr}catch(u){throw Qe(s),u}else t!==null&&sn(s);var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&mn)===0&&(o=o.first,(e&Mt)!==0&&(e&Gt)!==0&&o!==null&&(o.f|=Gt)),o!==null&&(o.parent=i,i!==null&&da(o,i),ve!==null&&(ve.f&Ue)!==0&&(e&en)===0)){var l=ve;(l.effects??=[]).push(o)}return s}function Mn(){return ve!==null&&!xt}function Mr(e){const t=wt(Jn,null,!1);return qe(t,Ve),t.teardown=e,t}function Ge(e){Ji();var t=Te.f,r=!ve&&(t&At)!==0&&(t&Tr)===0;if(r){var i=Ye;(i.e??=[]).push(e)}else return Qi(e)}function Qi(e){return wt(Er|xi,e,!1)}function on(e){return Ji(),wt(Jn|xi,e,!0)}function ca(e){Et.ensure();const t=wt(en|mn,e,!0);return(r={})=>new Promise(i=>{r.outro?an(t,()=>{Qe(t),i(void 0)}):(Qe(t),i(void 0))})}function Ar(e){return wt(Er,e,!1)}function ha(e){return wt(Sr|mn,e,!0)}function ji(e,t=0){return wt(Jn|t,e,!0)}function oe(e,t=[],r=[],i=[]){ra(i,t,r,s=>{wt(Jn,()=>e(...s.map(n)),!0)})}function An(e,t=0){var r=wt(Mt|t,e,!0);return r}function va(e,t=0){var r=wt(Di|t,e,!0);return r}function st(e){return wt(At|mn,e,!0)}function $i(e){var t=e.teardown;if(t!==null){const r=un,i=ve;ss(!0),tt(null);try{t.call(null)}finally{ss(r),tt(i)}}}function es(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Pr(()=>{s.abort(pn)});var i=r.next;(r.f&en)!==0?r.parent=null:Qe(r,t),r=i}}function ga(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&At)===0&&Qe(t),t=r}}function Qe(e,t=!0){var r=!1;(t||(e.f&Ti)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ma(e.nodes.start,e.nodes.end),r=!0),es(e,t&&!r),ir(e,0),qe(e,Ot);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();$i(e);var s=e.parent;s!==null&&s.first!==null&&ts(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function ma(e,t){for(;e!==null;){var r=e===t?null:Pn(e);e.remove(),e=r}}function ts(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 an(e,t,r=!0){var i=[];ns(e,i,!0);var s=()=>{r&&Qe(e),t&&t()},o=i.length;if(o>0){var l=()=>--o||s();for(var u of i)u.out(l)}else s()}function ns(e,t,r){if((e.f&it)===0){e.f^=it;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&Gt)!==0||(s.f&At)!==0&&(e.f&Mt)!==0;ns(s,t,l?r:!1),s=o}}}function Or(e){rs(e,!0)}function rs(e,t){if((e.f&it)!==0){e.f^=it,(e.f&Ve)===0&&(qe(e,rt),sn(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Gt)!==0||(r.f&At)!==0;rs(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 is(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:Pn(r);t.append(r),r=s}}let ln=!1;function rr(e){ln=e}let un=!1;function ss(e){un=e}let ve=null,xt=!1;function tt(e){ve=e}let Te=null;function St(e){Te=e}let Ut=null;function os(e){ve!==null&&(Ut===null?Ut=[e]:Ut.push(e))}let je=null,ot=0,ht=null;function pa(e){ht=e}let as=1,On=0,Wt=On;function ls(e){Wt=e}function us(){return++as}function Nn(e){var t=e.f;if((t&rt)!==0)return!0;if(t&Ue&&(e.f&=~tn),(t&Dt)!==0){var r=e.deps;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s];if(Nn(o)&&Vi(o),o.wv>e.wv)return!0}(t&_t)!==0&&dt===null&&qe(e,Ve)}return!1}function fs(e,t,r=!0){var i=e.reactions;if(i!==null&&!Ut?.includes(e))for(var s=0;s<i.length;s++){var o=i[s];(o.f&Ue)!==0?fs(o,t,!1):t===o&&(r?qe(o,rt):(o.f&Ve)!==0&&qe(o,Dt),sn(o))}}function ds(e){var t=je,r=ot,i=ht,s=ve,o=Ut,l=Ye,u=xt,f=Wt,d=e.f;je=null,ot=0,ht=null,ve=(d&(At|en))===0?e:null,Ut=null,_n(e.ctx),xt=!1,Wt=++On,e.ac!==null&&(Pr(()=>{e.ac.abort(pn)}),e.ac=null);try{e.f|=xr;var h=e.fn,g=h(),c=e.deps;if(je!==null){var v;if(ir(e,ot),c!==null&&ot>0)for(c.length=ot+je.length,v=0;v<je.length;v++)c[ot+v]=je[v];else e.deps=c=je;if(Mn()&&(e.f&_t)!==0)for(v=ot;v<c.length;v++)(c[v].reactions??=[]).push(e)}else c!==null&&ot<c.length&&(ir(e,ot),c.length=ot);if(Pi()&&ht!==null&&!xt&&c!==null&&(e.f&(Ue|Dt|rt))===0)for(v=0;v<ht.length;v++)fs(ht[v],e);return s!==null&&s!==e&&(On++,ht!==null&&(i===null?i=ht:i.push(...ht))),(e.f&qt)!==0&&(e.f^=qt),g}catch(p){return Oi(p)}finally{e.f^=xr,je=t,ot=r,ht=i,ve=s,Ut=o,_n(l),xt=u,Wt=f}}function _a(e,t){let r=t.reactions;if(r!==null){var i=po.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}r===null&&(t.f&Ue)!==0&&(je===null||!je.includes(t))&&(qe(t,Dt),(t.f&_t)!==0&&(t.f^=_t,t.f&=~tn),zi(t),ir(t,0))}function ir(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)_a(e,r[i])}function Fn(e){var t=e.f;if((t&Ot)===0){qe(e,Ve);var r=Te,i=ln;Te=e,ln=!0;try{(t&(Mt|Di))!==0?ga(e):es(e),$i(e);var s=ds(e);e.teardown=typeof s=="function"?s:null,e.wv=as;var o}finally{ln=i,Te=r}}}async function Hn(){await Promise.resolve(),Qo()}function n(e){var t=e.f,r=(t&Ue)!==0;if(ve!==null&&!xt){var i=Te!==null&&(Te.f&Ot)!==0;if(!i&&!Ut?.includes(e)){var s=ve.deps;if((ve.f&xr)!==0)e.rv<On&&(e.rv=On,je===null&&s!==null&&s[ot]===e?ot++:je===null?je=[e]:je.includes(e)||je.push(e));else{(ve.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[ve]:o.includes(ve)||o.push(ve)}}}if(un){if(Xt.has(e))return Xt.get(e);if(r){var l=e,u=l.v;return((l.f&Ve)===0&&l.reactions!==null||hs(l))&&(u=Ir(l)),Xt.set(l,u),u}}else r&&(!dt?.has(e)||Le?.is_fork&&!Mn())&&(l=e,Nn(l)&&Vi(l),ln&&Mn()&&(l.f&_t)===0&&cs(l));if(dt?.has(e))return dt.get(e);if((e.f&qt)!==0)throw e.v;return e.v}function cs(e){if(e.deps!==null){e.f^=_t;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Ue)!==0&&(t.f&_t)===0&&cs(t)}}function hs(e){if(e.v===Be)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Xt.has(t)||(t.f&Ue)!==0&&hs(t))return!0;return!1}function ee(e){var t=xt;try{return xt=!0,e()}finally{xt=t}}const ya=-7169;function qe(e,t){e.f=e.f&ya|t}const wa=["touchstart","touchmove"];function ba(e){return wa.includes(e)}const vs=new Set,Nr=new Set;function ka(e,t,r,i={}){function s(o){if(i.capture||Un.call(t,o),!o.cancelBubble)return Pr(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?rn(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function at(e,t,r,i,s){var o={capture:i,passive:s},l=ka(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Mr(()=>{t.removeEventListener(e,l,o)})}function Zt(e){for(var t=0;t<e.length;t++)vs.add(e[t]);for(var r of Nr)r(e)}let gs=null;function Un(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;gs=e;var l=0,u=gs===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){wi(e,"currentTarget",{configurable:!0,get(){return o||r}});var h=ve,g=Te;tt(null),St(null);try{for(var c,v=[];o!==null;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var _=o["__"+i];_!=null&&(!o.disabled||e.target===o)&&_.call(o,e)}catch(m){c?v.push(m):c=m}if(e.cancelBubble||p===t||p===null)break;o=p}if(c){for(let m of v)queueMicrotask(()=>{throw m});throw c}}finally{e.__root=t,delete e.currentTarget,tt(h),St(g)}}}function Ca(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function sr(e,t){var r=Te;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function te(e,t){var r=(t&Yo)!==0,i=(t&Go)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=Ca(o?e:"<!>"+e),r||(s=nr(s)));var l=i||qi?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=nr(l),f=l.lastChild;sr(u,f)}else sr(l,l);return l}}function ms(e=""){{var t=Ht(e+"");return sr(t,t),t}}function ge(){var e=document.createDocumentFragment(),t=document.createComment(""),r=Ht();return e.append(t,r),sr(t,r),e}function x(e,t){e!==null&&e.before(t)}function ps(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Da(e,t){return Ea(e,t)}const bn=new Map;function Ea(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0}){la();var u=new Set,f=g=>{for(var c=0;c<g.length;c++){var v=g[c];if(!u.has(v)){u.add(v);var p=ba(v);t.addEventListener(v,Un,{passive:p});var _=bn.get(v);_===void 0?(document.addEventListener(v,Un,{passive:p}),bn.set(v,1)):bn.set(v,_+1)}}};f(Zn(vs)),Nr.add(f);var d=void 0,h=ca(()=>{var g=r??t.appendChild(Ht());return ta(g,{pending:()=>{}},c=>{if(o){ke({});var v=Ye;v.c=o}s&&(i.$$events=s),d=e(c,i)||{},o&&Ce()}),()=>{for(var c of u){t.removeEventListener(c,Un);var v=bn.get(c);--v===0?(document.removeEventListener(c,Un),bn.delete(c)):bn.set(c,v)}Nr.delete(f),g!==r&&g.parentNode?.removeChild(g)}});return Fr.set(d,h),d}let Fr=new WeakMap;function Ta(e,t){const r=Fr.get(e);return r?(Fr.delete(e),r(t)):Promise.resolve()}class Hr{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#s=!0;constructor(t,r=!0){this.anchor=t,this.#s=r}#i=()=>{var t=Le;if(this.#e.has(t)){var r=this.#e.get(t),i=this.#t.get(r);if(i)Or(i),this.#r.delete(r);else{var s=this.#n.get(r);s&&(this.#t.set(r,s.effect),this.#n.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.#n.get(l);u&&(Qe(u.effect),this.#n.delete(l))}for(const[o,l]of this.#t){if(o===r||this.#r.has(o))continue;const u=()=>{if(Array.from(this.#e.values()).includes(o)){var d=document.createDocumentFragment();is(l,d),d.append(Ht()),this.#n.set(o,{effect:l,fragment:d})}else Qe(l);this.#r.delete(o),this.#t.delete(o)};this.#s||!i?(this.#r.add(o),an(l,u,!1)):u()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[i,s]of this.#n)r.includes(i)||(Qe(s.effect),this.#n.delete(i))};ensure(t,r){var i=Le,s=Zi();if(r&&!this.#t.has(t)&&!this.#n.has(t))if(s){var o=document.createDocumentFragment(),l=Ht();o.append(l),this.#n.set(t,{effect:st(()=>r(l)),fragment:o})}else this.#t.set(t,st(()=>r(this.anchor)));if(this.#e.set(i,t),s){for(const[u,f]of this.#t)u===t?i.skipped_effects.delete(f):i.skipped_effects.add(f);for(const[u,f]of this.#n)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 ye(e,t,r=!1){var i=new Hr(e),s=r?Gt:0;function o(l,u){i.ensure(l,u)}An(()=>{var l=!1;t((u,f=!0)=>{l=!0,o(f,u)}),l||o(!1,null)},s)}function ae(e,t){return t}function xa(e,t,r){for(var i=[],s=t.length,o,l=t.length,u=0;u<s;u++){let g=t[u];an(g,()=>{if(o){if(o.pending.delete(g),o.done.add(g),o.pending.size===0){var c=e.outrogroups;Ur(Zn(o.done)),c.delete(o),c.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var f=i.length===0&&r!==null;if(f){var d=r,h=d.parentNode;ua(h),h.append(d),e.items.clear()}Ur(t,!f)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Ur(e,t=!0){for(var r=0;r<e.length;r++)Qe(e[r],t)}var _s;function se(e,t,r,i,s,o=null){var l=e,u=new Map,f=(t&Ri)!==0;if(f){var d=e;l=d.appendChild(Ht())}var h=null,g=Wi(()=>{var y=r();return yi(y)?y:y==null?[]:Zn(y)}),c,v=!0;function p(){m.fallback=h,Sa(m,c,l,t,i),h!==null&&(c.length===0?(h.f&Nt)===0?Or(h):(h.f^=Nt,Wn(h,null,l)):an(h,()=>{h=null}))}var _=An(()=>{c=n(g);for(var y=c.length,E=new Set,S=Le,C=Zi(),k=0;k<y;k+=1){var w=c[k],D=i(w,k),I=v?null:u.get(D);I?(I.v&&wn(I.v,w),I.i&&wn(I.i,k),C&&S.skipped_effects.delete(I.e)):(I=Ra(u,v?l:_s??=Ht(),w,D,k,s,t,r),v||(I.e.f|=Nt),u.set(D,I)),E.add(D)}if(y===0&&o&&!h&&(v?h=st(()=>o(l)):(h=st(()=>o(_s??=Ht())),h.f|=Nt)),!v)if(C){for(const[H,R]of u)E.has(H)||S.skipped_effects.add(R.e);S.oncommit(p),S.ondiscard(()=>{})}else p();n(g)}),m={effect:_,items:u,outrogroups:null,fallback:h};v=!1}function Sa(e,t,r,i,s){var o=(i&Ho)!==0,l=t.length,u=e.items,f=e.effect.first,d,h=null,g,c=[],v=[],p,_,m,y;if(o)for(y=0;y<l;y+=1)p=t[y],_=s(p,y),m=u.get(_).e,(m.f&Nt)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(y=0;y<l;y+=1){if(p=t[y],_=s(p,y),m=u.get(_).e,e.outrogroups!==null)for(const R of e.outrogroups)R.pending.delete(m),R.done.delete(m);if((m.f&Nt)!==0)if(m.f^=Nt,m===f)Wn(m,null,r);else{var E=h?h.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),Jt(e,h,m),Jt(e,m,E),Wn(m,E,r),h=m,c=[],v=[],f=h.next;continue}if((m.f&it)!==0&&(Or(m),o&&(m.nodes?.a?.unfix(),(g??=new Set).delete(m))),m!==f){if(d!==void 0&&d.has(m)){if(c.length<v.length){var S=v[0],C;h=S.prev;var k=c[0],w=c[c.length-1];for(C=0;C<c.length;C+=1)Wn(c[C],S,r);for(C=0;C<v.length;C+=1)d.delete(v[C]);Jt(e,k.prev,w.next),Jt(e,h,k),Jt(e,w,S),f=S,h=w,y-=1,c=[],v=[]}else d.delete(m),Wn(m,f,r),Jt(e,m.prev,m.next),Jt(e,m,h===null?e.effect.first:h.next),Jt(e,h,m),h=m;continue}for(c=[],v=[];f!==null&&f!==m;)(d??=new Set).add(f),v.push(f),f=f.next;if(f===null)continue}(m.f&Nt)===0&&c.push(m),h=m,f=m.next}if(e.outrogroups!==null){for(const R of e.outrogroups)R.pending.size===0&&(Ur(Zn(R.done)),e.outrogroups?.delete(R));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||d!==void 0){var D=[];if(d!==void 0)for(m of d)(m.f&it)===0&&D.push(m);for(;f!==null;)(f.f&it)===0&&f!==e.fallback&&D.push(f),f=f.next;var I=D.length;if(I>0){var H=(i&Ri)!==0&&l===0?r:null;if(o){for(y=0;y<I;y+=1)D[y].nodes?.a?.measure();for(y=0;y<I;y+=1)D[y].nodes?.a?.fix()}xa(e,D,H)}}o&&rn(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function Ra(e,t,r,i,s,o,l,u){var f=(l&No)!==0?(l&Uo)===0?Yi(r,!1,!1):Kt(r):null,d=(l&Fo)!==0?Kt(s):null;return{v:f,i:d,e:st(()=>(o(t,f??r,d??s,u),()=>{e.delete(i)}))}}function Wn(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&Nt)===0?t.nodes.start:r;i!==null;){var l=Pn(i);if(o.before(i),i===s)return;i=l}}function Jt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function zt(e,t,...r){var i=new Hr(e);An(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Gt)}function Wr(e,t,r){var i=new Hr(e);An(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Gt)}function Me(e,t){var r=void 0,i;va(()=>{r!==(r=t())&&(i&&(Qe(i),i=null),r&&(i=st(()=>{Ar(()=>r(e))})))})}function ys(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=ys(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Ia(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=ys(e))&&(i&&(i+=" "),i+=t);return i}function Rt(e){return typeof e=="object"?Ia(e):e??""}function La(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function ws(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 zr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Pa(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(zr)),s&&f.push(...Object.keys(s).map(zr));var d=0,h=-1;const _=e.length;for(var g=0;g<_;g++){var c=e[g];if(u?c==="/"&&e[g-1]==="*"&&(u=!1):o?o===c&&(o=!1):c==="/"&&e[g+1]==="*"?u=!0:c==='"'||c==="'"?o=c:c==="("?l++:c===")"&&l--,!u&&o===!1&&l===0){if(c===":"&&h===-1)h=g;else if(c===";"||g===_-1){if(h!==-1){var v=zr(e.substring(d,h).trim());if(!f.includes(v)){c!==";"&&g++;var p=e.substring(d,g).trim();r+=" "+p+";"}}d=g+1,h=-1}}}}return i&&(r+=ws(i)),s&&(r+=ws(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function A(e,t,r,i,s,o){var l=e.__className;if(l!==r||l===void 0){var u=La(r);u==null?e.removeAttribute("class"):e.className=u,e.__className=r}return o}function Vr(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 bt(e,t,r,i){var s=e.__style;if(s!==t){var o=Pa(t,i);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else i&&(Array.isArray(i)?(Vr(e,r?.[0],i[0]),Vr(e,r?.[1],i[1],"important")):Vr(e,r,i));return i}const Ma=Symbol("is custom element"),Aa=Symbol("is html");function Pe(e,t,r,i){var s=Oa(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[Do]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Na(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Oa(e){return e.__attributes??={[Ma]:e.nodeName.includes("-"),[Aa]:e.namespaceURI===qo}}var bs=new Map;function Na(e){var t=e.getAttribute("is")||e.nodeName,r=bs.get(t);if(r)return r;bs.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=_o(s);for(var l in i)i[l].set&&r.push(l);s=bi(s)}return r}class Br{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(t){this.#n=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.#n),()=>{var s=this.#e.get(t);s.delete(r),s.size===0&&(this.#e.delete(t),this.#t.unobserve(t))}}#r(){return this.#t??(this.#t=new ResizeObserver(t=>{for(var r of t){Br.entries.set(r.target,r);for(var i of this.#e.get(r.target)||[])i(r)}}))}}var Fa=new Br({box:"border-box"});function or(e,t,r){var i=Fa.observe(e,()=>r(e[t]));Ar(()=>(ee(()=>r(e[t])),i))}function ks(e,t){return e===t||e?.[Rn]===t}function nt(e={},t,r,i){return Ar(()=>{var s,o;return ji(()=>{s=o,o=i?.()||[],ee(()=>{e!==r(...o)&&(t(e,...o),s&&ks(r(...s),e)&&t(null,...s))})}),()=>{rn(()=>{o&&ks(r(...o),e)&&t(null,...o)})}}),e}function Cs(e,t,r){if(e==null)return t(void 0),Yt;const i=ee(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}function Ha(e){let t;return Cs(e,r=>t=r)(),t}let ar=!1,Yr=Symbol();function Ua(e,t,r){const i=r[t]??={store:null,source:Yi(void 0),unsubscribe:Yt};if(i.store!==e&&!(Yr in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=Yt;else{var s=!0;i.unsubscribe=Cs(e,o=>{s?i.source.v=o:b(i.source,o)}),s=!1}return e&&Yr in r?Ha(e):n(i.source)}function Wa(){const e={};function t(){Mr(()=>{for(var r in e)e[r].unsubscribe();wi(e,Yr,{enumerable:!1,value:!0})})}return[e,t]}function za(e){var t=ar;try{return ar=!1,[e(),ar]}finally{ar=t}}function Ee(e,t,r,i){var s=(r&Vo)!==0,o=(r&Bo)!==0,l=i,u=!0,f=()=>(u&&(u=!1,l=o?ee(i):i),l),d;if(s){var h=Rn in e||Co in e;d=gn(e,t)?.set??(h&&t in e?E=>e[t]=E:void 0)}var g,c=!1;s?[g,c]=za(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=f(),d&&(Lo(),d(g)));var v;if(v=()=>{var E=e[t];return E===void 0?f():(u=!0,E)},(r&zo)===0)return v;if(d){var p=e.$$legacy;return(function(E,S){return arguments.length>0?((!S||p||c)&&d(S?v():E),E):v()})}var _=!1,m=((r&Wo)!==0?tr:Wi)(()=>(_=!1,v()));s&&n(m);var y=Te;return(function(E,S){if(arguments.length>0){const C=S?n(m):s?Je(E):E;return b(m,C),_=!0,l!==void 0&&(l=C),E}return un&&_||(y.f&Ot)!==0?m.v:n(m)})}function Va(){return ve===null&&Io(),(ve.ac??=new AbortController).signal}function zn(e){Ye===null&&Si(),Ge(()=>{const t=ee(e);if(typeof t=="function")return t})}const Ba="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Ba);function Gr(e,t=void 0){return function(r){return r.key==="Enter"||r.key===" "&&!r.preventDefault()?e.call(t,r):void 0}}function Xe(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function Ya(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 qr(e){return t=>{let r=new ResizeObserver(i=>{for(let s of i)e(t,s)});return r.observe(t),()=>{r.unobserve(t)}}}function Ds(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)}}}const lr=86400;function It(e=void 0){return e!==void 0?e instanceof Date?Rs(e):Xa(e):Rs(new Date)}function Ne(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 e instanceof Date&&(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 q(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;)kn(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function ur(e,t,r=1){return xe(e,t,-r)}function kt(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function kn(e,t=1){return kt(e,-t)}function Ct(e){return e.setUTCHours(0,0,0,0),e}function Fe(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function lt(e,t=19){return e.toISOString().substring(0,t)}function $e(e,...t){return t.every(r=>e.getTime()===r.getTime())}function Ga(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Es(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function Ts(e){return typeof e=="string"&&e.length<=10}function Xr(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function we(e){return e.seconds}function xs(e,t){return xe(e,t),e}function Ss(e,t,r){if(ur(e,t),r.length&&r.length<7)for(;r.includes(e.getUTCDay());)kn(e);return e}function qa(e,t){e=q(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/lr+1)/7)}function Rs(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function Xa(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)))}function _e(...e){return Object.assign(...e)}function fn(e){return Object.keys(e)}function Is(e){return Object.entries(e)}function Kr(e){return Math.floor(e)}function Ka(e){return Math.ceil(e)}function Lt(...e){return Math.min(...e)}function ut(...e){return Math.max(...e)}function Za(){return Symbol("ec")}function Ls(e){return Array.isArray(e)}function De(e){return typeof e=="function"}function Ja(e){return e()}function Qa(e){e.forEach(Ja)}function ja(){}const fr=e=>e;function Zr(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function Cn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}let Jr=Za();function Ps(e,t){e[Jr]=t}function $a(e){return!!e?.[Jr]}function Vt(e){return e[Jr]}function Ms(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 Qt(e){return e.getBoundingClientRect()}function As(e,t){for(;t--;)e=e.parentElement;return e}function dn(e){return Qt(e).height}function Dn(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if($a(s))return s;if(s.shadowRoot&&!i.includes(s.shadowRoot)){let o=Dn(e,t,s.shadowRoot,i);if(o)return o}}return null}function Vn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function el(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 Ke(e){return e=_e({},e),e.currentStart=Fe(e.currentStart),e.currentEnd=Fe(e.currentEnd),e.activeStart=Fe(e.activeStart),e.activeEnd=Fe(e.activeEnd),e}let tl=1;function dr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${tl++}}`,resourceIds:Qr(t,"resourceId").map(String),allDay:t.allDay??(Ts(t.start)&&Ts(t.end)),start:It(t.start),end:It(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:Qr(t,"className"),styles:Qr(t,"style")};if(r.allDay){Ct(r.start);let i=q(r.end);Ct(r.end),(!$e(r.end,i)||$e(r.end,r.start))&&kt(r.end)}return r})}function Qr(e,t){let r=e[t+"s"]??e[t]??[];return Ls(r)?r:[r]}function nl(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 rl(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?Xr(q(e.start),e.end):e.start),u;if(r&&(u=De(r)?r({event:We(e.event),timeText:l,view:Ke(o)}):r),u===void 0){let f;switch(e.event.display){case"background":f=[];break;case"pointer":f=e.event.allDay?[]:[Os(l,e,i)];break;default:f=[...e.event.allDay?[]:[Os(l,e,i)],Ms("h4",i.eventTitle,e.event.title)]}u={domNodes:f}}return[l,u]}function Os(e,t,r){return Ms("time",r.eventTime,e,[["datetime",lt(t.start)]])}function il(e,t,r){let i=t.classNames;return e&&(De(e)&&(e=e({event:We(t),view:Ke(r)})),i=[...Ls(e)?e:[e],...i]),i}function We(e){return Ns(e,Fe)}function jr(e){return Ns(e,q)}function Ns(e,t){return e=_e({},e),e.start=t(e.start),e.end=t(e.end),e}function $r(e,t){e.length=t.length;for(let r of e)r?.reposition()}function Bn(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function cr(e){return sl(e)||ol(e)||al(e)}function vt(e){return e==="background"}function sl(e){return e==="preview"}function ol(e){return e==="ghost"}function al(e){return e==="pointer"}function Yn(e,t,r){let i={start:e.start>t?e.start:t,end:e.end<r?e.end:r,event:e};return i.zeroDuration=$e(i.start,i.end),i}function En(e,t){let r=[],i,s,o;for(let{gridColumn:l,gridRow:u,resource:f,dayStart:d,dayEnd:h,disabled:g}of t)!g&&Bn(e,d,h,f)&&(r.push(d),i=h,s||(s=l,o=u));if(r.length){let l=Yn(e,r[0],i);return _e(l,{gridColumn:s,gridRow:o,dates:r}),[l]}return[]}function Fs(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 Hs(e,t,r=0){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 _e(e,{top:r,bottom:i}),r}function cn(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return ee(()=>{s=De(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(Fe(o))}}}function Us(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return ee(()=>{if(De(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="",h=["startRange","endRange"],g=[!1,!1];for(let c of f){let v=h.indexOf(c.source);v>=0?g[v]||(d+=ll(h[1-v],f),g[v]=!0):d+=c.value}return d}}}}),{formatRange:(o,l)=>s(Fe(o),Fe(l))}}}function ll(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function hr(e){return gr(e,"day")}function vr(e){return gr(e,"week")}function ei(e){return gr(e,"month")}function ul(e){return gr(e,"year")}function gr(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function gt(e){return t=>({...t,view:e})}function fl(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=Ct(It(t))),r&&(r=Ct(It(r)))),{start:t,end:r}}function Tn(e,t){return t.start&&e<t.start||t.end&&e>t.end}function Ws(e){let t=[];return zs(e,0,t),t}function zs(e,t,r){let i=[];for(let s of e){let o=dl(s);i.push(o),r.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};Ps(o,l),s.children&&(l.children=zs(s.children,t+1,r))}return i}function dl(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:e.eventBackgroundColor,eventTextColor:e.eventTextColor,extendedProps:e.extendedProps??{}}}function cl(e,t){return Vs(e,t)?.eventBackgroundColor}function hl(e,t){return Vs(e,t)?.eventTextColor}function Vs(e,t){return t.find(r=>e.resourceIds.includes(r.id))}function Bs(e,t,r,i,s){let o=[];e=q(e);let l=q(e);for(xe(e,i.min),xe(l,i.max);e<l;)o.push([lt(e),s.format(e)]),xe(e,t,r);let u=Kr((e-l)/1e3/we(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function Ys(e,t,r,i,s){let o=Ne(e),l=Ne(t);if(r){let u=Ne(Lt(we(o),ut(0,we(l)-lr))),f=Ne(ut(we(l),we(u)+lr)),d=De(r?.eventFilter)?r.eventFilter:h=>!vt(h.display);e:for(let h of i){let g=xe(q(h),o),c=xe(q(h),l),v=xe(q(h),u),p=xe(q(h),f);for(let _ of s)if(!_.allDay&&d(_)&&_.start<p&&_.end>v){if(_.start<g){let m=ut((_.start-h)/1e3,we(u));m<we(o)&&(o.seconds=m)}if(_.end>c){let m=Lt((_.end-h)/1e3,we(f));m>we(l)&&(l.seconds=m)}if(we(o)===we(u)&&we(l)===we(f))break e}}}return{min:o,max:l}}class ti extends Map{#e=new Map;#t=K(0);#n=K(0);#r=Wt||-1;constructor(t){if(super(),t){for(var[r,i]of t)super.set(r,i);this.#n.v=super.size}}#s(t){return Wt===this.#r?K(t):Kt(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.#t),!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.#t);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.#t;if(s===void 0)s=this.#s(0),i.set(t,s),b(this.#n,super.size),Tt(u);else if(o!==r){Tt(s);var f=u.reactions===null?null:new Set(u.reactions),d=f===null||!s.reactions?.every(h=>f.has(h));d&&Tt(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.#n,super.size),b(i,-1),Tt(this.#t)),s}clear(){if(super.size!==0){super.clear();var t=this.#e;b(this.#n,0);for(var r of t.values())b(r,-1);Tt(this.#t),t.clear()}}#i(){n(this.#t);var t=this.#e;if(this.#n.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.#t),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return n(this.#n),super.size}}function vl(e){let t={buttonText:{today:"today"},customButtons:{},date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,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",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 gl(e){let t={date:r=>Ct(It(r)),duration:Ne,events:dr,eventSources:nl,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>Ct(It(i))),resources:Ws,validRange:fl};for(let r of e)r.createParsers?.(t);return t}const Gs=["buttonText","customButtons","theme"];function ml(e,t,r){let i=vl(t),s=gl(t);i=ni(i,s),r=ni(r,s);let o=ri(i,"views")??{},l=ri(r,"views")??{},u=new ti;Xs(u,i);let f={},d={};function h(){r.view&&u.set("view",r.view);let g=new Set([...fn(o),...fn(l)]);for(let c of g){let v=qs(i,o[c]??{}),p=qs(v,r,l[c]??{}),_=ri(p,"component");delete p.view;for(let m of fn(p))u.has(m)?(f[m]||(f[m]=[]),f[m].push(Gs.includes(m)?y=>p[m]=De(y)?y(v[m]):y:y=>p[m]=y)):delete p[m];on(()=>{let m=u.get("view");ee(()=>{m===c&&(e.setViewComponent(_),d=p,Xs(u,p))})})}}return{proxy:new Proxy(u,{set(g,c,v){return d[c]=v,g.set(c,v),!0},get(g,c){return g.get(c)}}),setOption(g,c,v){u.has(g)&&(!v&&g in s&&(c=s[g](c)),f[g]?.forEach(p=>p(c)),u.set(g,d[g]??c))},initEffects:h}}function ni(e,t){let r={...e};for(let i of fn(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of fn(e.views))r.views[i]=ni(e.views[i],t)}return r}function ri(e,t){let r=e[t];return delete e[t],r}function qs(...e){let t={};for(let r of e){let i={};for(let s of Gs)De(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function Xs(e,t){for(let[r,i]of Is(t))e.set(r,i)}function pl(e,t){let r=[];for(let i of fn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function _l(e){let t=0;return()=>{let{activeRange:r,fetchedRange:i,options:{events:s,eventSources:o,lazyFetching:l,loading:u}}=e;ee(()=>{if(o.length||(e.events=s),!i.start||i.start>r.start||i.end<r.end||!l){De(u)&&!t&&u(!0);let f=()=>{--t===0&&De(u)&&u(!1)},d=[],h=p=>f(),g=p=>{d=d.concat(dr(p)),e.events=d,f()},c=lt(r.start),v=lt(r.end);for(let p of o){if(De(p.events)){let _=p.events({start:Fe(r.start),end:Fe(r.end),startStr:c,endStr:v},g,h);_!==void 0&&Promise.resolve(_).then(g,h)}else{let _=De(p.extraParams)?p.extraParams():_e({},p.extraParams);_.start=c,_.end=v,_=new URLSearchParams(_);let m=p.url,y={},E;["GET","HEAD"].includes(p.method)?m+=(m.includes("?")?"&":"?")+_:(y["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",E=String(_)),fetch(m,{method:p.method,headers:y,body:E,signal:Va(),credentials:"same-origin"}).then(S=>S.json()).then(g).catch(h)}++t}e.fetchedRange=r}})}}function yl(e){return()=>{let t=setInterval(()=>{let r=It(),i=Ct(q(r));e.now=r,$e(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function wl(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;ee(()=>{De(r)&&r({start:Fe(t.start),end:Fe(t.end),startStr:lt(t.start),endStr:lt(t.end),view:Ke(e.view)})})}}function bl(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;ee(()=>{De(i)&&(t||(t=setTimeout(()=>{t=null,i({view:Ke(e.view)})})))})}}function kl(e){return()=>{let{viewComponent:t,options:{viewDidMount:r}}=e;ee(()=>{De(r)&&Hn().then(()=>r({view:Ke(e.view)}))})}}function Cl(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return ee(()=>{s=q(t),r.months?s.setUTCDate(1):r.inWeeks&&Es(s,i),o=xe(q(s),r)}),{start:s,end:o}}}function Dl(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return ee(()=>{i=q(t.start),s=q(t.end)}),r?r(i,s):{start:i,end:s}}}function El(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o}}=e,l=[...t];return ee(()=>{if(De(r)){let u=t.map(We),f=Ke(e.view);l=l.filter((d,h)=>r({event:We(d),index:h,events:u,view:f}))}s&&(l=l.filter(u=>o.some(f=>u.resourceIds.includes(f.id)))),De(i)?l.sort((u,f)=>i(We(u),We(f))):l.sort((u,f)=>u.start-f.start||f.allDay-u.allDay)}),l}}function Tl(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return ee(()=>{let o=Ct(q(r.start)),l=Ct(q(r.end));for(;o<l;)i.includes(o.getUTCDay())||s.push(q(o)),kt(o);if(!s.length&&i.length&&i.length<7)for(;i.includes(t.date.getUTCDay());)e.setOption("date",kt(q(t.date)))}),s}}function xl(e){return()=>{let{activeRange:t,intlTitle:r,features:i,options:{date:s}}=e,o;return ee(()=>{o=i.includes("day-grid")?r.formatRange(s,s):r.formatRange(t.start,kn(q(t.end)))}),o}}function Sl(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return ee(()=>{o=el(s,i,r,t)}),o}}class Rl{#e;get auxComponents(){return n(this.#e)}set auxComponents(t){b(this.#e,t,!0)}#t;get currentRange(){return n(this.#t)}set currentRange(t){b(this.#t,t)}#n;get activeRange(){return n(this.#n)}set activeRange(t){b(this.#n,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 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)}#f;get intlDayHeader(){return n(this.#f)}set intlDayHeader(t){b(this.#f,t)}#d;get intlDayHeaderAL(){return n(this.#d)}set intlDayHeaderAL(t){b(this.#d,t)}#c;get intlTitle(){return n(this.#c)}set intlTitle(t){b(this.#c,t)}#v;get viewDates(){return n(this.#v)}set viewDates(t){b(this.#v,t)}#h;get viewTitle(){return n(this.#h)}set viewTitle(t){b(this.#h,t)}#y;get view(){return n(this.#y)}set view(t){b(this.#y,t)}#w;get viewComponent(){return n(this.#w)}set viewComponent(t){b(this.#w,t,!0)}#b;get extensions(){return n(this.#b)}set extensions(t){b(this.#b,t,!0)}#p;get features(){return n(this.#p)}set features(t){b(this.#p,t,!0)}#g;get interaction(){return n(this.#g)}set interaction(t){b(this.#g,t,!0)}#m;get iClasses(){return n(this.#m)}set iClasses(t){b(this.#m,t,!0)}#_;get iClass(){return n(this.#_)}set iClass(t){b(this.#_,t,!0)}#k;constructor(t,r){let{proxy:i,setOption:s,initEffects:o}=ml(this,t,r);this.options=i,this.#k=s,this.#e=K(Je([])),this.#t=a(Cl(this)),this.#n=a(Dl(this)),this.#r=K(Je({start:void 0,end:void 0})),this.#s=K([]),this.#i=a(El(this)),this.#o=K(),this.#a=K(Je(It())),this.#l=K(Je(Ct(It()))),this.#u=a(Us(this,"eventTimeFormat")),this.#f=a(cn(this,"dayHeaderFormat")),this.#d=a(cn(this,"dayHeaderAriaLabelFormat")),this.#c=a(Us(this,"titleFormat")),this.#v=a(Tl(this)),this.#h=a(xl(this)),this.#y=a(Sl(this)),this.#w=K(),this.#b=K(Je({})),this.#p=K(Je([])),this.#g=K(Je({})),this.iEvents=new ti,this.#m=K(Je(fr)),this.#_=K();for(let l of t)l.initState?.(this);o(),this.#C()}#C(){on(yl(this)),Ge(_l(this)),Ge(wl(this)),Ge(bl(this)),Ge(kl(this))}setViewComponent(t){this.extensions={},this.features=[],this.viewComponent=t(this)}setOption(t,r,i=!0){this.#k(t,r,i)}}var Il=te("<h2></h2>"),Ll=te("<button><i></i></button>"),Pl=te("<button><i></i></button>"),Ml=te("<button> </button>"),Al=te("<button></button>"),Ol=te("<button> </button>");function Ks(e,t){ke(t,!0);let r=ne("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),h=a(()=>r.options.duration),g=a(()=>r.options.hiddenDays),c=a(()=>r.options.theme),v=a(()=>r.options.validRange),p=a(()=>r.options.view),_=K(!1),m=K(!1),y=K(!1),E=!1;on(()=>{n(l),n(v),t.buttons,ee(()=>{E||(E=!0,t.buttons.includes("prev")&&(b(_,!1),n(v).start&&b(_,S(C),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,S(k),!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)),Hn().then(()=>E=!1))})});function S(H){let R=n(d);H();let fe=n(l).every(V=>Tn(V,n(v)));return r.setOption("date",R),fe}function C(){r.setOption("date",Ss(q(n(d)),n(h),n(g)))}function k(){r.setOption("date",xs(q(n(d)),n(h)))}function w(){r.setOption("date",q(n(s)))}var D=ge(),I=$(D);se(I,17,()=>t.buttons,ae,(H,R)=>{var fe=ge(),V=$(fe);{var Z=O=>{var P=Il();Me(P,()=>Xe(n(o))),oe(()=>A(P,1,n(c).title)),x(O,P)},X=O=>{var P=ge(),J=$(P);{var he=ie=>{var N=Ll();N.__click=C;var Q=ue(N);oe(()=>{A(N,1,`${n(c).button??""} ec-${n(R)??""}`),Pe(N,"aria-label",n(u).prev),Pe(N,"title",n(u).prev),N.disabled=n(_),A(Q,1,`${n(c).icon??""} ec-${n(R)??""}`)}),x(ie,N)},U=ie=>{var N=ge(),Q=$(N);{var F=L=>{var me=Pl();me.__click=k;var mt=ue(me);oe(()=>{A(me,1,`${n(c).button??""} ec-${n(R)??""}`),Pe(me,"aria-label",n(u).next),Pe(me,"title",n(u).next),me.disabled=n(m),A(mt,1,`${n(c).icon??""} ec-${n(R)??""}`)}),x(L,me)},B=L=>{var me=ge(),mt=$(me);{var He=Y=>{var le=Ml();le.__click=w;var Ie=ue(le);oe(()=>{A(le,1,`${n(c).button??""} ec-${n(R)??""}`),le.disabled=n(y),ps(Ie,n(u)[n(R)])}),x(Y,le)},Pt=Y=>{var le=ge(),Ie=$(le);{var W=G=>{var de=Al();de.__click=function(...Se){n(f)[n(R)].click?.apply(this,Se)},Me(de,()=>Xe(n(f)[n(R)].text)),oe(()=>A(de,1,Rt([n(c).button,`ec-${n(R)}`,n(f)[n(R)].active&&n(c).active]))),x(G,de)},z=G=>{var de=ge(),Se=$(de);{var be=Re=>{var Ae=Ol();Ae.__click=()=>r.setOption("view",n(R));var ce=ue(Ae);oe(()=>{A(Ae,1,Rt([n(c).button,`ec-${n(R)}`,n(p)===n(R)&&n(c).active])),ps(ce,n(u)[n(R)])}),x(Re,Ae)};ye(Se,Re=>{n(R)!==""&&Re(be)},!0)}x(G,de)};ye(Ie,G=>{n(f)[n(R)]?G(W):G(z,!1)},!0)}x(Y,le)};ye(mt,Y=>{n(R)==="today"?Y(He):Y(Pt,!1)},!0)}x(L,me)};ye(Q,L=>{n(R)==="next"?L(F):L(B,!1)},!0)}x(ie,N)};ye(J,ie=>{n(R)==="prev"?ie(he):ie(U,!1)},!0)}x(O,P)};ye(V,O=>{n(R)==="title"?O(Z):O(X,!1)})}x(H,fe)}),x(e,D),Ce()}Zt(["click"]);var Nl=te("<div><!></div>"),Fl=te("<div></div>"),Hl=te("<nav></nav>");function Ul(e,t){ke(t,!0);let r=a(()=>ne("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=Hl();se(l,21,()=>fn(n(o)),ae,(u,f)=>{var d=Fl();se(d,21,()=>n(o)[n(f)],ae,(h,g)=>{var c=ge(),v=$(c);{var p=m=>{var y=Nl(),E=ue(y);Ks(E,{get buttons(){return n(g)}}),oe(()=>A(y,1,n(s).buttonGroup)),x(m,y)},_=m=>{Ks(m,{get buttons(){return n(g)}})};ye(v,m=>{n(g).length>1?m(p):m(_,!1)})}x(h,c)}),oe(()=>A(d,1,`ec-${n(f)??""}`)),x(u,d)}),oe(()=>A(l,1,n(s).toolbar)),x(e,l),Ce()}var Wl=te("<div><!> <!> <!></div>");function zl(e,t){ke(t,!0);let r=Ee(t,"plugins",19,()=>[]),i=Ee(t,"options",19,()=>({})),s=new Rl(r(),i());In("state",s);let o=a(()=>s.auxComponents),l=a(()=>s.features),u=a(()=>s.events),f=a(()=>s.interaction),d=a(()=>s.iClass),h=a(()=>s.view),g=a(()=>s.viewComponent),c=a(()=>s.options.date),v=a(()=>s.options.duration),p=a(()=>s.options.height),_=a(()=>s.options.hiddenDays),m=a(()=>s.options.theme),y={...i()};on(()=>{for(let[N,Q]of pl(i(),y))ee(()=>{E(N,Q)});_e(y,i())});function E(N,Q){return s.setOption(N,Q,!1),this}function S(N){let Q=s.options[N];return Q instanceof Date?Fe(Q):Q}function C(){return s.fetchedRange={start:void 0,end:void 0},this}function k(){return n(u).map(We)}function w(N){N=String(N);for(let Q of n(u))if(Q.id===N)return We(Q);return null}function D(N){return N=dr([N])[0],n(u).push(N),s.events=[...n(u)],We(N)}function I(N){let Q=String(N.id),F=n(u).findIndex(B=>B.id===Q);return F>=0?(N=dr([N])[0],n(u)[F]=N,s.events=[...n(u)],We(N)):null}function H(N){N=String(N);let Q=n(u).findIndex(F=>F.id===N);return Q>=0&&(n(u).splice(Q,1),s.events=[...n(u)]),this}function R(){return Ke(n(h))}function fe(){return n(f).action?.unselect(),this}function V(N,Q){let F=Dn(N,Q);if(F){let B=Vt(F)(N,Q);return B.date=Fe(B.date),B}return null}function Z(){return s.setOption("date",xs(q(n(c)),n(v))),this}function X(){return s.setOption("date",Ss(q(n(c)),n(v),n(_))),this}var O={setOption:E,getOption:S,refetchEvents:C,getEvents:k,getEventById:w,addEvent:D,updateEvent:I,removeEventById:H,getView:R,unselect:fe,dateFromPoint:V,next:Z,prev:X},P=Wl();let J;var he=ue(P);Ul(he,{});var U=re(he,2);Wr(U,()=>n(g),(N,Q)=>{Q(N,{})});var ie=re(U,2);return se(ie,17,()=>n(o),ae,(N,Q)=>{var F=ge(),B=$(F);Wr(B,()=>n(Q),(L,me)=>{me(L,{})}),x(N,F)}),oe(N=>{A(P,1,Rt([n(m).calendar,n(m).view,n(d)&&n(m)[n(d)]])),Pe(P,"role",N),J=bt(P,"",J,{height:n(p)})},[()=>n(l).includes("list")?"list":"table"]),x(e,P),Ce(O)}function Vl(e){return()=>{let{options:{hiddenDays:t}}=e,r;return ee(()=>r=7-t.length),r}}function Bl(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,l=[];return ee(()=>{let u=[],f=1,d=1;for(let h of s)u.push({gridColumn:f,gridRow:d,resource:void 0,dayStart:h,dayEnd:kt(q(h)),disabled:Tn(h,i),highlight:r.some(g=>$e(g,h))}),f===o&&(l.push(u),u=[],f=0,++d),++f}),l}}function Yl(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(En(l,u))):s=s.concat(En(l,u));Fs(s)}),{chunks:s,bgChunks:o}}}function Gl(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(En(o,l))});return s}}let ql=class{#e;get colsCount(){return n(this.#e)}set colsCount(t){b(this.#e,t)}#t;get grid(){return n(this.#t)}set grid(t){b(this.#t,t)}#n;get gridEl(){return n(this.#n)}set gridEl(t){b(this.#n,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(Vl(t)),this.#t=a(Bl(t,this)),this.#n=K();let r=a(Yl(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(Gl(t,this)),this.hiddenChunks=new ti,this.#o=a(cn(t,"dayCellFormat")),this.#a=a(cn(t,"dayPopoverFormat")),this.#l=K(null)}};var Xl=te("<div><!></div>");function mr(e,t){ke(t,!0);let r=Ee(t,"el",15),i=Ee(t,"allDay",3,!1),s=Ee(t,"resource",3,void 0),o=Ee(t,"dateFromPoint",3,()=>t.date),l=Ee(t,"classes",3,fr),u=Ee(t,"disabled",3,!1),f=Ee(t,"highlight",3,!1),d=Ee(t,"role",3,"cell"),h=Ee(t,"noIeb",3,!1),g=Ee(t,"noBeb",3,!1),c=a(()=>ne("state")),v=a(()=>n(c).today),p=a(()=>n(c).interaction.action),_=a(()=>n(c).options.theme),m=a(()=>ne("view-state")),y=a(()=>n(m).snap),E=a(()=>$e(t.date,n(v))),S=a(()=>l()([n(_).day,n(_).weekdays?.[t.date.getUTCDay()],n(E)&&n(_).today,f()&&n(_).highlight,u()&&n(_).disabled,h()&&n(_).noIeb,g()&&n(_).noBeb]));zn(()=>{Ps(r(),(D,I)=>({allDay:i(),date:o()(D,I),resource:s(),dayEl:r(),disabled:u()}))});let C=a(()=>!u()&&n(p)?D=>n(p).select(D,n(y)):void 0);var k=Xl();k.__pointerdown=function(...D){n(C)?.apply(this,D)};var w=ue(k);zt(w,()=>t.children??Yt),nt(k,D=>r(D),()=>r()),oe(()=>{A(k,1,Rt(n(S))),Pe(k,"role",d())}),x(e,k),Ce()}Zt(["pointerdown"]);var Kl=te("<div></div>"),Zl=te("<article><!></article>");function Zs(e,t){ke(t,!0);let r=Ee(t,"el",15),i=Ee(t,"classes",3,fr),s=Ee(t,"styles",3,fr),o=a(()=>ne("state")),l=a(()=>n(o).intlEventTime),u=a(()=>n(o).view),f=a(()=>n(o).options.displayEventEnd),d=a(()=>n(o).options.eventBackgroundColor),h=a(()=>n(o).options.eventColor),g=a(()=>n(o).options.eventContent),c=a(()=>n(o).options.eventClick),v=a(()=>n(o).options.eventDidMount),p=a(()=>n(o).options.eventClassNames),_=a(()=>n(o).options.eventMouseEnter),m=a(()=>n(o).options.eventMouseLeave),y=a(()=>n(o).options.eventTextColor),E=a(()=>n(o).options.resources),S=a(()=>n(o).options.theme),C=a(()=>t.chunk.event),k=a(()=>t.chunk.event.display),w=a(()=>n(C).backgroundColor??cl(n(C),n(E))??n(d)??n(h)),D=a(()=>n(C).textColor??hl(n(C),n(E))??n(y)),I=a(()=>Is(s()({"background-color":n(w),color:n(D)})).map(F=>`${F[0]}:${F[1]}`).concat(n(C).styles).join(";")),H=a(()=>i()([vt(n(k))?n(S).bgEvent:n(S).event,...il(n(p),n(C),n(u))])),R=a(()=>rl(t.chunk,n(f),n(g),n(S),n(l),n(u))),fe=a(()=>ko(n(R),2)),V=a(()=>n(fe)[0]),Z=a(()=>n(fe)[1]);zn(()=>{De(n(v))&&n(v)({event:We(n(C)),timeText:n(V),el:r(),view:Ke(n(u))})});function X(F,B){return De(F)&&!cr(B)?L=>F({event:We(n(C)),el:r(),jsEvent:L,view:Ke(n(u))}):void 0}let O=a(()=>!vt(n(k))&&X(n(c),n(k))||void 0),P=a(()=>n(O)&&Gr(n(O))),J=a(()=>X(n(_),n(k))),he=a(()=>X(n(m),n(k)));var U=Zl();U.__click=function(...F){n(O)?.apply(this,F)},U.__keydown=function(...F){n(P)?.apply(this,F)},U.__pointerdown=function(...F){t.onpointerdown?.apply(this,F)};{const F=B=>{var L=Kl();Me(L,()=>Xe(n(Z))),oe(()=>A(L,1,Rt(n(S).eventBody))),x(B,L)};var ie=ue(U);{var N=B=>{var L=ge(),me=$(L);zt(me,()=>t.body,()=>F,()=>n(w),()=>n(D)),x(B,L)},Q=B=>{F(B)};ye(ie,B=>{t.body?B(N):B(Q,!1)})}nt(U,B=>r(B),()=>r())}oe(()=>{A(U,1,Rt(n(H))),bt(U,n(I)),Pe(U,"role",n(O)?"button":void 0),Pe(U,"tabindex",n(O)?0:void 0)}),at("mouseenter",U,function(...F){n(J)?.apply(this,F)}),at("mouseleave",U,function(...F){n(he)?.apply(this,F)}),x(e,U),Ce()}Zt(["click","keydown","pointerdown"]);var Jl=te("<div><!></div>");function Gn(e,t){ke(t,!0);let r=Ee(t,"weekday",3,!0),i=Ee(t,"colSpan",3,1),s=Ee(t,"ariaHidden",3,!1),o=Ee(t,"disabled",3,!1),l=Ee(t,"highlight",3,!1),u=a(()=>ne("state")),f=a(()=>n(u).today),d=a(()=>n(u).options.theme);var h=Jl(),g=ue(h);zt(g,()=>t.children),oe(c=>{A(h,1,c),Pe(h,"role",s()?null:"columnheader"),Pe(h,"aria-colspan",s()||i()<=1?null:i()),Pe(h,"aria-colindex",s()?null:t.colIndex),Pe(h,"aria-hidden",s()?"true":null)},[()=>Rt([t.className??n(d).colHead,r()&&n(d).weekdays?.[t.date.getUTCDay()],r()&&$e(t.date,n(f))&&n(d).today,l()&&n(d).highlight,o()&&n(d).disabled])]),x(e,h),Ce()}var Ql=te("<time></time>");function pr(e,t){ke(t,!0);let r=Ee(t,"alPrefix",3,""),i=a(()=>ne("state")),s=a(()=>n(i).intlDayHeader),o=a(()=>n(i).intlDayHeaderAL);var l=Ql();Me(l,()=>Xe(n(s).format(t.date))),oe((u,f)=>{Pe(l,"datetime",u),Pe(l,"aria-label",`${r()??""}${f??""}`)},[()=>lt(t.date,10),()=>n(o).format(t.date)]),x(e,l),Ce()}function _r(e,t){ke(t,!0);let r=Ee(t,"el",15),i=a(()=>ne("state")),s=a(()=>n(i).iClasses),o=a(()=>n(i).interaction.action),l=a(()=>n(i).interaction.resizer),u=a(()=>ne("view-state")),f=a(()=>n(u).snap),d=a(()=>t.chunk.event),h=a(()=>t.chunk.event.display),g=a(()=>p=>n(s)(p,n(d)));function c(p){return n(o)?.draggable(p)?_=>n(o).drag(p,_,t.forceDate,t.forceMargin,n(f)):n(o)?.noAction}let v=a(()=>!vt(n(h))&&!cr(n(h))?c(n(d)):void 0);Zs(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(_){r(_)},body:(_,m=Yt)=>{var y=ge(),E=$(y);{var S=k=>{var w=ge(),D=$(w);Wr(D,()=>n(l),(I,H)=>{H(I,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(R,fe)=>{var V=ge(),Z=$(V);zt(Z,m),x(R,V)},$$slots:{default:!0}})}),x(k,w)},C=k=>{var w=ge(),D=$(w);zt(D,m),x(k,w)};ye(E,k=>{n(l)?k(S):k(C,!1)})}x(_,y)},$$slots:{body:!0}}),Ce()}var jl=te("<span></span>"),$l=te('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),eu=te("<div><time></time> <!></div> <div><!></div>",1);function tu(e,t){ke(t,!0);const r=()=>Ua(n(f),"$firstDay",i),[i,s]=Wa();let o=ne("state"),l=ne("view-state"),u=a(()=>o.options.date),f=a(()=>o.options.firstDay),d=a(()=>o.options.moreLinkContent),h=a(()=>o.options.theme),g=a(()=>o.options.weekNumbers),c=a(()=>o.options.weekNumberContent),v=a(()=>l.hiddenChunks),p=a(()=>l.intlDayCell),_=a(()=>t.day.dayStart),m=a(()=>t.day.disabled),y=a(()=>t.day.highlight),E=a(()=>n(_).getUTCMonth()!==n(u).getUTCMonth()),S=a(()=>H=>[...H,n(E)&&n(h).otherMonth]),C=a(()=>n(g)&&n(_).getUTCDay()===(n(f)?1:0)),k=a(()=>{let H;if(n(C)){let R=qa(n(_),r());n(c)?H=De(n(c))?n(c)({date:Fe(n(_)),week:R}):n(c):H="W"+String(R).padStart(2,"0")}return H}),w=a(()=>n(v).get(n(_).getTime())),D=a(()=>{let H="";if(n(w)){let R="+"+n(w).length+" more";n(d)?H=De(n(d))?n(d)({num:n(w).length,text:R}):n(d):H=R}return H});function I(){l.popupDay=t.day}mr(e,{get date(){return n(_)},allDay:!0,get classes(){return n(S)},get disabled(){return n(m)},get highlight(){return n(y)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(H,R)=>{var fe=eu(),V=$(fe),Z=ue(V);Me(Z,()=>Xe(n(p).format(n(_))));var X=re(Z,2);{var O=U=>{var ie=jl();Me(ie,()=>Xe(n(k))),oe(()=>A(ie,1,n(h).weekNumber)),x(U,ie)};ye(X,U=>{n(C)&&U(O)})}var P=re(V,2),J=ue(P);{var he=U=>{var ie=$l(),N=a(()=>Zr(I));ie.__click=function(...B){n(N)?.apply(this,B)};var Q=a(()=>Gr(I));ie.__keydown=function(...B){n(Q)?.apply(this,B)};var F=a(Zr);ie.__pointerdown=function(...B){n(F)?.apply(this,B)},Me(ie,()=>Xe(n(D))),x(U,ie)};ye(J,U=>{n(w)&&U(he)})}oe(U=>{A(V,1,n(h).dayHead),Pe(Z,"datetime",U),A(P,1,n(h).dayFoot)},[()=>lt(n(_),10)]),x(H,fe)},$$slots:{default:!0}}),Ce(),s()}Zt(["click","keydown","pointerdown"]);function yr(e,t){ke(t,!0);let r=Ee(t,"inPopup",3,!1),i=a(()=>ne("state")),s=a(()=>n(i).options.dayMaxEvents),o=a(()=>ne("view-state")),l=a(()=>n(o).colsCount),u=a(()=>n(o).gridEl),f=a(()=>n(o).hiddenChunks),d=a(()=>n(o).popupDay),h=K(void 0),g=K(0),c=K(!1),v=a(()=>t.chunk.event),p=a(()=>t.chunk.event.display),_=a(()=>n(u).children.item((t.chunk.gridRow-1)*n(l)+t.chunk.gridColumn-1));Ge(()=>{r()||b(g,dn(n(_).firstElementChild),!0)});let m=a(()=>k=>{if(k["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,k["grid-row"]=t.chunk.gridRow,!vt(n(p))){let w=r()?1:n(g);if(n(v)._margin){let[D,I]=n(v)._margin;D>w&&t.chunk.gridRow===I&&(w=D)}k["margin-block-start"]=`${w}px`}return n(c)&&(k.visibility="hidden"),k});function y(){b(g,Hs(t.chunk,dn(n(h)),dn(n(_).firstElementChild)),!0)}function E(){if(n(s)===!0){let k=dn(n(_))-S(n(_));if(b(c,t.chunk.bottom>k),n(c))for(let w of t.chunk.dates){let D=w.getTime();if(n(f).has(D)){let I=n(f).get(D);I.includes(t.chunk)||n(f).set(D,[...I,t.chunk])}else n(f).set(D,[t.chunk])}}else b(c,!1),n(f).size&&n(f).clear()}function S(k){let w=0;for(let D=0;D<t.chunk.dates.length&&(w=ut(w,dn(k.lastElementChild)),k=k.nextElementSibling,!!k);++D);return w}var C={reposition:y,hide:E};{let k=a(()=>r()&&n(d).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(k)},get forceMargin(){return n(w)},get el(){return n(h)},set el(D){b(h,D,!0)}})}return Ce(C)}var nu=te('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function ru(e,t){ke(t,!0);let r=ne("view-state"),i=a(()=>ne("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),h=a(()=>r.intlDayPopover),g=a(()=>r.popupDay),c=K(void 0),v=K(""),p=a(()=>n(g).gridColumn),_=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),y=a(()=>n(g).dayEnd),E=a(()=>{let X=[];for(let O of n(f))O.gridRow===n(_)&&O.gridColumn<=n(p)&&O.gridColumn+O.dates.length>n(p)&&X.push(_e({},O,Yn(O.event,n(m),n(y))));return X.sort((O,P)=>O.top-P.top),X});zn(()=>{n(c).show()}),Ge(()=>{n(E).length?ee(S):C()});function S(){let X=n(d).children.item((n(_)-1)*n(u)+n(p)-1),O=Qt(n(c)),P=Qt(X),J=Qt(n(d));b(v,"");let he;if(O.width>=J.width){he=J.left-P.left;let ie=P.right-J.right;b(v,n(v)+`inset-inline-end:${ie}px;`)}else he=(P.width-O.width)/2,P.left+he<J.left?he=J.left-P.left:P.left+he+O.width>J.right&&(he=J.right-P.left-O.width);b(v,n(v)+`inset-inline-start:${he}px;`);let U;if(O.height>=J.height){U=J.top-P.top;let ie=P.bottom-J.bottom;b(v,n(v)+`inset-block-end:${ie}px;`)}else U=(P.height-O.height)/2,P.top+U<J.top?U=J.top-P.top:P.top+U+O.height>J.bottom&&(U=J.bottom-P.top-O.height);b(v,n(v)+`inset-block-start:${U}px;`)}function C(){r.popupDay=null}function k(){C(),n(s).action?.noClick()}var w=nu();let D;var I=ue(w),H=ue(I);Me(H,()=>Xe(n(h).format(n(m))));var R=re(H,2);fa(R);var fe=a(()=>Zr(C));R.__click=function(...X){n(fe)?.apply(this,X)};var V=a(()=>Gr(C));R.__keydown=function(...X){n(V)?.apply(this,X)};var Z=re(I,2);se(Z,21,()=>n(E),ae,(X,O)=>{yr(X,{get chunk(){return n(O)},inPopup:!0})}),nt(w,X=>b(c,X),()=>n(c)),Me(w,()=>Ya("pointerdown")),oe(X=>{A(w,1,n(l).popup),D=bt(w,n(v),D,{"grid-area":`${n(_)+1} / ${n(p)}`}),A(I,1,n(l).dayHead),Pe(H,"datetime",X),Pe(R,"aria-label",n(o).close),A(Z,1,n(l).events)},[()=>lt(n(m),10)]),at("pointerdownoutside",w,k),at("close",w,C),x(e,w),Ce()}Zt(["click","keydown"]);var iu=te('<div role="columnheader"><span></span></div>'),su=te('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function ou(e,t){ke(t,!0);let r=ne("state"),i=new ql(r);In("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),h=a(()=>i.bgChunks),g=a(()=>i.iChunks),c=a(()=>i.hiddenChunks),v=a(()=>i.popupDay),p=[];function _(){n(c).clear(),$r(p,n(d))}Ge(_),Ge(()=>{n(d),p.forEach(V=>V.hide())});var m=su();let y;var E=ue(m),S=ue(E);se(S,21,()=>n(f)[0],ae,(V,Z,X)=>{let O=()=>n(Z).dayStart;var P=iu();Pe(P,"aria-colindex",1+X);var J=ue(P);Me(J,()=>Xe(n(s).format(O()))),oe((he,U)=>{A(P,1,he),Pe(J,"aria-label",U)},[()=>Rt([n(u).colHead,n(u).weekdays?.[O().getUTCDay()]]),()=>n(o).format(O())]),x(V,P)});var C=re(E,2),k=ue(C);se(k,21,()=>n(f),ae,(V,Z,X)=>{var O=ge(),P=$(O);se(P,17,()=>n(Z),ae,(J,he,U)=>{{let ie=a(()=>U+1===n(Z).length),N=a(()=>X+1===n(f).length);tu(J,{get day(){return n(he)},get noIeb(){return n(ie)},get noBeb(){return n(N)}})}}),x(V,O)}),nt(k,V=>i.gridEl=V,()=>i?.gridEl);var w=re(k,2),D=ue(w);se(D,17,()=>n(d),ae,(V,Z,X)=>{nt(yr(V,{get chunk(){return n(Z)}}),(O,P)=>p[P]=O,O=>p?.[O],()=>[X])});var I=re(D,2);se(I,17,()=>n(h),ae,(V,Z)=>{yr(V,{get chunk(){return n(Z)}})});var H=re(I,2);se(H,17,()=>n(g),ae,(V,Z)=>{yr(V,{get chunk(){return n(Z)}})});var R=re(C,2);{var fe=V=>{ru(V,{})};ye(R,V=>{n(v)&&V(fe)})}nt(m,V=>r.mainEl=V,()=>r?.mainEl),Me(m,()=>qr(_)),oe(()=>{A(m,1,Rt([n(u).main,n(l)===!0&&n(u).uniform])),y=bt(m,"",y,{"--ec-grid-cols":n(f)[0].length,"--ec-grid-rows":n(f).length}),A(E,1,n(u).header),A(S,1,n(u).grid),A(C,1,n(u).body),A(k,1,n(u).grid),A(w,1,n(u).events)}),x(e,m),Ce()}const au={createOptions(e){_e(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),_e(e.buttonText,{dayGridMonth:"month",close:"Close"}),_e(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),_e(e.views,{dayGridMonth:{buttonText:ei,component:lu,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:gt("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function lu(e){return e.features=["day-grid"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Es(t,i),end:Ga(r,i)}},ou}function Js(e,t,r){return e.startEditable??t??e.editable??r}function uu(e,t,r){return e.durationEditable??t??e.editable??r}let ii=!1;function fu(e){ii||(ii=!0,window.requestAnimationFrame(()=>{e(),ii=!1}))}function Qs(e,t,r){return ut(t,Lt(r,e))}function du(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:l}=o;return[...s,cr(l)?[i[l]]:!vt(l)&&Js(o,r,t)?[i.draggable]:[]]}}}function cu(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return Vn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class hu{constructor(t){this.#e(t)}#e(t){on(du(t)),Ge(cu(t))}}function vu(e,t){ke(t,!0);let r=ne("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),h=a(()=>r.options.dragScroll),g=a(()=>r.options.editable),c=a(()=>r.options.eventStartEditable),v=a(()=>r.options.eventDragMinDistance),p=a(()=>r.options.eventDragStart),_=a(()=>r.options.eventDragStop),m=a(()=>r.options.eventDrop),y=a(()=>r.options.eventLongPressDelay),E=a(()=>r.options.eventResizeStart),S=a(()=>r.options.eventResizeStop),C=a(()=>r.options.eventResize),k=a(()=>r.options.longPressDelay),w=a(()=>r.options.resizeConstraint),D=a(()=>r.options.selectable),I=a(()=>r.options.select),H=a(()=>r.options.selectBackgroundColor),R=a(()=>r.options.selectConstraint),fe=a(()=>r.options.selectLongPressDelay),V=a(()=>r.options.selectMinDistance),Z=a(()=>r.options.unselect),X=a(()=>r.options.unselectAuto),O=a(()=>r.options.unselectCancel),P=a(()=>r.options.validRange);const J=1,he=2,U=3,ie=4,N=5,Q=6;let F,B,L,me,mt,He,Pt,Y,le,Ie,W,z,G,de,Se,be,Re,Ae,ce,ze,ft,et,pt,Oe,hn,Bt,jt;function xf(T){return Js(T,n(c),n(g))}function Sf(T,M,pe,j,Ze){F||(F=mi(M)?J:Q,vn()&&(L=T,gi(M,Ze),pe&&(He=pe),j&&(hn=j),Ae="dragging",xn(M)))}function Rf(T,M,pe,j,Ze,Xn,_i,Bf){F||(F=mi(M)?pe?U:he:Q,vn()&&(L=T,gi(M,Bf),Ze&&(He=Ze),Xn&&(hn=Xn),Ae=j==="x"?"resizingX":"resizingY",Cr()?(ce=q(L.end),Re?(Xr(ce,L.start),ce>=L.end&&kn(ce)):(ur(ce,Bt),ce<L.start&&(ce=L.start),He=L.start)):(ce=q(L.start),Re?(Xr(ce,L.end),ce<=L.start&&!_i&&kt(ce)):(xe(ce,Bt),ce>L.end&&(ce=L.end),He=L.end,_i||(He=ur(q(He),Bt))),_i&&!Re&&(jt=Bt)),xn(M)))}function If(T,M){F||(F=mi(T)?n(D)&&!n(o).includes("list")?ie:N:Q,vn()&&(gi(T,M),Ae="selecting",ze=Re?Ne({day:1}):Bt,L={allDay:Re,start:He,end:xe(q(He),ze),resourceIds:Y?[Y.id]:[]},xn(T)))}function Lf(){F||(F=Q)}function gi(T,M){window.getSelection().removeAllRanges(),Ie=z=T.clientX,W=G=T.clientY,Bt=M?.duration;let pe=Dn(z,G);({allDay:Re,date:He,resource:Y}=Vt(pe)(z,G)),Se=n(u)!==As(pe,3),de=As(pe,1),fo(),T.pointerType!=="mouse"&&(pt=setTimeout(()=>{F&&(B=!0,xn(T))},($t()?n(fe):n(y))??n(k)))}function xn(T){if(B||T&&T.pointerType==="mouse"&&Nf()>=($t()?n(V):n(v))){B=!0,Dr(T),r.iClass=Ae,me||($t()?Of():Af(T,Sn()?n(E):n(p)));let M=qn(Mf());if(M){let pe;if({allDay:pe,date:Pt,resource:le}=M,pe===Re){let j=kr({},me),Ze=n(w);be=Ne((Pt-He)/1e3),Cr()?(j.start=xe(q(L.start),be),j.start>ce&&(j.start=ce,be=Ne((ce-L.start)/1e3))):(j.end=xe(q(L.end),be),jt&&xe(j.end,jt),Sn()?j.end<ce&&(j.end=ce,be=Ne((ce-L.end)/1e3)):$t()?(j.end<L.end?(j.start=ur(j.end,ze),j.end=L.end):j.start=L.start,Ze=n(R)):(j.start=xe(q(L.start),be),Y&&(j.resourceIds=L.resourceIds.filter(Xn=>Xn!==Y.id),j.resourceIds.push(le.id)),Ze=n(d)));do{if(Ze!==void 0&&(j=kr(jr(L),j),Ze($t()?go(j,T):mo(j,L,T))===!1)){vo(L);break}vo(j)}while(!1)}}}if(n(h)){let M=24,pe=24;fu(()=>{Oe&&(Se||(G<Oe.top+M&&(n(u).scrollTop+=ut(-8,(G-Oe.top-M)/3)),G>Oe.bottom-M&&(n(u).scrollTop+=Lt(8,(G-Oe.bottom+M)/3))),z<Oe.left+pe&&(n(u).scrollLeft+=ut(-8,(z-Oe.left-pe)/3)),z>Oe.right-pe&&(n(u).scrollLeft+=Lt(8,(z-Oe.right+pe)/3)),G<M&&window.scrollBy(0,ut(-8,(G-M)/3)),G>window.innerHeight-M&&window.scrollBy(0,Lt(8,(G-window.innerHeight+M)/3)))})}}function lo(){vn()&&(fo(),xn())}function Pf(T){vn()&&T.isPrimary&&(z=T.clientX,G=T.clientY,xn(T))}function uo(T){if(ft&&n(X)&&!(n(O)&&T.target.closest(n(O)))&&Dr(T),F&&T.isPrimary){if(B)if($t()){if(ft=!0,De(n(I))){let M=go(me,T);n(I)(M)}}else{L.display=mt;let M=Sn()?n(S):n(_);De(M)&&M({event:We(L),jsEvent:T,view:Ke(n(l))});let pe=jr(L);if(ho(L,me),co(),M=Sn()?n(C):n(m),De(M)){let j=L,Ze=mo(L,pe,T);M(_e(Ze,{revert(){ho(j,pe)}}))}}else if((Ff()||$t())&&De(n(f))&&!et){z=T.clientX,G=T.clientY;let M=Dn(z,G);if(M){let{allDay:pe,date:j,resource:Ze}=Vt(M)(z,G);n(f)({allDay:pe,date:Fe(j),dateStr:lt(j),dayEl:M,jsEvent:T,view:Ke(n(l)),resource:Ze})}}B=!1,F=Ie=W=z=G=L=mt=He=Pt=Y=le=be=jt=Re=ce=ze=hn=de=Oe=Bt=void 0,r.iClass=void 0,pt&&(clearTimeout(pt),pt=void 0)}et=!1}function Mf(){return Dn(Qs(z,Oe.left,Oe.right),Qs(G,Oe.top,Oe.bottom))}function qn(T){if(T){let M=Vt(T)(z,G);if(M.disabled){if(!n(P).end||M.date<n(P).end)return qn(T.nextElementSibling);if(!n(P).start||M.date>n(P).start)return qn(T.previousElementSibling)}else return($t()||Sn())&&M.resource&&!me.resourceIds.includes(M.resource.id)&&!n(o).includes("timeline")?z>Ie?qn(T.previousElementSibling):qn(T.nextElementSibling):M}return null}function fo(){let T=Qt(n(u)),M=Qt(de),pe=T.width/n(u).offsetWidth,j=T.height/n(u).offsetHeight,Ze=Cn();Oe={left:ut(0,Ze?T.right-n(u).clientWidth*pe:M.left+n(u).scrollLeft*pe),right:Lt(document.documentElement.clientWidth,Ze?M.right+n(u).scrollLeft*pe:T.left+n(u).clientWidth*pe)-2,top:ut(0,M.top+(Se?0:n(u).scrollTop)*j),bottom:Lt(document.documentElement.clientHeight,Se?M.bottom:T.top+n(u).clientHeight*j)-2}}function Af(T,M){De(M)&&M({event:We(L),jsEvent:T,view:Ke(n(l))}),mt=L.display,L.display="preview",me=jr(L),hn!==void 0&&(me._margin=hn),jt&&xe(me.end,jt),L.display="ghost",r.events=[...n(i)]}function Of(){me={id:"{select}",allDay:L.allDay,start:L.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(H),resourceIds:L.resourceIds,classNames:[],styles:[]}}function co(){me=void 0,n(s).delete("action")}function kr(T,M){return T.start=M.start,T.end=M.end,T.resourceIds=M.resourceIds,{...T}}function ho(T,M){kr(T,M),r.events=[...n(i)]}function vo(T){me=kr(me,T),n(s).set("action",me)}function go(T,M){let{start:pe,end:j}=We(T);return{start:pe,end:j,startStr:lt(T.start),endStr:lt(T.end),allDay:Re,view:Ke(n(l)),resource:Y,jsEvent:M}}function mo(T,M,pe){let j;return Sn()?j=Cr()?{startDelta:be,endDelta:Ne(0)}:{startDelta:Ne(0),endDelta:be}:j={delta:be,oldResource:Y!==le?Y:void 0,newResource:Y!==le?le:void 0},_e(j,{event:We(T),oldEvent:We(M),view:Ke(n(l)),jsEvent:pe}),j}function Nf(){return Math.sqrt(Math.pow(z-Ie,2)+Math.pow(G-W,2))}function Sn(){return F===he||Cr()}function Cr(){return F===U}function Ff(){return F===N}function $t(){return F===ie}function vn(){return F&&F<N}function mi(T){return T.isPrimary&&(T.pointerType!=="mouse"||T.buttons&1)}function Dr(T){ft&&(ft=!1,co(),De(n(Z))&&n(Z)({jsEvent:T,view:Ke(n(l))}))}on(()=>{n(l),Dr()});function Hf(){et=!0}function Uf(T){if(vn()){let M=T.target,pe=[],j=()=>Qa(pe);pe.push(Vn(M,"touchmove",pi(()=>B))),pe.push(Vn(M,"touchend",j)),pe.push(Vn(M,"touchcancel",j))}}function pi(T){return M=>{T()&&M.preventDefault()}}zn(()=>Vn(window,"touchmove",ja,{passive:!1}));var Wf={draggable:xf,drag:Sf,resize:Rf,select:If,noAction:Lf,handleScroll:lo,unselect:Dr,noClick:Hf};at("pointermove",yt,Pf),at("pointerup",yt,uo),at("pointercancel",yt,uo),at("scroll",yt,lo);var zf=a(()=>pi(vn));at("selectstart",yt,function(...T){n(zf)?.apply(this,T)});var Vf=a(()=>pi(()=>pt));return at("contextmenu",yt,function(...T){n(Vf)?.apply(this,T)}),at("touchstart",yt,Uf,void 0,!0),Ce(Wf)}function gu(e,t){ke(t,!0);let r=a(()=>ne("state")),i=a(()=>n(r).iEvents),s=a(()=>n(r).options.slotDuration),o=0,l=0,u;function f(){let _=Dn(o,l);if(_&&!n(i).has("action")){let{allDay:m,date:y,resource:E,disabled:S}=Vt(_)(o,l);if(!S){u||g(),u.allDay=m,u.start=y,u.end=xe(q(y),n(s)),u.resourceIds=E?[E.id]:[],n(i).set("pointer",{...u});return}}c()}function d(){f()}function h(_){v(_)&&(o=_.clientX,l=_.clientY,f())}function g(){u={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]}}function c(){u=void 0,n(i).delete("pointer")}function v(_){return _.isPrimary&&_.pointerType==="mouse"}var p={handleScroll:d};return at("pointermove",yt,h),at("scroll",yt,d),Ce(p)}var mu=te("<div></div>"),pu=te("<div></div>"),_u=te("<!> <!> <!>",1);function yu(e,t){ke(t,!0);let r=Ee(t,"forceDate",3,void 0),i=Ee(t,"forceMargin",3,void 0),s=a(()=>ne("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),h=a(()=>ne("view-state")),g=a(()=>n(h).snap),c=a(()=>t.chunk.event),v=a(()=>t.chunk.event.display),p=a(()=>!vt(n(v))&&!cr(n(v))&&uu(n(c),n(u),n(l)));function _(w){return D=>n(o).resize(n(c),D,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=_u(),y=$(m);{var E=w=>{var D=mu(),I=a(()=>_(!0));D.__pointerdown=function(...H){n(I)?.apply(this,H)},oe(()=>A(D,1,`${n(d).resizer??""} ${n(d).start??""}`)),x(w,D)};ye(y,w=>{n(p)&&n(f)&&w(E)})}var S=re(y,2);zt(S,()=>t.children);var C=re(S,2);{var k=w=>{var D=pu(),I=a(()=>_(!1));D.__pointerdown=function(...H){n(I)?.apply(this,H)},oe(()=>A(D,1,n(d).resizer)),x(w,D)};ye(C,w=>{n(p)&&w(k)})}x(e,m),Ce()}Zt(["pointerdown"]);var wu=te("<!> <!>",1);function bu(e,t){ke(t,!0);let r=ne("state");new hu(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=yu;var o=wu(),l=$(o);nt(vu(l,{}),d=>n(i).action=d,()=>n(i)?.action);var u=re(l,2);{var f=d=>{nt(gu(d,{}),h=>n(i).pointer=h,()=>n(i)?.pointer)};ye(u,d=>{n(s)&&d(f)})}x(e,o),Ce()}const ku={createOptions(e){_e(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:""}),_e(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(bu)}};let Cu=class{#e;get intlListDay(){return n(this.#e)}set intlListDay(t){b(this.#e,t)}#t;get intlListDaySide(){return n(this.#t)}set intlListDaySide(t){b(this.#t,t)}constructor(t){this.#e=a(cn(t,"listDayFormat")),this.#t=a(cn(t,"listDaySideFormat"))}};var Du=te("<div></div> <!>",1);function Eu(e,t){ke(t,!0);let r=a(()=>ne("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=Yt,h=Yt,g=Yt)=>{var c=Du(),v=$(c);let p;var _=re(v,2);zt(_,d),oe(()=>{A(v,1,n(s).eventTag),p=bt(v,"",p,{"background-color":h()})}),x(f,c)};let u=a(()=>n(i).action?.noAction);Zs(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}Ce()}var Tu=te("<h4><time></time> <time></time></h4> <!>",1);function xu(e,t){ke(t,!0);let r=a(()=>ne("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(()=>ne("view-state")),f=a(()=>n(u).intlListDay),d=a(()=>n(u).intlListDaySide),h=a(()=>n(s).some(y=>$e(y,t.date))),g=a(()=>Tn(t.date,n(l))),c=a(()=>lt(t.date,10)),v=a(()=>{let y=[];if(!n(g)){let E=t.date,S=kt(q(t.date));for(let C of n(i))if(!vt(C.display)&&Bn(C,E,S)){let k=Yn(C,E,S);y.push(k)}}return y});var p=ge(),_=$(p);{var m=y=>{mr(y,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(h)},children:(E,S)=>{var C=Tu(),k=$(C),w=ue(k);Me(w,()=>Xe(n(f).format(t.date)));var D=re(w,2);Me(D,()=>Xe(n(d).format(t.date)));var I=re(k,2);se(I,17,()=>n(v),H=>H.event,(H,R)=>{Eu(H,{get chunk(){return n(R)}})}),oe(()=>{A(k,1,n(o).dayHead),Pe(w,"datetime",n(c)),A(D,1,n(o).daySide),Pe(D,"datetime",n(c))}),x(E,C)},$$slots:{default:!0}})};ye(_,y=>{n(v).length&&y(m)})}x(e,p),Ce()}var Su=te("<div></div>"),Ru=te("<section><!></section>");function Iu(e,t){ke(t,!0);let r=ne("state"),i=new Cu(r);In("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),h=a(()=>{let y=!0;if(n(l).length){let E=n(l)[0],S=kt(q(n(l).at(-1)));for(let C of n(s))if(!vt(C.display)&&C.start<S&&C.end>E){y=!1;break}}return y}),g=a(()=>De(n(f))?n(f)():n(f));function c(y){De(n(u))&&n(u)({jsEvent:y,view:Ke(n(o))})}var v=Ru(),p=ue(v);{var _=y=>{var E=Su();E.__click=c,Me(E,()=>Xe(n(g))),oe(()=>A(E,1,n(d).noEvents)),x(y,E)},m=y=>{var E=ge(),S=$(E);se(S,17,()=>n(l),ae,(C,k)=>{xu(C,{get date(){return n(k)}})}),x(y,E)};ye(p,y=>{n(h)?y(_):y(m,!1)})}nt(v,y=>r.mainEl=y,()=>r?.mainEl),oe(()=>A(v,1,n(d).main)),x(e,v),Ce()}Zt(["click"]);const Lu={createOptions(e){_e(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),_e(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),_e(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),_e(e.views,{listDay:{buttonText:hr,component:wr,duration:{days:1},theme:gt("ec-list ec-day-view")},listWeek:{buttonText:vr,component:wr,duration:{weeks:1},theme:gt("ec-list ec-week-view")},listMonth:{buttonText:ei,component:wr,duration:{months:1},theme:gt("ec-list ec-month-view")},listYear:{buttonText:ul,component:wr,duration:{years:1},theme:gt("ec-list ec-year-view")}})}};function wr(e){return e.features=["list"],Iu}function si(e,t){let r=[];for(let{gridColumn:i,gridRow:s,resource:o,start:l,end:u,disabled:f}of t)if(!f&&Bn(e,l,u,o)){let d=Yn(e,l,u);_e(d,{gridColumn:i,gridRow:s,top:(d.start-l)/1e3,height:(d.end-d.start)/1e3,maxHeight:(u-d.start)/1e3}),r.push(d)}return r}function Pu(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 Mu(e){let t="all-day",r;return e?(r=De(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function oi(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>lr){xe(kn(r),i);let s=kn(q(r));s<t&&(t=s)}return{start:t,end:r}}}function ai(e){"scrollTime"in e||(_e(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}),_e(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function js(e){"allDaySlot"in e||(_e(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),_e(e.theme,{allDay:"ec-all-day"}))}function li(e){"scrollTime"in e||_e(e,{scrollTime:Ne,slotDuration:Ne,slotLabelInterval:t=>t!==void 0?Ne(t):void 0,slotMaxTime:Ne,slotMinTime:Ne,snapDuration:t=>t!==void 0?Ne(t):void 0})}function $s(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function Au(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,l=[];return ee(()=>{let u=1;for(let f of r)l.push({gridColumn:u,gridRow:1,resource:void 0,start:xe(q(f),o.min),end:xe(q(f),o.max),dayStart:f,dayEnd:kt(q(f)),disabled:Tn(f,s),highlight:i.some(d=>$e(d,f))}),++u}),[l]}}function Ou(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],l=[],u=[];return ee(()=>{for(let f of r)for(let d of i)vt(f.display)?(o=o.concat(si(f,d)),f.allDay&&(u=u.concat(En(f,d)))):f.allDay?l=l.concat(En(f,d)):s=s.concat(si(f,d));Pu(s),Fs(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function Nu(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(En(l,u)):s=s.concat(si(l,u))});return{iChunks:s,allDayIChunks:o}}}function Fu(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return ee(()=>{l=Ys(s,o,i,r,t)}),l}}function Hu(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return ee(()=>{i=r===void 0?we(t)<3600?2:1:Ka(we(r)/we(t))||1}),i}}function Uu(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return ee(()=>{l=Bs(Ct(It()),r,s,o,i)}),l}}function Wu(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:we(r)/we(t)}}}function ui(){return class{#e;get intlSlotLabel(){return n(this.#e)}set intlSlotLabel(e){b(this.#e,e)}#t;get slotLabelPeriodicity(){return n(this.#t)}set slotLabelPeriodicity(e){b(this.#t,e)}#n;get sidebarWidth(){return n(this.#n)}set sidebarWidth(e){b(this.#n,e,!0)}#r;get snap(){return n(this.#r)}set snap(e){b(this.#r,e)}constructor(e){this.#e=a(cn(e,"slotLabelFormat")),this.#t=a(Hu(e)),this.#n=K(0),this.#r=a(Wu(e))}}}function eo(e){return class extends e{#e;get slotTimeLimits(){return n(this.#e)}set slotTimeLimits(t){b(this.#e,t)}#t;get slots(){return n(this.#t)}set slots(t){b(this.#t,t)}#n;get chunks(){return n(this.#n)}set chunks(t){b(this.#n,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(Fu(t)),this.#t=a(Uu(t,this));let r=a(Ou(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks),o=a(()=>n(r).allDayChunks),l=a(()=>n(r).allDayBgChunks);this.#n=a(()=>n(i)),this.#r=a(()=>n(s)),this.#s=a(()=>n(o)),this.#i=a(()=>n(l));let u=a(Nu(t,this)),f=a(()=>n(u).iChunks),d=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(f)),this.#a=a(()=>n(d))}}}let zu=class extends eo(ui()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Au(t,this))}};function Vu(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(f=>Bn(f,t.start,t.end,u)))),l.length||(l=Ws([{}]))}),l}}function Bu(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:l,viewResources:u}=t,f=[];return ee(()=>{let d=1,h=i?[r,u]:[u,r];for(let g of h[0]){let c=[];for(let v of h[1]){let p=i?g:v,_=i?v:g;c.push({gridColumn:d,gridRow:1,resource:_,start:xe(q(p),l.min),end:xe(q(p),l.max),dayStart:p,dayEnd:kt(q(p)),disabled:Tn(p,o),highlight:s.some(m=>$e(m,p))}),++d}f.push(c)}}),f}}function to(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(Vu(t))}}}let Yu=class extends to(eo(ui())){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Bu(t,this))}};var Gu=te("<span></span>");function fi(e,t){ke(t,!0);let r=Ee(t,"date",3,void 0),i=Ee(t,"setLabel",3,void 0),s=a(()=>ne("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)?De(n(l))?n(l)({resource:t.resource,date:r()?Fe(r()):void 0}):n(l):t.resource.title),h=K(void 0);Ge(()=>{n(d),ee(()=>{r()?b(h,n(o).format(r())+", "+n(f).innerText):i()&&(b(h,void 0),i()(n(f).innerText))})}),zn(()=>{De(n(u))&&n(u)({resource:t.resource,date:r()?Fe(r()):void 0,el:n(f)})});var g=Gu();nt(g,c=>b(f,c),()=>n(f)),Me(g,()=>Xe(n(d))),oe(()=>Pe(g,"aria-label",n(h))),x(e,g),Ce()}function no(e,t){ke(t,!0);let r=Ee(t,"allDay",3,!1),i=a(()=>ne("state")),s=a(()=>n(i).options.slotHeight),o=a(()=>ne("view-state")),l=a(()=>n(o).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),h=a(()=>t.day.disabled),g=a(()=>t.day.highlight),c=K(void 0);function v(p,_){if(r())return n(u);{let m=Qt(n(c)),y=m.height/n(c).offsetHeight;return xe(q(n(f)),n(l).duration,Kr((_-m.top)/(n(s)*n(l).ratio*y)))}}mr(e,{get date(){return n(u)},get allDay(){return r()},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(h)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(c)},set el(p){b(c,p,!0)}}),Ce()}function di(e,t){ke(t,!0);let r=a(()=>ne("state")),i=a(()=>n(r).options.slotEventOverlap),s=a(()=>n(r).options.slotDuration),o=a(()=>n(r).options.slotHeight),l=a(()=>u=>{let f=we(n(s)),d=t.chunk.top/f*n(o),h=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"]=`${h}px`,u["block-size"]=`${h}px`,u["max-block-size"]=`${g}px`;let c="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((${c}) / ${v} * ${t.chunk.groupColumn})`,u["inline-size"]=`calc((${c}) / ${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"}),Ce()}function ci(e,t){ke(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,Hs(t.chunk,dn(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(f){b(r,f,!0)}}),Ce(u)}var qu=te("<div></div>");function br(e,t){ke(t,!0);let r=Ee(t,"span",3,1),i=a(()=>ne("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),h=a(()=>ne("view-state")),g=a(()=>n(h).sidebarWidth),c=a(()=>{for(let w of t.days)if($e(w.dayStart,n(l)))return w;return{}}),v=a(()=>n(c).gridColumn),p=a(()=>n(c).start),_=a(()=>n(c).end),m=a(()=>{if(n(o)<n(p)||n(o)>n(_))return null;let w=we(n(u));return(n(o)-n(p))/1e3/w*n(f)}),y=a(()=>({root:n(s),rootMargin:Cn()?`0px -${n(g)+5.5}px 0px 0px`:`0px 0px 0px -${n(g)+5.5}px`,threshold:0}));function E(w,D){w.classList.toggle(n(d).hidden,!D.isIntersecting)}var S=ge(),C=$(S);{var k=w=>{var D=qu();let I;Me(D,()=>Ds(E,n(y))),oe(()=>{A(D,1,n(d).nowIndicator),I=bt(D,"",I,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),x(w,D)};ye(C,w=>{n(v)&&n(m)!==null&&w(k)})}x(e,S),Ce()}var Xu=te('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),Ku=te("<div><time></time></div>"),Zu=te('<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 ro(e,t){ke(t,!0);let r=Ee(t,"viewState",7),i=ne("state");r()||r(new zu(i)),In("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),h=a(()=>i.options.scrollTime),g=a(()=>i.options.slotHeight),c=a(()=>i.options.slotDuration),v=a(()=>i.options.theme),p=a(()=>r().allDayChunks),_=a(()=>r().allDayBgChunks),m=a(()=>r().allDayIChunks),y=a(()=>r().bgChunks),E=a(()=>r().chunks),S=a(()=>r().iChunks),C=a(()=>r().grid),k=a(()=>r().sidebarWidth),w=a(()=>r().slots),D=a(()=>r().slotLabelPeriodicity),I=a(()=>r().slotTimeLimits),H=K(0),R=a(()=>Mu(n(l)));Ge(()=>{n(o),n(h),Hn().then(fe)});function fe(){n(s).scrollTop=((we(n(h))-we(n(I).min))/we(n(c))-.5)*n(g)}let V=[];function Z(){$r(V,n(p))}Ge(Z);var X=Zu();let O;var P=ue(X),J=ue(P),he=re(J,2),U=ue(he);{var ie=W=>{var z=ge(),G=$(z);zt(G,()=>t.header),x(W,z)},N=W=>{var z=ge(),G=$(z);se(G,17,()=>n(C)[0],ae,(de,Se,be)=>{let Re=()=>n(Se).dayStart,Ae=()=>n(Se).disabled,ce=()=>n(Se).highlight;Gn(de,{get date(){return Re()},colIndex:1+be,get disabled(){return Ae()},get highlight(){return ce()},children:(ze,ft)=>{pr(ze,{get date(){return Re()}})},$$slots:{default:!0}})}),x(W,z)};ye(U,W=>{t.header?W(ie):W(N,!1)})}var Q=re(he,2);{var F=W=>{var z=Xu(),G=ue(z);Me(G,()=>Xe(n(R)));var de=re(G,2);se(de,21,()=>n(C),ae,(ce,ze,ft)=>{var et=ge(),pt=$(et);se(pt,17,()=>n(ze),ae,(Oe,hn,Bt)=>{{let jt=a(()=>ft+1===n(C).length&&Bt+1===n(ze).length);no(Oe,{get day(){return n(hn)},allDay:!0,get noIeb(){return n(jt)}})}}),x(ce,et)});var Se=re(de,2),be=ue(Se);se(be,17,()=>n(p),ae,(ce,ze,ft)=>{nt(ci(ce,{get chunk(){return n(ze)}}),(et,pt)=>V[pt]=et,et=>V?.[et],()=>[ft])});var Re=re(be,2);se(Re,17,()=>n(_),ae,(ce,ze)=>{ci(ce,{get chunk(){return n(ze)}})});var Ae=re(Re,2);se(Ae,17,()=>n(m),ae,(ce,ze)=>{ci(ce,{get chunk(){return n(ze)}})}),oe(()=>{A(z,1,n(v).allDay),A(G,1,n(v).sidebar),A(de,1,n(v).grid),A(Se,1,n(v).events)}),x(W,z)};ye(Q,W=>{n(u)&&W(F)})}var B=re(P,2),L=ue(B);se(L,21,()=>n(w),ae,(W,z,G)=>{var de=Ku();let Se;var be=ue(de);Me(be,()=>Xe(n(z)[1])),oe(()=>{A(de,1,Rt([n(v).slot,!G&&n(v).hidden])),Se=bt(de,"",Se,{"--ec-slot-label-periodicity":n(z)[2]}),Pe(be,"datetime",n(z)[0])}),x(W,de)});var me=re(L,2);se(me,21,()=>n(C),ae,(W,z,G)=>{var de=ge(),Se=$(de);se(Se,17,()=>n(z),ae,(be,Re,Ae)=>{{let ce=a(()=>G+1===n(C).length&&Ae+1===n(z).length);no(be,{get day(){return n(Re)},get noIeb(){return n(ce)},noBeb:!0})}}),x(W,de)});var mt=re(me,2),He=ue(mt);se(He,17,()=>n(E),ae,(W,z)=>{di(W,{get chunk(){return n(z)}})});var Pt=re(He,2);se(Pt,17,()=>n(y),ae,(W,z)=>{di(W,{get chunk(){return n(z)}})});var Y=re(Pt,2);se(Y,17,()=>n(S),ae,(W,z)=>{di(W,{get chunk(){return n(z)}})});var le=re(B,2);{var Ie=W=>{var z=ge(),G=$(z);{var de=be=>{var Re=ge(),Ae=$(Re);zt(Ae,()=>t.nowIndicator),x(be,Re)},Se=be=>{br(be,{get days(){return n(C)[0]}})};ye(G,be=>{t.nowIndicator?be(de):be(Se,!1)})}x(W,z)};ye(le,W=>{n(d)&&W(Ie)})}nt(X,W=>i.mainEl=W,()=>i?.mainEl),Me(X,()=>qr(Z)),oe(()=>{A(X,1,n(v).main),O=bt(X,"",O,{"--ec-grid-cols":n(C).length*n(C)[0].length,"--ec-col-group-span":n(C)[0].length,"--ec-col-width":n(f)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(D),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(H)??""}px`,"--ec-sidebar-width":`${n(k)??""}px`}),A(P,1,n(v).header),A(J,1,n(v).sidebar),A(he,1,n(v).grid),A(B,1,n(v).body),A(L,1,n(v).sidebar),A(me,1,n(v).grid),A(mt,1,n(v).events)}),or(J,"offsetWidth",W=>r().sidebarWidth=W),or(P,"offsetHeight",W=>b(H,W)),x(e,X),Ce()}var Ju=te("<!> <!>",1);function Qu(e,t){ke(t,!0);let r=ne("state"),i=new Yu(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),h=a(()=>i.grid),g=a(()=>i.sidebarWidth),c=Je([]);Ge(()=>{n(f)&&(n(l),n(u),Hn().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let p of n(h)){let _=p[0];if($e(_.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(n(h).length*p.length)*(_.gridColumn-1)*(Cn()?-1:1);break}}}ro(e,{get viewState(){return i},header:m=>{var y=Ju(),E=$(y);se(E,17,()=>n(h),ae,(k,w,D)=>{const I=a(()=>{const{dayStart:H,resource:R,disabled:fe,highlight:V}=n(w)[0];return{date:H,resource:R,disabled:fe,highlight:V}});{let H=a(()=>n(h)[0].length>1?n(d).colGroup:void 0),R=a(()=>1+D*n(w).length),fe=a(()=>n(f)&&n(I).disabled),V=a(()=>n(f)&&n(I).highlight);Gn(k,{get date(){return n(I).date},get className(){return n(H)},get weekday(){return n(f)},get colSpan(){return n(w).length},get colIndex(){return n(R)},get disabled(){return n(fe)},get highlight(){return n(V)},children:(Z,X)=>{var O=ge(),P=$(O);{var J=U=>{pr(U,{get date(){return n(I).date}})},he=U=>{fi(U,{get resource(){return n(I).resource},setLabel:ie=>c[D]=ie+", "})};ye(P,U=>{n(f)?U(J):U(he,!1)})}x(Z,O)},$$slots:{default:!0}})}});var S=re(E,2);{var C=k=>{var w=ge(),D=$(w);se(D,17,()=>n(h),ae,(I,H,R)=>{var fe=ge(),V=$(fe);se(V,17,()=>n(H),ae,(Z,X,O)=>{const P=a(()=>{const{dayStart:J,resource:he,disabled:U,highlight:ie}=n(X);return{date:J,resource:he,disabled:U,highlight:ie}});{let J=a(()=>1+O+R*n(H).length);Gn(Z,{get date(){return n(P).date},get colIndex(){return n(J)},get disabled(){return n(P).disabled},get highlight(){return n(P).highlight},children:(he,U)=>{var ie=ge(),N=$(ie);{var Q=B=>{fi(B,{get resource(){return n(P).resource},get date(){return n(P).date}})},F=B=>{pr(B,{get date(){return n(P).date},get alPrefix(){return c[R]}})};ye(N,B=>{n(f)?B(Q):B(F,!1)})}x(he,ie)},$$slots:{default:!0}})}}),x(I,fe)}),x(k,w)};ye(S,k=>{n(h)[0].length>1&&k(C)})}x(m,y)},nowIndicator:m=>{var y=ge(),E=$(y);{var S=k=>{{let w=a(()=>n(h).flat());br(k,{get days(){return n(w)},get span(){return n(h)[0].length}})}},C=k=>{var w=ge(),D=$(w);{var I=R=>{var fe=ge(),V=$(fe);se(V,17,()=>n(h),ae,(Z,X)=>{br(Z,{get days(){return n(X)}})}),x(R,fe)},H=R=>{{let fe=a(()=>n(h).flat());br(R,{get days(){return n(fe)},get span(){return n(h).length}})}};ye(D,R=>{n(h)[0].length>1?R(I):R(H,!1)})}x(k,w)};ye(E,k=>{n(f)?k(S):k(C,!1)})}x(m,y)},$$slots:{header:!0,nowIndicator:!0}}),Ce()}const ju={createOptions(e){js(e),ai(e),$s(e),_e(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),_e(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),_e(e.theme,{colGroup:"ec-col-group"}),_e(e.views,{resourceTimeGridDay:{buttonText:hr,component:io,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:gt("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:vr,component:io,duration:{weeks:1},theme:gt("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){li(e)}};function io(e){return oi(e),Qu}function hi(e,t){let r=[],i,s,o,l,u,f=0;for(let{gridColumn:d,gridRow:h,resource:g,dayStart:c,start:v,end:p,disabled:_}of t)!_&&Bn(e,v,p,g)&&(r.length||(i=v,o=d,l=h,u=ut(e.start-v,0)/1e3),r.push(c),s=p,f+=(Lt(p,e.end)-ut(v,e.start))/1e3);if(r.length){let d=Yn(e,i,s);return _e(d,{gridColumn:o,gridRow:l,dates:r,left:u,width:f}),[d]}return[]}function $u(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 ef(e,t,r){let i=0,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 _e(e,{top:i,bottom:s}),i}function tf(e,t){return e[t.getTime()]??{min:Ne(0),max:Ne("24:00:00")}}function nf(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:l}=t,u=[];return ee(()=>{let f=1;for(let d of l){let h=[],g=1;for(let c of r){let v=o[c.getTime()];h.push({gridColumn:g,gridRow:f,resource:d,start:xe(q(c),v.min),end:xe(q(c),v.max),dayStart:c,dayEnd:kt(q(c)),disabled:Tn(c,s),highlight:i.some(p=>$e(p,c))}),++g}u.push(h),++f}}),u}}function rf(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)?o=o.concat(hi(l,u)):s=s.concat(hi(l,u));$u(s)}),{chunks:s,bgChunks:o}}}function sf(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(hi(o,l))});return s}}function of(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()]=Ys(s,o,i,[u],t)}),l}}function af(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:l}=t,u={};return ee(()=>{for(let f of r){let d=f.getTime();u[d]=d in s?Bs(f,i,l,s[d],o):[]}}),u}}function lf(e){return()=>{let{options:{resources:t}}=e,r;return ee(()=>{r=t.some(i=>Vt(i).children.length)}),r}}function uf(e){return()=>{let{options:{slotDuration:t}}=e,r;return ee(()=>{r=!we(t)}),r}}class ff extends to(ui()){#e;get dayTimeLimits(){return n(this.#e)}set dayTimeLimits(t){b(this.#e,t)}#t;get daySlots(){return n(this.#t)}set daySlots(t){b(this.#t,t)}#n;get grid(){return n(this.#n)}set grid(t){b(this.#n,t)}#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 monthView(){return n(this.#o)}set monthView(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(of(t)),this.#t=a(af(t,this)),this.#n=a(nf(t,this));let r=a(rf(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(sf(t,this)),this.#o=a(uf(t)),this.#a=a(lf(t))}}function df(e,t){ke(t,!0);let r=a(()=>ne("state")),i=a(()=>n(r).options.slotWidth),s=a(()=>ne("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),h=a(()=>t.day.disabled),g=a(()=>t.day.highlight),c=K(void 0);function v(p,_){if(n(o))return n(u);{let m=Qt(n(c)),y=m.width/n(c).offsetWidth;return xe(q(n(f)),n(l).duration,Kr((Cn()?m.right-p:p-m.left)/(n(i)*n(l).ratio*y)))}}mr(e,{get allDay(){return n(o)},get date(){return n(u)},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(h)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(c)},set el(p){b(c,p,!0)}}),Ce()}function vi(e,t){ke(t,!0);let r=a(()=>ne("state")),i=a(()=>n(r).options.slotDuration),s=a(()=>n(r).options.slotWidth),o=a(()=>ne("view-state")),l=a(()=>n(o).monthView),u=K(void 0),f=K(0),d=a(()=>t.chunk.event),h=a(()=>v=>{if(v["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,v["grid-row"]=t.chunk.gridRow,!n(l)){let _=t.chunk.left/we(n(i))*n(s);v["inset-inline-start"]=`${_}px`,v["inline-size"]=`${t.chunk.width/we(n(i))*n(s)}px`}let p=n(f);if(n(d)._margin){let[_,m]=n(d)._margin;t.chunk.gridRow===m&&(p=_)}return v["margin-block-start"]=`${p}px`,v});function g(){b(f,ef(t.chunk,dn(n(u)),n(l)),!0)}var c={reposition:g};{let v=a(()=>[n(f),t.chunk.gridRow]);_r(e,{get chunk(){return t.chunk},get styles(){return n(h)},axis:"x",get forceMargin(){return n(v)},get el(){return n(u)},set el(p){b(u,p,!0)}})}return Ce(c)}var cf=te("<span></span>"),hf=te("<button><!></button>"),vf=te("<!> <span><!></span>",1);function gf(e,t){ke(t,!0);let r=a(()=>ne("state")),i=a(()=>n(r).options),s=a(()=>n(i).resources),o=a(()=>n(i).theme),l=K({}),u=K(!0);on(()=>{b(l,Vt(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(_,m){for(let y of _){let E=Vt(y);E.hidden=!m,E.expanded&&d(E.children,m)}}var h=vf(),g=$(h);se(g,17,()=>Array(n(l).level),ae,(_,m)=>{var y=cf();oe(()=>A(y,1,n(o).expander)),x(_,y)});var c=re(g,2),v=ue(c);{var p=_=>{var m=hf();m.__click=f;var y=ue(m);{var E=C=>{var k=ms("−");x(C,k)},S=C=>{var k=ms("+");x(C,k)};ye(y,C=>{n(u)?C(E):C(S,!1)})}oe(()=>A(m,1,n(o).button)),x(_,m)};ye(v,_=>{n(l).children?.length&&_(p)})}oe(()=>A(c,1,n(o).expander)),x(e,h),Ce()}Zt(["click"]);var mf=te("<div></div>");function pf(e,t){ke(t,!0);let r=a(()=>ne("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(()=>ne("view-state")),h=a(()=>n(d).grid),g=a(()=>n(d).sidebarWidth),c=a(()=>{for(let w of n(h)[0])if($e(w.dayStart,n(o)))return w;return{}}),v=a(()=>n(c).gridColumn),p=a(()=>n(c).start),_=a(()=>n(c).end),m=a(()=>{if(n(s)<n(p)||n(s)>n(_))return null;let w=we(n(l));return(n(s)-n(p))/1e3/w*n(u)}),y=a(()=>({root:n(i),rootMargin:Cn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function E(w,D){w.classList.toggle(n(f).hidden,!D.isIntersecting)}var S=ge(),C=$(S);{var k=w=>{var D=mf();let I;Me(D,()=>Ds(E,n(y))),oe(()=>{A(D,1,n(f).nowIndicator),I=bt(D,"",I,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(h).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),x(w,D)};ye(C,w=>{n(v)&&n(m)!==null&&w(k)})}x(e,S),Ce()}var _f=te("<div><time></time></div>"),yf=te('<div role="rowheader"><!> <!></div>'),wf=te('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function bf(e,t){ke(t,!0);let r=ne("state"),i=new ff(r);In("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),h=a(()=>r.options.slotDuration),g=a(()=>r.options.slotHeight),c=a(()=>r.options.slotWidth),v=a(()=>r.options.theme),p=a(()=>i.chunks),_=a(()=>i.bgChunks),m=a(()=>i.iChunks),y=a(()=>i.daySlots),E=a(()=>i.dayTimeLimits),S=a(()=>i.grid),C=a(()=>i.monthView),k=a(()=>i.nestedResources),w=a(()=>i.sidebarWidth),D=a(()=>i.slotLabelPeriodicity),I=a(()=>i.viewResources),H=K(0);Ge(()=>{n(l),n(d),Hn().then(R)});function R(){if(n(C))return;let Y=0,le=n(o)<n(l)[0]||n(o)>n(l).at(-1);for(let Ie of n(l)){let W=tf(n(E),Ie);if(le||$e(Ie,n(o))){Y+=ut(Lt(we(n(d)),we(W.max))-we(W.min),0);break}else Y+=we(W.max)-we(W.min)}n(s).scrollLeft=Y/we(n(h))*n(c)*(Cn()?-1:1)}let fe=[];function V(){$r(fe,n(p))}Ge(V);var Z=wf();let X;var O=ue(Z),P=ue(O),J=re(P,2),he=ue(J);se(he,17,()=>n(S)[0],ae,(Y,le,Ie)=>{let W=()=>n(le).dayStart,z=()=>n(le).disabled,G=()=>n(le).highlight;Gn(Y,{get date(){return W()},colIndex:1+Ie,get disabled(){return z()},get highlight(){return G()},children:(de,Se)=>{pr(de,{get date(){return W()}})},$$slots:{default:!0}})});var U=re(he,2);{var ie=Y=>{var le=ge(),Ie=$(le);se(Ie,17,()=>n(S)[0],ae,(W,z)=>{let G=()=>n(z).dayStart,de=()=>n(z).disabled,Se=()=>n(z).highlight;Gn(W,{get date(){return G()},get className(){return n(v).slots},get disabled(){return de()},get highlight(){return Se()},ariaHidden:!0,children:(be,Re)=>{var Ae=ge(),ce=$(Ae);se(ce,17,()=>n(y)[G().getTime()],ae,(ze,ft)=>{var et=_f();let pt;var Oe=ue(et);Me(Oe,()=>Xe(n(ft)[1])),oe(()=>{A(et,1,n(v).slot),pt=bt(et,"",pt,{"--ec-slot-label-periodicity":n(ft)[2]}),Pe(Oe,"datetime",n(ft)[0])}),x(ze,et)}),x(be,Ae)},$$slots:{default:!0}})}),x(Y,le)};ye(U,Y=>{n(C)||Y(ie)})}var N=re(O,2),Q=ue(N);se(Q,21,()=>n(I),ae,(Y,le)=>{var Ie=yf(),W=ue(Ie);{var z=de=>{gf(de,{get resource(){return n(le)}})};ye(W,de=>{n(k)&&de(z)})}var G=re(W,2);fi(G,{get resource(){return n(le)}}),oe(()=>A(Ie,1,n(v).rowHead)),x(Y,Ie)});var F=re(Q,2);se(F,21,()=>n(S),ae,(Y,le,Ie)=>{var W=ge(),z=$(W);se(z,17,()=>n(le),ae,(G,de,Se)=>{{let be=a(()=>Se+1===n(le).length),Re=a(()=>Ie+1===n(S).length);df(G,{get day(){return n(de)},get noIeb(){return n(be)},get noBeb(){return n(Re)}})}}),x(Y,W)});var B=re(F,2),L=ue(B);se(L,17,()=>n(p),ae,(Y,le,Ie)=>{nt(vi(Y,{get chunk(){return n(le)}}),(W,z)=>fe[z]=W,W=>fe?.[W],()=>[Ie])});var me=re(L,2);se(me,17,()=>n(_),ae,(Y,le)=>{vi(Y,{get chunk(){return n(le)}})});var mt=re(me,2);se(mt,17,()=>n(m),ae,(Y,le)=>{vi(Y,{get chunk(){return n(le)}})});var He=re(N,2);{var Pt=Y=>{pf(Y,{})};ye(He,Y=>{n(f)&&!n(C)&&Y(Pt)})}nt(Z,Y=>r.mainEl=Y,()=>r?.mainEl),Me(Z,()=>qr(V)),oe(()=>{A(Z,1,n(v).main),X=bt(Z,"",X,{"--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(D),"--ec-slot-height":`${n(g)??""}px`,"--ec-slot-width":`${n(c)??""}px`,"--ec-header-height":`${n(H)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`}),A(O,1,n(v).header),A(P,1,n(v).sidebar),A(J,1,n(v).grid),A(N,1,n(v).body),A(Q,1,n(v).sidebar),A(F,1,n(v).grid),A(B,1,n(v).events)}),or(P,"offsetWidth",Y=>i.sidebarWidth=Y),or(O,"offsetHeight",Y=>b(H,Y)),x(e,Z),Ce()}const kf={createOptions(e){ai(e),$s(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:hr,component:so,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:gt("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:vr,component:so,displayEventEnd:!1,duration:{weeks:1},theme:gt("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:ei,component:oo,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:gt("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){li(e)}};function so(e){return oi(e),oo(e)}function oo(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Vt(r).hidden),bf}const Cf={createOptions(e){ai(e),js(e),_e(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),_e(e,{view:"timeGridWeek"}),_e(e.views,{timeGridDay:{buttonText:hr,component:ao,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:gt("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:vr,component:ao,duration:{weeks:1},theme:gt("ec-time-grid ec-week-view")}})},createParsers(e){li(e)}};function ao(e){return oi(e),ro}function Df(e,t,r){return Da(zl,{target:e,props:{plugins:t,options:r}})}function Ef(e){return Ta(e)}function Tf(e,t){return Df(e,[au,ku,Lu,ju,kf,Cf],t)}return Kn.create=Tf,Kn.destroy=Ef,Object.defineProperty(Kn,Symbol.toStringTag,{value:"Module"}),Kn})({});
6
6
  //# sourceMappingURL=event-calendar.min.js.map