@event-calendar/build 5.2.2 → 5.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* EventCalendar v5.2.
|
|
2
|
+
* EventCalendar v5.2.3
|
|
3
3
|
* https://github.com/vkurko/calendar
|
|
4
4
|
*/
|
|
5
|
-
var EventCalendar=(function(Jn){"use strict";var Ci=Array.isArray,bo=Array.prototype.indexOf,Qn=Array.from,Di=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,ko=Object.getOwnPropertyDescriptors,Co=Object.prototype,Do=Array.prototype,Ei=Object.getPrototypeOf,Ti=Object.isExtensible;const Gt=()=>{};function Eo(e){for(var t=0;t<e.length;t++)e[t]()}function xi(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function To(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 We=2,Er=4,jn=8,Si=1<<24,Pt=16,Mt=32,en=64,$n=128,_t=512,Ve=1024,st=2048,Ct=4096,ot=8192,At=16384,Tr=32768,Yt=65536,Ri=1<<17,Ii=1<<18,pn=1<<19,Li=1<<20,Ot=1<<25,tn=32768,xr=1<<21,Sr=1<<22,qt=1<<23,Ln=Symbol("$state"),xo=Symbol("legacy props"),So=Symbol(""),_n=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Pi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ro(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Io(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Lo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Po(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Mo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ao(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function Oo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function No(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ho(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Wo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Uo=1,zo=2,Mi=4,Vo=8,Bo=16,Go=1,Yo=4,qo=8,Xo=16,Ko=1,Zo=2,Be=Symbol(),Jo="http://www.w3.org/1999/xhtml";function Qo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ai(e){return e===this.v}function jo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Oi(e){return!jo(e,this.v)}let Qf=!1,Ge=null;function yn(e){Ge=e}function ee(e){return Fi().get(e)}function Pn(e,t){return Fi().set(e,t),t}function be(e,t=!1,r){Ge={p:Ge,i:!1,c:null,e:null,s:e,x:null,l:null}}function ke(e){var t=Ge,r=t.e;if(r!==null){t.e=null;for(var i of r)ts(i)}return e!==void 0&&(t.x=e),t.i=!0,Ge=t.p,e??{}}function Ni(){return!0}function Fi(e){return Ge===null&&Pi(),Ge.c??=new Map($o(Ge)||void 0)}function $o(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 Hi(){var e=nn;nn=[],Eo(e)}function rn(e){if(nn.length===0&&!Mn){var t=nn;queueMicrotask(()=>{t===nn&&Hi()})}nn.push(e)}function ea(){for(;nn.length>0;)Hi()}function Wi(e){var t=Te;if(t===null)return he.f|=qt,e;if((t.f&Tr)===0){if((t.f&$n)===0)throw e;t.b.error(e)}else wn(e,t)}function wn(e,t){for(;t!==null;){if((t.f&$n)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const er=new Set;let Le=null,ht=null,vt=[],tr=null,Rr=!1,Mn=!1;class Dt{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){vt=[],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,zi(r.render_effects),zi(r.effects),this.#s?.resolve()),ht=null}#a(t,r){t.f^=Ve;for(var i=t.first;i!==null;){var s=i.f,o=(s&(Mt|en))!==0,l=o&&(s&Ve)!==0,u=l||(s&ot)!==0||this.skipped_effects.has(i);if((i.f&$n)!==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):Hn(i)&&((i.f&Pt)!==0&&this.#i.add(i),Wn(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&st)!==0?this.#i.add(r):(r.f&Ct)!==0&&this.#o.add(r),this.#u(r.deps),qe(r,Ve)}#u(t){if(t!==null)for(const r of t)(r.f&We)===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),ht?.set(t,t.v))}activate(){Le=this,this.apply()}deactivate(){Le===this&&(Le=null,ht=null)}flush(){if(this.activate(),vt.length>0){if(Ui(),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(er.size>1){this.previous.clear();var t=ht,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const o of er){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=vt;vt=[];const f=new Set,d=new Map;for(const c of l)Vi(c,u,f,d);if(vt.length>0){Le=o,o.apply();for(const c of vt)o.#a(c,i);o.deactivate()}vt=s}}Le=null,ht=t}this.committed=!0,er.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,st),sn(t);for(const t of this.#o)qe(t,Ct),sn(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#s??=xi()).promise}static ensure(){if(Le===null){const t=Le=new Dt;er.add(Le),Mn||Dt.enqueue(()=>{Le===t&&t.flush()})}return Le}static enqueue(t){rn(t)}apply(){}}function ta(e){var t=Mn;Mn=!0;try{for(var r;;){if(ea(),vt.length===0&&(Le?.flush(),vt.length===0))return tr=null,r;Ui()}}finally{Mn=t}}function Ui(){var e=ln;Rr=!0;var t=null;try{var r=0;for(sr(!0);vt.length>0;){var i=Dt.ensure();if(r++>1e3){var s,o;na()}i.process(vt),Xt.clear()}}finally{Rr=!1,sr(e),tr=null}}function na(){try{Mo()}catch(e){wn(e,tr)}}let Nt=null;function zi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(At|ot))===0&&Hn(i)&&(Nt=new Set,Wn(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?ss(i):i.fn=null),Nt?.size>0)){Xt.clear();for(const s of Nt){if((s.f&(At|ot))!==0)continue;const o=[s];let l=s.parent;for(;l!==null;)Nt.has(l)&&(Nt.delete(l),o.push(l)),l=l.parent;for(let u=o.length-1;u>=0;u--){const f=o[u];(f.f&(At|ot))===0&&Wn(f)}}Nt.clear()}}Nt=null}}function Vi(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&We)!==0?Vi(s,t,r,i):(o&(Sr|Pt))!==0&&(o&st)===0&&Bi(s,t,i)&&(qe(s,st),sn(s))}}function Bi(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&We)!==0&&Bi(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function sn(e){for(var t=tr=e;t.parent!==null;){t=t.parent;var r=t.f;if(Rr&&t===Te&&(r&Pt)!==0&&(r&Ii)===0)return;if((r&(en|Mt))!==0){if((r&Ve)===0)return;t.f^=Ve}}vt.push(t)}function ra(e){let t=0,r=Kt(0),i;return()=>{On()&&(n(r),ns(()=>(t===0&&(i=$(()=>e(()=>Et(r)))),t+=1,()=>{rn(()=>{t-=1,t===0&&(i?.(),i=void 0,Et(r))})})))}}var ia=Yt|pn|$n;function sa(e,t,r){new oa(e,t,r)}class oa{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=ra(()=>(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=Nn(()=>{Te.b=this;{var s=this.#p();try{this.#o=at(()=>i(s))}catch(o){this.error(o)}this.#c>0?this.#m():this.#e=!1}return()=>{this.#f?.remove()}},ia)}#w(){try{this.#o=at(()=>this.#s(this.#t))}catch(t){this.error(t)}this.#e=!1}#b(){const t=this.#r.pending;t&&(this.#a=at(()=>t(this.#t)),Dt.enqueue(()=>{var r=this.#p();this.#o=this.#g(()=>(Dt.ensure(),at(()=>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=Ft(),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=he,s=Ge;xt(this.#i),nt(this.#i),yn(this.#i.ctx);try{return t()}catch(o){return Wi(o),null}finally{xt(r),nt(i),yn(s)}}#m(){const t=this.#r.pending;this.#o!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),ls(this.#o,this.#u)),this.#a===null&&(this.#a=at(()=>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&&bn(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&&(je(this.#o),this.#o=null),this.#a&&(je(this.#a),this.#a=null),this.#l&&(je(this.#l),this.#l=null);var s=!1,o=!1;const l=()=>{if(s){Qo();return}s=!0,o&&Wo(),Dt.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,at(()=>this.#s(this.#t)))),this.#c>0?this.#m():this.#e=!1};var u=he;try{nt(null),o=!0,r?.(t,l),o=!1}catch(f){wn(f,this.#i&&this.#i.parent)}finally{nt(u)}i&&rn(()=>{this.#l=this.#g(()=>{Dt.ensure(),this.#v=!0;try{return at(()=>{i(this.#t,()=>t,()=>l)})}catch(f){return wn(f,this.#i.parent),null}finally{this.#v=!1}})})}}function aa(e,t,r,i){const s=rr;if(r.length===0&&e.length===0){i(t.map(s));return}var o=Le,l=Te,u=la();function f(){Promise.all(r.map(d=>ua(d))).then(d=>{u();try{i([...t.map(s),...d])}catch(c){(l.f&At)===0&&wn(c,l)}o?.deactivate(),nr()}).catch(d=>{wn(d,l)})}e.length>0?Promise.all(e).then(()=>{u();try{return f()}finally{o?.deactivate(),nr()}}):f()}function la(){var e=Te,t=he,r=Ge,i=Le;return function(o=!0){xt(e),nt(t),yn(r),o&&i?.activate()}}function nr(){xt(null),nt(null),yn(null)}function rr(e){var t=We|st,r=he!==null&&(he.f&We)!==0?he:null;return Te!==null&&(Te.f|=pn),{ctx:Ge,deps:null,effects:null,equals:Ai,f:t,fn:e,reactions:null,rv:0,v:Be,wv:0,parent:r??Te,ac:null}}function ua(e,t){let r=Te;r===null&&Ro();var i=r.b,s=void 0,o=Kt(Be),l=!he,u=new Map;return pa(()=>{var f=xi();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{d===Le&&d.committed&&d.deactivate(),nr()})}catch(h){f.reject(h),nr()}var d=Le;if(l){var c=!i.is_pending();i.update_pending_count(1),d.increment(c),u.get(d)?.reject(_n),u.delete(d),u.set(d,f)}const g=(h,v=void 0)=>{if(d.activate(),v)v!==_n&&(o.f|=qt,bn(o,v));else{(o.f&qt)!==0&&(o.f^=qt),bn(o,h);for(const[y,_]of u){if(u.delete(y),y===d)break;_.reject(_n)}}l&&(i.update_pending_count(-1),d.decrement(c))};f.promise.then(g,h=>g(null,h||"unknown"))}),Mr(()=>{for(const f of u.values())f.reject(_n)}),new Promise(f=>{function d(c){function g(){c===s?f(o):d(s)}c.then(g,g)}d(s)})}function a(e){const t=rr(e);return fs(t),t}function Gi(e){const t=rr(e);return t.equals=Oi,t}function Yi(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)je(t[r])}}function fa(e){for(var t=e.parent;t!==null;){if((t.f&We)===0)return(t.f&At)===0?t:null;t=t.parent}return null}function Ir(e){var t,r=Te;xt(fa(e));try{e.f&=~tn,Yi(e),t=gs(e)}finally{xt(r)}return t}function qi(e){var t=Ir(e);if(e.equals(t)||(Le?.is_fork||(e.v=t),e.wv=hs()),!un)if(ht!==null)(On()||Le?.is_fork)&&ht.set(e,t);else{var r=(e.f&_t)===0?Ct:Ve;qe(e,r)}}let Lr=new Set;const Xt=new Map;let Xi=!1;function Kt(e,t){var r={f:0,v:e,reactions:null,equals:Ai,rv:0,wv:0};return r}function Z(e,t){const r=Kt(e);return fs(r),r}function Ki(e,t=!1,r=!0){const i=Kt(e);return t||(i.equals=Oi),i}function b(e,t,r=!1){he!==null&&(!Tt||(he.f&Ri)!==0)&&Ni()&&(he.f&(We|Pt|Sr|Ri))!==0&&!Ht?.includes(e)&&Ho();let i=r?tt(t):t;return bn(e,i)}function bn(e,t){if(!e.equals(t)){var r=e.v;un?Xt.set(e,t):Xt.set(e,r),e.v=t;var i=Dt.ensure();i.capture(e,r),(e.f&We)!==0&&((e.f&st)!==0&&Ir(e),qe(e,(e.f&_t)!==0?Ve:Ct)),e.wv=hs(),Zi(e,st),Te!==null&&(Te.f&Ve)!==0&&(Te.f&(Mt|en))===0&&(gt===null?ba([e]):gt.push(e)),!i.is_fork&&Lr.size>0&&!Xi&&da()}return t}function da(){Xi=!1;var e=ln;sr(!0);const t=Array.from(Lr);try{for(const r of t)(r.f&Ve)!==0&&qe(r,Ct),Hn(r)&&Wn(r)}finally{sr(e)}Lr.clear()}function Et(e){b(e,e.v+1)}function Zi(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&st)===0;if(u&&qe(o,t),(l&We)!==0){var f=o;ht?.delete(f),(l&tn)===0&&(l&_t&&(o.f|=tn),Zi(f,Ct))}else u&&((l&Pt)!==0&&Nt!==null&&Nt.add(o),sn(o))}}function tt(e){if(typeof e!="object"||e===null||Ln in e)return e;const t=Ei(e);if(t!==Co&&t!==Do)return e;var r=new Map,i=Ci(e),s=Z(0),o=Wt,l=u=>{if(Wt===o)return u();var f=he,d=Wt;nt(null),cs(o);var c=u();return nt(f),cs(d),c};return i&&r.set("length",Z(e.length)),new Proxy(e,{defineProperty(u,f,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&No();var c=r.get(f);return c===void 0?c=l(()=>{var g=Z(d.value);return r.set(f,g),g}):b(c,d.value,!0),!0},deleteProperty(u,f){var d=r.get(f);if(d===void 0){if(f in u){const c=l(()=>Z(Be));r.set(f,c),Et(s)}}else b(d,Be),Et(s);return!0},get(u,f,d){if(f===Ln)return e;var c=r.get(f),g=f in u;if(c===void 0&&(!g||mn(u,f)?.writable)&&(c=l(()=>{var v=tt(g?u[f]:Be),y=Z(v);return y}),r.set(f,c)),c!==void 0){var h=n(c);return h===Be?void 0:h}return Reflect.get(u,f,d)},getOwnPropertyDescriptor(u,f){var d=Reflect.getOwnPropertyDescriptor(u,f);if(d&&"value"in d){var c=r.get(f);c&&(d.value=n(c))}else if(d===void 0){var g=r.get(f),h=g?.v;if(g!==void 0&&h!==Be)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return d},has(u,f){if(f===Ln)return!0;var d=r.get(f),c=d!==void 0&&d.v!==Be||Reflect.has(u,f);if(d!==void 0||Te!==null&&(!c||mn(u,f)?.writable)){d===void 0&&(d=l(()=>{var h=c?tt(u[f]):Be,v=Z(h);return v}),r.set(f,d));var g=n(d);if(g===Be)return!1}return c},set(u,f,d,c){var g=r.get(f),h=f in u;if(i&&f==="length")for(var v=d;v<g.v;v+=1){var y=r.get(v+"");y!==void 0?b(y,Be):v in u&&(y=l(()=>Z(Be)),r.set(v+"",y))}if(g===void 0)(!h||mn(u,f)?.writable)&&(g=l(()=>Z(void 0)),b(g,tt(d)),r.set(f,g));else{h=g.v!==Be;var _=l(()=>tt(d));b(g,_)}var m=Reflect.getOwnPropertyDescriptor(u,f);if(m?.set&&m.set.call(c,d),!h){if(i&&typeof f=="string"){var p=r.get("length"),k=Number(f);Number.isInteger(k)&&k>=p.v&&b(p,k+1)}Et(s)}return!0},ownKeys(u){n(s);var f=Reflect.ownKeys(u).filter(g=>{var h=r.get(g);return h===void 0||h.v!==Be});for(var[d,c]of r)c.v!==Be&&!(d in u)&&f.push(d);return f},setPrototypeOf(){Fo()}})}var yt,Ji,Qi,ji;function ca(){if(yt===void 0){yt=window,Ji=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Qi=mn(t,"firstChild").get,ji=mn(t,"nextSibling").get,Ti(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ti(r)&&(r.__t=void 0)}}function Ft(e=""){return document.createTextNode(e)}function ir(e){return Qi.call(e)}function An(e){return ji.call(e)}function ue(e,t){return ir(e)}function J(e,t=!1){{var r=ir(e);return r instanceof Comment&&r.data===""?An(r):r}}function re(e,t=1,r=!1){let i=e;for(;t--;)i=An(i);return i}function ha(e){e.textContent=""}function $i(){return!1}function va(e,t){{const r=document.body;e.autofocus=!0,rn(()=>{document.activeElement===r&&e.focus()})}}function Pr(e){var t=he,r=Te;nt(null),xt(null);try{return e()}finally{nt(t),xt(r)}}function es(e){Te===null&&(he===null&&Po(),Lo()),un&&Io()}function ga(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&ot)!==0&&(e|=ot);var s={ctx:Ge,deps:null,nodes:null,f:e|st|_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{Wn(s),s.f|=Tr}catch(u){throw je(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&pn)===0&&(o=o.first,(e&Pt)!==0&&(e&Yt)!==0&&o!==null&&(o.f|=Yt)),o!==null&&(o.parent=i,i!==null&&ga(o,i),he!==null&&(he.f&We)!==0&&(e&en)===0)){var l=he;(l.effects??=[]).push(o)}return s}function On(){return he!==null&&!Tt}function Mr(e){const t=wt(jn,null,!1);return qe(t,Ve),t.teardown=e,t}function Ye(e){es();var t=Te.f,r=!he&&(t&Mt)!==0&&(t&Tr)===0;if(r){var i=Ge;(i.e??=[]).push(e)}else return ts(e)}function ts(e){return wt(Er|Li,e,!1)}function on(e){return es(),wt(jn|Li,e,!0)}function ma(e){Dt.ensure();const t=wt(en|pn,e,!0);return(r={})=>new Promise(i=>{r.outro?an(t,()=>{je(t),i(void 0)}):(je(t),i(void 0))})}function Ar(e){return wt(Er,e,!1)}function pa(e){return wt(Sr|pn,e,!0)}function ns(e,t=0){return wt(jn|t,e,!0)}function se(e,t=[],r=[],i=[]){aa(i,t,r,s=>{wt(jn,()=>e(...s.map(n)),!0)})}function Nn(e,t=0){var r=wt(Pt|t,e,!0);return r}function _a(e,t=0){var r=wt(Si|t,e,!0);return r}function at(e){return wt(Mt|pn,e,!0)}function rs(e){var t=e.teardown;if(t!==null){const r=un,i=he;us(!0),nt(null);try{t.call(null)}finally{us(r),nt(i)}}}function is(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Pr(()=>{s.abort(_n)});var i=r.next;(r.f&en)!==0?r.parent=null:je(r,t),r=i}}function ya(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Mt)===0&&je(t),t=r}}function je(e,t=!0){var r=!1;(t||(e.f&Ii)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(wa(e.nodes.start,e.nodes.end),r=!0),is(e,t&&!r),or(e,0),qe(e,At);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();rs(e);var s=e.parent;s!==null&&s.first!==null&&ss(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function wa(e,t){for(;e!==null;){var r=e===t?null:An(e);e.remove(),e=r}}function ss(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=[];os(e,i,!0);var s=()=>{r&&je(e),t&&t()},o=i.length;if(o>0){var l=()=>--o||s();for(var u of i)u.out(l)}else s()}function os(e,t,r){if((e.f&ot)===0){e.f^=ot;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&Yt)!==0||(s.f&Mt)!==0&&(e.f&Pt)!==0;os(s,t,l?r:!1),s=o}}}function Or(e){as(e,!0)}function as(e,t){if((e.f&ot)!==0){e.f^=ot,(e.f&Ve)===0&&(qe(e,st),sn(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Yt)!==0||(r.f&Mt)!==0;as(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 ls(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:An(r);t.append(r),r=s}}let ln=!1;function sr(e){ln=e}let un=!1;function us(e){un=e}let he=null,Tt=!1;function nt(e){he=e}let Te=null;function xt(e){Te=e}let Ht=null;function fs(e){he!==null&&(Ht===null?Ht=[e]:Ht.push(e))}let $e=null,lt=0,gt=null;function ba(e){gt=e}let ds=1,Fn=0,Wt=Fn;function cs(e){Wt=e}function hs(){return++ds}function Hn(e){var t=e.f;if((t&st)!==0)return!0;if(t&We&&(e.f&=~tn),(t&Ct)!==0){var r=e.deps;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s];if(Hn(o)&&qi(o),o.wv>e.wv)return!0}(t&_t)!==0&&ht===null&&qe(e,Ve)}return!1}function vs(e,t,r=!0){var i=e.reactions;if(i!==null&&!Ht?.includes(e))for(var s=0;s<i.length;s++){var o=i[s];(o.f&We)!==0?vs(o,t,!1):t===o&&(r?qe(o,st):(o.f&Ve)!==0&&qe(o,Ct),sn(o))}}function gs(e){var t=$e,r=lt,i=gt,s=he,o=Ht,l=Ge,u=Tt,f=Wt,d=e.f;$e=null,lt=0,gt=null,he=(d&(Mt|en))===0?e:null,Ht=null,yn(e.ctx),Tt=!1,Wt=++Fn,e.ac!==null&&(Pr(()=>{e.ac.abort(_n)}),e.ac=null);try{e.f|=xr;var c=e.fn,g=c(),h=e.deps;if($e!==null){var v;if(or(e,lt),h!==null&<>0)for(h.length=lt+$e.length,v=0;v<$e.length;v++)h[lt+v]=$e[v];else e.deps=h=$e;if(On()&&(e.f&_t)!==0)for(v=lt;v<h.length;v++)(h[v].reactions??=[]).push(e)}else h!==null&<<h.length&&(or(e,lt),h.length=lt);if(Ni()&>!==null&&!Tt&&h!==null&&(e.f&(We|Ct|st))===0)for(v=0;v<gt.length;v++)vs(gt[v],e);return s!==null&&s!==e&&(Fn++,gt!==null&&(i===null?i=gt:i.push(...gt))),(e.f&qt)!==0&&(e.f^=qt),g}catch(y){return Wi(y)}finally{e.f^=xr,$e=t,lt=r,gt=i,he=s,Ht=o,yn(l),Tt=u,Wt=f}}function ka(e,t){let r=t.reactions;if(r!==null){var i=bo.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&We)!==0&&($e===null||!$e.includes(t))&&(qe(t,Ct),(t.f&_t)!==0&&(t.f^=_t,t.f&=~tn),Yi(t),or(t,0))}function or(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)ka(e,r[i])}function Wn(e){var t=e.f;if((t&At)===0){qe(e,Ve);var r=Te,i=ln;Te=e,ln=!0;try{(t&(Pt|Si))!==0?ya(e):is(e),rs(e);var s=gs(e);e.teardown=typeof s=="function"?s:null,e.wv=ds;var o}finally{ln=i,Te=r}}}async function kn(){await Promise.resolve(),ta()}function n(e){var t=e.f,r=(t&We)!==0;if(he!==null&&!Tt){var i=Te!==null&&(Te.f&At)!==0;if(!i&&!Ht?.includes(e)){var s=he.deps;if((he.f&xr)!==0)e.rv<Fn&&(e.rv=Fn,$e===null&&s!==null&&s[lt]===e?lt++:$e===null?$e=[e]:$e.includes(e)||$e.push(e));else{(he.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[he]:o.includes(he)||o.push(he)}}}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||ps(l))&&(u=Ir(l)),Xt.set(l,u),u}}else r&&(!ht?.has(e)||Le?.is_fork&&!On())&&(l=e,Hn(l)&&qi(l),ln&&On()&&(l.f&_t)===0&&ms(l));if(ht?.has(e))return ht.get(e);if((e.f&qt)!==0)throw e.v;return e.v}function ms(e){if(e.deps!==null){e.f^=_t;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&We)!==0&&(t.f&_t)===0&&ms(t)}}function ps(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&We)!==0&&ps(t))return!0;return!1}function $(e){var t=Tt;try{return Tt=!0,e()}finally{Tt=t}}const Ca=-7169;function qe(e,t){e.f=e.f&Ca|t}const Da=["touchstart","touchmove"];function Ea(e){return Da.includes(e)}const _s=new Set,Nr=new Set;function Ta(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 ut(e,t,r,i,s){var o={capture:i,passive:s},l=Ta(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++)_s.add(e[t]);for(var r of Nr)r(e)}let ys=null;function Un(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;ys=e;var l=0,u=ys===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){Di(e,"currentTarget",{configurable:!0,get(){return o||r}});var c=he,g=Te;nt(null),xt(null);try{for(var h,v=[];o!==null;){var y=o.assignedSlot||o.parentNode||o.host||null;try{var _=o["__"+i];_!=null&&(!o.disabled||e.target===o)&&_.call(o,e)}catch(m){h?v.push(m):h=m}if(e.cancelBubble||y===t||y===null)break;o=y}if(h){for(let m of v)queueMicrotask(()=>{throw m});throw h}}finally{e.__root=t,delete e.currentTarget,nt(c),xt(g)}}}function xa(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ar(e,t){var r=Te;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Q(e,t){var r=(t&Ko)!==0,i=(t&Zo)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=xa(o?e:"<!>"+e),r||(s=ir(s)));var l=i||Ji?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=ir(l),f=l.lastChild;ar(u,f)}else ar(l,l);return l}}function ws(e=""){{var t=Ft(e+"");return ar(t,t),t}}function de(){var e=document.createDocumentFragment(),t=document.createComment(""),r=Ft();return e.append(t,r),ar(t,r),e}function x(e,t){e!==null&&e.before(t)}function bs(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Sa(e,t){return Ra(e,t)}const Cn=new Map;function Ra(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0}){ca();var u=new Set,f=g=>{for(var h=0;h<g.length;h++){var v=g[h];if(!u.has(v)){u.add(v);var y=Ea(v);t.addEventListener(v,Un,{passive:y});var _=Cn.get(v);_===void 0?(document.addEventListener(v,Un,{passive:y}),Cn.set(v,1)):Cn.set(v,_+1)}}};f(Qn(_s)),Nr.add(f);var d=void 0,c=ma(()=>{var g=r??t.appendChild(Ft());return sa(g,{pending:()=>{}},h=>{if(o){be({});var v=Ge;v.c=o}s&&(i.$$events=s),d=e(h,i)||{},o&&ke()}),()=>{for(var h of u){t.removeEventListener(h,Un);var v=Cn.get(h);--v===0?(document.removeEventListener(h,Un),Cn.delete(h)):Cn.set(h,v)}Nr.delete(f),g!==r&&g.parentNode?.removeChild(g)}});return Fr.set(d,c),d}let Fr=new WeakMap;function Ia(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&&(je(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();ls(l,d),d.append(Ft()),this.#n.set(o,{effect:l,fragment:d})}else je(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)||(je(s.effect),this.#n.delete(i))};ensure(t,r){var i=Le,s=$i();if(r&&!this.#t.has(t)&&!this.#n.has(t))if(s){var o=document.createDocumentFragment(),l=Ft();o.append(l),this.#n.set(t,{effect:at(()=>r(l)),fragment:o})}else this.#t.set(t,at(()=>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 ve(e,t,r=!1){var i=new Hr(e),s=r?Yt:0;function o(l,u){i.ensure(l,u)}Nn(()=>{var l=!1;t((u,f=!0)=>{l=!0,o(f,u)}),l||o(!1,null)},s)}function De(e,t){return t}function La(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 h=e.outrogroups;Wr(Qn(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var f=i.length===0&&r!==null;if(f){var d=r,c=d.parentNode;ha(c),c.append(d),e.items.clear()}Wr(t,!f)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Wr(e,t=!0){for(var r=0;r<e.length;r++)je(e[r],t)}var ks;function oe(e,t,r,i,s,o=null){var l=e,u=new Map,f=(t&Mi)!==0;if(f){var d=e;l=d.appendChild(Ft())}var c=null,g=Gi(()=>{var p=r();return Ci(p)?p:p==null?[]:Qn(p)}),h,v=!0;function y(){m.fallback=c,Pa(m,h,l,t,i),c!==null&&(h.length===0?(c.f&Ot)===0?Or(c):(c.f^=Ot,zn(c,null,l)):an(c,()=>{c=null}))}var _=Nn(()=>{h=n(g);for(var p=h.length,k=new Set,S=Le,E=$i(),D=0;D<p;D+=1){var w=h[D],C=i(w,D),M=v?null:u.get(C);M?(M.v&&bn(M.v,w),M.i&&bn(M.i,D),E&&S.skipped_effects.delete(M.e)):(M=Ma(u,v?l:ks??=Ft(),w,C,D,s,t,r),v||(M.e.f|=Ot),u.set(C,M)),k.add(C)}if(p===0&&o&&!c&&(v?c=at(()=>o(l)):(c=at(()=>o(ks??=Ft())),c.f|=Ot)),!v)if(E){for(const[X,L]of u)k.has(X)||S.skipped_effects.add(L.e);S.oncommit(y),S.ondiscard(()=>{})}else y();n(g)}),m={effect:_,items:u,outrogroups:null,fallback:c};v=!1}function Pa(e,t,r,i,s){var o=(i&Vo)!==0,l=t.length,u=e.items,f=e.effect.first,d,c=null,g,h=[],v=[],y,_,m,p;if(o)for(p=0;p<l;p+=1)y=t[p],_=s(y,p),m=u.get(_).e,(m.f&Ot)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(p=0;p<l;p+=1){if(y=t[p],_=s(y,p),m=u.get(_).e,e.outrogroups!==null)for(const L of e.outrogroups)L.pending.delete(m),L.done.delete(m);if((m.f&Ot)!==0)if(m.f^=Ot,m===f)zn(m,null,r);else{var k=c?c.next:f;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Jt(e,c,m),Jt(e,m,k),zn(m,k,r),c=m,h=[],v=[],f=c.next;continue}if((m.f&ot)!==0&&(Or(m),o&&(m.nodes?.a?.unfix(),(g??=new Set).delete(m))),m!==f){if(d!==void 0&&d.has(m)){if(h.length<v.length){var S=v[0],E;c=S.prev;var D=h[0],w=h[h.length-1];for(E=0;E<h.length;E+=1)zn(h[E],S,r);for(E=0;E<v.length;E+=1)d.delete(v[E]);Jt(e,D.prev,w.next),Jt(e,c,D),Jt(e,w,S),f=S,c=w,p-=1,h=[],v=[]}else d.delete(m),zn(m,f,r),Jt(e,m.prev,m.next),Jt(e,m,c===null?e.effect.first:c.next),Jt(e,c,m),c=m;continue}for(h=[],v=[];f!==null&&f!==m;)(d??=new Set).add(f),v.push(f),f=f.next;if(f===null)continue}(m.f&Ot)===0&&h.push(m),c=m,f=m.next}if(e.outrogroups!==null){for(const L of e.outrogroups)L.pending.size===0&&(Wr(Qn(L.done)),e.outrogroups?.delete(L));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||d!==void 0){var C=[];if(d!==void 0)for(m of d)(m.f&ot)===0&&C.push(m);for(;f!==null;)(f.f&ot)===0&&f!==e.fallback&&C.push(f),f=f.next;var M=C.length;if(M>0){var X=(i&Mi)!==0&&l===0?r:null;if(o){for(p=0;p<M;p+=1)C[p].nodes?.a?.measure();for(p=0;p<M;p+=1)C[p].nodes?.a?.fix()}La(e,C,X)}}o&&rn(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function Ma(e,t,r,i,s,o,l,u){var f=(l&Uo)!==0?(l&Bo)===0?Ki(r,!1,!1):Kt(r):null,d=(l&zo)!==0?Kt(s):null;return{v:f,i:d,e:at(()=>(o(t,f??r,d??s,u),()=>{e.delete(i)}))}}function zn(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&Ot)===0?t.nodes.start:r;i!==null;){var l=An(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 Ut(e,t,...r){var i=new Hr(e);Nn(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Yt)}function Ur(e,t,r){var i=new Hr(e);Nn(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Yt)}function Me(e,t){var r=void 0,i;_a(()=>{r!==(r=t())&&(i&&(je(i),i=null),r&&(i=at(()=>{Ar(()=>r(e))})))})}function Cs(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=Cs(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Aa(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Cs(e))&&(i&&(i+=" "),i+=t);return i}function St(e){return typeof e=="object"?Aa(e):e??""}function Oa(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function Ds(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 Na(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,c=-1;const _=e.length;for(var g=0;g<_;g++){var h=e[g];if(u?h==="/"&&e[g-1]==="*"&&(u=!1):o?o===h&&(o=!1):h==="/"&&e[g+1]==="*"?u=!0:h==='"'||h==="'"?o=h:h==="("?l++:h===")"&&l--,!u&&o===!1&&l===0){if(h===":"&&c===-1)c=g;else if(h===";"||g===_-1){if(c!==-1){var v=zr(e.substring(d,c).trim());if(!f.includes(v)){h!==";"&&g++;var y=e.substring(d,g).trim();r+=" "+y+";"}}d=g+1,c=-1}}}}return i&&(r+=Ds(i)),s&&(r+=Ds(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function O(e,t,r,i,s,o){var l=e.__className;if(l!==r||l===void 0){var u=Oa(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=Na(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 Fa=Symbol("is custom element"),Ha=Symbol("is html");function Pe(e,t,r,i){var s=Wa(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[So]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ua(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Wa(e){return e.__attributes??={[Fa]:e.nodeName.includes("-"),[Ha]:e.namespaceURI===Jo}}var Es=new Map;function Ua(e){var t=e.getAttribute("is")||e.nodeName,r=Es.get(t);if(r)return r;Es.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=ko(s);for(var l in i)i[l].set&&r.push(l);s=Ei(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 za=new Br({box:"border-box"});function lr(e,t,r){var i=za.observe(e,()=>r(e[t]));Ar(()=>($(()=>r(e[t])),i))}function Ts(e,t){return e===t||e?.[Ln]===t}function rt(e={},t,r,i){return Ar(()=>{var s,o;return ns(()=>{s=o,o=i?.()||[],$(()=>{e!==r(...o)&&(t(e,...o),s&&Ts(r(...s),e)&&t(null,...s))})}),()=>{rn(()=>{o&&Ts(r(...o),e)&&t(null,...o)})}}),e}function xs(e,t,r){if(e==null)return t(void 0),Gt;const i=$(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}function Va(e){let t;return xs(e,r=>t=r)(),t}let ur=!1,Gr=Symbol();function Ba(e,t,r){const i=r[t]??={store:null,source:Ki(void 0),unsubscribe:Gt};if(i.store!==e&&!(Gr in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=Gt;else{var s=!0;i.unsubscribe=xs(e,o=>{s?i.source.v=o:b(i.source,o)}),s=!1}return e&&Gr in r?Va(e):n(i.source)}function Ga(){const e={};function t(){Mr(()=>{for(var r in e)e[r].unsubscribe();Di(e,Gr,{enumerable:!1,value:!0})})}return[e,t]}function Ya(e){var t=ur;try{return ur=!1,[e(),ur]}finally{ur=t}}function Ee(e,t,r,i){var s=(r&qo)!==0,o=(r&Xo)!==0,l=i,u=!0,f=()=>(u&&(u=!1,l=o?$(i):i),l),d;if(s){var c=Ln in e||xo in e;d=mn(e,t)?.set??(c&&t in e?k=>e[t]=k:void 0)}var g,h=!1;s?[g,h]=Ya(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=f(),d&&(Oo(),d(g)));var v;if(v=()=>{var k=e[t];return k===void 0?f():(u=!0,k)},(r&Yo)===0)return v;if(d){var y=e.$$legacy;return(function(k,S){return arguments.length>0?((!S||y||h)&&d(S?v():k),k):v()})}var _=!1,m=((r&Go)!==0?rr:Gi)(()=>(_=!1,v()));s&&n(m);var p=Te;return(function(k,S){if(arguments.length>0){const E=S?n(m):s?tt(k):k;return b(m,E),_=!0,l!==void 0&&(l=E),k}return un&&_||(p.f&At)!==0?m.v:n(m)})}function qa(){return he===null&&Ao(),(he.ac??=new AbortController).signal}function Vn(e){Ge===null&&Pi(),Ye(()=>{const t=$(e);if(typeof t=="function")return t})}const Xa="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Xa);function Yr(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 Ka(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 Ss(e,t){return r=>{let i=new IntersectionObserver(s=>{for(let o of s)e(r,o)},t);return i.observe(r),()=>{i.unobserve(r)}}}function ge(...e){return Object.assign(...e)}function fn(e){return Object.keys(e)}function Rs(e){return Object.entries(e)}function Xr(e){return Math.floor(e)}function Za(e){return Math.ceil(e)}function Rt(...e){return Math.min(...e)}function ft(...e){return Math.max(...e)}function Ja(){return Symbol("ec")}function Kr(e){return Array.isArray(e)}function Ce(e){return typeof e=="function"}function Qa(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Zr(e){return e instanceof Date}function ja(e){return e()}function $a(e){e.forEach(ja)}function el(){}const fr=e=>e;function Jr(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function dn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const dr=86400;function It(e=void 0){return e!==void 0?Zr(e)?As(e):rl(e):As(new Date)}function Fe(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let r=0,i=2;for(let s of e.split(":",3))r+=parseInt(s,10)*Math.pow(60,i--);e={seconds:r}}else Zr(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function q(e){return new Date(e.getTime())}function Se(e,t,r=1){e.setUTCFullYear(e.getUTCFullYear()+r*t.years);let i=e.getUTCMonth()+r*t.months;for(e.setUTCMonth(i),i%=12,i<0&&(i+=12);e.getUTCMonth()!==i;)Dn(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function cr(e,t,r=1){return Se(e,t,-r)}function kt(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function Dn(e,t=1){return kt(e,-t)}function zt(e){return e.setUTCHours(0,0,0,0),e}function He(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function dt(e,t=19){return e.toISOString().substring(0,t)}function Ke(e,...t){return t.every(r=>e.getTime()===r.getTime())}function tl(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Is(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function Ls(e){return typeof e=="string"&&e.length<=10}function Qr(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function _e(e){return e.seconds}function Ps(e,t){return Se(e,t),e}function Ms(e,t,r){if(cr(e,t),r.length&&r.length<7)for(;r.includes(e.getUTCDay());)Dn(e);return e}function nl(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/dr+1)/7)}function As(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function rl(e){const t=e.match(/\d+/g);return new Date(Date.UTC(Number(t[0]),Number(t[1])-1,Number(t[2]),Number(t[3]||0),Number(t[4]||0),Number(t[5]||0)))}let jr=Ja();function Os(e,t){e[jr]=t}function il(e){return!!e?.[jr]}function Vt(e){return e[jr]}function Ns(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 Fs(e,t){for(;t--;)e=e.parentElement;return e}function cn(e){return Qt(e).height}function En(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(il(s))return s;if(s.shadowRoot&&!i.includes(s.shadowRoot)){let o=En(e,t,s.shadowRoot,i);if(o)return o}}return null}function Bn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function sl(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 Ze(e){return e=ge({},e),e.currentStart=He(e.currentStart),e.currentEnd=He(e.currentEnd),e.activeStart=He(e.activeStart),e.activeEnd=He(e.activeEnd),e}let ol=1;function hr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${ol++}}`,resourceIds:$r(t,"resourceId").map(String),allDay:t.allDay??(Ls(t.start)&&Ls(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:$r(t,"className"),styles:$r(t,"style")};if(r.allDay){zt(r.start);let i=q(r.end);zt(r.end),(!Ke(r.end,i)||Ke(r.end,r.start))&&kt(r.end)}return r})}function $r(e,t){let r=e[t+"s"]??e[t]??[];return Kr(r)?r:[r]}function al(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 ll(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?Qr(q(e.start),e.end):e.start),u;if(r&&(u=Ce(r)?r({event:Ue(e.event),timeText:l,view:Ze(o)}):r),u===void 0){let f;switch(e.event.display){case"background":f=[];break;case"pointer":f=e.event.allDay?[]:[Hs(l,e,i)];break;default:f=[...e.event.allDay?[]:[Hs(l,e,i)],Ns("h4",i.eventTitle,e.event.title)]}u={domNodes:f}}return[l,u]}function Hs(e,t,r){return Ns("time",r.eventTime,e,[["datetime",dt(t.start)]])}function ul(e,t,r){let i=t.classNames;return e&&(Ce(e)&&(e=e({event:Ue(t),view:Ze(r)})),i=[...Kr(e)?e:[e],...i]),i}function Ue(e){return Ws(e,He)}function ei(e){return Ws(e,q)}function Ws(e,t){return e=ge({},e),e.start=t(e.start),e.end=t(e.end),e}function ti(e,t){e.length=t.length;for(let r of e)r?.reposition()}function Tn(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function vr(e){return fl(e)||dl(e)||cl(e)}function mt(e){return e==="background"}function fl(e){return e==="preview"}function dl(e){return e==="ghost"}function cl(e){return e==="pointer"}function Gn(e,t,r){return t=e.start>t?e.start:t,r=e.end<r?e.end:r,{start:t,end:r,event:e,zeroDuration:Ke(t,r)}}function xn(e,t,r=!0){let i=[],s,o,l;for(let{gridColumn:u,gridRow:f,resource:d,dayStart:c,dayEnd:g,disabled:h}of t)!h&&Tn(e,c,g,d)&&(i.push(c),s=g,o||(o=u,l=f));if(i.length){let u=Gn(e,i[0],s);return ge(u,{gridColumn:o,gridRow:l,dates:i}),r&&ni(u),[u]}return[]}function Us(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 zs(e,t,r=1){e.prev&&(r=e.prev.bottom+1);let i=r+t;if(e.long){let s=e.long;s.sorted||(s.chunks.sort((o,l)=>o.top-l.top),s.sorted=!0);for(let o of s.chunks)if(r<o.bottom&&i>o.top){let l=o.bottom-r+1;r+=l,i+=l}}return ge(e,{top:r,bottom:i}),r}const Vs=new WeakMap;let hl=1;function ni(e){let{event:t,gridColumn:r,gridRow:i}=e,s=Vs.get(t);s||(s=hl++,Vs.set(t,s)),e.id=`${s}-${r}-${i}`}function hn(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return $(()=>{s=Ce(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(He(o))}}}function Bs(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return $(()=>{if(Ce(i))s=i;else{let o=new Intl.DateTimeFormat(r,i);s=(l,u)=>{if(l<=u)return o.formatRange(l,u);{let f=o.formatRangeToParts(u,l),d="",c=["startRange","endRange"],g=[!1,!1];for(let h of f){let v=c.indexOf(h.source);v>=0?g[v]||(d+=vl(c[1-v],f),g[v]=!0):d+=h.value}return d}}}}),{formatRange:(o,l)=>s(He(o),He(l))}}}function vl(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function Yn(e){return gr(e,"day")}function qn(e){return gr(e,"week")}function ri(e){return gr(e,"month")}function gl(e){return gr(e,"year")}function gr(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function it(e){return t=>({...t,view:e})}function ml(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=zt(It(t))),r&&(r=zt(It(r)))),{start:t,end:r}}function Sn(e,t){return t.start&&e<t.start||t.end&&e>t.end}function Gs(e){let t=[];return Ys(e,0,t),t}function Ys(e,t,r){let i=[];for(let s of e){let o=pl(s);i.push(o),r.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};Os(o,l),s.children&&(l.children=Ys(s.children,t+1,r))}return i}function pl(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:e.eventBackgroundColor,eventTextColor:e.eventTextColor,extendedProps:e.extendedProps??{}}}function _l(e,t){return qs(e,t)?.eventBackgroundColor}function yl(e,t){return qs(e,t)?.eventTextColor}function qs(e,t){return t.find(r=>e.resourceIds.includes(r.id))}function Xs(e,t,r,i,s){let o=[];e=q(e);let l=q(e);for(Se(e,i.min),Se(l,i.max);e<l;)o.push([dt(e),s.format(e)]),Se(e,t,r);let u=Xr((e-l)/1e3/_e(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function Ks(e,t,r,i,s){let o=Fe(e),l=Fe(t);if(r){let u=Fe(Rt(_e(o),ft(0,_e(l)-dr))),f=Fe(ft(_e(l),_e(u)+dr)),d=Ce(r?.eventFilter)?r.eventFilter:c=>!mt(c.display);e:for(let c of i){let g=Se(q(c),o),h=Se(q(c),l),v=Se(q(c),u),y=Se(q(c),f);for(let _ of s)if(!_.allDay&&d(_)&&_.start<y&&_.end>v){if(_.start<g){let m=ft((_.start-c)/1e3,_e(u));m<_e(o)&&(o.seconds=m)}if(_.end>h){let m=Rt((_.end-c)/1e3,_e(f));m>_e(l)&&(l.seconds=m)}if(_e(o)===_e(u)&&_e(l)===_e(f))break e}}}return{min:o,max:l}}class ii extends Map{#e=new Map;#t=Z(0);#n=Z(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?Z(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),Et(u);else if(o!==r){Et(s);var f=u.reactions===null?null:new Set(u.reactions),d=f===null||!s.reactions?.every(c=>f.has(c));d&&Et(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),Et(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);Et(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 wl(e){let t={buttonText:{today:"today"},customButtons:{},customScrollbars:!1,date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,resources:[],selectable:!1,theme:{active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",colHead:"ec-col-head",customScrollbars:"ec-custom-scrollbars",day:"ec-day",dayHead:"ec-day-head",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",grid:"ec-grid",header:"ec-header",hidden:"ec-hidden",highlight:"ec-highlight",icon:"ec-icon",main:"ec-main",noBeb:"ec-no-beb",noIeb:"ec-no-ieb",today:"ec-today",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"]},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let r of e)r.createOptions?.(t);return t}function bl(e){let t={date:r=>zt(It(r)),duration:Fe,events:hr,eventSources:al,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>zt(It(i))),resources:Gs,validRange:ml};for(let r of e)r.createParsers?.(t);return t}const Zs=["buttonText","customButtons","theme"];function kl(e,t,r){let i=wl(t),s=bl(t);i=si(i,s),r=si(r,s);let o=oi(i,"views")??{},l=oi(r,"views")??{},u=new ii;Qs(u,i);let f={},d={};function c(){r.view&&u.set("view",r.view);let g=new Set([...fn(o),...fn(l)]);for(let h of g){let v=l[h]??{},y=Js(i,o[h]??o[v.type]??{}),_=Js(y,r,v),m=oi(_,"component");delete _.view;for(let p of fn(_))u.has(p)?(f[p]||(f[p]=[]),f[p].push(Zs.includes(p)?k=>_[p]=Ce(k)?k(y[p]):k:k=>_[p]=k)):delete _[p];on(()=>{let p=u.get("view");$(()=>{p===h&&(e.setViewComponent(m),d=_,Qs(u,_))})})}}return{proxy:new Proxy(u,{set(g,h,v){return d[h]=v,g.set(h,v),!0},get(g,h){return g.get(h)}}),setOption(g,h,v){u.has(g)&&(!v&&g in s&&(h=s[g](h)),f[g]?.forEach(y=>y(h)),u.set(g,d[g]??h))},initEffects:c}}function si(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]=si(e.views[i],t)}return r}function oi(e,t){let r=e[t];return delete e[t],r}function Js(...e){let t={};for(let r of e){let i={};for(let s of Zs)Ce(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function Qs(e,t){for(let[r,i]of Rs(t))e.set(r,i)}function Cl(e,t){let r=[];for(let i of fn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function Dl(e){let t=0;return()=>{let{activeRange:r,fetchedRange:i,options:{events:s,eventSources:o,lazyFetching:l,loading:u}}=e;$(()=>{if(o.length||(e.events=s),!i.start||i.start>r.start||i.end<r.end||!l){Ce(u)&&!t&&u(!0);let f=()=>{--t===0&&Ce(u)&&u(!1)},d=[],c=y=>f(),g=y=>{d=d.concat(hr(y)),e.events=d,f()},h=dt(r.start),v=dt(r.end);for(let y of o){if(Ce(y.events)){let _=y.events({start:He(r.start),end:He(r.end),startStr:h,endStr:v},g,c);_!==void 0&&Promise.resolve(_).then(g,c)}else{let _=Ce(y.extraParams)?y.extraParams():ge({},y.extraParams);_.start=h,_.end=v,_=new URLSearchParams(_);let m=y.url,p={},k;["GET","HEAD"].includes(y.method)?m+=(m.includes("?")?"&":"?")+_:(p["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",k=String(_)),fetch(m,{method:y.method,headers:p,body:k,signal:qa(),credentials:"same-origin"}).then(S=>S.json()).then(g).catch(c)}++t}ge(i,r)}})}}function El(e){return()=>{let t=setInterval(()=>{let r=It(),i=zt(q(r));e.now=r,Ke(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function Tl(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;$(()=>{Ce(r)&&r({start:He(t.start),end:He(t.end),startStr:dt(t.start),endStr:dt(t.end),view:Ze(e.view)})})}}function xl(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;$(()=>{Ce(i)&&(t||(t=setTimeout(()=>{t=null,i({view:Ze(e.view)})})))})}}function Sl(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;$(()=>{Ce(r)&&kn().then(()=>r({view:Ze(e.view)}))})}}function Rl(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return $(()=>{s=q(t),r.months?s.setUTCDate(1):r.inWeeks&&Is(s,i),o=Se(q(s),r)}),{start:s,end:o}}}function Il(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return $(()=>{i=q(t.start),s=q(t.end)}),r?r(i,s):{start:i,end:s}}}function Ll(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o}}=e,l=[...t];return $(()=>{if(Ce(r)){let u=t.map(Ue),f=Ze(e.view);l=l.filter((d,c)=>r({event:Ue(d),index:c,events:u,view:f}))}s&&(l=l.filter(u=>o.some(f=>u.resourceIds.includes(f.id)))),Ce(i)?l.sort((u,f)=>i(Ue(u),Ue(f))):l.sort((u,f)=>u.start-f.start||f.allDay-u.allDay)}),l}}function Pl(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return $(()=>{let o=q(r.start),l=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 Ml(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return $(()=>{i=r.formatRange(t.start,Dn(q(t.end)))}),i}}function Al(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return $(()=>{o=sl(s,i,r,t)}),o}}class Ol{#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)}#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}=kl(this,t,r);this.options=i,this.#k=s,this.#e=Z(tt([])),this.#t=a(Rl(this)),this.#n=a(Il(this)),this.#r=Z({start:void 0,end:void 0}),this.#s=Z([]),this.#i=a(Ll(this)),this.#o=Z(),this.#a=Z(tt(It())),this.#l=Z(tt(zt(It()))),this.#u=a(Bs(this,"eventTimeFormat")),this.#f=a(hn(this,"dayHeaderFormat")),this.#d=a(hn(this,"dayHeaderAriaLabelFormat")),this.#c=a(Bs(this,"titleFormat")),this.#v=a(Pl(this)),this.#h=a(Ml(this)),this.#y=a(Al(this)),this.#w=Z(),this.#b=Z(tt({})),this.#p=Z(tt([])),this.#g=Z(tt({})),this.iEvents=new ii,this.#m=Z(tt(fr)),this.#_=Z();for(let l of t)l.initState?.(this);o(),this.#C()}#C(){on(El(this)),Ye(Dl(this)),Ye(Tl(this)),Ye(xl(this)),Ye(Sl(this))}setViewComponent(t){this.extensions={},this.features=[],this.viewComponent=t(this)}setOption(t,r,i=!0){this.#k(t,r,i)}}var Nl=Q("<h2></h2>"),Fl=Q("<button><i></i></button>"),Hl=Q("<button><i></i></button>"),Wl=Q("<button> </button>"),Ul=Q("<button></button>"),zl=Q("<button> </button>");function js(e,t){be(t,!0);let r=ee("state"),i=a(()=>r.currentRange),s=a(()=>r.today),o=a(()=>r.viewTitle),l=a(()=>r.viewDates),u=a(()=>r.options.buttonText),f=a(()=>r.options.customButtons),d=a(()=>r.options.date),c=a(()=>r.options.duration),g=a(()=>r.options.hiddenDays),h=a(()=>r.options.theme),v=a(()=>r.options.validRange),y=a(()=>r.options.view),_=Z(!1),m=Z(!1),p=Z(!1),k=!1;on(()=>{n(l),n(v),t.buttons,$(()=>{k||(k=!0,t.buttons.includes("prev")&&(b(_,!1),n(v).start&&b(_,S(E),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,S(D),!0)),t.buttons.includes("today")&&(b(p,n(s)>=n(i).start&&n(s)<n(i).end,!0),!n(p)&&(n(v).start||n(v).end)&&b(p,S(w),!0)),kn().then(()=>k=!1))})});function S(X){let L=n(d);X();let te=n(l).every(pe=>Sn(pe,n(v)));return r.setOption("date",L),te}function E(){r.setOption("date",Ms(q(n(d)),n(c),n(g)))}function D(){r.setOption("date",Ps(q(n(d)),n(c)))}function w(){r.setOption("date",q(n(s)))}var C=de(),M=J(C);oe(M,17,()=>t.buttons,De,(X,L)=>{var te=de(),pe=J(te);{var W=H=>{var F=Nl();Me(F,()=>Xe(n(o))),se(()=>O(F,1,n(h).title)),x(H,F)},z=H=>{var F=de(),B=J(F);{var le=ye=>{var ie=Fl();ie.__click=E;var ce=ue(ie);se(()=>{O(ie,1,`${n(h).button??""} ec-${n(L)??""}`),Pe(ie,"aria-label",n(u).prev),Pe(ie,"title",n(u).prev),ie.disabled=n(_),O(ce,1,`${n(h).icon??""} ec-${n(L)??""}`)}),x(ye,ie)},K=ye=>{var ie=de(),ce=J(ie);{var T=R=>{var G=Hl();G.__click=D;var Je=ue(G);se(()=>{O(G,1,`${n(h).button??""} ec-${n(L)??""}`),Pe(G,"aria-label",n(u).next),Pe(G,"title",n(u).next),G.disabled=n(m),O(Je,1,`${n(h).icon??""} ec-${n(L)??""}`)}),x(R,G)},P=R=>{var G=de(),Je=J(G);{var Ae=V=>{var ae=Wl();ae.__click=w;var xe=ue(ae);se(()=>{O(ae,1,`${n(h).button??""} ec-${n(L)??""}`),ae.disabled=n(p),bs(xe,n(u)[n(L)])}),x(V,ae)},Lt=V=>{var ae=de(),xe=J(ae);{var N=Y=>{var fe=Ul();fe.__click=function(...Re){n(f)[n(L)].click?.apply(this,Re)},Me(fe,()=>Xe(n(f)[n(L)].text)),se(()=>O(fe,1,St([n(h).button,`ec-${n(L)}`,n(f)[n(L)].active&&n(h).active]))),x(Y,fe)},U=Y=>{var fe=de(),Re=J(fe);{var we=Ie=>{var Oe=zl();Oe.__click=()=>r.setOption("view",n(L));var ne=ue(Oe);se(()=>{O(Oe,1,St([n(h).button,`ec-${n(L)}`,n(y)===n(L)&&n(h).active])),bs(ne,n(u)[n(L)])}),x(Ie,Oe)};ve(Re,Ie=>{n(L)!==""&&Ie(we)},!0)}x(Y,fe)};ve(xe,Y=>{n(f)[n(L)]?Y(N):Y(U,!1)},!0)}x(V,ae)};ve(Je,V=>{n(L)==="today"?V(Ae):V(Lt,!1)},!0)}x(R,G)};ve(ce,R=>{n(L)==="next"?R(T):R(P,!1)},!0)}x(ye,ie)};ve(B,ye=>{n(L)==="prev"?ye(le):ye(K,!1)},!0)}x(H,F)};ve(pe,H=>{n(L)==="title"?H(W):H(z,!1)})}x(X,te)}),x(e,C),ke()}Zt(["click"]);var Vl=Q("<div><!></div>"),Bl=Q("<div></div>"),Gl=Q("<nav></nav>");function Yl(e,t){be(t,!0);let r=a(()=>ee("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=Gl();oe(l,21,()=>fn(n(o)),De,(u,f)=>{var d=Bl();oe(d,21,()=>n(o)[n(f)],De,(c,g)=>{var h=de(),v=J(h);{var y=m=>{var p=Vl(),k=ue(p);js(k,{get buttons(){return n(g)}}),se(()=>O(p,1,n(s).buttonGroup)),x(m,p)},_=m=>{js(m,{get buttons(){return n(g)}})};ve(v,m=>{n(g).length>1?m(y):m(_,!1)})}x(c,h)}),se(()=>O(d,1,`ec-${n(f)??""}`)),x(u,d)}),se(()=>O(l,1,n(s).toolbar)),x(e,l),ke()}var ql=Q("<div><!> <!> <!></div>");function Xl(e,t){be(t,!0);let r=Ee(t,"plugins",19,()=>[]),i=Ee(t,"options",19,()=>({})),s=new Ol(r(),i());Pn("state",s);let o=a(()=>s.auxComponents),l=a(()=>s.features),u=a(()=>s.events),f=a(()=>s.interaction),d=a(()=>s.iClass),c=a(()=>s.view),g=a(()=>s.viewComponent),h=a(()=>s.options.date),v=a(()=>s.options.duration),y=a(()=>s.options.height),_=a(()=>s.options.hiddenDays),m=a(()=>s.options.customScrollbars),p=a(()=>s.options.theme),k={...i()};on(()=>{for(let[T,P]of Cl(i(),k))$(()=>{S(T,P)});ge(k,i())});function S(T,P){return Qa(P)&&(P={...P}),Kr(P)&&(P=[...P]),s.setOption(T,P,!1),this}function E(T){let P=s.options[T];return Zr(P)?He(P):P}function D(){return s.fetchedRange={start:void 0,end:void 0},this}function w(){return n(u).map(Ue)}function C(T){T=String(T);for(let P of n(u))if(P.id===T)return Ue(P);return null}function M(T){return T=hr([T])[0],n(u).push(T),s.events=[...n(u)],Ue(T)}function X(T){let P=String(T.id),R=n(u).findIndex(G=>G.id===P);return R>=0?(T=hr([T])[0],n(u)[R]=T,s.events=[...n(u)],Ue(T)):null}function L(T){T=String(T);let P=n(u).findIndex(R=>R.id===T);return P>=0&&(n(u).splice(P,1),s.events=[...n(u)]),this}function te(){return Ze(n(c))}function pe(){return n(f).action?.unselect(),this}function W(T,P){let R=En(T,P);if(R){let G=Vt(R)(T,P);return G.date=He(G.date),G}return null}function z(){return s.setOption("date",Ps(q(n(h)),n(v))),this}function H(){return s.setOption("date",Ms(q(n(h)),n(v),n(_))),this}var F={setOption:S,getOption:E,refetchEvents:D,getEvents:w,getEventById:C,addEvent:M,updateEvent:X,removeEventById:L,getView:te,unselect:pe,dateFromPoint:W,next:z,prev:H},B=ql();let le;var K=ue(B);Yl(K,{});var ye=re(K,2);{var ie=T=>{var P=de(),R=J(P);Ur(R,()=>n(g),(G,Je)=>{Je(G,{})}),x(T,P)};ve(ye,T=>{n(g)&&T(ie)})}var ce=re(ye,2);return oe(ce,17,()=>n(o),De,(T,P)=>{var R=de(),G=J(R);Ur(G,()=>n(P),(Je,Ae)=>{Ae(Je,{})}),x(T,R)}),se(T=>{O(B,1,St([n(p).calendar,n(p).view,n(d)&&n(p)[n(d)],n(m)&&n(p).customScrollbars])),Pe(B,"role",T),le=bt(B,"",le,{height:n(y)})},[()=>n(l).includes("list")?"list":"table"]),x(e,B),ke(F)}function Kl(e){return()=>{let{viewDates:t,options:{duration:r,hiddenDays:i}}=e,s;return $(()=>s=r.months||r.inWeeks?7-i.length:t.length),s}}function Zl(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,l=[];return $(()=>{let u=[],f=1,d=1;for(let c of s)u.push({gridColumn:f,gridRow:d,resource:void 0,dayStart:c,dayEnd:kt(q(c)),disabled:Sn(c,i),highlight:r.some(g=>Ke(g,c))}),f===o&&(l.push(u),u=[],f=0,++d),++f}),l}}function Jl(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return $(()=>{for(let l of r)for(let u of i)mt(l.display)?l.allDay&&(o=o.concat(xn(l,u))):s=s.concat(xn(l,u));Us(s)}),{chunks:s,bgChunks:o}}}function Ql(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&$(()=>{for(let l of i)s=s.concat(xn(o,l,!1))});return s}}let jl=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(Kl(t)),this.#t=a(Zl(t,this)),this.#n=Z();let r=a(Jl(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(Ql(t,this)),this.hiddenChunks=new ii,this.#o=a(hn(t,"dayCellFormat")),this.#a=a(hn(t,"dayPopoverFormat")),this.#l=Z(null)}};var $l=Q("<div><!></div>");function mr(e,t){be(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"),c=Ee(t,"noIeb",3,!1),g=Ee(t,"noBeb",3,!1),h=a(()=>ee("state")),v=a(()=>n(h).today),y=a(()=>n(h).interaction.action),_=a(()=>n(h).options.theme),m=a(()=>ee("view-state")),p=a(()=>n(m).snap),k=a(()=>Ke(t.date,n(v))),S=a(()=>l()([n(_).day,n(_).weekdays?.[t.date.getUTCDay()],n(k)&&n(_).today,f()&&n(_).highlight,u()&&n(_).disabled,c()&&n(_).noIeb,g()&&n(_).noBeb]));Vn(()=>{Os(r(),(C,M)=>({allDay:i(),date:o()(C,M),resource:s(),dayEl:r(),disabled:u()}))});let E=a(()=>!u()&&n(y)?C=>n(y).select(C,n(p)):void 0);var D=$l();D.__pointerdown=function(...C){n(E)?.apply(this,C)};var w=ue(D);Ut(w,()=>t.children??Gt),rt(D,C=>r(C),()=>r()),se(()=>{O(D,1,St(n(S))),Pe(D,"role",d())}),x(e,D),ke()}Zt(["pointerdown"]);var eu=Q("<div></div>"),tu=Q("<article><!></article>");function $s(e,t){be(t,!0);let r=Ee(t,"el",15),i=Ee(t,"classes",3,fr),s=Ee(t,"styles",3,fr),o=a(()=>ee("state")),l=a(()=>n(o).intlEventTime),u=a(()=>n(o).view),f=a(()=>n(o).options.displayEventEnd),d=a(()=>n(o).options.eventBackgroundColor),c=a(()=>n(o).options.eventColor),g=a(()=>n(o).options.eventContent),h=a(()=>n(o).options.eventClick),v=a(()=>n(o).options.eventDidMount),y=a(()=>n(o).options.eventClassNames),_=a(()=>n(o).options.eventMouseEnter),m=a(()=>n(o).options.eventMouseLeave),p=a(()=>n(o).options.eventTextColor),k=a(()=>n(o).options.resources),S=a(()=>n(o).options.theme),E=a(()=>t.chunk.event),D=a(()=>t.chunk.event.display),w=a(()=>n(E).backgroundColor??_l(n(E),n(k))??n(d)??n(c)),C=a(()=>n(E).textColor??yl(n(E),n(k))??n(p)),M=a(()=>Rs(s()({"background-color":n(w),color:n(C)})).map(T=>`${T[0]}:${T[1]}`).concat(n(E).styles).join(";")),X=a(()=>i()([mt(n(D))?n(S).bgEvent:n(S).event,...ul(n(y),n(E),n(u))])),L=a(()=>ll(t.chunk,n(f),n(g),n(S),n(l),n(u))),te=a(()=>To(n(L),2)),pe=a(()=>n(te)[0]),W=a(()=>n(te)[1]);Vn(()=>{Ce(n(v))&&n(v)({event:Ue(n(E)),timeText:n(pe),el:r(),view:Ze(n(u))})});function z(T,P){return Ce(T)&&!vr(P)?R=>T({event:Ue(n(E)),el:r(),jsEvent:R,view:Ze(n(u))}):void 0}let H=a(()=>!mt(n(D))&&z(n(h),n(D))||void 0),F=a(()=>n(H)&&Yr(n(H))),B=a(()=>z(n(_),n(D))),le=a(()=>z(n(m),n(D)));var K=tu();K.__click=function(...T){n(H)?.apply(this,T)},K.__keydown=function(...T){n(F)?.apply(this,T)},K.__pointerdown=function(...T){t.onpointerdown?.apply(this,T)};{const T=P=>{var R=eu();Me(R,()=>Xe(n(W))),se(()=>O(R,1,St(n(S).eventBody))),x(P,R)};var ye=ue(K);{var ie=P=>{var R=de(),G=J(R);Ut(G,()=>t.body,()=>T,()=>n(w),()=>n(C)),x(P,R)},ce=P=>{T(P)};ve(ye,P=>{t.body?P(ie):P(ce,!1)})}rt(K,P=>r(P),()=>r())}se(()=>{O(K,1,St(n(X))),bt(K,n(M)),Pe(K,"role",n(H)?"button":void 0),Pe(K,"tabindex",n(H)?0:void 0)}),ut("mouseenter",K,function(...T){n(B)?.apply(this,T)}),ut("mouseleave",K,function(...T){n(le)?.apply(this,T)}),x(e,K),ke()}Zt(["click","keydown","pointerdown"]);var nu=Q("<div><!></div>");function Xn(e,t){be(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(()=>ee("state")),f=a(()=>n(u).today),d=a(()=>n(u).options.theme);var c=nu(),g=ue(c);Ut(g,()=>t.children),se(h=>{O(c,1,h),Pe(c,"role",s()?null:"columnheader"),Pe(c,"aria-colspan",s()||i()<=1?null:i()),Pe(c,"aria-colindex",s()?null:t.colIndex),Pe(c,"aria-hidden",s()?"true":null)},[()=>St([t.className??n(d).colHead,r()&&n(d).weekdays?.[t.date.getUTCDay()],r()&&Ke(t.date,n(f))&&n(d).today,l()&&n(d).highlight,o()&&n(d).disabled])]),x(e,c),ke()}var ru=Q("<time></time>");function pr(e,t){be(t,!0);let r=Ee(t,"alPrefix",3,""),i=a(()=>ee("state")),s=a(()=>n(i).intlDayHeader),o=a(()=>n(i).intlDayHeaderAL);var l=ru();Me(l,()=>Xe(n(s).format(t.date))),se((u,f)=>{Pe(l,"datetime",u),Pe(l,"aria-label",`${r()??""}${f??""}`)},[()=>dt(t.date,10),()=>n(o).format(t.date)]),x(e,l),ke()}function _r(e,t){be(t,!0);let r=Ee(t,"el",15),i=a(()=>ee("state")),s=a(()=>n(i).iClasses),o=a(()=>n(i).interaction.action),l=a(()=>n(i).interaction.resizer),u=a(()=>ee("view-state")),f=a(()=>n(u).snap),d=a(()=>t.chunk.event),c=a(()=>t.chunk.event.display),g=a(()=>y=>n(s)(y,n(d)));function h(y){return n(o)?.draggable(y)?_=>n(o).drag(y,_,t.forceDate,t.forceMargin,n(f)):n(o)?.noAction}let v=a(()=>!mt(n(c))&&!vr(n(c))?h(n(d)):void 0);$s(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=Gt)=>{var p=de(),k=J(p);{var S=D=>{var w=de(),C=J(w);Ur(C,()=>n(l),(M,X)=>{X(M,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(L,te)=>{var pe=de(),W=J(pe);Ut(W,m),x(L,pe)},$$slots:{default:!0}})}),x(D,w)},E=D=>{var w=de(),C=J(w);Ut(C,m),x(D,w)};ve(k,D=>{n(l)?D(S):D(E,!1)})}x(_,p)},$$slots:{body:!0}}),ke()}var iu=Q("<time></time>"),su=Q("<span></span>"),ou=Q('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),au=Q("<div><!> <!></div> <div><!></div>",1);function lu(e,t){be(t,!0);const r=()=>Ba(n(d),"$firstDay",i),[i,s]=Ga();let o=ee("state"),l=ee("view-state"),u=a(()=>o.features),f=a(()=>o.options.date),d=a(()=>o.options.firstDay),c=a(()=>o.options.moreLinkContent),g=a(()=>o.options.theme),h=a(()=>o.options.weekNumbers),v=a(()=>o.options.weekNumberContent),y=a(()=>l.hiddenChunks),_=a(()=>l.intlDayCell),m=a(()=>t.day.dayStart),p=a(()=>t.day.disabled),k=a(()=>t.day.highlight),S=a(()=>n(m).getUTCMonth()!==n(f).getUTCMonth()),E=a(()=>L=>[...L,n(S)&&n(g).otherMonth]),D=a(()=>n(h)&&n(m).getUTCDay()===(n(d)?1:0)),w=a(()=>{let L;if(n(D)){let te=nl(n(m),r());n(v)?L=Ce(n(v))?n(v)({date:He(n(m)),week:te}):n(v):L="W"+String(te).padStart(2,"0")}return L}),C=a(()=>n(y).get(n(m).getTime())),M=a(()=>{let L="";if(n(C)){let te="+"+n(C).length+" more";n(c)?L=Ce(n(c))?n(c)({num:n(C).length,text:te}):n(c):L=te}return L});function X(){l.popupDay=t.day}mr(e,{get date(){return n(m)},allDay:!0,get classes(){return n(E)},get disabled(){return n(p)},get highlight(){return n(k)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(L,te)=>{var pe=au(),W=J(pe),z=ue(W);{var H=ie=>{var ce=iu();Me(ce,()=>Xe(n(_).format(n(m)))),se(T=>Pe(ce,"datetime",T),[()=>dt(n(m),10)]),x(ie,ce)};ve(z,ie=>{n(u).includes("dayNumber")&&ie(H)})}var F=re(z,2);{var B=ie=>{var ce=su();Me(ce,()=>Xe(n(w))),se(()=>O(ce,1,n(g).weekNumber)),x(ie,ce)};ve(F,ie=>{n(D)&&ie(B)})}var le=re(W,2),K=ue(le);{var ye=ie=>{var ce=ou(),T=a(()=>Jr(X));ce.__click=function(...G){n(T)?.apply(this,G)};var P=a(()=>Yr(X));ce.__keydown=function(...G){n(P)?.apply(this,G)};var R=a(Jr);ce.__pointerdown=function(...G){n(R)?.apply(this,G)},Me(ce,()=>Xe(n(M))),x(ie,ce)};ve(K,ie=>{n(C)&&ie(ye)})}se(()=>{O(W,1,n(g).dayHead),O(le,1,n(g).dayFoot)}),x(L,pe)},$$slots:{default:!0}}),ke(),s()}Zt(["click","keydown","pointerdown"]);function yr(e,t){be(t,!0);let r=Ee(t,"inPopup",3,!1),i=a(()=>ee("state")),s=a(()=>n(i).options.dayMaxEvents),o=a(()=>ee("view-state")),l=a(()=>n(o).colsCount),u=a(()=>n(o).gridEl),f=a(()=>n(o).hiddenChunks),d=a(()=>n(o).popupDay),c=Z(void 0),g=Z(1),h=Z(!1),v=a(()=>t.chunk.event),y=a(()=>t.chunk.event.display),_=a(()=>n(u).children.item((t.chunk.gridRow-1)*n(l)+t.chunk.gridColumn-1));Ye(()=>{r()||b(g,cn(n(_).firstElementChild)||1,!0)});let m=a(()=>D=>{if(D["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,D["grid-row"]=t.chunk.gridRow,!mt(n(y))){let w=r()?1:n(g);if(n(v)._margin){let[C,M]=n(v)._margin;C>w&&t.chunk.gridRow===M&&(w=C)}D["margin-block-start"]=`${w}px`}return n(h)&&(D.visibility="hidden"),D});function p(){b(g,zs(t.chunk,cn(n(c)),cn(n(_).firstElementChild)||1),!0)}function k(){if(n(s)===!0){let D=cn(n(_))-S(n(_));if(b(h,t.chunk.bottom>D),n(h))for(let w of t.chunk.dates){let C=w.getTime();if(n(f).has(C)){let M=n(f).get(C);M.includes(t.chunk)||n(f).set(C,[...M,t.chunk])}else n(f).set(C,[t.chunk])}}else b(h,!1),n(f).size&&n(f).clear()}function S(D){let w=0;for(let C=0;C<t.chunk.dates.length&&(w=ft(w,cn(D.lastElementChild)),D=D.nextElementSibling,!!D);++C);return w}var E={reposition:p,hide:k};{let D=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(D)},get forceMargin(){return n(w)},get el(){return n(c)},set el(C){b(c,C,!0)}})}return ke(E)}var uu=Q('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">×</a></header> <div></div></dialog>');function fu(e,t){be(t,!0);let r=ee("view-state"),i=a(()=>ee("state")),s=a(()=>n(i).interaction),o=a(()=>n(i).options.buttonText),l=a(()=>n(i).options.theme),u=a(()=>r.colsCount),f=a(()=>r.chunks),d=a(()=>r.gridEl),c=a(()=>r.intlDayPopover),g=a(()=>r.popupDay),h=Z(void 0),v=Z(""),y=a(()=>n(g).gridColumn),_=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),p=a(()=>n(g).dayEnd),k=a(()=>{let z=[];for(let H of n(f))H.gridRow===n(_)&&H.gridColumn<=n(y)&&H.gridColumn+H.dates.length>n(y)&&z.push(ge({},H,Gn(H.event,n(m),n(p))));return z.sort((H,F)=>H.top-F.top),z});Vn(()=>{n(h).show()}),Ye(()=>{n(k).length?$(S):E()});function S(){let z=n(d).children.item((n(_)-1)*n(u)+n(y)-1),H=Qt(n(h)),F=Qt(z),B=Qt(n(d));b(v,"");let le;if(H.width>=B.width){le=B.left-F.left;let ye=F.right-B.right;b(v,n(v)+`inset-inline-end:${ye}px;`)}else le=(F.width-H.width)/2,F.left+le<B.left?le=B.left-F.left:F.left+le+H.width>B.right&&(le=B.right-F.left-H.width);b(v,n(v)+`inset-inline-start:${le}px;`);let K;H.height>=B.height?(K=B.top-F.top,b(v,n(v)+`block-size:${B.height}px;`)):(K=(F.height-H.height)/2,F.top+K<B.top?K=B.top-F.top:F.top+K+H.height>B.bottom&&(K=B.bottom-F.top-H.height)),b(v,n(v)+`inset-block-start:${K}px;`)}function E(){r.popupDay=null}function D(){E(),n(s).action?.noClick()}var w=uu();let C;var M=ue(w),X=ue(M);Me(X,()=>Xe(n(c).format(n(m))));var L=re(X,2);va(L);var te=a(()=>Jr(E));L.__click=function(...z){n(te)?.apply(this,z)};var pe=a(()=>Yr(E));L.__keydown=function(...z){n(pe)?.apply(this,z)};var W=re(M,2);oe(W,21,()=>n(k),De,(z,H)=>{yr(z,{get chunk(){return n(H)},inPopup:!0})}),rt(w,z=>b(h,z),()=>n(h)),Me(w,()=>Ka("pointerdown")),se(z=>{O(w,1,n(l).popup),C=bt(w,n(v),C,{"grid-area":`${n(_)+1} / ${n(y)}`}),O(M,1,n(l).dayHead),Pe(X,"datetime",z),Pe(L,"aria-label",n(o).close),O(W,1,n(l).events)},[()=>dt(n(m),10)]),ut("pointerdownoutside",w,D),ut("close",w,E),x(e,w),ke()}Zt(["click","keydown"]);var du=Q('<div role="columnheader"><span></span></div>'),cu=Q('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function ai(e,t){be(t,!0);let r=ee("state"),i=new jl(r);Pn("view-state",i);let s=a(()=>r.intlDayHeader),o=a(()=>r.intlDayHeaderAL),l=a(()=>r.options.dayMaxEvents),u=a(()=>r.options.theme),f=a(()=>i.grid),d=a(()=>i.chunks),c=a(()=>i.bgChunks),g=a(()=>i.iChunks),h=a(()=>i.hiddenChunks),v=a(()=>i.popupDay),y=[];function _(){ti(y,n(d)),n(h).clear(),kn().then(m)}function m(){n(h).size,y.forEach(W=>W.hide())}Ye(_),Ye(m);var p=cu();let k;var S=ue(p),E=ue(S);oe(E,21,()=>n(f)[0],De,(W,z,H)=>{let F=()=>n(z).dayStart;var B=du();Pe(B,"aria-colindex",1+H);var le=ue(B);Me(le,()=>Xe(n(s).format(F()))),se((K,ye)=>{O(B,1,K),Pe(le,"aria-label",ye)},[()=>St([n(u).colHead,n(u).weekdays?.[F().getUTCDay()]]),()=>n(o).format(F())]),x(W,B)});var D=re(S,2),w=ue(D);oe(w,21,()=>n(f),De,(W,z,H)=>{var F=de(),B=J(F);oe(B,17,()=>n(z),De,(le,K,ye)=>{{let ie=a(()=>ye+1===n(z).length),ce=a(()=>H+1===n(f).length);lu(le,{get day(){return n(K)},get noIeb(){return n(ie)},get noBeb(){return n(ce)}})}}),x(W,F)}),rt(w,W=>i.gridEl=W,()=>i?.gridEl);var C=re(w,2),M=ue(C);oe(M,19,()=>n(d),W=>W.id,(W,z,H)=>{rt(yr(W,{get chunk(){return n(z)}}),(F,B)=>y[B]=F,F=>y?.[F],()=>[n(H)])});var X=re(M,2);oe(X,17,()=>n(c),W=>W.id,(W,z)=>{yr(W,{get chunk(){return n(z)}})});var L=re(X,2);oe(L,17,()=>n(g),De,(W,z)=>{yr(W,{get chunk(){return n(z)}})});var te=re(D,2);{var pe=W=>{fu(W,{})};ve(te,W=>{n(v)&&W(pe)})}rt(p,W=>r.mainEl=W,()=>r?.mainEl),Me(p,()=>qr(_)),se(()=>{O(p,1,St([n(u).main,n(l)===!0&&n(u).uniform])),k=bt(p,"",k,{"--ec-grid-cols":n(f)[0].length,"--ec-grid-rows":n(f).length}),O(S,1,n(u).header),O(E,1,n(u).grid),O(D,1,n(u).body),O(w,1,n(u).grid),O(C,1,n(u).events)}),x(e,p),ke()}const hu={createOptions(e){ge(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),ge(e.buttonText,{dayGridDay:"day",dayGridMonth:"month",dayGridWeek:"week",close:"Close"}),ge(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),ge(e.views,{dayGridDay:{buttonText:Yn,component:()=>ai,dayHeaderFormat:{weekday:"long"},displayEventEnd:!1,duration:{days:1},theme:it("ec-day-grid ec-day-view")},dayGridWeek:{buttonText:qn,component:()=>ai,displayEventEnd:!1,theme:it("ec-day-grid ec-week-view")},dayGridMonth:{buttonText:ri,component:vu,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:it("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function vu(e){return e.features=["dayNumber"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Is(t,i),end:tl(r,i)}},ai}function eo(e,t,r){return e.startEditable??t??e.editable??r}function gu(e,t,r){return e.durationEditable??t??e.editable??r}let li=!1;function mu(e){li||(li=!0,window.requestAnimationFrame(()=>{e(),li=!1}))}function to(e,t,r){return ft(t,Rt(r,e))}function pu(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:l}=o;return[...s,vr(l)?[i[l]]:!mt(l)&&eo(o,r,t)?[i.draggable]:[]]}}}function _u(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return Bn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class yu{constructor(t){this.#e(t)}#e(t){on(pu(t)),Ye(_u(t))}}function wu(e,t){be(t,!0);let r=ee("state"),i=a(()=>r.events),s=a(()=>r.iEvents),o=a(()=>r.features),l=a(()=>r.view),u=a(()=>r.mainEl),f=a(()=>r.options.dateClick),d=a(()=>r.options.dragConstraint),c=a(()=>r.options.dragScroll),g=a(()=>r.options.editable),h=a(()=>r.options.eventStartEditable),v=a(()=>r.options.eventDragMinDistance),y=a(()=>r.options.eventDragStart),_=a(()=>r.options.eventDragStop),m=a(()=>r.options.eventDrop),p=a(()=>r.options.eventLongPressDelay),k=a(()=>r.options.eventResizeStart),S=a(()=>r.options.eventResizeStop),E=a(()=>r.options.eventResize),D=a(()=>r.options.longPressDelay),w=a(()=>r.options.resizeConstraint),C=a(()=>r.options.selectable),M=a(()=>r.options.select),X=a(()=>r.options.selectBackgroundColor),L=a(()=>r.options.selectConstraint),te=a(()=>r.options.selectLongPressDelay),pe=a(()=>r.options.selectMinDistance),W=a(()=>r.options.unselect),z=a(()=>r.options.unselectAuto),H=a(()=>r.options.unselectCancel),F=a(()=>r.options.validRange);const B=1,le=2,K=3,ye=4,ie=5,ce=6;let T,P,R,G,Je,Ae,Lt,V,ae,xe,N,U,Y,fe,Re,we,Ie,Oe,ne,ze,ct,et,pt,Ne,vn,Bt,jt;function Mf(I){return eo(I,n(h),n(g))}function Af(I,A,me,j,Qe){T||(T=wi(A)?B:ce,gn()&&(R=I,yi(A,Qe),me&&(Ae=me),j&&(vn=j),Oe="dragging",Rn(A)))}function Of(I,A,me,j,Qe,Zn,ki,Zf){T||(T=wi(A)?me?K:le:ce,gn()&&(R=I,yi(A,Zf),Qe&&(Ae=Qe),Zn&&(vn=Zn),Oe=j==="x"?"resizingX":"resizingY",Cr()?(ne=q(R.end),Ie?(Qr(ne,R.start),ne>=R.end&&Dn(ne)):(cr(ne,Bt),ne<R.start&&(ne=R.start),Ae=R.start)):(ne=q(R.start),Ie?(Qr(ne,R.end),ne<=R.start&&!ki&&kt(ne)):(Se(ne,Bt),ne>R.end&&(ne=R.end),Ae=R.end,ki||(Ae=cr(q(Ae),Bt))),ki&&!Ie&&(jt=Bt)),Rn(A)))}function Nf(I,A){T||(T=wi(I)?n(C)&&!n(o).includes("list")?ye:ie:ce,gn()&&(yi(I,A),Oe="selecting",ze=Ie?Fe({day:1}):Bt,R={allDay:Ie,start:Ae,end:Se(q(Ae),ze),resourceIds:V?[V.id]:[]},Rn(I)))}function Ff(){T||(T=ce)}function yi(I,A){window.getSelection().removeAllRanges(),xe=U=I.clientX,N=Y=I.clientY,Bt=A?.duration;let me=En(U,Y);({allDay:Ie,date:Ae,resource:V}=Vt(me)(U,Y)),Re=n(u)!==Fs(me,3),fe=Fs(me,1),go(),I.pointerType!=="mouse"&&(pt=setTimeout(()=>{T&&(P=!0,Rn(I))},($t()?n(te):n(p))??n(D)))}function Rn(I){if(P||I&&I.pointerType==="mouse"&&Vf()>=($t()?n(pe):n(v))){P=!0,Dr(I),r.iClass=Oe,G||($t()?zf():Uf(I,In()?n(k):n(y)));let A=Kn(Wf());if(A){let me;if({allDay:me,date:Lt,resource:ae}=A,me===Ie){let j=kr({},G),Qe=n(w);we=Fe((Lt-Ae)/1e3),Cr()?(j.start=Se(q(R.start),we),j.start>ne&&(j.start=ne,we=Fe((ne-R.start)/1e3))):(j.end=Se(q(R.end),we),jt&&Se(j.end,jt),In()?j.end<ne&&(j.end=ne,we=Fe((ne-R.end)/1e3)):$t()?(j.end<R.end?(j.start=cr(j.end,ze),j.end=R.end):j.start=R.start,Qe=n(L)):(j.start=Se(q(R.start),we),V&&(j.resourceIds=R.resourceIds.filter(Zn=>Zn!==V.id),j.resourceIds.push(ae.id)),Qe=n(d)));do{if(Qe!==void 0&&(j=kr(ei(R),j),Qe($t()?yo(j,I):wo(j,R,I))===!1)){_o(R);break}_o(j)}while(!1)}}}if(n(c)){let A=24,me=24;mu(()=>{Ne&&(Re||(Y<Ne.top+A&&(n(u).scrollTop+=ft(-8,(Y-Ne.top-A)/3)),Y>Ne.bottom-A&&(n(u).scrollTop+=Rt(8,(Y-Ne.bottom+A)/3))),U<Ne.left+me&&(n(u).scrollLeft+=ft(-8,(U-Ne.left-me)/3)),U>Ne.right-me&&(n(u).scrollLeft+=Rt(8,(U-Ne.right+me)/3)),Y<A&&window.scrollBy(0,ft(-8,(Y-A)/3)),Y>window.innerHeight-A&&window.scrollBy(0,Rt(8,(Y-window.innerHeight+A)/3)))})}}function ho(){gn()&&(go(),Rn())}function Hf(I){gn()&&I.isPrimary&&(U=I.clientX,Y=I.clientY,Rn(I))}function vo(I){if(ct&&n(z)&&!(n(H)&&I.target.closest(n(H)))&&Dr(I),T&&I.isPrimary){if(P)if($t()){if(ct=!0,Ce(n(M))){let A=yo(G,I);n(M)(A)}}else{R.display=Je;let A=In()?n(S):n(_);Ce(A)&&A({event:Ue(R),jsEvent:I,view:Ze(n(l))});let me=ei(R);if(po(R,G),mo(),A=In()?n(E):n(m),Ce(A)){let j=R,Qe=wo(R,me,I);A(ge(Qe,{revert(){po(j,me)}}))}}else if((Bf()||$t())&&Ce(n(f))&&!et){U=I.clientX,Y=I.clientY;let A=En(U,Y);if(A){let{allDay:me,date:j,resource:Qe}=Vt(A)(U,Y);n(f)({allDay:me,date:He(j),dateStr:dt(j),dayEl:A,jsEvent:I,view:Ze(n(l)),resource:Qe})}}P=!1,T=xe=N=U=Y=R=Je=Ae=Lt=V=ae=we=jt=Ie=ne=ze=vn=fe=Ne=Bt=void 0,r.iClass=void 0,pt&&(clearTimeout(pt),pt=void 0)}et=!1}function Wf(){return En(to(U,Ne.left,Ne.right),to(Y,Ne.top,Ne.bottom))}function Kn(I){if(I){let A=Vt(I)(U,Y);if(A.disabled){if(!n(F).end||A.date<n(F).end)return Kn(I.nextElementSibling);if(!n(F).start||A.date>n(F).start)return Kn(I.previousElementSibling)}else return($t()||In())&&A.resource&&!G.resourceIds.includes(A.resource.id)&&!n(o).includes("timeline")?U>xe?Kn(I.previousElementSibling):Kn(I.nextElementSibling):A}return null}function go(){let I=Qt(n(u)),A=Qt(fe),me=I.width/n(u).offsetWidth,j=I.height/n(u).offsetHeight,Qe=dn();Ne={left:ft(0,Qe?I.right-n(u).clientWidth*me:A.left+n(u).scrollLeft*me),right:Rt(document.documentElement.clientWidth,Qe?A.right+n(u).scrollLeft*me:I.left+n(u).clientWidth*me)-2,top:ft(0,A.top+(Re?0:n(u).scrollTop)*j),bottom:Rt(document.documentElement.clientHeight,Re?A.bottom:I.top+n(u).clientHeight*j)-2}}function Uf(I,A){Ce(A)&&A({event:Ue(R),jsEvent:I,view:Ze(n(l))}),Je=R.display,R.display="preview",G=ei(R),vn!==void 0&&(G._margin=vn),jt&&Se(G.end,jt),R.display="ghost",r.events=[...n(i)]}function zf(){G={id:"{select}",allDay:R.allDay,start:R.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(X),resourceIds:R.resourceIds,classNames:[],styles:[]}}function mo(){G=void 0,n(s).delete("action")}function kr(I,A){return I.start=A.start,I.end=A.end,I.resourceIds=A.resourceIds,{...I}}function po(I,A){kr(I,A),r.events=[...n(i)]}function _o(I){G=kr(G,I),n(s).set("action",G)}function yo(I,A){let{start:me,end:j}=Ue(I);return{start:me,end:j,startStr:dt(I.start),endStr:dt(I.end),allDay:Ie,view:Ze(n(l)),resource:V,jsEvent:A}}function wo(I,A,me){let j;return In()?j=Cr()?{startDelta:we,endDelta:Fe(0)}:{startDelta:Fe(0),endDelta:we}:j={delta:we,oldResource:V!==ae?V:void 0,newResource:V!==ae?ae:void 0},ge(j,{event:Ue(I),oldEvent:Ue(A),view:Ze(n(l)),jsEvent:me}),j}function Vf(){return Math.sqrt(Math.pow(U-xe,2)+Math.pow(Y-N,2))}function In(){return T===le||Cr()}function Cr(){return T===K}function Bf(){return T===ie}function $t(){return T===ye}function gn(){return T&&T<ie}function wi(I){return I.isPrimary&&(I.pointerType!=="mouse"||I.buttons&1)}function Dr(I){ct&&(ct=!1,mo(),Ce(n(W))&&n(W)({jsEvent:I,view:Ze(n(l))}))}on(()=>{n(l),Dr()});function Gf(){et=!0}function Yf(I){if(gn()){let A=I.target,me=[],j=()=>$a(me);me.push(Bn(A,"touchmove",bi(()=>P))),me.push(Bn(A,"touchend",j)),me.push(Bn(A,"touchcancel",j))}}function bi(I){return A=>{I()&&A.preventDefault()}}Vn(()=>Bn(window,"touchmove",el,{passive:!1}));var qf={draggable:Mf,drag:Af,resize:Of,select:Nf,noAction:Ff,handleScroll:ho,unselect:Dr,noClick:Gf};ut("pointermove",yt,Hf),ut("pointerup",yt,vo),ut("pointercancel",yt,vo),ut("scroll",yt,ho);var Xf=a(()=>bi(gn));ut("selectstart",yt,function(...I){n(Xf)?.apply(this,I)});var Kf=a(()=>bi(()=>pt));return ut("contextmenu",yt,function(...I){n(Kf)?.apply(this,I)}),ut("touchstart",yt,Yf,void 0,!0),ke(qf)}function bu(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).iEvents),s=a(()=>n(r).options.slotDuration),o=0,l=0,u;function f(){let _=En(o,l);if(_&&!n(i).has("action")){let{allDay:m,date:p,resource:k,disabled:S}=Vt(_)(o,l);if(!S){u||g(),u.allDay=m,u.start=p,u.end=Se(q(p),n(s)),u.resourceIds=k?[k.id]:[],n(i).set("pointer",{...u});return}}h()}function d(){f()}function c(_){v(_)&&(o=_.clientX,l=_.clientY,f())}function g(){u={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]}}function h(){u=void 0,n(i).delete("pointer")}function v(_){return _.isPrimary&&_.pointerType==="mouse"}var y={handleScroll:d};return ut("pointermove",yt,c),ut("scroll",yt,d),ke(y)}var ku=Q("<div></div>"),Cu=Q("<div></div>"),Du=Q("<!> <!> <!>",1);function Eu(e,t){be(t,!0);let r=Ee(t,"forceDate",3,void 0),i=Ee(t,"forceMargin",3,void 0),s=a(()=>ee("state")),o=a(()=>n(s).interaction.action),l=a(()=>n(s).options.editable),u=a(()=>n(s).options.eventDurationEditable),f=a(()=>n(s).options.eventResizableFromStart),d=a(()=>n(s).options.theme),c=a(()=>ee("view-state")),g=a(()=>n(c).snap),h=a(()=>t.chunk.event),v=a(()=>t.chunk.event.display),y=a(()=>!mt(n(v))&&!vr(n(v))&&gu(n(h),n(u),n(l)));function _(w){return C=>n(o).resize(n(h),C,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=Du(),p=J(m);{var k=w=>{var C=ku(),M=a(()=>_(!0));C.__pointerdown=function(...X){n(M)?.apply(this,X)},se(()=>O(C,1,`${n(d).resizer??""} ${n(d).start??""}`)),x(w,C)};ve(p,w=>{n(y)&&n(f)&&w(k)})}var S=re(p,2);Ut(S,()=>t.children);var E=re(S,2);{var D=w=>{var C=Cu(),M=a(()=>_(!1));C.__pointerdown=function(...X){n(M)?.apply(this,X)},se(()=>O(C,1,n(d).resizer)),x(w,C)};ve(E,w=>{n(y)&&w(D)})}x(e,m),ke()}Zt(["pointerdown"]);var Tu=Q("<!> <!>",1);function xu(e,t){be(t,!0);let r=ee("state");new yu(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=Eu;var o=Tu(),l=J(o);rt(wu(l,{}),d=>n(i).action=d,()=>n(i)?.action);var u=re(l,2);{var f=d=>{rt(bu(d,{}),c=>n(i).pointer=c,()=>n(i)?.pointer)};ve(u,d=>{n(s)&&d(f)})}x(e,o),ke()}const Su={createOptions(e){ge(e,{dateClick:void 0,dragConstraint:void 0,dragScroll:!0,editable:!1,eventDragMinDistance:5,eventDragStart:void 0,eventDragStop:void 0,eventDrop:void 0,eventDurationEditable:!0,eventLongPressDelay:void 0,eventResizableFromStart:!1,eventResizeStart:void 0,eventResizeStop:void 0,eventResize:void 0,eventStartEditable:!0,longPressDelay:1e3,pointer:!1,resizeConstraint:void 0,select:void 0,selectBackgroundColor:void 0,selectConstraint:void 0,selectLongPressDelay:void 0,selectMinDistance:5,snapDuration:void 0,unselect:void 0,unselectAuto:!0,unselectCancel:""}),ge(e.theme,{draggable:"ec-draggable",ghost:"ec-ghost",preview:"ec-preview",pointer:"ec-pointer",resizer:"ec-resizer",start:"ec-start",dragging:"ec-dragging",resizingY:"ec-resizing-y",resizingX:"ec-resizing-x",selecting:"ec-selecting"})},initState(e){e.auxComponents.push(xu)}};let Ru=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(hn(t,"listDayFormat")),this.#t=a(hn(t,"listDaySideFormat"))}};var Iu=Q("<div></div> <!>",1);function Lu(e,t){be(t,!0);let r=a(()=>ee("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=Gt,c=Gt,g=Gt)=>{var h=Iu(),v=J(h);let y;var _=re(v,2);Ut(_,d),se(()=>{O(v,1,n(s).eventTag),y=bt(v,"",y,{"background-color":c()})}),x(f,h)};let u=a(()=>n(i).action?.noAction);$s(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}ke()}var Pu=Q("<h4><time></time> <time></time></h4> <!>",1);function Mu(e,t){be(t,!0);let r=a(()=>ee("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(()=>ee("view-state")),f=a(()=>n(u).intlListDay),d=a(()=>n(u).intlListDaySide),c=a(()=>n(s).some(p=>Ke(p,t.date))),g=a(()=>Sn(t.date,n(l))),h=a(()=>dt(t.date,10)),v=a(()=>{let p=[];if(!n(g)){let k=t.date,S=kt(q(t.date));for(let E of n(i))if(!mt(E.display)&&Tn(E,k,S)){let D=Gn(E,k,S);p.push(D)}}return p});var y=de(),_=J(y);{var m=p=>{mr(p,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(c)},children:(k,S)=>{var E=Pu(),D=J(E),w=ue(D);Me(w,()=>Xe(n(f).format(t.date)));var C=re(w,2);Me(C,()=>Xe(n(d).format(t.date)));var M=re(D,2);oe(M,17,()=>n(v),X=>X.event,(X,L)=>{Lu(X,{get chunk(){return n(L)}})}),se(()=>{O(D,1,n(o).dayHead),Pe(w,"datetime",n(h)),O(C,1,n(o).daySide),Pe(C,"datetime",n(h))}),x(k,E)},$$slots:{default:!0}})};ve(_,p=>{n(v).length&&p(m)})}x(e,y),ke()}var Au=Q("<div></div>"),Ou=Q("<section><!></section>");function Nu(e,t){be(t,!0);let r=ee("state"),i=new Ru(r);Pn("view-state",i);let s=a(()=>r.filteredEvents),o=a(()=>r.view),l=a(()=>r.viewDates),u=a(()=>r.options.noEventsClick),f=a(()=>r.options.noEventsContent),d=a(()=>r.options.theme),c=a(()=>{let p=!0;if(n(l).length){let k=n(l)[0],S=kt(q(n(l).at(-1)));for(let E of n(s))if(!mt(E.display)&&E.start<S&&E.end>k){p=!1;break}}return p}),g=a(()=>Ce(n(f))?n(f)():n(f));function h(p){Ce(n(u))&&n(u)({jsEvent:p,view:Ze(n(o))})}var v=Ou(),y=ue(v);{var _=p=>{var k=Au();k.__click=h,Me(k,()=>Xe(n(g))),se(()=>O(k,1,n(d).noEvents)),x(p,k)},m=p=>{var k=de(),S=J(k);oe(S,17,()=>n(l),De,(E,D)=>{Mu(E,{get date(){return n(D)}})}),x(p,k)};ve(y,p=>{n(c)?p(_):p(m,!1)})}rt(v,p=>r.mainEl=p,()=>r?.mainEl),se(()=>O(v,1,n(d).main)),x(e,v),ke()}Zt(["click"]);const Fu={createOptions(e){ge(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),ge(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),ge(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),ge(e.views,{listDay:{buttonText:Yn,component:wr,duration:{days:1},theme:it("ec-list ec-day-view")},listWeek:{buttonText:qn,component:wr,duration:{weeks:1},theme:it("ec-list ec-week-view")},listMonth:{buttonText:ri,component:wr,duration:{months:1},theme:it("ec-list ec-month-view")},listYear:{buttonText:gl,component:wr,duration:{years:1},theme:it("ec-list ec-year-view")}})}};function wr(e){return e.features=["list"],Nu}function ui(e,t,r=!0){let i=[];for(let{gridColumn:s,gridRow:o,resource:l,start:u,end:f,disabled:d}of t)if(!d&&Tn(e,u,f,l)){let c=Gn(e,u,f);ge(c,{gridColumn:s,gridRow:o,top:(c.start-u)/1e3,height:(c.end-c.start)/1e3,maxHeight:(f-c.start)/1e3}),r&&ni(c),i.push(c)}return i}function Hu(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 Wu(e){let t="all-day",r;return e?(r=Ce(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function fi(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>dr){Se(Dn(r),i);let s=Dn(q(r));s<t&&(t=s)}return{start:t,end:r}}}function di(e){"scrollTime"in e||(ge(e,{columnWidth:void 0,flexibleSlotTimeLimits:!1,nowIndicator:!1,scrollTime:"06:00:00",slotDuration:"00:30:00",slotHeight:24,slotLabelInterval:void 0,slotLabelFormat:{hour:"numeric",minute:"2-digit"},slotMaxTime:"24:00:00",slotMinTime:"00:00:00",snapDuration:void 0}),ge(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function no(e){"allDaySlot"in e||(ge(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),ge(e.theme,{allDay:"ec-all-day"}))}function ci(e){"scrollTime"in e||ge(e,{scrollTime:Fe,slotDuration:Fe,slotLabelInterval:t=>t!==void 0?Fe(t):void 0,slotMaxTime:Fe,slotMinTime:Fe,snapDuration:t=>t!==void 0?Fe(t):void 0})}function ro(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function Uu(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,l=[];return $(()=>{let u=1;for(let f of r)l.push({gridColumn:u,gridRow:1,resource:void 0,start:Se(q(f),o.min),end:Se(q(f),o.max),dayStart:f,dayEnd:kt(q(f)),disabled:Sn(f,s),highlight:i.some(d=>Ke(d,f))}),++u}),[l]}}function zu(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],l=[],u=[];return $(()=>{for(let f of r)for(let d of i)mt(f.display)?(o=o.concat(ui(f,d)),f.allDay&&(u=u.concat(xn(f,d)))):f.allDay?l=l.concat(xn(f,d)):s=s.concat(ui(f,d));Hu(s),Us(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function Vu(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,l]of r)l&&$(()=>{for(let u of i)l.allDay?o=o.concat(xn(l,u,!1)):s=s.concat(ui(l,u,!1))});return{iChunks:s,allDayIChunks:o}}}function Bu(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return $(()=>{l=Ks(s,o,i,r,t)}),l}}function Gu(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return $(()=>{i=r===void 0?_e(t)<3600?2:1:Za(_e(r)/_e(t))||1}),i}}function Yu(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return $(()=>{l=Xs(zt(It()),r,s,o,i)}),l}}function qu(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:_e(r)/_e(t)}}}function hi(){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(hn(e,"slotLabelFormat")),this.#t=a(Gu(e)),this.#n=Z(0),this.#r=a(qu(e))}}}function io(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(Bu(t)),this.#t=a(Yu(t,this));let r=a(zu(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks),o=a(()=>n(r).allDayChunks),l=a(()=>n(r).allDayBgChunks);this.#n=a(()=>n(i)),this.#r=a(()=>n(s)),this.#s=a(()=>n(o)),this.#i=a(()=>n(l));let u=a(Vu(t,this)),f=a(()=>n(u).iChunks),d=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(f)),this.#a=a(()=>n(d))}}}let Xu=class extends io(hi()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Uu(t,this))}};function Ku(e){return()=>{let{activeRange:t,filteredEvents:r,options:{filterResourcesWithEvents:i,resources:s},extensions:{viewResources:o}}=e,l=o?o(s):s;return $(()=>{i&&(l=s.filter(u=>r.some(f=>Tn(f,t.start,t.end,u)))),l.length||(l=Gs([{}]))}),l}}function Zu(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:l,viewResources:u}=t,f=[];return $(()=>{let d=1,c=i?[r,u]:[u,r];for(let g of c[0]){let h=[];for(let v of c[1]){let y=i?g:v,_=i?v:g;h.push({gridColumn:d,gridRow:1,resource:_,start:Se(q(y),l.min),end:Se(q(y),l.max),dayStart:y,dayEnd:kt(q(y)),disabled:Sn(y,o),highlight:s.some(m=>Ke(m,y))}),++d}f.push(h)}}),f}}function so(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(Ku(t))}}}let Ju=class extends so(io(hi())){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Zu(t,this))}};var Qu=Q("<span></span>");function vi(e,t){be(t,!0);let r=Ee(t,"date",3,void 0),i=Ee(t,"setLabel",3,void 0),s=a(()=>ee("state")),o=a(()=>n(s).intlDayHeaderAL),l=a(()=>n(s).options.resourceLabelContent),u=a(()=>n(s).options.resourceLabelDidMount),f=Z(void 0),d=a(()=>n(l)?Ce(n(l))?n(l)({resource:t.resource,date:r()?He(r()):void 0}):n(l):t.resource.title),c=Z(void 0);Ye(()=>{n(d),$(()=>{r()?b(c,n(o).format(r())+", "+n(f).innerText):i()&&(b(c,void 0),i()(n(f).innerText))})}),Vn(()=>{Ce(n(u))&&n(u)({resource:t.resource,date:r()?He(r()):void 0,el:n(f)})});var g=Qu();rt(g,h=>b(f,h),()=>n(f)),Me(g,()=>Xe(n(d))),se(()=>Pe(g,"aria-label",n(c))),x(e,g),ke()}function oo(e,t){be(t,!0);let r=Ee(t,"allDay",3,!1),i=a(()=>ee("state")),s=a(()=>n(i).options.slotHeight),o=a(()=>ee("view-state")),l=a(()=>n(o).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=Z(void 0);function v(y,_){if(r())return n(u);{let m=Qt(n(h)),p=m.height/n(h).offsetHeight;return Se(q(n(f)),n(l).duration,Xr((_-m.top)/(n(s)*n(l).ratio*p)))}}mr(e,{get date(){return n(u)},get allDay(){return r()},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(y){b(h,y,!0)}}),ke()}function gi(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).options.slotEventOverlap),s=a(()=>n(r).options.slotDuration),o=a(()=>n(r).options.slotHeight),l=a(()=>u=>{let f=_e(n(s)),d=t.chunk.top/f*n(o),c=t.chunk.height/f*n(o)||n(o),g=t.chunk.maxHeight/f*n(o);u["grid-column"]=t.chunk.gridColumn,u["inset-block-start"]=`${d}px`,u["min-block-size"]=`${c}px`,u["block-size"]=`${c}px`,u["max-block-size"]=`${g}px`;let h="100% - var(--ec-event-col-gap)";if(t.chunk.group){let v=t.chunk.group.columns.length;u["z-index"]=`${t.chunk.groupColumn+1}`,u["inset-inline-start"]=`calc((${h}) / ${v} * ${t.chunk.groupColumn})`,u["inline-size"]=`calc((${h}) / ${v} * ${n(i)?.5*(1+v-t.chunk.groupColumn):1})`}return u});_r(e,{get chunk(){return t.chunk},get styles(){return n(l)},axis:"y"}),ke()}function mi(e,t){be(t,!0);let r=Z(void 0),i=Z(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,zs(t.chunk,cn(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)}}),ke(u)}var ju=Q("<div></div>");function br(e,t){be(t,!0);let r=Ee(t,"span",3,1),i=a(()=>ee("state")),s=a(()=>n(i).mainEl),o=a(()=>n(i).now),l=a(()=>n(i).today),u=a(()=>n(i).options.slotDuration),f=a(()=>n(i).options.slotHeight),d=a(()=>n(i).options.theme),c=a(()=>ee("view-state")),g=a(()=>n(c).sidebarWidth),h=a(()=>{for(let w of t.days)if(Ke(w.dayStart,n(l)))return w;return{}}),v=a(()=>n(h).gridColumn),y=a(()=>n(h).start),_=a(()=>n(h).end),m=a(()=>{if(n(o)<n(y)||n(o)>n(_))return null;let w=_e(n(u));return(n(o)-n(y))/1e3/w*n(f)}),p=a(()=>({root:n(s),rootMargin:dn()?`0px -${n(g)+5.5}px 0px 0px`:`0px 0px 0px -${n(g)+5.5}px`,threshold:0}));function k(w,C){w.classList.toggle(n(d).hidden,!C.isIntersecting)}var S=de(),E=J(S);{var D=w=>{var C=ju();let M;Me(C,()=>Ss(k,n(p))),se(()=>{O(C,1,n(d).nowIndicator),M=bt(C,"",M,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),x(w,C)};ve(E,w=>{n(v)&&n(m)!==null&&w(D)})}x(e,S),ke()}var $u=Q('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),ef=Q("<div><time></time></div>"),tf=Q('<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 ao(e,t){be(t,!0);let r=Ee(t,"viewState",7),i=ee("state");r()||r(new Xu(i)),Pn("view-state",r());let s=a(()=>i.mainEl),o=a(()=>i.viewDates),l=a(()=>i.options.allDayContent),u=a(()=>i.options.allDaySlot),f=a(()=>i.options.columnWidth),d=a(()=>i.options.nowIndicator),c=a(()=>i.options.scrollTime),g=a(()=>i.options.slotHeight),h=a(()=>i.options.slotDuration),v=a(()=>i.options.theme),y=a(()=>r().allDayChunks),_=a(()=>r().allDayBgChunks),m=a(()=>r().allDayIChunks),p=a(()=>r().bgChunks),k=a(()=>r().chunks),S=a(()=>r().iChunks),E=a(()=>r().grid),D=a(()=>r().sidebarWidth),w=a(()=>r().slots),C=a(()=>r().slotLabelPeriodicity),M=a(()=>r().slotTimeLimits),X=Z(0),L=a(()=>Wu(n(l)));Ye(()=>{n(o),n(c),kn().then(te)});function te(){n(s).scrollTop=((_e(n(c))-_e(n(M).min))/_e(n(h))-.5)*n(g)}let pe=[];function W(){ti(pe,n(y))}Ye(W);var z=tf();let H;var F=ue(z),B=ue(F),le=re(B,2),K=ue(le);{var ye=N=>{var U=de(),Y=J(U);Ut(Y,()=>t.header),x(N,U)},ie=N=>{var U=de(),Y=J(U);oe(Y,17,()=>n(E)[0],De,(fe,Re,we)=>{let Ie=()=>n(Re).dayStart,Oe=()=>n(Re).disabled,ne=()=>n(Re).highlight;Xn(fe,{get date(){return Ie()},colIndex:1+we,get disabled(){return Oe()},get highlight(){return ne()},children:(ze,ct)=>{pr(ze,{get date(){return Ie()}})},$$slots:{default:!0}})}),x(N,U)};ve(K,N=>{t.header?N(ye):N(ie,!1)})}var ce=re(le,2);{var T=N=>{var U=$u(),Y=ue(U);Me(Y,()=>Xe(n(L)));var fe=re(Y,2);oe(fe,21,()=>n(E),De,(ne,ze,ct)=>{var et=de(),pt=J(et);oe(pt,17,()=>n(ze),De,(Ne,vn,Bt)=>{{let jt=a(()=>ct+1===n(E).length&&Bt+1===n(ze).length);oo(Ne,{get day(){return n(vn)},allDay:!0,get noIeb(){return n(jt)}})}}),x(ne,et)});var Re=re(fe,2),we=ue(Re);oe(we,19,()=>n(y),ne=>ne.id,(ne,ze,ct)=>{rt(mi(ne,{get chunk(){return n(ze)}}),(et,pt)=>pe[pt]=et,et=>pe?.[et],()=>[n(ct)])});var Ie=re(we,2);oe(Ie,17,()=>n(_),ne=>ne.id,(ne,ze)=>{mi(ne,{get chunk(){return n(ze)}})});var Oe=re(Ie,2);oe(Oe,17,()=>n(m),De,(ne,ze)=>{mi(ne,{get chunk(){return n(ze)}})}),se(()=>{O(U,1,n(v).allDay),O(Y,1,n(v).sidebar),O(fe,1,n(v).grid),O(Re,1,n(v).events)}),x(N,U)};ve(ce,N=>{n(u)&&N(T)})}var P=re(F,2),R=ue(P);oe(R,21,()=>n(w),De,(N,U,Y)=>{var fe=ef();let Re;var we=ue(fe);Me(we,()=>Xe(n(U)[1])),se(()=>{O(fe,1,St([n(v).slot,!Y&&n(v).hidden])),Re=bt(fe,"",Re,{"--ec-slot-label-periodicity":n(U)[2]}),Pe(we,"datetime",n(U)[0])}),x(N,fe)});var G=re(R,2);oe(G,21,()=>n(E),De,(N,U,Y)=>{var fe=de(),Re=J(fe);oe(Re,17,()=>n(U),De,(we,Ie,Oe)=>{{let ne=a(()=>Y+1===n(E).length&&Oe+1===n(U).length);oo(we,{get day(){return n(Ie)},get noIeb(){return n(ne)},noBeb:!0})}}),x(N,fe)});var Je=re(G,2),Ae=ue(Je);oe(Ae,17,()=>n(k),N=>N.id,(N,U)=>{gi(N,{get chunk(){return n(U)}})});var Lt=re(Ae,2);oe(Lt,17,()=>n(p),N=>N.id,(N,U)=>{gi(N,{get chunk(){return n(U)}})});var V=re(Lt,2);oe(V,17,()=>n(S),De,(N,U)=>{gi(N,{get chunk(){return n(U)}})});var ae=re(P,2);{var xe=N=>{var U=de(),Y=J(U);{var fe=we=>{var Ie=de(),Oe=J(Ie);Ut(Oe,()=>t.nowIndicator),x(we,Ie)},Re=we=>{br(we,{get days(){return n(E)[0]}})};ve(Y,we=>{t.nowIndicator?we(fe):we(Re,!1)})}x(N,U)};ve(ae,N=>{n(d)&&N(xe)})}rt(z,N=>i.mainEl=N,()=>i?.mainEl),Me(z,()=>qr(W)),se(()=>{O(z,1,n(v).main),H=bt(z,"",H,{"--ec-grid-cols":n(E).length*n(E)[0].length,"--ec-col-group-span":n(E)[0].length,"--ec-col-width":n(f)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(X)??""}px`,"--ec-sidebar-width":`${n(D)??""}px`}),O(F,1,n(v).header),O(B,1,n(v).sidebar),O(le,1,n(v).grid),O(P,1,n(v).body),O(R,1,n(v).sidebar),O(G,1,n(v).grid),O(Je,1,n(v).events)}),lr(B,"offsetWidth",N=>r().sidebarWidth=N),lr(F,"offsetHeight",N=>b(X,N)),x(e,z),ke()}var nf=Q("<!> <!>",1);function rf(e,t){be(t,!0);let r=ee("state"),i=new Ju(r),s=a(()=>r.today),o=a(()=>r.mainEl),l=a(()=>r.viewDates),u=a(()=>r.options.scrollTime),f=a(()=>r.options.datesAboveResources),d=a(()=>r.options.theme),c=a(()=>i.grid),g=a(()=>i.sidebarWidth),h=tt([]);Ye(()=>{n(f)&&(n(l),n(u),kn().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let y of n(c)){let _=y[0];if(Ke(_.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(n(c).length*y.length)*(_.gridColumn-1)*(dn()?-1:1);break}}}ao(e,{get viewState(){return i},header:m=>{var p=nf(),k=J(p);oe(k,17,()=>n(c),De,(D,w,C)=>{const M=a(()=>{const{dayStart:X,resource:L,disabled:te,highlight:pe}=n(w)[0];return{date:X,resource:L,disabled:te,highlight:pe}});{let X=a(()=>n(c)[0].length>1?n(d).colGroup:void 0),L=a(()=>1+C*n(w).length),te=a(()=>n(f)&&n(M).disabled),pe=a(()=>n(f)&&n(M).highlight);Xn(D,{get date(){return n(M).date},get className(){return n(X)},get weekday(){return n(f)},get colSpan(){return n(w).length},get colIndex(){return n(L)},get disabled(){return n(te)},get highlight(){return n(pe)},children:(W,z)=>{var H=de(),F=J(H);{var B=K=>{pr(K,{get date(){return n(M).date}})},le=K=>{vi(K,{get resource(){return n(M).resource},setLabel:ye=>h[C]=ye+", "})};ve(F,K=>{n(f)?K(B):K(le,!1)})}x(W,H)},$$slots:{default:!0}})}});var S=re(k,2);{var E=D=>{var w=de(),C=J(w);oe(C,17,()=>n(c),De,(M,X,L)=>{var te=de(),pe=J(te);oe(pe,17,()=>n(X),De,(W,z,H)=>{const F=a(()=>{const{dayStart:B,resource:le,disabled:K,highlight:ye}=n(z);return{date:B,resource:le,disabled:K,highlight:ye}});{let B=a(()=>1+H+L*n(X).length);Xn(W,{get date(){return n(F).date},get colIndex(){return n(B)},get disabled(){return n(F).disabled},get highlight(){return n(F).highlight},children:(le,K)=>{var ye=de(),ie=J(ye);{var ce=P=>{vi(P,{get resource(){return n(F).resource},get date(){return n(F).date}})},T=P=>{pr(P,{get date(){return n(F).date},get alPrefix(){return h[L]}})};ve(ie,P=>{n(f)?P(ce):P(T,!1)})}x(le,ye)},$$slots:{default:!0}})}}),x(M,te)}),x(D,w)};ve(S,D=>{n(c)[0].length>1&&D(E)})}x(m,p)},nowIndicator:m=>{var p=de(),k=J(p);{var S=D=>{{let w=a(()=>n(c).flat());br(D,{get days(){return n(w)},get span(){return n(c)[0].length}})}},E=D=>{var w=de(),C=J(w);{var M=L=>{var te=de(),pe=J(te);oe(pe,17,()=>n(c),De,(W,z)=>{br(W,{get days(){return n(z)}})}),x(L,te)},X=L=>{{let te=a(()=>n(c).flat());br(L,{get days(){return n(te)},get span(){return n(c).length}})}};ve(C,L=>{n(c)[0].length>1?L(M):L(X,!1)})}x(D,w)};ve(k,D=>{n(f)?D(S):D(E,!1)})}x(m,p)},$$slots:{header:!0,nowIndicator:!0}}),ke()}const sf={createOptions(e){no(e),di(e),ro(e),ge(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),ge(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),ge(e.theme,{colGroup:"ec-col-group"}),ge(e.views,{resourceTimeGridDay:{buttonText:Yn,component:lo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:it("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:qn,component:lo,duration:{weeks:1},theme:it("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){ci(e)}};function lo(e){return fi(e),rf}function pi(e,t,r,i=!0){let s=[],o,l,u,f,d,c=0;for(let{gridColumn:g,gridRow:h,resource:v,dayStart:y,dayEnd:_,start:m,end:p,disabled:k}of t)k||(r?Tn(e,y,_,v)&&(s.length||(o=y,u=g,f=h),s.push(y),l=p):Tn(e,m,p,v)&&(s.length||(o=m,u=g,f=h,d=ft(e.start-m,0)/1e3),s.push(y),l=p,c+=(Rt(p,e.end)-ft(m,e.start))/1e3));if(s.length){let g=Gn(e,o,l);return ge(g,{gridColumn:u,gridRow:f,dates:s,left:d,width:c}),i&&ni(g),[g]}return[]}function of(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 af(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 ge(e,{top:i,bottom:s}),i}function lf(e,t){return e[t.getTime()]??{min:Fe(0),max:Fe("24:00:00")}}function uf(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:l}=t,u=[];return $(()=>{let f=1;for(let d of l){let c=[],g=1;for(let h of r){let v=o[h.getTime()];c.push({gridColumn:g,gridRow:f,resource:d,start:Se(q(h),v.min),end:Se(q(h),v.max),dayStart:h,dayEnd:kt(q(h)),disabled:Sn(h,s),highlight:i.some(y=>Ke(y,h))}),++g}u.push(c),++f}}),u}}function ff(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],l=[];return $(()=>{for(let u of r)for(let f of i)mt(u.display)?(!s||u.allDay)&&(l=l.concat(pi(u,f,s))):o=o.concat(pi(u,f,s));of(o)}),{chunks:o,bgChunks:l}}}function df(e,t){return()=>{let{iEvents:r}=e,{grid:i,monthView:s}=t,o=[];for(let[,l]of r)l&&$(()=>{for(let u of i)o=o.concat(pi(l,u,s,!1))});return o}}function cf(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l={};return $(()=>{for(let u of r)l[u.getTime()]=Ks(s,o,i,[u],t)}),l}}function hf(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:l}=t,u={};return $(()=>{for(let f of r){let d=f.getTime();u[d]=d in s?Xs(f,i,l,s[d],o):[]}}),u}}function vf(e){return()=>{let{options:{resources:t}}=e,r;return $(()=>{r=t.some(i=>Vt(i).children.length)}),r}}function gf(e){return()=>{let{options:{slotDuration:t}}=e,r;return $(()=>{r=!_e(t)}),r}}class mf extends so(hi()){#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 monthView(){return n(this.#r)}set monthView(t){b(this.#r,t)}#s;get chunks(){return n(this.#s)}set chunks(t){b(this.#s,t)}#i;get bgChunks(){return n(this.#i)}set bgChunks(t){b(this.#i,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get nestedResources(){return n(this.#a)}set nestedResources(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(cf(t)),this.#t=a(hf(t,this)),this.#n=a(uf(t,this)),this.#r=a(gf(t));let r=a(ff(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#s=a(()=>n(i)),this.#i=a(()=>n(s)),this.#o=a(df(t,this)),this.#a=a(vf(t))}}function pf(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).options.slotWidth),s=a(()=>ee("view-state")),o=a(()=>n(s).monthView),l=a(()=>n(s).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=Z(void 0);function v(y,_){if(n(o))return n(u);{let m=Qt(n(h)),p=m.width/n(h).offsetWidth;return Se(q(n(f)),n(l).duration,Xr((dn()?m.right-y:y-m.left)/(n(i)*n(l).ratio*p)))}}mr(e,{get allDay(){return n(o)},get date(){return n(u)},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(y){b(h,y,!0)}}),ke()}function _i(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).options.slotDuration),s=a(()=>n(r).options.slotWidth),o=a(()=>ee("view-state")),l=a(()=>n(o).monthView),u=Z(void 0),f=Z(0),d=a(()=>t.chunk.event),c=a(()=>v=>{if(v["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,v["grid-row"]=t.chunk.gridRow,!n(l)){let _=t.chunk.left/_e(n(i))*n(s);v["inset-inline-start"]=`${_}px`,v["inline-size"]=`${t.chunk.width/_e(n(i))*n(s)}px`}let y=n(f);if(n(d)._margin){let[_,m]=n(d)._margin;t.chunk.gridRow===m&&(y=_)}return v["margin-block-start"]=`${y}px`,v});function g(){b(f,af(t.chunk,cn(n(u)),n(l)),!0)}var h={reposition:g};{let v=a(()=>[n(f),t.chunk.gridRow]);_r(e,{get chunk(){return t.chunk},get styles(){return n(c)},axis:"x",get forceMargin(){return n(v)},get el(){return n(u)},set el(y){b(u,y,!0)}})}return ke(h)}var _f=Q("<span></span>"),yf=Q("<button><!></button>"),wf=Q("<!> <span><!></span>",1);function bf(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).options),s=a(()=>n(i).resources),o=a(()=>n(i).theme),l=Z({}),u=Z(!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 p of _){let k=Vt(p);k.hidden=!m,k.expanded&&d(k.children,m)}}var c=wf(),g=J(c);oe(g,17,()=>Array(n(l).level),De,(_,m)=>{var p=_f();se(()=>O(p,1,n(o).expander)),x(_,p)});var h=re(g,2),v=ue(h);{var y=_=>{var m=yf();m.__click=f;var p=ue(m);{var k=E=>{var D=ws("−");x(E,D)},S=E=>{var D=ws("+");x(E,D)};ve(p,E=>{n(u)?E(k):E(S,!1)})}se(()=>O(m,1,n(o).button)),x(_,m)};ve(v,_=>{n(l).children?.length&&_(y)})}se(()=>O(h,1,n(o).expander)),x(e,c),ke()}Zt(["click"]);var kf=Q("<div></div>");function Cf(e,t){be(t,!0);let r=a(()=>ee("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(()=>ee("view-state")),c=a(()=>n(d).grid),g=a(()=>n(d).sidebarWidth),h=a(()=>{for(let w of n(c)[0])if(Ke(w.dayStart,n(o)))return w;return{}}),v=a(()=>n(h).gridColumn),y=a(()=>n(h).start),_=a(()=>n(h).end),m=a(()=>{if(n(s)<n(y)||n(s)>n(_))return null;let w=_e(n(l));return(n(s)-n(y))/1e3/w*n(u)}),p=a(()=>({root:n(i),rootMargin:dn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function k(w,C){w.classList.toggle(n(f).hidden,!C.isIntersecting)}var S=de(),E=J(S);{var D=w=>{var C=kf();let M;Me(C,()=>Ss(k,n(p))),se(()=>{O(C,1,n(f).nowIndicator),M=bt(C,"",M,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(c).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),x(w,C)};ve(E,w=>{n(v)&&n(m)!==null&&w(D)})}x(e,S),ke()}var Df=Q("<div><time></time></div>"),Ef=Q('<div role="rowheader"><!> <!></div>'),Tf=Q('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function xf(e,t){be(t,!0);let r=ee("state"),i=new mf(r);Pn("view-state",i);let s=a(()=>r.mainEl),o=a(()=>r.today),l=a(()=>r.viewDates),u=a(()=>r.options.columnWidth),f=a(()=>r.options.nowIndicator),d=a(()=>r.options.scrollTime),c=a(()=>r.options.slotDuration),g=a(()=>r.options.slotHeight),h=a(()=>r.options.slotWidth),v=a(()=>r.options.theme),y=a(()=>i.chunks),_=a(()=>i.bgChunks),m=a(()=>i.iChunks),p=a(()=>i.daySlots),k=a(()=>i.dayTimeLimits),S=a(()=>i.grid),E=a(()=>i.monthView),D=a(()=>i.nestedResources),w=a(()=>i.sidebarWidth),C=a(()=>i.slotLabelPeriodicity),M=a(()=>i.viewResources),X=Z(0);Ye(()=>{n(l),n(d),kn().then(L)});function L(){let V=0,ae=n(o)<n(l)[0]||n(o)>n(l).at(-1);if(n(E)){if(!ae){let xe=n(S)[0];for(let N of xe)if(Ke(N.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/xe.length*(N.gridColumn-1)*(dn()?-1:1);break}}}else{for(let xe of n(l)){let N=lf(n(k),xe);if(ae||Ke(xe,n(o))){V+=ft(Rt(_e(n(d)),_e(N.max))-_e(N.min),0);break}else V+=_e(N.max)-_e(N.min)}n(s).scrollLeft=V/_e(n(c))*n(h)*(dn()?-1:1)}}let te=[];function pe(){ti(te,n(y))}Ye(pe);var W=Tf();let z;var H=ue(W),F=ue(H),B=re(F,2),le=ue(B);oe(le,17,()=>n(S)[0],De,(V,ae,xe)=>{let N=()=>n(ae).dayStart,U=()=>n(ae).disabled,Y=()=>n(ae).highlight;Xn(V,{get date(){return N()},colIndex:1+xe,get disabled(){return U()},get highlight(){return Y()},children:(fe,Re)=>{pr(fe,{get date(){return N()}})},$$slots:{default:!0}})});var K=re(le,2);{var ye=V=>{var ae=de(),xe=J(ae);oe(xe,17,()=>n(S)[0],De,(N,U)=>{let Y=()=>n(U).dayStart,fe=()=>n(U).disabled,Re=()=>n(U).highlight;Xn(N,{get date(){return Y()},get className(){return n(v).slots},get disabled(){return fe()},get highlight(){return Re()},ariaHidden:!0,children:(we,Ie)=>{var Oe=de(),ne=J(Oe);oe(ne,17,()=>n(p)[Y().getTime()],De,(ze,ct)=>{var et=Df();let pt;var Ne=ue(et);Me(Ne,()=>Xe(n(ct)[1])),se(()=>{O(et,1,n(v).slot),pt=bt(et,"",pt,{"--ec-slot-label-periodicity":n(ct)[2]}),Pe(Ne,"datetime",n(ct)[0])}),x(ze,et)}),x(we,Oe)},$$slots:{default:!0}})}),x(V,ae)};ve(K,V=>{n(E)||V(ye)})}var ie=re(H,2),ce=ue(ie);oe(ce,21,()=>n(M),De,(V,ae)=>{var xe=Ef(),N=ue(xe);{var U=fe=>{bf(fe,{get resource(){return n(ae)}})};ve(N,fe=>{n(D)&&fe(U)})}var Y=re(N,2);vi(Y,{get resource(){return n(ae)}}),se(()=>O(xe,1,n(v).rowHead)),x(V,xe)});var T=re(ce,2);oe(T,21,()=>n(S),De,(V,ae,xe)=>{var N=de(),U=J(N);oe(U,17,()=>n(ae),De,(Y,fe,Re)=>{{let we=a(()=>Re+1===n(ae).length),Ie=a(()=>xe+1===n(S).length);pf(Y,{get day(){return n(fe)},get noIeb(){return n(we)},get noBeb(){return n(Ie)}})}}),x(V,N)});var P=re(T,2),R=ue(P);oe(R,19,()=>n(y),V=>V.id,(V,ae,xe)=>{rt(_i(V,{get chunk(){return n(ae)}}),(N,U)=>te[U]=N,N=>te?.[N],()=>[n(xe)])});var G=re(R,2);oe(G,17,()=>n(_),V=>V.id,(V,ae)=>{_i(V,{get chunk(){return n(ae)}})});var Je=re(G,2);oe(Je,17,()=>n(m),De,(V,ae)=>{_i(V,{get chunk(){return n(ae)}})});var Ae=re(ie,2);{var Lt=V=>{Cf(V,{})};ve(Ae,V=>{n(f)&&!n(E)&&V(Lt)})}rt(W,V=>r.mainEl=V,()=>r?.mainEl),Me(W,()=>qr(pe)),se(()=>{O(W,1,n(v).main),z=bt(W,"",z,{"--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(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-slot-width":`${n(h)??""}px`,"--ec-header-height":`${n(X)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`}),O(H,1,n(v).header),O(F,1,n(v).sidebar),O(B,1,n(v).grid),O(ie,1,n(v).body),O(ce,1,n(v).sidebar),O(T,1,n(v).grid),O(P,1,n(v).events)}),lr(F,"offsetWidth",V=>i.sidebarWidth=V),lr(H,"offsetHeight",V=>b(X,V)),x(e,W),ke()}const Sf={createOptions(e){di(e),ro(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:Yn,component:uo,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:it("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:qn,component:uo,displayEventEnd:!1,duration:{weeks:1},theme:it("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:ri,component:fo,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:it("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){ci(e)}};function uo(e){return fi(e),fo(e)}function fo(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Vt(r).hidden),xf}const Rf={createOptions(e){di(e),no(e),ge(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),ge(e,{view:"timeGridWeek"}),ge(e.views,{timeGridDay:{buttonText:Yn,component:co,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:it("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:qn,component:co,duration:{weeks:1},theme:it("ec-time-grid ec-week-view")}})},createParsers(e){ci(e)}};function co(e){return fi(e),ao}function If(e,t,r){return Sa(Xl,{target:e,props:{plugins:t,options:r}})}function Lf(e){return Ia(e)}function Pf(e,t){return If(e,[hu,Su,Fu,sf,Sf,Rf],t)}return Jn.create=Pf,Jn.destroy=Lf,Object.defineProperty(Jn,Symbol.toStringTag,{value:"Module"}),Jn})({});
|
|
5
|
+
var EventCalendar=(function(Jn){"use strict";var Ci=Array.isArray,ko=Array.prototype.indexOf,Qn=Array.from,Di=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,Co=Object.getOwnPropertyDescriptors,Do=Object.prototype,Eo=Array.prototype,Ei=Object.getPrototypeOf,Ti=Object.isExtensible;const Gt=()=>{};function To(e){for(var t=0;t<e.length;t++)e[t]()}function xi(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function xo(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 We=2,Er=4,jn=8,Si=1<<24,Pt=16,Mt=32,en=64,$n=128,yt=512,Ve=1024,st=2048,Ct=4096,ot=8192,At=16384,Tr=32768,Yt=65536,Ri=1<<17,Ii=1<<18,_n=1<<19,Li=1<<20,Ot=1<<25,tn=32768,xr=1<<21,Sr=1<<22,qt=1<<23,Ln=Symbol("$state"),So=Symbol("legacy props"),Ro=Symbol(""),yn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Pi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Io(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Lo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Po(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Mo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ao(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Oo(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function No(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Fo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ho(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Uo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const zo=1,Vo=2,Mi=4,Bo=8,Go=16,Yo=1,qo=4,Xo=8,Ko=16,Zo=1,Jo=2,Be=Symbol(),Qo="http://www.w3.org/1999/xhtml";function jo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ai(e){return e===this.v}function $o(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Oi(e){return!$o(e,this.v)}let jf=!1,Ge=null;function wn(e){Ge=e}function ee(e){return Fi().get(e)}function Pn(e,t){return Fi().set(e,t),t}function be(e,t=!1,r){Ge={p:Ge,i:!1,c:null,e:null,s:e,x:null,l:null}}function ke(e){var t=Ge,r=t.e;if(r!==null){t.e=null;for(var i of r)ts(i)}return e!==void 0&&(t.x=e),t.i=!0,Ge=t.p,e??{}}function Ni(){return!0}function Fi(e){return Ge===null&&Pi(),Ge.c??=new Map(ea(Ge)||void 0)}function ea(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 Hi(){var e=nn;nn=[],To(e)}function rn(e){if(nn.length===0&&!Mn){var t=nn;queueMicrotask(()=>{t===nn&&Hi()})}nn.push(e)}function ta(){for(;nn.length>0;)Hi()}function Wi(e){var t=Te;if(t===null)return he.f|=qt,e;if((t.f&Tr)===0){if((t.f&$n)===0)throw e;t.b.error(e)}else bn(e,t)}function bn(e,t){for(;t!==null;){if((t.f&$n)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const er=new Set;let Le=null,ht=null,vt=[],tr=null,Rr=!1,Mn=!1;class Dt{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){vt=[],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,zi(r.render_effects),zi(r.effects),this.#s?.resolve()),ht=null}#a(t,r){t.f^=Ve;for(var i=t.first;i!==null;){var s=i.f,o=(s&(Mt|en))!==0,l=o&&(s&Ve)!==0,u=l||(s&ot)!==0||this.skipped_effects.has(i);if((i.f&$n)!==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):Hn(i)&&((i.f&Pt)!==0&&this.#i.add(i),Wn(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&st)!==0?this.#i.add(r):(r.f&Ct)!==0&&this.#o.add(r),this.#u(r.deps),qe(r,Ve)}#u(t){if(t!==null)for(const r of t)(r.f&We)===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),ht?.set(t,t.v))}activate(){Le=this,this.apply()}deactivate(){Le===this&&(Le=null,ht=null)}flush(){if(this.activate(),vt.length>0){if(Ui(),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(er.size>1){this.previous.clear();var t=ht,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const o of er){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=vt;vt=[];const f=new Set,d=new Map;for(const c of l)Vi(c,u,f,d);if(vt.length>0){Le=o,o.apply();for(const c of vt)o.#a(c,i);o.deactivate()}vt=s}}Le=null,ht=t}this.committed=!0,er.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,st),sn(t);for(const t of this.#o)qe(t,Ct),sn(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#s??=xi()).promise}static ensure(){if(Le===null){const t=Le=new Dt;er.add(Le),Mn||Dt.enqueue(()=>{Le===t&&t.flush()})}return Le}static enqueue(t){rn(t)}apply(){}}function na(e){var t=Mn;Mn=!0;try{for(var r;;){if(ta(),vt.length===0&&(Le?.flush(),vt.length===0))return tr=null,r;Ui()}}finally{Mn=t}}function Ui(){var e=ln;Rr=!0;var t=null;try{var r=0;for(sr(!0);vt.length>0;){var i=Dt.ensure();if(r++>1e3){var s,o;ra()}i.process(vt),Xt.clear()}}finally{Rr=!1,sr(e),tr=null}}function ra(){try{Ao()}catch(e){bn(e,tr)}}let Nt=null;function zi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(At|ot))===0&&Hn(i)&&(Nt=new Set,Wn(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?ss(i):i.fn=null),Nt?.size>0)){Xt.clear();for(const s of Nt){if((s.f&(At|ot))!==0)continue;const o=[s];let l=s.parent;for(;l!==null;)Nt.has(l)&&(Nt.delete(l),o.push(l)),l=l.parent;for(let u=o.length-1;u>=0;u--){const f=o[u];(f.f&(At|ot))===0&&Wn(f)}}Nt.clear()}}Nt=null}}function Vi(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&We)!==0?Vi(s,t,r,i):(o&(Sr|Pt))!==0&&(o&st)===0&&Bi(s,t,i)&&(qe(s,st),sn(s))}}function Bi(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&We)!==0&&Bi(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function sn(e){for(var t=tr=e;t.parent!==null;){t=t.parent;var r=t.f;if(Rr&&t===Te&&(r&Pt)!==0&&(r&Ii)===0)return;if((r&(en|Mt))!==0){if((r&Ve)===0)return;t.f^=Ve}}vt.push(t)}function ia(e){let t=0,r=Kt(0),i;return()=>{On()&&(n(r),ns(()=>(t===0&&(i=$(()=>e(()=>Et(r)))),t+=1,()=>{rn(()=>{t-=1,t===0&&(i?.(),i=void 0,Et(r))})})))}}var sa=Yt|_n|$n;function oa(e,t,r){new aa(e,t,r)}class aa{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=ia(()=>(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=Nn(()=>{Te.b=this;{var s=this.#p();try{this.#o=at(()=>i(s))}catch(o){this.error(o)}this.#c>0?this.#m():this.#e=!1}return()=>{this.#f?.remove()}},sa)}#w(){try{this.#o=at(()=>this.#s(this.#t))}catch(t){this.error(t)}this.#e=!1}#b(){const t=this.#r.pending;t&&(this.#a=at(()=>t(this.#t)),Dt.enqueue(()=>{var r=this.#p();this.#o=this.#g(()=>(Dt.ensure(),at(()=>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=Ft(),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=he,s=Ge;xt(this.#i),nt(this.#i),wn(this.#i.ctx);try{return t()}catch(o){return Wi(o),null}finally{xt(r),nt(i),wn(s)}}#m(){const t=this.#r.pending;this.#o!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),ls(this.#o,this.#u)),this.#a===null&&(this.#a=at(()=>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&&kn(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&&(je(this.#o),this.#o=null),this.#a&&(je(this.#a),this.#a=null),this.#l&&(je(this.#l),this.#l=null);var s=!1,o=!1;const l=()=>{if(s){jo();return}s=!0,o&&Uo(),Dt.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,at(()=>this.#s(this.#t)))),this.#c>0?this.#m():this.#e=!1};var u=he;try{nt(null),o=!0,r?.(t,l),o=!1}catch(f){bn(f,this.#i&&this.#i.parent)}finally{nt(u)}i&&rn(()=>{this.#l=this.#g(()=>{Dt.ensure(),this.#v=!0;try{return at(()=>{i(this.#t,()=>t,()=>l)})}catch(f){return bn(f,this.#i.parent),null}finally{this.#v=!1}})})}}function la(e,t,r,i){const s=rr;if(r.length===0&&e.length===0){i(t.map(s));return}var o=Le,l=Te,u=ua();function f(){Promise.all(r.map(d=>fa(d))).then(d=>{u();try{i([...t.map(s),...d])}catch(c){(l.f&At)===0&&bn(c,l)}o?.deactivate(),nr()}).catch(d=>{bn(d,l)})}e.length>0?Promise.all(e).then(()=>{u();try{return f()}finally{o?.deactivate(),nr()}}):f()}function ua(){var e=Te,t=he,r=Ge,i=Le;return function(o=!0){xt(e),nt(t),wn(r),o&&i?.activate()}}function nr(){xt(null),nt(null),wn(null)}function rr(e){var t=We|st,r=he!==null&&(he.f&We)!==0?he:null;return Te!==null&&(Te.f|=_n),{ctx:Ge,deps:null,effects:null,equals:Ai,f:t,fn:e,reactions:null,rv:0,v:Be,wv:0,parent:r??Te,ac:null}}function fa(e,t){let r=Te;r===null&&Io();var i=r.b,s=void 0,o=Kt(Be),l=!he,u=new Map;return _a(()=>{var f=xi();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{d===Le&&d.committed&&d.deactivate(),nr()})}catch(h){f.reject(h),nr()}var d=Le;if(l){var c=!i.is_pending();i.update_pending_count(1),d.increment(c),u.get(d)?.reject(yn),u.delete(d),u.set(d,f)}const g=(h,v=void 0)=>{if(d.activate(),v)v!==yn&&(o.f|=qt,kn(o,v));else{(o.f&qt)!==0&&(o.f^=qt),kn(o,h);for(const[y,p]of u){if(u.delete(y),y===d)break;p.reject(yn)}}l&&(i.update_pending_count(-1),d.decrement(c))};f.promise.then(g,h=>g(null,h||"unknown"))}),Mr(()=>{for(const f of u.values())f.reject(yn)}),new Promise(f=>{function d(c){function g(){c===s?f(o):d(s)}c.then(g,g)}d(s)})}function a(e){const t=rr(e);return fs(t),t}function Gi(e){const t=rr(e);return t.equals=Oi,t}function Yi(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)je(t[r])}}function da(e){for(var t=e.parent;t!==null;){if((t.f&We)===0)return(t.f&At)===0?t:null;t=t.parent}return null}function Ir(e){var t,r=Te;xt(da(e));try{e.f&=~tn,Yi(e),t=gs(e)}finally{xt(r)}return t}function qi(e){var t=Ir(e);if(e.equals(t)||(Le?.is_fork||(e.v=t),e.wv=hs()),!un)if(ht!==null)(On()||Le?.is_fork)&&ht.set(e,t);else{var r=(e.f&yt)===0?Ct:Ve;qe(e,r)}}let Lr=new Set;const Xt=new Map;let Xi=!1;function Kt(e,t){var r={f:0,v:e,reactions:null,equals:Ai,rv:0,wv:0};return r}function Z(e,t){const r=Kt(e);return fs(r),r}function Ki(e,t=!1,r=!0){const i=Kt(e);return t||(i.equals=Oi),i}function b(e,t,r=!1){he!==null&&(!Tt||(he.f&Ri)!==0)&&Ni()&&(he.f&(We|Pt|Sr|Ri))!==0&&!Ht?.includes(e)&&Wo();let i=r?tt(t):t;return kn(e,i)}function kn(e,t){if(!e.equals(t)){var r=e.v;un?Xt.set(e,t):Xt.set(e,r),e.v=t;var i=Dt.ensure();i.capture(e,r),(e.f&We)!==0&&((e.f&st)!==0&&Ir(e),qe(e,(e.f&yt)!==0?Ve:Ct)),e.wv=hs(),Zi(e,st),Te!==null&&(Te.f&Ve)!==0&&(Te.f&(Mt|en))===0&&(gt===null?ka([e]):gt.push(e)),!i.is_fork&&Lr.size>0&&!Xi&&ca()}return t}function ca(){Xi=!1;var e=ln;sr(!0);const t=Array.from(Lr);try{for(const r of t)(r.f&Ve)!==0&&qe(r,Ct),Hn(r)&&Wn(r)}finally{sr(e)}Lr.clear()}function Et(e){b(e,e.v+1)}function Zi(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&st)===0;if(u&&qe(o,t),(l&We)!==0){var f=o;ht?.delete(f),(l&tn)===0&&(l&yt&&(o.f|=tn),Zi(f,Ct))}else u&&((l&Pt)!==0&&Nt!==null&&Nt.add(o),sn(o))}}function tt(e){if(typeof e!="object"||e===null||Ln in e)return e;const t=Ei(e);if(t!==Do&&t!==Eo)return e;var r=new Map,i=Ci(e),s=Z(0),o=Wt,l=u=>{if(Wt===o)return u();var f=he,d=Wt;nt(null),cs(o);var c=u();return nt(f),cs(d),c};return i&&r.set("length",Z(e.length)),new Proxy(e,{defineProperty(u,f,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Fo();var c=r.get(f);return c===void 0?c=l(()=>{var g=Z(d.value);return r.set(f,g),g}):b(c,d.value,!0),!0},deleteProperty(u,f){var d=r.get(f);if(d===void 0){if(f in u){const c=l(()=>Z(Be));r.set(f,c),Et(s)}}else b(d,Be),Et(s);return!0},get(u,f,d){if(f===Ln)return e;var c=r.get(f),g=f in u;if(c===void 0&&(!g||pn(u,f)?.writable)&&(c=l(()=>{var v=tt(g?u[f]:Be),y=Z(v);return y}),r.set(f,c)),c!==void 0){var h=n(c);return h===Be?void 0:h}return Reflect.get(u,f,d)},getOwnPropertyDescriptor(u,f){var d=Reflect.getOwnPropertyDescriptor(u,f);if(d&&"value"in d){var c=r.get(f);c&&(d.value=n(c))}else if(d===void 0){var g=r.get(f),h=g?.v;if(g!==void 0&&h!==Be)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return d},has(u,f){if(f===Ln)return!0;var d=r.get(f),c=d!==void 0&&d.v!==Be||Reflect.has(u,f);if(d!==void 0||Te!==null&&(!c||pn(u,f)?.writable)){d===void 0&&(d=l(()=>{var h=c?tt(u[f]):Be,v=Z(h);return v}),r.set(f,d));var g=n(d);if(g===Be)return!1}return c},set(u,f,d,c){var g=r.get(f),h=f in u;if(i&&f==="length")for(var v=d;v<g.v;v+=1){var y=r.get(v+"");y!==void 0?b(y,Be):v in u&&(y=l(()=>Z(Be)),r.set(v+"",y))}if(g===void 0)(!h||pn(u,f)?.writable)&&(g=l(()=>Z(void 0)),b(g,tt(d)),r.set(f,g));else{h=g.v!==Be;var p=l(()=>tt(d));b(g,p)}var m=Reflect.getOwnPropertyDescriptor(u,f);if(m?.set&&m.set.call(c,d),!h){if(i&&typeof f=="string"){var _=r.get("length"),k=Number(f);Number.isInteger(k)&&k>=_.v&&b(_,k+1)}Et(s)}return!0},ownKeys(u){n(s);var f=Reflect.ownKeys(u).filter(g=>{var h=r.get(g);return h===void 0||h.v!==Be});for(var[d,c]of r)c.v!==Be&&!(d in u)&&f.push(d);return f},setPrototypeOf(){Ho()}})}var wt,Ji,Qi,ji;function ha(){if(wt===void 0){wt=window,Ji=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Qi=pn(t,"firstChild").get,ji=pn(t,"nextSibling").get,Ti(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ti(r)&&(r.__t=void 0)}}function Ft(e=""){return document.createTextNode(e)}function ir(e){return Qi.call(e)}function An(e){return ji.call(e)}function ue(e,t){return ir(e)}function J(e,t=!1){{var r=ir(e);return r instanceof Comment&&r.data===""?An(r):r}}function re(e,t=1,r=!1){let i=e;for(;t--;)i=An(i);return i}function va(e){e.textContent=""}function $i(){return!1}function ga(e,t){{const r=document.body;e.autofocus=!0,rn(()=>{document.activeElement===r&&e.focus()})}}function Pr(e){var t=he,r=Te;nt(null),xt(null);try{return e()}finally{nt(t),xt(r)}}function es(e){Te===null&&(he===null&&Mo(),Po()),un&&Lo()}function ma(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function bt(e,t,r){var i=Te;i!==null&&(i.f&ot)!==0&&(e|=ot);var s={ctx:Ge,deps:null,nodes:null,f:e|st|yt,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Wn(s),s.f|=Tr}catch(u){throw je(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&_n)===0&&(o=o.first,(e&Pt)!==0&&(e&Yt)!==0&&o!==null&&(o.f|=Yt)),o!==null&&(o.parent=i,i!==null&&ma(o,i),he!==null&&(he.f&We)!==0&&(e&en)===0)){var l=he;(l.effects??=[]).push(o)}return s}function On(){return he!==null&&!Tt}function Mr(e){const t=bt(jn,null,!1);return qe(t,Ve),t.teardown=e,t}function Ye(e){es();var t=Te.f,r=!he&&(t&Mt)!==0&&(t&Tr)===0;if(r){var i=Ge;(i.e??=[]).push(e)}else return ts(e)}function ts(e){return bt(Er|Li,e,!1)}function on(e){return es(),bt(jn|Li,e,!0)}function pa(e){Dt.ensure();const t=bt(en|_n,e,!0);return(r={})=>new Promise(i=>{r.outro?an(t,()=>{je(t),i(void 0)}):(je(t),i(void 0))})}function Ar(e){return bt(Er,e,!1)}function _a(e){return bt(Sr|_n,e,!0)}function ns(e,t=0){return bt(jn|t,e,!0)}function se(e,t=[],r=[],i=[]){la(i,t,r,s=>{bt(jn,()=>e(...s.map(n)),!0)})}function Nn(e,t=0){var r=bt(Pt|t,e,!0);return r}function ya(e,t=0){var r=bt(Si|t,e,!0);return r}function at(e){return bt(Mt|_n,e,!0)}function rs(e){var t=e.teardown;if(t!==null){const r=un,i=he;us(!0),nt(null);try{t.call(null)}finally{us(r),nt(i)}}}function is(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Pr(()=>{s.abort(yn)});var i=r.next;(r.f&en)!==0?r.parent=null:je(r,t),r=i}}function wa(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Mt)===0&&je(t),t=r}}function je(e,t=!0){var r=!1;(t||(e.f&Ii)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ba(e.nodes.start,e.nodes.end),r=!0),is(e,t&&!r),or(e,0),qe(e,At);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();rs(e);var s=e.parent;s!==null&&s.first!==null&&ss(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function ba(e,t){for(;e!==null;){var r=e===t?null:An(e);e.remove(),e=r}}function ss(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=[];os(e,i,!0);var s=()=>{r&&je(e),t&&t()},o=i.length;if(o>0){var l=()=>--o||s();for(var u of i)u.out(l)}else s()}function os(e,t,r){if((e.f&ot)===0){e.f^=ot;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&Yt)!==0||(s.f&Mt)!==0&&(e.f&Pt)!==0;os(s,t,l?r:!1),s=o}}}function Or(e){as(e,!0)}function as(e,t){if((e.f&ot)!==0){e.f^=ot,(e.f&Ve)===0&&(qe(e,st),sn(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Yt)!==0||(r.f&Mt)!==0;as(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 ls(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:An(r);t.append(r),r=s}}let ln=!1;function sr(e){ln=e}let un=!1;function us(e){un=e}let he=null,Tt=!1;function nt(e){he=e}let Te=null;function xt(e){Te=e}let Ht=null;function fs(e){he!==null&&(Ht===null?Ht=[e]:Ht.push(e))}let $e=null,lt=0,gt=null;function ka(e){gt=e}let ds=1,Fn=0,Wt=Fn;function cs(e){Wt=e}function hs(){return++ds}function Hn(e){var t=e.f;if((t&st)!==0)return!0;if(t&We&&(e.f&=~tn),(t&Ct)!==0){var r=e.deps;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s];if(Hn(o)&&qi(o),o.wv>e.wv)return!0}(t&yt)!==0&&ht===null&&qe(e,Ve)}return!1}function vs(e,t,r=!0){var i=e.reactions;if(i!==null&&!Ht?.includes(e))for(var s=0;s<i.length;s++){var o=i[s];(o.f&We)!==0?vs(o,t,!1):t===o&&(r?qe(o,st):(o.f&Ve)!==0&&qe(o,Ct),sn(o))}}function gs(e){var t=$e,r=lt,i=gt,s=he,o=Ht,l=Ge,u=Tt,f=Wt,d=e.f;$e=null,lt=0,gt=null,he=(d&(Mt|en))===0?e:null,Ht=null,wn(e.ctx),Tt=!1,Wt=++Fn,e.ac!==null&&(Pr(()=>{e.ac.abort(yn)}),e.ac=null);try{e.f|=xr;var c=e.fn,g=c(),h=e.deps;if($e!==null){var v;if(or(e,lt),h!==null&<>0)for(h.length=lt+$e.length,v=0;v<$e.length;v++)h[lt+v]=$e[v];else e.deps=h=$e;if(On()&&(e.f&yt)!==0)for(v=lt;v<h.length;v++)(h[v].reactions??=[]).push(e)}else h!==null&<<h.length&&(or(e,lt),h.length=lt);if(Ni()&>!==null&&!Tt&&h!==null&&(e.f&(We|Ct|st))===0)for(v=0;v<gt.length;v++)vs(gt[v],e);return s!==null&&s!==e&&(Fn++,gt!==null&&(i===null?i=gt:i.push(...gt))),(e.f&qt)!==0&&(e.f^=qt),g}catch(y){return Wi(y)}finally{e.f^=xr,$e=t,lt=r,gt=i,he=s,Ht=o,wn(l),Tt=u,Wt=f}}function Ca(e,t){let r=t.reactions;if(r!==null){var i=ko.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&We)!==0&&($e===null||!$e.includes(t))&&(qe(t,Ct),(t.f&yt)!==0&&(t.f^=yt,t.f&=~tn),Yi(t),or(t,0))}function or(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Ca(e,r[i])}function Wn(e){var t=e.f;if((t&At)===0){qe(e,Ve);var r=Te,i=ln;Te=e,ln=!0;try{(t&(Pt|Si))!==0?wa(e):is(e),rs(e);var s=gs(e);e.teardown=typeof s=="function"?s:null,e.wv=ds;var o}finally{ln=i,Te=r}}}async function fn(){await Promise.resolve(),na()}function n(e){var t=e.f,r=(t&We)!==0;if(he!==null&&!Tt){var i=Te!==null&&(Te.f&At)!==0;if(!i&&!Ht?.includes(e)){var s=he.deps;if((he.f&xr)!==0)e.rv<Fn&&(e.rv=Fn,$e===null&&s!==null&&s[lt]===e?lt++:$e===null?$e=[e]:$e.includes(e)||$e.push(e));else{(he.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[he]:o.includes(he)||o.push(he)}}}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||ps(l))&&(u=Ir(l)),Xt.set(l,u),u}}else r&&(!ht?.has(e)||Le?.is_fork&&!On())&&(l=e,Hn(l)&&qi(l),ln&&On()&&(l.f&yt)===0&&ms(l));if(ht?.has(e))return ht.get(e);if((e.f&qt)!==0)throw e.v;return e.v}function ms(e){if(e.deps!==null){e.f^=yt;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&We)!==0&&(t.f&yt)===0&&ms(t)}}function ps(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&We)!==0&&ps(t))return!0;return!1}function $(e){var t=Tt;try{return Tt=!0,e()}finally{Tt=t}}const Da=-7169;function qe(e,t){e.f=e.f&Da|t}const Ea=["touchstart","touchmove"];function Ta(e){return Ea.includes(e)}const _s=new Set,Nr=new Set;function xa(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 ut(e,t,r,i,s){var o={capture:i,passive:s},l=xa(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++)_s.add(e[t]);for(var r of Nr)r(e)}let ys=null;function Un(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;ys=e;var l=0,u=ys===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){Di(e,"currentTarget",{configurable:!0,get(){return o||r}});var c=he,g=Te;nt(null),xt(null);try{for(var h,v=[];o!==null;){var y=o.assignedSlot||o.parentNode||o.host||null;try{var p=o["__"+i];p!=null&&(!o.disabled||e.target===o)&&p.call(o,e)}catch(m){h?v.push(m):h=m}if(e.cancelBubble||y===t||y===null)break;o=y}if(h){for(let m of v)queueMicrotask(()=>{throw m});throw h}}finally{e.__root=t,delete e.currentTarget,nt(c),xt(g)}}}function Sa(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ar(e,t){var r=Te;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Q(e,t){var r=(t&Zo)!==0,i=(t&Jo)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=Sa(o?e:"<!>"+e),r||(s=ir(s)));var l=i||Ji?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=ir(l),f=l.lastChild;ar(u,f)}else ar(l,l);return l}}function ws(e=""){{var t=Ft(e+"");return ar(t,t),t}}function de(){var e=document.createDocumentFragment(),t=document.createComment(""),r=Ft();return e.append(t,r),ar(t,r),e}function x(e,t){e!==null&&e.before(t)}function bs(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Ra(e,t){return Ia(e,t)}const Cn=new Map;function Ia(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0}){ha();var u=new Set,f=g=>{for(var h=0;h<g.length;h++){var v=g[h];if(!u.has(v)){u.add(v);var y=Ta(v);t.addEventListener(v,Un,{passive:y});var p=Cn.get(v);p===void 0?(document.addEventListener(v,Un,{passive:y}),Cn.set(v,1)):Cn.set(v,p+1)}}};f(Qn(_s)),Nr.add(f);var d=void 0,c=pa(()=>{var g=r??t.appendChild(Ft());return oa(g,{pending:()=>{}},h=>{if(o){be({});var v=Ge;v.c=o}s&&(i.$$events=s),d=e(h,i)||{},o&&ke()}),()=>{for(var h of u){t.removeEventListener(h,Un);var v=Cn.get(h);--v===0?(document.removeEventListener(h,Un),Cn.delete(h)):Cn.set(h,v)}Nr.delete(f),g!==r&&g.parentNode?.removeChild(g)}});return Fr.set(d,c),d}let Fr=new WeakMap;function La(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&&(je(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();ls(l,d),d.append(Ft()),this.#n.set(o,{effect:l,fragment:d})}else je(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)||(je(s.effect),this.#n.delete(i))};ensure(t,r){var i=Le,s=$i();if(r&&!this.#t.has(t)&&!this.#n.has(t))if(s){var o=document.createDocumentFragment(),l=Ft();o.append(l),this.#n.set(t,{effect:at(()=>r(l)),fragment:o})}else this.#t.set(t,at(()=>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 ve(e,t,r=!1){var i=new Hr(e),s=r?Yt:0;function o(l,u){i.ensure(l,u)}Nn(()=>{var l=!1;t((u,f=!0)=>{l=!0,o(f,u)}),l||o(!1,null)},s)}function De(e,t){return t}function Pa(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 h=e.outrogroups;Wr(Qn(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var f=i.length===0&&r!==null;if(f){var d=r,c=d.parentNode;va(c),c.append(d),e.items.clear()}Wr(t,!f)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Wr(e,t=!0){for(var r=0;r<e.length;r++)je(e[r],t)}var ks;function oe(e,t,r,i,s,o=null){var l=e,u=new Map,f=(t&Mi)!==0;if(f){var d=e;l=d.appendChild(Ft())}var c=null,g=Gi(()=>{var _=r();return Ci(_)?_:_==null?[]:Qn(_)}),h,v=!0;function y(){m.fallback=c,Ma(m,h,l,t,i),c!==null&&(h.length===0?(c.f&Ot)===0?Or(c):(c.f^=Ot,zn(c,null,l)):an(c,()=>{c=null}))}var p=Nn(()=>{h=n(g);for(var _=h.length,k=new Set,S=Le,E=$i(),D=0;D<_;D+=1){var w=h[D],C=i(w,D),M=v?null:u.get(C);M?(M.v&&kn(M.v,w),M.i&&kn(M.i,D),E&&S.skipped_effects.delete(M.e)):(M=Aa(u,v?l:ks??=Ft(),w,C,D,s,t,r),v||(M.e.f|=Ot),u.set(C,M)),k.add(C)}if(_===0&&o&&!c&&(v?c=at(()=>o(l)):(c=at(()=>o(ks??=Ft())),c.f|=Ot)),!v)if(E){for(const[q,L]of u)k.has(q)||S.skipped_effects.add(L.e);S.oncommit(y),S.ondiscard(()=>{})}else y();n(g)}),m={effect:p,items:u,outrogroups:null,fallback:c};v=!1}function Ma(e,t,r,i,s){var o=(i&Bo)!==0,l=t.length,u=e.items,f=e.effect.first,d,c=null,g,h=[],v=[],y,p,m,_;if(o)for(_=0;_<l;_+=1)y=t[_],p=s(y,_),m=u.get(p).e,(m.f&Ot)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(_=0;_<l;_+=1){if(y=t[_],p=s(y,_),m=u.get(p).e,e.outrogroups!==null)for(const L of e.outrogroups)L.pending.delete(m),L.done.delete(m);if((m.f&Ot)!==0)if(m.f^=Ot,m===f)zn(m,null,r);else{var k=c?c.next:f;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Jt(e,c,m),Jt(e,m,k),zn(m,k,r),c=m,h=[],v=[],f=c.next;continue}if((m.f&ot)!==0&&(Or(m),o&&(m.nodes?.a?.unfix(),(g??=new Set).delete(m))),m!==f){if(d!==void 0&&d.has(m)){if(h.length<v.length){var S=v[0],E;c=S.prev;var D=h[0],w=h[h.length-1];for(E=0;E<h.length;E+=1)zn(h[E],S,r);for(E=0;E<v.length;E+=1)d.delete(v[E]);Jt(e,D.prev,w.next),Jt(e,c,D),Jt(e,w,S),f=S,c=w,_-=1,h=[],v=[]}else d.delete(m),zn(m,f,r),Jt(e,m.prev,m.next),Jt(e,m,c===null?e.effect.first:c.next),Jt(e,c,m),c=m;continue}for(h=[],v=[];f!==null&&f!==m;)(d??=new Set).add(f),v.push(f),f=f.next;if(f===null)continue}(m.f&Ot)===0&&h.push(m),c=m,f=m.next}if(e.outrogroups!==null){for(const L of e.outrogroups)L.pending.size===0&&(Wr(Qn(L.done)),e.outrogroups?.delete(L));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||d!==void 0){var C=[];if(d!==void 0)for(m of d)(m.f&ot)===0&&C.push(m);for(;f!==null;)(f.f&ot)===0&&f!==e.fallback&&C.push(f),f=f.next;var M=C.length;if(M>0){var q=(i&Mi)!==0&&l===0?r:null;if(o){for(_=0;_<M;_+=1)C[_].nodes?.a?.measure();for(_=0;_<M;_+=1)C[_].nodes?.a?.fix()}Pa(e,C,q)}}o&&rn(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function Aa(e,t,r,i,s,o,l,u){var f=(l&zo)!==0?(l&Go)===0?Ki(r,!1,!1):Kt(r):null,d=(l&Vo)!==0?Kt(s):null;return{v:f,i:d,e:at(()=>(o(t,f??r,d??s,u),()=>{e.delete(i)}))}}function zn(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&Ot)===0?t.nodes.start:r;i!==null;){var l=An(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 Ut(e,t,...r){var i=new Hr(e);Nn(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Yt)}function Ur(e,t,r){var i=new Hr(e);Nn(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Yt)}function Me(e,t){var r=void 0,i;ya(()=>{r!==(r=t())&&(i&&(je(i),i=null),r&&(i=at(()=>{Ar(()=>r(e))})))})}function Cs(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=Cs(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Oa(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Cs(e))&&(i&&(i+=" "),i+=t);return i}function St(e){return typeof e=="object"?Oa(e):e??""}function Na(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function Ds(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 Fa(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,c=-1;const p=e.length;for(var g=0;g<p;g++){var h=e[g];if(u?h==="/"&&e[g-1]==="*"&&(u=!1):o?o===h&&(o=!1):h==="/"&&e[g+1]==="*"?u=!0:h==='"'||h==="'"?o=h:h==="("?l++:h===")"&&l--,!u&&o===!1&&l===0){if(h===":"&&c===-1)c=g;else if(h===";"||g===p-1){if(c!==-1){var v=zr(e.substring(d,c).trim());if(!f.includes(v)){h!==";"&&g++;var y=e.substring(d,g).trim();r+=" "+y+";"}}d=g+1,c=-1}}}}return i&&(r+=Ds(i)),s&&(r+=Ds(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function O(e,t,r,i,s,o){var l=e.__className;if(l!==r||l===void 0){var u=Na(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 kt(e,t,r,i){var s=e.__style;if(s!==t){var o=Fa(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 Ha=Symbol("is custom element"),Wa=Symbol("is html");function Pe(e,t,r,i){var s=Ua(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[Ro]=r),r==null?e.removeAttribute(t):typeof r!="string"&&za(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ua(e){return e.__attributes??={[Ha]:e.nodeName.includes("-"),[Wa]:e.namespaceURI===Qo}}var Es=new Map;function za(e){var t=e.getAttribute("is")||e.nodeName,r=Es.get(t);if(r)return r;Es.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=Co(s);for(var l in i)i[l].set&&r.push(l);s=Ei(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 Va=new Br({box:"border-box"});function lr(e,t,r){var i=Va.observe(e,()=>r(e[t]));Ar(()=>($(()=>r(e[t])),i))}function Ts(e,t){return e===t||e?.[Ln]===t}function rt(e={},t,r,i){return Ar(()=>{var s,o;return ns(()=>{s=o,o=i?.()||[],$(()=>{e!==r(...o)&&(t(e,...o),s&&Ts(r(...s),e)&&t(null,...s))})}),()=>{rn(()=>{o&&Ts(r(...o),e)&&t(null,...o)})}}),e}function xs(e,t,r){if(e==null)return t(void 0),Gt;const i=$(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}function Ba(e){let t;return xs(e,r=>t=r)(),t}let ur=!1,Gr=Symbol();function Ga(e,t,r){const i=r[t]??={store:null,source:Ki(void 0),unsubscribe:Gt};if(i.store!==e&&!(Gr in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=Gt;else{var s=!0;i.unsubscribe=xs(e,o=>{s?i.source.v=o:b(i.source,o)}),s=!1}return e&&Gr in r?Ba(e):n(i.source)}function Ya(){const e={};function t(){Mr(()=>{for(var r in e)e[r].unsubscribe();Di(e,Gr,{enumerable:!1,value:!0})})}return[e,t]}function qa(e){var t=ur;try{return ur=!1,[e(),ur]}finally{ur=t}}function Ee(e,t,r,i){var s=(r&Xo)!==0,o=(r&Ko)!==0,l=i,u=!0,f=()=>(u&&(u=!1,l=o?$(i):i),l),d;if(s){var c=Ln in e||So in e;d=pn(e,t)?.set??(c&&t in e?k=>e[t]=k:void 0)}var g,h=!1;s?[g,h]=qa(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=f(),d&&(No(),d(g)));var v;if(v=()=>{var k=e[t];return k===void 0?f():(u=!0,k)},(r&qo)===0)return v;if(d){var y=e.$$legacy;return(function(k,S){return arguments.length>0?((!S||y||h)&&d(S?v():k),k):v()})}var p=!1,m=((r&Yo)!==0?rr:Gi)(()=>(p=!1,v()));s&&n(m);var _=Te;return(function(k,S){if(arguments.length>0){const E=S?n(m):s?tt(k):k;return b(m,E),p=!0,l!==void 0&&(l=E),k}return un&&p||(_.f&At)!==0?m.v:n(m)})}function Xa(){return he===null&&Oo(),(he.ac??=new AbortController).signal}function Vn(e){Ge===null&&Pi(),Ye(()=>{const t=$(e);if(typeof t=="function")return t})}const Ka="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Ka);function Yr(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 Za(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 Ss(e,t){return r=>{let i=new IntersectionObserver(s=>{for(let o of s)e(r,o)},t);return i.observe(r),()=>{i.unobserve(r)}}}function ge(...e){return Object.assign(...e)}function dn(e){return Object.keys(e)}function Rs(e){return Object.entries(e)}function Xr(e){return Math.floor(e)}function Ja(e){return Math.ceil(e)}function Rt(...e){return Math.min(...e)}function ft(...e){return Math.max(...e)}function Qa(){return Symbol("ec")}function Kr(e){return Array.isArray(e)}function Ce(e){return typeof e=="function"}function ja(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Zr(e){return e instanceof Date}function $a(e){return e()}function el(e){e.forEach($a)}function tl(){}const fr=e=>e;function Jr(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function cn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const dr=86400;function It(e=void 0){return e!==void 0?Zr(e)?Os(e):il(e):Os(new Date)}function Fe(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let r=0,i=2;for(let s of e.split(":",3))r+=parseInt(s,10)*Math.pow(60,i--);e={seconds:r}}else Zr(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function K(e){return new Date(e.getTime())}function Se(e,t,r=1){e.setUTCFullYear(e.getUTCFullYear()+r*t.years);let i=e.getUTCMonth()+r*t.months;for(e.setUTCMonth(i),i%=12,i<0&&(i+=12);e.getUTCMonth()!==i;)Dn(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function cr(e,t,r=1){return Se(e,t,-r)}function mt(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function Dn(e,t=1){return mt(e,-t)}function zt(e){return e.setUTCHours(0,0,0,0),e}function He(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function dt(e,t=19){return e.toISOString().substring(0,t)}function Ke(e,...t){return t.every(r=>e.getTime()===r.getTime())}function nl(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Is(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function Ls(e){return typeof e=="string"&&e.length<=10}function Qr(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function _e(e){return e.seconds}function Ps(e,t,r){return Se(e,t),As(e,r,mt),e}function Ms(e,t,r){return cr(e,t),As(e,r,Dn),e}function As(e,t,r){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)r(e)}function rl(e,t){e=K(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/dr+1)/7)}function Os(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function il(e){const t=e.match(/\d+/g);return new Date(Date.UTC(Number(t[0]),Number(t[1])-1,Number(t[2]),Number(t[3]||0),Number(t[4]||0),Number(t[5]||0)))}let jr=Qa();function Ns(e,t){e[jr]=t}function sl(e){return!!e?.[jr]}function Vt(e){return e[jr]}function Fs(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 Hs(e,t){for(;t--;)e=e.parentElement;return e}function hn(e){return Qt(e).height}function En(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(sl(s))return s;if(s.shadowRoot&&!i.includes(s.shadowRoot)){let o=En(e,t,s.shadowRoot,i);if(o)return o}}return null}function Bn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function ol(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 Ze(e){return e=ge({},e),e.currentStart=He(e.currentStart),e.currentEnd=He(e.currentEnd),e.activeStart=He(e.activeStart),e.activeEnd=He(e.activeEnd),e}let al=1;function hr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${al++}}`,resourceIds:$r(t,"resourceId").map(String),allDay:t.allDay??(Ls(t.start)&&Ls(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:$r(t,"className"),styles:$r(t,"style")};if(r.allDay){zt(r.start);let i=K(r.end);zt(r.end),(!Ke(r.end,i)||Ke(r.end,r.start))&&mt(r.end)}return r})}function $r(e,t){let r=e[t+"s"]??e[t]??[];return Kr(r)?r:[r]}function ll(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 ul(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?Qr(K(e.start),e.end):e.start),u;if(r&&(u=Ce(r)?r({event:Ue(e.event),timeText:l,view:Ze(o)}):r),u===void 0){let f;switch(e.event.display){case"background":f=[];break;case"pointer":f=e.event.allDay?[]:[Ws(l,e,i)];break;default:f=[...e.event.allDay?[]:[Ws(l,e,i)],Fs("h4",i.eventTitle,e.event.title)]}u={domNodes:f}}return[l,u]}function Ws(e,t,r){return Fs("time",r.eventTime,e,[["datetime",dt(t.start)]])}function fl(e,t,r){let i=t.classNames;return e&&(Ce(e)&&(e=e({event:Ue(t),view:Ze(r)})),i=[...Kr(e)?e:[e],...i]),i}function Ue(e){return Us(e,He)}function ei(e){return Us(e,K)}function Us(e,t){return e=ge({},e),e.start=t(e.start),e.end=t(e.end),e}function ti(e,t){e.length=t.length;for(let r of e)r?.reposition()}function Tn(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function vr(e){return dl(e)||cl(e)||hl(e)}function pt(e){return e==="background"}function dl(e){return e==="preview"}function cl(e){return e==="ghost"}function hl(e){return e==="pointer"}function Gn(e,t,r){return t=e.start>t?e.start:t,r=e.end<r?e.end:r,{start:t,end:r,event:e,zeroDuration:Ke(t,r)}}function xn(e,t,r=!0){let i=[],s,o,l;for(let{gridColumn:u,gridRow:f,resource:d,dayStart:c,dayEnd:g,disabled:h}of t)!h&&Tn(e,c,g,d)&&(i.push(c),s=g,o||(o=u,l=f));if(i.length){let u=Gn(e,i[0],s);return ge(u,{gridColumn:o,gridRow:l,dates:i}),r&&ni(u),[u]}return[]}function zs(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 Vs(e,t,r=1){e.prev&&(r=e.prev.bottom+1);let i=r+t;if(e.long){let s=e.long;s.sorted||(s.chunks.sort((o,l)=>o.top-l.top),s.sorted=!0);for(let o of s.chunks)if(r<o.bottom&&i>o.top){let l=o.bottom-r+1;r+=l,i+=l}}return ge(e,{top:r,bottom:i}),r}const Bs=new WeakMap;let vl=1;function ni(e){let{event:t,gridColumn:r,gridRow:i}=e,s=Bs.get(t);s||(s=vl++,Bs.set(t,s)),e.id=`${s}-${r}-${i}`}function vn(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return $(()=>{s=Ce(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(He(o))}}}function Gs(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return $(()=>{if(Ce(i))s=i;else{let o=new Intl.DateTimeFormat(r,i);s=(l,u)=>{if(l<=u)return o.formatRange(l,u);{let f=o.formatRangeToParts(u,l),d="",c=["startRange","endRange"],g=[!1,!1];for(let h of f){let v=c.indexOf(h.source);v>=0?g[v]||(d+=gl(c[1-v],f),g[v]=!0):d+=h.value}return d}}}}),{formatRange:(o,l)=>s(He(o),He(l))}}}function gl(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function Yn(e){return gr(e,"day")}function qn(e){return gr(e,"week")}function ri(e){return gr(e,"month")}function ml(e){return gr(e,"year")}function gr(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function it(e){return t=>({...t,view:e})}function pl(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=zt(It(t))),r&&(r=zt(It(r)))),{start:t,end:r}}function Sn(e,t){return t.start&&e<t.start||t.end&&e>t.end}function Ys(e){let t=[];return qs(e,0,t),t}function qs(e,t,r){let i=[];for(let s of e){let o=_l(s);i.push(o),r.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};Ns(o,l),s.children&&(l.children=qs(s.children,t+1,r))}return i}function _l(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:e.eventBackgroundColor,eventTextColor:e.eventTextColor,extendedProps:e.extendedProps??{}}}function yl(e,t){return Xs(e,t)?.eventBackgroundColor}function wl(e,t){return Xs(e,t)?.eventTextColor}function Xs(e,t){return t.find(r=>e.resourceIds.includes(r.id))}function Ks(e,t,r,i,s){let o=[];e=K(e);let l=K(e);for(Se(e,i.min),Se(l,i.max);e<l;)o.push([dt(e),s.format(e)]),Se(e,t,r);let u=Xr((e-l)/1e3/_e(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function Zs(e,t,r,i,s){let o=Fe(e),l=Fe(t);if(r){let u=Fe(Rt(_e(o),ft(0,_e(l)-dr))),f=Fe(ft(_e(l),_e(u)+dr)),d=Ce(r?.eventFilter)?r.eventFilter:c=>!pt(c.display);e:for(let c of i){let g=Se(K(c),o),h=Se(K(c),l),v=Se(K(c),u),y=Se(K(c),f);for(let p of s)if(!p.allDay&&d(p)&&p.start<y&&p.end>v){if(p.start<g){let m=ft((p.start-c)/1e3,_e(u));m<_e(o)&&(o.seconds=m)}if(p.end>h){let m=Rt((p.end-c)/1e3,_e(f));m>_e(l)&&(l.seconds=m)}if(_e(o)===_e(u)&&_e(l)===_e(f))break e}}}return{min:o,max:l}}class ii extends Map{#e=new Map;#t=Z(0);#n=Z(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?Z(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),Et(u);else if(o!==r){Et(s);var f=u.reactions===null?null:new Set(u.reactions),d=f===null||!s.reactions?.every(c=>f.has(c));d&&Et(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),Et(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);Et(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 bl(e){let t={buttonText:{today:"today"},customButtons:{},customScrollbars:!1,date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,resources:[],selectable:!1,theme:{active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",colHead:"ec-col-head",customScrollbars:"ec-custom-scrollbars",day:"ec-day",dayHead:"ec-day-head",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",grid:"ec-grid",header:"ec-header",hidden:"ec-hidden",highlight:"ec-highlight",icon:"ec-icon",main:"ec-main",noBeb:"ec-no-beb",noIeb:"ec-no-ieb",today:"ec-today",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"]},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let r of e)r.createOptions?.(t);return t}function kl(e){let t={date:r=>zt(It(r)),duration:Fe,events:hr,eventSources:ll,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>zt(It(i))),resources:Ys,validRange:pl};for(let r of e)r.createParsers?.(t);return t}const Js=["buttonText","customButtons","theme"];function Cl(e,t,r){let i=bl(t),s=kl(t);i=si(i,s),r=si(r,s);let o=oi(i,"views")??{},l=oi(r,"views")??{},u=new ii;js(u,i);let f={},d={};function c(){r.view&&u.set("view",r.view);let g=new Set([...dn(o),...dn(l)]);for(let h of g){let v=l[h]??{},y=Qs(i,o[h]??o[v.type]??{}),p=Qs(y,r,v),m=oi(p,"component");delete p.view;for(let _ of dn(p))u.has(_)?(f[_]||(f[_]=[]),f[_].push(Js.includes(_)?k=>p[_]=Ce(k)?k(y[_]):k:k=>p[_]=k)):delete p[_];on(()=>{let _=u.get("view");$(()=>{_===h&&(e.setViewComponent(m),d=p,js(u,p))})})}}return{proxy:new Proxy(u,{set(g,h,v){return d[h]=v,g.set(h,v),!0},get(g,h){return g.get(h)}}),setOption(g,h,v){u.has(g)&&(!v&&g in s&&(h=s[g](h)),f[g]?.forEach(y=>y(h)),u.set(g,d[g]??h))},initEffects:c}}function si(e,t){let r={...e};for(let i of dn(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of dn(e.views))r.views[i]=si(e.views[i],t)}return r}function oi(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 Js)Ce(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function js(e,t){for(let[r,i]of Rs(t))e.set(r,i)}function Dl(e,t){let r=[];for(let i of dn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function El(e){let t=0;return()=>{let{activeRange:r,fetchedRange:i,options:{events:s,eventSources:o,lazyFetching:l,loading:u}}=e;$(()=>{if(o.length||(e.events=s),!i.start||i.start>r.start||i.end<r.end||!l){Ce(u)&&!t&&u(!0);let f=()=>{--t===0&&Ce(u)&&u(!1)},d=[],c=y=>f(),g=y=>{d=d.concat(hr(y)),e.events=d,f()},h=dt(r.start),v=dt(r.end);for(let y of o){if(Ce(y.events)){let p=y.events({start:He(r.start),end:He(r.end),startStr:h,endStr:v},g,c);p!==void 0&&Promise.resolve(p).then(g,c)}else{let p=Ce(y.extraParams)?y.extraParams():ge({},y.extraParams);p.start=h,p.end=v,p=new URLSearchParams(p);let m=y.url,_={},k;["GET","HEAD"].includes(y.method)?m+=(m.includes("?")?"&":"?")+p:(_["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",k=String(p)),fetch(m,{method:y.method,headers:_,body:k,signal:Xa(),credentials:"same-origin"}).then(S=>S.json()).then(g).catch(c)}++t}ge(i,r)}})}}function Tl(e){return()=>{let t=setInterval(()=>{let r=It(),i=zt(K(r));e.now=r,Ke(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function xl(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;$(()=>{Ce(r)&&r({start:He(t.start),end:He(t.end),startStr:dt(t.start),endStr:dt(t.end),view:Ze(e.view)})})}}function Sl(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;$(()=>{Ce(i)&&(t||(t=setTimeout(()=>{t=null,i({view:Ze(e.view)})})))})}}function Rl(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;$(()=>{Ce(r)&&fn().then(()=>r({view:Ze(e.view)}))})}}function Il(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return $(()=>{s=K(t),r.months?s.setUTCDate(1):r.inWeeks&&Is(s,i),o=Se(K(s),r)}),{start:s,end:o}}}function Ll(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return $(()=>{i=K(t.start),s=K(t.end)}),r?r(i,s):{start:i,end:s}}}function Pl(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o}}=e,l=[...t];return $(()=>{if(Ce(r)){let u=t.map(Ue),f=Ze(e.view);l=l.filter((d,c)=>r({event:Ue(d),index:c,events:u,view:f}))}s&&(l=l.filter(u=>o.some(f=>u.resourceIds.includes(f.id)))),Ce(i)?l.sort((u,f)=>i(Ue(u),Ue(f))):l.sort((u,f)=>u.start-f.start||f.allDay-u.allDay)}),l}}function Ml(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return $(()=>{let o=K(r.start),l=K(r.end);for(;o<l;)i.includes(o.getUTCDay())||s.push(K(o)),mt(o);if(!s.length&&i.length&&i.length<7){for(;i.includes(o.getUTCDay());)mt(o);fn().then(()=>{e.setOption("date",o)})}}),s}}function Al(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return $(()=>{i=r.formatRange(t.start,Dn(K(t.end)))}),i}}function Ol(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return $(()=>{o=ol(s,i,r,t)}),o}}class Nl{#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)}#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}=Cl(this,t,r);this.options=i,this.#k=s,this.#e=Z(tt([])),this.#t=a(Il(this)),this.#n=a(Ll(this)),this.#r=Z({start:void 0,end:void 0}),this.#s=Z([]),this.#i=a(Pl(this)),this.#o=Z(),this.#a=Z(tt(It())),this.#l=Z(tt(zt(It()))),this.#u=a(Gs(this,"eventTimeFormat")),this.#f=a(vn(this,"dayHeaderFormat")),this.#d=a(vn(this,"dayHeaderAriaLabelFormat")),this.#c=a(Gs(this,"titleFormat")),this.#v=a(Ml(this)),this.#h=a(Al(this)),this.#y=a(Ol(this)),this.#w=Z(),this.#b=Z(tt({})),this.#p=Z(tt([])),this.#g=Z(tt({})),this.iEvents=new ii,this.#m=Z(tt(fr)),this.#_=Z();for(let l of t)l.initState?.(this);o(),this.#C()}#C(){on(Tl(this)),Ye(El(this)),Ye(xl(this)),Ye(Sl(this)),Ye(Rl(this))}setViewComponent(t){this.extensions={},this.features=[],this.viewComponent=t(this)}setOption(t,r,i=!0){this.#k(t,r,i)}}var Fl=Q("<h2></h2>"),Hl=Q("<button><i></i></button>"),Wl=Q("<button><i></i></button>"),Ul=Q("<button> </button>"),zl=Q("<button></button>"),Vl=Q("<button> </button>");function $s(e,t){be(t,!0);let r=ee("state"),i=a(()=>r.currentRange),s=a(()=>r.today),o=a(()=>r.viewTitle),l=a(()=>r.viewDates),u=a(()=>r.options.buttonText),f=a(()=>r.options.customButtons),d=a(()=>r.options.date),c=a(()=>r.options.duration),g=a(()=>r.options.hiddenDays),h=a(()=>r.options.theme),v=a(()=>r.options.validRange),y=a(()=>r.options.view),p=Z(!1),m=Z(!1),_=Z(!1),k=!1;on(()=>{n(l),n(v),t.buttons,$(()=>{k||(k=!0,t.buttons.includes("prev")&&(b(p,!1),n(v).start&&b(p,S(E),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,S(D),!0)),t.buttons.includes("today")&&(b(_,n(s)>=n(i).start&&n(s)<n(i).end,!0),!n(_)&&(n(v).start||n(v).end)&&b(_,S(w),!0)),fn().then(()=>k=!1))})});function S(q){let L=n(d);q();let te=n(l).every(pe=>Sn(pe,n(v)));return r.setOption("date",L),te}function E(){r.setOption("date",Ms(K(n(d)),n(c),n(g)))}function D(){r.setOption("date",Ps(K(n(d)),n(c),n(g)))}function w(){r.setOption("date",K(n(s)))}var C=de(),M=J(C);oe(M,17,()=>t.buttons,De,(q,L)=>{var te=de(),pe=J(te);{var W=H=>{var F=Fl();Me(F,()=>Xe(n(o))),se(()=>O(F,1,n(h).title)),x(H,F)},z=H=>{var F=de(),B=J(F);{var le=ye=>{var ie=Hl();ie.__click=E;var ce=ue(ie);se(()=>{O(ie,1,`${n(h).button??""} ec-${n(L)??""}`),Pe(ie,"aria-label",n(u).prev),Pe(ie,"title",n(u).prev),ie.disabled=n(p),O(ce,1,`${n(h).icon??""} ec-${n(L)??""}`)}),x(ye,ie)},X=ye=>{var ie=de(),ce=J(ie);{var T=R=>{var G=Wl();G.__click=D;var Je=ue(G);se(()=>{O(G,1,`${n(h).button??""} ec-${n(L)??""}`),Pe(G,"aria-label",n(u).next),Pe(G,"title",n(u).next),G.disabled=n(m),O(Je,1,`${n(h).icon??""} ec-${n(L)??""}`)}),x(R,G)},P=R=>{var G=de(),Je=J(G);{var Ae=V=>{var ae=Ul();ae.__click=w;var xe=ue(ae);se(()=>{O(ae,1,`${n(h).button??""} ec-${n(L)??""}`),ae.disabled=n(_),bs(xe,n(u)[n(L)])}),x(V,ae)},Lt=V=>{var ae=de(),xe=J(ae);{var N=Y=>{var fe=zl();fe.__click=function(...Re){n(f)[n(L)].click?.apply(this,Re)},Me(fe,()=>Xe(n(f)[n(L)].text)),se(()=>O(fe,1,St([n(h).button,`ec-${n(L)}`,n(f)[n(L)].active&&n(h).active]))),x(Y,fe)},U=Y=>{var fe=de(),Re=J(fe);{var we=Ie=>{var Oe=Vl();Oe.__click=()=>r.setOption("view",n(L));var ne=ue(Oe);se(()=>{O(Oe,1,St([n(h).button,`ec-${n(L)}`,n(y)===n(L)&&n(h).active])),bs(ne,n(u)[n(L)])}),x(Ie,Oe)};ve(Re,Ie=>{n(L)!==""&&Ie(we)},!0)}x(Y,fe)};ve(xe,Y=>{n(f)[n(L)]?Y(N):Y(U,!1)},!0)}x(V,ae)};ve(Je,V=>{n(L)==="today"?V(Ae):V(Lt,!1)},!0)}x(R,G)};ve(ce,R=>{n(L)==="next"?R(T):R(P,!1)},!0)}x(ye,ie)};ve(B,ye=>{n(L)==="prev"?ye(le):ye(X,!1)},!0)}x(H,F)};ve(pe,H=>{n(L)==="title"?H(W):H(z,!1)})}x(q,te)}),x(e,C),ke()}Zt(["click"]);var Bl=Q("<div><!></div>"),Gl=Q("<div></div>"),Yl=Q("<nav></nav>");function ql(e,t){be(t,!0);let r=a(()=>ee("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=Yl();oe(l,21,()=>dn(n(o)),De,(u,f)=>{var d=Gl();oe(d,21,()=>n(o)[n(f)],De,(c,g)=>{var h=de(),v=J(h);{var y=m=>{var _=Bl(),k=ue(_);$s(k,{get buttons(){return n(g)}}),se(()=>O(_,1,n(s).buttonGroup)),x(m,_)},p=m=>{$s(m,{get buttons(){return n(g)}})};ve(v,m=>{n(g).length>1?m(y):m(p,!1)})}x(c,h)}),se(()=>O(d,1,`ec-${n(f)??""}`)),x(u,d)}),se(()=>O(l,1,n(s).toolbar)),x(e,l),ke()}var Xl=Q("<div><!> <!> <!></div>");function Kl(e,t){be(t,!0);let r=Ee(t,"plugins",19,()=>[]),i=Ee(t,"options",19,()=>({})),s=new Nl(r(),i());Pn("state",s);let o=a(()=>s.auxComponents),l=a(()=>s.features),u=a(()=>s.events),f=a(()=>s.interaction),d=a(()=>s.iClass),c=a(()=>s.view),g=a(()=>s.viewComponent),h=a(()=>s.options.date),v=a(()=>s.options.duration),y=a(()=>s.options.height),p=a(()=>s.options.hiddenDays),m=a(()=>s.options.customScrollbars),_=a(()=>s.options.theme),k={...i()};on(()=>{for(let[T,P]of Dl(i(),k))$(()=>{S(T,P)});ge(k,i())});function S(T,P){return ja(P)&&(P={...P}),Kr(P)&&(P=[...P]),s.setOption(T,P,!1),this}function E(T){let P=s.options[T];return Zr(P)?He(P):P}function D(){return s.fetchedRange={start:void 0,end:void 0},this}function w(){return n(u).map(Ue)}function C(T){T=String(T);for(let P of n(u))if(P.id===T)return Ue(P);return null}function M(T){return T=hr([T])[0],n(u).push(T),s.events=[...n(u)],Ue(T)}function q(T){let P=String(T.id),R=n(u).findIndex(G=>G.id===P);return R>=0?(T=hr([T])[0],n(u)[R]=T,s.events=[...n(u)],Ue(T)):null}function L(T){T=String(T);let P=n(u).findIndex(R=>R.id===T);return P>=0&&(n(u).splice(P,1),s.events=[...n(u)]),this}function te(){return Ze(n(c))}function pe(){return n(f).action?.unselect(),this}function W(T,P){let R=En(T,P);if(R){let G=Vt(R)(T,P);return G.date=He(G.date),G}return null}function z(){return s.setOption("date",Ps(K(n(h)),n(v),n(p))),this}function H(){return s.setOption("date",Ms(K(n(h)),n(v),n(p))),this}var F={setOption:S,getOption:E,refetchEvents:D,getEvents:w,getEventById:C,addEvent:M,updateEvent:q,removeEventById:L,getView:te,unselect:pe,dateFromPoint:W,next:z,prev:H},B=Xl();let le;var X=ue(B);ql(X,{});var ye=re(X,2);{var ie=T=>{var P=de(),R=J(P);Ur(R,()=>n(g),(G,Je)=>{Je(G,{})}),x(T,P)};ve(ye,T=>{n(g)&&T(ie)})}var ce=re(ye,2);return oe(ce,17,()=>n(o),De,(T,P)=>{var R=de(),G=J(R);Ur(G,()=>n(P),(Je,Ae)=>{Ae(Je,{})}),x(T,R)}),se(T=>{O(B,1,St([n(_).calendar,n(_).view,n(d)&&n(_)[n(d)],n(m)&&n(_).customScrollbars])),Pe(B,"role",T),le=kt(B,"",le,{height:n(y)})},[()=>n(l).includes("list")?"list":"table"]),x(e,B),ke(F)}function Zl(e){return()=>{let{viewDates:t,options:{duration:r,hiddenDays:i}}=e,s;return $(()=>s=r.months||r.inWeeks?7-i.length:t.length),s}}function Jl(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,l=[];return $(()=>{let u=[],f=1,d=1;for(let c of s)u.push({gridColumn:f,gridRow:d,resource:void 0,dayStart:c,dayEnd:mt(K(c)),disabled:Sn(c,i),highlight:r.some(g=>Ke(g,c))}),f===o&&(l.push(u),u=[],f=0,++d),++f}),l}}function Ql(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return $(()=>{for(let l of r)for(let u of i)pt(l.display)?l.allDay&&(o=o.concat(xn(l,u))):s=s.concat(xn(l,u));zs(s)}),{chunks:s,bgChunks:o}}}function jl(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&$(()=>{for(let l of i)s=s.concat(xn(o,l,!1))});return s}}let $l=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(Zl(t)),this.#t=a(Jl(t,this)),this.#n=Z();let r=a(Ql(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(jl(t,this)),this.hiddenChunks=new ii,this.#o=a(vn(t,"dayCellFormat")),this.#a=a(vn(t,"dayPopoverFormat")),this.#l=Z(null)}};var eu=Q("<div><!></div>");function mr(e,t){be(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"),c=Ee(t,"noIeb",3,!1),g=Ee(t,"noBeb",3,!1),h=a(()=>ee("state")),v=a(()=>n(h).today),y=a(()=>n(h).interaction.action),p=a(()=>n(h).options.theme),m=a(()=>ee("view-state")),_=a(()=>n(m).snap),k=a(()=>Ke(t.date,n(v))),S=a(()=>l()([n(p).day,n(p).weekdays?.[t.date.getUTCDay()],n(k)&&n(p).today,f()&&n(p).highlight,u()&&n(p).disabled,c()&&n(p).noIeb,g()&&n(p).noBeb]));Vn(()=>{Ns(r(),(C,M)=>({allDay:i(),date:o()(C,M),resource:s(),dayEl:r(),disabled:u()}))});let E=a(()=>!u()&&n(y)?C=>n(y).select(C,n(_)):void 0);var D=eu();D.__pointerdown=function(...C){n(E)?.apply(this,C)};var w=ue(D);Ut(w,()=>t.children??Gt),rt(D,C=>r(C),()=>r()),se(()=>{O(D,1,St(n(S))),Pe(D,"role",d())}),x(e,D),ke()}Zt(["pointerdown"]);var tu=Q("<div></div>"),nu=Q("<article><!></article>");function eo(e,t){be(t,!0);let r=Ee(t,"el",15),i=Ee(t,"classes",3,fr),s=Ee(t,"styles",3,fr),o=a(()=>ee("state")),l=a(()=>n(o).intlEventTime),u=a(()=>n(o).view),f=a(()=>n(o).options.displayEventEnd),d=a(()=>n(o).options.eventBackgroundColor),c=a(()=>n(o).options.eventColor),g=a(()=>n(o).options.eventContent),h=a(()=>n(o).options.eventClick),v=a(()=>n(o).options.eventDidMount),y=a(()=>n(o).options.eventClassNames),p=a(()=>n(o).options.eventMouseEnter),m=a(()=>n(o).options.eventMouseLeave),_=a(()=>n(o).options.eventTextColor),k=a(()=>n(o).options.resources),S=a(()=>n(o).options.theme),E=a(()=>t.chunk.event),D=a(()=>t.chunk.event.display),w=a(()=>n(E).backgroundColor??yl(n(E),n(k))??n(d)??n(c)),C=a(()=>n(E).textColor??wl(n(E),n(k))??n(_)),M=a(()=>Rs(s()({"background-color":n(w),color:n(C)})).map(T=>`${T[0]}:${T[1]}`).concat(n(E).styles).join(";")),q=a(()=>i()([pt(n(D))?n(S).bgEvent:n(S).event,...fl(n(y),n(E),n(u))])),L=a(()=>ul(t.chunk,n(f),n(g),n(S),n(l),n(u))),te=a(()=>xo(n(L),2)),pe=a(()=>n(te)[0]),W=a(()=>n(te)[1]);Vn(()=>{Ce(n(v))&&n(v)({event:Ue(n(E)),timeText:n(pe),el:r(),view:Ze(n(u))})});function z(T,P){return Ce(T)&&!vr(P)?R=>T({event:Ue(n(E)),el:r(),jsEvent:R,view:Ze(n(u))}):void 0}let H=a(()=>!pt(n(D))&&z(n(h),n(D))||void 0),F=a(()=>n(H)&&Yr(n(H))),B=a(()=>z(n(p),n(D))),le=a(()=>z(n(m),n(D)));var X=nu();X.__click=function(...T){n(H)?.apply(this,T)},X.__keydown=function(...T){n(F)?.apply(this,T)},X.__pointerdown=function(...T){t.onpointerdown?.apply(this,T)};{const T=P=>{var R=tu();Me(R,()=>Xe(n(W))),se(()=>O(R,1,St(n(S).eventBody))),x(P,R)};var ye=ue(X);{var ie=P=>{var R=de(),G=J(R);Ut(G,()=>t.body,()=>T,()=>n(w),()=>n(C)),x(P,R)},ce=P=>{T(P)};ve(ye,P=>{t.body?P(ie):P(ce,!1)})}rt(X,P=>r(P),()=>r())}se(()=>{O(X,1,St(n(q))),kt(X,n(M)),Pe(X,"role",n(H)?"button":void 0),Pe(X,"tabindex",n(H)?0:void 0)}),ut("mouseenter",X,function(...T){n(B)?.apply(this,T)}),ut("mouseleave",X,function(...T){n(le)?.apply(this,T)}),x(e,X),ke()}Zt(["click","keydown","pointerdown"]);var ru=Q("<div><!></div>");function Xn(e,t){be(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(()=>ee("state")),f=a(()=>n(u).today),d=a(()=>n(u).options.theme);var c=ru(),g=ue(c);Ut(g,()=>t.children),se(h=>{O(c,1,h),Pe(c,"role",s()?null:"columnheader"),Pe(c,"aria-colspan",s()||i()<=1?null:i()),Pe(c,"aria-colindex",s()?null:t.colIndex),Pe(c,"aria-hidden",s()?"true":null)},[()=>St([t.className??n(d).colHead,r()&&n(d).weekdays?.[t.date.getUTCDay()],r()&&Ke(t.date,n(f))&&n(d).today,l()&&n(d).highlight,o()&&n(d).disabled])]),x(e,c),ke()}var iu=Q("<time></time>");function pr(e,t){be(t,!0);let r=Ee(t,"alPrefix",3,""),i=a(()=>ee("state")),s=a(()=>n(i).intlDayHeader),o=a(()=>n(i).intlDayHeaderAL);var l=iu();Me(l,()=>Xe(n(s).format(t.date))),se((u,f)=>{Pe(l,"datetime",u),Pe(l,"aria-label",`${r()??""}${f??""}`)},[()=>dt(t.date,10),()=>n(o).format(t.date)]),x(e,l),ke()}function _r(e,t){be(t,!0);let r=Ee(t,"el",15),i=a(()=>ee("state")),s=a(()=>n(i).iClasses),o=a(()=>n(i).interaction.action),l=a(()=>n(i).interaction.resizer),u=a(()=>ee("view-state")),f=a(()=>n(u).snap),d=a(()=>t.chunk.event),c=a(()=>t.chunk.event.display),g=a(()=>y=>n(s)(y,n(d)));function h(y){return n(o)?.draggable(y)?p=>n(o).drag(y,p,t.forceDate,t.forceMargin,n(f)):n(o)?.noAction}let v=a(()=>!pt(n(c))&&!vr(n(c))?h(n(d)):void 0);eo(e,{get chunk(){return t.chunk},get classes(){return n(g)},get styles(){return t.styles},get onpointerdown(){return n(v)},get el(){return r()},set el(p){r(p)},body:(p,m=Gt)=>{var _=de(),k=J(_);{var S=D=>{var w=de(),C=J(w);Ur(C,()=>n(l),(M,q)=>{q(M,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(L,te)=>{var pe=de(),W=J(pe);Ut(W,m),x(L,pe)},$$slots:{default:!0}})}),x(D,w)},E=D=>{var w=de(),C=J(w);Ut(C,m),x(D,w)};ve(k,D=>{n(l)?D(S):D(E,!1)})}x(p,_)},$$slots:{body:!0}}),ke()}var su=Q("<time></time>"),ou=Q("<span></span>"),au=Q('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),lu=Q("<div><!> <!></div> <div><!></div>",1);function uu(e,t){be(t,!0);const r=()=>Ga(n(d),"$firstDay",i),[i,s]=Ya();let o=ee("state"),l=ee("view-state"),u=a(()=>o.features),f=a(()=>o.options.date),d=a(()=>o.options.firstDay),c=a(()=>o.options.moreLinkContent),g=a(()=>o.options.theme),h=a(()=>o.options.weekNumbers),v=a(()=>o.options.weekNumberContent),y=a(()=>l.hiddenChunks),p=a(()=>l.intlDayCell),m=a(()=>t.day.dayStart),_=a(()=>t.day.disabled),k=a(()=>t.day.highlight),S=a(()=>n(m).getUTCMonth()!==n(f).getUTCMonth()),E=a(()=>L=>[...L,n(S)&&n(g).otherMonth]),D=a(()=>n(h)&&n(m).getUTCDay()===(n(d)?1:0)),w=a(()=>{let L;if(n(D)){let te=rl(n(m),r());n(v)?L=Ce(n(v))?n(v)({date:He(n(m)),week:te}):n(v):L="W"+String(te).padStart(2,"0")}return L}),C=a(()=>n(y).get(n(m).getTime())),M=a(()=>{let L="";if(n(C)){let te="+"+n(C).length+" more";n(c)?L=Ce(n(c))?n(c)({num:n(C).length,text:te}):n(c):L=te}return L});function q(){l.popupDay=t.day}mr(e,{get date(){return n(m)},allDay:!0,get classes(){return n(E)},get disabled(){return n(_)},get highlight(){return n(k)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(L,te)=>{var pe=lu(),W=J(pe),z=ue(W);{var H=ie=>{var ce=su();Me(ce,()=>Xe(n(p).format(n(m)))),se(T=>Pe(ce,"datetime",T),[()=>dt(n(m),10)]),x(ie,ce)};ve(z,ie=>{n(u).includes("dayNumber")&&ie(H)})}var F=re(z,2);{var B=ie=>{var ce=ou();Me(ce,()=>Xe(n(w))),se(()=>O(ce,1,n(g).weekNumber)),x(ie,ce)};ve(F,ie=>{n(D)&&ie(B)})}var le=re(W,2),X=ue(le);{var ye=ie=>{var ce=au(),T=a(()=>Jr(q));ce.__click=function(...G){n(T)?.apply(this,G)};var P=a(()=>Yr(q));ce.__keydown=function(...G){n(P)?.apply(this,G)};var R=a(Jr);ce.__pointerdown=function(...G){n(R)?.apply(this,G)},Me(ce,()=>Xe(n(M))),x(ie,ce)};ve(X,ie=>{n(C)&&ie(ye)})}se(()=>{O(W,1,n(g).dayHead),O(le,1,n(g).dayFoot)}),x(L,pe)},$$slots:{default:!0}}),ke(),s()}Zt(["click","keydown","pointerdown"]);function yr(e,t){be(t,!0);let r=Ee(t,"inPopup",3,!1),i=a(()=>ee("state")),s=a(()=>n(i).options.dayMaxEvents),o=a(()=>ee("view-state")),l=a(()=>n(o).colsCount),u=a(()=>n(o).gridEl),f=a(()=>n(o).hiddenChunks),d=a(()=>n(o).popupDay),c=Z(void 0),g=Z(1),h=Z(!1),v=a(()=>t.chunk.event),y=a(()=>t.chunk.event.display),p=a(()=>n(u).children.item((t.chunk.gridRow-1)*n(l)+t.chunk.gridColumn-1));Ye(()=>{r()||b(g,hn(n(p).firstElementChild)||1,!0)});let m=a(()=>D=>{if(D["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,D["grid-row"]=t.chunk.gridRow,!pt(n(y))){let w=r()?1:n(g);if(n(v)._margin){let[C,M]=n(v)._margin;C>w&&t.chunk.gridRow===M&&(w=C)}D["margin-block-start"]=`${w}px`}return n(h)&&(D.visibility="hidden"),D});function _(){b(g,Vs(t.chunk,hn(n(c)),hn(n(p).firstElementChild)||1),!0)}function k(){if(n(s)===!0){let D=hn(n(p))-S(n(p));if(b(h,t.chunk.bottom>D),n(h))for(let w of t.chunk.dates){let C=w.getTime();if(n(f).has(C)){let M=n(f).get(C);M.includes(t.chunk)||n(f).set(C,[...M,t.chunk])}else n(f).set(C,[t.chunk])}}else b(h,!1),n(f).size&&n(f).clear()}function S(D){let w=0;for(let C=0;C<t.chunk.dates.length&&(w=ft(w,hn(D.lastElementChild)),D=D.nextElementSibling,!!D);++C);return w}var E={reposition:_,hide:k};{let D=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(D)},get forceMargin(){return n(w)},get el(){return n(c)},set el(C){b(c,C,!0)}})}return ke(E)}var fu=Q('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">×</a></header> <div></div></dialog>');function du(e,t){be(t,!0);let r=ee("view-state"),i=a(()=>ee("state")),s=a(()=>n(i).interaction),o=a(()=>n(i).options.buttonText),l=a(()=>n(i).options.theme),u=a(()=>r.colsCount),f=a(()=>r.chunks),d=a(()=>r.gridEl),c=a(()=>r.intlDayPopover),g=a(()=>r.popupDay),h=Z(void 0),v=Z(""),y=a(()=>n(g).gridColumn),p=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),_=a(()=>n(g).dayEnd),k=a(()=>{let z=[];for(let H of n(f))H.gridRow===n(p)&&H.gridColumn<=n(y)&&H.gridColumn+H.dates.length>n(y)&&z.push(ge({},H,Gn(H.event,n(m),n(_))));return z.sort((H,F)=>H.top-F.top),z});Vn(()=>{n(h).show()}),Ye(()=>{n(k).length?$(S):E()});function S(){let z=n(d).children.item((n(p)-1)*n(u)+n(y)-1),H=Qt(n(h)),F=Qt(z),B=Qt(n(d));b(v,"");let le;if(H.width>=B.width){le=B.left-F.left;let ye=F.right-B.right;b(v,n(v)+`inset-inline-end:${ye}px;`)}else le=(F.width-H.width)/2,F.left+le<B.left?le=B.left-F.left:F.left+le+H.width>B.right&&(le=B.right-F.left-H.width);b(v,n(v)+`inset-inline-start:${le}px;`);let X;H.height>=B.height?(X=B.top-F.top,b(v,n(v)+`block-size:${B.height}px;`)):(X=(F.height-H.height)/2,F.top+X<B.top?X=B.top-F.top:F.top+X+H.height>B.bottom&&(X=B.bottom-F.top-H.height)),b(v,n(v)+`inset-block-start:${X}px;`)}function E(){r.popupDay=null}function D(){E(),n(s).action?.noClick()}var w=fu();let C;var M=ue(w),q=ue(M);Me(q,()=>Xe(n(c).format(n(m))));var L=re(q,2);ga(L);var te=a(()=>Jr(E));L.__click=function(...z){n(te)?.apply(this,z)};var pe=a(()=>Yr(E));L.__keydown=function(...z){n(pe)?.apply(this,z)};var W=re(M,2);oe(W,21,()=>n(k),De,(z,H)=>{yr(z,{get chunk(){return n(H)},inPopup:!0})}),rt(w,z=>b(h,z),()=>n(h)),Me(w,()=>Za("pointerdown")),se(z=>{O(w,1,n(l).popup),C=kt(w,n(v),C,{"grid-area":`${n(p)+1} / ${n(y)}`}),O(M,1,n(l).dayHead),Pe(q,"datetime",z),Pe(L,"aria-label",n(o).close),O(W,1,n(l).events)},[()=>dt(n(m),10)]),ut("pointerdownoutside",w,D),ut("close",w,E),x(e,w),ke()}Zt(["click","keydown"]);var cu=Q('<div role="columnheader"><span></span></div>'),hu=Q('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function ai(e,t){be(t,!0);let r=ee("state"),i=new $l(r);Pn("view-state",i);let s=a(()=>r.intlDayHeader),o=a(()=>r.intlDayHeaderAL),l=a(()=>r.options.dayMaxEvents),u=a(()=>r.options.theme),f=a(()=>i.grid),d=a(()=>i.chunks),c=a(()=>i.bgChunks),g=a(()=>i.iChunks),h=a(()=>i.hiddenChunks),v=a(()=>i.popupDay),y=[];function p(){ti(y,n(d)),n(h).clear(),fn().then(m)}function m(){n(h).size,y.forEach(W=>W.hide())}Ye(p),Ye(m);var _=hu();let k;var S=ue(_),E=ue(S);oe(E,21,()=>n(f)[0],De,(W,z,H)=>{let F=()=>n(z).dayStart;var B=cu();Pe(B,"aria-colindex",1+H);var le=ue(B);Me(le,()=>Xe(n(s).format(F()))),se((X,ye)=>{O(B,1,X),Pe(le,"aria-label",ye)},[()=>St([n(u).colHead,n(u).weekdays?.[F().getUTCDay()]]),()=>n(o).format(F())]),x(W,B)});var D=re(S,2),w=ue(D);oe(w,21,()=>n(f),De,(W,z,H)=>{var F=de(),B=J(F);oe(B,17,()=>n(z),De,(le,X,ye)=>{{let ie=a(()=>ye+1===n(z).length),ce=a(()=>H+1===n(f).length);uu(le,{get day(){return n(X)},get noIeb(){return n(ie)},get noBeb(){return n(ce)}})}}),x(W,F)}),rt(w,W=>i.gridEl=W,()=>i?.gridEl);var C=re(w,2),M=ue(C);oe(M,19,()=>n(d),W=>W.id,(W,z,H)=>{rt(yr(W,{get chunk(){return n(z)}}),(F,B)=>y[B]=F,F=>y?.[F],()=>[n(H)])});var q=re(M,2);oe(q,17,()=>n(c),W=>W.id,(W,z)=>{yr(W,{get chunk(){return n(z)}})});var L=re(q,2);oe(L,17,()=>n(g),De,(W,z)=>{yr(W,{get chunk(){return n(z)}})});var te=re(D,2);{var pe=W=>{du(W,{})};ve(te,W=>{n(v)&&W(pe)})}rt(_,W=>r.mainEl=W,()=>r?.mainEl),Me(_,()=>qr(p)),se(()=>{O(_,1,St([n(u).main,n(l)===!0&&n(u).uniform])),k=kt(_,"",k,{"--ec-grid-cols":n(f)[0].length,"--ec-grid-rows":n(f).length}),O(S,1,n(u).header),O(E,1,n(u).grid),O(D,1,n(u).body),O(w,1,n(u).grid),O(C,1,n(u).events)}),x(e,_),ke()}const vu={createOptions(e){ge(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),ge(e.buttonText,{dayGridDay:"day",dayGridMonth:"month",dayGridWeek:"week",close:"Close"}),ge(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),ge(e.views,{dayGridDay:{buttonText:Yn,component:()=>ai,dayHeaderFormat:{weekday:"long"},displayEventEnd:!1,duration:{days:1},theme:it("ec-day-grid ec-day-view")},dayGridWeek:{buttonText:qn,component:()=>ai,displayEventEnd:!1,theme:it("ec-day-grid ec-week-view")},dayGridMonth:{buttonText:ri,component:gu,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:it("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function gu(e){return e.features=["dayNumber"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Is(t,i),end:nl(r,i)}},ai}function to(e,t,r){return e.startEditable??t??e.editable??r}function mu(e,t,r){return e.durationEditable??t??e.editable??r}let li=!1;function pu(e){li||(li=!0,window.requestAnimationFrame(()=>{e(),li=!1}))}function no(e,t,r){return ft(t,Rt(r,e))}function _u(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:l}=o;return[...s,vr(l)?[i[l]]:!pt(l)&&to(o,r,t)?[i.draggable]:[]]}}}function yu(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return Bn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class wu{constructor(t){this.#e(t)}#e(t){on(_u(t)),Ye(yu(t))}}function bu(e,t){be(t,!0);let r=ee("state"),i=a(()=>r.events),s=a(()=>r.iEvents),o=a(()=>r.features),l=a(()=>r.view),u=a(()=>r.mainEl),f=a(()=>r.options.dateClick),d=a(()=>r.options.dragConstraint),c=a(()=>r.options.dragScroll),g=a(()=>r.options.editable),h=a(()=>r.options.eventStartEditable),v=a(()=>r.options.eventDragMinDistance),y=a(()=>r.options.eventDragStart),p=a(()=>r.options.eventDragStop),m=a(()=>r.options.eventDrop),_=a(()=>r.options.eventLongPressDelay),k=a(()=>r.options.eventResizeStart),S=a(()=>r.options.eventResizeStop),E=a(()=>r.options.eventResize),D=a(()=>r.options.longPressDelay),w=a(()=>r.options.resizeConstraint),C=a(()=>r.options.selectable),M=a(()=>r.options.select),q=a(()=>r.options.selectBackgroundColor),L=a(()=>r.options.selectConstraint),te=a(()=>r.options.selectLongPressDelay),pe=a(()=>r.options.selectMinDistance),W=a(()=>r.options.unselect),z=a(()=>r.options.unselectAuto),H=a(()=>r.options.unselectCancel),F=a(()=>r.options.validRange);const B=1,le=2,X=3,ye=4,ie=5,ce=6;let T,P,R,G,Je,Ae,Lt,V,ae,xe,N,U,Y,fe,Re,we,Ie,Oe,ne,ze,ct,et,_t,Ne,gn,Bt,jt;function Af(I){return to(I,n(h),n(g))}function Of(I,A,me,j,Qe){T||(T=wi(A)?B:ce,mn()&&(R=I,yi(A,Qe),me&&(Ae=me),j&&(gn=j),Oe="dragging",Rn(A)))}function Nf(I,A,me,j,Qe,Zn,ki,Jf){T||(T=wi(A)?me?X:le:ce,mn()&&(R=I,yi(A,Jf),Qe&&(Ae=Qe),Zn&&(gn=Zn),Oe=j==="x"?"resizingX":"resizingY",Cr()?(ne=K(R.end),Ie?(Qr(ne,R.start),ne>=R.end&&Dn(ne)):(cr(ne,Bt),ne<R.start&&(ne=R.start),Ae=R.start)):(ne=K(R.start),Ie?(Qr(ne,R.end),ne<=R.start&&!ki&&mt(ne)):(Se(ne,Bt),ne>R.end&&(ne=R.end),Ae=R.end,ki||(Ae=cr(K(Ae),Bt))),ki&&!Ie&&(jt=Bt)),Rn(A)))}function Ff(I,A){T||(T=wi(I)?n(C)&&!n(o).includes("list")?ye:ie:ce,mn()&&(yi(I,A),Oe="selecting",ze=Ie?Fe({day:1}):Bt,R={allDay:Ie,start:Ae,end:Se(K(Ae),ze),resourceIds:V?[V.id]:[]},Rn(I)))}function Hf(){T||(T=ce)}function yi(I,A){window.getSelection().removeAllRanges(),xe=U=I.clientX,N=Y=I.clientY,Bt=A?.duration;let me=En(U,Y);({allDay:Ie,date:Ae,resource:V}=Vt(me)(U,Y)),Re=n(u)!==Hs(me,3),fe=Hs(me,1),mo(),I.pointerType!=="mouse"&&(_t=setTimeout(()=>{T&&(P=!0,Rn(I))},($t()?n(te):n(_))??n(D)))}function Rn(I){if(P||I&&I.pointerType==="mouse"&&Bf()>=($t()?n(pe):n(v))){P=!0,Dr(I),r.iClass=Oe,G||($t()?Vf():zf(I,In()?n(k):n(y)));let A=Kn(Uf());if(A){let me;if({allDay:me,date:Lt,resource:ae}=A,me===Ie){let j=kr({},G),Qe=n(w);we=Fe((Lt-Ae)/1e3),Cr()?(j.start=Se(K(R.start),we),j.start>ne&&(j.start=ne,we=Fe((ne-R.start)/1e3))):(j.end=Se(K(R.end),we),jt&&Se(j.end,jt),In()?j.end<ne&&(j.end=ne,we=Fe((ne-R.end)/1e3)):$t()?(j.end<R.end?(j.start=cr(j.end,ze),j.end=R.end):j.start=R.start,Qe=n(L)):(j.start=Se(K(R.start),we),V&&(j.resourceIds=R.resourceIds.filter(Zn=>Zn!==V.id),j.resourceIds.push(ae.id)),Qe=n(d)));do{if(Qe!==void 0&&(j=kr(ei(R),j),Qe($t()?wo(j,I):bo(j,R,I))===!1)){yo(R);break}yo(j)}while(!1)}}}if(n(c)){let A=24,me=24;pu(()=>{Ne&&(Re||(Y<Ne.top+A&&(n(u).scrollTop+=ft(-8,(Y-Ne.top-A)/3)),Y>Ne.bottom-A&&(n(u).scrollTop+=Rt(8,(Y-Ne.bottom+A)/3))),U<Ne.left+me&&(n(u).scrollLeft+=ft(-8,(U-Ne.left-me)/3)),U>Ne.right-me&&(n(u).scrollLeft+=Rt(8,(U-Ne.right+me)/3)),Y<A&&window.scrollBy(0,ft(-8,(Y-A)/3)),Y>window.innerHeight-A&&window.scrollBy(0,Rt(8,(Y-window.innerHeight+A)/3)))})}}function vo(){mn()&&(mo(),Rn())}function Wf(I){mn()&&I.isPrimary&&(U=I.clientX,Y=I.clientY,Rn(I))}function go(I){if(ct&&n(z)&&!(n(H)&&I.target.closest(n(H)))&&Dr(I),T&&I.isPrimary){if(P)if($t()){if(ct=!0,Ce(n(M))){let A=wo(G,I);n(M)(A)}}else{R.display=Je;let A=In()?n(S):n(p);Ce(A)&&A({event:Ue(R),jsEvent:I,view:Ze(n(l))});let me=ei(R);if(_o(R,G),po(),A=In()?n(E):n(m),Ce(A)){let j=R,Qe=bo(R,me,I);A(ge(Qe,{revert(){_o(j,me)}}))}}else if((Gf()||$t())&&Ce(n(f))&&!et){U=I.clientX,Y=I.clientY;let A=En(U,Y);if(A){let{allDay:me,date:j,resource:Qe}=Vt(A)(U,Y);n(f)({allDay:me,date:He(j),dateStr:dt(j),dayEl:A,jsEvent:I,view:Ze(n(l)),resource:Qe})}}P=!1,T=xe=N=U=Y=R=Je=Ae=Lt=V=ae=we=jt=Ie=ne=ze=gn=fe=Ne=Bt=void 0,r.iClass=void 0,_t&&(clearTimeout(_t),_t=void 0)}et=!1}function Uf(){return En(no(U,Ne.left,Ne.right),no(Y,Ne.top,Ne.bottom))}function Kn(I){if(I){let A=Vt(I)(U,Y);if(A.disabled){if(!n(F).end||A.date<n(F).end)return Kn(I.nextElementSibling);if(!n(F).start||A.date>n(F).start)return Kn(I.previousElementSibling)}else return($t()||In())&&A.resource&&!G.resourceIds.includes(A.resource.id)&&!n(o).includes("timeline")?U>xe?Kn(I.previousElementSibling):Kn(I.nextElementSibling):A}return null}function mo(){let I=Qt(n(u)),A=Qt(fe),me=I.width/n(u).offsetWidth,j=I.height/n(u).offsetHeight,Qe=cn();Ne={left:ft(0,Qe?I.right-n(u).clientWidth*me:A.left+n(u).scrollLeft*me),right:Rt(document.documentElement.clientWidth,Qe?A.right+n(u).scrollLeft*me:I.left+n(u).clientWidth*me)-2,top:ft(0,A.top+(Re?0:n(u).scrollTop)*j),bottom:Rt(document.documentElement.clientHeight,Re?A.bottom:I.top+n(u).clientHeight*j)-2}}function zf(I,A){Ce(A)&&A({event:Ue(R),jsEvent:I,view:Ze(n(l))}),Je=R.display,R.display="preview",G=ei(R),gn!==void 0&&(G._margin=gn),jt&&Se(G.end,jt),R.display="ghost",r.events=[...n(i)]}function Vf(){G={id:"{select}",allDay:R.allDay,start:R.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(q),resourceIds:R.resourceIds,classNames:[],styles:[]}}function po(){G=void 0,n(s).delete("action")}function kr(I,A){return I.start=A.start,I.end=A.end,I.resourceIds=A.resourceIds,{...I}}function _o(I,A){kr(I,A),r.events=[...n(i)]}function yo(I){G=kr(G,I),n(s).set("action",G)}function wo(I,A){let{start:me,end:j}=Ue(I);return{start:me,end:j,startStr:dt(I.start),endStr:dt(I.end),allDay:Ie,view:Ze(n(l)),resource:V,jsEvent:A}}function bo(I,A,me){let j;return In()?j=Cr()?{startDelta:we,endDelta:Fe(0)}:{startDelta:Fe(0),endDelta:we}:j={delta:we,oldResource:V!==ae?V:void 0,newResource:V!==ae?ae:void 0},ge(j,{event:Ue(I),oldEvent:Ue(A),view:Ze(n(l)),jsEvent:me}),j}function Bf(){return Math.sqrt(Math.pow(U-xe,2)+Math.pow(Y-N,2))}function In(){return T===le||Cr()}function Cr(){return T===X}function Gf(){return T===ie}function $t(){return T===ye}function mn(){return T&&T<ie}function wi(I){return I.isPrimary&&(I.pointerType!=="mouse"||I.buttons&1)}function Dr(I){ct&&(ct=!1,po(),Ce(n(W))&&n(W)({jsEvent:I,view:Ze(n(l))}))}on(()=>{n(l),Dr()});function Yf(){et=!0}function qf(I){if(mn()){let A=I.target,me=[],j=()=>el(me);me.push(Bn(A,"touchmove",bi(()=>P))),me.push(Bn(A,"touchend",j)),me.push(Bn(A,"touchcancel",j))}}function bi(I){return A=>{I()&&A.preventDefault()}}Vn(()=>Bn(window,"touchmove",tl,{passive:!1}));var Xf={draggable:Af,drag:Of,resize:Nf,select:Ff,noAction:Hf,handleScroll:vo,unselect:Dr,noClick:Yf};ut("pointermove",wt,Wf),ut("pointerup",wt,go),ut("pointercancel",wt,go),ut("scroll",wt,vo);var Kf=a(()=>bi(mn));ut("selectstart",wt,function(...I){n(Kf)?.apply(this,I)});var Zf=a(()=>bi(()=>_t));return ut("contextmenu",wt,function(...I){n(Zf)?.apply(this,I)}),ut("touchstart",wt,qf,void 0,!0),ke(Xf)}function ku(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).iEvents),s=a(()=>n(r).options.slotDuration),o=0,l=0,u;function f(){let p=En(o,l);if(p&&!n(i).has("action")){let{allDay:m,date:_,resource:k,disabled:S}=Vt(p)(o,l);if(!S){u||g(),u.allDay=m,u.start=_,u.end=Se(K(_),n(s)),u.resourceIds=k?[k.id]:[],n(i).set("pointer",{...u});return}}h()}function d(){f()}function c(p){v(p)&&(o=p.clientX,l=p.clientY,f())}function g(){u={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]}}function h(){u=void 0,n(i).delete("pointer")}function v(p){return p.isPrimary&&p.pointerType==="mouse"}var y={handleScroll:d};return ut("pointermove",wt,c),ut("scroll",wt,d),ke(y)}var Cu=Q("<div></div>"),Du=Q("<div></div>"),Eu=Q("<!> <!> <!>",1);function Tu(e,t){be(t,!0);let r=Ee(t,"forceDate",3,void 0),i=Ee(t,"forceMargin",3,void 0),s=a(()=>ee("state")),o=a(()=>n(s).interaction.action),l=a(()=>n(s).options.editable),u=a(()=>n(s).options.eventDurationEditable),f=a(()=>n(s).options.eventResizableFromStart),d=a(()=>n(s).options.theme),c=a(()=>ee("view-state")),g=a(()=>n(c).snap),h=a(()=>t.chunk.event),v=a(()=>t.chunk.event.display),y=a(()=>!pt(n(v))&&!vr(n(v))&&mu(n(h),n(u),n(l)));function p(w){return C=>n(o).resize(n(h),C,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=Eu(),_=J(m);{var k=w=>{var C=Cu(),M=a(()=>p(!0));C.__pointerdown=function(...q){n(M)?.apply(this,q)},se(()=>O(C,1,`${n(d).resizer??""} ${n(d).start??""}`)),x(w,C)};ve(_,w=>{n(y)&&n(f)&&w(k)})}var S=re(_,2);Ut(S,()=>t.children);var E=re(S,2);{var D=w=>{var C=Du(),M=a(()=>p(!1));C.__pointerdown=function(...q){n(M)?.apply(this,q)},se(()=>O(C,1,n(d).resizer)),x(w,C)};ve(E,w=>{n(y)&&w(D)})}x(e,m),ke()}Zt(["pointerdown"]);var xu=Q("<!> <!>",1);function Su(e,t){be(t,!0);let r=ee("state");new wu(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=Tu;var o=xu(),l=J(o);rt(bu(l,{}),d=>n(i).action=d,()=>n(i)?.action);var u=re(l,2);{var f=d=>{rt(ku(d,{}),c=>n(i).pointer=c,()=>n(i)?.pointer)};ve(u,d=>{n(s)&&d(f)})}x(e,o),ke()}const Ru={createOptions(e){ge(e,{dateClick:void 0,dragConstraint:void 0,dragScroll:!0,editable:!1,eventDragMinDistance:5,eventDragStart:void 0,eventDragStop:void 0,eventDrop:void 0,eventDurationEditable:!0,eventLongPressDelay:void 0,eventResizableFromStart:!1,eventResizeStart:void 0,eventResizeStop:void 0,eventResize:void 0,eventStartEditable:!0,longPressDelay:1e3,pointer:!1,resizeConstraint:void 0,select:void 0,selectBackgroundColor:void 0,selectConstraint:void 0,selectLongPressDelay:void 0,selectMinDistance:5,snapDuration:void 0,unselect:void 0,unselectAuto:!0,unselectCancel:""}),ge(e.theme,{draggable:"ec-draggable",ghost:"ec-ghost",preview:"ec-preview",pointer:"ec-pointer",resizer:"ec-resizer",start:"ec-start",dragging:"ec-dragging",resizingY:"ec-resizing-y",resizingX:"ec-resizing-x",selecting:"ec-selecting"})},initState(e){e.auxComponents.push(Su)}};let Iu=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(vn(t,"listDayFormat")),this.#t=a(vn(t,"listDaySideFormat"))}};var Lu=Q("<div></div> <!>",1);function Pu(e,t){be(t,!0);let r=a(()=>ee("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=Gt,c=Gt,g=Gt)=>{var h=Lu(),v=J(h);let y;var p=re(v,2);Ut(p,d),se(()=>{O(v,1,n(s).eventTag),y=kt(v,"",y,{"background-color":c()})}),x(f,h)};let u=a(()=>n(i).action?.noAction);eo(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}ke()}var Mu=Q("<h4><time></time> <time></time></h4> <!>",1);function Au(e,t){be(t,!0);let r=a(()=>ee("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(()=>ee("view-state")),f=a(()=>n(u).intlListDay),d=a(()=>n(u).intlListDaySide),c=a(()=>n(s).some(_=>Ke(_,t.date))),g=a(()=>Sn(t.date,n(l))),h=a(()=>dt(t.date,10)),v=a(()=>{let _=[];if(!n(g)){let k=t.date,S=mt(K(t.date));for(let E of n(i))if(!pt(E.display)&&Tn(E,k,S)){let D=Gn(E,k,S);_.push(D)}}return _});var y=de(),p=J(y);{var m=_=>{mr(_,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(c)},children:(k,S)=>{var E=Mu(),D=J(E),w=ue(D);Me(w,()=>Xe(n(f).format(t.date)));var C=re(w,2);Me(C,()=>Xe(n(d).format(t.date)));var M=re(D,2);oe(M,17,()=>n(v),q=>q.event,(q,L)=>{Pu(q,{get chunk(){return n(L)}})}),se(()=>{O(D,1,n(o).dayHead),Pe(w,"datetime",n(h)),O(C,1,n(o).daySide),Pe(C,"datetime",n(h))}),x(k,E)},$$slots:{default:!0}})};ve(p,_=>{n(v).length&&_(m)})}x(e,y),ke()}var Ou=Q("<div></div>"),Nu=Q("<section><!></section>");function Fu(e,t){be(t,!0);let r=ee("state"),i=new Iu(r);Pn("view-state",i);let s=a(()=>r.filteredEvents),o=a(()=>r.view),l=a(()=>r.viewDates),u=a(()=>r.options.noEventsClick),f=a(()=>r.options.noEventsContent),d=a(()=>r.options.theme),c=a(()=>{let _=!0;if(n(l).length){let k=n(l)[0],S=mt(K(n(l).at(-1)));for(let E of n(s))if(!pt(E.display)&&E.start<S&&E.end>k){_=!1;break}}return _}),g=a(()=>Ce(n(f))?n(f)():n(f));function h(_){Ce(n(u))&&n(u)({jsEvent:_,view:Ze(n(o))})}var v=Nu(),y=ue(v);{var p=_=>{var k=Ou();k.__click=h,Me(k,()=>Xe(n(g))),se(()=>O(k,1,n(d).noEvents)),x(_,k)},m=_=>{var k=de(),S=J(k);oe(S,17,()=>n(l),De,(E,D)=>{Au(E,{get date(){return n(D)}})}),x(_,k)};ve(y,_=>{n(c)?_(p):_(m,!1)})}rt(v,_=>r.mainEl=_,()=>r?.mainEl),se(()=>O(v,1,n(d).main)),x(e,v),ke()}Zt(["click"]);const Hu={createOptions(e){ge(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),ge(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),ge(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),ge(e.views,{listDay:{buttonText:Yn,component:wr,duration:{days:1},theme:it("ec-list ec-day-view")},listWeek:{buttonText:qn,component:wr,duration:{weeks:1},theme:it("ec-list ec-week-view")},listMonth:{buttonText:ri,component:wr,duration:{months:1},theme:it("ec-list ec-month-view")},listYear:{buttonText:ml,component:wr,duration:{years:1},theme:it("ec-list ec-year-view")}})}};function wr(e){return e.features=["list"],Fu}function ui(e,t,r=!0){let i=[];for(let{gridColumn:s,gridRow:o,resource:l,start:u,end:f,disabled:d}of t)if(!d&&Tn(e,u,f,l)){let c=Gn(e,u,f);ge(c,{gridColumn:s,gridRow:o,top:(c.start-u)/1e3,height:(c.end-c.start)/1e3,maxHeight:(f-c.start)/1e3}),r&&ni(c),i.push(c)}return i}function Wu(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 Uu(e){let t="all-day",r;return e?(r=Ce(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function fi(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>dr){Se(Dn(r),i);let s=Dn(K(r));s<t&&(t=s)}return{start:t,end:r}}}function di(e){"scrollTime"in e||(ge(e,{columnWidth:void 0,flexibleSlotTimeLimits:!1,nowIndicator:!1,scrollTime:"06:00:00",slotDuration:"00:30:00",slotHeight:24,slotLabelInterval:void 0,slotLabelFormat:{hour:"numeric",minute:"2-digit"},slotMaxTime:"24:00:00",slotMinTime:"00:00:00",snapDuration:void 0}),ge(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function ro(e){"allDaySlot"in e||(ge(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),ge(e.theme,{allDay:"ec-all-day"}))}function ci(e){"scrollTime"in e||ge(e,{scrollTime:Fe,slotDuration:Fe,slotLabelInterval:t=>t!==void 0?Fe(t):void 0,slotMaxTime:Fe,slotMinTime:Fe,snapDuration:t=>t!==void 0?Fe(t):void 0})}function io(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function zu(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,l=[];return $(()=>{let u=1;for(let f of r)l.push({gridColumn:u,gridRow:1,resource:void 0,start:Se(K(f),o.min),end:Se(K(f),o.max),dayStart:f,dayEnd:mt(K(f)),disabled:Sn(f,s),highlight:i.some(d=>Ke(d,f))}),++u}),[l]}}function Vu(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],l=[],u=[];return $(()=>{for(let f of r)for(let d of i)pt(f.display)?(o=o.concat(ui(f,d)),f.allDay&&(u=u.concat(xn(f,d)))):f.allDay?l=l.concat(xn(f,d)):s=s.concat(ui(f,d));Wu(s),zs(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function Bu(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,l]of r)l&&$(()=>{for(let u of i)l.allDay?o=o.concat(xn(l,u,!1)):s=s.concat(ui(l,u,!1))});return{iChunks:s,allDayIChunks:o}}}function Gu(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return $(()=>{l=Zs(s,o,i,r,t)}),l}}function Yu(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return $(()=>{i=r===void 0?_e(t)<3600?2:1:Ja(_e(r)/_e(t))||1}),i}}function qu(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return $(()=>{l=Ks(zt(It()),r,s,o,i)}),l}}function Xu(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:_e(r)/_e(t)}}}function hi(){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(vn(e,"slotLabelFormat")),this.#t=a(Yu(e)),this.#n=Z(0),this.#r=a(Xu(e))}}}function so(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(Gu(t)),this.#t=a(qu(t,this));let r=a(Vu(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(Bu(t,this)),f=a(()=>n(u).iChunks),d=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(f)),this.#a=a(()=>n(d))}}}let Ku=class extends so(hi()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(zu(t,this))}};function Zu(e){return()=>{let{activeRange:t,filteredEvents:r,options:{filterResourcesWithEvents:i,resources:s},extensions:{viewResources:o}}=e,l=o?o(s):s;return $(()=>{i&&(l=s.filter(u=>r.some(f=>Tn(f,t.start,t.end,u)))),l.length||(l=Ys([{}]))}),l}}function Ju(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:l,viewResources:u}=t,f=[];return $(()=>{let d=1,c=i?[r,u]:[u,r];for(let g of c[0]){let h=[];for(let v of c[1]){let y=i?g:v,p=i?v:g;h.push({gridColumn:d,gridRow:1,resource:p,start:Se(K(y),l.min),end:Se(K(y),l.max),dayStart:y,dayEnd:mt(K(y)),disabled:Sn(y,o),highlight:s.some(m=>Ke(m,y))}),++d}f.push(h)}}),f}}function oo(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(Zu(t))}}}let Qu=class extends oo(so(hi())){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Ju(t,this))}};var ju=Q("<span></span>");function vi(e,t){be(t,!0);let r=Ee(t,"date",3,void 0),i=Ee(t,"setLabel",3,void 0),s=a(()=>ee("state")),o=a(()=>n(s).intlDayHeaderAL),l=a(()=>n(s).options.resourceLabelContent),u=a(()=>n(s).options.resourceLabelDidMount),f=Z(void 0),d=a(()=>n(l)?Ce(n(l))?n(l)({resource:t.resource,date:r()?He(r()):void 0}):n(l):t.resource.title),c=Z(void 0);Ye(()=>{n(d),$(()=>{r()?b(c,n(o).format(r())+", "+n(f).innerText):i()&&(b(c,void 0),i()(n(f).innerText))})}),Vn(()=>{Ce(n(u))&&n(u)({resource:t.resource,date:r()?He(r()):void 0,el:n(f)})});var g=ju();rt(g,h=>b(f,h),()=>n(f)),Me(g,()=>Xe(n(d))),se(()=>Pe(g,"aria-label",n(c))),x(e,g),ke()}function ao(e,t){be(t,!0);let r=Ee(t,"allDay",3,!1),i=a(()=>ee("state")),s=a(()=>n(i).options.slotHeight),o=a(()=>ee("view-state")),l=a(()=>n(o).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=Z(void 0);function v(y,p){if(r())return n(u);{let m=Qt(n(h)),_=m.height/n(h).offsetHeight;return Se(K(n(f)),n(l).duration,Xr((p-m.top)/(n(s)*n(l).ratio*_)))}}mr(e,{get date(){return n(u)},get allDay(){return r()},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(y){b(h,y,!0)}}),ke()}function gi(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).options.slotEventOverlap),s=a(()=>n(r).options.slotDuration),o=a(()=>n(r).options.slotHeight),l=a(()=>u=>{let f=_e(n(s)),d=t.chunk.top/f*n(o),c=t.chunk.height/f*n(o)||n(o),g=t.chunk.maxHeight/f*n(o);u["grid-column"]=t.chunk.gridColumn,u["inset-block-start"]=`${d}px`,u["min-block-size"]=`${c}px`,u["block-size"]=`${c}px`,u["max-block-size"]=`${g}px`;let h="100% - var(--ec-event-col-gap)";if(t.chunk.group){let v=t.chunk.group.columns.length;u["z-index"]=`${t.chunk.groupColumn+1}`,u["inset-inline-start"]=`calc((${h}) / ${v} * ${t.chunk.groupColumn})`,u["inline-size"]=`calc((${h}) / ${v} * ${n(i)?.5*(1+v-t.chunk.groupColumn):1})`}return u});_r(e,{get chunk(){return t.chunk},get styles(){return n(l)},axis:"y"}),ke()}function mi(e,t){be(t,!0);let r=Z(void 0),i=Z(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,Vs(t.chunk,hn(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)}}),ke(u)}var $u=Q("<div></div>");function br(e,t){be(t,!0);let r=Ee(t,"span",3,1),i=a(()=>ee("state")),s=a(()=>n(i).mainEl),o=a(()=>n(i).now),l=a(()=>n(i).today),u=a(()=>n(i).options.slotDuration),f=a(()=>n(i).options.slotHeight),d=a(()=>n(i).options.theme),c=a(()=>ee("view-state")),g=a(()=>n(c).sidebarWidth),h=a(()=>{for(let w of t.days)if(Ke(w.dayStart,n(l)))return w;return{}}),v=a(()=>n(h).gridColumn),y=a(()=>n(h).start),p=a(()=>n(h).end),m=a(()=>{if(n(o)<n(y)||n(o)>n(p))return null;let w=_e(n(u));return(n(o)-n(y))/1e3/w*n(f)}),_=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 k(w,C){w.classList.toggle(n(d).hidden,!C.isIntersecting)}var S=de(),E=J(S);{var D=w=>{var C=$u();let M;Me(C,()=>Ss(k,n(_))),se(()=>{O(C,1,n(d).nowIndicator),M=kt(C,"",M,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),x(w,C)};ve(E,w=>{n(v)&&n(m)!==null&&w(D)})}x(e,S),ke()}var ef=Q('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),tf=Q("<div><time></time></div>"),nf=Q('<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 lo(e,t){be(t,!0);let r=Ee(t,"viewState",7),i=ee("state");r()||r(new Ku(i)),Pn("view-state",r());let s=a(()=>i.mainEl),o=a(()=>i.viewDates),l=a(()=>i.options.allDayContent),u=a(()=>i.options.allDaySlot),f=a(()=>i.options.columnWidth),d=a(()=>i.options.nowIndicator),c=a(()=>i.options.scrollTime),g=a(()=>i.options.slotHeight),h=a(()=>i.options.slotDuration),v=a(()=>i.options.theme),y=a(()=>r().allDayChunks),p=a(()=>r().allDayBgChunks),m=a(()=>r().allDayIChunks),_=a(()=>r().bgChunks),k=a(()=>r().chunks),S=a(()=>r().iChunks),E=a(()=>r().grid),D=a(()=>r().sidebarWidth),w=a(()=>r().slots),C=a(()=>r().slotLabelPeriodicity),M=a(()=>r().slotTimeLimits),q=Z(0),L=a(()=>Uu(n(l)));Ye(()=>{n(o),n(c),fn().then(te)});function te(){n(s).scrollTop=((_e(n(c))-_e(n(M).min))/_e(n(h))-.5)*n(g)}let pe=[];function W(){ti(pe,n(y))}Ye(W);var z=nf();let H;var F=ue(z),B=ue(F),le=re(B,2),X=ue(le);{var ye=N=>{var U=de(),Y=J(U);Ut(Y,()=>t.header),x(N,U)},ie=N=>{var U=de(),Y=J(U);oe(Y,17,()=>n(E)[0],De,(fe,Re,we)=>{let Ie=()=>n(Re).dayStart,Oe=()=>n(Re).disabled,ne=()=>n(Re).highlight;Xn(fe,{get date(){return Ie()},colIndex:1+we,get disabled(){return Oe()},get highlight(){return ne()},children:(ze,ct)=>{pr(ze,{get date(){return Ie()}})},$$slots:{default:!0}})}),x(N,U)};ve(X,N=>{t.header?N(ye):N(ie,!1)})}var ce=re(le,2);{var T=N=>{var U=ef(),Y=ue(U);Me(Y,()=>Xe(n(L)));var fe=re(Y,2);oe(fe,21,()=>n(E),De,(ne,ze,ct)=>{var et=de(),_t=J(et);oe(_t,17,()=>n(ze),De,(Ne,gn,Bt)=>{{let jt=a(()=>ct+1===n(E).length&&Bt+1===n(ze).length);ao(Ne,{get day(){return n(gn)},allDay:!0,get noIeb(){return n(jt)}})}}),x(ne,et)});var Re=re(fe,2),we=ue(Re);oe(we,19,()=>n(y),ne=>ne.id,(ne,ze,ct)=>{rt(mi(ne,{get chunk(){return n(ze)}}),(et,_t)=>pe[_t]=et,et=>pe?.[et],()=>[n(ct)])});var Ie=re(we,2);oe(Ie,17,()=>n(p),ne=>ne.id,(ne,ze)=>{mi(ne,{get chunk(){return n(ze)}})});var Oe=re(Ie,2);oe(Oe,17,()=>n(m),De,(ne,ze)=>{mi(ne,{get chunk(){return n(ze)}})}),se(()=>{O(U,1,n(v).allDay),O(Y,1,n(v).sidebar),O(fe,1,n(v).grid),O(Re,1,n(v).events)}),x(N,U)};ve(ce,N=>{n(u)&&N(T)})}var P=re(F,2),R=ue(P);oe(R,21,()=>n(w),De,(N,U,Y)=>{var fe=tf();let Re;var we=ue(fe);Me(we,()=>Xe(n(U)[1])),se(()=>{O(fe,1,St([n(v).slot,!Y&&n(v).hidden])),Re=kt(fe,"",Re,{"--ec-slot-label-periodicity":n(U)[2]}),Pe(we,"datetime",n(U)[0])}),x(N,fe)});var G=re(R,2);oe(G,21,()=>n(E),De,(N,U,Y)=>{var fe=de(),Re=J(fe);oe(Re,17,()=>n(U),De,(we,Ie,Oe)=>{{let ne=a(()=>Y+1===n(E).length&&Oe+1===n(U).length);ao(we,{get day(){return n(Ie)},get noIeb(){return n(ne)},noBeb:!0})}}),x(N,fe)});var Je=re(G,2),Ae=ue(Je);oe(Ae,17,()=>n(k),N=>N.id,(N,U)=>{gi(N,{get chunk(){return n(U)}})});var Lt=re(Ae,2);oe(Lt,17,()=>n(_),N=>N.id,(N,U)=>{gi(N,{get chunk(){return n(U)}})});var V=re(Lt,2);oe(V,17,()=>n(S),De,(N,U)=>{gi(N,{get chunk(){return n(U)}})});var ae=re(P,2);{var xe=N=>{var U=de(),Y=J(U);{var fe=we=>{var Ie=de(),Oe=J(Ie);Ut(Oe,()=>t.nowIndicator),x(we,Ie)},Re=we=>{br(we,{get days(){return n(E)[0]}})};ve(Y,we=>{t.nowIndicator?we(fe):we(Re,!1)})}x(N,U)};ve(ae,N=>{n(d)&&N(xe)})}rt(z,N=>i.mainEl=N,()=>i?.mainEl),Me(z,()=>qr(W)),se(()=>{O(z,1,n(v).main),H=kt(z,"",H,{"--ec-grid-cols":n(E).length*n(E)[0].length,"--ec-col-group-span":n(E)[0].length,"--ec-col-width":n(f)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(q)??""}px`,"--ec-sidebar-width":`${n(D)??""}px`}),O(F,1,n(v).header),O(B,1,n(v).sidebar),O(le,1,n(v).grid),O(P,1,n(v).body),O(R,1,n(v).sidebar),O(G,1,n(v).grid),O(Je,1,n(v).events)}),lr(B,"offsetWidth",N=>r().sidebarWidth=N),lr(F,"offsetHeight",N=>b(q,N)),x(e,z),ke()}var rf=Q("<!> <!>",1);function sf(e,t){be(t,!0);let r=ee("state"),i=new Qu(r),s=a(()=>r.today),o=a(()=>r.mainEl),l=a(()=>r.viewDates),u=a(()=>r.options.scrollTime),f=a(()=>r.options.datesAboveResources),d=a(()=>r.options.theme),c=a(()=>i.grid),g=a(()=>i.sidebarWidth),h=tt([]);Ye(()=>{n(f)&&(n(l),n(u),fn().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let y of n(c)){let p=y[0];if(Ke(p.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(n(c).length*y.length)*(p.gridColumn-1)*(cn()?-1:1);break}}}lo(e,{get viewState(){return i},header:m=>{var _=rf(),k=J(_);oe(k,17,()=>n(c),De,(D,w,C)=>{const M=a(()=>{const{dayStart:q,resource:L,disabled:te,highlight:pe}=n(w)[0];return{date:q,resource:L,disabled:te,highlight:pe}});{let q=a(()=>n(c)[0].length>1?n(d).colGroup:void 0),L=a(()=>1+C*n(w).length),te=a(()=>n(f)&&n(M).disabled),pe=a(()=>n(f)&&n(M).highlight);Xn(D,{get date(){return n(M).date},get className(){return n(q)},get weekday(){return n(f)},get colSpan(){return n(w).length},get colIndex(){return n(L)},get disabled(){return n(te)},get highlight(){return n(pe)},children:(W,z)=>{var H=de(),F=J(H);{var B=X=>{pr(X,{get date(){return n(M).date}})},le=X=>{vi(X,{get resource(){return n(M).resource},setLabel:ye=>h[C]=ye+", "})};ve(F,X=>{n(f)?X(B):X(le,!1)})}x(W,H)},$$slots:{default:!0}})}});var S=re(k,2);{var E=D=>{var w=de(),C=J(w);oe(C,17,()=>n(c),De,(M,q,L)=>{var te=de(),pe=J(te);oe(pe,17,()=>n(q),De,(W,z,H)=>{const F=a(()=>{const{dayStart:B,resource:le,disabled:X,highlight:ye}=n(z);return{date:B,resource:le,disabled:X,highlight:ye}});{let B=a(()=>1+H+L*n(q).length);Xn(W,{get date(){return n(F).date},get colIndex(){return n(B)},get disabled(){return n(F).disabled},get highlight(){return n(F).highlight},children:(le,X)=>{var ye=de(),ie=J(ye);{var ce=P=>{vi(P,{get resource(){return n(F).resource},get date(){return n(F).date}})},T=P=>{pr(P,{get date(){return n(F).date},get alPrefix(){return h[L]}})};ve(ie,P=>{n(f)?P(ce):P(T,!1)})}x(le,ye)},$$slots:{default:!0}})}}),x(M,te)}),x(D,w)};ve(S,D=>{n(c)[0].length>1&&D(E)})}x(m,_)},nowIndicator:m=>{var _=de(),k=J(_);{var S=D=>{{let w=a(()=>n(c).flat());br(D,{get days(){return n(w)},get span(){return n(c)[0].length}})}},E=D=>{var w=de(),C=J(w);{var M=L=>{var te=de(),pe=J(te);oe(pe,17,()=>n(c),De,(W,z)=>{br(W,{get days(){return n(z)}})}),x(L,te)},q=L=>{{let te=a(()=>n(c).flat());br(L,{get days(){return n(te)},get span(){return n(c).length}})}};ve(C,L=>{n(c)[0].length>1?L(M):L(q,!1)})}x(D,w)};ve(k,D=>{n(f)?D(S):D(E,!1)})}x(m,_)},$$slots:{header:!0,nowIndicator:!0}}),ke()}const of={createOptions(e){ro(e),di(e),io(e),ge(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),ge(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),ge(e.theme,{colGroup:"ec-col-group"}),ge(e.views,{resourceTimeGridDay:{buttonText:Yn,component:uo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:it("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:qn,component:uo,duration:{weeks:1},theme:it("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){ci(e)}};function uo(e){return fi(e),sf}function pi(e,t,r,i=!0){let s=[],o,l,u,f,d,c=0;for(let{gridColumn:g,gridRow:h,resource:v,dayStart:y,dayEnd:p,start:m,end:_,disabled:k}of t)k||(r?Tn(e,y,p,v)&&(s.length||(o=y,u=g,f=h),s.push(y),l=_):Tn(e,m,_,v)&&(s.length||(o=m,u=g,f=h,d=ft(e.start-m,0)/1e3),s.push(y),l=_,c+=(Rt(_,e.end)-ft(m,e.start))/1e3));if(s.length){let g=Gn(e,o,l);return ge(g,{gridColumn:u,gridRow:f,dates:s,left:d,width:c}),i&&ni(g),[g]}return[]}function af(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 lf(e,t,r){let i=1,s=i+t,o=e.day;o.sort((l,u)=>(l.top??Number.POSITIVE_INFINITY)-(u.top??Number.POSITIVE_INFINITY));for(let l of o)if(!(l===e||!("top"in l))&&(r||e.start<l.end&&e.end>l.start)&&i<l.bottom&&s>l.top){let u=l.bottom-i+1;i+=u,s+=u}return ge(e,{top:i,bottom:s}),i}function uf(e,t){return e[t.getTime()]??{min:Fe(0),max:Fe("24:00:00")}}function ff(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:l}=t,u=[];return $(()=>{let f=1;for(let d of l){let c=[],g=1;for(let h of r){let v=o[h.getTime()];c.push({gridColumn:g,gridRow:f,resource:d,start:Se(K(h),v.min),end:Se(K(h),v.max),dayStart:h,dayEnd:mt(K(h)),disabled:Sn(h,s),highlight:i.some(y=>Ke(y,h))}),++g}u.push(c),++f}}),u}}function df(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],l=[];return $(()=>{for(let u of r)for(let f of i)pt(u.display)?(!s||u.allDay)&&(l=l.concat(pi(u,f,s))):o=o.concat(pi(u,f,s));af(o)}),{chunks:o,bgChunks:l}}}function cf(e,t){return()=>{let{iEvents:r}=e,{grid:i,monthView:s}=t,o=[];for(let[,l]of r)l&&$(()=>{for(let u of i)o=o.concat(pi(l,u,s,!1))});return o}}function hf(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l={};return $(()=>{for(let u of r)l[u.getTime()]=Zs(s,o,i,[u],t)}),l}}function vf(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:l}=t,u={};return $(()=>{for(let f of r){let d=f.getTime();u[d]=d in s?Ks(f,i,l,s[d],o):[]}}),u}}function gf(e){return()=>{let{options:{resources:t}}=e,r;return $(()=>{r=t.some(i=>Vt(i).children.length)}),r}}function mf(e){return()=>{let{options:{slotDuration:t}}=e,r;return $(()=>{r=!_e(t)}),r}}class pf extends oo(hi()){#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 monthView(){return n(this.#r)}set monthView(t){b(this.#r,t)}#s;get chunks(){return n(this.#s)}set chunks(t){b(this.#s,t)}#i;get bgChunks(){return n(this.#i)}set bgChunks(t){b(this.#i,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get nestedResources(){return n(this.#a)}set nestedResources(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(hf(t)),this.#t=a(vf(t,this)),this.#n=a(ff(t,this)),this.#r=a(mf(t));let r=a(df(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#s=a(()=>n(i)),this.#i=a(()=>n(s)),this.#o=a(cf(t,this)),this.#a=a(gf(t))}}function _f(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).options.slotWidth),s=a(()=>ee("view-state")),o=a(()=>n(s).monthView),l=a(()=>n(s).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=Z(void 0);function v(y,p){if(n(o))return n(u);{let m=Qt(n(h)),_=m.width/n(h).offsetWidth;return Se(K(n(f)),n(l).duration,Xr((cn()?m.right-y:y-m.left)/(n(i)*n(l).ratio*_)))}}mr(e,{get allDay(){return n(o)},get date(){return n(u)},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(y){b(h,y,!0)}}),ke()}function _i(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).options.slotDuration),s=a(()=>n(r).options.slotWidth),o=a(()=>ee("view-state")),l=a(()=>n(o).monthView),u=Z(void 0),f=Z(1),d=a(()=>t.chunk.event),c=a(()=>v=>{if(v["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,v["grid-row"]=t.chunk.gridRow,!n(l)){let p=t.chunk.left/_e(n(i))*n(s);v["inset-inline-start"]=`${p}px`,v["inline-size"]=`${t.chunk.width/_e(n(i))*n(s)}px`}let y=n(f);if(n(d)._margin){let[p,m]=n(d)._margin;t.chunk.gridRow===m&&(y=p)}return v["margin-block-start"]=`${y}px`,v});function g(){b(f,lf(t.chunk,hn(n(u)),n(l)),!0)}var h={reposition:g};{let v=a(()=>[n(f),t.chunk.gridRow]);_r(e,{get chunk(){return t.chunk},get styles(){return n(c)},axis:"x",get forceMargin(){return n(v)},get el(){return n(u)},set el(y){b(u,y,!0)}})}return ke(h)}var yf=Q("<span></span>"),wf=Q("<button><!></button>"),bf=Q("<!> <span><!></span>",1);function kf(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).options),s=a(()=>n(i).resources),o=a(()=>n(i).theme),l=Z({}),u=Z(!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(p,m){for(let _ of p){let k=Vt(_);k.hidden=!m,k.expanded&&d(k.children,m)}}var c=bf(),g=J(c);oe(g,17,()=>Array(n(l).level),De,(p,m)=>{var _=yf();se(()=>O(_,1,n(o).expander)),x(p,_)});var h=re(g,2),v=ue(h);{var y=p=>{var m=wf();m.__click=f;var _=ue(m);{var k=E=>{var D=ws("−");x(E,D)},S=E=>{var D=ws("+");x(E,D)};ve(_,E=>{n(u)?E(k):E(S,!1)})}se(()=>O(m,1,n(o).button)),x(p,m)};ve(v,p=>{n(l).children?.length&&p(y)})}se(()=>O(h,1,n(o).expander)),x(e,c),ke()}Zt(["click"]);var Cf=Q("<div></div>");function Df(e,t){be(t,!0);let r=a(()=>ee("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(()=>ee("view-state")),c=a(()=>n(d).grid),g=a(()=>n(d).sidebarWidth),h=a(()=>{for(let w of n(c)[0])if(Ke(w.dayStart,n(o)))return w;return{}}),v=a(()=>n(h).gridColumn),y=a(()=>n(h).start),p=a(()=>n(h).end),m=a(()=>{if(n(s)<n(y)||n(s)>n(p))return null;let w=_e(n(l));return(n(s)-n(y))/1e3/w*n(u)}),_=a(()=>({root:n(i),rootMargin:cn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function k(w,C){w.classList.toggle(n(f).hidden,!C.isIntersecting)}var S=de(),E=J(S);{var D=w=>{var C=Cf();let M;Me(C,()=>Ss(k,n(_))),se(()=>{O(C,1,n(f).nowIndicator),M=kt(C,"",M,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(c).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),x(w,C)};ve(E,w=>{n(v)&&n(m)!==null&&w(D)})}x(e,S),ke()}var Ef=Q("<div><time></time></div>"),Tf=Q('<div role="rowheader"><!> <!></div>'),xf=Q('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function Sf(e,t){be(t,!0);let r=ee("state"),i=new pf(r);Pn("view-state",i);let s=a(()=>r.mainEl),o=a(()=>r.today),l=a(()=>r.viewDates),u=a(()=>r.options.columnWidth),f=a(()=>r.options.nowIndicator),d=a(()=>r.options.scrollTime),c=a(()=>r.options.slotDuration),g=a(()=>r.options.slotHeight),h=a(()=>r.options.slotWidth),v=a(()=>r.options.theme),y=a(()=>i.chunks),p=a(()=>i.bgChunks),m=a(()=>i.iChunks),_=a(()=>i.daySlots),k=a(()=>i.dayTimeLimits),S=a(()=>i.grid),E=a(()=>i.monthView),D=a(()=>i.nestedResources),w=a(()=>i.sidebarWidth),C=a(()=>i.slotLabelPeriodicity),M=a(()=>i.viewResources),q=Z(0);Ye(()=>{n(l),n(d),fn().then(L)});function L(){let V=0,ae=n(o)<n(l)[0]||n(o)>n(l).at(-1);if(n(E)){if(!ae){let xe=n(S)[0];for(let N of xe)if(Ke(N.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/xe.length*(N.gridColumn-1)*(cn()?-1:1);break}}}else{for(let xe of n(l)){let N=uf(n(k),xe);if(ae||Ke(xe,n(o))){V+=ft(Rt(_e(n(d)),_e(N.max))-_e(N.min),0);break}else V+=_e(N.max)-_e(N.min)}n(s).scrollLeft=V/_e(n(c))*n(h)*(cn()?-1:1)}}let te=[];function pe(){ti(te,n(y))}Ye(pe);var W=xf();let z;var H=ue(W),F=ue(H),B=re(F,2),le=ue(B);oe(le,17,()=>n(S)[0],De,(V,ae,xe)=>{let N=()=>n(ae).dayStart,U=()=>n(ae).disabled,Y=()=>n(ae).highlight;Xn(V,{get date(){return N()},colIndex:1+xe,get disabled(){return U()},get highlight(){return Y()},children:(fe,Re)=>{pr(fe,{get date(){return N()}})},$$slots:{default:!0}})});var X=re(le,2);{var ye=V=>{var ae=de(),xe=J(ae);oe(xe,17,()=>n(S)[0],De,(N,U)=>{let Y=()=>n(U).dayStart,fe=()=>n(U).disabled,Re=()=>n(U).highlight;Xn(N,{get date(){return Y()},get className(){return n(v).slots},get disabled(){return fe()},get highlight(){return Re()},ariaHidden:!0,children:(we,Ie)=>{var Oe=de(),ne=J(Oe);oe(ne,17,()=>n(_)[Y().getTime()],De,(ze,ct)=>{var et=Ef();let _t;var Ne=ue(et);Me(Ne,()=>Xe(n(ct)[1])),se(()=>{O(et,1,n(v).slot),_t=kt(et,"",_t,{"--ec-slot-label-periodicity":n(ct)[2]}),Pe(Ne,"datetime",n(ct)[0])}),x(ze,et)}),x(we,Oe)},$$slots:{default:!0}})}),x(V,ae)};ve(X,V=>{n(E)||V(ye)})}var ie=re(H,2),ce=ue(ie);oe(ce,21,()=>n(M),De,(V,ae)=>{var xe=Tf(),N=ue(xe);{var U=fe=>{kf(fe,{get resource(){return n(ae)}})};ve(N,fe=>{n(D)&&fe(U)})}var Y=re(N,2);vi(Y,{get resource(){return n(ae)}}),se(()=>O(xe,1,n(v).rowHead)),x(V,xe)});var T=re(ce,2);oe(T,21,()=>n(S),De,(V,ae,xe)=>{var N=de(),U=J(N);oe(U,17,()=>n(ae),De,(Y,fe,Re)=>{{let we=a(()=>Re+1===n(ae).length),Ie=a(()=>xe+1===n(S).length);_f(Y,{get day(){return n(fe)},get noIeb(){return n(we)},get noBeb(){return n(Ie)}})}}),x(V,N)});var P=re(T,2),R=ue(P);oe(R,19,()=>n(y),V=>V.id,(V,ae,xe)=>{rt(_i(V,{get chunk(){return n(ae)}}),(N,U)=>te[U]=N,N=>te?.[N],()=>[n(xe)])});var G=re(R,2);oe(G,17,()=>n(p),V=>V.id,(V,ae)=>{_i(V,{get chunk(){return n(ae)}})});var Je=re(G,2);oe(Je,17,()=>n(m),De,(V,ae)=>{_i(V,{get chunk(){return n(ae)}})});var Ae=re(ie,2);{var Lt=V=>{Df(V,{})};ve(Ae,V=>{n(f)&&!n(E)&&V(Lt)})}rt(W,V=>r.mainEl=V,()=>r?.mainEl),Me(W,()=>qr(pe)),se(()=>{O(W,1,n(v).main),z=kt(W,"",z,{"--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(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-slot-width":`${n(h)??""}px`,"--ec-header-height":`${n(q)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`}),O(H,1,n(v).header),O(F,1,n(v).sidebar),O(B,1,n(v).grid),O(ie,1,n(v).body),O(ce,1,n(v).sidebar),O(T,1,n(v).grid),O(P,1,n(v).events)}),lr(F,"offsetWidth",V=>i.sidebarWidth=V),lr(H,"offsetHeight",V=>b(q,V)),x(e,W),ke()}const Rf={createOptions(e){di(e),io(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:Yn,component:fo,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:it("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:qn,component:fo,displayEventEnd:!1,duration:{weeks:1},theme:it("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:ri,component:co,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:it("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){ci(e)}};function fo(e){return fi(e),co(e)}function co(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Vt(r).hidden),Sf}const If={createOptions(e){di(e),ro(e),ge(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),ge(e,{view:"timeGridWeek"}),ge(e.views,{timeGridDay:{buttonText:Yn,component:ho,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:it("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:qn,component:ho,duration:{weeks:1},theme:it("ec-time-grid ec-week-view")}})},createParsers(e){ci(e)}};function ho(e){return fi(e),lo}function Lf(e,t,r){return Ra(Kl,{target:e,props:{plugins:t,options:r}})}function Pf(e){return La(e)}function Mf(e,t){return Lf(e,[vu,Ru,Hu,of,Rf,If],t)}return Jn.create=Mf,Jn.destroy=Pf,Object.defineProperty(Jn,Symbol.toStringTag,{value:"Module"}),Jn})({});
|
|
6
6
|
//# sourceMappingURL=event-calendar.min.js.map
|