@event-calendar/build 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * EventCalendar v5.0.1
2
+ * EventCalendar v5.0.2
3
3
  * https://github.com/vkurko/calendar
4
4
  */
5
- var EventCalendar=(function(Pr){"use strict";var da=Array.isArray,fl=Array.prototype.indexOf,Ir=Array.from,ha=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,va=Object.getOwnPropertyDescriptors,dl=Object.prototype,hl=Array.prototype,di=Object.getPrototypeOf,_a=Object.isExtensible;const ht=()=>{};function vl(e){return e()}function Ar(e){for(var t=0;t<e.length;t++)e[t]()}function ga(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function _l(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const tt=2,hi=4,Or=8,ma=1<<24,ln=16,sn=32,Rn=64,Fr=128,Bt=512,at=1024,Et=2048,Qt=4096,Ct=8192,un=16384,vi=32768,wn=65536,ya=1<<17,ba=1<<18,qn=1<<19,wa=1<<20,cn=1<<25,Ln=32768,_i=1<<21,gi=1<<22,pn=1<<23,Mn=Symbol("$state"),gl=Symbol("legacy props"),ml=Symbol(""),Xn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function pa(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function yl(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function bl(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function wl(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function pl(e){throw new Error("https://svelte.dev/e/effect_orphan")}function $l(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Dl(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function kl(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function El(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Cl(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Tl(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const xl=1,Sl=2,$a=4,Rl=8,Ll=16,Ml=1,Pl=2,Il=4,Al=8,Ol=16,Fl=1,Nl=2,ot=Symbol(),Hl="http://www.w3.org/1999/xhtml";function Ul(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Da(e){return e===this.v}function ka(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ea(e){return!ka(e,this.v)}let Kn=!1,kf=!1;function Wl(){Kn=!0}let Ne=null;function Zn(e){Ne=e}function ke(e){return Ca().get(e)}function zl(e,t){return Ca().set(e,t),t}function ge(e,t=!1,n){Ne={p:Ne,i:!1,c:null,e:null,s:e,x:null,l:Kn&&!t?{s:null,u:null,$:[]}:null}}function me(e){var t=Ne,n=t.e;if(n!==null){t.e=null;for(var r of n)za(r)}return e!==void 0&&(t.x=e),t.i=!0,Ne=t.p,e??{}}function sr(){return!Kn||Ne!==null&&Ne.l===null}function Ca(e){return Ne===null&&pa(),Ne.c??=new Map(Bl(Ne)||void 0)}function Bl(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let Pn=[];function Ta(){var e=Pn;Pn=[],Ar(e)}function In(e){if(Pn.length===0&&!ur){var t=Pn;queueMicrotask(()=>{t===Pn&&Ta()})}Pn.push(e)}function Gl(){for(;Pn.length>0;)Ta()}function xa(e){var t=xe;if(t===null)return we.f|=pn,e;if((t.f&vi)===0){if((t.f&Fr)===0)throw e;t.b.error(e)}else Jn(e,t)}function Jn(e,t){for(;t!==null;){if((t.f&Fr)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Nr=new Set;let He=null,It=null,At=[],Hr=null,mi=!1,ur=!1;class jt{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#s=null;#a=new Set;#i=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){At=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[]};for(const r of t)this.#o(r,n);this.is_fork||this.#c(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects)):(He=null,Ra(n.render_effects),Ra(n.effects),this.#s?.resolve()),It=null}#o(t,n){t.f^=at;for(var r=t.first;r!==null;){var i=r.f,a=(i&(sn|Rn))!==0,l=a&&(i&at)!==0,s=l||(i&Ct)!==0||this.skipped_effects.has(r);if((r.f&Fr)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[]}),!s&&r.fn!==null){a?r.f^=at:(i&hi)!==0?n.effects.push(r):gr(r)&&((r.f&ln)!==0&&this.#a.add(r),mr(r));var u=r.first;if(u!==null){r=u;continue}}var c=r.parent;for(r=r.next;r===null&&c!==null;)c===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),n=n.parent),r=c.next,c=c.parent}}#l(t){for(const n of t)(n.f&Et)!==0?this.#a.add(n):(n.f&Qt)!==0&&this.#i.add(n),this.#u(n.deps),lt(n,at)}#u(t){if(t!==null)for(const n of t)(n.f&tt)===0||(n.f&Ln)===0||(n.f^=Ln,this.#u(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&pn)===0&&(this.current.set(t,t.v),It?.set(t,t.v))}activate(){He=this,this.apply()}deactivate(){He===this&&(He=null,It=null)}flush(){if(this.activate(),At.length>0){if(Sa(),He!==null&&He!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#c(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#n===0&&this.#f()}#f(){if(Nr.size>1){this.previous.clear();var t=It,n=!0,r={parent:null,effect:null,effects:[],render_effects:[]};for(const a of Nr){if(a===this){n=!1;continue}const l=[];for(const[u,c]of this.current){if(a.current.has(u))if(n&&c!==a.current.get(u))a.current.set(u,c);else continue;l.push(u)}if(l.length===0)continue;const s=[...a.current.keys()].filter(u=>!this.current.has(u));if(s.length>0){var i=At;At=[];const u=new Set,c=new Map;for(const f of l)La(f,s,u,c);if(At.length>0){He=a,a.apply();for(const f of At)a.#o(f,r);a.deactivate()}At=i}}He=null,It=t}this.committed=!0,Nr.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.#a)this.#i.delete(t),lt(t,Et),An(t);for(const t of this.#i)lt(t,Qt),An(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#s??=ga()).promise}static ensure(){if(He===null){const t=He=new jt;Nr.add(He),ur||jt.enqueue(()=>{He===t&&t.flush()})}return He}static enqueue(t){In(t)}apply(){}}function Vl(e){var t=ur;ur=!0;try{for(var n;;){if(Gl(),At.length===0&&(He?.flush(),At.length===0))return Hr=null,n;Sa()}}finally{ur=t}}function Sa(){var e=Hn;mi=!0;var t=null;try{var n=0;for(Br(!0);At.length>0;){var r=jt.ensure();if(n++>1e3){var i,a;Yl()}r.process(At),$n.clear()}}finally{mi=!1,Br(e),Hr=null}}function Yl(){try{$l()}catch(e){Jn(e,Hr)}}let fn=null;function Ra(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(un|Ct))===0&&gr(r)&&(fn=new Set,mr(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?Ya(r):r.fn=null),fn?.size>0)){$n.clear();for(const i of fn){if((i.f&(un|Ct))!==0)continue;const a=[i];let l=i.parent;for(;l!==null;)fn.has(l)&&(fn.delete(l),a.push(l)),l=l.parent;for(let s=a.length-1;s>=0;s--){const u=a[s];(u.f&(un|Ct))===0&&mr(u)}}fn.clear()}}fn=null}}function La(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const a=i.f;(a&tt)!==0?La(i,t,n,r):(a&(gi|ln))!==0&&(a&Et)===0&&Ma(i,t,r)&&(lt(i,Et),An(i))}}function Ma(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&tt)!==0&&Ma(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function An(e){for(var t=Hr=e;t.parent!==null;){t=t.parent;var n=t.f;if(mi&&t===xe&&(n&ln)!==0&&(n&ba)===0)return;if((n&(Rn|sn))!==0){if((n&at)===0)return;t.f^=at}}At.push(t)}function ql(e){let t=0,n=On(0),r;return()=>{hr()&&(o(n),Ba(()=>(t===0&&(r=W(()=>e(()=>fr(n)))),t+=1,()=>{In(()=>{t-=1,t===0&&(r?.(),r=void 0,fr(n))})})))}}var Xl=wn|qn|Fr;function Kl(e,t,n){new Zl(e,t,n)}class Zl{parent;#e=!1;#t;#n=null;#r;#s;#a;#i=null;#o=null;#l=null;#u=null;#c=null;#f=0;#d=0;#v=!1;#h=null;#b=ql(()=>(this.#h=On(this.#f),()=>{this.#h=null}));constructor(t,n,r){this.#t=t,this.#r=n,this.#s=r,this.parent=xe.b,this.#e=!!this.#r.pending,this.#a=vr(()=>{xe.b=this;{var i=this.#m();try{this.#i=Tt(()=>r(i))}catch(a){this.error(a)}this.#d>0?this.#g():this.#e=!1}return()=>{this.#c?.remove()}},Xl)}#w(){try{this.#i=Tt(()=>this.#s(this.#t))}catch(t){this.error(t)}this.#e=!1}#p(){const t=this.#r.pending;t&&(this.#o=Tt(()=>t(this.#t)),jt.enqueue(()=>{var n=this.#m();this.#i=this.#_(()=>(jt.ensure(),Tt(()=>this.#s(n)))),this.#d>0?this.#g():(Nn(this.#o,()=>{this.#o=null}),this.#e=!1)}))}#m(){var t=this.#t;return this.#e&&(this.#c=dn(),this.#t.before(this.#c),t=this.#c),t}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=xe,r=we,i=Ne;tn(this.#a),$t(this.#a),Zn(this.#a.ctx);try{return t()}catch(a){return xa(a),null}finally{tn(n),$t(r),Zn(i)}}#g(){const t=this.#r.pending;this.#i!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#c),Ka(this.#i,this.#u)),this.#o===null&&(this.#o=Tt(()=>t(this.#t)))}#y(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t);return}this.#d+=t,this.#d===0&&(this.#e=!1,this.#o&&Nn(this.#o,()=>{this.#o=null}),this.#u&&(this.#t.before(this.#u),this.#u=null))}update_pending_count(t){this.#y(t),this.#f+=t,this.#h&&Qn(this.#h,this.#f)}get_effect_pending(){return this.#b(),o(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(vt(this.#i),this.#i=null),this.#o&&(vt(this.#o),this.#o=null),this.#l&&(vt(this.#l),this.#l=null);var i=!1,a=!1;const l=()=>{if(i){Ul();return}i=!0,a&&Tl(),jt.ensure(),this.#f=0,this.#l!==null&&Nn(this.#l,()=>{this.#l=null}),this.#e=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,Tt(()=>this.#s(this.#t)))),this.#d>0?this.#g():this.#e=!1};var s=we;try{$t(null),a=!0,n?.(t,l),a=!1}catch(u){Jn(u,this.#a&&this.#a.parent)}finally{$t(s)}r&&In(()=>{this.#l=this.#_(()=>{jt.ensure(),this.#v=!0;try{return Tt(()=>{r(this.#t,()=>t,()=>l)})}catch(u){return Jn(u,this.#a.parent),null}finally{this.#v=!1}})})}}function Jl(e,t,n,r){const i=sr()?cr:yi;if(n.length===0&&e.length===0){r(t.map(i));return}var a=He,l=xe,s=Ql();function u(){Promise.all(n.map(c=>jl(c))).then(c=>{s();try{r([...t.map(i),...c])}catch(f){(l.f&un)===0&&Jn(f,l)}a?.deactivate(),Ur()}).catch(c=>{Jn(c,l)})}e.length>0?Promise.all(e).then(()=>{s();try{return u()}finally{a?.deactivate(),Ur()}}):u()}function Ql(){var e=xe,t=we,n=Ne,r=He;return function(a=!0){tn(e),$t(t),Zn(n),a&&r?.activate()}}function Ur(){tn(null),$t(null),Zn(null)}function cr(e){var t=tt|Et,n=we!==null&&(we.f&tt)!==0?we:null;return xe!==null&&(xe.f|=qn),{ctx:Ne,deps:null,effects:null,equals:Da,f:t,fn:e,reactions:null,rv:0,v:ot,wv:0,parent:n??xe,ac:null}}function jl(e,t){let n=xe;n===null&&yl();var r=n.b,i=void 0,a=On(ot),l=!we,s=new Map;return ls(()=>{var u=ga();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{c===He&&c.committed&&c.deactivate(),Ur()})}catch(h){u.reject(h),Ur()}var c=He;if(l){var f=!r.is_pending();r.update_pending_count(1),c.increment(f),s.get(c)?.reject(Xn),s.delete(c),s.set(c,u)}const v=(h,_=void 0)=>{if(c.activate(),_)_!==Xn&&(a.f|=pn,Qn(a,_));else{(a.f&pn)!==0&&(a.f^=pn),Qn(a,h);for(const[m,y]of s){if(s.delete(m),m===c)break;y.reject(Xn)}}l&&(r.update_pending_count(-1),c.decrement(f))};u.promise.then(v,h=>v(null,h||"unknown"))}),zr(()=>{for(const u of s.values())u.reject(Xn)}),new Promise(u=>{function c(f){function v(){f===i?u(a):c(i)}f.then(v,v)}c(i)})}function w(e){const t=cr(e);return Ja(t),t}function yi(e){const t=cr(e);return t.equals=Ea,t}function Pa(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)vt(t[n])}}function es(e){for(var t=e.parent;t!==null;){if((t.f&tt)===0)return(t.f&un)===0?t:null;t=t.parent}return null}function bi(e){var t,n=xe;tn(es(e));try{e.f&=~Ln,Pa(e),t=no(e)}finally{tn(n)}return t}function Ia(e){var t=bi(e);if(e.equals(t)||(He?.is_fork||(e.v=t),e.wv=eo()),!Un)if(It!==null)(hr()||He?.is_fork)&&It.set(e,t);else{var n=(e.f&Bt)===0?Qt:at;lt(e,n)}}let wi=new Set;const $n=new Map;let Aa=!1;function On(e,t){var n={f:0,v:e,reactions:null,equals:Da,rv:0,wv:0};return n}function Te(e,t){const n=On(e);return Ja(n),n}function pi(e,t=!1,n=!0){const r=On(e);return t||(r.equals=Ea),Kn&&n&&Ne!==null&&Ne.l!==null&&(Ne.l.s??=[]).push(r),r}function K(e,t,n=!1){we!==null&&(!en||(we.f&ya)!==0)&&sr()&&(we.f&(tt|ln|gi|ya))!==0&&!hn?.includes(e)&&Cl();let r=n?Fn(t):t;return Qn(e,r)}function Qn(e,t){if(!e.equals(t)){var n=e.v;Un?$n.set(e,t):$n.set(e,n),e.v=t;var r=jt.ensure();r.capture(e,n),(e.f&tt)!==0&&((e.f&Et)!==0&&bi(e),lt(e,(e.f&Bt)!==0?at:Qt)),e.wv=eo(),Oa(e,Et),sr()&&xe!==null&&(xe.f&at)!==0&&(xe.f&(sn|Rn))===0&&(Ot===null?fs([e]):Ot.push(e)),!r.is_fork&&wi.size>0&&!Aa&&ts()}return t}function ts(){Aa=!1;var e=Hn;Br(!0);const t=Array.from(wi);try{for(const n of t)(n.f&at)!==0&&lt(n,Qt),gr(n)&&mr(n)}finally{Br(e)}wi.clear()}function fr(e){K(e,e.v+1)}function Oa(e,t){var n=e.reactions;if(n!==null)for(var r=sr(),i=n.length,a=0;a<i;a++){var l=n[a],s=l.f;if(!(!r&&l===xe)){var u=(s&Et)===0;if(u&&lt(l,t),(s&tt)!==0){var c=l;It?.delete(c),(s&Ln)===0&&(s&Bt&&(l.f|=Ln),Oa(c,Qt))}else u&&((s&ln)!==0&&fn!==null&&fn.add(l),An(l))}}}function Fn(e){if(typeof e!="object"||e===null||Mn in e)return e;const t=di(e);if(t!==dl&&t!==hl)return e;var n=new Map,r=da(e),i=Te(0),a=Wn,l=s=>{if(Wn===a)return s();var u=we,c=Wn;$t(null),ja(a);var f=s();return $t(u),ja(c),f};return r&&n.set("length",Te(e.length)),new Proxy(e,{defineProperty(s,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&kl();var f=n.get(u);return f===void 0?f=l(()=>{var v=Te(c.value);return n.set(u,v),v}):K(f,c.value,!0),!0},deleteProperty(s,u){var c=n.get(u);if(c===void 0){if(u in s){const f=l(()=>Te(ot));n.set(u,f),fr(i)}}else K(c,ot),fr(i);return!0},get(s,u,c){if(u===Mn)return e;var f=n.get(u),v=u in s;if(f===void 0&&(!v||Sn(s,u)?.writable)&&(f=l(()=>{var _=Fn(v?s[u]:ot),m=Te(_);return m}),n.set(u,f)),f!==void 0){var h=o(f);return h===ot?void 0:h}return Reflect.get(s,u,c)},getOwnPropertyDescriptor(s,u){var c=Reflect.getOwnPropertyDescriptor(s,u);if(c&&"value"in c){var f=n.get(u);f&&(c.value=o(f))}else if(c===void 0){var v=n.get(u),h=v?.v;if(v!==void 0&&h!==ot)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return c},has(s,u){if(u===Mn)return!0;var c=n.get(u),f=c!==void 0&&c.v!==ot||Reflect.has(s,u);if(c!==void 0||xe!==null&&(!f||Sn(s,u)?.writable)){c===void 0&&(c=l(()=>{var h=f?Fn(s[u]):ot,_=Te(h);return _}),n.set(u,c));var v=o(c);if(v===ot)return!1}return f},set(s,u,c,f){var v=n.get(u),h=u in s;if(r&&u==="length")for(var _=c;_<v.v;_+=1){var m=n.get(_+"");m!==void 0?K(m,ot):_ in s&&(m=l(()=>Te(ot)),n.set(_+"",m))}if(v===void 0)(!h||Sn(s,u)?.writable)&&(v=l(()=>Te(void 0)),K(v,Fn(c)),n.set(u,v));else{h=v.v!==ot;var y=l(()=>Fn(c));K(v,y)}var g=Reflect.getOwnPropertyDescriptor(s,u);if(g?.set&&g.set.call(f,c),!h){if(r&&typeof u=="string"){var b=n.get("length"),k=Number(u);Number.isInteger(k)&&k>=b.v&&K(b,k+1)}fr(i)}return!0},ownKeys(s){o(i);var u=Reflect.ownKeys(s).filter(v=>{var h=n.get(v);return h===void 0||h.v!==ot});for(var[c,f]of n)f.v!==ot&&!(c in s)&&u.push(c);return u},setPrototypeOf(){El()}})}var Gt,Fa,Na,Ha;function ns(){if(Gt===void 0){Gt=window,Fa=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Na=Sn(t,"firstChild").get,Ha=Sn(t,"nextSibling").get,_a(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),_a(n)&&(n.__t=void 0)}}function dn(e=""){return document.createTextNode(e)}function Wr(e){return Na.call(e)}function dr(e){return Ha.call(e)}function fe(e,t){return Wr(e)}function Z(e,t=!1){{var n=Wr(e);return n instanceof Comment&&n.data===""?dr(n):n}}function ie(e,t=1,n=!1){let r=e;for(;t--;)r=dr(r);return r}function rs(e){e.textContent=""}function Ua(){return!1}function is(e,t){{const n=document.body;e.autofocus=!0,In(()=>{document.activeElement===n&&e.focus()})}}function $i(e){var t=we,n=xe;$t(null),tn(null);try{return e()}finally{$t(t),tn(n)}}function Wa(e){xe===null&&(we===null&&pl(),wl()),Un&&bl()}function as(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Vt(e,t,n){var r=xe;r!==null&&(r.f&Ct)!==0&&(e|=Ct);var i={ctx:Ne,deps:null,nodes:null,f:e|Et|Bt,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{mr(i),i.f|=vi}catch(s){throw vt(i),s}else t!==null&&An(i);var a=i;if(n&&a.deps===null&&a.teardown===null&&a.nodes===null&&a.first===a.last&&(a.f&qn)===0&&(a=a.first,(e&ln)!==0&&(e&wn)!==0&&a!==null&&(a.f|=wn)),a!==null&&(a.parent=r,r!==null&&as(a,r),we!==null&&(we.f&tt)!==0&&(e&Rn)===0)){var l=we;(l.effects??=[]).push(a)}return i}function hr(){return we!==null&&!en}function zr(e){const t=Vt(Or,null,!1);return lt(t,at),t.teardown=e,t}function Qe(e){Wa();var t=xe.f,n=!we&&(t&sn)!==0&&(t&vi)===0;if(n){var r=Ne;(r.e??=[]).push(e)}else return za(e)}function za(e){return Vt(hi|wa,e,!1)}function Di(e){return Wa(),Vt(Or|wa,e,!0)}function os(e){jt.ensure();const t=Vt(Rn|qn,e,!0);return(n={})=>new Promise(r=>{n.outro?Nn(t,()=>{vt(t),r(void 0)}):(vt(t),r(void 0))})}function ki(e){return Vt(hi,e,!1)}function ls(e){return Vt(gi|qn,e,!0)}function Ba(e,t=0){return Vt(Or|t,e,!0)}function ue(e,t=[],n=[],r=[]){Jl(r,t,n,i=>{Vt(Or,()=>e(...i.map(o)),!0)})}function vr(e,t=0){var n=Vt(ln|t,e,!0);return n}function ss(e,t=0){var n=Vt(ma|t,e,!0);return n}function Tt(e){return Vt(sn|qn,e,!0)}function Ga(e){var t=e.teardown;if(t!==null){const n=Un,r=we;Za(!0),$t(null);try{t.call(null)}finally{Za(n),$t(r)}}}function Va(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&$i(()=>{i.abort(Xn)});var r=n.next;(n.f&Rn)!==0?n.parent=null:vt(n,t),n=r}}function us(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&sn)===0&&vt(t),t=n}}function vt(e,t=!0){var n=!1;(t||(e.f&ba)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(cs(e.nodes.start,e.nodes.end),n=!0),Va(e,t&&!n),Gr(e,0),lt(e,un);var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)a.stop();Ga(e);var i=e.parent;i!==null&&i.first!==null&&Ya(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function cs(e,t){for(;e!==null;){var n=e===t?null:dr(e);e.remove(),e=n}}function Ya(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Nn(e,t,n=!0){var r=[];qa(e,r,!0);var i=()=>{n&&vt(e),t&&t()},a=r.length;if(a>0){var l=()=>--a||i();for(var s of r)s.out(l)}else i()}function qa(e,t,n){if((e.f&Ct)===0){e.f^=Ct;var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)(s.is_global||n)&&t.push(s);for(var i=e.first;i!==null;){var a=i.next,l=(i.f&wn)!==0||(i.f&sn)!==0&&(e.f&ln)!==0;qa(i,t,l?n:!1),i=a}}}function Ei(e){Xa(e,!0)}function Xa(e,t){if((e.f&Ct)!==0){e.f^=Ct,(e.f&at)===0&&(lt(e,Et),An(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&wn)!==0||(n.f&sn)!==0;Xa(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(const l of a)(l.is_global||t)&&l.in()}}function Ka(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:dr(n);t.append(n),n=i}}let Hn=!1;function Br(e){Hn=e}let Un=!1;function Za(e){Un=e}let we=null,en=!1;function $t(e){we=e}let xe=null;function tn(e){xe=e}let hn=null;function Ja(e){we!==null&&(hn===null?hn=[e]:hn.push(e))}let _t=null,xt=0,Ot=null;function fs(e){Ot=e}let Qa=1,_r=0,Wn=_r;function ja(e){Wn=e}function eo(){return++Qa}function gr(e){var t=e.f;if((t&Et)!==0)return!0;if(t&tt&&(e.f&=~Ln),(t&Qt)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var a=n[i];if(gr(a)&&Ia(a),a.wv>e.wv)return!0}(t&Bt)!==0&&It===null&&lt(e,at)}return!1}function to(e,t,n=!0){var r=e.reactions;if(r!==null&&!hn?.includes(e))for(var i=0;i<r.length;i++){var a=r[i];(a.f&tt)!==0?to(a,t,!1):t===a&&(n?lt(a,Et):(a.f&at)!==0&&lt(a,Qt),An(a))}}function no(e){var t=_t,n=xt,r=Ot,i=we,a=hn,l=Ne,s=en,u=Wn,c=e.f;_t=null,xt=0,Ot=null,we=(c&(sn|Rn))===0?e:null,hn=null,Zn(e.ctx),en=!1,Wn=++_r,e.ac!==null&&($i(()=>{e.ac.abort(Xn)}),e.ac=null);try{e.f|=_i;var f=e.fn,v=f(),h=e.deps;if(_t!==null){var _;if(Gr(e,xt),h!==null&&xt>0)for(h.length=xt+_t.length,_=0;_<_t.length;_++)h[xt+_]=_t[_];else e.deps=h=_t;if(hr()&&(e.f&Bt)!==0)for(_=xt;_<h.length;_++)(h[_].reactions??=[]).push(e)}else h!==null&&xt<h.length&&(Gr(e,xt),h.length=xt);if(sr()&&Ot!==null&&!en&&h!==null&&(e.f&(tt|Qt|Et))===0)for(_=0;_<Ot.length;_++)to(Ot[_],e);return i!==null&&i!==e&&(_r++,Ot!==null&&(r===null?r=Ot:r.push(...Ot))),(e.f&pn)!==0&&(e.f^=pn),v}catch(m){return xa(m)}finally{e.f^=_i,_t=t,xt=n,Ot=r,we=i,hn=a,Zn(l),en=s,Wn=u}}function ds(e,t){let n=t.reactions;if(n!==null){var r=fl.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&tt)!==0&&(_t===null||!_t.includes(t))&&(lt(t,Qt),(t.f&Bt)!==0&&(t.f^=Bt,t.f&=~Ln),Pa(t),Gr(t,0))}function Gr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ds(e,n[r])}function mr(e){var t=e.f;if((t&un)===0){lt(e,at);var n=xe,r=Hn;xe=e,Hn=!0;try{(t&(ln|ma))!==0?us(e):Va(e),Ga(e);var i=no(e);e.teardown=typeof i=="function"?i:null,e.wv=Qa;var a}finally{Hn=r,xe=n}}}async function Vr(){await Promise.resolve(),Vl()}function o(e){var t=e.f,n=(t&tt)!==0;if(we!==null&&!en){var r=xe!==null&&(xe.f&un)!==0;if(!r&&!hn?.includes(e)){var i=we.deps;if((we.f&_i)!==0)e.rv<_r&&(e.rv=_r,_t===null&&i!==null&&i[xt]===e?xt++:_t===null?_t=[e]:_t.includes(e)||_t.push(e));else{(we.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[we]:a.includes(we)||a.push(we)}}}if(Un){if($n.has(e))return $n.get(e);if(n){var l=e,s=l.v;return((l.f&at)===0&&l.reactions!==null||io(l))&&(s=bi(l)),$n.set(l,s),s}}else n&&(!It?.has(e)||He?.is_fork&&!hr())&&(l=e,gr(l)&&Ia(l),Hn&&hr()&&(l.f&Bt)===0&&ro(l));if(It?.has(e))return It.get(e);if((e.f&pn)!==0)throw e.v;return e.v}function ro(e){if(e.deps!==null){e.f^=Bt;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&tt)!==0&&(t.f&Bt)===0&&ro(t)}}function io(e){if(e.v===ot)return!0;if(e.deps===null)return!1;for(const t of e.deps)if($n.has(t)||(t.f&tt)!==0&&io(t))return!0;return!1}function W(e){var t=en;try{return en=!0,e()}finally{en=t}}const hs=-7169;function lt(e,t){e.f=e.f&hs|t}function vs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Mn in e)Ci(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Mn in n&&Ci(n)}}}function Ci(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ci(e[r],t)}catch{}const n=di(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=va(n);for(let i in r){const a=r[i].get;if(a)try{a.call(e)}catch{}}}}}const _s=["touchstart","touchmove"];function gs(e){return _s.includes(e)}const ao=new Set,Ti=new Set;function ms(e,t,n,r={}){function i(a){if(r.capture||yr.call(t,a),!a.cancelBubble)return $i(()=>n?.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?In(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function St(e,t,n,r,i){var a={capture:r,passive:i},l=ms(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&zr(()=>{t.removeEventListener(e,l,a)})}function Dn(e){for(var t=0;t<e.length;t++)ao.add(e[t]);for(var n of Ti)n(e)}let oo=null;function yr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;oo=e;var l=0,s=oo===e&&e.__root;if(s){var u=i.indexOf(s);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var c=i.indexOf(t);if(c===-1)return;u<=c&&(l=u)}if(a=i[l]||e.target,a!==t){ha(e,"currentTarget",{configurable:!0,get(){return a||n}});var f=we,v=xe;$t(null),tn(null);try{for(var h,_=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+r];y!=null&&(!a.disabled||e.target===a)&&y.call(a,e)}catch(g){h?_.push(g):h=g}if(e.cancelBubble||m===t||m===null)break;a=m}if(h){for(let g of _)queueMicrotask(()=>{throw g});throw h}}finally{e.__root=t,delete e.currentTarget,$t(f),tn(v)}}}function ys(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Yr(e,t){var n=xe;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Q(e,t){var n=(t&Fl)!==0,r=(t&Nl)!==0,i,a=!e.startsWith("<!>");return()=>{i===void 0&&(i=ys(a?e:"<!>"+e),n||(i=Wr(i)));var l=r||Fa?document.importNode(i,!0):i.cloneNode(!0);if(n){var s=Wr(l),u=l.lastChild;Yr(s,u)}else Yr(l,l);return l}}function lo(e=""){{var t=dn(e+"");return Yr(t,t),t}}function de(){var e=document.createDocumentFragment(),t=document.createComment(""),n=dn();return e.append(t,n),Yr(t,n),e}function x(e,t){e!==null&&e.before(t)}function so(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function bs(e,t){return ws(e,t)}const jn=new Map;function ws(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:l=!0}){ns();var s=new Set,u=v=>{for(var h=0;h<v.length;h++){var _=v[h];if(!s.has(_)){s.add(_);var m=gs(_);t.addEventListener(_,yr,{passive:m});var y=jn.get(_);y===void 0?(document.addEventListener(_,yr,{passive:m}),jn.set(_,1)):jn.set(_,y+1)}}};u(Ir(ao)),Ti.add(u);var c=void 0,f=os(()=>{var v=n??t.appendChild(dn());return Kl(v,{pending:()=>{}},h=>{if(a){ge({});var _=Ne;_.c=a}i&&(r.$$events=i),c=e(h,r)||{},a&&me()}),()=>{for(var h of s){t.removeEventListener(h,yr);var _=jn.get(h);--_===0?(document.removeEventListener(h,yr),jn.delete(h)):jn.set(h,_)}Ti.delete(u),v!==n&&v.parentNode?.removeChild(v)}});return xi.set(c,f),c}let xi=new WeakMap;function ps(e,t){const n=xi.get(e);return n?(xi.delete(e),n(t)):Promise.resolve()}class Si{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#a=()=>{var t=He;if(this.#e.has(t)){var n=this.#e.get(t),r=this.#t.get(n);if(r)Ei(r),this.#r.delete(n);else{var i=this.#n.get(n);i&&(this.#t.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[a,l]of this.#e){if(this.#e.delete(a),a===t)break;const s=this.#n.get(l);s&&(vt(s.effect),this.#n.delete(l))}for(const[a,l]of this.#t){if(a===n||this.#r.has(a))continue;const s=()=>{if(Array.from(this.#e.values()).includes(a)){var c=document.createDocumentFragment();Ka(l,c),c.append(dn()),this.#n.set(a,{effect:l,fragment:c})}else vt(l);this.#r.delete(a),this.#t.delete(a)};this.#s||!r?(this.#r.add(a),Nn(l,s,!1)):s()}}};#i=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#n)n.includes(r)||(vt(i.effect),this.#n.delete(r))};ensure(t,n){var r=He,i=Ua();if(n&&!this.#t.has(t)&&!this.#n.has(t))if(i){var a=document.createDocumentFragment(),l=dn();a.append(l),this.#n.set(t,{effect:Tt(()=>n(l)),fragment:a})}else this.#t.set(t,Tt(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[s,u]of this.#t)s===t?r.skipped_effects.delete(u):r.skipped_effects.add(u);for(const[s,u]of this.#n)s===t?r.skipped_effects.delete(u.effect):r.skipped_effects.add(u.effect);r.oncommit(this.#a),r.ondiscard(this.#i)}else this.#a()}}function pe(e,t,n=!1){var r=new Si(e),i=n?wn:0;function a(l,s){r.ensure(l,s)}vr(()=>{var l=!1;t((s,u=!0)=>{l=!0,a(u,s)}),l||a(!1,null)},i)}function ce(e,t){return t}function $s(e,t,n){for(var r=[],i=t.length,a,l=t.length,s=0;s<i;s++){let v=t[s];Nn(v,()=>{if(a){if(a.pending.delete(v),a.done.add(v),a.pending.size===0){var h=e.outrogroups;Ri(Ir(a.done)),h.delete(a),h.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var u=r.length===0&&n!==null;if(u){var c=n,f=c.parentNode;rs(f),f.append(c),e.items.clear()}Ri(t,!u)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Ri(e,t=!0){for(var n=0;n<e.length;n++)vt(e[n],t)}var uo;function le(e,t,n,r,i,a=null){var l=e,s=new Map,u=(t&$a)!==0;if(u){var c=e;l=c.appendChild(dn())}var f=null,v=yi(()=>{var b=n();return da(b)?b:b==null?[]:Ir(b)}),h,_=!0;function m(){g.fallback=f,Ds(g,h,l,t,r),f!==null&&(h.length===0?(f.f&cn)===0?Ei(f):(f.f^=cn,br(f,null,l)):Nn(f,()=>{f=null}))}var y=vr(()=>{h=o(v);for(var b=h.length,k=new Set,p=He,$=Ua(),E=0;E<b;E+=1){var C=h[E],D=r(C,E),I=_?null:s.get(D);I?(I.v&&Qn(I.v,C),I.i&&Qn(I.i,E),$&&p.skipped_effects.delete(I.e)):(I=ks(s,_?l:uo??=dn(),C,D,E,i,t,n),_||(I.e.f|=cn),s.set(D,I)),k.add(D)}if(b===0&&a&&!f&&(_?f=Tt(()=>a(l)):(f=Tt(()=>a(uo??=dn())),f.f|=cn)),!_)if($){for(const[R,T]of s)k.has(R)||p.skipped_effects.add(T.e);p.oncommit(m),p.ondiscard(()=>{})}else m();o(v)}),g={effect:y,items:s,outrogroups:null,fallback:f};_=!1}function Ds(e,t,n,r,i){var a=(r&Rl)!==0,l=t.length,s=e.items,u=e.effect.first,c,f=null,v,h=[],_=[],m,y,g,b;if(a)for(b=0;b<l;b+=1)m=t[b],y=i(m,b),g=s.get(y).e,(g.f&cn)===0&&(g.nodes?.a?.measure(),(v??=new Set).add(g));for(b=0;b<l;b+=1){if(m=t[b],y=i(m,b),g=s.get(y).e,e.outrogroups!==null)for(const T of e.outrogroups)T.pending.delete(g),T.done.delete(g);if((g.f&cn)!==0)if(g.f^=cn,g===u)br(g,null,n);else{var k=f?f.next:u;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),kn(e,f,g),kn(e,g,k),br(g,k,n),f=g,h=[],_=[],u=f.next;continue}if((g.f&Ct)!==0&&(Ei(g),a&&(g.nodes?.a?.unfix(),(v??=new Set).delete(g))),g!==u){if(c!==void 0&&c.has(g)){if(h.length<_.length){var p=_[0],$;f=p.prev;var E=h[0],C=h[h.length-1];for($=0;$<h.length;$+=1)br(h[$],p,n);for($=0;$<_.length;$+=1)c.delete(_[$]);kn(e,E.prev,C.next),kn(e,f,E),kn(e,C,p),u=p,f=C,b-=1,h=[],_=[]}else c.delete(g),br(g,u,n),kn(e,g.prev,g.next),kn(e,g,f===null?e.effect.first:f.next),kn(e,f,g),f=g;continue}for(h=[],_=[];u!==null&&u!==g;)(c??=new Set).add(u),_.push(u),u=u.next;if(u===null)continue}(g.f&cn)===0&&h.push(g),f=g,u=g.next}if(e.outrogroups!==null){for(const T of e.outrogroups)T.pending.size===0&&(Ri(Ir(T.done)),e.outrogroups?.delete(T));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||c!==void 0){var D=[];if(c!==void 0)for(g of c)(g.f&Ct)===0&&D.push(g);for(;u!==null;)(u.f&Ct)===0&&u!==e.fallback&&D.push(u),u=u.next;var I=D.length;if(I>0){var R=(r&$a)!==0&&l===0?n:null;if(a){for(b=0;b<I;b+=1)D[b].nodes?.a?.measure();for(b=0;b<I;b+=1)D[b].nodes?.a?.fix()}$s(e,D,R)}}a&&In(()=>{if(v!==void 0)for(g of v)g.nodes?.a?.apply()})}function ks(e,t,n,r,i,a,l,s){var u=(l&xl)!==0?(l&Ll)===0?pi(n,!1,!1):On(n):null,c=(l&Sl)!==0?On(i):null;return{v:u,i:c,e:Tt(()=>(a(t,u??n,c??i,s),()=>{e.delete(r)}))}}function br(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&(t.f&cn)===0?t.nodes.start:n;r!==null;){var l=dr(r);if(a.before(r),r===i)return;r=l}}function kn(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function vn(e,t,...n){var r=new Si(e);vr(()=>{const i=t()??null;r.ensure(i,i&&(a=>i(a,...n)))},wn)}function Li(e,t,n){var r=new Si(e);vr(()=>{var i=t()??null;r.ensure(i,i&&(a=>n(a,i)))},wn)}function Ye(e,t){var n=void 0,r;ss(()=>{n!==(n=t())&&(r&&(vt(r),r=null),n&&(r=Tt(()=>{ki(()=>n(e))})))})}function co(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=co(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Es(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=co(e))&&(r&&(r+=" "),r+=t);return r}function nn(e){return typeof e=="object"?Es(e):e??""}function Cs(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function fo(e,t=!1){var n=t?" !important;":";",r="";for(var i in e){var a=e[i];a!=null&&a!==""&&(r+=" "+i+": "+a+n)}return r}function Mi(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Ts(e,t){if(t){var n="",r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,l=0,s=!1,u=[];r&&u.push(...Object.keys(r).map(Mi)),i&&u.push(...Object.keys(i).map(Mi));var c=0,f=-1;const y=e.length;for(var v=0;v<y;v++){var h=e[v];if(s?h==="/"&&e[v-1]==="*"&&(s=!1):a?a===h&&(a=!1):h==="/"&&e[v+1]==="*"?s=!0:h==='"'||h==="'"?a=h:h==="("?l++:h===")"&&l--,!s&&a===!1&&l===0){if(h===":"&&f===-1)f=v;else if(h===";"||v===y-1){if(f!==-1){var _=Mi(e.substring(c,f).trim());if(!u.includes(_)){h!==";"&&v++;var m=e.substring(c,v).trim();n+=" "+m+";"}}c=v+1,f=-1}}}}return r&&(n+=fo(r)),i&&(n+=fo(i,!0)),n=n.trim(),n===""?null:n}return e==null?null:String(e)}function N(e,t,n,r,i,a){var l=e.__className;if(l!==n||l===void 0){var s=Cs(n);s==null?e.removeAttribute("class"):e.className=s,e.__className=n}return a}function Pi(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Yt(e,t,n,r){var i=e.__style;if(i!==t){var a=Ts(t,r);a==null?e.removeAttribute("style"):e.style.cssText=a,e.__style=t}else r&&(Array.isArray(r)?(Pi(e,n?.[0],r[0]),Pi(e,n?.[1],r[1],"important")):Pi(e,n,r));return r}const xs=Symbol("is custom element"),Ss=Symbol("is html");function Ue(e,t,n,r){var i=Rs(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[ml]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Ls(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Rs(e){return e.__attributes??={[xs]:e.nodeName.includes("-"),[Ss]:e.namespaceURI===Hl}}var ho=new Map;function Ls(e){var t=e.getAttribute("is")||e.nodeName,n=ho.get(t);if(n)return n;ho.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){r=va(i);for(var l in r)r[l].set&&n.push(l);i=di(i)}return n}function En(e,t,n){var r=Sn(e,t);r&&r.set&&(e[t]=n,zr(()=>{e[t]=null}))}class Ii{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(t){this.#n=t}observe(t,n){var r=this.#e.get(t)||new Set;return r.add(n),this.#e.set(t,r),this.#r().observe(t,this.#n),()=>{var i=this.#e.get(t);i.delete(n),i.size===0&&(this.#e.delete(t),this.#t.unobserve(t))}}#r(){return this.#t??(this.#t=new ResizeObserver(t=>{for(var n of t){Ii.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}}))}}var Ms=new Ii({box:"border-box"});function qr(e,t,n){var r=Ms.observe(e,()=>n(e[t]));ki(()=>(W(()=>n(e[t])),r))}function vo(e,t){return e===t||e?.[Mn]===t}function gt(e={},t,n,r){return ki(()=>{var i,a;return Ba(()=>{i=a,a=r?.()||[],W(()=>{e!==n(...a)&&(t(e,...a),i&&vo(n(...i),e)&&t(null,...i))})}),()=>{In(()=>{a&&vo(n(...a),e)&&t(null,...a)})}}),e}function Ps(e=!1){const t=Ne,n=t.l.u;if(!n)return;let r=()=>vs(t.s);if(e){let i=0,a={};const l=cr(()=>{let s=!1;const u=t.s;for(const c in u)u[c]!==a[c]&&(a[c]=u[c],s=!0);return s&&i++,i});r=()=>o(l)}n.b.length&&Di(()=>{_o(t,r),Ar(n.b)}),Qe(()=>{const i=W(()=>n.m.map(vl));return()=>{for(const a of i)typeof a=="function"&&a()}}),n.a.length&&Qe(()=>{_o(t,r),Ar(n.a)})}function _o(e,t){if(e.l.s)for(const n of e.l.s)o(n);t()}function Ai(e,t,n){if(e==null)return t(void 0),n&&n(void 0),ht;const r=W(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const er=[];function go(e,t){return{subscribe:st(e,t).subscribe}}function st(e,t=ht){let n=null;const r=new Set;function i(s){if(ka(e,s)&&(e=s,n)){const u=!er.length;for(const c of r)c[1](),er.push(c,e);if(u){for(let c=0;c<er.length;c+=2)er[c][0](er[c+1]);er.length=0}}}function a(s){i(s(e))}function l(s,u=ht){const c=[s,u];return r.add(c),r.size===1&&(n=t(i,a)||ht),s(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:l}}function Ke(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=t.length<2;return go(n,(l,s)=>{let u=!1;const c=[];let f=0,v=ht;const h=()=>{if(f)return;v();const m=t(r?c[0]:c,l,s);a?l(m):v=typeof m=="function"?m:ht},_=i.map((m,y)=>Ai(m,g=>{c[y]=g,f&=~(1<<y),u&&h()},()=>{f|=1<<y}));return u=!0,h(),function(){Ar(_),v(),u=!1}})}function wr(e){let t;return Ai(e,n=>t=n)(),t}let Xr=!1,Oi=Symbol();function d(e,t,n){const r=n[t]??={store:null,source:pi(void 0),unsubscribe:ht};if(r.store!==e&&!(Oi in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=ht;else{var i=!0;r.unsubscribe=Ai(e,a=>{i?r.source.v=a:K(r.source,a)}),i=!1}return e&&Oi in n?wr(e):o(r.source)}function We(e,t){return e.set(t),t}function De(){const e={};function t(){zr(()=>{for(var n in e)e[n].unsubscribe();ha(e,Oi,{enumerable:!1,value:!0})})}return[e,t]}function ze(e,t,n){return e.set(n),t}function Is(e){var t=Xr;try{return Xr=!1,[e(),Xr]}finally{Xr=t}}function Se(e,t,n,r){var i=!Kn||(n&Pl)!==0,a=(n&Al)!==0,l=(n&Ol)!==0,s=r,u=!0,c=()=>(u&&(u=!1,s=l?W(r):r),s),f;if(a){var v=Mn in e||gl in e;f=Sn(e,t)?.set??(v&&t in e?p=>e[t]=p:void 0)}var h,_=!1;a?[h,_]=Is(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=c(),f&&(i&&Dl(),f(h)));var m;if(i?m=()=>{var p=e[t];return p===void 0?c():(u=!0,p)}:m=()=>{var p=e[t];return p!==void 0&&(s=void 0),p===void 0?s:p},i&&(n&Il)===0)return m;if(f){var y=e.$$legacy;return(function(p,$){return arguments.length>0?((!i||!$||y||_)&&f($?m():p),p):m()})}var g=!1,b=((n&Ml)!==0?cr:yi)(()=>(g=!1,m()));a&&o(b);var k=xe;return(function(p,$){if(arguments.length>0){const E=$?o(b):i&&a?Fn(p):p;return K(b,E),g=!0,s!==void 0&&(s=E),p}return Un&&g||(k.f&un)!==0?b.v:o(b)})}function tr(e){Ne===null&&pa(),Kn&&Ne.l!==null?As(Ne).m.push(e):Qe(()=>{const t=W(e);if(typeof t=="function")return t})}function As(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const Os="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Os);function Fi(e,t=void 0){return function(n){return n.key==="Enter"||n.key===" "&&!n.preventDefault()?e.call(t,n):void 0}}function nt(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function Fs(e){return t=>{let n=r=>{t&&!t.contains(r.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:r}}))};return document.addEventListener(e,n,!0),()=>{document.removeEventListener(e,n,!0)}}}function Ni(e){return t=>{let n=new ResizeObserver(r=>{for(let i of r)e(t,i)});return n.observe(t),()=>{n.unobserve(t)}}}function mo(e,t){return n=>{let r=new IntersectionObserver(i=>{for(let a of i)e(n,a)},t);return r.observe(n),()=>{r.unobserve(n)}}}const Kr=86400;function rn(e=void 0){return e!==void 0?e instanceof Date?$o(e):Us(e):$o(new Date)}function et(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let n=0,r=2;for(let i of e.split(":",3))n+=parseInt(i,10)*Math.pow(60,r--);e={seconds:n}}else e instanceof Date&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function J(e){return new Date(e.getTime())}function Me(e,t,n=1){e.setUTCFullYear(e.getUTCFullYear()+n*t.years);let r=e.getUTCMonth()+n*t.months;for(e.setUTCMonth(r),r%=12,r<0&&(r+=12);e.getUTCMonth()!==r;)nr(e);return e.setUTCDate(e.getUTCDate()+n*t.days),e.setUTCSeconds(e.getUTCSeconds()+n*t.seconds),e}function Zr(e,t,n=1){return Me(e,t,-n)}function qt(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function nr(e,t=1){return qt(e,-t)}function an(e){return e.setUTCHours(0,0,0,0),e}function Ze(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function Rt(e,t=19){return e.toISOString().substring(0,t)}function Dt(e,...t){return t.every(n=>e.getTime()===n.getTime())}function Ns(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n>=0?n:n+7)),e}function yo(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n<=0?n:n-7)),e}function bo(e){return typeof e=="string"&&e.length<=10}function Hi(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function Ee(e){return e.seconds}function wo(e,t){return Me(e,t),e}function po(e,t,n){if(Zr(e,t),n.length&&n.length<7)for(;n.includes(e.getUTCDay());)nr(e);return e}function Hs(e,t){e=J(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let n=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-n)/1e3/Kr+1)/7)}function $o(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function Us(e){const t=e.match(/\d+/g);return new Date(Date.UTC(Number(t[0]),Number(t[1])-1,Number(t[2]),Number(t[3]||0),Number(t[4]||0),Number(t[5]||0)))}function ut(...e){return Object.assign(...e)}function _n(e){return Object.keys(e)}function Ws(e){return Object.entries(e)}function Ui(e){return Math.floor(e)}function zs(e){return Math.ceil(e)}function on(...e){return Math.min(...e)}function Lt(...e){return Math.max(...e)}function Bs(){return Symbol("ec")}function Do(e){return Array.isArray(e)}function $e(e){return typeof e=="function"}function Gs(e){for(let t in e)if(Object.hasOwn(e,t))return!1;return!0}function Vs(e){return e()}function ko(e){e.forEach(Vs)}function Ys(){}const pr=e=>e;function Wi(e,t=void 0){return function(n){n.stopPropagation(),e&&e.call(t,n)}}let zi=Bs();function Eo(e,t){e[zi]=t}function qs(e){return!!e?.[zi]}function gn(e){return e[zi]}function Co(e,t,n,r=[]){let i=document.createElement(e);i.className=t,typeof n=="string"?i.innerText=n:n.domNodes?i.replaceChildren(...n.domNodes):n.html&&(i.innerHTML=n.html);for(let a of r)i.setAttribute(...a);return i}function Cn(e){return e.getBoundingClientRect()}function To(e,t){for(;t--;)e=e.parentElement;return e}function zn(e){return Cn(e).height}function rr(e,t,n=document,r=[]){r.push(n);for(let i of n.elementsFromPoint(e,t)){if(qs(i))return i;if(i.shadowRoot&&!r.includes(i.shadowRoot)){let a=rr(e,t,i.shadowRoot,r);if(a)return a}}return null}function $r(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Xs(e,t,n,r){return{type:e,title:t,currentStart:n.start,currentEnd:n.end,activeStart:r.start,activeEnd:r.end,calendar:void 0}}function mt(e){return e=ut({},e),e.currentStart=Ze(e.currentStart),e.currentEnd=Ze(e.currentEnd),e.activeStart=Ze(e.activeStart),e.activeEnd=Ze(e.activeEnd),e}function xo(e){return e.startsWith("list")}let Ks=1;function Jr(e){return e.map(t=>{let n={id:"id"in t?String(t.id):`{generated-${Ks++}}`,resourceIds:Bi(t,"resourceId").map(String),allDay:t.allDay??(bo(t.start)&&bo(t.end)),start:rn(t.start),end:rn(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:Bi(t,"className"),styles:Bi(t,"style")};if(n.allDay){an(n.start);let r=J(n.end);an(n.end),(!Dt(n.end,r)||Dt(n.end,n.start))&&qt(n.end)}return n})}function Bi(e,t){let n=e[t+"s"]??e[t]??[];return Do(n)?n:[n]}function Zs(e){return e.map(t=>({events:t.events,url:t.url&&t.url.trimEnd("&")||"",method:t.method&&t.method.toUpperCase()||"GET",extraParams:t.extraParams||{}}))}function Js(e,t,n,r,i,a){let l=i.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?Hi(J(e.start),e.end):e.start),s;if(n&&(s=$e(n)?n({event:rt(e.event),timeText:l,view:mt(a)}):n),s===void 0){let u;switch(e.event.display){case"background":u=[];break;case"pointer":u=e.event.allDay?[]:[So(l,e,r)];break;default:u=[...e.event.allDay?[]:[So(l,e,r)],Co("h4",r.eventTitle,e.event.title)]}s={domNodes:u}}return[l,s]}function So(e,t,n){return Co("time",n.eventTime,e,[["datetime",Rt(t.start)]])}function Qs(e,t,n){let r=t.classNames;return e&&($e(e)&&(e=e({event:rt(t),view:mt(n)})),r=[...Do(e)?e:[e],...r]),r}function rt(e){return Ro(e,Ze)}function Gi(e){return Ro(e,J)}function Ro(e,t){return e=ut({},e),e.start=t(e.start),e.end=t(e.end),e}function Vi(e,t){e.length=t.length;for(let n of e)n?.reposition()}function Dr(e,t,n,r=void 0){return(!r||e.resourceIds.includes(r.id))&&e.start<n&&e.end>t}function Qr(e){return js(e)||eu(e)||tu(e)}function Ft(e){return e==="background"}function js(e){return e==="preview"}function eu(e){return e==="ghost"}function tu(e){return e==="pointer"}function kr(e,t,n){let r={start:e.start>t?e.start:t,end:e.end<n?e.end:n,event:e};return r.zeroDuration=Dt(r.start,r.end),r}function ir(e,t){let n=[],r,i,a;for(let{gridColumn:l,gridRow:s,resource:u,dayStart:c,dayEnd:f,disabled:v}of t)!v&&Dr(e,c,f,u)&&(n.push(c),r=f,i||(i=l,a=s));if(n.length){let l=kr(e,n[0],r);return ut(l,{gridColumn:i,gridRow:a,dates:n}),[l]}return[]}function Lo(e){let t={},n={};for(let r of e){let{gridColumn:i,gridRow:a}=r;for(let s=1;s<r.dates.length;++s){let u=`${a}_${i+s}`;n[u]?n[u].chunks.push(r):n[u]={sorted:!1,chunks:[r]}}let l=`${a}_${i}`;r.long=n[l],r.prev=t[l],t[l]=r}}function Mo(e,t,n=0){e.prev&&(n=e.prev.bottom+1);let r=n+t;if(e.long){let i=e.long;i.sorted||(i.chunks.sort((a,l)=>a.top-l.top),i.sorted=!0);for(let a of i.chunks)if(n<a.bottom&&r>a.top){let l=a.bottom-n+1;n+=l,r+=l}}return ut(e,{top:n,bottom:r}),n}function Po(e,t,n){n.update(r=>r.set(t,e))}function nu(e){ko(e),e.clear()}function ru(e,t,n){t??=e,n.has(t)||n.set(t,setTimeout(()=>{n.delete(t),e()}))}function jr(e){return ti(e,"day")}function ei(e){return ti(e,"week")}function Yi(e){return ti(e,"month")}function iu(e){return ti(e,"year")}function ti(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function Nt(e){return t=>({...t,view:e})}function au(e){let t,n;return e&&({start:t,end:n}=e,t&&(t=an(rn(t))),n&&(n=an(rn(n)))),{start:t,end:n}}function ar(e,t){return t.start&&e<t.start||t.end&&e>t.end}function Io(e){let t=[];return Ao(e,0,t),t}function Ao(e,t,n){let r=[];for(let i of e){let a=ou(i);r.push(a),n.push(a);let l={level:t,children:[],expanded:!0,hidden:!1};Eo(a,l),i.children&&(l.children=Ao(i.children,t+1,n))}return r}function ou(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:e.eventBackgroundColor,eventTextColor:e.eventTextColor,extendedProps:e.extendedProps??{}}}function lu(e,t){return Oo(e,t)?.eventBackgroundColor}function su(e,t){return Oo(e,t)?.eventTextColor}function Oo(e,t){return t.find(n=>e.resourceIds.includes(n.id))}function Fo(e,t,n,r,i){let a=[];e=J(e);let l=J(e);for(Me(e,r.min),Me(l,r.max);e<l;)a.push([Rt(e),i.format(e)]),Me(e,t,n);let s=Ui((e-l)/1e3/Ee(t));return s&&s!==n&&(a.at(-1)[2]=n-s),a}function No(e,t,n,r,i){let a=et(e),l=et(t);if(n){let s=et(on(Ee(a),Lt(0,Ee(l)-Kr))),u=et(Lt(Ee(l),Ee(s)+Kr)),c=$e(n?.eventFilter)?n.eventFilter:f=>!Ft(f.display);e:for(let f of r){let v=Me(J(f),a),h=Me(J(f),l),_=Me(J(f),s),m=Me(J(f),u);for(let y of i)if(!y.allDay&&c(y)&&y.start<m&&y.end>_){if(y.start<v){let g=Lt((y.start-f)/1e3,Ee(s));g<Ee(a)&&(a.seconds=g)}if(y.end>h){let g=on((y.end-f)/1e3,Ee(u));g>Ee(l)&&(l.seconds=g)}if(Ee(a)===Ee(s)&&Ee(l)===Ee(u))break e}}}return{min:a,max:l}}function Bn(e,t){return Ke([e,t],([n,r])=>{let i=$e(r)?{format:r}:new Intl.DateTimeFormat(n,r);return{format:a=>i.format(Ze(a))}})}function Ho(e,t){return Ke([e,t],([n,r])=>{let i;if($e(r))i=r;else{let a=new Intl.DateTimeFormat(n,r);i=(l,s)=>{if(l<=s)return a.formatRange(l,s);{let u=a.formatRangeToParts(s,l),c="",f=["startRange","endRange"],v=[!1,!1];for(let h of u){let _=f.indexOf(h.source);_>=0?v[_]||(c+=uu(f[1-_],u),v[_]=!0):c+=h.value}return c}}}return{formatRange:(a,l)=>i(Ze(a),Ze(l))}})}function uu(e,t){let n="";for(let r of t)r.source==e&&(n+=r.value);return n}const Uo=["buttonText","customButtons","theme"];function cu(e){let t={buttonText:{today:"today"},customButtons:{},date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,resources:[],selectable:!1,theme:{allDay:"ec-all-day",active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",colHead:"ec-col-head",day:"ec-day",dayHead:"ec-day-head",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",grid:"ec-grid",header:"ec-header",hidden:"ec-hidden",highlight:"ec-highlight",icon:"ec-icon",main:"ec-main",today:"ec-today",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"]},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let n of e)n.createOptions?.(t);return t}function fu(e){let t={date:n=>an(rn(n)),duration:et,events:Jr,eventSources:Zs,hiddenDays:n=>[...new Set(n)],highlightedDates:n=>n.map(r=>an(rn(r))),resources:Io,validRange:au};for(let n of e)n.createParsers?.(t);return t}function du(e,t){let n=[];for(let r of _n(e))e[r]!==t[r]&&n.push([r,e[r]]);return n}function hu(e){return Ke(e.view,t=>t?.startsWith("dayGrid"))}function vu(e){return Ke([e._currentRange,e.firstDay,e.slotMaxTime,e._dayGrid],([t,n,r,i])=>{let a=J(t.start),l=J(t.end);if(i)yo(a,n),Ns(l,n);else if(r.days||r.seconds>Kr){Me(nr(l),r);let s=nr(J(l));s<a&&(a=s)}return{start:a,end:l}})}function _u(e){return Ke([e.date,e.duration,e.firstDay],([t,n,r])=>{let i=J(t),a;return n.months?i.setUTCDate(1):n.inWeeks&&yo(i,r),a=Me(J(i),n),{start:i,end:a}})}function gu(e){return Ke([e._activeRange,e.hiddenDays],([t,n])=>{let r=[],i=an(J(t.start)),a=an(J(t.end));for(;i<a;)n.includes(i.getUTCDay())||r.push(J(i)),qt(i);return!r.length&&n.length&&n.length<7&&(e.date.update(l=>{for(;n.includes(l.getUTCDay());)qt(l);return l}),r=wr(e._viewDates)),r})}function mu(e){return Ke([e.date,e._activeRange,e._intlTitle,e._dayGrid],([t,n,r,i])=>i?r.formatRange(t,t):r.formatRange(n.start,nr(J(n.end))))}function yu(e){return Ke([e.view,e._viewTitle,e._currentRange,e._activeRange],t=>Xs(...t))}function bu(e){let t=st([]),n,r=0,i={};return Ke([e.events,e.eventSources,e._activeRange,e._fetchedRange,e.lazyFetching,e.loading],(a,l)=>Po(()=>{let[s,u,c,f,v,h]=a;if(!u.length){l(s);return}if(!f.start||f.start>c.start||f.end<c.end||!v){n&&n.abort(),n=new AbortController,$e(h)&&!r&&h(!0);let _=()=>{--r===0&&$e(h)&&h(!1)},m=[],y=p=>_(),g=p=>{m=m.concat(Jr(p)),l(m),_()},b=Rt(c.start),k=Rt(c.end);for(let p of u){if($e(p.events)){let $=p.events({start:Ze(c.start),end:Ze(c.end),startStr:b,endStr:k},g,y);$!==void 0&&Promise.resolve($).then(g,y)}else{let $=$e(p.extraParams)?p.extraParams():ut({},p.extraParams);$.start=b,$.end=k,$=new URLSearchParams($);let E=p.url,C={},D;["GET","HEAD"].includes(p.method)?E+=(E.includes("?")?"&":"?")+$:(C["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",D=String($)),fetch(E,{method:p.method,headers:C,body:D,signal:n.signal,credentials:"same-origin"}).then(I=>I.json()).then(g).catch(y)}++r}f.start=c.start,f.end=c.end}},i,e._queue),[]).subscribe(t.set),t}function wu(e){let t;e._view.subscribe(r=>t=r);let n={};return Ke([e._events,e.eventFilter,e.eventOrder,e.filterEventsWithResources,e.resources],(r,i)=>Po(()=>{let[a,l,s,u,c]=r,f=[...a];if($e(l)){let v=a.map(rt);f=f.filter((h,_)=>l({event:rt(h),index:_,events:v,view:t}))}u&&(f=f.filter(v=>c.some(h=>v.resourceIds.includes(h.id)))),$e(s)?f.sort((v,h)=>s(rt(v),rt(h))):f.sort((v,h)=>v.start-h.start||h.allDay-v.allDay),i(f)},n,e._queue),[])}function pu(){return go(rn(),e=>{let t=setInterval(()=>{e(rn())},1e3);return()=>clearInterval(t)})}function $u(e){let t=rn(),n=st(t);return Ke(e._now,r=>an(J(r))).subscribe(r=>{Dt(t,r)||(t=r,n.set(r))}),n}class Du{constructor(t,n){t=t||[];let r=cu(t),i=fu(t);r=qi(r,i),n=qi(n,i);for(let[l,s]of Object.entries(r))this[l]=st(s);this._queue=st(new Map),this._tasks=new Map,this._auxiliary=st([]),this._dayGrid=hu(this),this._currentRange=_u(this),this._activeRange=vu(this),this._fetchedRange=st({start:void 0,end:void 0}),this._events=bu(this),this._mainEl=st(void 0),this._now=pu(),this._today=$u(this),this._intlEventTime=Ho(this.locale,this.eventTimeFormat),this._intlDayHeader=Bn(this.locale,this.dayHeaderFormat),this._intlDayHeaderAL=Bn(this.locale,this.dayHeaderAriaLabelFormat),this._intlTitle=Ho(this.locale,this.titleFormat),this._viewTitle=mu(this),this._viewDates=gu(this),this._view=yu(this),this._viewComponent=st(void 0),this._filteredEvents=wu(this),this._interaction=st({}),this._iEvents=st([null,null]),this._iClasses=st(pr),this._iClass=st(void 0),this._set=(l,s)=>{Xi(l,this)&&(i[l]&&(s=i[l](s)),this[l].set(s))},this._get=l=>Xi(l,this)?wr(this[l]):void 0;for(let l of t)l.createStores?.(this);n.view&&this.view.set(n.view);let a=new Set([..._n(r.views),..._n(n.views??{})]);for(let l of a){let s=Wo(r,r.views[l]??{}),u=Wo(s,n,n.views?.[l]??{}),c=u.component;ku(u,this);for(let f of _n(u)){let{set:v,_set:h=v,..._}=this[f];this[f]={set:Uo.includes(f)?m=>{if($e(m)){let y=m(s[f]);u[f]=y,v(v===h?y:m)}else u[f]=m,v(m)}:m=>{u[f]=m,v(m)},_set:h,..._}}this.view.subscribe(f=>{if(f===l){this._viewComponent.set(c),$e(u.viewDidMount)&&Vr().then(()=>u.viewDidMount({view:mt(wr(this._view))}));for(let v of _n(u))this[v]._set(u[v])}})}}}function qi(e,t){let n={...e};for(let r of _n(t))r in n&&(n[r]=t[r](n[r]));if(e.views){n.views={};for(let r of _n(e.views))n.views[r]=qi(e.views[r],t)}return n}function Wo(...e){let t={};for(let n of e){let r={};for(let i of Uo)$e(n[i])&&(r[i]=n[i](t[i]));t={...t,...n,...r}}return t}function ku(e,t){_n(e).filter(n=>!Xi(n,t)||n==="view").forEach(n=>delete e[n])}function Xi(e,t){return t.hasOwnProperty(e)&&e[0]!=="_"}var Eu=Q("<h2></h2>"),Cu=Q("<button><i></i></button>"),Tu=Q("<button><i></i></button>"),xu=Q("<button> </button>"),Su=Q("<button></button>"),Ru=Q("<button> </button>");function zo(e,t){ge(t,!0);const n=()=>d(p,"$_viewDates",m),r=()=>d(T,"$validRange",m),i=()=>d(b,"$_today",m),a=()=>d(g,"$_currentRange",m),l=()=>d(C,"$date",m),s=()=>d(D,"$duration",m),u=()=>d(I,"$hiddenDays",m),c=()=>d(R,"$theme",m),f=()=>d(k,"$_viewTitle",m),v=()=>d($,"$buttonText",m),h=()=>d(E,"$customButtons",m),_=()=>d(P,"$view",m),[m,y]=De();let{_currentRange:g,_today:b,_viewTitle:k,_viewDates:p,buttonText:$,customButtons:E,date:C,duration:D,hiddenDays:I,theme:R,validRange:T,view:P}=ke("state"),O=Te(!1),H=Te(!1),G=Te(!1),V=!1;Di(()=>{n(),r(),t.buttons,W(()=>{V||(V=!0,t.buttons.includes("prev")&&(K(O,!1),r().start&&K(O,j(U),!0)),t.buttons.includes("next")&&(K(H,!1),r().end&&K(H,j(te),!0)),t.buttons.includes("today")&&(K(G,i()>=a().start&&i()<a().end,!0),!o(G)&&(r().start||r().end)&&K(G,j(z),!0)),Vr().then(()=>V=!1))})});function j(ne){let B=J(l());ne();let Ce=n().every(he=>ar(he,r()));return We(C,B),Ce}function U(){We(C,po(l(),s(),u()))}function te(){We(C,wo(l(),s()))}function z(){We(C,J(i()))}var Y=de(),se=Z(Y);le(se,17,()=>t.buttons,ce,(ne,B)=>{var Ce=de(),he=Z(Ce);{var ee=Pe=>{var Ae=Eu();Ye(Ae,()=>nt(f())),ue(()=>N(Ae,1,c().title)),x(Pe,Ae)},Be=Pe=>{var Ae=de(),ye=Z(Ae);{var Je=je=>{var S=Cu();S.__click=U;var re=fe(S);ue(()=>{N(S,1,`${c().button??""} ec-${o(B)??""}`),Ue(S,"aria-label",v().prev),Ue(S,"title",v().prev),S.disabled=o(O),N(re,1,`${c().icon??""} ec-${o(B)??""}`)}),x(je,S)},yt=je=>{var S=de(),re=Z(S);{var Oe=q=>{var ae=Tu();ae.__click=te;var Ge=fe(ae);ue(()=>{N(ae,1,`${c().button??""} ec-${o(B)??""}`),Ue(ae,"aria-label",v().next),Ue(ae,"title",v().next),ae.disabled=o(H),N(Ge,1,`${c().icon??""} ec-${o(B)??""}`)}),x(q,ae)},Re=q=>{var ae=de(),Ge=Z(ae);{var ct=Mt=>{var bt=xu();bt.__click=z;var mn=fe(bt);ue(()=>{N(bt,1,`${c().button??""} ec-${o(B)??""}`),bt.disabled=o(G),so(mn,v()[o(B)])}),x(Mt,bt)},Xt=Mt=>{var bt=de(),mn=Z(bt);{var Gn=ft=>{var it=Su();it.__click=function(...Ht){h()[o(B)].click?.apply(this,Ht)},Ye(it,()=>nt(h()[o(B)].text)),ue(()=>N(it,1,nn([c().button,`ec-${o(B)}`,h()[o(B)].active&&c().active]))),x(ft,it)},yn=ft=>{var it=de(),Ht=Z(it);{var bn=Ut=>{var Wt=Ru();Wt.__click=()=>We(P,o(B));var Tn=fe(Wt);ue(()=>{N(Wt,1,nn([c().button,`ec-${o(B)}`,_()===o(B)&&c().active])),so(Tn,v()[o(B)])}),x(Ut,Wt)};pe(Ht,Ut=>{o(B)!==""&&Ut(bn)},!0)}x(ft,it)};pe(mn,ft=>{h()[o(B)]?ft(Gn):ft(yn,!1)},!0)}x(Mt,bt)};pe(Ge,Mt=>{o(B)==="today"?Mt(ct):Mt(Xt,!1)},!0)}x(q,ae)};pe(re,q=>{o(B)==="next"?q(Oe):q(Re,!1)},!0)}x(je,S)};pe(ye,je=>{o(B)==="prev"?je(Je):je(yt,!1)},!0)}x(Pe,Ae)};pe(he,Pe=>{o(B)==="title"?Pe(ee):Pe(Be,!1)})}x(ne,Ce)}),x(e,Y),me(),y()}Dn(["click"]);var Lu=Q("<div><!></div>"),Mu=Q("<div></div>"),Pu=Q("<nav></nav>");function Iu(e,t){ge(t,!0);const n=()=>d(l,"$headerToolbar",i),r=()=>d(s,"$theme",i),[i,a]=De();let{headerToolbar:l,theme:s}=ke("state"),u=w(()=>{let f={};for(let v of["start","center","end"])f[v]=n()[v]?.split(" ").map(h=>h.split(","))??[];return f});var c=Pu();le(c,21,()=>_n(o(u)),ce,(f,v)=>{var h=Mu();le(h,21,()=>o(u)[o(v)],ce,(_,m)=>{var y=de(),g=Z(y);{var b=p=>{var $=Lu(),E=fe($);zo(E,{get buttons(){return o(m)}}),ue(()=>N($,1,r().buttonGroup)),x(p,$)},k=p=>{zo(p,{get buttons(){return o(m)}})};pe(g,p=>{o(m).length>1?p(b):p(k,!1)})}x(_,y)}),ue(()=>N(h,1,`ec-${o(v)??""}`)),x(f,h)}),ue(()=>N(c,1,r().toolbar)),x(e,c),me(),a()}function Au(e,t){ge(t,!0);const n=()=>d(m,"$_activeRange",c),r=()=>d(v,"$datesSet",c),i=()=>d(k,"$_view",c),a=()=>d(y,"$_filteredEvents",c),l=()=>d(h,"$eventAllUpdated",c),s=()=>d(b,"$_queue",c),u=()=>d(_,"$_auxiliary",c),[c,f]=De();let{datesSet:v,eventAllUpdated:h,_auxiliary:_,_activeRange:m,_filteredEvents:y,_tasks:g,_queue:b,_view:k}=ke("state");Qe(()=>{n(),W(()=>{$e(r())&&r()({start:Ze(n().start),end:Ze(n().end),startStr:Rt(n().start),endStr:Rt(n().end),view:mt(i())})})}),Qe(()=>{a(),W(()=>{$e(l())&&ru(()=>l()({view:mt(i())}),"eau",g)})}),Qe(()=>{s(),W(()=>{nu(s())})});var p=de(),$=Z(p);le($,1,u,ce,(E,C)=>{var D=de(),I=Z(D);Li(I,()=>o(C),(R,T)=>{T(R,{})}),x(E,D)}),x(e,p),me(),f()}var Ou=Q("<div><!> <!></div> <!>",1);function Fu(e,t){ge(t,!0);const n=()=>d($,"$_events",h),r=()=>d(k,"$_interaction",h),i=()=>d(E,"$date",h),a=()=>d(C,"$duration",h),l=()=>d(D,"$hiddenDays",h),s=()=>d(b,"$_viewComponent",h),u=()=>d(R,"$theme",h),c=()=>d(p,"$_iClass",h),f=()=>d(I,"$height",h),v=()=>d(T,"$view",h),[h,_]=De();let m=Se(t,"plugins",19,()=>[]),y=Se(t,"options",19,()=>({})),g=new Du(m(),y());zl("state",g);let{_viewComponent:b,_interaction:k,_iClass:p,_events:$,date:E,duration:C,hiddenDays:D,height:I,theme:R,view:T}=g,P={...y()};Qe(()=>{for(let[S,re]of du(y(),P))W(()=>{O(S,re)});ut(P,y())});function O(S,re){return g._set(S,re),this}function H(S){let re=g._get(S);return re instanceof Date?Ze(re):re}function G(){return g._fetchedRange.set({start:void 0,end:void 0}),this}function V(){return n().map(rt)}function j(S){for(let re of n())if(re.id==S)return rt(re);return null}function U(S){return S=Jr([S])[0],n().push(S),We($,n()),rt(S)}function te(S){let re=String(S.id),Oe=n().findIndex(Re=>Re.id===re);return Oe>=0?(S=Jr([S])[0],ze($,W(n)[Oe]=S,W(n)),rt(S)):null}function z(S){S=String(S);let re=n().findIndex(Oe=>Oe.id===S);return re>=0&&(n().splice(re,1),We($,n())),this}function Y(){return mt(wr(g._view))}function se(){return r().action?.unselect(),this}function ne(S,re){let Oe=rr(S,re);if(Oe){let Re=gn(Oe)(S,re);return Re.date=Ze(Re.date),Re}return null}function B(){return We(E,wo(i(),a())),this}function Ce(){return We(E,po(i(),a(),l())),this}let he=w(s);var ee={setOption:O,getOption:H,refetchEvents:G,getEvents:V,getEventById:j,addEvent:U,updateEvent:te,removeEventById:z,getView:Y,unselect:se,dateFromPoint:ne,next:B,prev:Ce},Be=Ou(),Pe=Z(Be);let Ae;var ye=fe(Pe);Iu(ye,{});var Je=ie(ye,2);Li(Je,()=>o(he),(S,re)=>{re(S,{})});var yt=ie(Pe,2);Au(yt,{}),ue(S=>{N(Pe,1,nn([u().calendar,u().view,c()&&u()[c()]])),Ue(Pe,"role",S),Ae=Yt(Pe,"",Ae,{height:f()})},[()=>xo(v())?"list":"table"]),x(e,Be);var je=me(ee);return _(),je}function Nu(e){return Ke(e.hiddenDays,t=>7-t.length)}var Hu=Q("<div><!></div>");function ni(e,t){ge(t,!0);const n=()=>d(g,"$_today",a),r=()=>d(k,"$theme",a),i=()=>d(y,"$_interaction",a),[a,l]=De();let s=Se(t,"el",15),u=Se(t,"allDay",3,!1),c=Se(t,"resource",3,void 0),f=Se(t,"dateFromPoint",3,()=>t.date),v=Se(t,"classes",3,pr),h=Se(t,"disabled",3,!1),_=Se(t,"highlight",3,!1),m=Se(t,"role",3,"cell"),{_interaction:y,_today:g,highlightedDates:b,theme:k}=ke("state"),p=w(()=>Dt(t.date,n())),$=w(()=>v()([r().day,r().weekdays?.[t.date.getUTCDay()],o(p)&&r().today,_()&&r().highlight,h()&&r().disabled]));tr(()=>{Eo(s(),(D,I)=>({allDay:u(),date:f()(D,I),resource:c(),dayEl:s(),disabled:h()}))});var E=Hu();E.__pointerdown=function(...D){(h()?void 0:i().action?.select)?.apply(this,D)};var C=fe(E);vn(C,()=>t.children??ht),gt(E,D=>s(D),()=>s()),ue(()=>{N(E,1,nn(o($))),Ue(E,"role",m())}),x(e,E),me(),l()}Dn(["pointerdown"]);var Uu=Q("<div></div>"),Wu=Q("<article><!></article>");function Bo(e,t){ge(t,!0);const n=()=>d(V,"$resources",g),r=()=>d(C,"$eventBackgroundColor",g),i=()=>d(D,"$eventColor",g),a=()=>d(G,"$eventTextColor",g),l=()=>d(j,"$theme",g),s=()=>d(P,"$eventClassNames",g),u=()=>d(U,"$_view",g),c=()=>d(E,"$displayEventEnd",g),f=()=>d(I,"$eventContent",g),v=()=>d(te,"$_intlEventTime",g),h=()=>d(T,"$eventDidMount",g),_=()=>d(R,"$eventClick",g),m=()=>d(O,"$eventMouseEnter",g),y=()=>d(H,"$eventMouseLeave",g),[g,b]=De();let k=Se(t,"el",15),p=Se(t,"classes",3,pr),$=Se(t,"styles",3,pr),{displayEventEnd:E,eventBackgroundColor:C,eventColor:D,eventContent:I,eventClick:R,eventDidMount:T,eventClassNames:P,eventMouseEnter:O,eventMouseLeave:H,eventTextColor:G,resources:V,theme:j,_view:U,_intlEventTime:te}=ke("state"),z=w(()=>t.chunk.event),Y=w(()=>t.chunk.event.display),se=w(()=>o(z).backgroundColor??lu(o(z),n())??r()??i()),ne=w(()=>o(z).textColor??su(o(z),n())??a()),B=w(()=>Ws($()({"background-color":o(se),color:o(ne)})).map(q=>`${q[0]}:${q[1]}`).concat(o(z).styles).join(";")),Ce=w(()=>p()([Ft(o(Y))?l().bgEvent:l().event,...Qs(s(),o(z),u())])),he=w(()=>Js(t.chunk,c(),f(),l(),v(),u())),ee=w(()=>_l(o(he),2)),Be=w(()=>o(ee)[0]),Pe=w(()=>o(ee)[1]);tr(()=>{$e(h())&&h()({event:rt(o(z)),timeText:o(Be),el:k(),view:mt(u())})});function Ae(q,ae){return!Qr(ae)&&$e(q)?Ge=>q({event:rt(o(z)),el:k(),jsEvent:Ge,view:mt(u())}):void 0}let ye=w(()=>!Ft(o(Y))&&Ae(_(),o(Y))||void 0),Je=w(()=>o(ye)&&Fi(o(ye))),yt=w(()=>Ae(m(),o(Y))),je=w(()=>Ae(y(),o(Y)));var S=Wu();S.__click=function(...q){o(ye)?.apply(this,q)},S.__keydown=function(...q){o(Je)?.apply(this,q)},S.__pointerdown=function(...q){t.onpointerdown?.apply(this,q)};{const q=ae=>{var Ge=Uu();Ye(Ge,()=>nt(o(Pe))),ue(()=>N(Ge,1,nn(l().eventBody))),x(ae,Ge)};var re=fe(S);{var Oe=ae=>{var Ge=de(),ct=Z(Ge);vn(ct,()=>t.body,()=>q,()=>o(se),()=>o(ne)),x(ae,Ge)},Re=ae=>{q(ae)};pe(re,ae=>{t.body?ae(Oe):ae(Re,!1)})}gt(S,ae=>k(ae),()=>k())}ue(()=>{N(S,1,nn(o(Ce))),Yt(S,o(B)),Ue(S,"role",o(ye)?"button":void 0),Ue(S,"tabindex",o(ye)?0:void 0)}),St("mouseenter",S,function(...q){o(yt)?.apply(this,q)}),St("mouseleave",S,function(...q){o(je)?.apply(this,q)}),x(e,S),me(),b()}Dn(["click","keydown","pointerdown"]);var zu=Q("<div><!></div>");function Er(e,t){ge(t,!0);const n=()=>d(h,"$theme",i),r=()=>d(v,"$_today",i),[i,a]=De();let l=Se(t,"weekday",3,!0),s=Se(t,"colSpan",3,1),u=Se(t,"ariaHidden",3,!1),c=Se(t,"disabled",3,!1),f=Se(t,"highlight",3,!1),{_today:v,theme:h}=ke("state");var _=zu(),m=fe(_);vn(m,()=>t.children),ue(y=>{N(_,1,y),Ue(_,"role",u()?null:"columnheader"),Ue(_,"aria-colspan",u()||s()<=1?null:s()),Ue(_,"aria-colindex",u()?null:t.colIndex),Ue(_,"aria-hidden",u()?"true":null)},[()=>nn([t.className??n().colHead,l()&&n().weekdays?.[t.date.getUTCDay()],l()&&Dt(t.date,r())&&n().today,f()&&n().highlight,c()&&n().disabled])]),x(e,_),me(),a()}var Bu=Q("<time></time>");function ri(e,t){ge(t,!0);const n=()=>d(u,"$_intlDayHeaderAL",i),r=()=>d(s,"$_intlDayHeader",i),[i,a]=De();let l=Se(t,"alPrefix",3,""),{_intlDayHeader:s,_intlDayHeaderAL:u}=ke("state");var c=Bu();Ye(c,()=>nt(r().format(t.date))),ue((f,v)=>{Ue(c,"datetime",f),Ue(c,"aria-label",`${l()??""}${v??""}`)},[()=>Rt(t.date,10),()=>n().format(t.date)]),x(e,c),me(),a()}function ii(e,t){ge(t,!0);const n=()=>d(u,"$_iClasses",i),r=()=>d(s,"$_interaction",i),[i,a]=De();let l=Se(t,"el",15),{_interaction:s,_iClasses:u}=ke("state"),c=w(()=>t.chunk.event),f=w(()=>t.chunk.event.display),v=w(()=>y=>n()(y,o(c)));function h(y){return r().action?.draggable(y)?g=>r().action.drag(y,g,t.forceDate,t.forceMargin):r().action?.noAction}let _=w(()=>!Ft(o(f))&&!Qr(o(f))?h(o(c)):void 0),m=w(()=>r().resizer);Bo(e,{get chunk(){return t.chunk},get classes(){return o(v)},get styles(){return t.styles},get onpointerdown(){return o(_)},get el(){return l()},set el(g){l(g)},body:(g,b=ht)=>{var k=de(),p=Z(k);{var $=C=>{var D=de(),I=Z(D);Li(I,()=>o(m),(R,T)=>{T(R,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(P,O)=>{var H=de(),G=Z(H);vn(G,b),x(P,H)},$$slots:{default:!0}})}),x(C,D)},E=C=>{var D=de(),I=Z(D);vn(I,b),x(C,D)};pe(p,C=>{o(m)?C($):C(E,!1)})}x(g,k)},$$slots:{body:!0}}),me(),a()}var Gu=Q("<span></span>"),Vu=Q('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),Yu=Q("<div><time></time> <!></div> <div><!></div>",1);function qu(e,t){ge(t,!0);const n=()=>d(h,"$date",f),r=()=>d(y,"$theme",f),i=()=>d(g,"$weekNumbers",f),a=()=>d(_,"$firstDay",f),l=()=>d(b,"$weekNumberContent",f),s=()=>d(k,"$_hiddenChunks",f),u=()=>d(m,"$moreLinkContent",f),c=()=>d(p,"$_intlDayCell",f),[f,v]=De();let{date:h,firstDay:_,moreLinkContent:m,theme:y,weekNumbers:g,weekNumberContent:b,_hiddenChunks:k,_intlDayCell:p,_popupDay:$}=ke("state"),E=w(()=>t.day.dayStart),C=w(()=>t.day.disabled),D=w(()=>t.day.highlight),I=w(()=>o(E).getUTCMonth()!==n().getUTCMonth()),R=w(()=>V=>[...V,o(I)&&r().otherMonth]),T=w(()=>i()&&o(E).getUTCDay()===(a()?1:0)),P=w(()=>{let V;if(o(T)){let j=Hs(o(E),a());l()?V=$e(l())?l()({date:Ze(o(E)),week:j}):l():V="W"+String(j).padStart(2,"0")}return V}),O=w(()=>s()[o(E).getTime()]),H=w(()=>{let V="";if(o(O)){let j="+"+o(O).length+" more";u()?V=$e(u())?u()({num:o(O).length,text:j}):u():V=j}return V});function G(){We($,t.day)}ni(e,{get date(){return o(E)},allDay:!0,get classes(){return o(R)},get disabled(){return o(C)},get highlight(){return o(D)},children:(V,j)=>{var U=Yu(),te=Z(U),z=fe(te);Ye(z,()=>nt(c().format(o(E))));var Y=ie(z,2);{var se=he=>{var ee=Gu();Ye(ee,()=>nt(o(P))),ue(()=>N(ee,1,r().weekNumber)),x(he,ee)};pe(Y,he=>{o(T)&&he(se)})}var ne=ie(te,2),B=fe(ne);{var Ce=he=>{var ee=Vu(),Be=w(()=>Wi(G));ee.__click=function(...ye){o(Be)?.apply(this,ye)};var Pe=w(()=>Fi(G));ee.__keydown=function(...ye){o(Pe)?.apply(this,ye)};var Ae=w(Wi);ee.__pointerdown=function(...ye){o(Ae)?.apply(this,ye)},Ye(ee,()=>nt(o(H))),x(he,ee)};pe(B,he=>{o(O)&&he(Ce)})}ue(he=>{N(te,1,r().dayHead),Ue(z,"datetime",he),N(ne,1,r().dayFoot)},[()=>Rt(o(E),10)]),x(V,U)},$$slots:{default:!0}}),me(),v()}Dn(["click","keydown","pointerdown"]);function ai(e,t){ge(t,!0);const n=()=>d(c,"$_colsCount",l),r=()=>d(h,"$dayMaxEvents",l),i=()=>d(f,"$_hiddenChunks",l),a=()=>d(v,"$_popupDay",l),[l,s]=De();let u=Se(t,"inPopup",3,!1),{_colsCount:c,_hiddenChunks:f,_popupDay:v,dayMaxEvents:h}=ke("state"),_=Te(void 0),m=Te(0),y=Te(!1),g=w(()=>t.chunk.event),b=w(()=>t.chunk.event.display),k=w(()=>t.gridEl?.children.item((t.chunk.gridRow-1)*n()+t.chunk.gridColumn-1));Qe(()=>{o(k)&&K(m,zn(o(k).firstElementChild),!0)});let p=w(()=>R=>{if(R["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,R["grid-row"]=t.chunk.gridRow,!Ft(o(b))){let T=u()?1:o(m);if(o(g)._margin){let[P,O]=o(g)._margin;P>T&&t.chunk.gridRow===O&&(T=P)}R["margin-block-start"]=`${T}px`}return o(y)&&(R.visibility="hidden"),R});function $(){K(m,Mo(t.chunk,zn(o(_)),zn(o(k).firstElementChild)),!0)}function E(){if(r()===!0){let R=zn(o(k))-C(o(k));if(K(y,t.chunk.bottom>R),o(y))for(let T of t.chunk.dates){let P=T.getTime();i()[P]?i()[P].includes(t.chunk)||ze(f,W(i)[P]=[...i()[P],t.chunk],W(i)):ze(f,W(i)[P]=[t.chunk],W(i))}}else K(y,!1),Gs(i())||We(f,{})}function C(R){let T=0;for(let P=0;P<t.chunk.dates.length&&(T=Lt(T,zn(R.lastElementChild)),R=R.nextElementSibling,!!R);++P);return T}var D={reposition:$,hide:E};{let R=w(()=>u()&&a().dayStart),T=w(()=>[o(m),t.chunk.gridRow]);ii(e,{get chunk(){return t.chunk},get styles(){return o(p)},axis:"x",get forceDate(){return o(R)},get forceMargin(){return o(T)},get el(){return o(_)},set el(P){K(_,P,!0)}})}var I=me(D);return s(),I}var Xu=Q('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function Ku(e,t){ge(t,!0);const n=()=>d(_,"$_popupDay",u),r=()=>d(f,"$_colsCount",u),i=()=>d(v,"$_interaction",u),a=()=>d(y,"$theme",u),l=()=>d(h,"$_intlDayPopover",u),s=()=>d(m,"$buttonText",u),[u,c]=De();let{_colsCount:f,_interaction:v,_intlDayPopover:h,_popupDay:_,buttonText:m,theme:y}=ke("state"),g=Te(void 0),b=Te(""),k=w(()=>n().gridColumn),p=w(()=>n().gridRow),$=w(()=>n().dayStart),E=w(()=>n().dayEnd),C=w(()=>{let te=[];for(let z of t.chunks)z.gridRow===o(p)&&z.gridColumn<=o(k)&&z.gridColumn+z.dates.length>o(k)&&te.push(ut({},z,kr(z.event,o($),o(E))));return te.sort((z,Y)=>z.top-Y.top),te});tr(()=>{o(g).show()}),Qe(()=>{o(C).length?W(D):I()});function D(){let te=t.gridEl.children.item((o(p)-1)*r()+o(k)-1),z=Cn(o(g)),Y=Cn(te),se=Cn(t.gridEl);K(b,"");let ne;if(z.width>=se.width){ne=se.left-Y.left;let Ce=Y.right-se.right;K(b,o(b)+`inset-inline-end:${Ce}px;`)}else ne=(Y.width-z.width)/2,Y.left+ne<se.left?ne=se.left-Y.left:Y.left+ne+z.width>se.right&&(ne=se.right-Y.left-z.width);K(b,o(b)+`inset-inline-start:${ne}px;`);let B;if(z.height>=se.height){B=se.top-Y.top;let Ce=Y.bottom-se.bottom;K(b,o(b)+`inset-block-end:${Ce}px;`)}else B=(Y.height-z.height)/2,Y.top+B<se.top?B=se.top-Y.top:Y.top+B+z.height>se.bottom&&(B=se.bottom-Y.top-z.height);K(b,o(b)+`inset-block-start:${B}px;`)}function I(){We(_,null)}function R(){I(),i().action?.noClick()}var T=Xu();let P;var O=fe(T),H=fe(O);Ye(H,()=>nt(l().format(o($))));var G=ie(H,2);is(G);var V=w(()=>Wi(I));G.__click=function(...te){o(V)?.apply(this,te)};var j=w(()=>Fi(I));G.__keydown=function(...te){o(j)?.apply(this,te)};var U=ie(O,2);le(U,21,()=>o(C),ce,(te,z)=>{ai(te,{get chunk(){return o(z)},inPopup:!0})}),gt(T,te=>K(g,te),()=>o(g)),Ye(T,()=>Fs("pointerdown")),ue(te=>{N(T,1,a().popup),P=Yt(T,o(b),P,{"grid-area":`${o(p)+1} / ${o(k)}`}),N(O,1,a().dayHead),Ue(H,"datetime",te),Ue(G,"aria-label",s().close),N(U,1,a().events)},[()=>Rt(o($),10)]),St("pointerdownoutside",T,R),St("close",T,I),x(e,T),me(),c()}Dn(["click","keydown"]);function Zu(e,t,n,r){let i=[],a=[],l=1,s=1;for(let u of e)a.push({gridColumn:l,gridRow:s,resource:void 0,dayStart:u,dayEnd:qt(J(u)),disabled:ar(u,n),highlight:r.some(c=>Dt(c,u))}),l===t&&(i.push(a),a=[],l=0,++s),++l;return i}function Ju(e,t){let n=[],r=[];for(let i of e)for(let a of t)Ft(i.display)?i.allDay&&(r=r.concat(ir(i,a))):n=n.concat(ir(i,a));return Lo(n),{chunks:n,bgChunks:r}}function Qu(e,t){let n=[];for(let r of e)if(r)for(let i of t)n=n.concat(ir(r,i));return n}var ju=Q('<div role="columnheader"><span></span></div>'),ec=Q('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function tc(e,t){ge(t,!0);const n=()=>d(R,"$_viewDates",y),r=()=>d(k,"$_colsCount",y),i=()=>d(H,"$validRange",y),a=()=>d(P,"$highlightedDates",y),l=()=>d(p,"$_filteredEvents",y),s=()=>d(E,"$_iEvents",y),u=()=>d($,"$_hiddenChunks",y),c=()=>d(b,"$_mainEl",y),f=()=>d(O,"$theme",y),v=()=>d(T,"$dayMaxEvents",y),h=()=>d(D,"$_intlDayHeaderAL",y),_=()=>d(C,"$_intlDayHeader",y),m=()=>d(I,"$_popupDay",y),[y,g]=De();let{_mainEl:b,_colsCount:k,_filteredEvents:p,_hiddenChunks:$,_iEvents:E,_intlDayHeader:C,_intlDayHeaderAL:D,_popupDay:I,_viewDates:R,dayMaxEvents:T,highlightedDates:P,theme:O,validRange:H}=ke("state"),G=Te(void 0),V=w(()=>Zu(n(),r(),i(),a())),j=w(()=>Ju(l(),o(V))),U=w(()=>o(j).chunks),te=w(()=>o(j).bgChunks),z=w(()=>Qu(s(),o(V))),Y=[];function se(){We($,{}),Vi(Y,o(U))}Qe(se),Qe(()=>{u(),Y.forEach(S=>S.hide())});var ne=ec();let B;var Ce=fe(ne),he=fe(Ce);le(he,21,()=>o(V)[0],ce,(S,re,Oe)=>{let Re=()=>o(re).dayStart;var q=ju();Ue(q,"aria-colindex",1+Oe);var ae=fe(q);Ye(ae,()=>nt(_().format(Re()))),ue((Ge,ct)=>{N(q,1,Ge),Ue(ae,"aria-label",ct)},[()=>nn([f().colHead,f().weekdays?.[Re().getUTCDay()]]),()=>h().format(Re())]),x(S,q)});var ee=ie(Ce,2),Be=fe(ee);le(Be,21,()=>o(V),ce,(S,re)=>{var Oe=de(),Re=Z(Oe);le(Re,17,()=>o(re),ce,(q,ae)=>{qu(q,{get day(){return o(ae)}})}),x(S,Oe)}),gt(Be,S=>K(G,S),()=>o(G));var Pe=ie(Be,2),Ae=fe(Pe);le(Ae,17,()=>o(U),ce,(S,re,Oe)=>{gt(ai(S,{get chunk(){return o(re)},get gridEl(){return o(G)}}),(Re,q)=>Y[q]=Re,Re=>Y?.[Re],()=>[Oe])});var ye=ie(Ae,2);le(ye,17,()=>o(te),ce,(S,re)=>{ai(S,{get chunk(){return o(re)}})});var Je=ie(ye,2);le(Je,17,()=>o(z),ce,(S,re)=>{ai(S,{get chunk(){return o(re)},get gridEl(){return o(G)}})});var yt=ie(ee,2);{var je=S=>{Ku(S,{get gridEl(){return o(G)},get chunks(){return o(U)}})};pe(yt,S=>{m()&&S(je)})}gt(ne,S=>We(b,S),()=>c()),Ye(ne,()=>Ni(se)),ue(()=>{N(ne,1,nn([f().main,v()===!0&&f().uniform])),B=Yt(ne,"",B,{"--ec-grid-cols":o(V)[0].length,"--ec-grid-rows":o(V).length}),N(Ce,1,f().header),N(he,1,f().grid),N(ee,1,f().body),N(Be,1,f().grid),N(Pe,1,f().events)}),x(e,ne),me(),g()}const nc={createOptions(e){e.dayMaxEvents=!1,e.dayCellFormat={day:"numeric"},e.dayPopoverFormat={month:"long",day:"numeric",year:"numeric"},e.moreLinkContent=void 0,e.weekNumbers=!1,e.weekNumberContent=void 0,e.buttonText.dayGridMonth="month",e.buttonText.close="Close",e.theme.uniform="ec-uniform",e.theme.dayFoot="ec-day-foot",e.theme.otherMonth="ec-other-month",e.theme.popup="ec-popup",e.theme.weekNumber="ec-week-number",e.view="dayGridMonth",e.views.dayGridMonth={buttonText:Yi,component:tc,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:Nt("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(e){e._colsCount=Nu(e),e._intlDayCell=Bn(e.locale,e.dayCellFormat),e._intlDayPopover=Bn(e.locale,e.dayPopoverFormat),e._hiddenChunks=st({}),e._popupDay=st(null)}};function Go(e,t,n){return e.startEditable??t??e.editable??n}function rc(e,t,n){return e.durationEditable??t??e.editable??n}let Ki=!1;function ic(e){Ki||(Ki=!0,window.requestAnimationFrame(()=>{e(),Ki=!1}))}function Vo(e,t,n){return Lt(t,on(n,e))}Wl();function ac(e,t){ge(t,!1);const n=()=>d(Pe,"$eventStartEditable",U),r=()=>d(Be,"$editable",U),i=()=>d(mn,"$slotDuration",U),a=()=>d(ae,"$selectable",U),l=()=>d(Ht,"$view",U),s=()=>d(B,"$_mainEl",U),u=()=>d(Mt,"$selectLongPressDelay",U),c=()=>d(je,"$eventLongPressDelay",U),f=()=>d(Re,"$longPressDelay",U),v=()=>d(bt,"$selectMinDistance",U),h=()=>d(Ae,"$eventDragMinDistance",U),_=()=>d(z,"$_iEvents",U),m=()=>d(S,"$eventResizeStart",U),y=()=>d(ye,"$eventDragStart",U),g=()=>d(q,"$resizeConstraint",U),b=()=>d(Xt,"$selectConstraint",U),k=()=>d(he,"$dragConstraint",U),p=()=>d(ee,"$dragScroll",U),$=()=>d(yn,"$unselectAuto",U),E=()=>d(ft,"$unselectCancel",U),C=()=>d(Ge,"$selectFn",U),D=()=>d(re,"$eventResizeStop",U),I=()=>d(Je,"$eventDragStop",U),R=()=>d(ne,"$_view",U),T=()=>d(Oe,"$eventResize",U),P=()=>d(yt,"$eventDrop",U),O=()=>d(Ce,"$dateClick",U),H=()=>d(it,"$validRange",U),G=()=>d(se,"$_events",U),V=()=>d(ct,"$selectBackgroundColor",U),j=()=>d(Gn,"$unselectFn",U),[U,te]=De();let{_iEvents:z,_iClass:Y,_events:se,_view:ne,_mainEl:B,dateClick:Ce,dragConstraint:he,dragScroll:ee,editable:Be,eventStartEditable:Pe,eventDragMinDistance:Ae,eventDragStart:ye,eventDragStop:Je,eventDrop:yt,eventLongPressDelay:je,eventResizeStart:S,eventResizeStop:re,eventResize:Oe,longPressDelay:Re,resizeConstraint:q,selectable:ae,select:Ge,selectBackgroundColor:ct,selectConstraint:Xt,selectLongPressDelay:Mt,selectMinDistance:bt,slotDuration:mn,unselect:Gn,unselectAuto:yn,unselectCancel:ft,validRange:it,view:Ht}=ke("state");const bn=1,Ut=2,Wt=3,Tn=4,Vn=5,ve=6;let A,X,M,_e,be,Le,qe,kt,wt,dt,Ve,Ie,Kt,Zt,Pt,zt,si,Xe,ui,ci,oa,Cr=pi(),pt,Tr,or;function jo(L){return Go(L,n(),r())}function el(L,F,Fe,oe){A||(A=ua(F)?bn:ve,Yn()&&(M=L,la(F),Fe&&(be=Fe),oe&&(Tr=oe),si="dragging",lr(F)))}function tl(L,F,Fe,oe,Jt,Mr,fa){A||(A=ua(F)?Fe?Wt:Ut:ve,Yn()&&(M=L,la(F),Jt&&(be=Jt),Mr&&(Tr=Mr),si=oe==="x"?"resizingX":"resizingY",fi()?(Xe=J(M.end),zt?(Hi(Xe,M.start),Xe>=M.end&&nr(Xe)):(Zr(Xe,i()),Xe<M.start&&(Xe=M.start),be=M.start)):(Xe=J(M.start),zt?(Hi(Xe,M.end),Xe<=M.start&&!fa&&qt(Xe)):(Me(Xe,i()),Xe>M.end&&(Xe=M.end),be=M.end,fa||(be=Zr(J(be),i()))),fa&&!zt&&(or=i())),lr(F)))}function nl(L){A||(A=ua(L)?a()&&!xo(l())?Tn:Vn:ve,Yn()&&(la(L),si="selecting",ui=zt?et({day:1}):i(),M={allDay:zt,start:be,end:Me(J(be),ui),resourceIds:qe?[qe.id]:[]},lr(L)))}function rl(){A||(A=ve)}function la(L){window.getSelection().removeAllRanges(),wt=Ve=L.clientX,dt=Ie=L.clientY;let F=rr(Ve,Ie);({allDay:zt,date:be,resource:qe}=gn(F)(Ve,Ie)),Zt=s()!==To(F,3),Kt=To(F,1),al(),L.pointerType!=="mouse"&&K(Cr,setTimeout(()=>{A&&(X=!0,lr(L))},(xn()?u():c())??f()))}function lr(L){if(X||L&&L.pointerType==="mouse"&&gf()>=(xn()?v():h())){X=!0,Lr(L),We(Y,si),_()[0]||(xn()?_f():vf(L,Rr()?m():y()));let F=xr(hf());if(F){let Fe;if({allDay:Fe,date:Le,resource:kt}=F,Fe===zt){let oe=Sr({},_()[0]),Jt=g();Pt=et((Le-be)/1e3),fi()?(oe.start=Me(J(M.start),Pt),oe.start>Xe&&(oe.start=Xe,Pt=et((Xe-M.start)/1e3))):(oe.end=Me(J(M.end),Pt),or&&Me(oe.end,or),Rr()?oe.end<Xe&&(oe.end=Xe,Pt=et((Xe-M.end)/1e3)):xn()?(oe.end<M.end?(oe.start=Zr(oe.end,ui),oe.end=M.end):oe.start=M.start,Jt=b()):(oe.start=Me(J(M.start),Pt),qe&&(oe.resourceIds=M.resourceIds.filter(Mr=>Mr!==qe.id),oe.resourceIds.push(kt.id)),Jt=k()));do{if(Jt!==void 0&&(oe=Sr(Gi(M),oe),Jt(xn()?sl(oe,L):ul(oe,M,L))===!1)){ze(z,W(_)[0]=Sr(_()[0],M),W(_));break}ze(z,W(_)[0]=Sr(_()[0],oe),W(_))}while(!1)}}}if(p()){let F=24,Fe=24;ic(()=>{pt&&(Zt||(Ie<pt.top+F&&ze(B,W(s).scrollTop+=Lt(-8,(Ie-pt.top-F)/3),W(s)),Ie>pt.bottom-F&&ze(B,W(s).scrollTop+=on(8,(Ie-pt.bottom+F)/3),W(s))),Ve<pt.left+Fe&&ze(B,W(s).scrollLeft+=Lt(-8,(Ve-pt.left-Fe)/3),W(s)),Ve>pt.right-Fe&&ze(B,W(s).scrollLeft+=on(8,(Ve-pt.right+Fe)/3),W(s)),Ie<F&&window.scrollBy(0,Lt(-8,(Ie-F)/3)),Ie>window.innerHeight-F&&window.scrollBy(0,on(8,(Ie-window.innerHeight+F)/3)))})}}function sa(){Yn()&&(al(),lr())}function df(L){Yn()&&L.isPrimary&&(Ve=L.clientX,Ie=L.clientY,lr(L))}function il(L){if(ci&&$()&&!(E()&&L.target.closest(E()))&&Lr(L),A&&L.isPrimary){if(X)if(xn()){if(ci=!0,$e(C())){let F=sl(_()[0],L);C()(F)}}else{M.display=_e;let F=Rr()?D():I();$e(F)&&F({event:rt(M),jsEvent:L,view:mt(R())});let Fe=Gi(M);if(ll(M,_()[0]),ol(),F=Rr()?T():P(),$e(F)){let oe=M,Jt=ul(M,Fe,L);F(ut(Jt,{revert(){ll(oe,Fe)}}))}}else if((mf()||xn())&&$e(O())&&!oa){Ve=L.clientX,Ie=L.clientY;let F=rr(Ve,Ie);if(F){let{allDay:Fe,date:oe,resource:Jt}=gn(F)(Ve,Ie);O()({allDay:Fe,date:Ze(oe),dateStr:Rt(oe),dayEl:F,jsEvent:L,view:mt(R()),resource:Jt})}}X=!1,A=wt=dt=Ve=Ie=M=_e=be=Le=qe=kt=Pt=or=zt=We(Y,Xe=ui=Tr=Kt=pt=void 0),o(Cr)&&(clearTimeout(o(Cr)),K(Cr,void 0))}oa=!1}function hf(){return rr(Vo(Ve,pt.left,pt.right),Vo(Ie,pt.top,pt.bottom))}function xr(L){if(L){let F=gn(L)(Ve,Ie);if(F.disabled){if(!H().end||F.date<H().end)return xr(L.nextElementSibling);if(!H().start||F.date>H().start)return xr(L.previousElementSibling)}else return xn()&&F.resource&&!_()[0].resourceIds.includes(F.resource.id)?Ve>wt?xr(L.previousElementSibling):xr(L.nextElementSibling):F}return null}function al(){let L=Cn(s()),F=Cn(Kt);pt={left:Lt(0,F.left+s().scrollLeft),right:on(document.documentElement.clientWidth,L.left+s().clientWidth)-2,top:Lt(0,F.top+(Zt?0:s().scrollTop)),bottom:on(document.documentElement.clientHeight,Zt?F.bottom:L.top+s().clientHeight)-2}}function vf(L,F){$e(F)&&F({event:rt(M),jsEvent:L,view:mt(R())}),_e=M.display,M.display="preview",ze(z,W(_)[0]=Gi(M),W(_)),Tr!==void 0&&ze(z,W(_)[0]._margin=Tr,W(_)),or&&Me(_()[0].end,or),M.display="ghost",We(se,G())}function _f(){ze(z,W(_)[0]={id:"{select}",allDay:M.allDay,start:M.start,title:"",display:"preview",extendedProps:{},backgroundColor:V(),resourceIds:M.resourceIds,classNames:[],styles:[]},W(_))}function ol(){ze(z,W(_)[0]=null,W(_))}function Sr(L,F){return L.start=F.start,L.end=F.end,L.resourceIds=F.resourceIds,L}function ll(L,F){Sr(L,F),We(se,G())}function sl(L,F){let{start:Fe,end:oe}=rt(L);return{start:Fe,end:oe,startStr:Rt(L.start),endStr:Rt(L.end),allDay:zt,view:mt(R()),resource:qe,jsEvent:F}}function ul(L,F,Fe){let oe;return Rr()?oe=fi()?{startDelta:Pt,endDelta:et(0)}:{startDelta:et(0),endDelta:Pt}:oe={delta:Pt,oldResource:qe!==kt?qe:void 0,newResource:qe!==kt?kt:void 0},ut(oe,{event:rt(L),oldEvent:rt(F),view:mt(R()),jsEvent:Fe}),oe}function gf(){return Math.sqrt(Math.pow(Ve-wt,2)+Math.pow(Ie-dt,2))}function Rr(){return A===Ut||fi()}function fi(){return A===Wt}function mf(){return A===Vn}function xn(){return A===Tn}function Yn(){return A&&A<Vn}function ua(L){return L.isPrimary&&(L.pointerType!=="mouse"||L.buttons&1)}function Lr(L){ci&&(ci=!1,ol(),$e(j())&&j()({jsEvent:L,view:mt(R())}))}function cl(){oa=!0}ne.subscribe(Lr);function yf(L){if(Yn()){let F=L.target,Fe=[],oe=()=>ko(Fe);Fe.push($r(F,"touchmove",ca(()=>X))),Fe.push($r(F,"touchend",oe)),Fe.push($r(F,"touchcancel",oe))}}function ca(L){return F=>{L()&&F.preventDefault()}}tr(()=>$r(window,"touchmove",Ys,{passive:!1}));var bf={draggable:jo,drag:el,resize:tl,select:nl,noAction:rl,handleScroll:sa,unselect:Lr,noClick:cl};Ps(),St("pointermove",Gt,df),St("pointerup",Gt,il),St("pointercancel",Gt,il),St("scroll",Gt,sa);var wf=w(()=>ca(Yn));St("selectstart",Gt,function(...L){o(wf)?.apply(this,L)});var pf=w(()=>ca(()=>o(Cr)));St("contextmenu",Gt,function(...L){o(pf)?.apply(this,L)}),St("touchstart",Gt,yf,void 0,!0),En(t,"draggable",jo),En(t,"drag",el),En(t,"resize",tl),En(t,"select",nl),En(t,"noAction",rl),En(t,"handleScroll",sa),En(t,"unselect",Lr),En(t,"noClick",cl);var $f=me(bf);return te(),$f}function oc(e,t){ge(t,!0);const n=()=>d(l,"$_iEvents",i),r=()=>d(s,"$slotDuration",i),[i,a]=De();let{_iEvents:l,slotDuration:s}=ke("state"),u=0,c=0;Qe(()=>{n()[0]&&m()});function f(){let k=rr(u,c);if(k){let{allDay:p,date:$,resource:E,disabled:C}=gn(k)(u,c);if(!C){n()[1]||_(),ze(l,W(n)[1].allDay=p,W(n)),ze(l,W(n)[1].start=$,W(n)),ze(l,W(n)[1].end=Me(J($),r()),W(n)),ze(l,W(n)[1].resourceIds=E?[E.id]:[],W(n));return}}m()}function v(){f()}function h(k){y(k)&&(u=k.clientX,c=k.clientY,f())}function _(){ze(l,W(n)[1]={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]},W(n))}function m(){n()[1]&&ze(l,W(n)[1]=null,W(n))}function y(k){return k.isPrimary&&k.pointerType==="mouse"}var g={handleScroll:v};St("pointermove",Gt,h),St("scroll",Gt,v);var b=me(g);return a(),b}var lc=Q("<div></div>"),sc=Q("<div></div>"),uc=Q("<!> <!> <!>",1);function cc(e,t){ge(t,!0);const n=()=>d(h,"$eventDurationEditable",s),r=()=>d(m,"$editable",s),i=()=>d(y,"$_interaction",s),a=()=>d(_,"$eventResizableFromStart",s),l=()=>d(v,"$theme",s),[s,u]=De();let c=Se(t,"forceDate",3,void 0),f=Se(t,"forceMargin",3,void 0),{theme:v,eventDurationEditable:h,eventResizableFromStart:_,editable:m,_interaction:y}=ke("state"),g=w(()=>t.chunk.event),b=w(()=>t.chunk.event.display),k=w(()=>!Ft(o(b))&&!Qr(o(b))&&rc(o(g),n(),r()));function p(T){return P=>i().action.resize(o(g),P,T,t.axis,c(),f(),t.chunk.zeroDuration)}var $=uc(),E=Z($);{var C=T=>{var P=lc(),O=w(()=>p(!0));P.__pointerdown=function(...H){o(O)?.apply(this,H)},ue(()=>N(P,1,`${l().resizer??""} ${l().start??""}`)),x(T,P)};pe(E,T=>{o(k)&&a()&&T(C)})}var D=ie(E,2);vn(D,()=>t.children);var I=ie(D,2);{var R=T=>{var P=sc(),O=w(()=>p(!1));P.__pointerdown=function(...H){o(O)?.apply(this,H)},ue(()=>N(P,1,l().resizer)),x(T,P)};pe(I,T=>{o(k)&&T(R)})}x(e,$),me(),u()}Dn(["pointerdown"]);var fc=Q("<!> <!>",1);function dc(e,t){ge(t,!0);const n=()=>d(y,"$_interaction",u),r=()=>d(f,"$theme",u),i=()=>d(h,"$eventStartEditable",u),a=()=>d(v,"$editable",u),l=()=>d(m,"$_mainEl",u),s=()=>d(_,"$pointer",u),[u,c]=De();let{theme:f,editable:v,eventStartEditable:h,pointer:_,_mainEl:m,_interaction:y,_iClasses:g}=ke("state");ze(y,W(n).resizer=cc,W(n)),Qe(()=>{r(),i(),a(),We(g,(C,D)=>{let{display:I}=D;return[...C,Qr(I)?[r()[I]]:!Ft(I)&&Go(D,i(),a())?[r().draggable]:[]]})}),Qe(()=>{if(l())return $r(l(),"scroll",b)});function b(){for(let C of Object.values(n()))C?.handleScroll?.()}var k=fc(),p=Z(k);gt(ac(p,{}),C=>ze(y,W(n).action=C,W(n)),()=>n()?.action);var $=ie(p,2);{var E=C=>{gt(oc(C,{}),D=>ze(y,W(n).pointer=D,W(n)),()=>n()?.pointer)};pe($,C=>{s()&&C(E)})}x(e,k),me(),c()}const hc={createOptions(e){e.dateClick=void 0,e.dragConstraint=void 0,e.dragScroll=!0,e.editable=!1,e.eventDragMinDistance=5,e.eventDragStart=void 0,e.eventDragStop=void 0,e.eventDrop=void 0,e.eventDurationEditable=!0,e.eventLongPressDelay=void 0,e.eventResizableFromStart=!1,e.eventResizeStart=void 0,e.eventResizeStop=void 0,e.eventResize=void 0,e.eventStartEditable=!0,e.longPressDelay=1e3,e.pointer=!1,e.resizeConstraint=void 0,e.select=void 0,e.selectBackgroundColor=void 0,e.selectConstraint=void 0,e.selectLongPressDelay=void 0,e.selectMinDistance=5,e.unselect=void 0,e.unselectAuto=!0,e.unselectCancel="",e.theme.draggable="ec-draggable",e.theme.ghost="ec-ghost",e.theme.preview="ec-preview",e.theme.pointer="ec-pointer",e.theme.resizer="ec-resizer",e.theme.start="ec-start",e.theme.dragging="ec-dragging",e.theme.resizingY="ec-resizing-y",e.theme.resizingX="ec-resizing-x",e.theme.selecting="ec-selecting"},createStores(e){e._auxiliary.update(t=>[...t,dc])}};var vc=Q("<div></div> <!>",1);function _c(e,t){ge(t,!0);const n=()=>d(s,"$_interaction",i),r=()=>d(l,"$theme",i),[i,a]=De();let{theme:l,_interaction:s}=ke("state"),u=w(()=>c=>(delete c["background-color"],delete c.color,c));{const c=(v,h=ht,_=ht,m=ht)=>{var y=vc(),g=Z(y);let b;var k=ie(g,2);vn(k,h),ue(()=>{N(g,1,r().eventTag),b=Yt(g,"",b,{"background-color":_()})}),x(v,y)};let f=w(()=>n().action?.noAction);Bo(e,{get chunk(){return t.chunk},get styles(){return o(u)},get onpointerdown(){return o(f)},body:c,$$slots:{body:!0}})}me(),a()}var gc=Q("<h4><time></time> <time></time></h4> <!>",1);function mc(e,t){ge(t,!0);const n=()=>d(_,"$highlightedDates",u),r=()=>d(y,"$validRange",u),i=()=>d(f,"$_filteredEvents",u),a=()=>d(m,"$theme",u),l=()=>d(v,"$_intlListDay",u),s=()=>d(h,"$_intlListDaySide",u),[u,c]=De();let{_filteredEvents:f,_intlListDay:v,_intlListDaySide:h,highlightedDates:_,theme:m,validRange:y}=ke("state"),g=w(()=>n().some(D=>Dt(D,t.date))),b=w(()=>ar(t.date,r())),k=w(()=>Rt(t.date,10)),p=w(()=>{let D=[];if(!o(b)){let I=t.date,R=qt(J(t.date));for(let T of i())if(!Ft(T.display)&&Dr(T,I,R)){let P=kr(T,I,R);D.push(P)}}return D});var $=de(),E=Z($);{var C=D=>{ni(D,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return o(b)},get highlight(){return o(g)},children:(I,R)=>{var T=gc(),P=Z(T),O=fe(P);Ye(O,()=>nt(l().format(t.date)));var H=ie(O,2);Ye(H,()=>nt(s().format(t.date)));var G=ie(P,2);le(G,17,()=>o(p),V=>V.event,(V,j)=>{_c(V,{get chunk(){return o(j)}})}),ue(()=>{N(P,1,a().dayHead),Ue(O,"datetime",o(k)),N(H,1,a().daySide),Ue(H,"datetime",o(k))}),x(I,T)},$$slots:{default:!0}})};pe(E,D=>{o(p).length&&D(C)})}x(e,$),me(),c()}var yc=Q("<div></div>"),bc=Q("<section><!></section>");function oi(e,t){ge(t,!0);const n=()=>d(m,"$_viewDates",c),r=()=>d(h,"$_filteredEvents",c),i=()=>d(g,"$noEventsContent",c),a=()=>d(y,"$noEventsClick",c),l=()=>d(_,"$_view",c),s=()=>d(v,"$_mainEl",c),u=()=>d(b,"$theme",c),[c,f]=De();let{_mainEl:v,_filteredEvents:h,_view:_,_viewDates:m,noEventsClick:y,noEventsContent:g,theme:b}=ke("state"),k=w(()=>{let R=!0;if(n().length){let T=n()[0],P=qt(J(n().at(-1)));for(let O of r())if(!Ft(O.display)&&O.start<P&&O.end>T){R=!1;break}}return R}),p=w(()=>$e(i())?i()():i());function $(R){$e(a())&&a()({jsEvent:R,view:mt(l())})}var E=bc(),C=fe(E);{var D=R=>{var T=yc();T.__click=$,Ye(T,()=>nt(o(p))),ue(()=>N(T,1,u().noEvents)),x(R,T)},I=R=>{var T=de(),P=Z(T);le(P,1,n,ce,(O,H)=>{mc(O,{get date(){return o(H)}})}),x(R,T)};pe(C,R=>{o(k)?R(D):R(I,!1)})}gt(E,R=>We(v,R),()=>s()),ue(()=>N(E,1,u().main)),x(e,E),me(),f()}Dn(["click"]);const wc={createOptions(e){e.buttonText.listDay="list",e.buttonText.listWeek="list",e.buttonText.listMonth="list",e.buttonText.listYear="list",e.listDayFormat={weekday:"long"},e.listDaySideFormat={year:"numeric",month:"long",day:"numeric"},e.noEventsClick=void 0,e.noEventsContent="No events",e.theme.daySide="ec-day-side",e.theme.eventTag="ec-event-tag",e.theme.noEvents="ec-no-events",e.view="listWeek",e.views.listDay={buttonText:jr,component:oi,duration:{days:1},theme:Nt("ec-list ec-day-view")},e.views.listWeek={buttonText:ei,component:oi,duration:{weeks:1},theme:Nt("ec-list ec-week-view")},e.views.listMonth={buttonText:Yi,component:oi,duration:{months:1},theme:Nt("ec-list ec-month-view")},e.views.listYear={buttonText:iu,component:oi,duration:{years:1},theme:Nt("ec-list ec-year-view")}},createStores(e){e._intlListDay=Bn(e.locale,e.listDayFormat),e._intlListDaySide=Bn(e.locale,e.listDaySideFormat)}};function Yo(e){"allDaySlot"in e||ut(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0})}function Zi(e){"scrollTime"in e||(ut(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"}),ut(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function Ji(e){"scrollTime"in e||ut(e,{scrollTime:et,slotDuration:et,slotLabelInterval:t=>t!==void 0?et(t):void 0,slotMaxTime:et,slotMinTime:et})}function pc(e){return Ke([e.slotMinTime,e.slotMaxTime,e.flexibleSlotTimeLimits,e._viewDates,e._filteredEvents],t=>No(...t))}function $c(e){return Ke([e.slotDuration,e.slotLabelInterval],([t,n])=>n===void 0?Ee(t)<3600?2:1:zs(Ee(n)/Ee(t))||1)}function Dc(e){return Ke([e.slotDuration,e._slotLabelPeriodicity,e._slotTimeLimits,e._intlSlotLabel],t=>Fo(an(rn()),...t))}function Qi(e){"_sidebarWidth"in e||(e._intlSlotLabel=Bn(e.locale,e.slotLabelFormat),e._slotLabelPeriodicity=$c(e),e._sidebarWidth=st(0))}function qo(e){"_slots"in e||(e._slotTimeLimits=pc(e),e._slots=Dc(e))}function Xo(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function kc(e){return Ke([e.resources,e.filterResourcesWithEvents,e._filteredEvents,e._activeRange],([t,n,r,i])=>{let a=t.filter(l=>!gn(l).hidden);return n&&(a=t.filter(l=>r.some(s=>Dr(s,i.start,i.end,l)))),a.length||(a=Io([{}])),a})}function Ko(e){"_viewResources"in e||(e._viewResources=kc(e))}function Ec(e,t,n,r,i,a){let l=[],s=1,u=r?[e,t]:[t,e];for(let c of u[0]){let f=[];for(let v of u[1]){let h=r?c:v,_=r?v:c;f.push({gridColumn:s,gridRow:1,resource:_,start:Me(J(h),n.min),end:Me(J(h),n.max),dayStart:h,dayEnd:qt(J(h)),disabled:ar(h,i),highlight:a.some(m=>Dt(m,h))}),++s}l.push(f)}return l}var Cc=Q("<span></span>");function Zo(e,t){ge(t,!0);const n=()=>d(c,"$resourceLabelContent",a),r=()=>d(v,"$_intlDayHeaderAL",a),i=()=>d(f,"$resourceLabelDidMount",a),[a,l]=De();let s=Se(t,"date",3,void 0),u=Se(t,"setLabel",3,void 0),{resourceLabelContent:c,resourceLabelDidMount:f,_intlDayHeaderAL:v}=ke("state"),h=Te(void 0),_=w(()=>n()?$e(n())?n()({resource:t.resource,date:s()?Ze(s()):void 0}):n():t.resource.title),m=Te(void 0);Qe(()=>{o(_),W(()=>{s()?K(m,r().format(s())+", "+o(h).innerText):u()&&(K(m,void 0),u()(o(h).innerText))})}),tr(()=>{$e(i())&&i()({resource:t.resource,date:s()?Ze(s()):void 0,el:o(h)})});var y=Cc();gt(y,g=>K(h,g),()=>o(h)),Ye(y,()=>nt(o(_))),ue(()=>Ue(y,"aria-label",o(m))),x(e,y),me(),l()}function Tc(e,t,n,r){let i=[],a=1;for(let l of e)i.push({gridColumn:a,gridRow:1,resource:void 0,start:Me(J(l),t.min),end:Me(J(l),t.max),dayStart:l,dayEnd:qt(J(l)),disabled:ar(l,n),highlight:r.some(s=>Dt(s,l))}),++a;return[i]}function xc(e,t){let n=[],r=[],i=[],a=[];for(let l of e)for(let s of t)Ft(l.display)?(r=r.concat(ji(l,s)),l.allDay&&(a=a.concat(ir(l,s)))):l.allDay?i=i.concat(ir(l,s)):n=n.concat(ji(l,s));return Rc(n),Lo(i),{chunks:n,bgChunks:r,allDayChunks:i,allDayBgChunks:a}}function Sc(e,t){let n=[],r=[];for(let i of e)if(i)for(let a of t)i.allDay?r=r.concat(ir(i,a)):n=n.concat(ji(i,a));return{iChunks:n,allDayIChunks:r}}function ji(e,t){let n=[];for(let{gridColumn:r,gridRow:i,resource:a,start:l,end:s,disabled:u}of t)if(!u&&Dr(e,l,s,a)){let c=kr(e,l,s);ut(c,{gridColumn:r,gridRow:i,top:(c.start-l)/1e3,height:(c.end-c.start)/1e3,maxHeight:(s-c.start)/1e3}),n.push(c)}return n}function Rc(e){let t={};for(let n of e){let{gridColumn:r}=n,i=t[r],a=0;if(i&&n.start<i.end){for(;a<i.columns.length&&!(i.columns[a].at(-1).end<=n.start);++a);n.end>i.end&&(i.end=n.end)}else i={columns:[],end:n.end};i.columns.length<a+1&&i.columns.push([]),i.columns[a].push(n),t[r]=i,n.group=i,n.groupColumn=a}}function Lc(e){let t="all-day",n;return e?(n=$e(e)?e({text:t}):e,typeof n=="string"&&(n={html:n})):n={html:t},n}function Jo(e,t){ge(t,!0);const n=()=>d(s,"$slotDuration",i),r=()=>d(u,"$slotHeight",i),[i,a]=De();let l=Se(t,"allDay",3,!1),{slotDuration:s,slotHeight:u}=ke("state"),c=w(()=>t.day.dayStart),f=w(()=>t.day.start),v=w(()=>t.day.resource),h=w(()=>t.day.disabled),_=w(()=>t.day.highlight),m=Te(void 0);function y(g,b){return l()?o(c):Me(J(o(f)),n(),Ui((b-Cn(o(m)).top)/r()))}ni(e,{get date(){return o(c)},get allDay(){return l()},get resource(){return o(v)},dateFromPoint:y,get disabled(){return o(h)},get highlight(){return o(_)},get el(){return o(m)},set el(g){K(m,g,!0)}}),me(),a()}function ea(e,t){ge(t,!0);const n=()=>d(u,"$slotDuration",a),r=()=>d(c,"$slotHeight",a),i=()=>d(s,"$slotEventOverlap",a),[a,l]=De();let{slotEventOverlap:s,slotDuration:u,slotHeight:c}=ke("state"),f=w(()=>v=>{let h=Ee(n()),_=t.chunk.top/h*r(),m=t.chunk.height/h*r()||r(),y=t.chunk.maxHeight/h*r();v["grid-column"]=t.chunk.gridColumn,v["inset-block-start"]=`${_}px`,v["min-block-size"]=`${m}px`,v["block-size"]=`${m}px`,v["max-block-size"]=`${y}px`;let g="100% - var(--ec-event-col-gap)";if(t.chunk.group){let b=t.chunk.group.columns.length;v["z-index"]=`${t.chunk.groupColumn+1}`,v["inset-inline-start"]=`calc((${g}) / ${b} * ${t.chunk.groupColumn})`,v["inline-size"]=`calc((${g}) / ${b} * ${i()?.5*(1+b-t.chunk.groupColumn):1})`}return v});ii(e,{get chunk(){return t.chunk},get styles(){return o(f)},axis:"y"}),me(),l()}function ta(e,t){ge(t,!0);let n=Te(void 0),r=Te(0),i=w(()=>t.chunk.event),a=w(()=>u=>(u["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(o(r)||o(i)._margin)&&(u["margin-block-start"]=`${o(i)._margin??o(r)}px`),u));function l(){K(r,Mo(t.chunk,zn(o(n))),!0)}var s={reposition:l};return ii(e,{get chunk(){return t.chunk},get styles(){return o(a)},axis:"x",get forceMargin(){return o(r)},get el(){return o(n)},set el(u){K(n,u,!0)}}),me(s)}var Mc=Q("<div></div>");function li(e,t){ge(t,!0);const n=()=>d(m,"$_today",c),r=()=>d(_,"$_now",c),i=()=>d(g,"$slotDuration",c),a=()=>d(b,"$slotHeight",c),l=()=>d(h,"$_mainEl",c),s=()=>d(y,"$_sidebarWidth",c),u=()=>d(k,"$theme",c),[c,f]=De();let v=Se(t,"span",3,1),{_mainEl:h,_now:_,_today:m,_sidebarWidth:y,slotDuration:g,slotHeight:b,theme:k}=ke("state"),p=w(()=>{for(let H of t.days)if(Dt(H.dayStart,n()))return H;return{}}),$=w(()=>o(p).gridColumn),E=w(()=>o(p).start),C=w(()=>o(p).end),D=w(()=>{if(r()<o(E)||r()>o(C))return null;let H=Ee(i());return(r()-o(E))/1e3/H*a()}),I=w(()=>({root:l(),rootMargin:`0px 0px 0px -${s()+5.5}px`,threshold:0}));function R(H,G){H.classList.toggle(u().hidden,!G.isIntersecting)}var T=de(),P=Z(T);{var O=H=>{var G=Mc();let V;Ye(G,()=>mo(R,o(I))),ue(()=>{N(G,1,u().nowIndicator),V=Yt(G,"",V,{"grid-column":`${o($)+1} / span ${v()??""}`,"inset-block-start":`${o(D)??""}px`})}),x(H,G)};pe(P,H=>{o($)&&o(D)!==null&&H(O)})}x(e,T),me(),f()}var Pc=Q('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),Ic=Q("<div><time></time></div>"),Ac=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 na(e,t){ge(t,!0);const n=()=>d(G,"$allDayContent",$),r=()=>d(H,"$_viewDates",$),i=()=>d(P,"$_slotTimeLimits",$),a=()=>d(B,"$validRange",$),l=()=>d(U,"$highlightedDates",$),s=()=>d(D,"$_filteredEvents",$),u=()=>d(I,"$_iEvents",$),c=()=>d(z,"$scrollTime",$),f=()=>d(C,"$_mainEl",$),v=()=>d(se,"$slotDuration",$),h=()=>d(Y,"$slotHeight",$),_=()=>d(ne,"$theme",$),m=()=>d(j,"$columnWidth",$),y=()=>d(T,"$_slotLabelPeriodicity",$),g=()=>d(R,"$_sidebarWidth",$),b=()=>d(V,"$allDaySlot",$),k=()=>d(O,"$_slots",$),p=()=>d(te,"$showNowIndicator",$),[$,E]=De();let{_mainEl:C,_filteredEvents:D,_iEvents:I,_sidebarWidth:R,_slotLabelPeriodicity:T,_slotTimeLimits:P,_slots:O,_viewDates:H,allDayContent:G,allDaySlot:V,columnWidth:j,highlightedDates:U,nowIndicator:te,scrollTime:z,slotHeight:Y,slotDuration:se,theme:ne,validRange:B}=ke("state"),Ce=Te(0),he=w(()=>Lc(n())),ee=w(()=>t.createGridFn?.()??Tc(r(),i(),a(),l())),Be=w(()=>xc(s(),o(ee))),Pe=w(()=>o(Be).chunks),Ae=w(()=>o(Be).bgChunks),ye=w(()=>o(Be).allDayChunks),Je=w(()=>o(Be).allDayBgChunks),yt=w(()=>Sc(u(),o(ee))),je=w(()=>o(yt).iChunks),S=w(()=>o(yt).allDayIChunks);Qe(()=>{r(),c(),Vr().then(re)});function re(){ze(C,W(f).scrollTop=((Ee(c())-Ee(i().min))/Ee(v())-.5)*h(),W(f))}let Oe=[];function Re(){Vi(Oe,o(ye))}Qe(Re);var q=Ac();let ae;var Ge=fe(q),ct=fe(Ge),Xt=ie(ct,2),Mt=fe(Xt);{var bt=A=>{var X=de(),M=Z(X);vn(M,()=>t.header,()=>o(ee)),x(A,X)},mn=A=>{var X=de(),M=Z(X);le(M,17,()=>o(ee)[0],ce,(_e,be,Le)=>{let qe=()=>o(be).dayStart,kt=()=>o(be).disabled,wt=()=>o(be).highlight;Er(_e,{get date(){return qe()},colIndex:1+Le,get disabled(){return kt()},get highlight(){return wt()},children:(dt,Ve)=>{ri(dt,{get date(){return qe()}})},$$slots:{default:!0}})}),x(A,X)};pe(Mt,A=>{t.header?A(bt):A(mn,!1)})}var Gn=ie(Xt,2);{var yn=A=>{var X=Pc(),M=fe(X);Ye(M,()=>nt(o(he)));var _e=ie(M,2);le(_e,21,()=>o(ee),ce,(wt,dt)=>{var Ve=de(),Ie=Z(Ve);le(Ie,17,()=>o(dt),ce,(Kt,Zt)=>{Jo(Kt,{get day(){return o(Zt)},allDay:!0})}),x(wt,Ve)});var be=ie(_e,2),Le=fe(be);le(Le,17,()=>o(ye),ce,(wt,dt,Ve)=>{gt(ta(wt,{get chunk(){return o(dt)}}),(Ie,Kt)=>Oe[Kt]=Ie,Ie=>Oe?.[Ie],()=>[Ve])});var qe=ie(Le,2);le(qe,17,()=>o(Je),ce,(wt,dt)=>{ta(wt,{get chunk(){return o(dt)}})});var kt=ie(qe,2);le(kt,17,()=>o(S),ce,(wt,dt)=>{ta(wt,{get chunk(){return o(dt)}})}),ue(()=>{N(X,1,_().allDay),N(M,1,_().sidebar),N(_e,1,_().grid),N(be,1,_().events)}),x(A,X)};pe(Gn,A=>{b()&&A(yn)})}var ft=ie(Ge,2),it=fe(ft);le(it,5,k,ce,(A,X,M)=>{var _e=Ic();let be;var Le=fe(_e);Ye(Le,()=>nt(o(X)[1])),ue(()=>{N(_e,1,nn([_().slot,!M&&_().hidden])),be=Yt(_e,"",be,{"--ec-slot-label-periodicity":o(X)[2]}),Ue(Le,"datetime",o(X)[0])}),x(A,_e)});var Ht=ie(it,2);le(Ht,21,()=>o(ee),ce,(A,X)=>{var M=de(),_e=Z(M);le(_e,17,()=>o(X),ce,(be,Le)=>{Jo(be,{get day(){return o(Le)}})}),x(A,M)});var bn=ie(Ht,2),Ut=fe(bn);le(Ut,17,()=>o(Pe),ce,(A,X)=>{ea(A,{get chunk(){return o(X)}})});var Wt=ie(Ut,2);le(Wt,17,()=>o(Ae),ce,(A,X)=>{ea(A,{get chunk(){return o(X)}})});var Tn=ie(Wt,2);le(Tn,17,()=>o(je),ce,(A,X)=>{ea(A,{get chunk(){return o(X)}})});var Vn=ie(ft,2);{var ve=A=>{var X=de(),M=Z(X);{var _e=Le=>{var qe=de(),kt=Z(qe);vn(kt,()=>t.nowIndicator,()=>o(ee)),x(Le,qe)},be=Le=>{li(Le,{get days(){return o(ee)[0]}})};pe(M,Le=>{t.nowIndicator?Le(_e):Le(be,!1)})}x(A,X)};pe(Vn,A=>{p()&&A(ve)})}gt(q,A=>We(C,A),()=>f()),Ye(q,()=>Ni(Re)),ue(()=>{N(q,1,_().main),ae=Yt(q,"",ae,{"--ec-grid-cols":o(ee).length*o(ee)[0].length,"--ec-col-group-span":o(ee)[0].length,"--ec-col-width":m()??"minmax(0, 1fr)","--ec-slot-label-periodicity":y(),"--ec-slot-height":`${h()??""}px`,"--ec-header-height":`${o(Ce)??""}px`,"--ec-sidebar-width":`${g()??""}px`}),N(Ge,1,_().header),N(ct,1,_().sidebar),N(Xt,1,_().grid),N(ft,1,_().body),N(it,1,_().sidebar),N(Ht,1,_().grid),N(bn,1,_().events)}),qr(ct,"offsetWidth",A=>We(R,A)),qr(Ge,"offsetHeight",A=>K(Ce,A)),x(e,q),me(),E()}var Oc=Q("<!> <!>",1);function Qo(e,t){ge(t,!0);const n=()=>d(v,"$_viewDates",c),r=()=>d(h,"$_viewResources",c),i=()=>d(_,"$_slotTimeLimits",c),a=()=>d(m,"$datesAboveResources",c),l=()=>d(g,"$validRange",c),s=()=>d(y,"$highlightedDates",c),u=()=>d(b,"$theme",c),[c,f]=De();let{_viewDates:v,_viewResources:h,_slotTimeLimits:_,datesAboveResources:m,highlightedDates:y,validRange:g,theme:b}=ke("state"),k=Fn([]);na(e,{createGridFn:()=>Ec(n(),r(),i(),a(),l(),s()),header:(E,C=ht)=>{var D=Oc(),I=Z(D);le(I,17,C,ce,(P,O,H)=>{const G=w(()=>{const{dayStart:V,resource:j,disabled:U,highlight:te}=o(O)[0];return{date:V,resource:j,disabled:U,highlight:te}});{let V=w(()=>C()[0].length>1?u().colGroup:void 0),j=w(()=>1+H*o(O).length),U=w(()=>a()&&o(G).disabled),te=w(()=>a()&&o(G).highlight);Er(P,{get date(){return o(G).date},get className(){return o(V)},get weekday(){return a()},get colSpan(){return o(O).length},get colIndex(){return o(j)},get disabled(){return o(U)},get highlight(){return o(te)},children:(z,Y)=>{var se=de(),ne=Z(se);{var B=he=>{ri(he,{get date(){return o(G).date}})},Ce=he=>{Zo(he,{get resource(){return o(G).resource},setLabel:ee=>k[H]=ee+", "})};pe(ne,he=>{a()?he(B):he(Ce,!1)})}x(z,se)},$$slots:{default:!0}})}});var R=ie(I,2);{var T=P=>{var O=de(),H=Z(O);le(H,17,C,ce,(G,V,j)=>{var U=de(),te=Z(U);le(te,17,()=>o(V),ce,(z,Y,se)=>{const ne=w(()=>{const{dayStart:B,resource:Ce,disabled:he,highlight:ee}=o(Y);return{date:B,resource:Ce,disabled:he,highlight:ee}});{let B=w(()=>1+se+j*o(V).length);Er(z,{get date(){return o(ne).date},get colIndex(){return o(B)},get disabled(){return o(ne).disabled},get highlight(){return o(ne).highlight},children:(Ce,he)=>{var ee=de(),Be=Z(ee);{var Pe=ye=>{Zo(ye,{get resource(){return o(ne).resource},get date(){return o(ne).date}})},Ae=ye=>{ri(ye,{get date(){return o(ne).date},get alPrefix(){return k[j]}})};pe(Be,ye=>{a()?ye(Pe):ye(Ae,!1)})}x(Ce,ee)},$$slots:{default:!0}})}}),x(G,U)}),x(P,O)};pe(R,P=>{C()[0].length>1&&P(T)})}x(E,D)},nowIndicator:(E,C=ht)=>{var D=de(),I=Z(D);{var R=P=>{{let O=w(()=>C().flat());li(P,{get days(){return o(O)},get span(){return C()[0].length}})}},T=P=>{var O=de(),H=Z(O);{var G=j=>{var U=de(),te=Z(U);le(te,17,C,ce,(z,Y)=>{li(z,{get days(){return o(Y)}})}),x(j,U)},V=j=>{{let U=w(()=>C().flat());li(j,{get days(){return o(U)},get span(){return C().length}})}};pe(H,j=>{C()[0].length>1?j(G):j(V,!1)})}x(P,O)};pe(I,P=>{a()?P(R):P(T,!1)})}x(E,D)},$$slots:{header:!0,nowIndicator:!0}}),me(),f()}const Fc={createOptions(e){Yo(e),Zi(e),Xo(e),e.datesAboveResources=!1,e.buttonText.resourceTimeGridDay="resources",e.buttonText.resourceTimeGridWeek="resources",e.theme.colGroup="ec-col-group",e.view="resourceTimeGridWeek",e.views.resourceTimeGridDay={buttonText:jr,component:Qo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:Nt("ec-resource ec-time-grid ec-day-view")},e.views.resourceTimeGridWeek={buttonText:ei,component:Qo,duration:{weeks:1},theme:Nt("ec-resource ec-time-grid ec-week-view")}},createParsers(e){Ji(e)},createStores(e){Qi(e),qo(e),Ko(e)}};function Nc(e){return Ke([e.slotMinTime,e.slotMaxTime,e.flexibleSlotTimeLimits,e._viewDates,e._filteredEvents],([t,n,r,i,a])=>{let l={};for(let s of i)l[s.getTime()]=No(t,n,r,[s],a);return l})}function Hc(e){return Ke([e._viewDates,e.slotDuration,e._slotLabelPeriodicity,e._dayTimeLimits,e._intlSlotLabel],([t,n,r,i,a])=>{let l={};for(let s of t){let u=s.getTime();l[u]=u in i?Fo(s,n,r,i[u],a):[]}return l})}function Uc(e){return Ke(e.resources,t=>t.some(n=>gn(n).children.length))}function Wc(e){return Ke(e.slotDuration,t=>!Ee(t))}function zc(e,t,n,r,i){let a=[],l=1;for(let s of t){let u=[],c=1;for(let f of e){let v=n[f.getTime()];u.push({gridColumn:c,gridRow:l,resource:s,start:Me(J(f),v.min),end:Me(J(f),v.max),dayStart:f,dayEnd:qt(J(f)),disabled:ar(f,r),highlight:i.some(h=>Dt(h,f))}),++c}a.push(u),++l}return a}function Bc(e,t){let n=[],r=[];for(let i of e)for(let a of t)Ft(i.display)?r=r.concat(ra(i,a)):n=n.concat(ra(i,a));return Vc(n),{chunks:n,bgChunks:r}}function Gc(e,t){let n=[];for(let r of e)if(r)for(let i of t)n=n.concat(ra(r,i));return n}function ra(e,t){let n=[],r,i,a,l,s,u=0;for(let{gridColumn:c,gridRow:f,resource:v,dayStart:h,start:_,end:m,disabled:y}of t)!y&&Dr(e,_,m,v)&&(n.length||(r=_,a=c,l=f,s=Lt(e.start-_,0)/1e3),n.push(h),i=m,u+=(on(m,e.end)-Lt(_,e.start))/1e3);if(n.length){let c=kr(e,r,i);return ut(c,{gridColumn:a,gridRow:l,dates:n,left:s,width:u}),[c]}return[]}function Vc(e){let t={};for(let n of e){let{gridColumn:r,gridRow:i}=n;for(let l=0;l<n.dates.length;++l){let s=`${i}_${r+l}`;t[s]?t[s].push(n):t[s]=[n]}let a=`${i}_${r}`;n.day=t[a]}}function Yc(e,t,n){let r=1,i=r+t,a=e.day;a.sort((l,s)=>(l.top??Number.POSITIVE_INFINITY)-(s.top??Number.POSITIVE_INFINITY));for(let l of a)if(!(l===e||!("top"in l))&&(n||e.start<l.end&&e.end>l.start)&&r<l.bottom&&i>l.top){let s=l.bottom-r+1;r+=s,i+=s}return ut(e,{top:r,bottom:i}),r}function qc(e,t){return e[t.getTime()]??{min:et(0),max:et("24:00:00")}}function Xc(e,t){ge(t,!0);const n=()=>d(s,"$_monthView",a),r=()=>d(u,"$slotDuration",a),i=()=>d(c,"$slotWidth",a),[a,l]=De();let{_monthView:s,slotDuration:u,slotWidth:c}=ke("state"),f=w(()=>t.day.dayStart),v=w(()=>t.day.start),h=w(()=>t.day.resource),_=w(()=>t.day.disabled),m=w(()=>t.day.highlight),y=Te(void 0);function g(b,k){return n()?o(f):Me(J(o(v)),r(),Ui((b-Cn(o(y)).left)/i()))}ni(e,{get allDay(){return n()},get date(){return o(f)},get resource(){return o(h)},dateFromPoint:g,get disabled(){return o(_)},get highlight(){return o(m)},get el(){return o(y)},set el(b){K(y,b,!0)}}),me(),l()}function ia(e,t){ge(t,!0);const n=()=>d(c,"$_monthView",a),r=()=>d(s,"$slotDuration",a),i=()=>d(u,"$slotWidth",a),[a,l]=De();let{slotDuration:s,slotWidth:u,_monthView:c}=ke("state"),f=Te(void 0),v=Te(1),h=w(()=>t.chunk.event),_=w(()=>b=>{if(b["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,b["grid-row"]=t.chunk.gridRow,!n()){let p=t.chunk.left/Ee(r())*i();b["inset-inline-start"]=`${p}px`,b["inline-size"]=`${t.chunk.width/Ee(r())*i()+t.chunk.dates.length-1}px`}let k=o(v);if(o(h)._margin){let[p,$]=o(h)._margin;t.chunk.gridRow===$&&(k=p)}return b["margin-block-start"]=`${k}px`,b});function m(){K(v,Yc(t.chunk,zn(o(f)),n()),!0)}var y={reposition:m};{let b=w(()=>[o(v),t.chunk.gridRow]);ii(e,{get chunk(){return t.chunk},get styles(){return o(_)},axis:"x",get forceMargin(){return o(b)},get el(){return o(f)},set el(k){K(f,k,!0)}})}var g=me(y);return l(),g}var Kc=Q("<span></span>");function Zc(e,t){ge(t,!0);const n=()=>d(s,"$resourceLabelContent",i),r=()=>d(u,"$resourceLabelDidMount",i),[i,a]=De();let l=Se(t,"date",3,void 0),{resourceLabelContent:s,resourceLabelDidMount:u}=ke("state"),c=Te(void 0),f=w(()=>n()?$e(n())?n()({resource:t.resource,date:l()?Ze(l()):void 0}):n():t.resource.title);tr(()=>{$e(r())&&r()({resource:t.resource,date:l()?Ze(l()):void 0,el:o(c)})});var v=Kc();gt(v,h=>K(c,h),()=>o(c)),Ye(v,()=>nt(o(f))),x(e,v),me(),a()}var Jc=Q("<span></span>"),Qc=Q("<button><!></button>"),jc=Q("<!> <span><!></span>",1);function ef(e,t){ge(t,!0);const n=()=>d(l,"$theme",r),[r,i]=De();let{resources:a,theme:l}=ke("state"),s=Te({}),u=Te(!0);Di(()=>{K(s,gn(t.resource)),K(u,o(s).expanded,!0)});function c(){K(u,!o(u)),o(s).expanded=o(u),f(o(s).children,o(u)),a.update(pr)}function f(g,b){for(let k of g){let p=gn(k);p.hidden=!b,p.expanded&&f(p.children,b)}}var v=jc(),h=Z(v);le(h,17,()=>Array(o(s).level),ce,(g,b)=>{var k=Jc();ue(()=>N(k,1,n().expander)),x(g,k)});var _=ie(h,2),m=fe(_);{var y=g=>{var b=Qc();b.__click=c;var k=fe(b);{var p=E=>{var C=lo("−");x(E,C)},$=E=>{var C=lo("+");x(E,C)};pe(k,E=>{o(u)?E(p):E($,!1)})}ue(()=>N(b,1,n().button)),x(g,b)};pe(m,g=>{o(s).children?.length&&g(y)})}ue(()=>N(_,1,n().expander)),x(e,v),me(),i()}Dn(["click"]);var tf=Q("<div></div>");function nf(e,t){ge(t,!0);const n=()=>d(_,"$_today",c),r=()=>d(h,"$_now",c),i=()=>d(y,"$slotDuration",c),a=()=>d(g,"$slotWidth",c),l=()=>d(v,"$_mainEl",c),s=()=>d(m,"$_sidebarWidth",c),u=()=>d(b,"$theme",c),[c,f]=De();let{_mainEl:v,_now:h,_today:_,_sidebarWidth:m,slotDuration:y,slotWidth:g,theme:b}=ke("state"),k=w(()=>{for(let O of t.grid[0])if(Dt(O.dayStart,n()))return O;return{}}),p=w(()=>o(k).gridColumn),$=w(()=>o(k).start),E=w(()=>o(k).end),C=w(()=>{if(r()<o($)||r()>o(E))return null;let O=Ee(i());return(r()-o($))/1e3/O*a()}),D=w(()=>({root:l(),rootMargin:`0px 0px 0px -${s()+1}px`,threshold:0}));function I(O,H){O.classList.toggle(u().hidden,!H.isIntersecting)}var R=de(),T=Z(R);{var P=O=>{var H=tf();let G;Ye(H,()=>mo(I,o(D))),ue(()=>{N(H,1,u().nowIndicator),G=Yt(H,"",G,{"grid-column":o(p)+1,"grid-row":`2 / span ${t.grid.length??""}`,"inset-inline-start":`${o(C)??""}px`})}),x(O,H)};pe(T,O=>{o(p)&&o(C)!==null&&O(P)})}x(e,R),me(),f()}var rf=Q("<div><time></time></div>"),af=Q('<div role="rowheader"><!> <!></div>'),of=Q('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function aa(e,t){ge(t,!0);const n=()=>d(Y,"$_viewDates",D),r=()=>d(z,"$_viewResources",D),i=()=>d(T,"$_dayTimeLimits",D),a=()=>d(Ae,"$validRange",D),l=()=>d(ne,"$highlightedDates",D),s=()=>d(P,"$_filteredEvents",D),u=()=>d(O,"$_iEvents",D),c=()=>d(Ce,"$scrollTime",D),f=()=>d(G,"$_monthView",D),v=()=>d(te,"$_today",D),h=()=>d(H,"$_mainEl",D),_=()=>d(he,"$slotDuration",D),m=()=>d(Be,"$slotWidth",D),y=()=>d(Pe,"$theme",D),g=()=>d(se,"$columnWidth",D),b=()=>d(U,"$_slotLabelPeriodicity",D),k=()=>d(ee,"$slotHeight",D),p=()=>d(j,"$_sidebarWidth",D),$=()=>d(R,"$_daySlots",D),E=()=>d(V,"$_nestedResources",D),C=()=>d(B,"$nowIndicator",D),[D,I]=De();let{_daySlots:R,_dayTimeLimits:T,_filteredEvents:P,_iEvents:O,_mainEl:H,_monthView:G,_nestedResources:V,_sidebarWidth:j,_slotLabelPeriodicity:U,_today:te,_viewResources:z,_viewDates:Y,columnWidth:se,highlightedDates:ne,nowIndicator:B,scrollTime:Ce,slotDuration:he,slotHeight:ee,slotWidth:Be,theme:Pe,validRange:Ae}=ke("state"),ye=Te(0),Je=w(()=>zc(n(),r(),i(),a(),l())),yt=w(()=>Bc(s(),o(Je))),je=w(()=>o(yt).chunks),S=w(()=>o(yt).bgChunks),re=w(()=>Gc(u(),o(Je)));Qe(()=>{n(),c(),Vr().then(Oe)});function Oe(){if(f())return;let ve=0,A=0,X=v()<n()[0]||v()>n().at(-1);for(let M of n()){let _e=qc(i(),M);if(X||Dt(M,v())){ve+=Lt(on(Ee(c()),Ee(_e.max))-Ee(_e.min),0);break}else ve+=Ee(_e.max)-Ee(_e.min),++A}ze(H,W(h).scrollLeft=ve/Ee(_())*m()+A,W(h))}let Re=[];function q(){Vi(Re,o(je))}Qe(q);var ae=of();let Ge;var ct=fe(ae),Xt=fe(ct),Mt=ie(Xt,2),bt=fe(Mt);le(bt,17,()=>o(Je)[0],ce,(ve,A,X)=>{let M=()=>o(A).dayStart,_e=()=>o(A).disabled,be=()=>o(A).highlight;Er(ve,{get date(){return M()},colIndex:1+X,get disabled(){return _e()},get highlight(){return be()},children:(Le,qe)=>{ri(Le,{get date(){return M()}})},$$slots:{default:!0}})});var mn=ie(bt,2);{var Gn=ve=>{var A=de(),X=Z(A);le(X,17,()=>o(Je)[0],ce,(M,_e)=>{let be=()=>o(_e).dayStart,Le=()=>o(_e).disabled,qe=()=>o(_e).highlight;Er(M,{get date(){return be()},get className(){return y().slots},get disabled(){return Le()},get highlight(){return qe()},ariaHidden:!0,children:(kt,wt)=>{var dt=de(),Ve=Z(dt);le(Ve,1,()=>$()[be().getTime()],ce,(Ie,Kt)=>{var Zt=rf();let Pt;var zt=fe(Zt);Ye(zt,()=>nt(o(Kt)[1])),ue(()=>{N(Zt,1,y().slot),Pt=Yt(Zt,"",Pt,{"--ec-slot-label-periodicity":o(Kt)[2]}),Ue(zt,"datetime",o(Kt)[0])}),x(Ie,Zt)}),x(kt,dt)},$$slots:{default:!0}})}),x(ve,A)};pe(mn,ve=>{f()||ve(Gn)})}var yn=ie(ct,2),ft=fe(yn);le(ft,5,r,ce,(ve,A)=>{var X=af(),M=fe(X);{var _e=Le=>{ef(Le,{get resource(){return o(A)}})};pe(M,Le=>{E()&&Le(_e)})}var be=ie(M,2);Zc(be,{get resource(){return o(A)}}),ue(()=>N(X,1,y().rowHead)),x(ve,X)});var it=ie(ft,2);le(it,21,()=>o(Je),ce,(ve,A)=>{var X=de(),M=Z(X);le(M,17,()=>o(A),ce,(_e,be)=>{Xc(_e,{get day(){return o(be)}})}),x(ve,X)});var Ht=ie(it,2),bn=fe(Ht);le(bn,17,()=>o(je),ce,(ve,A,X)=>{gt(ia(ve,{get chunk(){return o(A)}}),(M,_e)=>Re[_e]=M,M=>Re?.[M],()=>[X])});var Ut=ie(bn,2);le(Ut,17,()=>o(S),ce,(ve,A)=>{ia(ve,{get chunk(){return o(A)}})});var Wt=ie(Ut,2);le(Wt,17,()=>o(re),ce,(ve,A)=>{ia(ve,{get chunk(){return o(A)}})});var Tn=ie(yn,2);{var Vn=ve=>{nf(ve,{get grid(){return o(Je)}})};pe(Tn,ve=>{C()&&!f()&&ve(Vn)})}gt(ae,ve=>We(H,ve),()=>h()),Ye(ae,()=>Ni(q)),ue(()=>{N(ae,1,y().main),Ge=Yt(ae,"",Ge,{"--ec-grid-cols":o(Je)[0].length,"--ec-grid-rows":o(Je).length,"--ec-col-width":g()??"minmax(4em, 1fr)","--ec-slot-label-periodicity":b(),"--ec-slot-height":`${k()??""}px`,"--ec-slot-width":`${m()??""}px`,"--ec-header-height":`${o(ye)??""}px`,"--ec-sidebar-width":`${p()??""}px`}),N(ct,1,y().header),N(Xt,1,y().sidebar),N(Mt,1,y().grid),N(yn,1,y().body),N(ft,1,y().sidebar),N(it,1,y().grid),N(Ht,1,y().events)}),qr(Xt,"offsetWidth",ve=>We(j,ve)),qr(ct,"offsetHeight",ve=>K(ye,ve)),x(e,ae),me(),I()}const lf={createOptions(e){Zi(e),Xo(e),e.slotWidth=16,e.buttonText.resourceTimelineDay="timeline",e.buttonText.resourceTimelineWeek="timeline",e.buttonText.resourceTimelineMonth="timeline",e.theme.expander="ec-expander",e.theme.rowHead="ec-row-head",e.theme.slots="ec-slots",e.view="resourceTimelineWeek",e.views.resourceTimelineDay={buttonText:jr,component:aa,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},slotLabelInterval:"01:00",slotDuration:"00:15",theme:Nt("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:ei,component:aa,displayEventEnd:!1,duration:{weeks:1},slotLabelInterval:"01:00",slotDuration:"00:15",theme:Nt("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:Yi,component:aa,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:Nt("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){Ji(e)},createStores(e){Qi(e),Ko(e),e._dayTimeLimits=Nc(e),e._daySlots=Hc(e),e._monthView=Wc(e),e._nestedResources=Uc(e)}},sf={createOptions(e){Yo(e),Zi(e),e.buttonText.timeGridDay="day",e.buttonText.timeGridWeek="week",e.view="timeGridWeek",e.views.timeGridDay={buttonText:jr,component:na,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:Nt("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.timeGridWeek={buttonText:ei,component:na,duration:{weeks:1},theme:Nt("ec-time-grid ec-week-view")}},createParsers(e){Ji(e)},createStores(e){Qi(e),qo(e)}};function uf(e,t,n){return bs(Fu,{target:e,props:{plugins:t,options:n}})}function cf(e){return ps(e)}function ff(e,t){return uf(e,[nc,hc,wc,Fc,lf,sf],t)}return Pr.create=ff,Pr.destroy=cf,Object.defineProperty(Pr,Symbol.toStringTag,{value:"Module"}),Pr})({});
5
+ var EventCalendar=(function(Pr){"use strict";var ho=Array.isArray,dl=Array.prototype.indexOf,Ar=Array.from,vo=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,go=Object.getOwnPropertyDescriptors,hl=Object.prototype,vl=Array.prototype,di=Object.getPrototypeOf,_o=Object.isExtensible;const gt=()=>{};function gl(e){return e()}function Or(e){for(var t=0;t<e.length;t++)e[t]()}function mo(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function _l(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const it=2,hi=4,Fr=8,yo=1<<24,ln=16,sn=32,Rn=64,Nr=128,Gt=512,ut=1024,xt=2048,Qt=4096,St=8192,un=16384,vi=32768,wn=65536,bo=1<<17,wo=1<<18,qn=1<<19,po=1<<20,cn=1<<25,In=32768,gi=1<<21,_i=1<<22,pn=1<<23,Ln=Symbol("$state"),ml=Symbol("legacy props"),yl=Symbol(""),Xn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function $o(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function bl(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function wl(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function pl(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function $l(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Dl(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function kl(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function El(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Cl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Tl(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xl(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Sl=1,Rl=2,Do=4,Il=8,Ll=16,Ml=1,Pl=2,Al=4,Ol=8,Fl=16,Nl=1,Hl=2,ct=Symbol(),Ul="http://www.w3.org/1999/xhtml";function Wl(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function ko(e){return e===this.v}function Eo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Co(e){return!Eo(e,this.v)}let Kn=!1,Ef=!1;function zl(){Kn=!0}let Ue=null;function Zn(e){Ue=e}function De(e){return To().get(e)}function Bl(e,t){return To().set(e,t),t}function ge(e,t=!1,n){Ue={p:Ue,i:!1,c:null,e:null,s:e,x:null,l:Kn&&!t?{s:null,u:null,$:[]}:null}}function _e(e){var t=Ue,n=t.e;if(n!==null){t.e=null;for(var r of n)Bo(r)}return e!==void 0&&(t.x=e),t.i=!0,Ue=t.p,e??{}}function ur(){return!Kn||Ue!==null&&Ue.l===null}function To(e){return Ue===null&&$o(),Ue.c??=new Map(Gl(Ue)||void 0)}function Gl(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let Mn=[];function xo(){var e=Mn;Mn=[],Or(e)}function Pn(e){if(Mn.length===0&&!cr){var t=Mn;queueMicrotask(()=>{t===Mn&&xo()})}Mn.push(e)}function Vl(){for(;Mn.length>0;)xo()}function So(e){var t=xe;if(t===null)return be.f|=pn,e;if((t.f&vi)===0){if((t.f&Nr)===0)throw e;t.b.error(e)}else Jn(e,t)}function Jn(e,t){for(;t!==null;){if((t.f&Nr)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Hr=new Set;let We=null,Ot=null,Ft=[],Ur=null,mi=!1,cr=!1;class jt{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#s=null;#o=new Set;#i=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){Ft=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[]};for(const r of t)this.#a(r,n);this.is_fork||this.#c(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects)):(We=null,Io(n.render_effects),Io(n.effects),this.#s?.resolve()),Ot=null}#a(t,n){t.f^=ut;for(var r=t.first;r!==null;){var i=r.f,o=(i&(sn|Rn))!==0,l=o&&(i&ut)!==0,s=l||(i&St)!==0||this.skipped_effects.has(r);if((r.f&Nr)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[]}),!s&&r.fn!==null){o?r.f^=ut:(i&hi)!==0?n.effects.push(r):mr(r)&&((r.f&ln)!==0&&this.#o.add(r),yr(r));var u=r.first;if(u!==null){r=u;continue}}var c=r.parent;for(r=r.next;r===null&&c!==null;)c===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),n=n.parent),r=c.next,c=c.parent}}#l(t){for(const n of t)(n.f&xt)!==0?this.#o.add(n):(n.f&Qt)!==0&&this.#i.add(n),this.#u(n.deps),ft(n,ut)}#u(t){if(t!==null)for(const n of t)(n.f&it)===0||(n.f&In)===0||(n.f^=In,this.#u(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&pn)===0&&(this.current.set(t,t.v),Ot?.set(t,t.v))}activate(){We=this,this.apply()}deactivate(){We===this&&(We=null,Ot=null)}flush(){if(this.activate(),Ft.length>0){if(Ro(),We!==null&&We!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#c(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#n===0&&this.#f()}#f(){if(Hr.size>1){this.previous.clear();var t=Ot,n=!0,r={parent:null,effect:null,effects:[],render_effects:[]};for(const o of Hr){if(o===this){n=!1;continue}const l=[];for(const[u,c]of this.current){if(o.current.has(u))if(n&&c!==o.current.get(u))o.current.set(u,c);else continue;l.push(u)}if(l.length===0)continue;const s=[...o.current.keys()].filter(u=>!this.current.has(u));if(s.length>0){var i=Ft;Ft=[];const u=new Set,c=new Map;for(const f of l)Lo(f,s,u,c);if(Ft.length>0){We=o,o.apply();for(const f of Ft)o.#a(f,r);o.deactivate()}Ft=i}}We=null,Ot=t}this.committed=!0,Hr.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#o)this.#i.delete(t),ft(t,xt),An(t);for(const t of this.#i)ft(t,Qt),An(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#s??=mo()).promise}static ensure(){if(We===null){const t=We=new jt;Hr.add(We),cr||jt.enqueue(()=>{We===t&&t.flush()})}return We}static enqueue(t){Pn(t)}apply(){}}function Yl(e){var t=cr;cr=!0;try{for(var n;;){if(Vl(),Ft.length===0&&(We?.flush(),Ft.length===0))return Ur=null,n;Ro()}}finally{cr=t}}function Ro(){var e=Hn;mi=!0;var t=null;try{var n=0;for(Gr(!0);Ft.length>0;){var r=jt.ensure();if(n++>1e3){var i,o;ql()}r.process(Ft),$n.clear()}}finally{mi=!1,Gr(e),Ur=null}}function ql(){try{Dl()}catch(e){Jn(e,Ur)}}let fn=null;function Io(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(un|St))===0&&mr(r)&&(fn=new Set,yr(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?qo(r):r.fn=null),fn?.size>0)){$n.clear();for(const i of fn){if((i.f&(un|St))!==0)continue;const o=[i];let l=i.parent;for(;l!==null;)fn.has(l)&&(fn.delete(l),o.push(l)),l=l.parent;for(let s=o.length-1;s>=0;s--){const u=o[s];(u.f&(un|St))===0&&yr(u)}}fn.clear()}}fn=null}}function Lo(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;(o&it)!==0?Lo(i,t,n,r):(o&(_i|ln))!==0&&(o&xt)===0&&Mo(i,t,r)&&(ft(i,xt),An(i))}}function Mo(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&it)!==0&&Mo(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function An(e){for(var t=Ur=e;t.parent!==null;){t=t.parent;var n=t.f;if(mi&&t===xe&&(n&ln)!==0&&(n&wo)===0)return;if((n&(Rn|sn))!==0){if((n&ut)===0)return;t.f^=ut}}Ft.push(t)}function Xl(e){let t=0,n=On(0),r;return()=>{vr()&&(a(n),Go(()=>(t===0&&(r=W(()=>e(()=>dr(n)))),t+=1,()=>{Pn(()=>{t-=1,t===0&&(r?.(),r=void 0,dr(n))})})))}}var Kl=wn|qn|Nr;function Zl(e,t,n){new Jl(e,t,n)}class Jl{parent;#e=!1;#t;#n=null;#r;#s;#o;#i=null;#a=null;#l=null;#u=null;#c=null;#f=0;#d=0;#v=!1;#h=null;#b=Xl(()=>(this.#h=On(this.#f),()=>{this.#h=null}));constructor(t,n,r){this.#t=t,this.#r=n,this.#s=r,this.parent=xe.b,this.#e=!!this.#r.pending,this.#o=gr(()=>{xe.b=this;{var i=this.#m();try{this.#i=Rt(()=>r(i))}catch(o){this.error(o)}this.#d>0?this.#_():this.#e=!1}return()=>{this.#c?.remove()}},Kl)}#w(){try{this.#i=Rt(()=>this.#s(this.#t))}catch(t){this.error(t)}this.#e=!1}#p(){const t=this.#r.pending;t&&(this.#a=Rt(()=>t(this.#t)),jt.enqueue(()=>{var n=this.#m();this.#i=this.#g(()=>(jt.ensure(),Rt(()=>this.#s(n)))),this.#d>0?this.#_():(Nn(this.#a,()=>{this.#a=null}),this.#e=!1)}))}#m(){var t=this.#t;return this.#e&&(this.#c=dn(),this.#t.before(this.#c),t=this.#c),t}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#g(t){var n=xe,r=be,i=Ue;tn(this.#o),Et(this.#o),Zn(this.#o.ctx);try{return t()}catch(o){return So(o),null}finally{tn(n),Et(r),Zn(i)}}#_(){const t=this.#r.pending;this.#i!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#c),Zo(this.#i,this.#u)),this.#a===null&&(this.#a=Rt(()=>t(this.#t)))}#y(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t);return}this.#d+=t,this.#d===0&&(this.#e=!1,this.#a&&Nn(this.#a,()=>{this.#a=null}),this.#u&&(this.#t.before(this.#u),this.#u=null))}update_pending_count(t){this.#y(t),this.#f+=t,this.#h&&Qn(this.#h,this.#f)}get_effect_pending(){return this.#b(),a(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(_t(this.#i),this.#i=null),this.#a&&(_t(this.#a),this.#a=null),this.#l&&(_t(this.#l),this.#l=null);var i=!1,o=!1;const l=()=>{if(i){Wl();return}i=!0,o&&xl(),jt.ensure(),this.#f=0,this.#l!==null&&Nn(this.#l,()=>{this.#l=null}),this.#e=this.has_pending_snippet(),this.#i=this.#g(()=>(this.#v=!1,Rt(()=>this.#s(this.#t)))),this.#d>0?this.#_():this.#e=!1};var s=be;try{Et(null),o=!0,n?.(t,l),o=!1}catch(u){Jn(u,this.#o&&this.#o.parent)}finally{Et(s)}r&&Pn(()=>{this.#l=this.#g(()=>{jt.ensure(),this.#v=!0;try{return Rt(()=>{r(this.#t,()=>t,()=>l)})}catch(u){return Jn(u,this.#o.parent),null}finally{this.#v=!1}})})}}function Ql(e,t,n,r){const i=ur()?fr:yi;if(n.length===0&&e.length===0){r(t.map(i));return}var o=We,l=xe,s=jl();function u(){Promise.all(n.map(c=>es(c))).then(c=>{s();try{r([...t.map(i),...c])}catch(f){(l.f&un)===0&&Jn(f,l)}o?.deactivate(),Wr()}).catch(c=>{Jn(c,l)})}e.length>0?Promise.all(e).then(()=>{s();try{return u()}finally{o?.deactivate(),Wr()}}):u()}function jl(){var e=xe,t=be,n=Ue,r=We;return function(o=!0){tn(e),Et(t),Zn(n),o&&r?.activate()}}function Wr(){tn(null),Et(null),Zn(null)}function fr(e){var t=it|xt,n=be!==null&&(be.f&it)!==0?be:null;return xe!==null&&(xe.f|=qn),{ctx:Ue,deps:null,effects:null,equals:ko,f:t,fn:e,reactions:null,rv:0,v:ct,wv:0,parent:n??xe,ac:null}}function es(e,t){let n=xe;n===null&&bl();var r=n.b,i=void 0,o=On(ct),l=!be,s=new Map;return ss(()=>{var u=mo();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{c===We&&c.committed&&c.deactivate(),Wr()})}catch(h){u.reject(h),Wr()}var c=We;if(l){var f=!r.is_pending();r.update_pending_count(1),c.increment(f),s.get(c)?.reject(Xn),s.delete(c),s.set(c,u)}const v=(h,g=void 0)=>{if(c.activate(),g)g!==Xn&&(o.f|=pn,Qn(o,g));else{(o.f&pn)!==0&&(o.f^=pn),Qn(o,h);for(const[m,y]of s){if(s.delete(m),m===c)break;y.reject(Xn)}}l&&(r.update_pending_count(-1),c.decrement(f))};u.promise.then(v,h=>v(null,h||"unknown"))}),Br(()=>{for(const u of s.values())u.reject(Xn)}),new Promise(u=>{function c(f){function v(){f===i?u(o):c(i)}f.then(v,v)}c(i)})}function b(e){const t=fr(e);return Qo(t),t}function yi(e){const t=fr(e);return t.equals=Co,t}function Po(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)_t(t[n])}}function ts(e){for(var t=e.parent;t!==null;){if((t.f&it)===0)return(t.f&un)===0?t:null;t=t.parent}return null}function bi(e){var t,n=xe;tn(ts(e));try{e.f&=~In,Po(e),t=ra(e)}finally{tn(n)}return t}function Ao(e){var t=bi(e);if(e.equals(t)||(We?.is_fork||(e.v=t),e.wv=ta()),!Un)if(Ot!==null)(vr()||We?.is_fork)&&Ot.set(e,t);else{var n=(e.f&Gt)===0?Qt:ut;ft(e,n)}}let wi=new Set;const $n=new Map;let Oo=!1;function On(e,t){var n={f:0,v:e,reactions:null,equals:ko,rv:0,wv:0};return n}function Te(e,t){const n=On(e);return Qo(n),n}function pi(e,t=!1,n=!0){const r=On(e);return t||(r.equals=Co),Kn&&n&&Ue!==null&&Ue.l!==null&&(Ue.l.s??=[]).push(r),r}function Z(e,t,n=!1){be!==null&&(!en||(be.f&bo)!==0)&&ur()&&(be.f&(it|ln|_i|bo))!==0&&!hn?.includes(e)&&Tl();let r=n?Fn(t):t;return Qn(e,r)}function Qn(e,t){if(!e.equals(t)){var n=e.v;Un?$n.set(e,t):$n.set(e,n),e.v=t;var r=jt.ensure();r.capture(e,n),(e.f&it)!==0&&((e.f&xt)!==0&&bi(e),ft(e,(e.f&Gt)!==0?ut:Qt)),e.wv=ta(),Fo(e,xt),ur()&&xe!==null&&(xe.f&ut)!==0&&(xe.f&(sn|Rn))===0&&(Nt===null?ds([e]):Nt.push(e)),!r.is_fork&&wi.size>0&&!Oo&&ns()}return t}function ns(){Oo=!1;var e=Hn;Gr(!0);const t=Array.from(wi);try{for(const n of t)(n.f&ut)!==0&&ft(n,Qt),mr(n)&&yr(n)}finally{Gr(e)}wi.clear()}function dr(e){Z(e,e.v+1)}function Fo(e,t){var n=e.reactions;if(n!==null)for(var r=ur(),i=n.length,o=0;o<i;o++){var l=n[o],s=l.f;if(!(!r&&l===xe)){var u=(s&xt)===0;if(u&&ft(l,t),(s&it)!==0){var c=l;Ot?.delete(c),(s&In)===0&&(s&Gt&&(l.f|=In),Fo(c,Qt))}else u&&((s&ln)!==0&&fn!==null&&fn.add(l),An(l))}}}function Fn(e){if(typeof e!="object"||e===null||Ln in e)return e;const t=di(e);if(t!==hl&&t!==vl)return e;var n=new Map,r=ho(e),i=Te(0),o=Wn,l=s=>{if(Wn===o)return s();var u=be,c=Wn;Et(null),ea(o);var f=s();return Et(u),ea(c),f};return r&&n.set("length",Te(e.length)),new Proxy(e,{defineProperty(s,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&El();var f=n.get(u);return f===void 0?f=l(()=>{var v=Te(c.value);return n.set(u,v),v}):Z(f,c.value,!0),!0},deleteProperty(s,u){var c=n.get(u);if(c===void 0){if(u in s){const f=l(()=>Te(ct));n.set(u,f),dr(i)}}else Z(c,ct),dr(i);return!0},get(s,u,c){if(u===Ln)return e;var f=n.get(u),v=u in s;if(f===void 0&&(!v||Sn(s,u)?.writable)&&(f=l(()=>{var g=Fn(v?s[u]:ct),m=Te(g);return m}),n.set(u,f)),f!==void 0){var h=a(f);return h===ct?void 0:h}return Reflect.get(s,u,c)},getOwnPropertyDescriptor(s,u){var c=Reflect.getOwnPropertyDescriptor(s,u);if(c&&"value"in c){var f=n.get(u);f&&(c.value=a(f))}else if(c===void 0){var v=n.get(u),h=v?.v;if(v!==void 0&&h!==ct)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return c},has(s,u){if(u===Ln)return!0;var c=n.get(u),f=c!==void 0&&c.v!==ct||Reflect.has(s,u);if(c!==void 0||xe!==null&&(!f||Sn(s,u)?.writable)){c===void 0&&(c=l(()=>{var h=f?Fn(s[u]):ct,g=Te(h);return g}),n.set(u,c));var v=a(c);if(v===ct)return!1}return f},set(s,u,c,f){var v=n.get(u),h=u in s;if(r&&u==="length")for(var g=c;g<v.v;g+=1){var m=n.get(g+"");m!==void 0?Z(m,ct):g in s&&(m=l(()=>Te(ct)),n.set(g+"",m))}if(v===void 0)(!h||Sn(s,u)?.writable)&&(v=l(()=>Te(void 0)),Z(v,Fn(c)),n.set(u,v));else{h=v.v!==ct;var y=l(()=>Fn(c));Z(v,y)}var _=Reflect.getOwnPropertyDescriptor(s,u);if(_?.set&&_.set.call(f,c),!h){if(r&&typeof u=="string"){var w=n.get("length"),k=Number(u);Number.isInteger(k)&&k>=w.v&&Z(w,k+1)}dr(i)}return!0},ownKeys(s){a(i);var u=Reflect.ownKeys(s).filter(v=>{var h=n.get(v);return h===void 0||h.v!==ct});for(var[c,f]of n)f.v!==ct&&!(c in s)&&u.push(c);return u},setPrototypeOf(){Cl()}})}var Vt,No,Ho,Uo;function rs(){if(Vt===void 0){Vt=window,No=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ho=Sn(t,"firstChild").get,Uo=Sn(t,"nextSibling").get,_o(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),_o(n)&&(n.__t=void 0)}}function dn(e=""){return document.createTextNode(e)}function zr(e){return Ho.call(e)}function hr(e){return Uo.call(e)}function fe(e,t){return zr(e)}function J(e,t=!1){{var n=zr(e);return n instanceof Comment&&n.data===""?hr(n):n}}function ie(e,t=1,n=!1){let r=e;for(;t--;)r=hr(r);return r}function is(e){e.textContent=""}function Wo(){return!1}function os(e,t){{const n=document.body;e.autofocus=!0,Pn(()=>{document.activeElement===n&&e.focus()})}}function $i(e){var t=be,n=xe;Et(null),tn(null);try{return e()}finally{Et(t),tn(n)}}function zo(e){xe===null&&(be===null&&$l(),pl()),Un&&wl()}function as(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Yt(e,t,n){var r=xe;r!==null&&(r.f&St)!==0&&(e|=St);var i={ctx:Ue,deps:null,nodes:null,f:e|xt|Gt,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{yr(i),i.f|=vi}catch(s){throw _t(i),s}else t!==null&&An(i);var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&qn)===0&&(o=o.first,(e&ln)!==0&&(e&wn)!==0&&o!==null&&(o.f|=wn)),o!==null&&(o.parent=r,r!==null&&as(o,r),be!==null&&(be.f&it)!==0&&(e&Rn)===0)){var l=be;(l.effects??=[]).push(o)}return i}function vr(){return be!==null&&!en}function Br(e){const t=Yt(Fr,null,!1);return ft(t,ut),t.teardown=e,t}function Qe(e){zo();var t=xe.f,n=!be&&(t&sn)!==0&&(t&vi)===0;if(n){var r=Ue;(r.e??=[]).push(e)}else return Bo(e)}function Bo(e){return Yt(hi|po,e,!1)}function Di(e){return zo(),Yt(Fr|po,e,!0)}function ls(e){jt.ensure();const t=Yt(Rn|qn,e,!0);return(n={})=>new Promise(r=>{n.outro?Nn(t,()=>{_t(t),r(void 0)}):(_t(t),r(void 0))})}function ki(e){return Yt(hi,e,!1)}function ss(e){return Yt(_i|qn,e,!0)}function Go(e,t=0){return Yt(Fr|t,e,!0)}function ue(e,t=[],n=[],r=[]){Ql(r,t,n,i=>{Yt(Fr,()=>e(...i.map(a)),!0)})}function gr(e,t=0){var n=Yt(ln|t,e,!0);return n}function us(e,t=0){var n=Yt(yo|t,e,!0);return n}function Rt(e){return Yt(sn|qn,e,!0)}function Vo(e){var t=e.teardown;if(t!==null){const n=Un,r=be;Jo(!0),Et(null);try{t.call(null)}finally{Jo(n),Et(r)}}}function Yo(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&$i(()=>{i.abort(Xn)});var r=n.next;(n.f&Rn)!==0?n.parent=null:_t(n,t),n=r}}function cs(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&sn)===0&&_t(t),t=n}}function _t(e,t=!0){var n=!1;(t||(e.f&wo)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(fs(e.nodes.start,e.nodes.end),n=!0),Yo(e,t&&!n),Vr(e,0),ft(e,un);var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)o.stop();Vo(e);var i=e.parent;i!==null&&i.first!==null&&qo(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function fs(e,t){for(;e!==null;){var n=e===t?null:hr(e);e.remove(),e=n}}function qo(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Nn(e,t,n=!0){var r=[];Xo(e,r,!0);var i=()=>{n&&_t(e),t&&t()},o=r.length;if(o>0){var l=()=>--o||i();for(var s of r)s.out(l)}else i()}function Xo(e,t,n){if((e.f&St)===0){e.f^=St;var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)(s.is_global||n)&&t.push(s);for(var i=e.first;i!==null;){var o=i.next,l=(i.f&wn)!==0||(i.f&sn)!==0&&(e.f&ln)!==0;Xo(i,t,l?n:!1),i=o}}}function Ei(e){Ko(e,!0)}function Ko(e,t){if((e.f&St)!==0){e.f^=St,(e.f&ut)===0&&(ft(e,xt),An(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&wn)!==0||(n.f&sn)!==0;Ko(n,i?t:!1),n=r}var o=e.nodes&&e.nodes.t;if(o!==null)for(const l of o)(l.is_global||t)&&l.in()}}function Zo(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:hr(n);t.append(n),n=i}}let Hn=!1;function Gr(e){Hn=e}let Un=!1;function Jo(e){Un=e}let be=null,en=!1;function Et(e){be=e}let xe=null;function tn(e){xe=e}let hn=null;function Qo(e){be!==null&&(hn===null?hn=[e]:hn.push(e))}let mt=null,It=0,Nt=null;function ds(e){Nt=e}let jo=1,_r=0,Wn=_r;function ea(e){Wn=e}function ta(){return++jo}function mr(e){var t=e.f;if((t&xt)!==0)return!0;if(t&it&&(e.f&=~In),(t&Qt)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i];if(mr(o)&&Ao(o),o.wv>e.wv)return!0}(t&Gt)!==0&&Ot===null&&ft(e,ut)}return!1}function na(e,t,n=!0){var r=e.reactions;if(r!==null&&!hn?.includes(e))for(var i=0;i<r.length;i++){var o=r[i];(o.f&it)!==0?na(o,t,!1):t===o&&(n?ft(o,xt):(o.f&ut)!==0&&ft(o,Qt),An(o))}}function ra(e){var t=mt,n=It,r=Nt,i=be,o=hn,l=Ue,s=en,u=Wn,c=e.f;mt=null,It=0,Nt=null,be=(c&(sn|Rn))===0?e:null,hn=null,Zn(e.ctx),en=!1,Wn=++_r,e.ac!==null&&($i(()=>{e.ac.abort(Xn)}),e.ac=null);try{e.f|=gi;var f=e.fn,v=f(),h=e.deps;if(mt!==null){var g;if(Vr(e,It),h!==null&&It>0)for(h.length=It+mt.length,g=0;g<mt.length;g++)h[It+g]=mt[g];else e.deps=h=mt;if(vr()&&(e.f&Gt)!==0)for(g=It;g<h.length;g++)(h[g].reactions??=[]).push(e)}else h!==null&&It<h.length&&(Vr(e,It),h.length=It);if(ur()&&Nt!==null&&!en&&h!==null&&(e.f&(it|Qt|xt))===0)for(g=0;g<Nt.length;g++)na(Nt[g],e);return i!==null&&i!==e&&(_r++,Nt!==null&&(r===null?r=Nt:r.push(...Nt))),(e.f&pn)!==0&&(e.f^=pn),v}catch(m){return So(m)}finally{e.f^=gi,mt=t,It=n,Nt=r,be=i,hn=o,Zn(l),en=s,Wn=u}}function hs(e,t){let n=t.reactions;if(n!==null){var r=dl.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&it)!==0&&(mt===null||!mt.includes(t))&&(ft(t,Qt),(t.f&Gt)!==0&&(t.f^=Gt,t.f&=~In),Po(t),Vr(t,0))}function Vr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)hs(e,n[r])}function yr(e){var t=e.f;if((t&un)===0){ft(e,ut);var n=xe,r=Hn;xe=e,Hn=!0;try{(t&(ln|yo))!==0?cs(e):Yo(e),Vo(e);var i=ra(e);e.teardown=typeof i=="function"?i:null,e.wv=jo;var o}finally{Hn=r,xe=n}}}async function Yr(){await Promise.resolve(),Yl()}function a(e){var t=e.f,n=(t&it)!==0;if(be!==null&&!en){var r=xe!==null&&(xe.f&un)!==0;if(!r&&!hn?.includes(e)){var i=be.deps;if((be.f&gi)!==0)e.rv<_r&&(e.rv=_r,mt===null&&i!==null&&i[It]===e?It++:mt===null?mt=[e]:mt.includes(e)||mt.push(e));else{(be.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[be]:o.includes(be)||o.push(be)}}}if(Un){if($n.has(e))return $n.get(e);if(n){var l=e,s=l.v;return((l.f&ut)===0&&l.reactions!==null||oa(l))&&(s=bi(l)),$n.set(l,s),s}}else n&&(!Ot?.has(e)||We?.is_fork&&!vr())&&(l=e,mr(l)&&Ao(l),Hn&&vr()&&(l.f&Gt)===0&&ia(l));if(Ot?.has(e))return Ot.get(e);if((e.f&pn)!==0)throw e.v;return e.v}function ia(e){if(e.deps!==null){e.f^=Gt;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&it)!==0&&(t.f&Gt)===0&&ia(t)}}function oa(e){if(e.v===ct)return!0;if(e.deps===null)return!1;for(const t of e.deps)if($n.has(t)||(t.f&it)!==0&&oa(t))return!0;return!1}function W(e){var t=en;try{return en=!0,e()}finally{en=t}}const vs=-7169;function ft(e,t){e.f=e.f&vs|t}function gs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Ln in e)Ci(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Ln in n&&Ci(n)}}}function Ci(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ci(e[r],t)}catch{}const n=di(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=go(n);for(let i in r){const o=r[i].get;if(o)try{o.call(e)}catch{}}}}}const _s=["touchstart","touchmove"];function ms(e){return _s.includes(e)}const aa=new Set,Ti=new Set;function ys(e,t,n,r={}){function i(o){if(r.capture||br.call(t,o),!o.cancelBubble)return $i(()=>n?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Pn(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Lt(e,t,n,r,i){var o={capture:r,passive:i},l=ys(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Br(()=>{t.removeEventListener(e,l,o)})}function Dn(e){for(var t=0;t<e.length;t++)aa.add(e[t]);for(var n of Ti)n(e)}let la=null;function br(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;la=e;var l=0,s=la===e&&e.__root;if(s){var u=i.indexOf(s);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var c=i.indexOf(t);if(c===-1)return;u<=c&&(l=u)}if(o=i[l]||e.target,o!==t){vo(e,"currentTarget",{configurable:!0,get(){return o||n}});var f=be,v=xe;Et(null),tn(null);try{for(var h,g=[];o!==null;){var m=o.assignedSlot||o.parentNode||o.host||null;try{var y=o["__"+r];y!=null&&(!o.disabled||e.target===o)&&y.call(o,e)}catch(_){h?g.push(_):h=_}if(e.cancelBubble||m===t||m===null)break;o=m}if(h){for(let _ of g)queueMicrotask(()=>{throw _});throw h}}finally{e.__root=t,delete e.currentTarget,Et(f),tn(v)}}}function bs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function qr(e,t){var n=xe;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function j(e,t){var n=(t&Nl)!==0,r=(t&Hl)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=bs(o?e:"<!>"+e),n||(i=zr(i)));var l=r||No?document.importNode(i,!0):i.cloneNode(!0);if(n){var s=zr(l),u=l.lastChild;qr(s,u)}else qr(l,l);return l}}function sa(e=""){{var t=dn(e+"");return qr(t,t),t}}function de(){var e=document.createDocumentFragment(),t=document.createComment(""),n=dn();return e.append(t,n),qr(t,n),e}function x(e,t){e!==null&&e.before(t)}function ua(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function ws(e,t){return ps(e,t)}const jn=new Map;function ps(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:l=!0}){rs();var s=new Set,u=v=>{for(var h=0;h<v.length;h++){var g=v[h];if(!s.has(g)){s.add(g);var m=ms(g);t.addEventListener(g,br,{passive:m});var y=jn.get(g);y===void 0?(document.addEventListener(g,br,{passive:m}),jn.set(g,1)):jn.set(g,y+1)}}};u(Ar(aa)),Ti.add(u);var c=void 0,f=ls(()=>{var v=n??t.appendChild(dn());return Zl(v,{pending:()=>{}},h=>{if(o){ge({});var g=Ue;g.c=o}i&&(r.$$events=i),c=e(h,r)||{},o&&_e()}),()=>{for(var h of s){t.removeEventListener(h,br);var g=jn.get(h);--g===0?(document.removeEventListener(h,br),jn.delete(h)):jn.set(h,g)}Ti.delete(u),v!==n&&v.parentNode?.removeChild(v)}});return xi.set(c,f),c}let xi=new WeakMap;function $s(e,t){const n=xi.get(e);return n?(xi.delete(e),n(t)):Promise.resolve()}class Si{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#o=()=>{var t=We;if(this.#e.has(t)){var n=this.#e.get(t),r=this.#t.get(n);if(r)Ei(r),this.#r.delete(n);else{var i=this.#n.get(n);i&&(this.#t.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===t)break;const s=this.#n.get(l);s&&(_t(s.effect),this.#n.delete(l))}for(const[o,l]of this.#t){if(o===n||this.#r.has(o))continue;const s=()=>{if(Array.from(this.#e.values()).includes(o)){var c=document.createDocumentFragment();Zo(l,c),c.append(dn()),this.#n.set(o,{effect:l,fragment:c})}else _t(l);this.#r.delete(o),this.#t.delete(o)};this.#s||!r?(this.#r.add(o),Nn(l,s,!1)):s()}}};#i=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#n)n.includes(r)||(_t(i.effect),this.#n.delete(r))};ensure(t,n){var r=We,i=Wo();if(n&&!this.#t.has(t)&&!this.#n.has(t))if(i){var o=document.createDocumentFragment(),l=dn();o.append(l),this.#n.set(t,{effect:Rt(()=>n(l)),fragment:o})}else this.#t.set(t,Rt(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[s,u]of this.#t)s===t?r.skipped_effects.delete(u):r.skipped_effects.add(u);for(const[s,u]of this.#n)s===t?r.skipped_effects.delete(u.effect):r.skipped_effects.add(u.effect);r.oncommit(this.#o),r.ondiscard(this.#i)}else this.#o()}}function we(e,t,n=!1){var r=new Si(e),i=n?wn:0;function o(l,s){r.ensure(l,s)}gr(()=>{var l=!1;t((s,u=!0)=>{l=!0,o(u,s)}),l||o(!1,null)},i)}function ce(e,t){return t}function Ds(e,t,n){for(var r=[],i=t.length,o,l=t.length,s=0;s<i;s++){let v=t[s];Nn(v,()=>{if(o){if(o.pending.delete(v),o.done.add(v),o.pending.size===0){var h=e.outrogroups;Ri(Ar(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var u=r.length===0&&n!==null;if(u){var c=n,f=c.parentNode;is(f),f.append(c),e.items.clear()}Ri(t,!u)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Ri(e,t=!0){for(var n=0;n<e.length;n++)_t(e[n],t)}var ca;function le(e,t,n,r,i,o=null){var l=e,s=new Map,u=(t&Do)!==0;if(u){var c=e;l=c.appendChild(dn())}var f=null,v=yi(()=>{var w=n();return ho(w)?w:w==null?[]:Ar(w)}),h,g=!0;function m(){_.fallback=f,ks(_,h,l,t,r),f!==null&&(h.length===0?(f.f&cn)===0?Ei(f):(f.f^=cn,wr(f,null,l)):Nn(f,()=>{f=null}))}var y=gr(()=>{h=a(v);for(var w=h.length,k=new Set,p=We,$=Wo(),T=0;T<w;T+=1){var E=h[T],D=r(E,T),P=g?null:s.get(D);P?(P.v&&Qn(P.v,E),P.i&&Qn(P.i,T),$&&p.skipped_effects.delete(P.e)):(P=Es(s,g?l:ca??=dn(),E,D,T,i,t,n),g||(P.e.f|=cn),s.set(D,P)),k.add(D)}if(w===0&&o&&!f&&(g?f=Rt(()=>o(l)):(f=Rt(()=>o(ca??=dn())),f.f|=cn)),!g)if($){for(const[S,C]of s)k.has(S)||p.skipped_effects.add(C.e);p.oncommit(m),p.ondiscard(()=>{})}else m();a(v)}),_={effect:y,items:s,outrogroups:null,fallback:f};g=!1}function ks(e,t,n,r,i){var o=(r&Il)!==0,l=t.length,s=e.items,u=e.effect.first,c,f=null,v,h=[],g=[],m,y,_,w;if(o)for(w=0;w<l;w+=1)m=t[w],y=i(m,w),_=s.get(y).e,(_.f&cn)===0&&(_.nodes?.a?.measure(),(v??=new Set).add(_));for(w=0;w<l;w+=1){if(m=t[w],y=i(m,w),_=s.get(y).e,e.outrogroups!==null)for(const C of e.outrogroups)C.pending.delete(_),C.done.delete(_);if((_.f&cn)!==0)if(_.f^=cn,_===u)wr(_,null,n);else{var k=f?f.next:u;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),kn(e,f,_),kn(e,_,k),wr(_,k,n),f=_,h=[],g=[],u=f.next;continue}if((_.f&St)!==0&&(Ei(_),o&&(_.nodes?.a?.unfix(),(v??=new Set).delete(_))),_!==u){if(c!==void 0&&c.has(_)){if(h.length<g.length){var p=g[0],$;f=p.prev;var T=h[0],E=h[h.length-1];for($=0;$<h.length;$+=1)wr(h[$],p,n);for($=0;$<g.length;$+=1)c.delete(g[$]);kn(e,T.prev,E.next),kn(e,f,T),kn(e,E,p),u=p,f=E,w-=1,h=[],g=[]}else c.delete(_),wr(_,u,n),kn(e,_.prev,_.next),kn(e,_,f===null?e.effect.first:f.next),kn(e,f,_),f=_;continue}for(h=[],g=[];u!==null&&u!==_;)(c??=new Set).add(u),g.push(u),u=u.next;if(u===null)continue}(_.f&cn)===0&&h.push(_),f=_,u=_.next}if(e.outrogroups!==null){for(const C of e.outrogroups)C.pending.size===0&&(Ri(Ar(C.done)),e.outrogroups?.delete(C));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||c!==void 0){var D=[];if(c!==void 0)for(_ of c)(_.f&St)===0&&D.push(_);for(;u!==null;)(u.f&St)===0&&u!==e.fallback&&D.push(u),u=u.next;var P=D.length;if(P>0){var S=(r&Do)!==0&&l===0?n:null;if(o){for(w=0;w<P;w+=1)D[w].nodes?.a?.measure();for(w=0;w<P;w+=1)D[w].nodes?.a?.fix()}Ds(e,D,S)}}o&&Pn(()=>{if(v!==void 0)for(_ of v)_.nodes?.a?.apply()})}function Es(e,t,n,r,i,o,l,s){var u=(l&Sl)!==0?(l&Ll)===0?pi(n,!1,!1):On(n):null,c=(l&Rl)!==0?On(i):null;return{v:u,i:c,e:Rt(()=>(o(t,u??n,c??i,s),()=>{e.delete(r)}))}}function wr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,o=t&&(t.f&cn)===0?t.nodes.start:n;r!==null;){var l=hr(r);if(o.before(r),r===i)return;r=l}}function kn(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function vn(e,t,...n){var r=new Si(e);gr(()=>{const i=t()??null;r.ensure(i,i&&(o=>i(o,...n)))},wn)}function Ii(e,t,n){var r=new Si(e);gr(()=>{var i=t()??null;r.ensure(i,i&&(o=>n(o,i)))},wn)}function Ye(e,t){var n=void 0,r;us(()=>{n!==(n=t())&&(r&&(_t(r),r=null),n&&(r=Rt(()=>{ki(()=>n(e))})))})}function fa(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=fa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Cs(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=fa(e))&&(r&&(r+=" "),r+=t);return r}function nn(e){return typeof e=="object"?Cs(e):e??""}function Ts(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function da(e,t=!1){var n=t?" !important;":";",r="";for(var i in e){var o=e[i];o!=null&&o!==""&&(r+=" "+i+": "+o+n)}return r}function Li(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function xs(e,t){if(t){var n="",r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,l=0,s=!1,u=[];r&&u.push(...Object.keys(r).map(Li)),i&&u.push(...Object.keys(i).map(Li));var c=0,f=-1;const y=e.length;for(var v=0;v<y;v++){var h=e[v];if(s?h==="/"&&e[v-1]==="*"&&(s=!1):o?o===h&&(o=!1):h==="/"&&e[v+1]==="*"?s=!0:h==='"'||h==="'"?o=h:h==="("?l++:h===")"&&l--,!s&&o===!1&&l===0){if(h===":"&&f===-1)f=v;else if(h===";"||v===y-1){if(f!==-1){var g=Li(e.substring(c,f).trim());if(!u.includes(g)){h!==";"&&v++;var m=e.substring(c,v).trim();n+=" "+m+";"}}c=v+1,f=-1}}}}return r&&(n+=da(r)),i&&(n+=da(i,!0)),n=n.trim(),n===""?null:n}return e==null?null:String(e)}function N(e,t,n,r,i,o){var l=e.__className;if(l!==n||l===void 0){var s=Ts(n);s==null?e.removeAttribute("class"):e.className=s,e.__className=n}return o}function Mi(e,t={},n,r){for(var i in n){var o=n[i];t[i]!==o&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,o,r))}}function qt(e,t,n,r){var i=e.__style;if(i!==t){var o=xs(t,r);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else r&&(Array.isArray(r)?(Mi(e,n?.[0],r[0]),Mi(e,n?.[1],r[1],"important")):Mi(e,n,r));return r}const Ss=Symbol("is custom element"),Rs=Symbol("is html");function ze(e,t,n,r){var i=Is(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[yl]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Ls(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Is(e){return e.__attributes??={[Ss]:e.nodeName.includes("-"),[Rs]:e.namespaceURI===Ul}}var ha=new Map;function Ls(e){var t=e.getAttribute("is")||e.nodeName,n=ha.get(t);if(n)return n;ha.set(t,n=[]);for(var r,i=e,o=Element.prototype;o!==i;){r=go(i);for(var l in r)r[l].set&&n.push(l);i=di(i)}return n}function En(e,t,n){var r=Sn(e,t);r&&r.set&&(e[t]=n,Br(()=>{e[t]=null}))}class Pi{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(t){this.#n=t}observe(t,n){var r=this.#e.get(t)||new Set;return r.add(n),this.#e.set(t,r),this.#r().observe(t,this.#n),()=>{var i=this.#e.get(t);i.delete(n),i.size===0&&(this.#e.delete(t),this.#t.unobserve(t))}}#r(){return this.#t??(this.#t=new ResizeObserver(t=>{for(var n of t){Pi.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}}))}}var Ms=new Pi({box:"border-box"});function Xr(e,t,n){var r=Ms.observe(e,()=>n(e[t]));ki(()=>(W(()=>n(e[t])),r))}function va(e,t){return e===t||e?.[Ln]===t}function yt(e={},t,n,r){return ki(()=>{var i,o;return Go(()=>{i=o,o=r?.()||[],W(()=>{e!==n(...o)&&(t(e,...o),i&&va(n(...i),e)&&t(null,...i))})}),()=>{Pn(()=>{o&&va(n(...o),e)&&t(null,...o)})}}),e}function Ps(e=!1){const t=Ue,n=t.l.u;if(!n)return;let r=()=>gs(t.s);if(e){let i=0,o={};const l=fr(()=>{let s=!1;const u=t.s;for(const c in u)u[c]!==o[c]&&(o[c]=u[c],s=!0);return s&&i++,i});r=()=>a(l)}n.b.length&&Di(()=>{ga(t,r),Or(n.b)}),Qe(()=>{const i=W(()=>n.m.map(gl));return()=>{for(const o of i)typeof o=="function"&&o()}}),n.a.length&&Qe(()=>{ga(t,r),Or(n.a)})}function ga(e,t){if(e.l.s)for(const n of e.l.s)a(n);t()}function Ai(e,t,n){if(e==null)return t(void 0),n&&n(void 0),gt;const r=W(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const er=[];function _a(e,t){return{subscribe:dt(e,t).subscribe}}function dt(e,t=gt){let n=null;const r=new Set;function i(s){if(Eo(e,s)&&(e=s,n)){const u=!er.length;for(const c of r)c[1](),er.push(c,e);if(u){for(let c=0;c<er.length;c+=2)er[c][0](er[c+1]);er.length=0}}}function o(s){i(s(e))}function l(s,u=gt){const c=[s,u];return r.add(c),r.size===1&&(n=t(i,o)||gt),s(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:l}}function Ze(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return _a(n,(l,s)=>{let u=!1;const c=[];let f=0,v=gt;const h=()=>{if(f)return;v();const m=t(r?c[0]:c,l,s);o?l(m):v=typeof m=="function"?m:gt},g=i.map((m,y)=>Ai(m,_=>{c[y]=_,f&=~(1<<y),u&&h()},()=>{f|=1<<y}));return u=!0,h(),function(){Or(g),v(),u=!1}})}function pr(e){let t;return Ai(e,n=>t=n)(),t}let Kr=!1,Oi=Symbol();function d(e,t,n){const r=n[t]??={store:null,source:pi(void 0),unsubscribe:gt};if(r.store!==e&&!(Oi in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=gt;else{var i=!0;r.unsubscribe=Ai(e,o=>{i?r.source.v=o:Z(r.source,o)}),i=!1}return e&&Oi in n?pr(e):a(r.source)}function Be(e,t){return e.set(t),t}function $e(){const e={};function t(){Br(()=>{for(var n in e)e[n].unsubscribe();vo(e,Oi,{enumerable:!1,value:!0})})}return[e,t]}function Ge(e,t,n){return e.set(n),t}function As(e){var t=Kr;try{return Kr=!1,[e(),Kr]}finally{Kr=t}}function Se(e,t,n,r){var i=!Kn||(n&Pl)!==0,o=(n&Ol)!==0,l=(n&Fl)!==0,s=r,u=!0,c=()=>(u&&(u=!1,s=l?W(r):r),s),f;if(o){var v=Ln in e||ml in e;f=Sn(e,t)?.set??(v&&t in e?p=>e[t]=p:void 0)}var h,g=!1;o?[h,g]=As(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=c(),f&&(i&&kl(),f(h)));var m;if(i?m=()=>{var p=e[t];return p===void 0?c():(u=!0,p)}:m=()=>{var p=e[t];return p!==void 0&&(s=void 0),p===void 0?s:p},i&&(n&Al)===0)return m;if(f){var y=e.$$legacy;return(function(p,$){return arguments.length>0?((!i||!$||y||g)&&f($?m():p),p):m()})}var _=!1,w=((n&Ml)!==0?fr:yi)(()=>(_=!1,m()));o&&a(w);var k=xe;return(function(p,$){if(arguments.length>0){const T=$?a(w):i&&o?Fn(p):p;return Z(w,T),_=!0,s!==void 0&&(s=T),p}return Un&&_||(k.f&un)!==0?w.v:a(w)})}function tr(e){Ue===null&&$o(),Kn&&Ue.l!==null?Os(Ue).m.push(e):Qe(()=>{const t=W(e);if(typeof t=="function")return t})}function Os(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const Fs="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Fs);function Fi(e,t=void 0){return function(n){return n.key==="Enter"||n.key===" "&&!n.preventDefault()?e.call(t,n):void 0}}function ot(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function Ns(e){return t=>{let n=r=>{t&&!t.contains(r.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:r}}))};return document.addEventListener(e,n,!0),()=>{document.removeEventListener(e,n,!0)}}}function Ni(e){return t=>{let n=new ResizeObserver(r=>{for(let i of r)e(t,i)});return n.observe(t),()=>{n.unobserve(t)}}}function ma(e,t){return n=>{let r=new IntersectionObserver(i=>{for(let o of i)e(n,o)},t);return r.observe(n),()=>{r.unobserve(n)}}}const Zr=86400;function rn(e=void 0){return e!==void 0?e instanceof Date?$a(e):Ws(e):$a(new Date)}function tt(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let n=0,r=2;for(let i of e.split(":",3))n+=parseInt(i,10)*Math.pow(60,r--);e={seconds:n}}else e instanceof Date&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function Q(e){return new Date(e.getTime())}function Me(e,t,n=1){e.setUTCFullYear(e.getUTCFullYear()+n*t.years);let r=e.getUTCMonth()+n*t.months;for(e.setUTCMonth(r),r%=12,r<0&&(r+=12);e.getUTCMonth()!==r;)nr(e);return e.setUTCDate(e.getUTCDate()+n*t.days),e.setUTCSeconds(e.getUTCSeconds()+n*t.seconds),e}function Jr(e,t,n=1){return Me(e,t,-n)}function Xt(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function nr(e,t=1){return Xt(e,-t)}function on(e){return e.setUTCHours(0,0,0,0),e}function Je(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function Mt(e,t=19){return e.toISOString().substring(0,t)}function Ct(e,...t){return t.every(n=>e.getTime()===n.getTime())}function Hs(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n>=0?n:n+7)),e}function ya(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n<=0?n:n-7)),e}function ba(e){return typeof e=="string"&&e.length<=10}function Hi(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function ke(e){return e.seconds}function wa(e,t){return Me(e,t),e}function pa(e,t,n){if(Jr(e,t),n.length&&n.length<7)for(;n.includes(e.getUTCDay());)nr(e);return e}function Us(e,t){e=Q(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let n=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-n)/1e3/Zr+1)/7)}function $a(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function Ws(e){const t=e.match(/\d+/g);return new Date(Date.UTC(Number(t[0]),Number(t[1])-1,Number(t[2]),Number(t[3]||0),Number(t[4]||0),Number(t[5]||0)))}function ht(...e){return Object.assign(...e)}function gn(e){return Object.keys(e)}function zs(e){return Object.entries(e)}function Ui(e){return Math.floor(e)}function Bs(e){return Math.ceil(e)}function an(...e){return Math.min(...e)}function Pt(...e){return Math.max(...e)}function Gs(){return Symbol("ec")}function Da(e){return Array.isArray(e)}function pe(e){return typeof e=="function"}function Vs(e){for(let t in e)if(Object.hasOwn(e,t))return!1;return!0}function Ys(e){return e()}function ka(e){e.forEach(Ys)}function qs(){}const $r=e=>e;function Wi(e,t=void 0){return function(n){n.stopPropagation(),e&&e.call(t,n)}}function Ea(){return window.getComputedStyle(document.documentElement).direction==="rtl"}let zi=Gs();function Ca(e,t){e[zi]=t}function Xs(e){return!!e?.[zi]}function _n(e){return e[zi]}function Ta(e,t,n,r=[]){let i=document.createElement(e);i.className=t,typeof n=="string"?i.innerText=n:n.domNodes?i.replaceChildren(...n.domNodes):n.html&&(i.innerHTML=n.html);for(let o of r)i.setAttribute(...o);return i}function Cn(e){return e.getBoundingClientRect()}function xa(e,t){for(;t--;)e=e.parentElement;return e}function zn(e){return Cn(e).height}function rr(e,t,n=document,r=[]){r.push(n);for(let i of n.elementsFromPoint(e,t)){if(Xs(i))return i;if(i.shadowRoot&&!r.includes(i.shadowRoot)){let o=rr(e,t,i.shadowRoot,r);if(o)return o}}return null}function Dr(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Ks(e,t,n,r){return{type:e,title:t,currentStart:n.start,currentEnd:n.end,activeStart:r.start,activeEnd:r.end,calendar:void 0}}function bt(e){return e=ht({},e),e.currentStart=Je(e.currentStart),e.currentEnd=Je(e.currentEnd),e.activeStart=Je(e.activeStart),e.activeEnd=Je(e.activeEnd),e}function Sa(e){return e.startsWith("list")}let Zs=1;function Qr(e){return e.map(t=>{let n={id:"id"in t?String(t.id):`{generated-${Zs++}}`,resourceIds:Bi(t,"resourceId").map(String),allDay:t.allDay??(ba(t.start)&&ba(t.end)),start:rn(t.start),end:rn(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:Bi(t,"className"),styles:Bi(t,"style")};if(n.allDay){on(n.start);let r=Q(n.end);on(n.end),(!Ct(n.end,r)||Ct(n.end,n.start))&&Xt(n.end)}return n})}function Bi(e,t){let n=e[t+"s"]??e[t]??[];return Da(n)?n:[n]}function Js(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 Qs(e,t,n,r,i,o){let l=i.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?Hi(Q(e.start),e.end):e.start),s;if(n&&(s=pe(n)?n({event:at(e.event),timeText:l,view:bt(o)}):n),s===void 0){let u;switch(e.event.display){case"background":u=[];break;case"pointer":u=e.event.allDay?[]:[Ra(l,e,r)];break;default:u=[...e.event.allDay?[]:[Ra(l,e,r)],Ta("h4",r.eventTitle,e.event.title)]}s={domNodes:u}}return[l,s]}function Ra(e,t,n){return Ta("time",n.eventTime,e,[["datetime",Mt(t.start)]])}function js(e,t,n){let r=t.classNames;return e&&(pe(e)&&(e=e({event:at(t),view:bt(n)})),r=[...Da(e)?e:[e],...r]),r}function at(e){return Ia(e,Je)}function Gi(e){return Ia(e,Q)}function Ia(e,t){return e=ht({},e),e.start=t(e.start),e.end=t(e.end),e}function Vi(e,t){e.length=t.length;for(let n of e)n?.reposition()}function kr(e,t,n,r=void 0){return(!r||e.resourceIds.includes(r.id))&&e.start<n&&e.end>t}function jr(e){return eu(e)||tu(e)||nu(e)}function Ht(e){return e==="background"}function eu(e){return e==="preview"}function tu(e){return e==="ghost"}function nu(e){return e==="pointer"}function Er(e,t,n){let r={start:e.start>t?e.start:t,end:e.end<n?e.end:n,event:e};return r.zeroDuration=Ct(r.start,r.end),r}function ir(e,t){let n=[],r,i,o;for(let{gridColumn:l,gridRow:s,resource:u,dayStart:c,dayEnd:f,disabled:v}of t)!v&&kr(e,c,f,u)&&(n.push(c),r=f,i||(i=l,o=s));if(n.length){let l=Er(e,n[0],r);return ht(l,{gridColumn:i,gridRow:o,dates:n}),[l]}return[]}function La(e){let t={},n={};for(let r of e){let{gridColumn:i,gridRow:o}=r;for(let s=1;s<r.dates.length;++s){let u=`${o}_${i+s}`;n[u]?n[u].chunks.push(r):n[u]={sorted:!1,chunks:[r]}}let l=`${o}_${i}`;r.long=n[l],r.prev=t[l],t[l]=r}}function Ma(e,t,n=0){e.prev&&(n=e.prev.bottom+1);let r=n+t;if(e.long){let i=e.long;i.sorted||(i.chunks.sort((o,l)=>o.top-l.top),i.sorted=!0);for(let o of i.chunks)if(n<o.bottom&&r>o.top){let l=o.bottom-n+1;n+=l,r+=l}}return ht(e,{top:n,bottom:r}),n}function Pa(e,t,n){n.update(r=>r.set(t,e))}function ru(e){ka(e),e.clear()}function iu(e,t,n){t??=e,n.has(t)||n.set(t,setTimeout(()=>{n.delete(t),e()}))}function ei(e){return ni(e,"day")}function ti(e){return ni(e,"week")}function Yi(e){return ni(e,"month")}function ou(e){return ni(e,"year")}function ni(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function Ut(e){return t=>({...t,view:e})}function au(e){let t,n;return e&&({start:t,end:n}=e,t&&(t=on(rn(t))),n&&(n=on(rn(n)))),{start:t,end:n}}function or(e,t){return t.start&&e<t.start||t.end&&e>t.end}function Aa(e){let t=[];return Oa(e,0,t),t}function Oa(e,t,n){let r=[];for(let i of e){let o=lu(i);r.push(o),n.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};Ca(o,l),i.children&&(l.children=Oa(i.children,t+1,n))}return r}function lu(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:e.eventBackgroundColor,eventTextColor:e.eventTextColor,extendedProps:e.extendedProps??{}}}function su(e,t){return Fa(e,t)?.eventBackgroundColor}function uu(e,t){return Fa(e,t)?.eventTextColor}function Fa(e,t){return t.find(n=>e.resourceIds.includes(n.id))}function Na(e,t,n,r,i){let o=[];e=Q(e);let l=Q(e);for(Me(e,r.min),Me(l,r.max);e<l;)o.push([Mt(e),i.format(e)]),Me(e,t,n);let s=Ui((e-l)/1e3/ke(t));return s&&s!==n&&(o.at(-1)[2]=n-s),o}function Ha(e,t,n,r,i){let o=tt(e),l=tt(t);if(n){let s=tt(an(ke(o),Pt(0,ke(l)-Zr))),u=tt(Pt(ke(l),ke(s)+Zr)),c=pe(n?.eventFilter)?n.eventFilter:f=>!Ht(f.display);e:for(let f of r){let v=Me(Q(f),o),h=Me(Q(f),l),g=Me(Q(f),s),m=Me(Q(f),u);for(let y of i)if(!y.allDay&&c(y)&&y.start<m&&y.end>g){if(y.start<v){let _=Pt((y.start-f)/1e3,ke(s));_<ke(o)&&(o.seconds=_)}if(y.end>h){let _=an((y.end-f)/1e3,ke(u));_>ke(l)&&(l.seconds=_)}if(ke(o)===ke(s)&&ke(l)===ke(u))break e}}}return{min:o,max:l}}function Bn(e,t){return Ze([e,t],([n,r])=>{let i=pe(r)?{format:r}:new Intl.DateTimeFormat(n,r);return{format:o=>i.format(Je(o))}})}function Ua(e,t){return Ze([e,t],([n,r])=>{let i;if(pe(r))i=r;else{let o=new Intl.DateTimeFormat(n,r);i=(l,s)=>{if(l<=s)return o.formatRange(l,s);{let u=o.formatRangeToParts(s,l),c="",f=["startRange","endRange"],v=[!1,!1];for(let h of u){let g=f.indexOf(h.source);g>=0?v[g]||(c+=cu(f[1-g],u),v[g]=!0):c+=h.value}return c}}}return{formatRange:(o,l)=>i(Je(o),Je(l))}})}function cu(e,t){let n="";for(let r of t)r.source==e&&(n+=r.value);return n}const Wa=["buttonText","customButtons","theme"];function fu(e){let t={buttonText:{today:"today"},customButtons:{},date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,resources:[],selectable:!1,theme:{allDay:"ec-all-day",active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",colHead:"ec-col-head",day:"ec-day",dayHead:"ec-day-head",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",grid:"ec-grid",header:"ec-header",hidden:"ec-hidden",highlight:"ec-highlight",icon:"ec-icon",main:"ec-main",noBeb:"ec-no-beb",noIeb:"ec-no-ieb",today:"ec-today",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"]},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let n of e)n.createOptions?.(t);return t}function du(e){let t={date:n=>on(rn(n)),duration:tt,events:Qr,eventSources:Js,hiddenDays:n=>[...new Set(n)],highlightedDates:n=>n.map(r=>on(rn(r))),resources:Aa,validRange:au};for(let n of e)n.createParsers?.(t);return t}function hu(e,t){let n=[];for(let r of gn(e))e[r]!==t[r]&&n.push([r,e[r]]);return n}function vu(e){return Ze(e.view,t=>t?.startsWith("dayGrid"))}function gu(e){return Ze([e._currentRange,e.firstDay,e.slotMaxTime,e._dayGrid],([t,n,r,i])=>{let o=Q(t.start),l=Q(t.end);if(i)ya(o,n),Hs(l,n);else if(r.days||r.seconds>Zr){Me(nr(l),r);let s=nr(Q(l));s<o&&(o=s)}return{start:o,end:l}})}function _u(e){return Ze([e.date,e.duration,e.firstDay],([t,n,r])=>{let i=Q(t),o;return n.months?i.setUTCDate(1):n.inWeeks&&ya(i,r),o=Me(Q(i),n),{start:i,end:o}})}function mu(e){return Ze([e._activeRange,e.hiddenDays],([t,n])=>{let r=[],i=on(Q(t.start)),o=on(Q(t.end));for(;i<o;)n.includes(i.getUTCDay())||r.push(Q(i)),Xt(i);return!r.length&&n.length&&n.length<7&&(e.date.update(l=>{for(;n.includes(l.getUTCDay());)Xt(l);return l}),r=pr(e._viewDates)),r})}function yu(e){return Ze([e.date,e._activeRange,e._intlTitle,e._dayGrid],([t,n,r,i])=>i?r.formatRange(t,t):r.formatRange(n.start,nr(Q(n.end))))}function bu(e){return Ze([e.view,e._viewTitle,e._currentRange,e._activeRange],t=>Ks(...t))}function wu(e){let t=dt([]),n,r=0,i={};return Ze([e.events,e.eventSources,e._activeRange,e._fetchedRange,e.lazyFetching,e.loading],(o,l)=>Pa(()=>{let[s,u,c,f,v,h]=o;if(!u.length){l(s);return}if(!f.start||f.start>c.start||f.end<c.end||!v){n&&n.abort(),n=new AbortController,pe(h)&&!r&&h(!0);let g=()=>{--r===0&&pe(h)&&h(!1)},m=[],y=p=>g(),_=p=>{m=m.concat(Qr(p)),l(m),g()},w=Mt(c.start),k=Mt(c.end);for(let p of u){if(pe(p.events)){let $=p.events({start:Je(c.start),end:Je(c.end),startStr:w,endStr:k},_,y);$!==void 0&&Promise.resolve($).then(_,y)}else{let $=pe(p.extraParams)?p.extraParams():ht({},p.extraParams);$.start=w,$.end=k,$=new URLSearchParams($);let T=p.url,E={},D;["GET","HEAD"].includes(p.method)?T+=(T.includes("?")?"&":"?")+$:(E["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",D=String($)),fetch(T,{method:p.method,headers:E,body:D,signal:n.signal,credentials:"same-origin"}).then(P=>P.json()).then(_).catch(y)}++r}f.start=c.start,f.end=c.end}},i,e._queue),[]).subscribe(t.set),t}function pu(e){let t;e._view.subscribe(r=>t=r);let n={};return Ze([e._events,e.eventFilter,e.eventOrder,e.filterEventsWithResources,e.resources],(r,i)=>Pa(()=>{let[o,l,s,u,c]=r,f=[...o];if(pe(l)){let v=o.map(at);f=f.filter((h,g)=>l({event:at(h),index:g,events:v,view:t}))}u&&(f=f.filter(v=>c.some(h=>v.resourceIds.includes(h.id)))),pe(s)?f.sort((v,h)=>s(at(v),at(h))):f.sort((v,h)=>v.start-h.start||h.allDay-v.allDay),i(f)},n,e._queue),[])}function $u(){return _a(rn(),e=>{let t=setInterval(()=>{e(rn())},1e3);return()=>clearInterval(t)})}function Du(e){let t=rn(),n=dt(t);return Ze(e._now,r=>on(Q(r))).subscribe(r=>{Ct(t,r)||(t=r,n.set(r))}),n}class ku{constructor(t,n){t=t||[];let r=fu(t),i=du(t);r=qi(r,i),n=qi(n,i);for(let[l,s]of Object.entries(r))this[l]=dt(s);this._queue=dt(new Map),this._tasks=new Map,this._auxiliary=dt([]),this._dayGrid=vu(this),this._currentRange=_u(this),this._activeRange=gu(this),this._fetchedRange=dt({start:void 0,end:void 0}),this._events=wu(this),this._mainEl=dt(void 0),this._now=$u(),this._today=Du(this),this._intlEventTime=Ua(this.locale,this.eventTimeFormat),this._intlDayHeader=Bn(this.locale,this.dayHeaderFormat),this._intlDayHeaderAL=Bn(this.locale,this.dayHeaderAriaLabelFormat),this._intlTitle=Ua(this.locale,this.titleFormat),this._viewTitle=yu(this),this._viewDates=mu(this),this._view=bu(this),this._viewComponent=dt(void 0),this._filteredEvents=pu(this),this._interaction=dt({}),this._iEvents=dt([null,null]),this._iClasses=dt($r),this._iClass=dt(void 0),this._set=(l,s)=>{Xi(l,this)&&(i[l]&&(s=i[l](s)),this[l].set(s))},this._get=l=>Xi(l,this)?pr(this[l]):void 0;for(let l of t)l.createStores?.(this);n.view&&this.view.set(n.view);let o=new Set([...gn(r.views),...gn(n.views??{})]);for(let l of o){let s=za(r,r.views[l]??{}),u=za(s,n,n.views?.[l]??{}),c=u.component;Eu(u,this);for(let f of gn(u)){let{set:v,_set:h=v,...g}=this[f];this[f]={set:Wa.includes(f)?m=>{if(pe(m)){let y=m(s[f]);u[f]=y,v(v===h?y:m)}else u[f]=m,v(m)}:m=>{u[f]=m,v(m)},_set:h,...g}}this.view.subscribe(f=>{if(f===l){this._viewComponent.set(c),pe(u.viewDidMount)&&Yr().then(()=>u.viewDidMount({view:bt(pr(this._view))}));for(let v of gn(u))this[v]._set(u[v])}})}}}function qi(e,t){let n={...e};for(let r of gn(t))r in n&&(n[r]=t[r](n[r]));if(e.views){n.views={};for(let r of gn(e.views))n.views[r]=qi(e.views[r],t)}return n}function za(...e){let t={};for(let n of e){let r={};for(let i of Wa)pe(n[i])&&(r[i]=n[i](t[i]));t={...t,...n,...r}}return t}function Eu(e,t){gn(e).filter(n=>!Xi(n,t)||n==="view").forEach(n=>delete e[n])}function Xi(e,t){return t.hasOwnProperty(e)&&e[0]!=="_"}var Cu=j("<h2></h2>"),Tu=j("<button><i></i></button>"),xu=j("<button><i></i></button>"),Su=j("<button> </button>"),Ru=j("<button></button>"),Iu=j("<button> </button>");function Ba(e,t){ge(t,!0);const n=()=>d(p,"$_viewDates",m),r=()=>d(C,"$validRange",m),i=()=>d(w,"$_today",m),o=()=>d(_,"$_currentRange",m),l=()=>d(E,"$date",m),s=()=>d(D,"$duration",m),u=()=>d(P,"$hiddenDays",m),c=()=>d(S,"$theme",m),f=()=>d(k,"$_viewTitle",m),v=()=>d($,"$buttonText",m),h=()=>d(T,"$customButtons",m),g=()=>d(M,"$view",m),[m,y]=$e();let{_currentRange:_,_today:w,_viewTitle:k,_viewDates:p,buttonText:$,customButtons:T,date:E,duration:D,hiddenDays:P,theme:S,validRange:C,view:M}=De("state"),O=Te(!1),H=Te(!1),G=Te(!1),V=!1;Di(()=>{n(),r(),t.buttons,W(()=>{V||(V=!0,t.buttons.includes("prev")&&(Z(O,!1),r().start&&Z(O,ee(U),!0)),t.buttons.includes("next")&&(Z(H,!1),r().end&&Z(H,ee(ne),!0)),t.buttons.includes("today")&&(Z(G,i()>=o().start&&i()<o().end,!0),!a(G)&&(r().start||r().end)&&Z(G,ee(z),!0)),Yr().then(()=>V=!1))})});function ee(re){let B=Q(l());re();let Ee=n().every(he=>or(he,r()));return Be(E,B),Ee}function U(){Be(E,pa(l(),s(),u()))}function ne(){Be(E,wa(l(),s()))}function z(){Be(E,Q(i()))}var q=de(),se=J(q);le(se,17,()=>t.buttons,ce,(re,B)=>{var Ee=de(),he=J(Ee);{var K=Pe=>{var Ae=Cu();Ye(Ae,()=>ot(f())),ue(()=>N(Ae,1,c().title)),x(Pe,Ae)},Ve=Pe=>{var Ae=de(),me=J(Ae);{var Xe=je=>{var R=Tu();R.__click=U;var te=fe(R);ue(()=>{N(R,1,`${c().button??""} ec-${a(B)??""}`),ze(R,"aria-label",v().prev),ze(R,"title",v().prev),R.disabled=a(O),N(te,1,`${c().icon??""} ec-${a(B)??""}`)}),x(je,R)},wt=je=>{var R=de(),te=J(R);{var He=X=>{var oe=xu();oe.__click=ne;var Oe=fe(oe);ue(()=>{N(oe,1,`${c().button??""} ec-${a(B)??""}`),ze(oe,"aria-label",v().next),ze(oe,"title",v().next),oe.disabled=a(H),N(Oe,1,`${c().icon??""} ec-${a(B)??""}`)}),x(X,oe)},Ie=X=>{var oe=de(),Oe=J(oe);{var nt=pt=>{var $t=Su();$t.__click=z;var mn=fe($t);ue(()=>{N($t,1,`${c().button??""} ec-${a(B)??""}`),$t.disabled=a(G),ua(mn,v()[a(B)])}),x(pt,$t)},At=pt=>{var $t=de(),mn=J($t);{var Gn=vt=>{var lt=Ru();lt.__click=function(...Wt){h()[a(B)].click?.apply(this,Wt)},Ye(lt,()=>ot(h()[a(B)].text)),ue(()=>N(lt,1,nn([c().button,`ec-${a(B)}`,h()[a(B)].active&&c().active]))),x(vt,lt)},yn=vt=>{var lt=de(),Wt=J(lt);{var bn=zt=>{var Bt=Iu();Bt.__click=()=>Be(M,a(B));var Tn=fe(Bt);ue(()=>{N(Bt,1,nn([c().button,`ec-${a(B)}`,g()===a(B)&&c().active])),ua(Tn,v()[a(B)])}),x(zt,Bt)};we(Wt,zt=>{a(B)!==""&&zt(bn)},!0)}x(vt,lt)};we(mn,vt=>{h()[a(B)]?vt(Gn):vt(yn,!1)},!0)}x(pt,$t)};we(Oe,pt=>{a(B)==="today"?pt(nt):pt(At,!1)},!0)}x(X,oe)};we(te,X=>{a(B)==="next"?X(He):X(Ie,!1)},!0)}x(je,R)};we(me,je=>{a(B)==="prev"?je(Xe):je(wt,!1)},!0)}x(Pe,Ae)};we(he,Pe=>{a(B)==="title"?Pe(K):Pe(Ve,!1)})}x(re,Ee)}),x(e,q),_e(),y()}Dn(["click"]);var Lu=j("<div><!></div>"),Mu=j("<div></div>"),Pu=j("<nav></nav>");function Au(e,t){ge(t,!0);const n=()=>d(l,"$headerToolbar",i),r=()=>d(s,"$theme",i),[i,o]=$e();let{headerToolbar:l,theme:s}=De("state"),u=b(()=>{let f={};for(let v of["start","center","end"])f[v]=n()[v]?.split(" ").map(h=>h.split(","))??[];return f});var c=Pu();le(c,21,()=>gn(a(u)),ce,(f,v)=>{var h=Mu();le(h,21,()=>a(u)[a(v)],ce,(g,m)=>{var y=de(),_=J(y);{var w=p=>{var $=Lu(),T=fe($);Ba(T,{get buttons(){return a(m)}}),ue(()=>N($,1,r().buttonGroup)),x(p,$)},k=p=>{Ba(p,{get buttons(){return a(m)}})};we(_,p=>{a(m).length>1?p(w):p(k,!1)})}x(g,y)}),ue(()=>N(h,1,`ec-${a(v)??""}`)),x(f,h)}),ue(()=>N(c,1,r().toolbar)),x(e,c),_e(),o()}function Ou(e,t){ge(t,!0);const n=()=>d(m,"$_activeRange",c),r=()=>d(v,"$datesSet",c),i=()=>d(k,"$_view",c),o=()=>d(y,"$_filteredEvents",c),l=()=>d(h,"$eventAllUpdated",c),s=()=>d(w,"$_queue",c),u=()=>d(g,"$_auxiliary",c),[c,f]=$e();let{datesSet:v,eventAllUpdated:h,_auxiliary:g,_activeRange:m,_filteredEvents:y,_tasks:_,_queue:w,_view:k}=De("state");Qe(()=>{n(),W(()=>{pe(r())&&r()({start:Je(n().start),end:Je(n().end),startStr:Mt(n().start),endStr:Mt(n().end),view:bt(i())})})}),Qe(()=>{o(),W(()=>{pe(l())&&iu(()=>l()({view:bt(i())}),"eau",_)})}),Qe(()=>{s(),W(()=>{ru(s())})});var p=de(),$=J(p);le($,1,u,ce,(T,E)=>{var D=de(),P=J(D);Ii(P,()=>a(E),(S,C)=>{C(S,{})}),x(T,D)}),x(e,p),_e(),f()}var Fu=j("<div><!> <!></div> <!>",1);function Nu(e,t){ge(t,!0);const n=()=>d($,"$_events",h),r=()=>d(k,"$_interaction",h),i=()=>d(T,"$date",h),o=()=>d(E,"$duration",h),l=()=>d(D,"$hiddenDays",h),s=()=>d(w,"$_viewComponent",h),u=()=>d(S,"$theme",h),c=()=>d(p,"$_iClass",h),f=()=>d(P,"$height",h),v=()=>d(C,"$view",h),[h,g]=$e();let m=Se(t,"plugins",19,()=>[]),y=Se(t,"options",19,()=>({})),_=new ku(m(),y());Bl("state",_);let{_viewComponent:w,_interaction:k,_iClass:p,_events:$,date:T,duration:E,hiddenDays:D,height:P,theme:S,view:C}=_,M={...y()};Qe(()=>{for(let[R,te]of hu(y(),M))W(()=>{O(R,te)});ht(M,y())});function O(R,te){return _._set(R,te),this}function H(R){let te=_._get(R);return te instanceof Date?Je(te):te}function G(){return _._fetchedRange.set({start:void 0,end:void 0}),this}function V(){return n().map(at)}function ee(R){for(let te of n())if(te.id==R)return at(te);return null}function U(R){return R=Qr([R])[0],n().push(R),Be($,n()),at(R)}function ne(R){let te=String(R.id),He=n().findIndex(Ie=>Ie.id===te);return He>=0?(R=Qr([R])[0],Ge($,W(n)[He]=R,W(n)),at(R)):null}function z(R){R=String(R);let te=n().findIndex(He=>He.id===R);return te>=0&&(n().splice(te,1),Be($,n())),this}function q(){return bt(pr(_._view))}function se(){return r().action?.unselect(),this}function re(R,te){let He=rr(R,te);if(He){let Ie=_n(He)(R,te);return Ie.date=Je(Ie.date),Ie}return null}function B(){return Be(T,wa(i(),o())),this}function Ee(){return Be(T,pa(i(),o(),l())),this}let he=b(s);var K={setOption:O,getOption:H,refetchEvents:G,getEvents:V,getEventById:ee,addEvent:U,updateEvent:ne,removeEventById:z,getView:q,unselect:se,dateFromPoint:re,next:B,prev:Ee},Ve=Fu(),Pe=J(Ve);let Ae;var me=fe(Pe);Au(me,{});var Xe=ie(me,2);Ii(Xe,()=>a(he),(R,te)=>{te(R,{})});var wt=ie(Pe,2);Ou(wt,{}),ue(R=>{N(Pe,1,nn([u().calendar,u().view,c()&&u()[c()]])),ze(Pe,"role",R),Ae=qt(Pe,"",Ae,{height:f()})},[()=>Sa(v())?"list":"table"]),x(e,Ve);var je=_e(K);return g(),je}function Hu(e){return Ze(e.hiddenDays,t=>7-t.length)}var Uu=j("<div><!></div>");function ri(e,t){ge(t,!0);const n=()=>d(k,"$_today",o),r=()=>d($,"$theme",o),i=()=>d(w,"$_interaction",o),[o,l]=$e();let s=Se(t,"el",15),u=Se(t,"allDay",3,!1),c=Se(t,"resource",3,void 0),f=Se(t,"dateFromPoint",3,()=>t.date),v=Se(t,"classes",3,$r),h=Se(t,"disabled",3,!1),g=Se(t,"highlight",3,!1),m=Se(t,"role",3,"cell"),y=Se(t,"noIeb",3,!1),_=Se(t,"noBeb",3,!1),{_interaction:w,_today:k,highlightedDates:p,theme:$}=De("state"),T=b(()=>Ct(t.date,n())),E=b(()=>v()([r().day,r().weekdays?.[t.date.getUTCDay()],a(T)&&r().today,g()&&r().highlight,h()&&r().disabled,y()&&r().noIeb,_()&&r().noBeb]));tr(()=>{Ca(s(),(S,C)=>({allDay:u(),date:f()(S,C),resource:c(),dayEl:s(),disabled:h()}))});var D=Uu();D.__pointerdown=function(...S){(h()?void 0:i().action?.select)?.apply(this,S)};var P=fe(D);vn(P,()=>t.children??gt),yt(D,S=>s(S),()=>s()),ue(()=>{N(D,1,nn(a(E))),ze(D,"role",m())}),x(e,D),_e(),l()}Dn(["pointerdown"]);var Wu=j("<div></div>"),zu=j("<article><!></article>");function Ga(e,t){ge(t,!0);const n=()=>d(V,"$resources",_),r=()=>d(E,"$eventBackgroundColor",_),i=()=>d(D,"$eventColor",_),o=()=>d(G,"$eventTextColor",_),l=()=>d(ee,"$theme",_),s=()=>d(M,"$eventClassNames",_),u=()=>d(U,"$_view",_),c=()=>d(T,"$displayEventEnd",_),f=()=>d(P,"$eventContent",_),v=()=>d(ne,"$_intlEventTime",_),h=()=>d(C,"$eventDidMount",_),g=()=>d(S,"$eventClick",_),m=()=>d(O,"$eventMouseEnter",_),y=()=>d(H,"$eventMouseLeave",_),[_,w]=$e();let k=Se(t,"el",15),p=Se(t,"classes",3,$r),$=Se(t,"styles",3,$r),{displayEventEnd:T,eventBackgroundColor:E,eventColor:D,eventContent:P,eventClick:S,eventDidMount:C,eventClassNames:M,eventMouseEnter:O,eventMouseLeave:H,eventTextColor:G,resources:V,theme:ee,_view:U,_intlEventTime:ne}=De("state"),z=b(()=>t.chunk.event),q=b(()=>t.chunk.event.display),se=b(()=>a(z).backgroundColor??su(a(z),n())??r()??i()),re=b(()=>a(z).textColor??uu(a(z),n())??o()),B=b(()=>zs($()({"background-color":a(se),color:a(re)})).map(X=>`${X[0]}:${X[1]}`).concat(a(z).styles).join(";")),Ee=b(()=>p()([Ht(a(q))?l().bgEvent:l().event,...js(s(),a(z),u())])),he=b(()=>Qs(t.chunk,c(),f(),l(),v(),u())),K=b(()=>_l(a(he),2)),Ve=b(()=>a(K)[0]),Pe=b(()=>a(K)[1]);tr(()=>{pe(h())&&h()({event:at(a(z)),timeText:a(Ve),el:k(),view:bt(u())})});function Ae(X,oe){return!jr(oe)&&pe(X)?Oe=>X({event:at(a(z)),el:k(),jsEvent:Oe,view:bt(u())}):void 0}let me=b(()=>!Ht(a(q))&&Ae(g(),a(q))||void 0),Xe=b(()=>a(me)&&Fi(a(me))),wt=b(()=>Ae(m(),a(q))),je=b(()=>Ae(y(),a(q)));var R=zu();R.__click=function(...X){a(me)?.apply(this,X)},R.__keydown=function(...X){a(Xe)?.apply(this,X)},R.__pointerdown=function(...X){t.onpointerdown?.apply(this,X)};{const X=oe=>{var Oe=Wu();Ye(Oe,()=>ot(a(Pe))),ue(()=>N(Oe,1,nn(l().eventBody))),x(oe,Oe)};var te=fe(R);{var He=oe=>{var Oe=de(),nt=J(Oe);vn(nt,()=>t.body,()=>X,()=>a(se),()=>a(re)),x(oe,Oe)},Ie=oe=>{X(oe)};we(te,oe=>{t.body?oe(He):oe(Ie,!1)})}yt(R,oe=>k(oe),()=>k())}ue(()=>{N(R,1,nn(a(Ee))),qt(R,a(B)),ze(R,"role",a(me)?"button":void 0),ze(R,"tabindex",a(me)?0:void 0)}),Lt("mouseenter",R,function(...X){a(wt)?.apply(this,X)}),Lt("mouseleave",R,function(...X){a(je)?.apply(this,X)}),x(e,R),_e(),w()}Dn(["click","keydown","pointerdown"]);var Bu=j("<div><!></div>");function Cr(e,t){ge(t,!0);const n=()=>d(h,"$theme",i),r=()=>d(v,"$_today",i),[i,o]=$e();let l=Se(t,"weekday",3,!0),s=Se(t,"colSpan",3,1),u=Se(t,"ariaHidden",3,!1),c=Se(t,"disabled",3,!1),f=Se(t,"highlight",3,!1),{_today:v,theme:h}=De("state");var g=Bu(),m=fe(g);vn(m,()=>t.children),ue(y=>{N(g,1,y),ze(g,"role",u()?null:"columnheader"),ze(g,"aria-colspan",u()||s()<=1?null:s()),ze(g,"aria-colindex",u()?null:t.colIndex),ze(g,"aria-hidden",u()?"true":null)},[()=>nn([t.className??n().colHead,l()&&n().weekdays?.[t.date.getUTCDay()],l()&&Ct(t.date,r())&&n().today,f()&&n().highlight,c()&&n().disabled])]),x(e,g),_e(),o()}var Gu=j("<time></time>");function ii(e,t){ge(t,!0);const n=()=>d(u,"$_intlDayHeaderAL",i),r=()=>d(s,"$_intlDayHeader",i),[i,o]=$e();let l=Se(t,"alPrefix",3,""),{_intlDayHeader:s,_intlDayHeaderAL:u}=De("state");var c=Gu();Ye(c,()=>ot(r().format(t.date))),ue((f,v)=>{ze(c,"datetime",f),ze(c,"aria-label",`${l()??""}${v??""}`)},[()=>Mt(t.date,10),()=>n().format(t.date)]),x(e,c),_e(),o()}function oi(e,t){ge(t,!0);const n=()=>d(u,"$_iClasses",i),r=()=>d(s,"$_interaction",i),[i,o]=$e();let l=Se(t,"el",15),{_interaction:s,_iClasses:u}=De("state"),c=b(()=>t.chunk.event),f=b(()=>t.chunk.event.display),v=b(()=>y=>n()(y,a(c)));function h(y){return r().action?.draggable(y)?_=>r().action.drag(y,_,t.forceDate,t.forceMargin):r().action?.noAction}let g=b(()=>!Ht(a(f))&&!jr(a(f))?h(a(c)):void 0),m=b(()=>r().resizer);Ga(e,{get chunk(){return t.chunk},get classes(){return a(v)},get styles(){return t.styles},get onpointerdown(){return a(g)},get el(){return l()},set el(_){l(_)},body:(_,w=gt)=>{var k=de(),p=J(k);{var $=E=>{var D=de(),P=J(D);Ii(P,()=>a(m),(S,C)=>{C(S,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(M,O)=>{var H=de(),G=J(H);vn(G,w),x(M,H)},$$slots:{default:!0}})}),x(E,D)},T=E=>{var D=de(),P=J(D);vn(P,w),x(E,D)};we(p,E=>{a(m)?E($):E(T,!1)})}x(_,k)},$$slots:{body:!0}}),_e(),o()}var Vu=j("<span></span>"),Yu=j('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),qu=j("<div><time></time> <!></div> <div><!></div>",1);function Xu(e,t){ge(t,!0);const n=()=>d(h,"$date",f),r=()=>d(y,"$theme",f),i=()=>d(_,"$weekNumbers",f),o=()=>d(g,"$firstDay",f),l=()=>d(w,"$weekNumberContent",f),s=()=>d(k,"$_hiddenChunks",f),u=()=>d(m,"$moreLinkContent",f),c=()=>d(p,"$_intlDayCell",f),[f,v]=$e();let{date:h,firstDay:g,moreLinkContent:m,theme:y,weekNumbers:_,weekNumberContent:w,_hiddenChunks:k,_intlDayCell:p,_popupDay:$}=De("state"),T=b(()=>t.day.dayStart),E=b(()=>t.day.disabled),D=b(()=>t.day.highlight),P=b(()=>a(T).getUTCMonth()!==n().getUTCMonth()),S=b(()=>V=>[...V,a(P)&&r().otherMonth]),C=b(()=>i()&&a(T).getUTCDay()===(o()?1:0)),M=b(()=>{let V;if(a(C)){let ee=Us(a(T),o());l()?V=pe(l())?l()({date:Je(a(T)),week:ee}):l():V="W"+String(ee).padStart(2,"0")}return V}),O=b(()=>s()[a(T).getTime()]),H=b(()=>{let V="";if(a(O)){let ee="+"+a(O).length+" more";u()?V=pe(u())?u()({num:a(O).length,text:ee}):u():V=ee}return V});function G(){Be($,t.day)}ri(e,{get date(){return a(T)},allDay:!0,get classes(){return a(S)},get disabled(){return a(E)},get highlight(){return a(D)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(V,ee)=>{var U=qu(),ne=J(U),z=fe(ne);Ye(z,()=>ot(c().format(a(T))));var q=ie(z,2);{var se=he=>{var K=Vu();Ye(K,()=>ot(a(M))),ue(()=>N(K,1,r().weekNumber)),x(he,K)};we(q,he=>{a(C)&&he(se)})}var re=ie(ne,2),B=fe(re);{var Ee=he=>{var K=Yu(),Ve=b(()=>Wi(G));K.__click=function(...me){a(Ve)?.apply(this,me)};var Pe=b(()=>Fi(G));K.__keydown=function(...me){a(Pe)?.apply(this,me)};var Ae=b(Wi);K.__pointerdown=function(...me){a(Ae)?.apply(this,me)},Ye(K,()=>ot(a(H))),x(he,K)};we(B,he=>{a(O)&&he(Ee)})}ue(he=>{N(ne,1,r().dayHead),ze(z,"datetime",he),N(re,1,r().dayFoot)},[()=>Mt(a(T),10)]),x(V,U)},$$slots:{default:!0}}),_e(),v()}Dn(["click","keydown","pointerdown"]);function ai(e,t){ge(t,!0);const n=()=>d(c,"$_colsCount",l),r=()=>d(h,"$dayMaxEvents",l),i=()=>d(f,"$_hiddenChunks",l),o=()=>d(v,"$_popupDay",l),[l,s]=$e();let u=Se(t,"inPopup",3,!1),{_colsCount:c,_hiddenChunks:f,_popupDay:v,dayMaxEvents:h}=De("state"),g=Te(void 0),m=Te(0),y=Te(!1),_=b(()=>t.chunk.event),w=b(()=>t.chunk.event.display),k=b(()=>t.gridEl?.children.item((t.chunk.gridRow-1)*n()+t.chunk.gridColumn-1));Qe(()=>{a(k)&&Z(m,zn(a(k).firstElementChild),!0)});let p=b(()=>S=>{if(S["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,S["grid-row"]=t.chunk.gridRow,!Ht(a(w))){let C=u()?1:a(m);if(a(_)._margin){let[M,O]=a(_)._margin;M>C&&t.chunk.gridRow===O&&(C=M)}S["margin-block-start"]=`${C}px`}return a(y)&&(S.visibility="hidden"),S});function $(){Z(m,Ma(t.chunk,zn(a(g)),zn(a(k).firstElementChild)),!0)}function T(){if(r()===!0){let S=zn(a(k))-E(a(k));if(Z(y,t.chunk.bottom>S),a(y))for(let C of t.chunk.dates){let M=C.getTime();i()[M]?i()[M].includes(t.chunk)||Ge(f,W(i)[M]=[...i()[M],t.chunk],W(i)):Ge(f,W(i)[M]=[t.chunk],W(i))}}else Z(y,!1),Vs(i())||Be(f,{})}function E(S){let C=0;for(let M=0;M<t.chunk.dates.length&&(C=Pt(C,zn(S.lastElementChild)),S=S.nextElementSibling,!!S);++M);return C}var D={reposition:$,hide:T};{let S=b(()=>u()&&o().dayStart),C=b(()=>[a(m),t.chunk.gridRow]);oi(e,{get chunk(){return t.chunk},get styles(){return a(p)},axis:"x",get forceDate(){return a(S)},get forceMargin(){return a(C)},get el(){return a(g)},set el(M){Z(g,M,!0)}})}var P=_e(D);return s(),P}var Ku=j('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function Zu(e,t){ge(t,!0);const n=()=>d(g,"$_popupDay",u),r=()=>d(f,"$_colsCount",u),i=()=>d(v,"$_interaction",u),o=()=>d(y,"$theme",u),l=()=>d(h,"$_intlDayPopover",u),s=()=>d(m,"$buttonText",u),[u,c]=$e();let{_colsCount:f,_interaction:v,_intlDayPopover:h,_popupDay:g,buttonText:m,theme:y}=De("state"),_=Te(void 0),w=Te(""),k=b(()=>n().gridColumn),p=b(()=>n().gridRow),$=b(()=>n().dayStart),T=b(()=>n().dayEnd),E=b(()=>{let ne=[];for(let z of t.chunks)z.gridRow===a(p)&&z.gridColumn<=a(k)&&z.gridColumn+z.dates.length>a(k)&&ne.push(ht({},z,Er(z.event,a($),a(T))));return ne.sort((z,q)=>z.top-q.top),ne});tr(()=>{a(_).show()}),Qe(()=>{a(E).length?W(D):P()});function D(){let ne=t.gridEl.children.item((a(p)-1)*r()+a(k)-1),z=Cn(a(_)),q=Cn(ne),se=Cn(t.gridEl);Z(w,"");let re;if(z.width>=se.width){re=se.left-q.left;let Ee=q.right-se.right;Z(w,a(w)+`inset-inline-end:${Ee}px;`)}else re=(q.width-z.width)/2,q.left+re<se.left?re=se.left-q.left:q.left+re+z.width>se.right&&(re=se.right-q.left-z.width);Z(w,a(w)+`inset-inline-start:${re}px;`);let B;if(z.height>=se.height){B=se.top-q.top;let Ee=q.bottom-se.bottom;Z(w,a(w)+`inset-block-end:${Ee}px;`)}else B=(q.height-z.height)/2,q.top+B<se.top?B=se.top-q.top:q.top+B+z.height>se.bottom&&(B=se.bottom-q.top-z.height);Z(w,a(w)+`inset-block-start:${B}px;`)}function P(){Be(g,null)}function S(){P(),i().action?.noClick()}var C=Ku();let M;var O=fe(C),H=fe(O);Ye(H,()=>ot(l().format(a($))));var G=ie(H,2);os(G);var V=b(()=>Wi(P));G.__click=function(...ne){a(V)?.apply(this,ne)};var ee=b(()=>Fi(P));G.__keydown=function(...ne){a(ee)?.apply(this,ne)};var U=ie(O,2);le(U,21,()=>a(E),ce,(ne,z)=>{ai(ne,{get chunk(){return a(z)},inPopup:!0})}),yt(C,ne=>Z(_,ne),()=>a(_)),Ye(C,()=>Ns("pointerdown")),ue(ne=>{N(C,1,o().popup),M=qt(C,a(w),M,{"grid-area":`${a(p)+1} / ${a(k)}`}),N(O,1,o().dayHead),ze(H,"datetime",ne),ze(G,"aria-label",s().close),N(U,1,o().events)},[()=>Mt(a($),10)]),Lt("pointerdownoutside",C,S),Lt("close",C,P),x(e,C),_e(),c()}Dn(["click","keydown"]);function Ju(e,t,n,r){let i=[],o=[],l=1,s=1;for(let u of e)o.push({gridColumn:l,gridRow:s,resource:void 0,dayStart:u,dayEnd:Xt(Q(u)),disabled:or(u,n),highlight:r.some(c=>Ct(c,u))}),l===t&&(i.push(o),o=[],l=0,++s),++l;return i}function Qu(e,t){let n=[],r=[];for(let i of e)for(let o of t)Ht(i.display)?i.allDay&&(r=r.concat(ir(i,o))):n=n.concat(ir(i,o));return La(n),{chunks:n,bgChunks:r}}function ju(e,t){let n=[];for(let r of e)if(r)for(let i of t)n=n.concat(ir(r,i));return n}var ec=j('<div role="columnheader"><span></span></div>'),tc=j('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function nc(e,t){ge(t,!0);const n=()=>d(S,"$_viewDates",y),r=()=>d(k,"$_colsCount",y),i=()=>d(H,"$validRange",y),o=()=>d(M,"$highlightedDates",y),l=()=>d(p,"$_filteredEvents",y),s=()=>d(T,"$_iEvents",y),u=()=>d($,"$_hiddenChunks",y),c=()=>d(w,"$_mainEl",y),f=()=>d(O,"$theme",y),v=()=>d(C,"$dayMaxEvents",y),h=()=>d(D,"$_intlDayHeaderAL",y),g=()=>d(E,"$_intlDayHeader",y),m=()=>d(P,"$_popupDay",y),[y,_]=$e();let{_mainEl:w,_colsCount:k,_filteredEvents:p,_hiddenChunks:$,_iEvents:T,_intlDayHeader:E,_intlDayHeaderAL:D,_popupDay:P,_viewDates:S,dayMaxEvents:C,highlightedDates:M,theme:O,validRange:H}=De("state"),G=Te(void 0),V=b(()=>Ju(n(),r(),i(),o())),ee=b(()=>Qu(l(),a(V))),U=b(()=>a(ee).chunks),ne=b(()=>a(ee).bgChunks),z=b(()=>ju(s(),a(V))),q=[];function se(){Be($,{}),Vi(q,a(U))}Qe(se),Qe(()=>{u(),q.forEach(R=>R.hide())});var re=tc();let B;var Ee=fe(re),he=fe(Ee);le(he,21,()=>a(V)[0],ce,(R,te,He)=>{let Ie=()=>a(te).dayStart;var X=ec();ze(X,"aria-colindex",1+He);var oe=fe(X);Ye(oe,()=>ot(g().format(Ie()))),ue((Oe,nt)=>{N(X,1,Oe),ze(oe,"aria-label",nt)},[()=>nn([f().colHead,f().weekdays?.[Ie().getUTCDay()]]),()=>h().format(Ie())]),x(R,X)});var K=ie(Ee,2),Ve=fe(K);le(Ve,21,()=>a(V),ce,(R,te,He)=>{var Ie=de(),X=J(Ie);le(X,17,()=>a(te),ce,(oe,Oe,nt)=>{{let At=b(()=>nt+1===a(te).length),pt=b(()=>He+1===a(V).length);Xu(oe,{get day(){return a(Oe)},get noIeb(){return a(At)},get noBeb(){return a(pt)}})}}),x(R,Ie)}),yt(Ve,R=>Z(G,R),()=>a(G));var Pe=ie(Ve,2),Ae=fe(Pe);le(Ae,17,()=>a(U),ce,(R,te,He)=>{yt(ai(R,{get chunk(){return a(te)},get gridEl(){return a(G)}}),(Ie,X)=>q[X]=Ie,Ie=>q?.[Ie],()=>[He])});var me=ie(Ae,2);le(me,17,()=>a(ne),ce,(R,te)=>{ai(R,{get chunk(){return a(te)}})});var Xe=ie(me,2);le(Xe,17,()=>a(z),ce,(R,te)=>{ai(R,{get chunk(){return a(te)},get gridEl(){return a(G)}})});var wt=ie(K,2);{var je=R=>{Zu(R,{get gridEl(){return a(G)},get chunks(){return a(U)}})};we(wt,R=>{m()&&R(je)})}yt(re,R=>Be(w,R),()=>c()),Ye(re,()=>Ni(se)),ue(()=>{N(re,1,nn([f().main,v()===!0&&f().uniform])),B=qt(re,"",B,{"--ec-grid-cols":a(V)[0].length,"--ec-grid-rows":a(V).length}),N(Ee,1,f().header),N(he,1,f().grid),N(K,1,f().body),N(Ve,1,f().grid),N(Pe,1,f().events)}),x(e,re),_e(),_()}const rc={createOptions(e){e.dayMaxEvents=!1,e.dayCellFormat={day:"numeric"},e.dayPopoverFormat={month:"long",day:"numeric",year:"numeric"},e.moreLinkContent=void 0,e.weekNumbers=!1,e.weekNumberContent=void 0,e.buttonText.dayGridMonth="month",e.buttonText.close="Close",e.theme.uniform="ec-uniform",e.theme.dayFoot="ec-day-foot",e.theme.otherMonth="ec-other-month",e.theme.popup="ec-popup",e.theme.weekNumber="ec-week-number",e.view="dayGridMonth",e.views.dayGridMonth={buttonText:Yi,component:nc,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:Ut("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(e){e._colsCount=Hu(e),e._intlDayCell=Bn(e.locale,e.dayCellFormat),e._intlDayPopover=Bn(e.locale,e.dayPopoverFormat),e._hiddenChunks=dt({}),e._popupDay=dt(null)}};function Va(e,t,n){return e.startEditable??t??e.editable??n}function ic(e,t,n){return e.durationEditable??t??e.editable??n}let Ki=!1;function oc(e){Ki||(Ki=!0,window.requestAnimationFrame(()=>{e(),Ki=!1}))}function Ya(e,t,n){return Pt(t,an(n,e))}zl();function ac(e,t){ge(t,!1);const n=()=>d(Pe,"$eventStartEditable",U),r=()=>d(Ve,"$editable",U),i=()=>d(mn,"$slotDuration",U),o=()=>d(oe,"$selectable",U),l=()=>d(Wt,"$view",U),s=()=>d(B,"$_mainEl",U),u=()=>d(pt,"$selectLongPressDelay",U),c=()=>d(je,"$eventLongPressDelay",U),f=()=>d(Ie,"$longPressDelay",U),v=()=>d($t,"$selectMinDistance",U),h=()=>d(Ae,"$eventDragMinDistance",U),g=()=>d(z,"$_iEvents",U),m=()=>d(R,"$eventResizeStart",U),y=()=>d(me,"$eventDragStart",U),_=()=>d(X,"$resizeConstraint",U),w=()=>d(At,"$selectConstraint",U),k=()=>d(he,"$dragConstraint",U),p=()=>d(K,"$dragScroll",U),$=()=>d(yn,"$unselectAuto",U),T=()=>d(vt,"$unselectCancel",U),E=()=>d(Oe,"$selectFn",U),D=()=>d(te,"$eventResizeStop",U),P=()=>d(Xe,"$eventDragStop",U),S=()=>d(re,"$_view",U),C=()=>d(He,"$eventResize",U),M=()=>d(wt,"$eventDrop",U),O=()=>d(Ee,"$dateClick",U),H=()=>d(lt,"$validRange",U),G=()=>d(se,"$_events",U),V=()=>d(nt,"$selectBackgroundColor",U),ee=()=>d(Gn,"$unselectFn",U),[U,ne]=$e();let{_iEvents:z,_iClass:q,_events:se,_view:re,_mainEl:B,dateClick:Ee,dragConstraint:he,dragScroll:K,editable:Ve,eventStartEditable:Pe,eventDragMinDistance:Ae,eventDragStart:me,eventDragStop:Xe,eventDrop:wt,eventLongPressDelay:je,eventResizeStart:R,eventResizeStop:te,eventResize:He,longPressDelay:Ie,resizeConstraint:X,selectable:oe,select:Oe,selectBackgroundColor:nt,selectConstraint:At,selectLongPressDelay:pt,selectMinDistance:$t,slotDuration:mn,unselect:Gn,unselectAuto:yn,unselectCancel:vt,validRange:lt,view:Wt}=De("state");const bn=1,zt=2,Bt=3,Tn=4,Vn=5,ve=6;let A,Y,I,Ce,ye,Re,Fe,rt,et,st,qe,Le,Kt,Zt,Dt,Tt,ar,Ke,ui,ci,ao,Tr=pi(),kt,xr,lr;function el(L){return Va(L,n(),r())}function tl(L,F,Ne,ae){A||(A=uo(F)?bn:ve,Yn()&&(I=L,lo(F),Ne&&(ye=Ne),ae&&(xr=ae),ar="dragging",sr(F)))}function nl(L,F,Ne,ae,Jt,Mr,fo){A||(A=uo(F)?Ne?Bt:zt:ve,Yn()&&(I=L,lo(F),Jt&&(ye=Jt),Mr&&(xr=Mr),ar=ae==="x"?"resizingX":"resizingY",fi()?(Ke=Q(I.end),Tt?(Hi(Ke,I.start),Ke>=I.end&&nr(Ke)):(Jr(Ke,i()),Ke<I.start&&(Ke=I.start),ye=I.start)):(Ke=Q(I.start),Tt?(Hi(Ke,I.end),Ke<=I.start&&!fo&&Xt(Ke)):(Me(Ke,i()),Ke>I.end&&(Ke=I.end),ye=I.end,fo||(ye=Jr(Q(ye),i()))),fo&&!Tt&&(lr=i())),sr(F)))}function rl(L){A||(A=uo(L)?o()&&!Sa(l())?Tn:Vn:ve,Yn()&&(lo(L),ar="selecting",ui=Tt?tt({day:1}):i(),I={allDay:Tt,start:ye,end:Me(Q(ye),ui),resourceIds:Fe?[Fe.id]:[]},sr(L)))}function il(){A||(A=ve)}function lo(L){window.getSelection().removeAllRanges(),et=qe=L.clientX,st=Le=L.clientY;let F=rr(qe,Le);({allDay:Tt,date:ye,resource:Fe}=_n(F)(qe,Le)),Zt=s()!==xa(F,3),Kt=xa(F,1),al(),L.pointerType!=="mouse"&&Z(Tr,setTimeout(()=>{A&&(Y=!0,sr(L))},(xn()?u():c())??f()))}function sr(L){if(Y||L&&L.pointerType==="mouse"&&mf()>=(xn()?v():h())){Y=!0,Lr(L),Be(q,ar),g()[0]||(xn()?_f():gf(L,Ir()?m():y()));let F=Sr(vf());if(F){let Ne;if({allDay:Ne,date:Re,resource:rt}=F,Ne===Tt){let ae=Rr({},g()[0]),Jt=_();Dt=tt((Re-ye)/1e3),fi()?(ae.start=Me(Q(I.start),Dt),ae.start>Ke&&(ae.start=Ke,Dt=tt((Ke-I.start)/1e3))):(ae.end=Me(Q(I.end),Dt),lr&&Me(ae.end,lr),Ir()?ae.end<Ke&&(ae.end=Ke,Dt=tt((Ke-I.end)/1e3)):xn()?(ae.end<I.end?(ae.start=Jr(ae.end,ui),ae.end=I.end):ae.start=I.start,Jt=w()):(ae.start=Me(Q(I.start),Dt),Fe&&(ae.resourceIds=I.resourceIds.filter(Mr=>Mr!==Fe.id),ae.resourceIds.push(rt.id)),Jt=k()));do{if(Jt!==void 0&&(ae=Rr(Gi(I),ae),Jt(xn()?ul(ae,L):cl(ae,I,L))===!1)){Ge(z,W(g)[0]=Rr(g()[0],I),W(g));break}Ge(z,W(g)[0]=Rr(g()[0],ae),W(g))}while(!1)}}}if(p()){let F=24,Ne=24;oc(()=>{kt&&(Zt||(Le<kt.top+F&&Ge(B,W(s).scrollTop+=Pt(-8,(Le-kt.top-F)/3),W(s)),Le>kt.bottom-F&&Ge(B,W(s).scrollTop+=an(8,(Le-kt.bottom+F)/3),W(s))),qe<kt.left+Ne&&Ge(B,W(s).scrollLeft+=Pt(-8,(qe-kt.left-Ne)/3),W(s)),qe>kt.right-Ne&&Ge(B,W(s).scrollLeft+=an(8,(qe-kt.right+Ne)/3),W(s)),Le<F&&window.scrollBy(0,Pt(-8,(Le-F)/3)),Le>window.innerHeight-F&&window.scrollBy(0,an(8,(Le-window.innerHeight+F)/3)))})}}function so(){Yn()&&(al(),sr())}function hf(L){Yn()&&L.isPrimary&&(qe=L.clientX,Le=L.clientY,sr(L))}function ol(L){if(ci&&$()&&!(T()&&L.target.closest(T()))&&Lr(L),A&&L.isPrimary){if(Y)if(xn()){if(ci=!0,pe(E())){let F=ul(g()[0],L);E()(F)}}else{I.display=Ce;let F=Ir()?D():P();pe(F)&&F({event:at(I),jsEvent:L,view:bt(S())});let Ne=Gi(I);if(sl(I,g()[0]),ll(),F=Ir()?C():M(),pe(F)){let ae=I,Jt=cl(I,Ne,L);F(ht(Jt,{revert(){sl(ae,Ne)}}))}}else if((yf()||xn())&&pe(O())&&!ao){qe=L.clientX,Le=L.clientY;let F=rr(qe,Le);if(F){let{allDay:Ne,date:ae,resource:Jt}=_n(F)(qe,Le);O()({allDay:Ne,date:Je(ae),dateStr:Mt(ae),dayEl:F,jsEvent:L,view:bt(S()),resource:Jt})}}Y=!1,A=et=st=qe=Le=I=Ce=ye=Re=Fe=rt=Dt=lr=Tt=Be(q,Ke=ui=xr=Kt=kt=void 0),a(Tr)&&(clearTimeout(a(Tr)),Z(Tr,void 0))}ao=!1}function vf(){return rr(Ya(qe,kt.left,kt.right),Ya(Le,kt.top,kt.bottom))}function Sr(L){if(L){let F=_n(L)(qe,Le);if(F.disabled){if(!H().end||F.date<H().end)return Sr(L.nextElementSibling);if(!H().start||F.date>H().start)return Sr(L.previousElementSibling)}else return xn()&&F.resource&&!g()[0].resourceIds.includes(F.resource.id)?qe>et?Sr(L.previousElementSibling):Sr(L.nextElementSibling):F}return null}function al(){let L=Cn(s()),F=Cn(Kt);kt={left:Pt(0,F.left+s().scrollLeft),right:an(document.documentElement.clientWidth,L.left+s().clientWidth)-2,top:Pt(0,F.top+(Zt?0:s().scrollTop)),bottom:an(document.documentElement.clientHeight,Zt?F.bottom:L.top+s().clientHeight)-2}}function gf(L,F){pe(F)&&F({event:at(I),jsEvent:L,view:bt(S())}),Ce=I.display,I.display="preview",Ge(z,W(g)[0]=Gi(I),W(g)),xr!==void 0&&Ge(z,W(g)[0]._margin=xr,W(g)),lr&&Me(g()[0].end,lr),I.display="ghost",Be(se,G())}function _f(){Ge(z,W(g)[0]={id:"{select}",allDay:I.allDay,start:I.start,title:"",display:"preview",extendedProps:{},backgroundColor:V(),resourceIds:I.resourceIds,classNames:[],styles:[]},W(g))}function ll(){Ge(z,W(g)[0]=null,W(g))}function Rr(L,F){return L.start=F.start,L.end=F.end,L.resourceIds=F.resourceIds,L}function sl(L,F){Rr(L,F),Be(se,G())}function ul(L,F){let{start:Ne,end:ae}=at(L);return{start:Ne,end:ae,startStr:Mt(L.start),endStr:Mt(L.end),allDay:Tt,view:bt(S()),resource:Fe,jsEvent:F}}function cl(L,F,Ne){let ae;return Ir()?ae=fi()?{startDelta:Dt,endDelta:tt(0)}:{startDelta:tt(0),endDelta:Dt}:ae={delta:Dt,oldResource:Fe!==rt?Fe:void 0,newResource:Fe!==rt?rt:void 0},ht(ae,{event:at(L),oldEvent:at(F),view:bt(S()),jsEvent:Ne}),ae}function mf(){return Math.sqrt(Math.pow(qe-et,2)+Math.pow(Le-st,2))}function Ir(){return A===zt||fi()}function fi(){return A===Bt}function yf(){return A===Vn}function xn(){return A===Tn}function Yn(){return A&&A<Vn}function uo(L){return L.isPrimary&&(L.pointerType!=="mouse"||L.buttons&1)}function Lr(L){ci&&(ci=!1,ll(),pe(ee())&&ee()({jsEvent:L,view:bt(S())}))}function fl(){ao=!0}re.subscribe(Lr);function bf(L){if(Yn()){let F=L.target,Ne=[],ae=()=>ka(Ne);Ne.push(Dr(F,"touchmove",co(()=>Y))),Ne.push(Dr(F,"touchend",ae)),Ne.push(Dr(F,"touchcancel",ae))}}function co(L){return F=>{L()&&F.preventDefault()}}tr(()=>Dr(window,"touchmove",qs,{passive:!1}));var wf={draggable:el,drag:tl,resize:nl,select:rl,noAction:il,handleScroll:so,unselect:Lr,noClick:fl};Ps(),Lt("pointermove",Vt,hf),Lt("pointerup",Vt,ol),Lt("pointercancel",Vt,ol),Lt("scroll",Vt,so);var pf=b(()=>co(Yn));Lt("selectstart",Vt,function(...L){a(pf)?.apply(this,L)});var $f=b(()=>co(()=>a(Tr)));Lt("contextmenu",Vt,function(...L){a($f)?.apply(this,L)}),Lt("touchstart",Vt,bf,void 0,!0),En(t,"draggable",el),En(t,"drag",tl),En(t,"resize",nl),En(t,"select",rl),En(t,"noAction",il),En(t,"handleScroll",so),En(t,"unselect",Lr),En(t,"noClick",fl);var Df=_e(wf);return ne(),Df}function lc(e,t){ge(t,!0);const n=()=>d(l,"$_iEvents",i),r=()=>d(s,"$slotDuration",i),[i,o]=$e();let{_iEvents:l,slotDuration:s}=De("state"),u=0,c=0;Qe(()=>{n()[0]&&m()});function f(){let k=rr(u,c);if(k){let{allDay:p,date:$,resource:T,disabled:E}=_n(k)(u,c);if(!E){n()[1]||g(),Ge(l,W(n)[1].allDay=p,W(n)),Ge(l,W(n)[1].start=$,W(n)),Ge(l,W(n)[1].end=Me(Q($),r()),W(n)),Ge(l,W(n)[1].resourceIds=T?[T.id]:[],W(n));return}}m()}function v(){f()}function h(k){y(k)&&(u=k.clientX,c=k.clientY,f())}function g(){Ge(l,W(n)[1]={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]},W(n))}function m(){n()[1]&&Ge(l,W(n)[1]=null,W(n))}function y(k){return k.isPrimary&&k.pointerType==="mouse"}var _={handleScroll:v};Lt("pointermove",Vt,h),Lt("scroll",Vt,v);var w=_e(_);return o(),w}var sc=j("<div></div>"),uc=j("<div></div>"),cc=j("<!> <!> <!>",1);function fc(e,t){ge(t,!0);const n=()=>d(h,"$eventDurationEditable",s),r=()=>d(m,"$editable",s),i=()=>d(y,"$_interaction",s),o=()=>d(g,"$eventResizableFromStart",s),l=()=>d(v,"$theme",s),[s,u]=$e();let c=Se(t,"forceDate",3,void 0),f=Se(t,"forceMargin",3,void 0),{theme:v,eventDurationEditable:h,eventResizableFromStart:g,editable:m,_interaction:y}=De("state"),_=b(()=>t.chunk.event),w=b(()=>t.chunk.event.display),k=b(()=>!Ht(a(w))&&!jr(a(w))&&ic(a(_),n(),r()));function p(C){return M=>i().action.resize(a(_),M,C,t.axis,c(),f(),t.chunk.zeroDuration)}var $=cc(),T=J($);{var E=C=>{var M=sc(),O=b(()=>p(!0));M.__pointerdown=function(...H){a(O)?.apply(this,H)},ue(()=>N(M,1,`${l().resizer??""} ${l().start??""}`)),x(C,M)};we(T,C=>{a(k)&&o()&&C(E)})}var D=ie(T,2);vn(D,()=>t.children);var P=ie(D,2);{var S=C=>{var M=uc(),O=b(()=>p(!1));M.__pointerdown=function(...H){a(O)?.apply(this,H)},ue(()=>N(M,1,l().resizer)),x(C,M)};we(P,C=>{a(k)&&C(S)})}x(e,$),_e(),u()}Dn(["pointerdown"]);var dc=j("<!> <!>",1);function hc(e,t){ge(t,!0);const n=()=>d(y,"$_interaction",u),r=()=>d(f,"$theme",u),i=()=>d(h,"$eventStartEditable",u),o=()=>d(v,"$editable",u),l=()=>d(m,"$_mainEl",u),s=()=>d(g,"$pointer",u),[u,c]=$e();let{theme:f,editable:v,eventStartEditable:h,pointer:g,_mainEl:m,_interaction:y,_iClasses:_}=De("state");Ge(y,W(n).resizer=fc,W(n)),Qe(()=>{r(),i(),o(),Be(_,(E,D)=>{let{display:P}=D;return[...E,jr(P)?[r()[P]]:!Ht(P)&&Va(D,i(),o())?[r().draggable]:[]]})}),Qe(()=>{if(l())return Dr(l(),"scroll",w)});function w(){for(let E of Object.values(n()))E?.handleScroll?.()}var k=dc(),p=J(k);yt(ac(p,{}),E=>Ge(y,W(n).action=E,W(n)),()=>n()?.action);var $=ie(p,2);{var T=E=>{yt(lc(E,{}),D=>Ge(y,W(n).pointer=D,W(n)),()=>n()?.pointer)};we($,E=>{s()&&E(T)})}x(e,k),_e(),c()}const vc={createOptions(e){e.dateClick=void 0,e.dragConstraint=void 0,e.dragScroll=!0,e.editable=!1,e.eventDragMinDistance=5,e.eventDragStart=void 0,e.eventDragStop=void 0,e.eventDrop=void 0,e.eventDurationEditable=!0,e.eventLongPressDelay=void 0,e.eventResizableFromStart=!1,e.eventResizeStart=void 0,e.eventResizeStop=void 0,e.eventResize=void 0,e.eventStartEditable=!0,e.longPressDelay=1e3,e.pointer=!1,e.resizeConstraint=void 0,e.select=void 0,e.selectBackgroundColor=void 0,e.selectConstraint=void 0,e.selectLongPressDelay=void 0,e.selectMinDistance=5,e.unselect=void 0,e.unselectAuto=!0,e.unselectCancel="",e.theme.draggable="ec-draggable",e.theme.ghost="ec-ghost",e.theme.preview="ec-preview",e.theme.pointer="ec-pointer",e.theme.resizer="ec-resizer",e.theme.start="ec-start",e.theme.dragging="ec-dragging",e.theme.resizingY="ec-resizing-y",e.theme.resizingX="ec-resizing-x",e.theme.selecting="ec-selecting"},createStores(e){e._auxiliary.update(t=>[...t,hc])}};var gc=j("<div></div> <!>",1);function _c(e,t){ge(t,!0);const n=()=>d(s,"$_interaction",i),r=()=>d(l,"$theme",i),[i,o]=$e();let{theme:l,_interaction:s}=De("state"),u=b(()=>c=>(delete c["background-color"],delete c.color,c));{const c=(v,h=gt,g=gt,m=gt)=>{var y=gc(),_=J(y);let w;var k=ie(_,2);vn(k,h),ue(()=>{N(_,1,r().eventTag),w=qt(_,"",w,{"background-color":g()})}),x(v,y)};let f=b(()=>n().action?.noAction);Ga(e,{get chunk(){return t.chunk},get styles(){return a(u)},get onpointerdown(){return a(f)},body:c,$$slots:{body:!0}})}_e(),o()}var mc=j("<h4><time></time> <time></time></h4> <!>",1);function yc(e,t){ge(t,!0);const n=()=>d(g,"$highlightedDates",u),r=()=>d(y,"$validRange",u),i=()=>d(f,"$_filteredEvents",u),o=()=>d(m,"$theme",u),l=()=>d(v,"$_intlListDay",u),s=()=>d(h,"$_intlListDaySide",u),[u,c]=$e();let{_filteredEvents:f,_intlListDay:v,_intlListDaySide:h,highlightedDates:g,theme:m,validRange:y}=De("state"),_=b(()=>n().some(D=>Ct(D,t.date))),w=b(()=>or(t.date,r())),k=b(()=>Mt(t.date,10)),p=b(()=>{let D=[];if(!a(w)){let P=t.date,S=Xt(Q(t.date));for(let C of i())if(!Ht(C.display)&&kr(C,P,S)){let M=Er(C,P,S);D.push(M)}}return D});var $=de(),T=J($);{var E=D=>{ri(D,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return a(w)},get highlight(){return a(_)},children:(P,S)=>{var C=mc(),M=J(C),O=fe(M);Ye(O,()=>ot(l().format(t.date)));var H=ie(O,2);Ye(H,()=>ot(s().format(t.date)));var G=ie(M,2);le(G,17,()=>a(p),V=>V.event,(V,ee)=>{_c(V,{get chunk(){return a(ee)}})}),ue(()=>{N(M,1,o().dayHead),ze(O,"datetime",a(k)),N(H,1,o().daySide),ze(H,"datetime",a(k))}),x(P,C)},$$slots:{default:!0}})};we(T,D=>{a(p).length&&D(E)})}x(e,$),_e(),c()}var bc=j("<div></div>"),wc=j("<section><!></section>");function li(e,t){ge(t,!0);const n=()=>d(m,"$_viewDates",c),r=()=>d(h,"$_filteredEvents",c),i=()=>d(_,"$noEventsContent",c),o=()=>d(y,"$noEventsClick",c),l=()=>d(g,"$_view",c),s=()=>d(v,"$_mainEl",c),u=()=>d(w,"$theme",c),[c,f]=$e();let{_mainEl:v,_filteredEvents:h,_view:g,_viewDates:m,noEventsClick:y,noEventsContent:_,theme:w}=De("state"),k=b(()=>{let S=!0;if(n().length){let C=n()[0],M=Xt(Q(n().at(-1)));for(let O of r())if(!Ht(O.display)&&O.start<M&&O.end>C){S=!1;break}}return S}),p=b(()=>pe(i())?i()():i());function $(S){pe(o())&&o()({jsEvent:S,view:bt(l())})}var T=wc(),E=fe(T);{var D=S=>{var C=bc();C.__click=$,Ye(C,()=>ot(a(p))),ue(()=>N(C,1,u().noEvents)),x(S,C)},P=S=>{var C=de(),M=J(C);le(M,1,n,ce,(O,H)=>{yc(O,{get date(){return a(H)}})}),x(S,C)};we(E,S=>{a(k)?S(D):S(P,!1)})}yt(T,S=>Be(v,S),()=>s()),ue(()=>N(T,1,u().main)),x(e,T),_e(),f()}Dn(["click"]);const pc={createOptions(e){e.buttonText.listDay="list",e.buttonText.listWeek="list",e.buttonText.listMonth="list",e.buttonText.listYear="list",e.listDayFormat={weekday:"long"},e.listDaySideFormat={year:"numeric",month:"long",day:"numeric"},e.noEventsClick=void 0,e.noEventsContent="No events",e.theme.daySide="ec-day-side",e.theme.eventTag="ec-event-tag",e.theme.noEvents="ec-no-events",e.view="listWeek",e.views.listDay={buttonText:ei,component:li,duration:{days:1},theme:Ut("ec-list ec-day-view")},e.views.listWeek={buttonText:ti,component:li,duration:{weeks:1},theme:Ut("ec-list ec-week-view")},e.views.listMonth={buttonText:Yi,component:li,duration:{months:1},theme:Ut("ec-list ec-month-view")},e.views.listYear={buttonText:ou,component:li,duration:{years:1},theme:Ut("ec-list ec-year-view")}},createStores(e){e._intlListDay=Bn(e.locale,e.listDayFormat),e._intlListDaySide=Bn(e.locale,e.listDaySideFormat)}};function qa(e){"allDaySlot"in e||ht(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0})}function Zi(e){"scrollTime"in e||(ht(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"}),ht(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function Ji(e){"scrollTime"in e||ht(e,{scrollTime:tt,slotDuration:tt,slotLabelInterval:t=>t!==void 0?tt(t):void 0,slotMaxTime:tt,slotMinTime:tt})}function $c(e){return Ze([e.slotMinTime,e.slotMaxTime,e.flexibleSlotTimeLimits,e._viewDates,e._filteredEvents],t=>Ha(...t))}function Dc(e){return Ze([e.slotDuration,e.slotLabelInterval],([t,n])=>n===void 0?ke(t)<3600?2:1:Bs(ke(n)/ke(t))||1)}function kc(e){return Ze([e.slotDuration,e._slotLabelPeriodicity,e._slotTimeLimits,e._intlSlotLabel],t=>Na(on(rn()),...t))}function Qi(e){"_sidebarWidth"in e||(e._intlSlotLabel=Bn(e.locale,e.slotLabelFormat),e._slotLabelPeriodicity=Dc(e),e._sidebarWidth=dt(0))}function Xa(e){"_slots"in e||(e._slotTimeLimits=$c(e),e._slots=kc(e))}function Ka(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function Ec(e){return Ze([e.resources,e.filterResourcesWithEvents,e._filteredEvents,e._activeRange],([t,n,r,i])=>{let o=t.filter(l=>!_n(l).hidden);return n&&(o=t.filter(l=>r.some(s=>kr(s,i.start,i.end,l)))),o.length||(o=Aa([{}])),o})}function Za(e){"_viewResources"in e||(e._viewResources=Ec(e))}function Cc(e,t,n,r,i,o){let l=[],s=1,u=r?[e,t]:[t,e];for(let c of u[0]){let f=[];for(let v of u[1]){let h=r?c:v,g=r?v:c;f.push({gridColumn:s,gridRow:1,resource:g,start:Me(Q(h),n.min),end:Me(Q(h),n.max),dayStart:h,dayEnd:Xt(Q(h)),disabled:or(h,i),highlight:o.some(m=>Ct(m,h))}),++s}l.push(f)}return l}var Tc=j("<span></span>");function Ja(e,t){ge(t,!0);const n=()=>d(c,"$resourceLabelContent",o),r=()=>d(v,"$_intlDayHeaderAL",o),i=()=>d(f,"$resourceLabelDidMount",o),[o,l]=$e();let s=Se(t,"date",3,void 0),u=Se(t,"setLabel",3,void 0),{resourceLabelContent:c,resourceLabelDidMount:f,_intlDayHeaderAL:v}=De("state"),h=Te(void 0),g=b(()=>n()?pe(n())?n()({resource:t.resource,date:s()?Je(s()):void 0}):n():t.resource.title),m=Te(void 0);Qe(()=>{a(g),W(()=>{s()?Z(m,r().format(s())+", "+a(h).innerText):u()&&(Z(m,void 0),u()(a(h).innerText))})}),tr(()=>{pe(i())&&i()({resource:t.resource,date:s()?Je(s()):void 0,el:a(h)})});var y=Tc();yt(y,_=>Z(h,_),()=>a(h)),Ye(y,()=>ot(a(g))),ue(()=>ze(y,"aria-label",a(m))),x(e,y),_e(),l()}function xc(e,t,n,r){let i=[],o=1;for(let l of e)i.push({gridColumn:o,gridRow:1,resource:void 0,start:Me(Q(l),t.min),end:Me(Q(l),t.max),dayStart:l,dayEnd:Xt(Q(l)),disabled:or(l,n),highlight:r.some(s=>Ct(s,l))}),++o;return[i]}function Sc(e,t){let n=[],r=[],i=[],o=[];for(let l of e)for(let s of t)Ht(l.display)?(r=r.concat(ji(l,s)),l.allDay&&(o=o.concat(ir(l,s)))):l.allDay?i=i.concat(ir(l,s)):n=n.concat(ji(l,s));return Ic(n),La(i),{chunks:n,bgChunks:r,allDayChunks:i,allDayBgChunks:o}}function Rc(e,t){let n=[],r=[];for(let i of e)if(i)for(let o of t)i.allDay?r=r.concat(ir(i,o)):n=n.concat(ji(i,o));return{iChunks:n,allDayIChunks:r}}function ji(e,t){let n=[];for(let{gridColumn:r,gridRow:i,resource:o,start:l,end:s,disabled:u}of t)if(!u&&kr(e,l,s,o)){let c=Er(e,l,s);ht(c,{gridColumn:r,gridRow:i,top:(c.start-l)/1e3,height:(c.end-c.start)/1e3,maxHeight:(s-c.start)/1e3}),n.push(c)}return n}function Ic(e){let t={};for(let n of e){let{gridColumn:r}=n,i=t[r],o=0;if(i&&n.start<i.end){for(;o<i.columns.length&&!(i.columns[o].at(-1).end<=n.start);++o);n.end>i.end&&(i.end=n.end)}else i={columns:[],end:n.end};i.columns.length<o+1&&i.columns.push([]),i.columns[o].push(n),t[r]=i,n.group=i,n.groupColumn=o}}function Lc(e){let t="all-day",n;return e?(n=pe(e)?e({text:t}):e,typeof n=="string"&&(n={html:n})):n={html:t},n}function Qa(e,t){ge(t,!0);const n=()=>d(s,"$slotDuration",i),r=()=>d(u,"$slotHeight",i),[i,o]=$e();let l=Se(t,"allDay",3,!1),{slotDuration:s,slotHeight:u}=De("state"),c=b(()=>t.day.dayStart),f=b(()=>t.day.start),v=b(()=>t.day.resource),h=b(()=>t.day.disabled),g=b(()=>t.day.highlight),m=Te(void 0);function y(_,w){return l()?a(c):Me(Q(a(f)),n(),Ui((w-Cn(a(m)).top)/r()))}ri(e,{get date(){return a(c)},get allDay(){return l()},get resource(){return a(v)},dateFromPoint:y,get disabled(){return a(h)},get highlight(){return a(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return a(m)},set el(_){Z(m,_,!0)}}),_e(),o()}function eo(e,t){ge(t,!0);const n=()=>d(u,"$slotDuration",o),r=()=>d(c,"$slotHeight",o),i=()=>d(s,"$slotEventOverlap",o),[o,l]=$e();let{slotEventOverlap:s,slotDuration:u,slotHeight:c}=De("state"),f=b(()=>v=>{let h=ke(n()),g=t.chunk.top/h*r(),m=t.chunk.height/h*r()||r(),y=t.chunk.maxHeight/h*r();v["grid-column"]=t.chunk.gridColumn,v["inset-block-start"]=`${g}px`,v["min-block-size"]=`${m}px`,v["block-size"]=`${m}px`,v["max-block-size"]=`${y}px`;let _="100% - var(--ec-event-col-gap)";if(t.chunk.group){let w=t.chunk.group.columns.length;v["z-index"]=`${t.chunk.groupColumn+1}`,v["inset-inline-start"]=`calc((${_}) / ${w} * ${t.chunk.groupColumn})`,v["inline-size"]=`calc((${_}) / ${w} * ${i()?.5*(1+w-t.chunk.groupColumn):1})`}return v});oi(e,{get chunk(){return t.chunk},get styles(){return a(f)},axis:"y"}),_e(),l()}function to(e,t){ge(t,!0);let n=Te(void 0),r=Te(0),i=b(()=>t.chunk.event),o=b(()=>u=>(u["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(a(r)||a(i)._margin)&&(u["margin-block-start"]=`${a(i)._margin??a(r)}px`),u));function l(){Z(r,Ma(t.chunk,zn(a(n))),!0)}var s={reposition:l};return oi(e,{get chunk(){return t.chunk},get styles(){return a(o)},axis:"x",get forceMargin(){return a(r)},get el(){return a(n)},set el(u){Z(n,u,!0)}}),_e(s)}var Mc=j("<div></div>");function si(e,t){ge(t,!0);const n=()=>d(m,"$_today",c),r=()=>d(g,"$_now",c),i=()=>d(_,"$slotDuration",c),o=()=>d(w,"$slotHeight",c),l=()=>d(h,"$_mainEl",c),s=()=>d(y,"$_sidebarWidth",c),u=()=>d(k,"$theme",c),[c,f]=$e();let v=Se(t,"span",3,1),{_mainEl:h,_now:g,_today:m,_sidebarWidth:y,slotDuration:_,slotHeight:w,theme:k}=De("state"),p=b(()=>{for(let H of t.days)if(Ct(H.dayStart,n()))return H;return{}}),$=b(()=>a(p).gridColumn),T=b(()=>a(p).start),E=b(()=>a(p).end),D=b(()=>{if(r()<a(T)||r()>a(E))return null;let H=ke(i());return(r()-a(T))/1e3/H*o()}),P=b(()=>({root:l(),rootMargin:Ea()?`0px -${s()+5.5}px 0px 0px`:`0px 0px 0px -${s()+5.5}px`,threshold:0}));function S(H,G){H.classList.toggle(u().hidden,!G.isIntersecting)}var C=de(),M=J(C);{var O=H=>{var G=Mc();let V;Ye(G,()=>ma(S,a(P))),ue(()=>{N(G,1,u().nowIndicator),V=qt(G,"",V,{"grid-column":`${a($)+1} / span ${v()??""}`,"inset-block-start":`${a(D)??""}px`})}),x(H,G)};we(M,H=>{a($)&&a(D)!==null&&H(O)})}x(e,C),_e(),f()}var Pc=j('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),Ac=j("<div><time></time></div>"),Oc=j('<section><header><aside></aside> <div role="row"><!></div> <!></header> <div role="rowgroup"><aside aria-hidden="true"></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function no(e,t){ge(t,!0);const n=()=>d(G,"$allDayContent",$),r=()=>d(H,"$_viewDates",$),i=()=>d(M,"$_slotTimeLimits",$),o=()=>d(B,"$validRange",$),l=()=>d(U,"$highlightedDates",$),s=()=>d(D,"$_filteredEvents",$),u=()=>d(P,"$_iEvents",$),c=()=>d(z,"$scrollTime",$),f=()=>d(E,"$_mainEl",$),v=()=>d(se,"$slotDuration",$),h=()=>d(q,"$slotHeight",$),g=()=>d(re,"$theme",$),m=()=>d(ee,"$columnWidth",$),y=()=>d(C,"$_slotLabelPeriodicity",$),_=()=>d(S,"$_sidebarWidth",$),w=()=>d(V,"$allDaySlot",$),k=()=>d(O,"$_slots",$),p=()=>d(ne,"$showNowIndicator",$),[$,T]=$e();let{_mainEl:E,_filteredEvents:D,_iEvents:P,_sidebarWidth:S,_slotLabelPeriodicity:C,_slotTimeLimits:M,_slots:O,_viewDates:H,allDayContent:G,allDaySlot:V,columnWidth:ee,highlightedDates:U,nowIndicator:ne,scrollTime:z,slotHeight:q,slotDuration:se,theme:re,validRange:B}=De("state"),Ee=Te(0),he=b(()=>Lc(n())),K=b(()=>t.createGridFn?.()??xc(r(),i(),o(),l())),Ve=b(()=>Sc(s(),a(K))),Pe=b(()=>a(Ve).chunks),Ae=b(()=>a(Ve).bgChunks),me=b(()=>a(Ve).allDayChunks),Xe=b(()=>a(Ve).allDayBgChunks),wt=b(()=>Rc(u(),a(K))),je=b(()=>a(wt).iChunks),R=b(()=>a(wt).allDayIChunks);Qe(()=>{r(),c(),Yr().then(te)});function te(){Ge(E,W(f).scrollTop=((ke(c())-ke(i().min))/ke(v())-.5)*h(),W(f))}let He=[];function Ie(){Vi(He,a(me))}Qe(Ie);var X=Oc();let oe;var Oe=fe(X),nt=fe(Oe),At=ie(nt,2),pt=fe(At);{var $t=A=>{var Y=de(),I=J(Y);vn(I,()=>t.header,()=>a(K)),x(A,Y)},mn=A=>{var Y=de(),I=J(Y);le(I,17,()=>a(K)[0],ce,(Ce,ye,Re)=>{let Fe=()=>a(ye).dayStart,rt=()=>a(ye).disabled,et=()=>a(ye).highlight;Cr(Ce,{get date(){return Fe()},colIndex:1+Re,get disabled(){return rt()},get highlight(){return et()},children:(st,qe)=>{ii(st,{get date(){return Fe()}})},$$slots:{default:!0}})}),x(A,Y)};we(pt,A=>{t.header?A($t):A(mn,!1)})}var Gn=ie(At,2);{var yn=A=>{var Y=Pc(),I=fe(Y);Ye(I,()=>ot(a(he)));var Ce=ie(I,2);le(Ce,21,()=>a(K),ce,(et,st,qe)=>{var Le=de(),Kt=J(Le);le(Kt,17,()=>a(st),ce,(Zt,Dt,Tt)=>{{let ar=b(()=>qe+1===a(K).length&&Tt+1===a(st).length);Qa(Zt,{get day(){return a(Dt)},allDay:!0,get noIeb(){return a(ar)}})}}),x(et,Le)});var ye=ie(Ce,2),Re=fe(ye);le(Re,17,()=>a(me),ce,(et,st,qe)=>{yt(to(et,{get chunk(){return a(st)}}),(Le,Kt)=>He[Kt]=Le,Le=>He?.[Le],()=>[qe])});var Fe=ie(Re,2);le(Fe,17,()=>a(Xe),ce,(et,st)=>{to(et,{get chunk(){return a(st)}})});var rt=ie(Fe,2);le(rt,17,()=>a(R),ce,(et,st)=>{to(et,{get chunk(){return a(st)}})}),ue(()=>{N(Y,1,g().allDay),N(I,1,g().sidebar),N(Ce,1,g().grid),N(ye,1,g().events)}),x(A,Y)};we(Gn,A=>{w()&&A(yn)})}var vt=ie(Oe,2),lt=fe(vt);le(lt,5,k,ce,(A,Y,I)=>{var Ce=Ac();let ye;var Re=fe(Ce);Ye(Re,()=>ot(a(Y)[1])),ue(()=>{N(Ce,1,nn([g().slot,!I&&g().hidden])),ye=qt(Ce,"",ye,{"--ec-slot-label-periodicity":a(Y)[2]}),ze(Re,"datetime",a(Y)[0])}),x(A,Ce)});var Wt=ie(lt,2);le(Wt,21,()=>a(K),ce,(A,Y,I)=>{var Ce=de(),ye=J(Ce);le(ye,17,()=>a(Y),ce,(Re,Fe,rt)=>{{let et=b(()=>I+1===a(K).length&&rt+1===a(Y).length);Qa(Re,{get day(){return a(Fe)},get noIeb(){return a(et)},noBeb:!0})}}),x(A,Ce)});var bn=ie(Wt,2),zt=fe(bn);le(zt,17,()=>a(Pe),ce,(A,Y)=>{eo(A,{get chunk(){return a(Y)}})});var Bt=ie(zt,2);le(Bt,17,()=>a(Ae),ce,(A,Y)=>{eo(A,{get chunk(){return a(Y)}})});var Tn=ie(Bt,2);le(Tn,17,()=>a(je),ce,(A,Y)=>{eo(A,{get chunk(){return a(Y)}})});var Vn=ie(vt,2);{var ve=A=>{var Y=de(),I=J(Y);{var Ce=Re=>{var Fe=de(),rt=J(Fe);vn(rt,()=>t.nowIndicator,()=>a(K)),x(Re,Fe)},ye=Re=>{si(Re,{get days(){return a(K)[0]}})};we(I,Re=>{t.nowIndicator?Re(Ce):Re(ye,!1)})}x(A,Y)};we(Vn,A=>{p()&&A(ve)})}yt(X,A=>Be(E,A),()=>f()),Ye(X,()=>Ni(Ie)),ue(()=>{N(X,1,g().main),oe=qt(X,"",oe,{"--ec-grid-cols":a(K).length*a(K)[0].length,"--ec-col-group-span":a(K)[0].length,"--ec-col-width":m()??"minmax(0, 1fr)","--ec-slot-label-periodicity":y(),"--ec-slot-height":`${h()??""}px`,"--ec-header-height":`${a(Ee)??""}px`,"--ec-sidebar-width":`${_()??""}px`}),N(Oe,1,g().header),N(nt,1,g().sidebar),N(At,1,g().grid),N(vt,1,g().body),N(lt,1,g().sidebar),N(Wt,1,g().grid),N(bn,1,g().events)}),Xr(nt,"offsetWidth",A=>Be(S,A)),Xr(Oe,"offsetHeight",A=>Z(Ee,A)),x(e,X),_e(),T()}var Fc=j("<!> <!>",1);function ja(e,t){ge(t,!0);const n=()=>d(v,"$_viewDates",c),r=()=>d(h,"$_viewResources",c),i=()=>d(g,"$_slotTimeLimits",c),o=()=>d(m,"$datesAboveResources",c),l=()=>d(_,"$validRange",c),s=()=>d(y,"$highlightedDates",c),u=()=>d(w,"$theme",c),[c,f]=$e();let{_viewDates:v,_viewResources:h,_slotTimeLimits:g,datesAboveResources:m,highlightedDates:y,validRange:_,theme:w}=De("state"),k=Fn([]);no(e,{createGridFn:()=>Cc(n(),r(),i(),o(),l(),s()),header:(T,E=gt)=>{var D=Fc(),P=J(D);le(P,17,E,ce,(M,O,H)=>{const G=b(()=>{const{dayStart:V,resource:ee,disabled:U,highlight:ne}=a(O)[0];return{date:V,resource:ee,disabled:U,highlight:ne}});{let V=b(()=>E()[0].length>1?u().colGroup:void 0),ee=b(()=>1+H*a(O).length),U=b(()=>o()&&a(G).disabled),ne=b(()=>o()&&a(G).highlight);Cr(M,{get date(){return a(G).date},get className(){return a(V)},get weekday(){return o()},get colSpan(){return a(O).length},get colIndex(){return a(ee)},get disabled(){return a(U)},get highlight(){return a(ne)},children:(z,q)=>{var se=de(),re=J(se);{var B=he=>{ii(he,{get date(){return a(G).date}})},Ee=he=>{Ja(he,{get resource(){return a(G).resource},setLabel:K=>k[H]=K+", "})};we(re,he=>{o()?he(B):he(Ee,!1)})}x(z,se)},$$slots:{default:!0}})}});var S=ie(P,2);{var C=M=>{var O=de(),H=J(O);le(H,17,E,ce,(G,V,ee)=>{var U=de(),ne=J(U);le(ne,17,()=>a(V),ce,(z,q,se)=>{const re=b(()=>{const{dayStart:B,resource:Ee,disabled:he,highlight:K}=a(q);return{date:B,resource:Ee,disabled:he,highlight:K}});{let B=b(()=>1+se+ee*a(V).length);Cr(z,{get date(){return a(re).date},get colIndex(){return a(B)},get disabled(){return a(re).disabled},get highlight(){return a(re).highlight},children:(Ee,he)=>{var K=de(),Ve=J(K);{var Pe=me=>{Ja(me,{get resource(){return a(re).resource},get date(){return a(re).date}})},Ae=me=>{ii(me,{get date(){return a(re).date},get alPrefix(){return k[ee]}})};we(Ve,me=>{o()?me(Pe):me(Ae,!1)})}x(Ee,K)},$$slots:{default:!0}})}}),x(G,U)}),x(M,O)};we(S,M=>{E()[0].length>1&&M(C)})}x(T,D)},nowIndicator:(T,E=gt)=>{var D=de(),P=J(D);{var S=M=>{{let O=b(()=>E().flat());si(M,{get days(){return a(O)},get span(){return E()[0].length}})}},C=M=>{var O=de(),H=J(O);{var G=ee=>{var U=de(),ne=J(U);le(ne,17,E,ce,(z,q)=>{si(z,{get days(){return a(q)}})}),x(ee,U)},V=ee=>{{let U=b(()=>E().flat());si(ee,{get days(){return a(U)},get span(){return E().length}})}};we(H,ee=>{E()[0].length>1?ee(G):ee(V,!1)})}x(M,O)};we(P,M=>{o()?M(S):M(C,!1)})}x(T,D)},$$slots:{header:!0,nowIndicator:!0}}),_e(),f()}const Nc={createOptions(e){qa(e),Zi(e),Ka(e),e.datesAboveResources=!1,e.buttonText.resourceTimeGridDay="resources",e.buttonText.resourceTimeGridWeek="resources",e.theme.colGroup="ec-col-group",e.view="resourceTimeGridWeek",e.views.resourceTimeGridDay={buttonText:ei,component:ja,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:Ut("ec-resource ec-time-grid ec-day-view")},e.views.resourceTimeGridWeek={buttonText:ti,component:ja,duration:{weeks:1},theme:Ut("ec-resource ec-time-grid ec-week-view")}},createParsers(e){Ji(e)},createStores(e){Qi(e),Xa(e),Za(e)}};function Hc(e){return Ze([e.slotMinTime,e.slotMaxTime,e.flexibleSlotTimeLimits,e._viewDates,e._filteredEvents],([t,n,r,i,o])=>{let l={};for(let s of i)l[s.getTime()]=Ha(t,n,r,[s],o);return l})}function Uc(e){return Ze([e._viewDates,e.slotDuration,e._slotLabelPeriodicity,e._dayTimeLimits,e._intlSlotLabel],([t,n,r,i,o])=>{let l={};for(let s of t){let u=s.getTime();l[u]=u in i?Na(s,n,r,i[u],o):[]}return l})}function Wc(e){return Ze(e.resources,t=>t.some(n=>_n(n).children.length))}function zc(e){return Ze(e.slotDuration,t=>!ke(t))}function Bc(e,t,n,r,i){let o=[],l=1;for(let s of t){let u=[],c=1;for(let f of e){let v=n[f.getTime()];u.push({gridColumn:c,gridRow:l,resource:s,start:Me(Q(f),v.min),end:Me(Q(f),v.max),dayStart:f,dayEnd:Xt(Q(f)),disabled:or(f,r),highlight:i.some(h=>Ct(h,f))}),++c}o.push(u),++l}return o}function Gc(e,t){let n=[],r=[];for(let i of e)for(let o of t)Ht(i.display)?r=r.concat(ro(i,o)):n=n.concat(ro(i,o));return Yc(n),{chunks:n,bgChunks:r}}function Vc(e,t){let n=[];for(let r of e)if(r)for(let i of t)n=n.concat(ro(r,i));return n}function ro(e,t){let n=[],r,i,o,l,s,u=0;for(let{gridColumn:c,gridRow:f,resource:v,dayStart:h,start:g,end:m,disabled:y}of t)!y&&kr(e,g,m,v)&&(n.length||(r=g,o=c,l=f,s=Pt(e.start-g,0)/1e3),n.push(h),i=m,u+=(an(m,e.end)-Pt(g,e.start))/1e3);if(n.length){let c=Er(e,r,i);return ht(c,{gridColumn:o,gridRow:l,dates:n,left:s,width:u}),[c]}return[]}function Yc(e){let t={};for(let n of e){let{gridColumn:r,gridRow:i}=n;for(let l=0;l<n.dates.length;++l){let s=`${i}_${r+l}`;t[s]?t[s].push(n):t[s]=[n]}let o=`${i}_${r}`;n.day=t[o]}}function qc(e,t,n){let r=0,i=r+t,o=e.day;o.sort((l,s)=>(l.top??Number.POSITIVE_INFINITY)-(s.top??Number.POSITIVE_INFINITY));for(let l of o)if(!(l===e||!("top"in l))&&(n||e.start<l.end&&e.end>l.start)&&r<l.bottom&&i>l.top){let s=l.bottom-r+1;r+=s,i+=s}return ht(e,{top:r,bottom:i}),r}function Xc(e,t){return e[t.getTime()]??{min:tt(0),max:tt("24:00:00")}}function Kc(e,t){ge(t,!0);const n=()=>d(s,"$_monthView",o),r=()=>d(u,"$slotDuration",o),i=()=>d(c,"$slotWidth",o),[o,l]=$e();let{_monthView:s,slotDuration:u,slotWidth:c}=De("state"),f=b(()=>t.day.dayStart),v=b(()=>t.day.start),h=b(()=>t.day.resource),g=b(()=>t.day.disabled),m=b(()=>t.day.highlight),y=Te(void 0);function _(w,k){return n()?a(f):Me(Q(a(v)),r(),Ui((w-Cn(a(y)).left)/i()))}ri(e,{get allDay(){return n()},get date(){return a(f)},get resource(){return a(h)},dateFromPoint:_,get disabled(){return a(g)},get highlight(){return a(m)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return a(y)},set el(w){Z(y,w,!0)}}),_e(),l()}function io(e,t){ge(t,!0);const n=()=>d(c,"$_monthView",o),r=()=>d(s,"$slotDuration",o),i=()=>d(u,"$slotWidth",o),[o,l]=$e();let{slotDuration:s,slotWidth:u,_monthView:c}=De("state"),f=Te(void 0),v=Te(0),h=b(()=>t.chunk.event),g=b(()=>w=>{if(w["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,w["grid-row"]=t.chunk.gridRow,!n()){let p=t.chunk.left/ke(r())*i();w["inset-inline-start"]=`${p}px`,w["inline-size"]=`${t.chunk.width/ke(r())*i()}px`}let k=a(v);if(a(h)._margin){let[p,$]=a(h)._margin;t.chunk.gridRow===$&&(k=p)}return w["margin-block-start"]=`${k}px`,w});function m(){Z(v,qc(t.chunk,zn(a(f)),n()),!0)}var y={reposition:m};{let w=b(()=>[a(v),t.chunk.gridRow]);oi(e,{get chunk(){return t.chunk},get styles(){return a(g)},axis:"x",get forceMargin(){return a(w)},get el(){return a(f)},set el(k){Z(f,k,!0)}})}var _=_e(y);return l(),_}var Zc=j("<span></span>");function Jc(e,t){ge(t,!0);const n=()=>d(s,"$resourceLabelContent",i),r=()=>d(u,"$resourceLabelDidMount",i),[i,o]=$e();let l=Se(t,"date",3,void 0),{resourceLabelContent:s,resourceLabelDidMount:u}=De("state"),c=Te(void 0),f=b(()=>n()?pe(n())?n()({resource:t.resource,date:l()?Je(l()):void 0}):n():t.resource.title);tr(()=>{pe(r())&&r()({resource:t.resource,date:l()?Je(l()):void 0,el:a(c)})});var v=Zc();yt(v,h=>Z(c,h),()=>a(c)),Ye(v,()=>ot(a(f))),x(e,v),_e(),o()}var Qc=j("<span></span>"),jc=j("<button><!></button>"),ef=j("<!> <span><!></span>",1);function tf(e,t){ge(t,!0);const n=()=>d(l,"$theme",r),[r,i]=$e();let{resources:o,theme:l}=De("state"),s=Te({}),u=Te(!0);Di(()=>{Z(s,_n(t.resource)),Z(u,a(s).expanded,!0)});function c(){Z(u,!a(u)),a(s).expanded=a(u),f(a(s).children,a(u)),o.update($r)}function f(_,w){for(let k of _){let p=_n(k);p.hidden=!w,p.expanded&&f(p.children,w)}}var v=ef(),h=J(v);le(h,17,()=>Array(a(s).level),ce,(_,w)=>{var k=Qc();ue(()=>N(k,1,n().expander)),x(_,k)});var g=ie(h,2),m=fe(g);{var y=_=>{var w=jc();w.__click=c;var k=fe(w);{var p=T=>{var E=sa("−");x(T,E)},$=T=>{var E=sa("+");x(T,E)};we(k,T=>{a(u)?T(p):T($,!1)})}ue(()=>N(w,1,n().button)),x(_,w)};we(m,_=>{a(s).children?.length&&_(y)})}ue(()=>N(g,1,n().expander)),x(e,v),_e(),i()}Dn(["click"]);var nf=j("<div></div>");function rf(e,t){ge(t,!0);const n=()=>d(g,"$_today",c),r=()=>d(h,"$_now",c),i=()=>d(y,"$slotDuration",c),o=()=>d(_,"$slotWidth",c),l=()=>d(v,"$_mainEl",c),s=()=>d(m,"$_sidebarWidth",c),u=()=>d(w,"$theme",c),[c,f]=$e();let{_mainEl:v,_now:h,_today:g,_sidebarWidth:m,slotDuration:y,slotWidth:_,theme:w}=De("state"),k=b(()=>{for(let O of t.grid[0])if(Ct(O.dayStart,n()))return O;return{}}),p=b(()=>a(k).gridColumn),$=b(()=>a(k).start),T=b(()=>a(k).end),E=b(()=>{if(r()<a($)||r()>a(T))return null;let O=ke(i());return(r()-a($))/1e3/O*o()}),D=b(()=>({root:l(),rootMargin:Ea()?`0px -${s()+1}px 0px 0px`:`0px 0px 0px -${s()+1}px`,threshold:0}));function P(O,H){O.classList.toggle(u().hidden,!H.isIntersecting)}var S=de(),C=J(S);{var M=O=>{var H=nf();let G;Ye(H,()=>ma(P,a(D))),ue(()=>{N(H,1,u().nowIndicator),G=qt(H,"",G,{"grid-column":a(p)+1,"grid-row":`2 / span ${t.grid.length??""}`,"inset-inline-start":`${a(E)??""}px`})}),x(O,H)};we(C,O=>{a(p)&&a(E)!==null&&O(M)})}x(e,S),_e(),f()}var of=j("<div><time></time></div>"),af=j('<div role="rowheader"><!> <!></div>'),lf=j('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function oo(e,t){ge(t,!0);const n=()=>d(q,"$_viewDates",D),r=()=>d(z,"$_viewResources",D),i=()=>d(C,"$_dayTimeLimits",D),o=()=>d(Ae,"$validRange",D),l=()=>d(re,"$highlightedDates",D),s=()=>d(M,"$_filteredEvents",D),u=()=>d(O,"$_iEvents",D),c=()=>d(Ee,"$scrollTime",D),f=()=>d(G,"$_monthView",D),v=()=>d(ne,"$_today",D),h=()=>d(H,"$_mainEl",D),g=()=>d(he,"$slotDuration",D),m=()=>d(Ve,"$slotWidth",D),y=()=>d(Pe,"$theme",D),_=()=>d(se,"$columnWidth",D),w=()=>d(U,"$_slotLabelPeriodicity",D),k=()=>d(K,"$slotHeight",D),p=()=>d(ee,"$_sidebarWidth",D),$=()=>d(S,"$_daySlots",D),T=()=>d(V,"$_nestedResources",D),E=()=>d(B,"$nowIndicator",D),[D,P]=$e();let{_daySlots:S,_dayTimeLimits:C,_filteredEvents:M,_iEvents:O,_mainEl:H,_monthView:G,_nestedResources:V,_sidebarWidth:ee,_slotLabelPeriodicity:U,_today:ne,_viewResources:z,_viewDates:q,columnWidth:se,highlightedDates:re,nowIndicator:B,scrollTime:Ee,slotDuration:he,slotHeight:K,slotWidth:Ve,theme:Pe,validRange:Ae}=De("state"),me=Te(0),Xe=b(()=>Bc(n(),r(),i(),o(),l())),wt=b(()=>Gc(s(),a(Xe))),je=b(()=>a(wt).chunks),R=b(()=>a(wt).bgChunks),te=b(()=>Vc(u(),a(Xe)));Qe(()=>{n(),c(),Yr().then(He)});function He(){if(f())return;let ve=0,A=v()<n()[0]||v()>n().at(-1);for(let Y of n()){let I=Xc(i(),Y);if(A||Ct(Y,v())){ve+=Pt(an(ke(c()),ke(I.max))-ke(I.min),0);break}else ve+=ke(I.max)-ke(I.min)}Ge(H,W(h).scrollLeft=ve/ke(g())*m()*(document.dir==="rtl"?-1:1),W(h))}let Ie=[];function X(){Vi(Ie,a(je))}Qe(X);var oe=lf();let Oe;var nt=fe(oe),At=fe(nt),pt=ie(At,2),$t=fe(pt);le($t,17,()=>a(Xe)[0],ce,(ve,A,Y)=>{let I=()=>a(A).dayStart,Ce=()=>a(A).disabled,ye=()=>a(A).highlight;Cr(ve,{get date(){return I()},colIndex:1+Y,get disabled(){return Ce()},get highlight(){return ye()},children:(Re,Fe)=>{ii(Re,{get date(){return I()}})},$$slots:{default:!0}})});var mn=ie($t,2);{var Gn=ve=>{var A=de(),Y=J(A);le(Y,17,()=>a(Xe)[0],ce,(I,Ce)=>{let ye=()=>a(Ce).dayStart,Re=()=>a(Ce).disabled,Fe=()=>a(Ce).highlight;Cr(I,{get date(){return ye()},get className(){return y().slots},get disabled(){return Re()},get highlight(){return Fe()},ariaHidden:!0,children:(rt,et)=>{var st=de(),qe=J(st);le(qe,1,()=>$()[ye().getTime()],ce,(Le,Kt)=>{var Zt=of();let Dt;var Tt=fe(Zt);Ye(Tt,()=>ot(a(Kt)[1])),ue(()=>{N(Zt,1,y().slot),Dt=qt(Zt,"",Dt,{"--ec-slot-label-periodicity":a(Kt)[2]}),ze(Tt,"datetime",a(Kt)[0])}),x(Le,Zt)}),x(rt,st)},$$slots:{default:!0}})}),x(ve,A)};we(mn,ve=>{f()||ve(Gn)})}var yn=ie(nt,2),vt=fe(yn);le(vt,5,r,ce,(ve,A)=>{var Y=af(),I=fe(Y);{var Ce=Re=>{tf(Re,{get resource(){return a(A)}})};we(I,Re=>{T()&&Re(Ce)})}var ye=ie(I,2);Jc(ye,{get resource(){return a(A)}}),ue(()=>N(Y,1,y().rowHead)),x(ve,Y)});var lt=ie(vt,2);le(lt,21,()=>a(Xe),ce,(ve,A,Y)=>{var I=de(),Ce=J(I);le(Ce,17,()=>a(A),ce,(ye,Re,Fe)=>{{let rt=b(()=>Fe+1===a(A).length),et=b(()=>Y+1===a(Xe).length);Kc(ye,{get day(){return a(Re)},get noIeb(){return a(rt)},get noBeb(){return a(et)}})}}),x(ve,I)});var Wt=ie(lt,2),bn=fe(Wt);le(bn,17,()=>a(je),ce,(ve,A,Y)=>{yt(io(ve,{get chunk(){return a(A)}}),(I,Ce)=>Ie[Ce]=I,I=>Ie?.[I],()=>[Y])});var zt=ie(bn,2);le(zt,17,()=>a(R),ce,(ve,A)=>{io(ve,{get chunk(){return a(A)}})});var Bt=ie(zt,2);le(Bt,17,()=>a(te),ce,(ve,A)=>{io(ve,{get chunk(){return a(A)}})});var Tn=ie(yn,2);{var Vn=ve=>{rf(ve,{get grid(){return a(Xe)}})};we(Tn,ve=>{E()&&!f()&&ve(Vn)})}yt(oe,ve=>Be(H,ve),()=>h()),Ye(oe,()=>Ni(X)),ue(()=>{N(oe,1,y().main),Oe=qt(oe,"",Oe,{"--ec-grid-cols":a(Xe)[0].length,"--ec-grid-rows":a(Xe).length,"--ec-col-width":_()??"minmax(4em, 1fr)","--ec-slot-label-periodicity":w(),"--ec-slot-height":`${k()??""}px`,"--ec-slot-width":`${m()??""}px`,"--ec-header-height":`${a(me)??""}px`,"--ec-sidebar-width":`${p()??""}px`}),N(nt,1,y().header),N(At,1,y().sidebar),N(pt,1,y().grid),N(yn,1,y().body),N(vt,1,y().sidebar),N(lt,1,y().grid),N(Wt,1,y().events)}),Xr(At,"offsetWidth",ve=>Be(ee,ve)),Xr(nt,"offsetHeight",ve=>Z(me,ve)),x(e,oe),_e(),P()}const sf={createOptions(e){Zi(e),Ka(e),e.slotWidth=16,e.buttonText.resourceTimelineDay="timeline",e.buttonText.resourceTimelineWeek="timeline",e.buttonText.resourceTimelineMonth="timeline",e.theme.expander="ec-expander",e.theme.rowHead="ec-row-head",e.theme.slots="ec-slots",e.view="resourceTimelineWeek",e.views.resourceTimelineDay={buttonText:ei,component:oo,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},slotLabelInterval:"01:00",slotDuration:"00:15",theme:Ut("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:ti,component:oo,displayEventEnd:!1,duration:{weeks:1},slotLabelInterval:"01:00",slotDuration:"00:15",theme:Ut("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:Yi,component:oo,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:Ut("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){Ji(e)},createStores(e){Qi(e),Za(e),e._dayTimeLimits=Hc(e),e._daySlots=Uc(e),e._monthView=zc(e),e._nestedResources=Wc(e)}},uf={createOptions(e){qa(e),Zi(e),e.buttonText.timeGridDay="day",e.buttonText.timeGridWeek="week",e.view="timeGridWeek",e.views.timeGridDay={buttonText:ei,component:no,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:Ut("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.timeGridWeek={buttonText:ti,component:no,duration:{weeks:1},theme:Ut("ec-time-grid ec-week-view")}},createParsers(e){Ji(e)},createStores(e){Qi(e),Xa(e)}};function cf(e,t,n){return ws(Nu,{target:e,props:{plugins:t,options:n}})}function ff(e){return $s(e)}function df(e,t){return cf(e,[rc,vc,pc,Nc,sf,uf],t)}return Pr.create=df,Pr.destroy=ff,Object.defineProperty(Pr,Symbol.toStringTag,{value:"Module"}),Pr})({});
6
6
  //# sourceMappingURL=event-calendar.min.js.map