@event-calendar/build 5.12.0 → 5.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * EventCalendar v5.12.0
2
+ * EventCalendar v5.12.1
3
3
  * https://github.com/vkurko/calendar
4
4
  */
5
- var EventCalendar=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Array.isArray,n=Array.prototype.indexOf,r=Array.prototype.includes,i=Array.from,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,c=Object.prototype,l=Array.prototype,u=Object.getPrototypeOf,d=Object.isExtensible,f=()=>{};function p(e){for(var t=0;t<e.length;t++)e[t]()}function m(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var h=1<<24,g=1024,_=2048,v=4096,y=8192,b=16384,x=32768,S=1<<25,C=65536,w=1<<19,ee=1<<20,te=1<<25,ne=65536,re=1<<21,ie=1<<22,ae=1<<23,oe=Symbol(`$state`),se=Symbol(`legacy props`),ce=Symbol(``),le=Symbol(`attributes`),T=Symbol(`class`),ue=Symbol(`style`),de=Symbol(`text`),fe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},pe=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function me(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function he(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ge(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function _e(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ve(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ye(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function be(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function xe(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function Se(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ce(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ee(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var De={},Oe=Symbol(`uninitialized`),ke=`http://www.w3.org/1999/xhtml`;function Ae(){console.warn(`https://svelte.dev/e/derived_inert`)}function je(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Me(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function Ne(e){E=e}var D;function Pe(e){if(e===null)throw je(),De;return D=e}function Fe(){return Pe(dn(D))}function O(e){if(E){if(dn(D)!==null)throw je(),De;D=e}}function Ie(e=1){if(E){for(var t=e,n=D;t--;)n=dn(n);D=n}}function Le(e=!0){for(var t=0,n=D;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=dn(n);e&&n.remove(),n=i}}function Re(e){if(!e||e.nodeType!==8)throw je(),De;return e.data}function ze(e){return e===this.v}function Be(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ve(e){return!Be(e,this.v)}var He=null;function Ue(e){He=e}function k(e){return qe(`getContext`).get(e)}function We(e,t){return qe(`setContext`).set(e,t),t}function Ge(e,t=!1,n){He={p:He,i:!1,c:null,e:null,s:e,x:null,r:B,l:null}}function A(e){var t=He,n=t.e;if(n!==null){t.e=null;for(var r of n)Sn(r)}return e!==void 0&&(t.x=e),t.i=!0,He=t.p,e??{}}function Ke(){return!0}function qe(e){return He===null&&me(e),He.c??=new Map(Je(He)||void 0)}function Je(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Ye=[];function Xe(){var e=Ye;Ye=[],p(e)}function Ze(e){if(Ye.length===0&&!jt){var t=Ye;queueMicrotask(()=>{t===Ye&&Xe()})}Ye.push(e)}function Qe(){for(;Ye.length>0;)Xe()}function $e(e){var t=B;if(t===null)return z.f|=ae,e;if(!(t.f&32768)&&!(t.f&4))throw e;et(e,t)}function et(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var tt=~(_|v|g);function nt(e,t){e.f=e.f&tt|t}function rt(e){e.f&512||e.deps===null?nt(e,g):nt(e,v)}function it(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ne,it(t.deps))}function at(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),it(e.deps),nt(e,g)}var ot=!1;function st(e){var t=ot;try{return ot=!1,[e(),ot]}finally{ot=t}}function ct(e,t){if(t){let t=document.body;e.autofocus=!0,Ze(()=>{document.activeElement===t&&e.focus()})}}function lt(e){var t=z,n=B;qn(null),Jn(null);try{return e()}finally{qn(t),Jn(n)}}function ut(e){let t=0,n=Xt(0),r;return()=>{yn()&&(V(n),Dn(()=>(t===0&&(r=H(()=>e(()=>en(n)))),t+=1,()=>{Ze(()=>{--t,t===0&&(r?.(),r=void 0,en(n))})})))}}var dt=C|w;function ft(e,t,n,r){new pt(e,t,n,r)}var pt=class{parent;is_pending=!1;transform_error;#e;#t=E?D:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=ut(()=>(this.#m=Xt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=B;t.b=this,t.f|=128,n(e)},this.parent=B.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=On(()=>{if(E){let e=this.#t;Fe();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},dt),E&&(this.#e=D)}#g(){try{this.#a=An(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=An(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=An(()=>e(this.#e)),Ze(()=>{var e=this.#c=document.createDocumentFragment(),t=ln();e.append(t),this.#a=this.#x(()=>An(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Ln(this.#o,()=>{this.#o=null}),this.#b(M))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=An(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Vn(this.#a,e);let t=this.#n.pending;this.#o=An(()=>t(this.#e))}else this.#b(M)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){at(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=B,n=z,r=He;Jn(this.#i),qn(this.#i),Ue(this.#i.ctx);try{return Lt.ensure(),e()}catch(e){return $e(e),null}finally{Jn(t),qn(n),Ue(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Ln(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ze(()=>{this.#d=!1,this.#m&&Qt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),V(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;M?.is_fork?(this.#a&&M.skip_effect(this.#a),this.#o&&M.skip_effect(this.#o),this.#s&&M.skip_effect(this.#s),M.oncommit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(Pn(this.#a),null),this.#o&&=(Pn(this.#o),null),this.#s&&=(Pn(this.#s),null),E&&(Pe(this.#t),Ie(),Pe(Le()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{if(r){Me();return}r=!0,i&&Ee(),this.#s!==null&&Ln(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){et(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return An(()=>{var t=B;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return et(e,this.#i.parent),null}}))};Ze(()=>{var t;try{t=this.transform_error(e)}catch(e){et(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>et(e,this.#i&&this.#i.parent)):o(t)})}};function mt(e,t,n,r){let i=Ke()?vt:xt;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=B,c=ht(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){et(e,s)}gt()}}var d=_t();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>bt(e))).then(u).catch(e=>et(e,s)).finally(d)}l?l.then(()=>{c(),f(),gt()}):f()}function ht(){var e=B,t=z,n=He,r=M;return function(i=!0){Jn(e),qn(t),Ue(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function gt(e=!0){Jn(null),qn(null),Ue(null),e&&M?.deactivate()}function _t(){var e=B,t=e.b,n=M,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function vt(e){var t=2|_;return B!==null&&(B.f|=w),{ctx:He,deps:null,effects:null,equals:ze,f:t,fn:e,reactions:null,rv:0,v:Oe,wv:0,parent:B,ac:null}}var yt=Symbol(`obsolete`);function bt(e,t,n){let r=B;r===null&&he();var i=void 0,a=Xt(Oe),o=!z,s=new Set;return En(()=>{var t=B,n=m();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==fe&&n.reject(e)}).finally(gt)}catch(e){n.reject(e),gt()}var c=M;if(o){if(t.f&32768)var l=_t();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(yt);else for(let e of s.values())e.reject(yt);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==yt&&(c.activate(),t?(a.f|=ae,Qt(a,t)):(a.f&8388608&&(a.f^=ae),Qt(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),bn(()=>{for(let e of s)e.reject(yt)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function j(e){let t=vt(e);return Xn(t),t}function xt(e){let t=vt(e);return t.equals=Ve,t}function St(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Pn(t[n])}}function Ct(e){var t,n=B,r=e.parent;if(!Wn&&r!==null&&e.v!==Oe&&r.f&24576)return Ae(),e.v;Jn(r);try{e.f&=~ne,St(e),t=cr(e)}finally{Jn(n)}return t}function wt(e){var t=Ct(e);if(!e.equals(t)&&(e.wv=ar(),(!M?.is_fork||e.deps===null)&&(M===null?e.v=t:(M.capture(e,t,!0),Ot?.capture(e,t,!0)),e.deps===null))){nt(e,g);return}Wn||(kt===null?rt(e):(yn()||M?.is_fork)&&kt.set(e,t))}function Tt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&lt(()=>{t.ac.abort(fe),t.ac=null}),t.fn!==null&&(t.teardown=f),ur(t,0),Mn(t))}function Et(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&dr(t)}var Dt=null,M=null,Ot=null,kt=null,At=null,jt=!1,Mt=!1,Nt=null,Pt=null,Ft=0,It=1,Lt=class e{id=It++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){Dt===null?Dt=this:(Dt.#n=this,this.#t=Dt),Dt=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)nt(r,_),t(r);for(r of n.m)nt(r,v),t(r)}this.#p.add(e)}#g(){this.#e=!0,Ft++>1e3&&(this.#x(),zt());for(let e of this.#u)this.#d.delete(e),nt(e,_),this.schedule(e);for(let e of this.#d)nt(e,v),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=Nt=[],r=[],i=Pt=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw Kt(e),this.#h()||this.discard(),t}if(M=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Nt=null,Pt=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)Gt(e,t);i.length>0&&M.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),Ot=this,Vt(r),Vt(n),Ot=null,this.#s?.resolve();var s=M;if(this.#a===0&&(this.#c.length===0||s!==null)&&this.#x(),this.#c.length>0)if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this;s!==null&&s.#g()}#_(e,t,n){e.f^=g;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=g:i&4?t.push(r):or(r)&&(i&16&&this.#d.add(r),dr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),nt(i,_),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#x(),M=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)at(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==Oe&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),kt?.set(e,t)),this.is_fork||(e.v=t)}activate(){M=this}deactivate(){M=null,kt=null}flush(){try{Mt=!0,M=this,this.#g()}finally{Ft=0,At=null,Nt=null,Pt=null,Mt=!1,M=null,kt=null,Jt.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(yt);this.#x(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,Ze(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=m()).promise}static ensure(){if(M===null){let t=M=new e;!Mt&&!jt&&Ze(()=>{t.#e||t.flush()})}return M}apply(){kt=null}schedule(e){if(At=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Nt!==null&&t===B&&(z===null||!(z.f&2)))return;if(n&96){if(!(n&1024))return;t.f^=g}}this.#c.push(t)}#x(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?Dt=e:t.#t=e,this.linked=!1}}};function Rt(e){var t=jt;jt=!0;try{var n;for(e&&(M!==null&&!M.is_fork&&M.flush(),n=e());;){if(Qe(),M===null)return n;M.flush()}}finally{jt=t}}function zt(){try{be()}catch(e){et(e,At)}}var Bt=null;function Vt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&or(r)&&(Bt=new Set,dr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&In(r),Bt?.size>0)){Jt.clear();for(let e of Bt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Bt.has(n)&&(Bt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||dr(n)}}Bt.clear()}}Bt=null}}function Ht(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Ht(i,t,n,r):e&4194320&&!(e&2048)&&Ut(i,t,r)&&(nt(i,_),Wt(i))}}function Ut(e,t,n){let i=n.get(e);if(i!==void 0)return i;if(e.deps!==null)for(let i of e.deps){if(r.call(t,i))return!0;if(i.f&2&&Ut(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Wt(e){M.schedule(e)}function Gt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),nt(e,g);for(var n=e.first;n!==null;)Gt(n,t),n=n.next}}function Kt(e){nt(e,g);for(var t=e.first;t!==null;)Kt(t),t=t.next}var qt=new Set,Jt=new Map,Yt=!1;function Xt(e,t){return{f:0,v:e,reactions:null,equals:ze,rv:0,wv:0}}function N(e,t){let n=Xt(e,t);return Xn(n),n}function Zt(e,t=!1,n=!0){let r=Xt(e);return t||(r.equals=Ve),r}function P(e,t,n=!1){return z!==null&&(!Kn||z.f&131072)&&Ke()&&z.f&4325394&&(Yn===null||!Yn.has(e))&&Te(),Qt(e,n?nn(t):t,Pt)}function Qt(e,t,n=null){if(!e.equals(t)){Jt.set(e,Wn?t:e.v);var r=Lt.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Ct(t),kt===null&&rt(t)}e.wv=ar(),tn(e,_,n),Ke()&&B!==null&&B.f&1024&&!(B.f&96)&&($n===null?er([e]):$n.push(e)),!r.is_fork&&qt.size>0&&!Yt&&$t()}return t}function $t(){Yt=!1;for(let e of qt){e.f&1024&&nt(e,v);let t;try{t=or(e)}catch{t=!0}t&&dr(e)}qt.clear()}function en(e){P(e,e.v+1)}function tn(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ke(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===B)){var l=(c&_)===0;if(l&&nt(s,t),c&131072)qt.add(s);else if(c&2){var u=s;kt?.delete(u),c&65536||(c&512&&(B===null||!(B.f&2097152))&&(s.f|=ne),tn(u,v,n))}else if(l){var d=s;c&16&&Bt!==null&&Bt.add(d),n===null?Wt(d):n.push(d)}}}}function nn(e){if(typeof e!=`object`||!e||oe in e)return e;let n=u(e);if(n!==c&&n!==l)return e;var r=new Map,i=t(e),a=N(0),s=null,d=rr,f=e=>{if(rr===d)return e();var t=z,n=rr;qn(null),ir(d);var r=e();return qn(t),ir(n),r};return i&&r.set(`length`,N(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Ce();var i=r.get(t);return i===void 0?f(()=>{var e=N(n.value,s);return r.set(t,e),e}):P(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>N(Oe,s));r.set(t,e),en(a)}}else P(n,Oe),en(a);return!0},get(t,n,i){if(n===oe)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||o(t,n)?.writable)&&(a=f(()=>N(nn(c?t[n]:Oe),s)),r.set(n,a)),a!==void 0){var l=V(a);return l===Oe?void 0:l}return Reflect.get(t,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=V(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==Oe)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===oe)return!0;var n=r.get(t),i=n!==void 0&&n.v!==Oe||Reflect.has(e,t);return(n!==void 0||B!==null&&(!i||o(e,t)?.writable))&&(n===void 0&&(n=f(()=>N(i?nn(e[t]):Oe,s)),r.set(t,n)),V(n)===Oe)?!1:i},set(e,t,n,c){var l=r.get(t),u=t in e;if(i&&t===`length`)for(var d=n;d<l.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>N(Oe,s)),r.set(d+``,p)):P(p,Oe)}if(l===void 0)(!u||o(e,t)?.writable)&&(l=f(()=>N(void 0,s)),P(l,nn(n)),r.set(t,l));else{u=l.v!==Oe;var m=f(()=>nn(n));P(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,n),!u){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&P(g,_+1)}en(a)}return!0},ownKeys(e){V(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==Oe});for(var[n,i]of r)i.v!==Oe&&!(n in e)&&t.push(n);return t},setPrototypeOf(){we()}})}var rn,an,on,sn;function cn(){if(rn===void 0){rn=window,an=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;on=o(t,`firstChild`).get,sn=o(t,`nextSibling`).get,d(e)&&(e[T]=void 0,e[le]=null,e[ue]=void 0,e.__e=void 0),d(n)&&(n[de]=void 0)}}function ln(e=``){return document.createTextNode(e)}function un(e){return on.call(e)}function dn(e){return sn.call(e)}function F(e,t){if(!E)return un(e);var n=un(D);if(n===null)n=D.appendChild(ln());else if(t&&n.nodeType!==3){var r=ln();return n?.before(r),Pe(r),r}return t&&hn(n),Pe(n),n}function I(e,t=!1){if(!E){var n=un(e);return n instanceof Comment&&n.data===``?dn(n):n}if(t){if(D?.nodeType!==3){var r=ln();return D?.before(r),Pe(r),r}hn(D)}return D}function L(e,t=1,n=!1){let r=E?D:e;for(var i;t--;)i=r,r=dn(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=ln();return r===null?i?.after(a):r.before(a),Pe(a),a}hn(r)}return Pe(r),r}function fn(e){e.textContent=``}function pn(){return!1}function mn(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function hn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function gn(e){B===null&&(z===null&&ye(e),ve()),Wn&&_e(e)}function _n(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function vn(e,t){var n=B;n!==null&&n.f&8192&&(e|=y);var r={ctx:He,deps:null,nodes:null,f:e|_|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};M?.register_created_effect(r);var i=r;if(e&4)Nt===null?Lt.ensure().schedule(r):Nt.push(r);else if(t!==null){try{dr(r)}catch(e){throw Pn(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=C))}if(i!==null&&(i.parent=n,n!==null&&_n(i,n),z!==null&&z.f&2&&!(e&64))){var a=z;(a.effects??=[]).push(i)}return r}function yn(){return z!==null&&!Kn}function bn(e){let t=vn(8,null);return nt(t,g),t.teardown=e,t}function xn(e){gn(`$effect`);var t=B.f;if(!z&&t&32&&He!==null&&!He.i){var n=He;(n.e??=[]).push(e)}else return Sn(e)}function Sn(e){return vn(4|ee,e)}function Cn(e){return gn(`$effect.pre`),vn(8|ee,e)}function wn(e){Lt.ensure();let t=vn(64|w,e);return(e={})=>new Promise(n=>{e.outro?Ln(t,()=>{Pn(t),n(void 0)}):(Pn(t),n(void 0))})}function Tn(e){return vn(4,e)}function En(e){return vn(ie|w,e)}function Dn(e,t=0){return vn(8|t,e)}function R(e,t=[],n=[],r=[]){mt(r,t,n,t=>{vn(8,()=>{e(...t.map(V))})})}function On(e,t=0){return vn(16|t,e)}function kn(e,t=0){return vn(h|t,e)}function An(e){return vn(32|w,e)}function jn(e){var t=e.teardown;if(t!==null){let e=Wn,n=z;Gn(!0),qn(null);try{t.call(null)}finally{Gn(e),qn(n)}}}function Mn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&lt(()=>{e.abort(fe)});var r=n.next;n.f&64?n.parent=null:Pn(n,t),n=r}}function Nn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Pn(t),t=n}}function Pn(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Fn(e.nodes.start,e.nodes.end),n=!0),e.f|=S,Mn(e,t&&!n),ur(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();jn(e),e.f^=S,e.f|=b;var i=e.parent;i!==null&&i.first!==null&&In(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Fn(e,t){for(;e!==null;){var n=e===t?null:dn(e);e.remove(),e=n}}function In(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 Ln(e,t,n=!0){var r=[];Rn(e,r,!0);var i=()=>{n&&Pn(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Rn(e,t,n){if(!(e.f&8192)){e.f^=y;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Rn(i,t,o?n:!1)}i=a}}}function zn(e){Bn(e,!0)}function Bn(e,t){if(e.f&8192){e.f^=y,e.f&1024||(nt(e,_),Lt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Bn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Vn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:dn(n);t.append(n),n=i}}var Hn=null,Un=!1,Wn=!1;function Gn(e){Wn=e}var z=null,Kn=!1;function qn(e){z=e}var B=null;function Jn(e){B=e}var Yn=null;function Xn(e){z!==null&&(Yn??=new Set).add(e)}var Zn=null,Qn=0,$n=null;function er(e){$n=e}var tr=1,nr=0,rr=nr;function ir(e){rr=e}function ar(){return++tr}function or(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ne),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(or(a)&&wt(a),a.wv>e.wv)return!0}t&512&&kt===null&&nt(e,g)}return!1}function sr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Yn!==null&&Yn.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?sr(a,t,!1):t===a&&(n?nt(a,_):a.f&1024&&nt(a,v),Wt(a))}}function cr(e){var t=Zn,n=Qn,r=$n,i=z,a=Yn,o=He,s=Kn,c=rr,l=e.f;Zn=null,Qn=0,$n=null,z=l&96?null:e,Yn=null,Ue(e.ctx),Kn=!1,rr=++nr,e.ac!==null&&(lt(()=>{e.ac.abort(fe)}),e.ac=null);try{e.f|=re;var u=e.fn,d=u();e.f|=x;var f=e.deps,p=M?.is_fork;if(Zn!==null){var m;if(p||ur(e,Qn),f!==null&&Qn>0)for(f.length=Qn+Zn.length,m=0;m<Zn.length;m++)f[Qn+m]=Zn[m];else e.deps=f=Zn;if(yn()&&e.f&512)for(m=Qn;m<f.length;m++)(f[m].reactions??=[]).push(e)}else!p&&f!==null&&Qn<f.length&&(ur(e,Qn),f.length=Qn);if(Ke()&&$n!==null&&!Kn&&f!==null&&!(e.f&6146))for(m=0;m<$n.length;m++)sr($n[m],e);if(i!==null&&i!==e){if(nr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=nr;if(t!==null)for(let e of t)e.rv=nr;$n!==null&&(r===null?r=$n:r.push(...$n))}return e.f&8388608&&(e.f^=ae),d}catch(e){return $e(e)}finally{e.f^=re,Zn=t,Qn=n,$n=r,z=i,Yn=a,Ue(o),Kn=s,rr=c}}function lr(e,t){let i=t.reactions;if(i!==null){var a=n.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=t.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&t.f&2&&(Zn===null||!r.call(Zn,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ne),s.v!==Oe&&rt(s),s.ac!==null&&lt(()=>{s.ac.abort(fe),s.ac=null,nt(s,_)}),Tt(s),ur(s,0)}}function ur(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)lr(e,n[r])}function dr(e){var t=e.f;if(!(t&16384)){nt(e,g);var n=B,r=Un;B=e,Un=(t&96)==0;try{t&16777232?Nn(e):Mn(e),jn(e);var i=cr(e);e.teardown=typeof i==`function`?i:null,e.wv=tr}finally{Un=r,B=n}}}async function fr(){await Promise.resolve(),Rt()}function V(e){var t=(e.f&2)!=0;if(Hn?.add(e),z!==null&&!Kn&&!(B!==null&&B.f&16384)&&(Yn===null||!Yn.has(e))){var n=z.deps;if(z.f&2097152)e.rv<nr&&(e.rv=nr,Zn===null&&n!==null&&n[Qn]===e?Qn++:Zn===null?Zn=[e]:Zn.push(e));else{z.deps??=[],r.call(z.deps,e)||z.deps.push(e);var i=e.reactions;i===null?e.reactions=[z]:r.call(i,z)||i.push(z)}}if(Wn&&Jt.has(e))return Jt.get(e);if(t){var a=e;if(Wn){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||mr(a))&&(o=Ct(a)),Jt.set(a,o),o}var s=(a.f&512)==0&&!Kn&&z!==null&&(Un||(z.f&512)!=0),c=(a.f&x)===0;or(a)&&(s&&(a.f|=512),wt(a)),s&&!c&&(Et(a),pr(a))}if(kt?.has(e))return kt.get(e);if(e.f&8388608)throw e.v;return e.v}function pr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Et(t),pr(t))}function mr(e){if(e.v===Oe)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Jt.has(t)||t.f&2&&mr(t))return!0;return!1}function H(e){var t=Kn;try{return Kn=!0,e()}finally{Kn=t}}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var hr=[`touchstart`,`touchmove`];function gr(e){return hr.includes(e)}var _r=Symbol(`events`),vr=new Set,yr=new Set;function br(e,t,n,r={}){function i(e){if(r.capture||Tr.call(t,e),!e.cancelBubble)return lt(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ze(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function xr(e,t,n,r,i){var a={capture:r,passive:i},o=br(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&bn(()=>{t.removeEventListener(e,o,a)})}function Sr(e,t,n){(t[_r]??={})[e]=n}function Cr(e){for(var t=0;t<e.length;t++)vr.add(e[t]);for(var n of yr)n(e)}var wr=null;function Tr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;wr=e;var s=0,c=wr===e&&e[_r];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[_r]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=i[s]||e.target,o!==t){a(e,`currentTarget`,{configurable:!0,get(){return o||n}});var d=z,f=B;qn(null),Jn(null);try{for(var p,m=[];o!==null&&o!==t;){try{var h=o[_r]?.[r];h!=null&&(!o.disabled||e.target===o)&&h.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble)break;s++,o=s<i.length?i[s]:null}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[_r]=t,delete e.currentTarget,qn(d),Jn(f)}}}var Er=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Dr(e){return Er?.createHTML(e)??e}function Or(e){var t=mn(`template`);return t.innerHTML=Dr(e.replaceAll(`<!>`,`<!---->`)),t.content}function kr(e,t){var n=B;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function U(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(E)return kr(D,null),D;i===void 0&&(i=Or(a?e:`<!>`+e),n||(i=un(i)));var t=r||an?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=un(t),s=t.lastChild;kr(o,s)}else kr(t,t);return t}}function W(){if(E)return kr(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(``),n=ln();return e.append(t,n),kr(t,n),e}function G(e,t){if(E){var n=B;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),Fe();return}e!==null&&e.before(t)}function Ar(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[de]??=e.nodeValue)&&(e[de]=n,e.nodeValue=`${n}`)}function jr(e,t){return Nr(e,t)}var Mr=new Map;function Nr(e,{target:t,anchor:n,props:r={},events:a,context:o,intro:s=!0,transformError:c}){cn();var l=void 0,u=wn(()=>{var s=n??t.appendChild(ln());ft(s,{pending:()=>{}},t=>{Ge({});var n=He;if(o&&(n.c=o),a&&(r.$$events=a),E&&kr(t,null),l=e(t,r)||{},E&&(B.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw je(),De;A()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=gr(r);for(let e of[t,document]){var a=Mr.get(e);a===void 0&&(a=new Map,Mr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Tr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(i(vr)),yr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Mr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Tr),r.delete(e),r.size===0&&Mr.delete(n)):r.set(e,i)}yr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return Pr.set(l,u),l}var Pr=new WeakMap;function Fr(e,t){let n=Pr.get(e);return n?(Pr.delete(e),n(t)):Promise.resolve()}var Ir=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)zn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(zn(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(Pn(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Vn(r,t),t.append(ln()),this.#n.set(e,{effect:r,fragment:t})}else Pn(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Ln(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(Pn(n.effect),this.#n.delete(e))};ensure(e,t){var n=M,r=pn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=ln();i.append(a),this.#n.set(e,{effect:An(()=>t(a)),fragment:i})}else this.#t.set(e,An(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else E&&(this.anchor=D),this.#a(n)}};function K(e,t,n=!1){var r;E&&(r=D,Fe());var i=new Ir(e),a=n?C:0;function o(e,t){if(E){var n=Re(r);if(e!==parseInt(n.substring(1))){var a=Le();Pe(a),i.anchor=a,Ne(!1),i.ensure(e,t),Ne(!0);return}}i.ensure(e,t)}On(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function q(e,t){return t}function Lr(e,t,n){for(var r=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];Ln(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Rr(e,i(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else--s},!1)}if(s===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;fn(d),d.append(u),e.items.clear()}Rr(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Rr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=te,Vn(a,document.createDocumentFragment())):Pn(t[i],n)}}var zr;function J(e,n,r,a,o,s=null){var c=e,l=new Map;if(n&4){var u=e;c=E?Pe(un(u)):u.appendChild(ln())}E&&Fe();var d=null,f=xt(()=>{var e=r();return t(e)?e:e==null?[]:i(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Vr(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=te,Ur(d,null,c)):zn(d):Ln(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:On(()=>{p=V(f);var e=p.length;let t=!1;E&&Re(c)===`[!`!=(e===0)&&(c=Le(),Pe(c),Ne(!1),t=!0);for(var i=new Set,u=M,v=pn(),y=0;y<e;y+=1){E&&D.nodeType===8&&D.data===`]`&&(c=D,t=!0,Ne(!1));var b=p[y],x=a(b,y),S=h?null:l.get(x);S?(S.v&&Qt(S.v,b),S.i&&Qt(S.i,y),v&&u.unskip_effect(S.e)):(S=Hr(l,h?c:zr??=ln(),b,x,y,o,n,r),h||(S.e.f|=te),l.set(x,S)),i.add(x)}if(e===0&&s&&!d&&(h?d=An(()=>s(c)):(d=An(()=>s(zr??=ln())),d.f|=te)),e>i.size&&ge(``,``,``),E&&e>0&&Pe(Le()),!h)if(m.set(u,i),v){for(let[e,t]of l)i.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);t&&Ne(!0),V(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,E&&(c=D)}function Br(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Vr(e,t,n,r,a){var o=(r&8)!=0,s=t.length,c=e.items,l=Br(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=a(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=a(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(zn(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=te,_===l)Ur(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Wr(e,d,_),Wr(e,_,y),Ur(_,y,n),d=_,p=[],m=[],l=Br(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],C=p[p.length-1];for(x=0;x<p.length;x+=1)Ur(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Wr(e,S.prev,C.next),Wr(e,d,S),Wr(e,C,b),l=b,d=C,--v,p=[],m=[]}else u.delete(_),Ur(_,l,n),Wr(e,_.prev,_.next),Wr(e,_,d===null?e.effect.first:d.next),Wr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Br(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Br(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Rr(e,i(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var w=[];if(u!==void 0)for(_ of u)_.f&8192||w.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&w.push(l),l=Br(l.next);var ee=w.length;if(ee>0){var ne=r&4&&s===0?n:null;if(o){for(v=0;v<ee;v+=1)w[v].nodes?.a?.measure();for(v=0;v<ee;v+=1)w[v].nodes?.a?.fix()}Lr(e,w,ne)}}o&&Ze(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Hr(e,t,n,r,i,a,o,s){var c=o&1?o&16?Xt(n):Zt(n,!1,!1):null,l=o&2?Xt(i):null;return{v:c,i:l,e:An(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Ur(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=dn(r);if(a.before(r),r===i)return;r=o}}function Wr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Gr(e,t,...n){var r=new Ir(e);On(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},C)}function Kr(e,t,n){var r;E&&(r=D,Fe());var i=new Ir(e);On(()=>{var e=t()??null;if(E&&Re(r)===`[`!=(e!==null)){var a=Le();Pe(a),i.anchor=a,Ne(!1),i.ensure(e,e&&(t=>n(t,e))),Ne(!0);return}i.ensure(e,e&&(t=>n(t,e)))},C)}function qr(e,t){var n=void 0,r;kn(()=>{n!==(n=t())&&(r&&=(Pn(r),null),n&&(r=An(()=>{Tn(()=>n(e))})))})}function Jr(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=Jr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Yr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Jr(e))&&(r&&(r+=` `),r+=t);return r}function Xr(e){return typeof e==`object`?Yr(e):e??``}var Zr=[...`
6
- \r\f\xA0\v`];function Qr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Zr.includes(r[o-1]))&&(s===r.length||Zr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function $r(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function ei(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ti(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,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(ei)),i&&c.push(...Object.keys(i).map(ei));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=ei(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=$r(r)),i&&(n+=$r(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Y(e,t,n,r,i,a){var o=e[T];if(E||o!==n||o===void 0){var s=Qr(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[T]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function ni(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 ri(e,t,n,r){var i=e[ue];if(E||i!==t){var a=ti(t,r);(!E||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[ue]=t}else r&&(Array.isArray(r)?(ni(e,n?.[0],r[0]),ni(e,n?.[1],r[1],`important`)):ni(e,n,r));return r}var ii=Symbol(`is custom element`),ai=Symbol(`is html`),oi=pe?`link`:`LINK`;function si(e,t,n,r){var i=ci(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===oi)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ce]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ui(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ci(e){return e[le]??={[ii]:e.nodeName.includes(`-`),[ai]:e.namespaceURI===ke}}var li=new Map;function ui(e){var t=e.getAttribute(`is`)||e.nodeName,n=li.get(t);if(n)return n;li.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=s(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=u(i)}return n}var di=new class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}}({box:`border-box`});function fi(e,t,n){var r=di.observe(e,()=>n(e[t]));Tn(()=>(H(()=>n(e[t])),r))}function pi(e,t){return e===t||e?.[oe]===t}function mi(e={},t,n,r){var i=He.r,a=B;return Tn(()=>{var o,s;return Dn(()=>{o=s,s=r?.()||[],H(()=>{pi(n(...s),e)||(t(e,...s),o&&pi(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&pi(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var hi={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function gi(e,t,n){return new Proxy({props:e,exclude:t},hi)}function X(e,t,n,r){var i=!0,a=(n&8)!=0,s=(n&16)!=0,c=r,l=!0,u=void 0,d=()=>s&&i?(u??=vt(r),V(u)):(l&&(l=!1,c=s?H(r):r),c);let f;if(a){var p=oe in e||se in e;f=o(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;a?[m,h]=st(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Se(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?vt:xt)(()=>(v=!1,g()));a&&V(y);var b=B;return(function(e,t){if(arguments.length>0){let n=t?V(y):i&&a?nn(e):e;return P(y,n),v=!0,c!==void 0&&(c=n),e}return Wn&&v||b.f&16384?y.v:V(y)})}function _i(){return z===null&&xe(),(z.ac??=new AbortController).signal}function vi(e){He===null&&me(`onMount`),xn(()=>{let t=H(e);if(typeof t==`function`)return t})}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);function yi(e,t=void 0){return function(n){return n.key===`Enter`||n.key===` `&&!n.preventDefault()?e.call(t,n):void 0}}function bi(e,t){return t?null:t=>{typeof e==`string`?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function xi(e){return t=>{let n=n=>{t&&!t.contains(n.target)&&t.dispatchEvent(new CustomEvent(e+`outside`,{detail:{jsEvent:n}}))};return document.addEventListener(e,n,!0),()=>{document.removeEventListener(e,n,!0)}}}function Si(e){return t=>{let n=new ResizeObserver(n=>{for(let r of n)e(t,r)});return n.observe(t),()=>{n.unobserve(t)}}}function Ci(e,t){return n=>{let r=new IntersectionObserver(t=>{for(let r of t)e(n,r)},t);return r.observe(n),()=>{r.unobserve(n)}}}function Z(...e){return Object.assign(...e)}function wi(e){return Object.keys(e)}function Ti(e){return Object.entries(e)}function Ei(e,t){return Object.hasOwn(e,t)}function Di(e){return Math.floor(e)}function Oi(e){return Math.ceil(e)}function ki(...e){return Math.min(...e)}function Ai(...e){return Math.max(...e)}function ji(){return Symbol(`ec`)}function Mi(e){return e.length}function Ni(e){return!Mi(e)}function Pi(e=new Date){return-e.getTimezoneOffset()}function Fi(e){return Array.isArray(e)}function Ii(e){return typeof e==`function`}function Li(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ri(e){return e instanceof Date}function zi(e){return e()}function Bi(e){e.forEach(zi)}function Vi(){}var Hi=e=>e;function Ui(){return window.getComputedStyle(document.documentElement).direction===`rtl`}function Wi(e){return t=>t===void 0?void 0:e(t)}function Gi(e,t,n,r){return r?{snippet:r,arg:t?.()}:{content:(Ii(e)?e(t?.()):e)??(Ii(n)?n():n)}}var Ki=86400;function qi(e=new Date,t=void 0){return Ri(e)?ga(e,t):_a(e,t)}function Ji(e){if(typeof e==`number`)e={seconds:e};else if(typeof e==`string`){let t=0,n=2;for(let r of e.split(`:`,3))t+=parseInt(r,10)*60**n--;e={seconds:t}}else Ri(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function Q(e){let t=new Date(e.getTime());return ma(t,ha(e)),t}function Yi(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;)Qi(e);return e.setUTCDate(e.getUTCDate()+n*t.days),e.setUTCSeconds(e.getUTCSeconds()+n*t.seconds),e}function Xi(e,t,n=1){return Yi(e,t,-n)}function Zi(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function Qi(e,t=1){return Zi(e,-t)}function $i(e){return e.setUTCHours(0,0,0,0),e}function ea(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function ta(e,t=19){return e.toISOString().substring(0,t)}function na(e,...t){return t.every(t=>e.getTime()===t.getTime())}function ra(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n>=0?n:n+7)),e}function ia(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n<=0?n:n-7)),e}function aa(e){return typeof e==`string`&&e.length<=10}function oa(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function $(e){return e.seconds}function sa(e,t,n){return Yi(e,t),va(e,n,Zi),e}function ca(e,t,n){return Xi(e,t),va(e,n,Qi),e}function la(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/Ki+1)/7)}function ua(e,t,n,r){return Gi(n,()=>({date:ea(t),week:e}),()=>`W`+String(e).padStart(2,`0`),r)}function da(e,t={}){let n=e.match(/([+-])(\d{2}):(\d{2})$/);if(n)return Z(t,n),(n[1]+`1`)*(n[2]*60+ +n[3])}function fa(e,t){return t&&e.setUTCMinutes(e.getUTCMinutes()+t),e}var pa=Symbol(`ec`);function ma(e,t){return e[pa]=t,e}function ha(e){return e[pa]}function ga(e,t=void 0){let n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()));return fa(n,t?t-Pi(n):0),ma(n,t??Pi(n)),n}function _a(e,t=void 0){let n={},r=da(e,n);r!==void 0&&(e=e.substring(0,n.index));let i=e.match(/\d+/g),a=new Date(Date.UTC(+i[0],i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0));return t!==void 0&&r!==void 0&&fa(a,t-r),ma(a,t??r),a}function va(e,t,n){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)n(e)}var ya=ji();function ba(e,t){e[ya]=t}function xa(e){return!!e?.[ya]}function Sa(e){return e[ya]}function Ca(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 e of r)i.setAttribute(...e);return i}function wa(e){return e.getBoundingClientRect()}function Ta(e,t){for(;t--;)e=e.parentElement;return e}function Ea(e){return wa(e).height}function Da(e,t,n=document,r=[]){r.push(n);for(let i of n.elementsFromPoint(e,t)){if(xa(i))return i;if(i.shadowRoot&&!r.includes(i.shadowRoot)){let n=Da(e,t,i.shadowRoot,r);if(n)return n}}return null}function Oa(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function ka(e,t=void 0){return function(n){n.stopPropagation(),e&&e.call(t,n)}}function Aa(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 ja(e){return e=Z({},e),e.currentStart=ea(e.currentStart),e.currentEnd=ea(e.currentEnd),e.activeStart=ea(e.activeStart),e.activeEnd=ea(e.activeEnd),e}var Ma=1;function Na(e,t=void 0){return e.map(e=>{let n={id:`id`in e?String(e.id):`{generated-${Ma++}}`,resourceIds:Pa(e,`resourceId`).map(String),allDay:e.allDay??(aa(e.start)&&aa(e.end)),start:qi(e.start,t),end:qi(e.end,t),title:e.title??``,editable:e.editable,startEditable:e.startEditable,durationEditable:e.durationEditable,display:e.display??`auto`,extendedProps:e.extendedProps??{},backgroundColor:e.backgroundColor??e.color,textColor:e.textColor,classNames:Pa(e,`className`),styles:Pa(e,`style`)};if(n.allDay){$i(n.start);let e=Q(n.end);$i(n.end),(!na(n.end,e)||na(n.end,n.start))&&Zi(n.end)}return n})}function Pa(e,t){let n=e[t+`s`]??e[t]??[];return Fi(n)?n:[n]}function Fa(e){return e.map(e=>({events:e.events,url:e.url&&e.url.trimEnd(`&`)||``,method:e.method&&e.method.toUpperCase()||`GET`,extraParams:e.extraParams||{}}))}function Ia(e,t,n){return n.formatRange(e.start,t&&e.event.display!==`pointer`&&!e.zeroDuration?oa(Q(e.start),e.end):e.start)}function La(e,t,n){let r;switch(e.event.display){case`background`:r=[];break;case`pointer`:r=e.event.allDay?[]:[Ra(t,e,n)];break;default:r=[...e.event.allDay?[]:[Ra(t,e,n)],Ca(`h4`,n.eventTitle,e.event.title)]}return{domNodes:r}}function Ra(e,t,n){return Ca(`time`,n.eventTime,e,[[`datetime`,ta(t.start)]])}function za(e,t,n){let r=t.classNames;return e&&(Ii(e)&&(e=e({event:Ba(t),view:ja(n)})),r=[...Fi(e)?e:[e],...r]),r}function Ba(e){return Ha(e,ea)}function Va(e){return Ha(e,Q)}function Ha(e,t){return e=Z({},e),e.start=t(e.start),e.end=t(e.end),e}function Ua(e,t){e.length=t.length;for(let t of e)t?.reposition()}function Wa(e,t,n,r=void 0){return(!r||e.resourceIds.includes(r.id))&&e.start<n&&e.end>t}function Ga(e){return qa(e)||Ja(e)||Ya(e)}function Ka(e){return e===`background`}function qa(e){return e===`preview`}function Ja(e){return e===`ghost`}function Ya(e){return e===`pointer`}function Xa(e,t,n){return t=e.start>t?e.start:t,n=e.end<n?e.end:n,{start:t,end:n,event:e,zeroDuration:na(t,n)}}function Za(e,t,n=!0){let r=[],i,a,o,s;for(let{gridColumn:n,gridRow:c,resource:l,dayStart:u,dayEnd:d,disabled:f}of t)!f&&Wa(e,u,d,l)&&(r.push(u),i=d,a||(a=n,o=c,s=l));if(r.length){let t=Xa(e,r[0],i);return Z(t,{gridColumn:a,gridRow:o,resource:s,dates:r}),n&&no(t),[t]}return[]}function Qa(e){let t={},n={};for(let r of e){let{gridColumn:e,gridRow:i}=r;for(let t=1;t<r.dates.length;++t){let a=`${i}_${e+t}`;n[a]?n[a].chunks.push(r):n[a]={sorted:!1,chunks:[r]}}let a=`${i}_${e}`;r.long=n[a],r.prev=t[a],t[a]=r}}function $a(e,t,n=1,r=1){e.prev&&(n=e.prev.bottom+r);let i=n+t;if(e.long){let t=e.long;t.sorted||=(t.chunks.sort((e,t)=>e.top-t.top),!0);for(let e of t.chunks)if(n<e.bottom&&i>e.top){let t=e.bottom-n+r;n+=t,i+=t}}return Z(e,{top:n,bottom:i}),n}var eo=new WeakMap,to=1;function no(e){let{event:t,gridColumn:n,gridRow:r}=e,i=eo.get(t);i||(i=to++,eo.set(t,i)),e.id=`${i}-${n}-${r}`}function ro(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return H(()=>{i=Ii(r)?{format:r}:new Intl.DateTimeFormat(n,r)}),{format:e=>i.format(ea(e))}}}function io(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return H(()=>{if(Ii(r))i=r;else{let e=new Intl.DateTimeFormat(n,r);i=(t,n)=>{if(t<=n)return e.formatRange(t,n);{let r=e.formatRangeToParts(n,t),i=``,a=[`startRange`,`endRange`],o=[!1,!1];for(let e of r){let t=a.indexOf(e.source);t>=0?o[t]||(i+=ao(a[1-t],r),o[t]=!0):i+=e.value}return i}}}}),{formatRange:(e,t)=>i(ea(e),ea(t))}}}function ao(e,t){let n=``;for(let r of t)r.source==e&&(n+=r.value);return n}function oo(e){return uo(e,`day`)}function so(e){return uo(e,`week`)}function co(e){return uo(e,`month`)}function lo(e){return uo(e,`year`)}function uo(e,t){return{...e,next:`Next `+t,prev:`Previous `+t}}function fo(e){return t=>({...t,view:e})}function po(e){let t,n;return e&&({start:t,end:n}=e,t&&=$i(qi(t)),n&&=$i(qi(n))),{start:t,end:n}}function mo(e,t){return t.start&&e<t.start||t.end&&e>t.end}function ho(e){let t=[];return go(e,0,!1,t),t}function go(e,t,n,r){let i=[];for(let a of e){let e=_o(a);i.push(e),r.push(e);let o={level:t,children:[],hidden:n};ba(e,o),a.children&&(o.children=go(a.children,t+1,n||!e.expanded,r))}return i}function _o(e){return{id:String(e.id),title:e.title||``,eventBackgroundColor:vo(e),eventTextColor:yo(e),expanded:e.expanded??!0,extendedProps:e.extendedProps??{}}}function vo(e){return e?.eventBackgroundColor}function yo(e){return e?.eventTextColor}function bo(e,t){return Ni(e.resourceIds)?void 0:t.find(t=>e.resourceIds.includes(t.id))}function xo(e,t,n,r,i){let a=[];e=Q(e);let o=Q(e);for(Yi(e,r.min),Yi(o,r.max);e<o;)a.push([ta(e),i.format(e)]),Yi(e,t,n);let s=Di((e-o)/1e3/$(t));return s&&s!==n&&(a.at(-1)[2]=n-s),a}function So(e,t,n,r,i){let a=Ji(e),o=Ji(t);if(n){let e=Ji(ki($(a),Ai(0,$(o)-Ki))),t=Ji(Ai($(o),$(e)+Ki)),s=Ii(n?.eventFilter)?n.eventFilter:e=>!Ka(e.display);loop:for(let n of r){let r=Yi(Q(n),a),c=Yi(Q(n),o),l=Yi(Q(n),e),u=Yi(Q(n),t);for(let d of i)if(!d.allDay&&s(d)&&d.start<u&&d.end>l){if(d.start<r){let t=Ai((d.start-n)/1e3,$(e));t<$(a)&&(a.seconds=t)}if(d.end>c){let e=ki((d.end-n)/1e3,$(t));e>$(o)&&(o.seconds=e)}if($(a)===$(e)&&$(o)===$(t))break loop}}}return{min:a,max:o}}var Co=class extends Map{#e=new Map;#t=N(0);#n=N(0);#r=rr||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return rr===this.#r?N(e):Xt(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else return V(this.#t),!1;return V(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else{V(this.#t);return}return V(n),super.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),P(this.#n,super.size),en(o);else if(i!==t){en(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&en(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),P(n,-1)),r&&(P(this.#n,super.size),en(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;P(this.#n,0);for(var t of e.values())P(t,-1);en(this.#t),e.clear()}}#a(){V(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)V(n)}keys(){return V(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return V(this.#n),super.size}};function wo(e){let t=0,n=N(nn(t));return Eo(e,()=>V(n),()=>!0,()=>P(n,++t,!0))}function To(e){let t=0,n=nn({});return Eo(e,e=>n[e],(e,t)=>e!==t,e=>n[e]=++t)}function Eo(e,t,n,r){return new Proxy(e,{get(e,n,r){return Ei(e,n)&&t(n),Reflect.get(e,n,r)},set(e,t,i,a){let o=n(e[t],i),s=Reflect.set(e,t,i,a);return o&&r(t),s}})}function Do(e){let t={buttonText:{today:`today`},customButtons:{},customScrollbars:!1,date:new Date,dateIncrement:void 0,datesSet:void 0,dayCellContent: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,eventGap:1,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventOrderStrict:!1,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:[],icons:{},lazyFetching:!0,loading:void 0,locale:void 0,refetchResourcesOnNavigate:!1,resources:[],selectable:!1,theme:{active:`ec-active`,bgEvent:`ec-bg-event`,bgEvents:`ec-bg-events`,body:`ec-body`,button:`ec-button`,buttonGroup:`ec-button-group`,calendar:`ec`,colHead:`ec-col-head`,customScrollbars:`ec-custom-scrollbars`,day:`ec-day`,dayHead:`ec-day-head`,disabled:`ec-disabled`,endClipped:`ec-end-clipped`,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`,startClipped:`ec-start-clipped`,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`],weekNumber:`ec-week-number`},timeZone:`local`,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 Oo(e){let t={date:e=>$i(qi(e)),dateIncrement:Wi(Ji),duration:Ji,events:Na,eventSources:Fa,hiddenDays:e=>[...new Set(e)],highlightedDates:e=>e.map(e=>$i(qi(e))),resources:e=>Fi(e)?ho(e):e,validRange:po};for(let n of e)n.createParsers?.(t);return t}var ko=[`buttonText`,`customButtons`,`icons`,`theme`];function Ao(e,t){let n=Do(e),r=Oo(e);n=jo(n,r),t=jo(t,r);let i=Mo(n,`views`)??{},a=Mo(t,`views`)??{},o=To({});Z(o,n),t.view&&(o.view=t.view);let s={},c={},l={},u=new Set([...wi(i),...wi(a)]);for(let e of u){let r=a[e]??{},u=No(n,i[e]??i[r.type]??{}),d=No(u,t,r),f=Mo(d,`component`);delete d.view;for(let e of wi(d))Ei(o,e)?(s[e]??=[],s[e].push(ko.includes(e)?t=>d[e]=Ii(t)?t(u[e]):t:t=>d[e]=t)):delete d[e];c[e]=d,l[e]=f}return Z(o,c[o.view]),[o,function(e,t,n=!0){Ei(o,e)&&(n||(e in r?t=r[e](t):Li(t)?t={...t}:Fi(t)&&(t=[...t])),s[e]?.forEach(e=>e(t)),o[e]=t)},function(e){return Z(o,c[e]),l[e]}]}function jo(e,t){let n={...e};for(let e of wi(t))e in n&&(n[e]=t[e](n[e]));if(e.views){n.views={};for(let r of wi(e.views))n.views[r]=jo(e.views[r],t)}return n}function Mo(e,t){let n=e[t];return delete e[t],n}function No(...e){let t={};for(let n of e){let e={};for(let r of ko)Ii(n[r])&&(e[r]=n[r](t[r]));t={...t,...n,...e}}return t}function Po(e,t){let n=[];for(let r of wi(e))e[r]!==t[r]&&n.push([r,e[r]]);return n}function Fo(e){return()=>{let{options:{view:t}}=e;H(()=>{let n=e.setViewOptions(t);e.extensions={},e.features=[],e.viewComponent=n(e)})}}function Io(e,t){return()=>{let{activeRange:n,fetchedRange:{events:r},offset:i,viewDates:a,options:{events:o,eventSources:s,lazyFetching:c,timeZone:l}}=e;H(()=>{Ro(s.map(e=>Ii(e.events)?e.events:e),o,e=>Na(e,i),t=>e.events=wo(t),l,n,r,a,!0,c,t)})}}function Lo(e,t){return()=>{let{activeRange:n,fetchedRange:{resources:r},viewDates:i,options:{lazyFetching:a,refetchResourcesOnNavigate:o,resources:s,timeZone:c}}=e;H(()=>{Ro(Fi(s)?[]:[s],s,ho,t=>e.resources=wo(t),c,n,r,i,o,a,t)})}}function Ro(e,t,n,r,i,a,o,s,c,l,u){if(!Ni(s)){if(Ni(e)){r(t);return}if((c||!o.start)&&(!l||!o.start||o.start>a.start||o.end<a.end||o.timeZone!==i)){let t=[],s=e=>u.stop(),l=e=>{t=t.concat(n(e)),r(t),u.stop()},d=ta(a.start),f=ta(a.end);for(let t of e)if(u.start(),Ii(t)){let e=t(c?{start:ea(a.start),end:ea(a.end),startStr:d,endStr:f,timeZone:i}:{},l,s);e!==void 0&&Promise.resolve(e).then(l,s)}else{let e=Ii(t.extraParams)?t.extraParams():Z({},t.extraParams);c&&(e.start=d,e.end=f,i!==`local`&&(e.timeZone=i)),e=new URLSearchParams(e);let n=t.url,r={},a;[`GET`,`HEAD`].includes(t.method)?n+=(n.includes(`?`)?`&`:`?`)+e:(r[`content-type`]=`application/x-www-form-urlencoded;charset=UTF-8`,a=String(e)),fetch(n,{method:t.method,headers:r,body:a,signal:_i(),credentials:`same-origin`}).then(e=>e.json()).then(l).catch(s)}Z(o,{...a,timeZone:i})}}}function zo(e){let t=0;function n(t){let{options:{loading:n}}=e;Ii(n)&&n(t)}return{start:()=>++t===1&&n(!0),stop:()=>--t===0&&n(!1)}}function Bo(e){return()=>{let{offset:t}=e,n=setInterval(()=>{let n=qi(void 0,t),r=$i(Q(n));e.now=n,na(e.today,r)||(e.today=r)},1e3);return()=>clearInterval(n)}}function Vo(e){return()=>{let{offset:t,options:n}=e;H(()=>{for(let n of e.events)if(!n.allDay)for(let e of[`start`,`end`]){let r=ha(n[e]);r!==void 0&&fa(n[e],t-r),ma(n[e],t)}let r=ha(n.date);if(r!==void 0){let i=qi(void 0,t).getUTCDay()-qi(void 0,r).getUTCDay(),a=Zi(Q(n.date),i);e.setOption(`date`,a)}ma(n.date,t)})}}function Ho(e){return()=>{let{activeRange:t,options:{datesSet:n}}=e;H(()=>{Ii(n)&&n({start:ea(t.start),end:ea(t.end),startStr:ta(t.start),endStr:ta(t.end),view:ja(e.view)})})}}function Uo(e){let t;return()=>{let{filteredEvents:n,options:{eventAllUpdated:r}}=e;H(()=>{Ii(r)&&(t||=setTimeout(()=>{t=null,r({view:ja(e.view)})}))})}}function Wo(e){return()=>{let{options:{view:t,viewDidMount:n}}=e;H(()=>{Ii(n)&&fr().then(()=>n({view:ja(e.view)}))})}}function Go(e){return()=>{let{options:{date:t,duration:n,firstDay:r}}=e,i,a;return H(()=>{i=Q(t),n.years?(i.setUTCMonth(0),i.setUTCDate(1)):n.months?i.setUTCDate(1):n.inWeeks&&ia(i,r),a=Yi(Q(i),n)}),{start:i,end:a}}}function Ko(e){return()=>{let{currentRange:t,extensions:{activeRange:n}}=e,r,i;return H(()=>{r=Q(t.start),i=Q(t.end)}),n?n(r,i):{start:r,end:i}}}function qo(e){return()=>{let{events:t,options:{eventFilter:n,eventOrder:r,filterEventsWithResources:i,resources:a,view:o}}=e,s=[...t];return H(()=>{if(Ii(n)){let r=t.map(Ba),i=ja(e.view);s=s.filter((e,t)=>n({event:Ba(e),index:t,events:r,view:i}))}i&&(s=s.filter(e=>a.some(t=>e.resourceIds.includes(t.id)))),Ii(r)?s.sort((e,t)=>r(Ba(e),Ba(t))):s.sort((e,t)=>e.start-t.start||t.allDay-e.allDay)}),s}}function Jo(e){return()=>{let{options:{timeZone:t}}=e,n;return H(()=>{n=t===`local`?Pi():t===`UTC`?0:da(t)??Pi()}),n}}function Yo(e){return()=>{let{options:t,activeRange:n}=e,{hiddenDays:r}=t,i=[];return H(()=>{let t=$i(Q(n.start)),a=$i(Q(n.end));for(;t<a;)r.includes(t.getUTCDay())||i.push(Q(t)),Zi(t);if(!i.length&&r.length&&r.length<7){for(;r.includes(t.getUTCDay());)Zi(t);fr().then(()=>{e.setOption(`date`,t)})}}),i}}function Xo(e){return()=>{let{currentRange:t,intlTitle:n}=e,r;return H(()=>{r=n.formatRange(t.start,Qi(Q(t.end)))}),r}}function Zo(e){return()=>{let{activeRange:t,currentRange:n,viewTitle:r,options:{view:i}}=e,a;return H(()=>{a=Aa(i,r,n,t)}),a}}var Qo=class{#e;get auxComponents(){return V(this.#e)}set auxComponents(e){P(this.#e,e,!0)}#t;get offset(){return V(this.#t)}set offset(e){P(this.#t,e)}#n;get currentRange(){return V(this.#n)}set currentRange(e){P(this.#n,e)}#r;get activeRange(){return V(this.#r)}set activeRange(e){P(this.#r,e)}#i;get fetchedRange(){return V(this.#i)}set fetchedRange(e){P(this.#i,e,!0)}#a;get events(){return V(this.#a)}set events(e){P(this.#a,e)}#o;get filteredEvents(){return V(this.#o)}set filteredEvents(e){P(this.#o,e)}#s;get mainEl(){return V(this.#s)}set mainEl(e){P(this.#s,e,!0)}#c;get now(){return V(this.#c)}set now(e){P(this.#c,e,!0)}#l;get resources(){return V(this.#l)}set resources(e){P(this.#l,e)}#u;get scrollDate(){return V(this.#u)}set scrollDate(e){P(this.#u,e,!0)}#d;get today(){return V(this.#d)}set today(e){P(this.#d,e,!0)}#f;get intlEventTime(){return V(this.#f)}set intlEventTime(e){P(this.#f,e)}#p;get intlDayHeader(){return V(this.#p)}set intlDayHeader(e){P(this.#p,e)}#m;get intlDayHeaderAL(){return V(this.#m)}set intlDayHeaderAL(e){P(this.#m,e)}#h;get intlTitle(){return V(this.#h)}set intlTitle(e){P(this.#h,e)}#g;get viewDates(){return V(this.#g)}set viewDates(e){P(this.#g,e)}#_;get viewTitle(){return V(this.#_)}set viewTitle(e){P(this.#_,e)}#v;get view(){return V(this.#v)}set view(e){P(this.#v,e)}#y;get viewComponent(){return V(this.#y)}set viewComponent(e){P(this.#y,e,!0)}#b;get extensions(){return V(this.#b)}set extensions(e){P(this.#b,e,!0)}#x;get features(){return V(this.#x)}set features(e){P(this.#x,e,!0)}#S;get interaction(){return V(this.#S)}set interaction(e){P(this.#S,e,!0)}#C;get iClasses(){return V(this.#C)}set iClasses(e){P(this.#C,e,!0)}#w;get iClass(){return V(this.#w)}set iClass(e){P(this.#w,e,!0)}options;setOption;setViewOptions;constructor(e,t){[this.options,this.setOption,this.setViewOptions]=Ao(e,t),this.#e=N(nn([])),this.#t=j(Jo(this)),this.#n=j(Go(this)),this.#r=j(Ko(this)),this.#i=N(nn({events:{},resources:{}})),this.#a=N(wo(this.options.events)),this.#o=j(qo(this)),this.#s=N(),this.#c=N(nn(qi(void 0,this.offset))),this.#l=N(wo(Fi(this.options.resources)?this.options.resources:[])),this.#u=N(),this.#d=N(nn($i(Q(this.now)))),this.#f=j(io(this,`eventTimeFormat`)),this.#p=j(ro(this,`dayHeaderFormat`)),this.#m=j(ro(this,`dayHeaderAriaLabelFormat`)),this.#h=j(io(this,`titleFormat`)),this.#g=j(Yo(this)),this.#_=j(Xo(this)),this.#v=j(Zo(this)),this.#y=N(),this.#b=N(nn({})),this.#x=N(nn([])),this.snippets={},this.#S=N(nn({})),this.iEvents=new Co,this.#C=N(nn(Hi)),this.#w=N();for(let t of e)t.initState?.(this);this.#T()}#T(){let e=zo(this);Cn(Fo(this)),Cn(Vo(this)),Cn(Bo(this)),xn(Io(this,e)),xn(Lo(this,e)),xn(Ho(this)),xn(Uo(this)),xn(Wo(this))}},$o=U(`<h2></h2>`),es=U(`<button><i></i></button>`),ts=U(`<button> </button>`),ns=U(`<button></button>`);function rs(e,t){Ge(t,!0);let n=k(`state`),r=j(()=>n.currentRange),i=j(()=>n.today),a=j(()=>n.viewTitle),o=j(()=>n.viewDates),s=j(()=>n.options.buttonText),c=j(()=>n.options.customButtons),l=j(()=>n.options.date),u=j(()=>n.options.dateIncrement),d=j(()=>n.options.duration),f=j(()=>n.options.hiddenDays),p=j(()=>n.options.theme),m=j(()=>n.options.validRange),h=j(()=>n.options.view),g=N(!1),_=N(!1),v=N(!1),y=!1;Cn(()=>{V(o),V(m),t.buttons,H(()=>{y||(y=!0,t.buttons.includes(`prev`)&&(P(g,!1),V(m).start&&P(g,b(x),!0)),t.buttons.includes(`next`)&&(P(_,!1),V(m).end&&P(_,b(S),!0)),t.buttons.includes(`today`)&&(P(v,V(i)>=V(r).start&&V(i)<V(r).end,!0),!V(v)&&(V(m).start||V(m).end)&&P(v,b(C),!0)),fr().then(()=>y=!1))})});function b(e){let t=V(l);e();let r=V(o).every(e=>mo(e,V(m)));return n.setOption(`date`,t),r}function x(){n.setOption(`date`,ca(Q(V(l)),V(u)??V(d),V(f)))}function S(){n.setOption(`date`,sa(Q(V(l)),V(u)??V(d),V(f)))}function C(){n.setOption(`date`,Q(V(i)))}var w=W();J(I(w),17,()=>t.buttons,q,(e,t)=>{var r=W(),i=I(r),o=e=>{var t=$o();qr(t,()=>bi(V(a))),R(()=>Y(t,1,V(p).title)),G(e,t)},l=e=>{var n=es(),r=F(n);O(n),R(()=>{Y(n,1,`${V(p).button??``} ec-${V(t)??``}`),si(n,`aria-label`,V(s).prev),si(n,`title`,V(s).prev),n.disabled=V(g),Y(r,1,`${V(p).icon??``} ec-${V(t)??``}`)}),Sr(`click`,n,x),G(e,n)},u=e=>{var n=es(),r=F(n);O(n),R(()=>{Y(n,1,`${V(p).button??``} ec-${V(t)??``}`),si(n,`aria-label`,V(s).next),si(n,`title`,V(s).next),n.disabled=V(_),Y(r,1,`${V(p).icon??``} ec-${V(t)??``}`)}),Sr(`click`,n,S),G(e,n)},d=e=>{var n=ts(),r=F(n,!0);O(n),R(()=>{Y(n,1,`${V(p).button??``} ec-${V(t)??``}`),n.disabled=V(v),Ar(r,V(s)[V(t)])}),Sr(`click`,n,C),G(e,n)},f=e=>{var n=ns();qr(n,()=>bi(V(c)[V(t)].text)),R(()=>Y(n,1,Xr([V(p).button,`ec-${V(t)}`,V(c)[V(t)].active&&V(p).active]))),Sr(`click`,n,function(...e){V(c)[V(t)].click?.apply(this,e)}),G(e,n)},m=e=>{var r=ts(),i=F(r,!0);O(r),R(()=>{Y(r,1,Xr([V(p).button,`ec-${V(t)}`,V(h)===V(t)&&V(p).active])),Ar(i,V(s)[V(t)])}),Sr(`click`,r,()=>n.setOption(`view`,V(t))),G(e,r)};K(i,e=>{V(t)===`title`?e(o):V(t)===`prev`?e(l,1):V(t)===`next`?e(u,2):V(t)===`today`?e(d,3):V(c)[V(t)]?e(f,4):V(t)!==``&&e(m,5)}),G(e,r)}),G(e,w),A()}Cr([`click`]);var is=U(`<div><!></div>`),as=U(`<div></div>`),os=U(`<nav></nav>`);function ss(e,t){Ge(t,!0);let n=j(()=>k(`state`)),r=j(()=>V(n).options.headerToolbar),i=j(()=>V(n).options.theme),a=j(()=>{let e={};for(let t of[`start`,`center`,`end`])e[t]=V(r)[t]?.split(` `).map(e=>e.split(`,`))??[];return e});var o=os();J(o,21,()=>wi(V(a)),q,(e,t)=>{var n=as();J(n,21,()=>V(a)[V(t)],q,(e,t)=>{var n=W(),r=I(n),a=e=>{var n=is();rs(F(n),{get buttons(){return V(t)}}),O(n),R(()=>Y(n,1,V(i).buttonGroup)),G(e,n)},o=e=>{rs(e,{get buttons(){return V(t)}})};K(r,e=>{V(t).length>1?e(a):e(o,-1)}),G(e,n)}),O(n),R(()=>Y(n,1,`ec-${V(t)??``}`)),G(e,n)}),O(o),R(()=>Y(o,1,V(i).toolbar)),G(e,o),A()}var cs=new Set([`$$slots`,`$$events`,`$$legacy`,`plugins`,`options`]),ls=U(`<div><!> <!> <!></div>`);function us(e,t){Ge(t,!0);let n=X(t,`plugins`,19,()=>[]),r=X(t,`options`,19,()=>({})),i=gi(t,cs),a=new Qo(n(),r());a.snippets=i,We(`state`,a);let o=j(()=>a.auxComponents),s=j(()=>a.features),c=j(()=>a.events),l=j(()=>a.interaction),u=j(()=>a.iClass),d=j(()=>a.offset),f=j(()=>a.view),p=j(()=>a.viewComponent),m=j(()=>a.options.date),h=j(()=>a.options.dateIncrement),g=j(()=>a.options.duration),_=j(()=>a.options.height),v=j(()=>a.options.hiddenDays),y=j(()=>a.options.customScrollbars),b=j(()=>a.options.theme),x={...r()};Cn(()=>{for(let[e,t]of Po(r(),x))H(()=>{S(e,t)});Z(x,r())});function S(e,t){return a.setOption(e,t,!1),this}function C(e){let t=a.options[e];return Ri(t)?ea(t):t}function w(){return a.fetchedRange.resources={},this}function ee(){return a.fetchedRange.events={},this}function te(){return V(c).map(Ba)}function ne(e){e=String(e);for(let t of V(c))if(t.id===e)return Ba(t);return null}function re(e){return e=Na([e],V(d))[0],V(c).push(e),Ba(e)}function ie(e){let t=String(e.id),n=V(c).findIndex(e=>e.id===t);return n>=0?(e=Na([e],V(d))[0],V(c)[n]=e,Ba(e)):null}function ae(e){e=String(e);let t=V(c).findIndex(t=>t.id===e);return t>=0&&V(c).splice(t,1),this}function oe(){return ja(V(f))}function se(){return V(l).action?.unselect(),this}function ce(e,t){let n=Da(e,t);if(n){let r=Sa(n)(e,t);return r.date=ea(r.date),r}return null}function le(e){return e=$i(qi(e)),a.setOption(`date`,Q(e)),a.scrollDate=e,this}function T(){return a.setOption(`date`,sa(Q(V(m)),V(h)??V(g),V(v))),this}function ue(){return a.setOption(`date`,ca(Q(V(m)),V(h)??V(g),V(v))),this}var de={setOption:S,getOption:C,refetchResources:w,refetchEvents:ee,getEvents:te,getEventById:ne,addEvent:re,updateEvent:ie,removeEventById:ae,getView:oe,unselect:se,dateFromPoint:ce,gotoDate:le,next:T,prev:ue},fe=ls();let pe;var me=F(fe);ss(me,{});var he=L(me,2);return Kr(he,()=>V(p),(e,t)=>{t(e,{})}),J(L(he,2),17,()=>V(o),q,(e,t)=>{var n=W();Kr(I(n),()=>V(t),(e,t)=>{t(e,{})}),G(e,n)}),O(fe),R(e=>{Y(fe,1,Xr([V(b).calendar,V(b).view,V(u)&&V(b)[V(u)],V(y)&&V(b).customScrollbars])),si(fe,`role`,e),pe=ri(fe,``,pe,{height:V(_)})},[()=>V(s).includes(`list`)?`list`:`table`]),G(e,fe),A(de)}function ds(e){`weekNumbers`in e||Z(e,{weekNumbers:!1,weekNumberContent:void 0})}function fs(e){return()=>{let{viewDates:t,options:{duration:n,hiddenDays:r}}=e,i;return H(()=>i=n.months||n.inWeeks?7-r.length:t.length),i}}function ps(e,t){return()=>{let{options:{highlightedDates:n,validRange:r},viewDates:i}=e,{colsCount:a}=t,o=[];return H(()=>{let e=[],t=1,s=1;for(let c of i)e.push({gridColumn:t,gridRow:s,resource:void 0,dayStart:c,dayEnd:Zi(Q(c)),disabled:mo(c,r),highlight:n.some(e=>na(e,c))}),t===a&&(o.push(e),e=[],t=0,++s),++t}),o}}function ms(e,t){return()=>{let{filteredEvents:n}=e,{grid:r}=t,i=[],a=[];return H(()=>{for(let e of n)for(let t of r)Ka(e.display)?e.allDay&&(a=a.concat(Za(e,t))):i=i.concat(Za(e,t));Qa(i)}),{chunks:i,bgChunks:a}}}function hs(e,t){return()=>{let{iEvents:n}=e,{grid:r}=t,i=[];for(let[,e]of n)e&&H(()=>{for(let t of r)i=i.concat(Za(e,t,!1))});return i}}var gs=class{#e;get colsCount(){return V(this.#e)}set colsCount(e){P(this.#e,e)}#t;get grid(){return V(this.#t)}set grid(e){P(this.#t,e)}#n;get gridEl(){return V(this.#n)}set gridEl(e){P(this.#n,e,!0)}#r;get chunks(){return V(this.#r)}set chunks(e){P(this.#r,e)}#i;get bgChunks(){return V(this.#i)}set bgChunks(e){P(this.#i,e)}#a;get iChunks(){return V(this.#a)}set iChunks(e){P(this.#a,e)}#o;get intlDayCell(){return V(this.#o)}set intlDayCell(e){P(this.#o,e)}#s;get intlDayPopover(){return V(this.#s)}set intlDayPopover(e){P(this.#s,e)}#c;get popupDay(){return V(this.#c)}set popupDay(e){P(this.#c,e,!0)}constructor(e){this.#e=j(fs(e)),this.#t=j(ps(e,this)),this.#n=N();let t=j(ms(e,this)),n=j(()=>V(t).chunks),r=j(()=>V(t).bgChunks);this.#r=j(()=>V(n)),this.#i=j(()=>V(r)),this.#a=j(hs(e,this)),this.hiddenChunks=new Co,this.#o=j(ro(e,`dayCellFormat`)),this.#s=j(ro(e,`dayPopoverFormat`)),this.#c=N(null)}},_s=U(`<div><!></div>`);function vs(e,t){Ge(t,!0);let n=X(t,`el`,15),r=X(t,`allDay`,3,!1),i=X(t,`resource`,3,void 0),a=X(t,`dateFromPoint`,3,()=>t.date),o=X(t,`classes`,3,Hi),s=X(t,`disabled`,3,!1),c=X(t,`highlight`,3,!1),l=X(t,`role`,3,`cell`),u=X(t,`noIeb`,3,!1),d=X(t,`noBeb`,3,!1),p=X(t,`defaultContent`,3,void 0),m=j(()=>k(`state`)),h=j(()=>V(m).today),g=j(()=>V(m).snippets),_=j(()=>V(m).interaction.action),v=j(()=>V(m).options.dayCellContent),y=j(()=>V(m).options.theme),b=j(()=>k(`view-state`)),x=j(()=>V(b).snap),S=j(()=>na(t.date,V(h))),C=j(()=>Gi(V(v),()=>({allDay:r(),date:ea(t.date),isToday:V(S),resource:i()}),p(),V(g).dayCellContent)),w=j(()=>o()([V(y).day,V(y).weekdays?.[t.date.getUTCDay()],V(S)&&V(y).today,c()&&V(y).highlight,s()&&V(y).disabled,u()&&V(y).noIeb,d()&&V(y).noBeb]));vi(()=>{ba(n(),(e,t)=>({allDay:r(),date:a()(e,t),resource:i(),dayEl:n(),disabled:s()}))});let ee=j(()=>!s()&&V(_)?e=>V(_).select(e,V(x)):void 0);var te=_s(),ne=F(te),re=e=>{var n=W();Gr(I(n),()=>t.content,()=>V(C)),G(e,n)},ie=e=>{var t=W();Gr(I(t),()=>V(C).snippet??f,()=>V(C).arg),G(e,t)};K(ne,e=>{t.content?e(re):e(ie,-1)}),O(te),mi(te,e=>n(e),()=>n()),qr(te,()=>t.content?null:bi(V(C).content,V(C).snippet)),R(()=>{Y(te,1,Xr(V(w))),si(te,`role`,l())}),Sr(`pointerdown`,te,function(...e){V(ee)?.apply(this,e)}),G(e,te),A()}Cr([`pointerdown`]);var ys=U(`<div><!></div>`),bs=U(`<article><!></article>`);function xs(e,t){Ge(t,!0);let n=X(t,`el`,15),r=X(t,`classes`,3,Hi),i=X(t,`styles`,3,Hi),a=j(()=>k(`state`)),o=j(()=>V(a).intlEventTime),s=j(()=>V(a).resources),c=j(()=>V(a).snippets),l=j(()=>V(a).view),u=j(()=>V(a).options.displayEventEnd),d=j(()=>V(a).options.eventBackgroundColor),p=j(()=>V(a).options.eventColor),m=j(()=>V(a).options.eventContent),h=j(()=>V(a).options.eventClick),g=j(()=>V(a).options.eventDidMount),_=j(()=>V(a).options.eventClassNames),v=j(()=>V(a).options.eventMouseEnter),y=j(()=>V(a).options.eventMouseLeave),b=j(()=>V(a).options.eventTextColor),x=j(()=>V(a).options.theme),S=j(()=>t.chunk.event),C=j(()=>t.chunk.event.display),w=j(()=>V(S).backgroundColor??vo(t.chunk.resource??bo(V(S),V(s)))??V(d)??V(p)),ee=j(()=>V(S).textColor??yo(t.chunk.resource??bo(V(S),V(s)))??V(b)),te=j(()=>Ti(i()({"background-color":V(w),color:V(ee)})).map(e=>`${e[0]}:${e[1]}`).concat(V(S).styles).join(`;`)),ne=j(()=>{let e=[Ka(V(C))?V(x).bgEvent:V(x).event];if(V(S).allDay){na($i(Q(t.chunk.start)),V(S).start)||e.push(V(x).startClipped);let n=Q(t.chunk.end),r=Q(V(S).end);n.setUTCSeconds(n.getUTCSeconds()-1),r.setUTCSeconds(r.getUTCSeconds()-1),na($i(n),$i(r))||e.push(V(x).endClipped)}else na(t.chunk.start,V(S).start)||e.push(V(x).startClipped),na(t.chunk.end,V(S).end)||e.push(V(x).endClipped);return r()(e.concat(za(V(_),V(S),V(l))))}),re=j(()=>Ia(t.chunk,V(u),V(o))),ie=j(()=>Gi(V(m),()=>({event:Ba(V(S)),timeText:V(re),view:ja(V(l))}),()=>La(t.chunk,V(re),V(x)),V(c).eventContent));vi(()=>{Ii(V(g))&&V(g)({event:Ba(V(S)),timeText:V(re),el:n(),view:ja(V(l))})});function ae(e,t){return Ii(e)&&!Ga(t)?t=>e({event:Ba(V(S)),el:n(),jsEvent:t,view:ja(V(l))}):void 0}let oe=j(()=>!Ka(V(C))&&ae(V(h),V(C))||void 0),se=j(()=>V(oe)&&yi(V(oe))),ce=j(()=>ae(V(v),V(C))),le=j(()=>ae(V(y),V(C)));var T=bs();{let e=e=>{var t=ys();Gr(F(t),()=>V(ie).snippet??f,()=>V(ie).arg),O(t),qr(t,()=>bi(V(ie).content,V(ie).snippet)),R(()=>Y(t,1,Xr(V(x).eventBody))),G(e,t)};var ue=F(T),de=n=>{var r=W();Gr(I(r),()=>t.body,()=>e,()=>V(w),()=>V(ee)),G(n,r)},fe=t=>{e(t)};K(ue,e=>{t.body?e(de):e(fe,-1)}),O(T),mi(T,e=>n(e),()=>n())}R(()=>{Y(T,1,Xr(V(ne))),ri(T,V(te)),si(T,`role`,V(oe)?`button`:void 0),si(T,`tabindex`,V(oe)?0:void 0)}),Sr(`click`,T,function(...e){V(oe)?.apply(this,e)}),Sr(`keydown`,T,function(...e){V(se)?.apply(this,e)}),xr(`mouseenter`,T,function(...e){V(ce)?.apply(this,e)}),xr(`mouseleave`,T,function(...e){V(le)?.apply(this,e)}),Sr(`pointerdown`,T,function(...e){t.onpointerdown?.apply(this,e)}),G(e,T),A()}Cr([`click`,`keydown`,`pointerdown`]);var Ss=U(`<div><!></div>`);function Cs(e,t){Ge(t,!0);let n=X(t,`weekday`,3,!0),r=X(t,`colSpan`,3,1),i=X(t,`ariaHidden`,3,!1),a=X(t,`disabled`,3,!1),o=X(t,`highlight`,3,!1),s=X(t,`cssSpan`,3,!1),c=j(()=>k(`state`)),l=j(()=>V(c).today),u=j(()=>V(c).options.theme);var d=Ss();let f;Gr(F(d),()=>t.children),O(d),R(e=>{Y(d,1,e),si(d,`role`,i()?null:`columnheader`),si(d,`aria-colspan`,i()||r()<=1?null:r()),si(d,`aria-colindex`,i()?null:t.colIndex),si(d,`aria-hidden`,i()?`true`:null),f=ri(d,``,f,{"--ec-col-group-span":s()?r():void 0})},[()=>Xr([t.className??V(u).colHead,n()&&V(u).weekdays?.[t.date.getUTCDay()],n()&&na(t.date,V(l))&&V(u).today,o()&&V(u).highlight,a()&&V(u).disabled])]),G(e,d),A()}var ws=U(`<time></time>`);function Ts(e,t){Ge(t,!0);let n=X(t,`alPrefix`,3,``),r=j(()=>k(`state`)),i=j(()=>V(r).intlDayHeader),a=j(()=>V(r).intlDayHeaderAL);var o=ws();qr(o,()=>bi(V(i).format(t.date))),R((e,t)=>{si(o,`datetime`,e),si(o,`aria-label`,`${n()??``}${t??``}`)},[()=>ta(t.date,10),()=>V(a).format(t.date)]),G(e,o),A()}function Es(e,t){Ge(t,!0);let n=X(t,`el`,15),r=j(()=>k(`state`)),i=j(()=>V(r).iClasses),a=j(()=>V(r).interaction.action),o=j(()=>V(r).interaction.resizer),s=j(()=>k(`view-state`)),c=j(()=>V(s).snap),l=j(()=>t.chunk.event),u=j(()=>t.chunk.event.display),d=j(()=>e=>V(i)(e,V(l)));function p(e){return V(a)?.draggable(e)?n=>V(a).drag(e,n,t.forceDate,t.forceMargin,V(c)):V(a)?.noAction}let m=j(()=>!Ka(V(u))&&!Ga(V(u))?p(V(l)):void 0);xs(e,{get chunk(){return t.chunk},get classes(){return V(d)},get styles(){return t.styles},get onpointerdown(){return V(m)},get el(){return n()},set el(e){n(e)},body:(e,n=f)=>{var r=W(),i=I(r),a=e=>{var r=W();Kr(I(r),()=>V(o),(e,r)=>{r(e,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(e,t)=>{var r=W();Gr(I(r),n),G(e,r)},$$slots:{default:!0}})}),G(e,r)},s=e=>{var t=W();Gr(I(t),n),G(e,t)};K(i,e=>{V(o)?e(a):e(s,-1)}),G(e,r)},$$slots:{body:!0}}),A()}var Ds=U(`<span><!></span>`),Os=U(`<a role="button" tabindex="0" aria-haspopup="dialog"><!></a>`),ks=U(`<div><time><!></time> <!></div> <div><!></div>`,1);function As(e,t){Ge(t,!0);let n=k(`state`),r=k(`view-state`),i=j(()=>n.snippets),a=j(()=>n.options.date),o=j(()=>n.options.firstDay),s=j(()=>n.options.moreLinkContent),c=j(()=>n.options.theme),l=j(()=>n.options.weekNumbers),u=j(()=>n.options.weekNumberContent),d=j(()=>r.hiddenChunks),p=j(()=>r.intlDayCell),m=j(()=>t.day.dayStart),h=j(()=>t.day.disabled),g=j(()=>t.day.highlight),_=j(()=>V(m).getUTCMonth()!==V(a).getUTCMonth()),v=j(()=>e=>[...e,V(_)&&V(c).otherMonth]),y=j(()=>V(l)&&V(m).getUTCDay()===+!!V(o)),b=j(()=>V(y)?ua(la(V(m),V(o)),V(m),V(u),V(i).weekNumberContent):{}),x=j(()=>V(d).get(V(m).getTime())),S=j(()=>{if(!V(x))return{};let e=V(x).length,t=`+`+e+` more`;return Gi(V(s),()=>({num:e,text:t}),t,V(i).moreLinkContent)});function C(){r.popupDay=t.day}vs(e,{get date(){return V(m)},allDay:!0,get classes(){return V(v)},get disabled(){return V(h)},get highlight(){return V(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},defaultContent:()=>V(p).format(V(m)),content:(e,t=f)=>{var n=ks(),r=I(n),i=F(r);Gr(F(i),()=>t().snippet??f,()=>t().arg),O(i),qr(i,()=>bi(t().content,t().snippet));var a=L(i,2),o=e=>{var t=Ds();Gr(F(t),()=>V(b).snippet??f,()=>V(b).arg),O(t),qr(t,()=>bi(V(b).content,V(b).snippet)),R(()=>Y(t,1,V(c).weekNumber)),G(e,t)};K(a,e=>{V(y)&&e(o)}),O(r);var s=L(r,2),l=F(s),u=e=>{var t=Os(),n=j(()=>ka(C)),r=j(()=>yi(C)),i=j(ka);Gr(F(t),()=>V(S).snippet??f,()=>V(S).arg),O(t),qr(t,()=>bi(V(S).content,V(S).snippet)),Sr(`click`,t,function(...e){V(n)?.apply(this,e)}),Sr(`keydown`,t,function(...e){V(r)?.apply(this,e)}),Sr(`pointerdown`,t,function(...e){V(i)?.apply(this,e)}),G(e,t)};K(l,e=>{V(x)&&e(u)}),O(s),R(e=>{Y(r,1,V(c).dayHead),si(i,`datetime`,e),Y(s,1,V(c).dayFoot)},[()=>ta(V(m),10)]),G(e,n)},$$slots:{content:!0}}),A()}Cr([`click`,`keydown`,`pointerdown`]);function js(e,t){Ge(t,!0);let n=X(t,`inPopup`,3,!1),r=j(()=>k(`state`)),i=j(()=>V(r).options.dayMaxEvents),a=j(()=>V(r).options.eventGap),o=j(()=>k(`view-state`)),s=j(()=>V(o).colsCount),c=j(()=>V(o).gridEl),l=j(()=>V(o).hiddenChunks),u=j(()=>V(o).popupDay),d=N(void 0),f=N(1),p=N(!1),m=j(()=>t.chunk.event),h=j(()=>t.chunk.event.display),g=j(()=>V(c).children.item((t.chunk.gridRow-1)*V(s)+t.chunk.gridColumn-1));xn(()=>{n()||P(f,Ea(V(g).firstElementChild)||1,!0)});let _=j(()=>e=>{if(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,!Ka(V(h))){let r=n()?1:V(f);if(V(m)._margin){let[e,n]=V(m)._margin;e>r&&t.chunk.gridRow===n&&(r=e)}e[`margin-block-start`]=`${r}px`}return V(p)&&(e.visibility=`hidden`),e});function v(){P(f,$a(t.chunk,Ea(V(d)),Ea(V(g).firstElementChild)||1,V(a)),!0)}function y(){if(V(i)===!0){let e=Ea(V(g))-b(V(g));if(P(p,t.chunk.bottom>e),V(p))for(let e of t.chunk.dates){let n=e.getTime();if(V(l).has(n)){let e=V(l).get(n);e.includes(t.chunk)||V(l).set(n,[...e,t.chunk])}else V(l).set(n,[t.chunk])}}else P(p,!1),V(l).size&&V(l).clear()}function b(e){let n=0;for(let r=0;r<t.chunk.dates.length&&(n=Ai(n,Ea(e.lastElementChild)),e=e.nextElementSibling,e);++r);return n}var x={reposition:v,hide:y};{let r=j(()=>n()&&V(u).dayStart),i=j(()=>[V(f),t.chunk.gridRow]);Es(e,{get chunk(){return t.chunk},get styles(){return V(_)},axis:`x`,get forceDate(){return V(r)},get forceMargin(){return V(i)},get el(){return V(d)},set el(e){P(d,e,!0)}})}return A(x)}var Ms=U(`<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>`);function Ns(e,t){Ge(t,!0);let n=k(`view-state`),r=j(()=>k(`state`)),i=j(()=>V(r).interaction),a=j(()=>V(r).options.buttonText),o=j(()=>V(r).options.theme),s=j(()=>n.colsCount),c=j(()=>n.chunks),l=j(()=>n.gridEl),u=j(()=>n.intlDayPopover),d=j(()=>n.popupDay),f=N(void 0),p=N(``),m=j(()=>V(d).gridColumn),h=j(()=>V(d).gridRow),g=j(()=>V(d).dayStart),_=j(()=>V(d).dayEnd),v=j(()=>{let e=[];for(let t of V(c))t.gridRow===V(h)&&t.gridColumn<=V(m)&&t.gridColumn+t.dates.length>V(m)&&e.push(Z({},t,Xa(t.event,V(g),V(_))));return e.sort((e,t)=>e.top-t.top),e});vi(()=>{V(f).show()}),xn(()=>{V(v).length?H(y):b()});function y(){let e=V(l).children.item((V(h)-1)*V(s)+V(m)-1),t=wa(V(f)),n=wa(e),r=wa(V(l));P(p,``);let i;if(t.width>=r.width){i=r.left-n.left;let e=n.right-r.right;P(p,V(p)+`inset-inline-end:${e}px;`)}else i=(n.width-t.width)/2,n.left+i<r.left?i=r.left-n.left:n.left+i+t.width>r.right&&(i=r.right-n.left-t.width);P(p,V(p)+`inset-inline-start:${i}px;`);let a;t.height>=r.height?(a=r.top-n.top,P(p,V(p)+`block-size:${r.height}px;`)):(a=(n.height-t.height)/2,n.top+a<r.top?a=r.top-n.top:n.top+a+t.height>r.bottom&&(a=r.bottom-n.top-t.height)),P(p,V(p)+`inset-block-start:${a}px;`)}function b(){n.popupDay=null}function x(){b(),V(i).action?.noClick()}var S=Ms();let C;var w=F(S),ee=F(w);qr(ee,()=>bi(V(u).format(V(g))));var te=L(ee,2);ct(te,!0);var ne=j(()=>ka(b)),re=j(()=>yi(b));O(w);var ie=L(w,2);J(ie,21,()=>V(v),q,(e,t)=>{js(e,{get chunk(){return V(t)},inPopup:!0})}),O(ie),O(S),mi(S,e=>P(f,e),()=>V(f)),qr(S,()=>xi(`pointerdown`)),R(e=>{Y(S,1,V(o).popup),C=ri(S,V(p),C,{"grid-area":`${V(h)+1} / ${V(m)}`}),Y(w,1,V(o).dayHead),si(ee,`datetime`,e),si(te,`aria-label`,V(a).close),Y(ie,1,V(o).events)},[()=>ta(V(g),10)]),xr(`pointerdownoutside`,S,x),xr(`close`,S,b),Sr(`click`,te,function(...e){V(ne)?.apply(this,e)}),Sr(`keydown`,te,function(...e){V(re)?.apply(this,e)}),G(e,S),A()}Cr([`click`,`keydown`]);var Ps=U(`<div role="columnheader"><span></span></div>`),Fs=U(`<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>`);function Is(e,t){Ge(t,!0);let n=k(`state`),r=new gs(n);We(`view-state`,r);let i=j(()=>n.intlDayHeader),a=j(()=>n.intlDayHeaderAL),o=j(()=>n.options.dayMaxEvents),s=j(()=>n.options.eventGap),c=j(()=>n.options.theme),l=j(()=>r.grid),u=j(()=>r.chunks),d=j(()=>r.bgChunks),f=j(()=>r.iChunks),p=j(()=>r.hiddenChunks),m=j(()=>r.popupDay),h=[];function g(){Ua(h,V(u)),V(p).clear(),fr().then(_)}function _(){V(p).size,h.forEach(e=>e?.hide())}xn(()=>{V(s),g()}),xn(_);var v=W(),y=I(v),b=e=>{var t=Fs();let s;var p=F(t),_=F(p);J(_,21,()=>V(l)[0],q,(e,t,n)=>{let r=()=>V(t).dayStart;var o=Ps();si(o,`aria-colindex`,1+n);var s=F(o);qr(s,()=>bi(V(i).format(r()))),O(o),R((e,t)=>{Y(o,1,e),si(s,`aria-label`,t)},[()=>Xr([V(c).colHead,V(c).weekdays?.[r().getUTCDay()]]),()=>V(a).format(r())]),G(e,o)}),O(_),O(p);var v=L(p,2),y=F(v);J(y,21,()=>V(l),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{{let a=j(()=>i+1===Mi(V(t))),o=j(()=>n+1===Mi(V(l)));As(e,{get day(){return V(r)},get noIeb(){return V(a)},get noBeb(){return V(o)}})}}),G(e,r)}),O(y),mi(y,e=>r.gridEl=e,()=>r?.gridEl);var b=L(y,2),x=F(b);J(x,19,()=>V(u),e=>e.id,(e,t,n)=>{mi(js(e,{get chunk(){return V(t)}}),(e,t)=>h[t]=e,e=>h?.[e],()=>[V(n)])});var S=L(x,2);J(S,17,()=>V(d),e=>e.id,(e,t)=>{js(e,{get chunk(){return V(t)}})}),J(L(S,2),17,()=>V(f),q,(e,t)=>{js(e,{get chunk(){return V(t)}})}),O(b),O(v);var C=L(v,2),w=e=>{Ns(e,{})};K(C,e=>{V(m)&&e(w)}),O(t),mi(t,e=>n.mainEl=e,()=>n?.mainEl),qr(t,()=>Si(g)),R(e=>{Y(t,1,Xr([V(c).main,V(o)===!0&&V(c).uniform])),s=ri(t,``,s,e),Y(p,1,V(c).header),Y(_,1,V(c).grid),Y(v,1,V(c).body),Y(y,1,V(c).grid),Y(b,1,V(c).events)},[()=>({"--ec-grid-cols":Mi(V(l)[0]),"--ec-grid-rows":Mi(V(l))})]),G(e,t)},x=j(()=>!Ni(V(l))&&!Ni(V(l)[0]));K(y,e=>{V(x)&&e(b)}),G(e,v),A()}var Ls={createOptions(e){ds(e),Z(e,{dayMaxEvents:!1,dayCellFormat:{day:`numeric`},dayPopoverFormat:{month:`long`,day:`numeric`,year:`numeric`},moreLinkContent:void 0,view:`dayGridMonth`}),Z(e.buttonText,{dayGridDay:`day`,dayGridMonth:`month`,dayGridWeek:`week`,close:`Close`}),Z(e.theme,{uniform:`ec-uniform`,dayFoot:`ec-day-foot`,otherMonth:`ec-other-month`,popup:`ec-popup`}),Z(e.views,{dayGridDay:{buttonText:oo,component:()=>Is,dayHeaderFormat:{weekday:`long`},displayEventEnd:!1,duration:{days:1},theme:fo(`ec-day-grid ec-day-view`)},dayGridWeek:{buttonText:so,component:()=>Is,displayEventEnd:!1,theme:fo(`ec-day-grid ec-week-view`)},dayGridMonth:{buttonText:co,component:Rs,dayHeaderFormat:{weekday:`short`},dayHeaderAriaLabelFormat:{weekday:`long`},displayEventEnd:!1,duration:{months:1},theme:fo(`ec-day-grid ec-month-view`),titleFormat:{year:`numeric`,month:`long`}}})}};function Rs(e){return e.features=[`dayNumber`],e.extensions.activeRange=(t,n)=>{let{options:{firstDay:r}}=e;return{start:ia(t,r),end:ra(n,r)}},Is}function zs(e,t,n){return e.startEditable??t??e.editable??n}function Bs(e,t,n){return e.durationEditable??t??e.editable??n}var Vs=!1;function Hs(e){Vs||(Vs=!0,window.requestAnimationFrame(()=>{e(),Vs=!1}))}function Us(e,t,n){return Ai(t,ki(n,e))}function Ws(e){return()=>{let{options:{editable:t,eventStartEditable:n,theme:r}}=e;e.iClasses=(e,i)=>{let{display:a}=i;return[...e,Ga(a)?[r[a]]:!Ka(a)&&zs(i,n,t)?[r.draggable]:[]]}}}function Gs(e){return()=>{let{interaction:t,mainEl:n}=e;if(n)return Oa(n,`scroll`,()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}var Ks=class{constructor(e){this.#e(e)}#e(e){Cn(Ws(e)),xn(Gs(e))}};function qs(e,t){Ge(t,!0);let n=k(`state`),r=j(()=>n.events),i=j(()=>n.iEvents),a=j(()=>n.features),o=j(()=>n.view),s=j(()=>n.mainEl),c=j(()=>n.options.dateClick),l=j(()=>n.options.dragConstraint),u=j(()=>n.options.dragScroll),d=j(()=>n.options.editable),f=j(()=>n.options.eventStartEditable),p=j(()=>n.options.eventDragMinDistance),m=j(()=>n.options.eventDragStart),h=j(()=>n.options.eventDragStop),g=j(()=>n.options.eventDrop),_=j(()=>n.options.eventLongPressDelay),v=j(()=>n.options.eventResizeStart),y=j(()=>n.options.eventResizeStop),b=j(()=>n.options.eventResize),x=j(()=>n.options.longPressDelay),S=j(()=>n.options.resizeConstraint),C=j(()=>n.options.selectable),w=j(()=>n.options.select),ee=j(()=>n.options.selectBackgroundColor),te=j(()=>n.options.selectConstraint),ne=j(()=>n.options.selectLongPressDelay),re=j(()=>n.options.selectMinDistance),ie=j(()=>n.options.unselect),ae=j(()=>n.options.unselectAuto),oe=j(()=>n.options.unselectCancel),se=j(()=>n.options.validRange),ce,le,T,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,E;function Ne(e){return zs(e,V(f),V(d))}function D(e,t,n,r,i){ce||(ce=ot(t)?1:6,at()&&(T=e,Ie(t,i),n&&(fe=n),r&&(je=r),we=`dragging`,Le(t)))}function Pe(e,t,n,r,i,a,o){if(!ce&&(ce=ot(t)?n?3:2:6,at())){let{zeroDuration:n}=e;T=e.event,Ie(t,o),a&&(je=a),we=r===`x`?`resizingX`:`resizingY`,nt()?(Te=Q(T.end),Ce?(oa(Te,T.start),Te>=T.end&&Qi(Te)):(Xi(Te,Me),Te<T.start&&(Te=T.start)),fe=Ce?$i(Q(T.start)):T.start):(Te=Q(T.start),Ce?(oa(Te,T.end),Te<=T.start&&!n&&Zi(Te)):(Yi(Te,Me),Te>T.end&&(Te=T.end)),Ce?(fe=$i(Q(T.end)),!n&&na(fe,T.end)&&Qi(fe)):(fe=T.end,n||(fe=Xi(Q(fe),Me))),n&&!Ce&&(E=Me)),i&&(fe=i),Le(t)}}function Fe(e,t){ce||(ce=ot(e)?V(C)&&!V(a).includes(`list`)?4:5:6,at()&&(Ie(e,t),we=`selecting`,Ee=Ce?Ji({day:1}):Me,T={allDay:Ce,start:fe,end:Yi(Q(fe),Ee),resourceIds:me?[me.id]:[]},Le(e)))}function O(){ce||=6}function Ie(e,t){window.getSelection().removeAllRanges(),ge=ve=e.clientX,_e=ye=e.clientY,Me=t?.duration;let n=Da(ve,ye);({allDay:Ce,date:fe,resource:me}=Sa(n)(ve,ye)),xe=V(s)!==Ta(n,3),be=Ta(n,1),We(),e.pointerType!==`mouse`&&(ke=setTimeout(()=>{ce&&(le=!0,Le(e))},(it()?V(ne):V(_))??V(x)))}function Le(e){if(le||e&&e.pointerType===`mouse`&&et()>=(it()?V(re):V(p))){le=!0,st(e),n.iClass=we,ue||(it()?qe():Ke(e,tt()?V(v):V(m)));let t=Ue(He());if(t){let n;if({allDay:n,date:pe,resource:he}=t,n===Ce){let t=Ye({},ue),n=V(S);Se=Ji((pe-fe)/1e3),nt()?(t.start=Yi(Q(T.start),Se),t.start>Te&&(t.start=Te,Se=Ji((Te-T.start)/1e3))):(t.end=Yi(Q(T.end),Se),E&&Yi(t.end,E),tt()?t.end<Te&&(t.end=Te,Se=Ji((Te-T.end)/1e3)):it()?(t.end<T.end?(t.start=Xi(t.end,Ee),t.end=T.end):t.start=T.start,n=V(te)):(t.start=Yi(Q(T.start),Se),me&&(t.resourceIds=T.resourceIds.filter(e=>e!==me.id),t.resourceIds.push(he.id)),n=V(l)));do{if(n!==void 0&&(t=Ye(Va(T),t),n(it()?Qe(t,e):$e(t,T,e))===!1)){Ze(T);break}Ze(t)}while(0)}}}V(u)&&Hs(()=>{Ae&&(xe||(ye<Ae.top+24&&(V(s).scrollTop+=Ai(-8,(ye-Ae.top-24)/3)),ye>Ae.bottom-24&&(V(s).scrollTop+=ki(8,(ye-Ae.bottom+24)/3))),ve<Ae.left+24&&(V(s).scrollLeft+=Ai(-8,(ve-Ae.left-24)/3)),ve>Ae.right-24&&(V(s).scrollLeft+=ki(8,(ve-Ae.right+24)/3)),ye<24&&window.scrollBy(0,Ai(-8,(ye-24)/3)),ye>window.innerHeight-24&&window.scrollBy(0,ki(8,(ye-window.innerHeight+24)/3)))})}function Re(){at()&&(We(),Le())}function ze(e){at()&&e.isPrimary&&(ve=e.clientX,ye=e.clientY,Le(e))}function Be(e){if(De&&V(ae)&&!(V(oe)&&e.target.closest(V(oe)))&&st(e),ce&&e.isPrimary){if(le)if(it()){if(De=!0,Ii(V(w))){let t=Qe(ue,e);V(w)(t)}}else{T.display=de;let t=tt()?V(y):V(h);Ii(t)&&t({event:Ba(T),jsEvent:e,view:ja(V(o))});let n=Va(T);if(Xe(T,ue),Je(),t=tt()?V(b):V(g),Ii(t)){let r=T,i=$e(T,n,e);t(Z(i,{revert(){Xe(r,n)}}))}}else if((rt()||it())&&Ii(V(c))&&!Oe){ve=e.clientX,ye=e.clientY;let t=Da(ve,ye);if(t){let{allDay:n,date:r,resource:i}=Sa(t)(ve,ye);V(c)({allDay:n,date:ea(r),dateStr:ta(r),dayEl:t,jsEvent:e,view:ja(V(o)),resource:i})}}Ve()}Oe=!1}function Ve(){le=!1,ce=ge=_e=ve=ye=T=de=fe=pe=me=he=Se=E=Ce=Te=Ee=je=be=Ae=Me=void 0,n.iClass=void 0,ke&&=(clearTimeout(ke),void 0)}function He(){return Da(Us(ve,Ae.left,Ae.right),Us(ye,Ae.top,Ae.bottom))}function Ue(e){if(e){let t=Sa(e)(ve,ye);if(t.disabled){if(!V(se).end||t.date<V(se).end)return Ue(e.nextElementSibling);if(!V(se).start||t.date>V(se).start)return Ue(e.previousElementSibling)}else return(it()||tt())&&t.resource&&!ue.resourceIds.includes(t.resource.id)&&!V(a).includes(`timeline`)?Ue(ve>ge?e.previousElementSibling:e.nextElementSibling):t}return null}function We(){let e=wa(V(s)),t=wa(be),n=e.width/V(s).offsetWidth,r=e.height/V(s).offsetHeight,i=Ui();Ae={left:Ai(0,i?e.right-V(s).clientWidth*n:t.left+V(s).scrollLeft*n),right:ki(document.documentElement.clientWidth,i?t.right+V(s).scrollLeft*n:e.left+V(s).clientWidth*n)-2,top:Ai(0,t.top+(xe?0:V(s).scrollTop)*r),bottom:ki(document.documentElement.clientHeight,xe?t.bottom:e.top+V(s).clientHeight*r)-2}}function Ke(e,t){Ii(t)&&t({event:Ba(T),jsEvent:e,view:ja(V(o))}),de=T.display,T.display=`preview`,ue=Va(T),je!==void 0&&(ue._margin=je),E&&Yi(ue.end,E),T.display=`ghost`,V(r).length=V(r).length}function qe(){ue={id:`{select}`,allDay:T.allDay,start:T.start,title:``,display:`preview`,extendedProps:{},backgroundColor:V(ee),resourceIds:T.resourceIds,classNames:[],styles:[]}}function Je(){ue=void 0,V(i).delete(`action`)}function Ye(e,t){return e.start=t.start,e.end=t.end,e.resourceIds=t.resourceIds,{...e}}function Xe(e,t){Ye(e,t),V(r).length=V(r).length}function Ze(e){ue=Ye(ue,e),V(i).set(`action`,ue)}function Qe(e,t){let{start:n,end:r}=Ba(e);return{start:n,end:r,startStr:ta(e.start),endStr:ta(e.end),allDay:Ce,view:ja(V(o)),resource:me,jsEvent:t}}function $e(e,t,n){let r;return r=tt()?nt()?{startDelta:Se,endDelta:Ji(0)}:{startDelta:Ji(0),endDelta:Se}:{delta:Se,oldResource:me===he?void 0:me,newResource:me===he?void 0:he},Z(r,{event:Ba(e),oldEvent:Ba(t),view:ja(V(o)),jsEvent:n}),r}function et(){return Math.sqrt((ve-ge)**2+(ye-_e)**2)}function tt(){return ce===2||nt()}function nt(){return ce===3}function rt(){return ce===5}function it(){return ce===4}function at(){return ce&&ce<5}function ot(e){return e.isPrimary&&(e.pointerType!==`mouse`||e.buttons&1)}function st(e){De&&(De=!1,Je(),Ii(V(ie))&&V(ie)({jsEvent:e,view:ja(V(o))}))}Cn(()=>{V(o),st()});function ct(){Oe=!0}function lt(e){if(at()){let t=e.target,n=[],r=()=>Bi(n);n.push(Oa(t,`touchmove`,ut(()=>le))),n.push(Oa(t,`touchend`,r)),n.push(Oa(t,`touchcancel`,r))}}function ut(e){return t=>{e()&&t.preventDefault()}}vi(()=>Oa(window,`touchmove`,Vi,{passive:!1}));var dt={draggable:Ne,drag:D,resize:Pe,select:Fe,noAction:O,handleScroll:Re,unselect:st,noClick:ct};xr(`pointermove`,rn,ze),xr(`pointerup`,rn,Be),xr(`pointercancel`,rn,Ve),xr(`scroll`,rn,Re);var ft=j(()=>ut(at));xr(`selectstart`,rn,function(...e){V(ft)?.apply(this,e)});var pt=j(()=>ut(()=>ke));return xr(`contextmenu`,rn,function(...e){V(pt)?.apply(this,e)}),xr(`touchstart`,rn,lt,void 0,!0),A(dt)}function Js(e,t){Ge(t,!0);let n=j(()=>k(`state`)),r=j(()=>V(n).iEvents),i=j(()=>V(n).options.slotDuration),a=0,o=0,s;function c(){let e=Da(a,o);if(e&&!V(r).has(`action`)){let{allDay:t,date:n,resource:c,disabled:l}=Sa(e)(a,o);if(!l){s||d(),s.allDay=t,s.start=n,s.end=Yi(Q(n),V(i)),s.resourceIds=c?[c.id]:[],V(r).set(`pointer`,{...s});return}}f()}function l(){c()}function u(e){p(e)&&(a=e.clientX,o=e.clientY,c())}function d(){s={id:`{pointer}`,title:``,display:`pointer`,extendedProps:{},backgroundColor:`transparent`,classNames:[],styles:[]}}function f(){s=void 0,V(r).delete(`pointer`)}function p(e){return e.isPrimary&&e.pointerType===`mouse`}var m={handleScroll:l};return xr(`pointermove`,rn,u),xr(`scroll`,rn,l),A(m)}var Ys=U(`<div></div>`),Xs=U(`<!> <!> <!>`,1);function Zs(e,t){Ge(t,!0);let n=X(t,`forceDate`,3,void 0),r=X(t,`forceMargin`,3,void 0),i=j(()=>k(`state`)),a=j(()=>V(i).interaction.action),o=j(()=>V(i).options.editable),s=j(()=>V(i).options.eventDurationEditable),c=j(()=>V(i).options.eventResizableFromStart),l=j(()=>V(i).options.theme),u=j(()=>k(`view-state`)),d=j(()=>V(u).snap),f=j(()=>t.chunk.event),p=j(()=>t.chunk.event.display),m=j(()=>!Ka(V(p))&&!Ga(V(p))&&Bs(V(f),V(s),V(o)));function h(e){return i=>V(a).resize(t.chunk,i,e,t.axis,n(),r(),V(d))}var g=Xs(),_=I(g),v=e=>{var t=Ys(),n=j(()=>h(!0));R(()=>Y(t,1,`${V(l).resizer??``} ${V(l).start??``}`)),Sr(`pointerdown`,t,function(...e){V(n)?.apply(this,e)}),G(e,t)};K(_,e=>{V(m)&&V(c)&&e(v)});var y=L(_,2);Gr(y,()=>t.children);var b=L(y,2),x=e=>{var t=Ys(),n=j(()=>h(!1));R(()=>Y(t,1,V(l).resizer)),Sr(`pointerdown`,t,function(...e){V(n)?.apply(this,e)}),G(e,t)};K(b,e=>{V(m)&&e(x)}),G(e,g),A()}Cr([`pointerdown`]);var Qs=U(`<!> <!>`,1);function $s(e,t){Ge(t,!0);let n=k(`state`);new Ks(n);let r=j(()=>n.interaction),i=j(()=>n.options.pointer);V(r).resizer=Zs;var a=Qs(),o=I(a);mi(qs(o,{}),e=>V(r).action=e,()=>V(r)?.action);var s=L(o,2),c=e=>{mi(Js(e,{}),e=>V(r).pointer=e,()=>V(r)?.pointer)};K(s,e=>{V(i)&&e(c)}),G(e,a),A()}var ec={createOptions(e){Z(e,{dateClick:void 0,dragConstraint:void 0,dragScroll:!0,editable:!1,eventDragMinDistance:5,eventDragStart:void 0,eventDragStop:void 0,eventDrop:void 0,eventDurationEditable:!0,eventLongPressDelay:void 0,eventResizableFromStart:!1,eventResizeStart:void 0,eventResizeStop:void 0,eventResize:void 0,eventStartEditable:!0,longPressDelay:1e3,pointer:!1,resizeConstraint:void 0,select:void 0,selectBackgroundColor:void 0,selectConstraint:void 0,selectLongPressDelay:void 0,selectMinDistance:5,snapDuration:void 0,unselect:void 0,unselectAuto:!0,unselectCancel:``}),Z(e.theme,{draggable:`ec-draggable`,ghost:`ec-ghost`,preview:`ec-preview`,pointer:`ec-pointer`,resizer:`ec-resizer`,start:`ec-start`,dragging:`ec-dragging`,resizingY:`ec-resizing-y`,resizingX:`ec-resizing-x`,selecting:`ec-selecting`})},initState(e){e.auxComponents.push($s)}},tc=class{#e;get intlListDay(){return V(this.#e)}set intlListDay(e){P(this.#e,e)}#t;get intlListDaySide(){return V(this.#t)}set intlListDaySide(e){P(this.#t,e)}constructor(e){this.#e=j(ro(e,`listDayFormat`)),this.#t=j(ro(e,`listDaySideFormat`))}},nc=U(`<div></div> <!>`,1);function rc(e,t){Ge(t,!0);let n=j(()=>k(`state`)),r=j(()=>V(n).interaction),i=j(()=>V(n).options.theme),a=j(()=>e=>(delete e[`background-color`],delete e.color,e));{let n=(e,t=f,n=f,r=f)=>{var a=nc(),o=I(a);let s;Gr(L(o,2),t),R(()=>{Y(o,1,V(i).eventTag),s=ri(o,``,s,{"background-color":n()})}),G(e,a)},o=j(()=>V(r).action?.noAction);xs(e,{get chunk(){return t.chunk},get styles(){return V(a)},get onpointerdown(){return V(o)},body:n,$$slots:{body:!0}})}A()}var ic=U(`<h4><time><!></time> <time></time></h4> <!>`,1);function ac(e,t){Ge(t,!0);let n=j(()=>k(`state`)),r=j(()=>V(n).filteredEvents),i=j(()=>V(n).options.highlightedDates),a=j(()=>V(n).options.theme),o=j(()=>V(n).options.validRange),s=j(()=>k(`view-state`)),c=j(()=>V(s).intlListDay),l=j(()=>V(s).intlListDaySide),u=j(()=>V(i).some(e=>na(e,t.date))),d=j(()=>mo(t.date,V(o))),p=j(()=>ta(t.date,10)),m=j(()=>{let e=[];if(!V(d)){let n=t.date,i=Zi(Q(t.date));for(let t of V(r))if(!Ka(t.display)&&Wa(t,n,i)){let r=Xa(t,n,i);e.push(r)}}return e});var h=W(),g=I(h),_=e=>{vs(e,{get date(){return t.date},allDay:!0,role:`listitem`,get disabled(){return V(d)},get highlight(){return V(u)},defaultContent:()=>V(c).format(t.date),content:(e,n=f)=>{var r=ic(),i=I(r),o=F(i);Gr(F(o),()=>n().snippet??f,()=>n().arg),O(o),qr(o,()=>bi(n().content,n().snippet));var s=L(o,2);qr(s,()=>bi(V(l).format(t.date))),O(i),J(L(i,2),17,()=>V(m),e=>e.event,(e,t)=>{rc(e,{get chunk(){return V(t)}})}),R(()=>{Y(i,1,V(a).dayHead),si(o,`datetime`,V(p)),Y(s,1,V(a).daySide),si(s,`datetime`,V(p))}),G(e,r)},$$slots:{content:!0}})};K(g,e=>{V(m).length&&e(_)}),G(e,h),A()}var oc=U(`<div><!></div>`),sc=U(`<section><!></section>`);function cc(e,t){Ge(t,!0);let n=k(`state`);We(`view-state`,new tc(n));let r=j(()=>n.filteredEvents),i=j(()=>n.snippets),a=j(()=>n.view),o=j(()=>n.viewDates),s=j(()=>n.options.noEventsClick),c=j(()=>n.options.noEventsContent),l=j(()=>n.options.theme),u=j(()=>{let e=!0;if(!Ni(V(o))){let t=V(o)[0],n=Zi(Q(V(o).at(-1)));for(let i of V(r))if(!Ka(i.display)&&i.start<n&&i.end>t){e=!1;break}}return e}),d=j(()=>Gi(V(c),void 0,void 0,V(i).noEventsContent));function p(e){Ii(V(s))&&V(s)({jsEvent:e,view:ja(V(a))})}var m=sc(),h=F(m),g=e=>{var t=oc();Gr(F(t),()=>V(d).snippet??f,()=>V(d).arg),O(t),qr(t,()=>bi(V(d).content,V(d).snippet)),R(()=>Y(t,1,V(l).noEvents)),Sr(`click`,t,p),G(e,t)},_=e=>{var t=W();J(I(t),17,()=>V(o),q,(e,t)=>{ac(e,{get date(){return V(t)}})}),G(e,t)};K(h,e=>{V(u)?e(g):e(_,-1)}),O(m),mi(m,e=>n.mainEl=e,()=>n?.mainEl),R(()=>Y(m,1,V(l).main)),G(e,m),A()}Cr([`click`]);var lc={createOptions(e){Z(e,{listDayFormat:{weekday:`long`},listDaySideFormat:{year:`numeric`,month:`long`,day:`numeric`},noEventsClick:void 0,noEventsContent:`No events`,view:`listWeek`}),Z(e.buttonText,{listDay:`day`,listWeek:`week`,listMonth:`month`,listYear:`year`}),Z(e.theme,{daySide:`ec-day-side`,eventTag:`ec-event-tag`,noEvents:`ec-no-events`}),Z(e.views,{listDay:{buttonText:oo,component:uc,duration:{days:1},theme:fo(`ec-list ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},listWeek:{buttonText:so,component:uc,duration:{weeks:1},theme:fo(`ec-list ec-week-view`)},listMonth:{buttonText:co,component:uc,duration:{months:1},theme:fo(`ec-list ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},listYear:{buttonText:lo,component:uc,duration:{years:1},theme:fo(`ec-list ec-year-view`),titleFormat:{year:`numeric`}}})}};function uc(e){return e.features=[`list`],cc}function dc(e,t,n=!0){let r=[];for(let{gridColumn:i,gridRow:a,resource:o,start:s,end:c,disabled:l}of t)if(!l&&Wa(e,s,c,o)){let t=Xa(e,s,c);Z(t,{gridColumn:i,gridRow:a,resource:o,top:(t.start-s)/1e3,height:(t.end-t.start)/1e3,maxHeight:(c-t.start)/1e3}),n&&no(t),r.push(t)}return r}function fc(e){let t={};for(let n of e){let{gridColumn:e}=n,r=t[e],i=0;if(r&&n.start<r.end){for(;i<r.columns.length&&!(r.columns[i].at(-1).end<=n.start);++i);n.end>r.end&&(r.end=n.end)}else r={columns:[],end:n.end};r.columns.length<i+1&&r.columns.push([]),r.columns[i].push(n),t[e]=r,n.group=r,n.groupColumn=i}}function pc(e,t){let n=`all-day`,r=Gi(e,()=>({text:n}),{html:n},t);return typeof r.content==`string`&&(r.content={html:r.content}),r}function mc(e){e.extensions.activeRange=(t,n)=>{let{options:{slotMaxTime:r}}=e;if(r.days||r.seconds>86400){Yi(Qi(n),r);let e=Qi(Q(n));e<t&&(t=e)}return{start:t,end:n}}}function hc(e){`scrollTime`in e||(Z(e,{columnWidth:void 0,flexibleSlotTimeLimits:!1,nowIndicator:!1,scrollTime:`06:00:00`,slotDuration:`00:30:00`,slotHeight:24,slotLabelInterval:void 0,slotLabelFormat:{hour:`numeric`,minute:`2-digit`},slotMaxTime:`24:00:00`,slotMinTime:`00:00:00`,snapDuration:void 0}),Z(e.theme,{nowIndicator:`ec-now-indicator`,sidebar:`ec-sidebar`,slot:`ec-slot`}))}function gc(e){`allDaySlot`in e||(Z(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),Z(e.theme,{allDay:`ec-all-day`}))}function _c(e){`scrollTime`in e||Z(e,{scrollTime:Ji,slotDuration:Ji,slotLabelInterval:Wi(Ji),slotMaxTime:Ji,slotMinTime:Ji,snapDuration:Wi(Ji)})}function vc(e){`resourceLabelContent`in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0,e.theme.colGroup=`ec-col-group`)}function yc(e,t){return()=>{let{viewDates:n,options:{highlightedDates:r,validRange:i}}=e,{slotTimeLimits:a}=t,o=[];return H(()=>{let e=1;for(let t of n)o.push({gridColumn:e,gridRow:1,resource:void 0,start:Yi(Q(t),a.min),end:Yi(Q(t),a.max),dayStart:t,dayEnd:Zi(Q(t)),disabled:mo(t,i),highlight:r.some(e=>na(e,t))}),++e}),[o]}}function bc(e,t){return()=>{let{filteredEvents:n}=e,{grid:r}=t,i=[],a=[],o=[],s=[];return H(()=>{for(let e of n)for(let t of r)Ka(e.display)?(a=a.concat(dc(e,t)),e.allDay&&(s=s.concat(Za(e,t)))):e.allDay?o=o.concat(Za(e,t)):i=i.concat(dc(e,t));fc(i),Qa(o)}),{chunks:i,bgChunks:a,allDayChunks:o,allDayBgChunks:s}}}function xc(e,t){return()=>{let{iEvents:n}=e,{grid:r}=t,i=[],a=[];for(let[,e]of n)e&&H(()=>{for(let t of r)e.allDay?a=a.concat(Za(e,t,!1)):i=i.concat(dc(e,t,!1))});return{iChunks:i,allDayIChunks:a}}}function Sc(e){return()=>{let{filteredEvents:t,viewDates:n,options:{flexibleSlotTimeLimits:r,slotMinTime:i,slotMaxTime:a}}=e,o;return H(()=>{o=So(i,a,r,n,t)}),o}}function Cc(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:n}}=e,r;return H(()=>{r=n===void 0?$(t)<3600?2:1:Oi($(n)/$(t))||1}),r}}function wc(e,t){return()=>{let{offset:n,options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:a,slotTimeLimits:o}=t,s;return H(()=>{s=xo($i(qi(void 0,n)),r,a,o,i)}),s}}function Tc(e){return()=>{let{options:{slotDuration:t,snapDuration:n}}=e;return n??=t,{duration:n,ratio:$(n)/$(t)}}}function Ec(){return class{#e;get intlSlotLabel(){return V(this.#e)}set intlSlotLabel(e){P(this.#e,e)}#t;get slotLabelPeriodicity(){return V(this.#t)}set slotLabelPeriodicity(e){P(this.#t,e)}#n;get sidebarWidth(){return V(this.#n)}set sidebarWidth(e){P(this.#n,e,!0)}#r;get snap(){return V(this.#r)}set snap(e){P(this.#r,e)}constructor(e){this.#e=j(ro(e,`slotLabelFormat`)),this.#t=j(Cc(e)),this.#n=N(0),this.#r=j(Tc(e))}}}function Dc(e){return class extends e{#e;get slotTimeLimits(){return V(this.#e)}set slotTimeLimits(e){P(this.#e,e)}#t;get slots(){return V(this.#t)}set slots(e){P(this.#t,e)}#n;get chunks(){return V(this.#n)}set chunks(e){P(this.#n,e)}#r;get bgChunks(){return V(this.#r)}set bgChunks(e){P(this.#r,e)}#i;get allDayChunks(){return V(this.#i)}set allDayChunks(e){P(this.#i,e)}#a;get allDayBgChunks(){return V(this.#a)}set allDayBgChunks(e){P(this.#a,e)}#o;get iChunks(){return V(this.#o)}set iChunks(e){P(this.#o,e)}#s;get allDayIChunks(){return V(this.#s)}set allDayIChunks(e){P(this.#s,e)}constructor(e){super(e),this.#e=j(Sc(e)),this.#t=j(wc(e,this));let t=j(bc(e,this)),n=j(()=>V(t).chunks),r=j(()=>V(t).bgChunks),i=j(()=>V(t).allDayChunks),a=j(()=>V(t).allDayBgChunks);this.#n=j(()=>V(n)),this.#r=j(()=>V(r)),this.#i=j(()=>V(i)),this.#a=j(()=>V(a));let o=j(xc(e,this)),s=j(()=>V(o).iChunks),c=j(()=>V(o).allDayIChunks);this.#o=j(()=>V(s)),this.#s=j(()=>V(c))}}}var Oc=class extends Dc(Ec()){#e;get grid(){return V(this.#e)}set grid(e){P(this.#e,e)}constructor(e){super(e),this.#e=j(yc(e,this))}};function kc(e){return()=>{let{activeRange:t,filteredEvents:n,resources:r,options:{filterResourcesWithEvents:i},extensions:{viewResources:a}}=e,o=a?a(r):r;return H(()=>{i&&(o=r.filter(e=>n.some(n=>!Ka(n.display)&&Wa(n,t.start,t.end,e)))),o.length||(o=ho([{}]))}),o}}function Ac(e,t){return()=>{let{viewDates:n,options:{datesAboveResources:r,highlightedDates:i,validRange:a}}=e,{slotTimeLimits:o,viewResources:s}=t,c=[];return H(()=>{let e=1,t=r?[n,s]:[s,n];for(let n of t[0]){let s=[];for(let c of t[1]){let t=r?n:c,l=r?c:n;s.push({gridColumn:e,gridRow:1,resource:l,start:Yi(Q(t),o.min),end:Yi(Q(t),o.max),dayStart:t,dayEnd:Zi(Q(t)),disabled:mo(t,a),highlight:i.some(e=>na(e,t))}),++e}c.push(s)}}),c}}function jc(e){return class extends e{#e;get viewResources(){return V(this.#e)}set viewResources(e){P(this.#e,e)}constructor(e){super(e),this.#e=j(kc(e))}}}var Mc=class extends jc(Dc(Ec())){#e;get grid(){return V(this.#e)}set grid(e){P(this.#e,e)}constructor(e){super(e),this.#e=j(Ac(e,this))}},Nc=U(`<span><!></span>`);function Pc(e,t){Ge(t,!0);let n=X(t,`date`,3,void 0),r=X(t,`setLabel`,3,void 0),i=j(()=>k(`state`)),a=j(()=>V(i).intlDayHeaderAL),o=j(()=>V(i).snippets),s=j(()=>V(i).options.resourceLabelContent),c=j(()=>V(i).options.resourceLabelDidMount),l=N(void 0),u=j(()=>Gi(V(s),()=>({resource:t.resource,date:n()?ea(n()):void 0}),()=>t.resource.title,V(o).resourceLabelContent)),d=N(void 0);xn(()=>{V(u),t.resource,n(),H(()=>{n()?fr().then(()=>V(l)&&P(d,V(a).format(n())+`, `+V(l).innerText)):r()&&(P(d,void 0),fr().then(()=>V(l)&&r()(V(l).innerText)))})}),vi(()=>{Ii(V(c))&&V(c)({resource:t.resource,date:n()?ea(n()):void 0,el:V(l)})});var p=Nc();Gr(F(p),()=>V(u).snippet??f,()=>V(u).arg),O(p),mi(p,e=>P(l,e),()=>V(l)),qr(p,()=>bi(V(u).content,V(u).snippet)),R(()=>si(p,`aria-label`,V(d))),G(e,p),A()}function Fc(e,t){Ge(t,!0);let n=X(t,`allDay`,3,!1),r=j(()=>k(`state`)),i=j(()=>V(r).options.slotHeight),a=j(()=>k(`view-state`)),o=j(()=>V(a).snap),s=j(()=>t.day.dayStart),c=j(()=>t.day.start),l=j(()=>t.day.resource),u=j(()=>t.day.disabled),d=j(()=>t.day.highlight),f=N(void 0);function p(e,t){if(n())return V(s);{let e=wa(V(f)),n=e.height/V(f).offsetHeight;return Yi(Q(V(c)),V(o).duration,Di((t-e.top)/(V(i)*V(o).ratio*n)))}}vs(e,{get date(){return V(s)},get allDay(){return n()},get resource(){return V(l)},dateFromPoint:p,get disabled(){return V(u)},get highlight(){return V(d)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return V(f)},set el(e){P(f,e,!0)}}),A()}function Ic(e,t){Ge(t,!0);let n=j(()=>k(`state`)),r=j(()=>V(n).options.slotEventOverlap),i=j(()=>V(n).options.slotDuration),a=j(()=>V(n).options.slotHeight),o=j(()=>e=>{let n=$(V(i)),o=t.chunk.top/n*V(a),s=t.chunk.height/n*V(a)||V(a),c=t.chunk.maxHeight/n*V(a);e[`grid-column`]=t.chunk.gridColumn,e[`inset-block-start`]=`${o}px`,e[`min-block-size`]=`${s}px`,e[`block-size`]=`${s}px`,e[`max-block-size`]=`${c}px`;let l=`100% - var(--ec-event-col-gap)`;if(t.chunk.group){let n=t.chunk.group.columns.length;e[`z-index`]=`${t.chunk.groupColumn+1}`,e[`inset-inline-start`]=`calc((${l}) / ${n} * ${t.chunk.groupColumn})`,e[`inline-size`]=`calc((${l}) / ${n} * ${V(r)?.5*(1+n-t.chunk.groupColumn):1})`}return e});Es(e,{get chunk(){return t.chunk},get styles(){return V(o)},axis:`y`}),A()}function Lc(e,t){Ge(t,!0);let n=j(()=>k(`state`)),r=j(()=>V(n).options.eventGap),i=N(void 0),a=N(0),o=j(()=>t.chunk.event),s=j(()=>e=>(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(V(a)||V(o)._margin)&&(e[`margin-block-start`]=`${V(o)._margin??V(a)}px`),e));function c(){P(a,$a(t.chunk,Ea(V(i)),1,V(r)),!0)}var l={reposition:c};return Es(e,{get chunk(){return t.chunk},get styles(){return V(s)},axis:`x`,get forceMargin(){return V(a)},get el(){return V(i)},set el(e){P(i,e,!0)}}),A(l)}var Rc=U(`<div></div>`);function zc(e,t){Ge(t,!0);let n=X(t,`span`,3,1),r=j(()=>k(`state`)),i=j(()=>V(r).mainEl),a=j(()=>V(r).now),o=j(()=>V(r).today),s=j(()=>V(r).options.slotDuration),c=j(()=>V(r).options.slotHeight),l=j(()=>V(r).options.theme),u=j(()=>k(`view-state`)),d=j(()=>V(u).sidebarWidth),f=j(()=>{for(let e of t.days)if(na(e.dayStart,V(o)))return e;return{}}),p=j(()=>V(f).gridColumn),m=j(()=>V(f).start),h=j(()=>V(f).end),g=j(()=>{if(V(a)<V(m)||V(a)>V(h))return null;let e=$(V(s));return(V(a)-V(m))/1e3/e*V(c)}),_=j(()=>({root:V(i),rootMargin:Ui()?`0px -${V(d)+5.5}px 0px 0px`:`0px 0px 0px -${V(d)+5.5}px`,threshold:0}));function v(e,t){e.classList.toggle(V(l).hidden,!t.isIntersecting)}var y=W(),b=I(y),x=e=>{var t=Rc();let r;qr(t,()=>Ci(v,V(_))),R(()=>{Y(t,1,V(l).nowIndicator),r=ri(t,``,r,{"grid-column":`${V(p)+1} / span ${n()??``}`,"inset-block-start":`${V(g)??``}px`})}),G(e,t)};K(b,e=>{V(p)&&V(g)!==null&&e(x)}),G(e,y),A()}var Bc=U(`<div><aside><!></aside> <div role="row"></div> <div><!> <!> <!></div></div>`),Vc=U(`<div><time></time></div>`),Hc=U(`<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 Uc(e,t){Ge(t,!0);let n=X(t,`viewState`,7),r=k(`state`);n()||n(new Oc(r)),We(`view-state`,n());let i=j(()=>r.mainEl),a=j(()=>r.snippets),o=j(()=>r.viewDates),s=j(()=>r.options.allDayContent),c=j(()=>r.options.allDaySlot),l=j(()=>r.options.columnWidth),u=j(()=>r.options.eventGap),d=j(()=>r.options.nowIndicator),p=j(()=>r.options.scrollTime),m=j(()=>r.options.slotHeight),h=j(()=>r.options.slotDuration),g=j(()=>r.options.theme),_=j(()=>n().allDayChunks),v=j(()=>n().allDayBgChunks),y=j(()=>n().allDayIChunks),b=j(()=>n().bgChunks),x=j(()=>n().chunks),S=j(()=>n().iChunks),C=j(()=>n().grid),w=j(()=>n().sidebarWidth),ee=j(()=>n().slots),te=j(()=>n().slotLabelPeriodicity),ne=j(()=>n().slotTimeLimits),re=N(0),ie=j(()=>pc(V(s),V(a).allDayContent));xn(()=>{V(p),Ni(V(o))||fr().then(ae)});function ae(){V(i).scrollTop=(($(V(p))-$(V(ne).min))/$(V(h))-.5)*V(m)}let oe=[];function se(){Ua(oe,V(_))}xn(()=>{V(u),se()});var ce=W(),le=I(ce),T=e=>{var i=Hc();let a;var o=F(i),s=F(o),u=L(s,2),p=F(u),h=e=>{var n=W();Gr(I(n),()=>t.header),G(e,n)},ne=e=>{var t=W();J(I(t),17,()=>V(C)[0],q,(e,t,n)=>{let r=()=>V(t).dayStart,i=()=>V(t).disabled,a=()=>V(t).highlight;Cs(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{Ts(e,{get date(){return r()}})},$$slots:{default:!0}})}),G(e,t)};K(p,e=>{t.header?e(h):e(ne,-1)}),O(u);var ae=L(u,2),ce=e=>{var t=Bc(),n=F(t);Gr(F(n),()=>V(ie).snippet??f,()=>V(ie).arg),O(n),qr(n,()=>bi(V(ie).content,V(ie).snippet));var r=L(n,2);J(r,21,()=>V(C),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{{let a=j(()=>n+1===Mi(V(C))&&i+1===Mi(V(t)));Fc(e,{get day(){return V(r)},allDay:!0,get noIeb(){return V(a)}})}}),G(e,r)}),O(r);var i=L(r,2),a=F(i);J(a,19,()=>V(_),e=>e.id,(e,t,n)=>{mi(Lc(e,{get chunk(){return V(t)}}),(e,t)=>oe[t]=e,e=>oe?.[e],()=>[V(n)])});var o=L(a,2);J(o,17,()=>V(v),e=>e.id,(e,t)=>{Lc(e,{get chunk(){return V(t)}})}),J(L(o,2),17,()=>V(y),q,(e,t)=>{Lc(e,{get chunk(){return V(t)}})}),O(i),O(t),R(()=>{Y(t,1,V(g).allDay),Y(n,1,V(g).sidebar),Y(r,1,V(g).grid),Y(i,1,V(g).events)}),G(e,t)};K(ae,e=>{V(c)&&e(ce)}),O(o);var le=L(o,2),T=F(le);J(T,21,()=>V(ee),q,(e,t,n)=>{var r=Vc();let i;var a=F(r);qr(a,()=>bi(V(t)[1])),O(r),R(()=>{Y(r,1,Xr([V(g).slot,!n&&V(g).hidden])),i=ri(r,``,i,{"--ec-slot-label-periodicity":V(t)[2]}),si(a,`datetime`,V(t)[0])}),G(e,r)}),O(T);var ue=L(T,2);J(ue,21,()=>V(C),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{{let a=j(()=>n+1===Mi(V(C))&&i+1===Mi(V(t)));Fc(e,{get day(){return V(r)},get noIeb(){return V(a)},noBeb:!0})}}),G(e,r)}),O(ue);var de=L(ue,2),fe=F(de);J(fe,17,()=>V(x),e=>e.id,(e,t)=>{Ic(e,{get chunk(){return V(t)}})});var pe=L(fe,2);J(pe,17,()=>V(b),e=>e.id,(e,t)=>{Ic(e,{get chunk(){return V(t)}})}),J(L(pe,2),17,()=>V(S),q,(e,t)=>{Ic(e,{get chunk(){return V(t)}})}),O(de),O(le);var me=L(le,2),he=e=>{var n=W(),r=I(n),i=e=>{var n=W();Gr(I(n),()=>t.nowIndicator),G(e,n)},a=e=>{zc(e,{get days(){return V(C)[0]}})};K(r,e=>{t.nowIndicator?e(i):e(a,-1)}),G(e,n)};K(me,e=>{V(d)&&e(he)}),O(i),mi(i,e=>r.mainEl=e,()=>r?.mainEl),qr(i,()=>Si(se)),R(e=>{Y(i,1,V(g).main),a=ri(i,``,a,e),Y(o,1,V(g).header),Y(s,1,V(g).sidebar),Y(u,1,V(g).grid),Y(le,1,V(g).body),Y(T,1,V(g).sidebar),Y(ue,1,V(g).grid),Y(de,1,V(g).events)},[()=>({"--ec-grid-cols":Mi(V(C))*Mi(V(C)[0]),"--ec-col-group-span":Mi(V(C)[0]),"--ec-col-width":V(l)??`minmax(0, 1fr)`,"--ec-slot-label-periodicity":V(te),"--ec-slot-height":`${V(m)??``}px`,"--ec-header-height":`${V(re)??``}px`,"--ec-sidebar-width":`${V(w)??``}px`})]),fi(s,`offsetWidth`,e=>n().sidebarWidth=e),fi(o,`offsetHeight`,e=>P(re,e)),G(e,i)},ue=j(()=>!Ni(V(C))&&!Ni(V(C)[0]));K(le,e=>{V(ue)&&e(T)}),G(e,ce),A()}var Wc=U(`<!> <!>`,1);function Gc(e,t){Ge(t,!0);let n=k(`state`),r=new Mc(n),i=j(()=>n.today),a=j(()=>n.mainEl),o=j(()=>n.scrollDate),s=j(()=>n.viewDates),c=j(()=>n.options.scrollTime),l=j(()=>n.options.datesAboveResources),u=j(()=>n.options.theme),d=j(()=>r.grid),f=j(()=>r.sidebarWidth),p=nn([]),m;xn(()=>{V(l)&&(V(s),V(c),V(o),fr().then(h))});function h(){let e=V(o)&&V(o)!==m?V(o):V(i);if(m=V(o),e>=V(s)[0]&&e<=V(s).at(-1))for(let t of V(d)){let n=t[0];if(n.dayStart>=e){V(a).scrollLeft=(V(a).scrollWidth-V(f))/(Mi(V(d))*Mi(t))*(n.gridColumn-1)*(Ui()?-1:1);break}}}Uc(e,{get viewState(){return r},header:e=>{var t=Wc(),n=I(t);J(n,17,()=>V(d),q,(e,t,n)=>{let r=j(()=>{let{dayStart:e,resource:n,disabled:r,highlight:i}=V(t)[0];return{date:e,resource:n,disabled:r,highlight:i}});{let i=j(()=>Mi(V(d)[0])>1?V(u).colGroup:void 0),a=j(()=>Mi(V(t))),o=j(()=>1+n*Mi(V(t))),s=j(()=>V(l)&&V(r).disabled),c=j(()=>V(l)&&V(r).highlight);Cs(e,{get date(){return V(r).date},get className(){return V(i)},get weekday(){return V(l)},get colSpan(){return V(a)},get colIndex(){return V(o)},get disabled(){return V(s)},get highlight(){return V(c)},children:(e,t)=>{var i=W(),a=I(i),o=e=>{Ts(e,{get date(){return V(r).date}})},s=e=>{Pc(e,{get resource(){return V(r).resource},setLabel:e=>p[n]=e+`, `})};K(a,e=>{V(l)?e(o):e(s,-1)}),G(e,i)},$$slots:{default:!0}})}});var r=L(n,2),i=e=>{var t=W();J(I(t),17,()=>V(d),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{let a=j(()=>{let{dayStart:e,resource:t,disabled:n,highlight:i}=V(r);return{date:e,resource:t,disabled:n,highlight:i}});{let r=j(()=>1+i+n*Mi(V(t)));Cs(e,{get date(){return V(a).date},get colIndex(){return V(r)},get disabled(){return V(a).disabled},get highlight(){return V(a).highlight},children:(e,t)=>{var r=W(),i=I(r),o=e=>{Pc(e,{get resource(){return V(a).resource},get date(){return V(a).date}})},s=e=>{Ts(e,{get date(){return V(a).date},get alPrefix(){return p[n]}})};K(i,e=>{V(l)?e(o):e(s,-1)}),G(e,r)},$$slots:{default:!0}})}}),G(e,r)}),G(e,t)},a=j(()=>Mi(V(d)[0])>1);K(r,e=>{V(a)&&e(i)}),G(e,t)},nowIndicator:e=>{var t=W(),n=I(t),r=e=>{{let t=j(()=>V(d).flat()),n=j(()=>Mi(V(d)[0]));zc(e,{get days(){return V(t)},get span(){return V(n)}})}},i=e=>{var t=W(),n=I(t),r=e=>{var t=W();J(I(t),17,()=>V(d),q,(e,t)=>{zc(e,{get days(){return V(t)}})}),G(e,t)},i=j(()=>Mi(V(d)[0])>1),a=e=>{{let t=j(()=>V(d).flat()),n=j(()=>Mi(V(d)));zc(e,{get days(){return V(t)},get span(){return V(n)}})}};K(n,e=>{V(i)?e(r):e(a,-1)}),G(e,t)};K(n,e=>{V(l)?e(r):e(i,-1)}),G(e,t)},$$slots:{header:!0,nowIndicator:!0}}),A()}var Kc={createOptions(e){gc(e),hc(e),vc(e),Z(e,{datesAboveResources:!1,view:`resourceTimeGridWeek`}),Z(e.buttonText,{resourceTimeGridDay:`day`,resourceTimeGridWeek:`week`}),Z(e.views,{resourceTimeGridDay:{buttonText:oo,component:qc,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:fo(`ec-resource ec-time-grid ec-day-view`)},resourceTimeGridWeek:{buttonText:so,component:qc,duration:{weeks:1},theme:fo(`ec-resource ec-time-grid ec-week-view`)}})},createParsers(e){_c(e)}};function qc(e){return mc(e),Gc}function Jc(e,t,n,r=!0){let i=[],a,o,s,c,l,u,d=0;for(let{gridColumn:r,gridRow:f,resource:p,dayStart:m,dayEnd:h,start:g,end:_,disabled:v}of t)v||(n?Wa(e,m,h,p)&&(i.length||(a=m,s=r,c=f,l=p),i.push(m),o=h):Wa(e,g,_,p)&&(i.length||(a=g,s=r,c=f,l=p,u=Ai(e.start-g,0)/1e3),i.push(m),o=_,d+=(ki(_,e.end)-Ai(g,e.start))/1e3));if(i.length){let t=Xa(e,a,o);return Z(t,{gridColumn:s,gridRow:c,resource:l,dates:i,left:u,width:d}),r&&no(t),[t]}return[]}function Yc(e,t){let n={};for(let t=0;t<e.length;++t){let r=e[t],{gridColumn:i,gridRow:a}=r;r.order=t;for(let e=0;e<r.dates.length;++e){let t=`${a}_${i+e}`;n[t]?n[t].push(r):n[t]=[r]}r.day=n[`${a}_${i}`]}if(t)for(let t of e){let{gridColumn:e,gridRow:r}=t,i=new Set([t]),a=[];for(let o=0;o<t.dates.length;++o)for(let t of n[`${r}_${e+o}`])i.has(t)||(i.add(t),a.push(t));t.group=a}}function Xc(e,t,n,r=1,i=!1){let a=1,o=a+t;if(i){for(let t of e.group)t.order<e.order&&`top`in t&&t.bottom+r>a&&(a=t.bottom+r);o=a+t}else{let t=e.day;t.sort((e,t)=>(e.top??1/0)-(t.top??1/0));for(let i of t)if(!(i===e||!(`top`in i))&&(n||e.start<i.end&&e.end>i.start)&&a<i.bottom&&o>i.top){let e=i.bottom-a+r;a+=e,o+=e}}return Z(e,{top:a,bottom:o}),a}function Zc(e,t){return e[t.getTime()]??{min:Ji(0),max:Ji(`24:00:00`)}}function Qc(e,t){return()=>{let{viewDates:n,options:{highlightedDates:r,validRange:i}}=e,{dayTimeLimits:a,viewResources:o}=t,s=[];return H(()=>{let e=1;for(let t of o){let o=[],c=1;for(let s of n){let n=a[s.getTime()];o.push({gridColumn:c,gridRow:e,resource:t,start:Yi(Q(s),n.min),end:Yi(Q(s),n.max),dayStart:s,dayEnd:Zi(Q(s)),disabled:mo(s,i),highlight:r.some(e=>na(e,s))}),++c}s.push(o),++e}}),s}}function $c(e,t){return()=>{let{features:n,options:{firstDay:r,weekNumbers:i}}=e,{grid:a}=t,o=[],s=[];return H(()=>{let e,t;if(!Ni(a)){for(let{dayStart:c,gridColumn:l}of a[0])if(n.includes(`month`)&&(e&&e.date.getUTCMonth()===c.getUTCMonth()?++e.span:(e={date:c,gridColumn:l,span:1},o.push(e))),i){let e=la(c,r);t&&t.number===e?++t.span:(t={number:e,date:c,gridColumn:l,span:1},s.push(t))}}}),{months:o,weeks:s}}}function el(e,t){return()=>{let{filteredEvents:n,options:{eventOrderStrict:r}}=e,{grid:i,monthView:a}=t,o=[],s=[];return H(()=>{for(let e of n)for(let t of i)Ka(e.display)?(!a||e.allDay)&&(s=s.concat(Jc(e,t,a))):o=o.concat(Jc(e,t,a));Yc(o,r)}),{chunks:o,bgChunks:s}}}function tl(e,t){return()=>{let{iEvents:n}=e,{grid:r,monthView:i}=t,a=[];for(let[,e]of n)e&&H(()=>{for(let t of r)a=a.concat(Jc(e,t,i,!1))});return a}}function nl(e){return()=>{let{filteredEvents:t,viewDates:n,options:{flexibleSlotTimeLimits:r,slotMinTime:i,slotMaxTime:a}}=e,o={};return H(()=>{for(let e of n)o[e.getTime()]=So(i,a,r,[e],t)}),o}}function rl(e,t){return()=>{let{viewDates:n,options:{slotDuration:r}}=e,{dayTimeLimits:i,intlSlotLabel:a,slotLabelPeriodicity:o}=t,s={};return H(()=>{for(let e of n){let t=e.getTime();s[t]=t in i?xo(e,r,o,i[t],a):[]}}),s}}function il(e){return()=>{let{resources:t}=e,n;return H(()=>{n=t.some(e=>Sa(e).children.length)}),n}}function al(e){return()=>{let{options:{slotDuration:t}}=e,n;return H(()=>{n=!$(t)}),n}}var ol=class extends jc(Ec()){#e;get dayTimeLimits(){return V(this.#e)}set dayTimeLimits(e){P(this.#e,e)}#t;get daySlots(){return V(this.#t)}set daySlots(e){P(this.#t,e)}#n;get grid(){return V(this.#n)}set grid(e){P(this.#n,e)}#r;get extraHeads(){return V(this.#r)}set extraHeads(e){P(this.#r,e)}#i;get intlMonthHeader(){return V(this.#i)}set intlMonthHeader(e){P(this.#i,e)}#a;get monthView(){return V(this.#a)}set monthView(e){P(this.#a,e)}#o;get chunks(){return V(this.#o)}set chunks(e){P(this.#o,e)}#s;get bgChunks(){return V(this.#s)}set bgChunks(e){P(this.#s,e)}#c;get iChunks(){return V(this.#c)}set iChunks(e){P(this.#c,e)}#l;get nestedResources(){return V(this.#l)}set nestedResources(e){P(this.#l,e)}constructor(e){super(e),this.#e=j(nl(e)),this.#t=j(rl(e,this)),this.#n=j(Qc(e,this)),this.#r=j($c(e,this)),this.#i=j(ro(e,`monthHeaderFormat`)),this.#a=j(al(e));let t=j(el(e,this)),n=j(()=>V(t).chunks),r=j(()=>V(t).bgChunks);this.#o=j(()=>V(n)),this.#s=j(()=>V(r)),this.#c=j(tl(e,this)),this.#l=j(il(e))}};function sl(e,t){Ge(t,!0);let n=j(()=>k(`state`)),r=j(()=>V(n).options.slotWidth),i=j(()=>k(`view-state`)),a=j(()=>V(i).monthView),o=j(()=>V(i).snap),s=j(()=>t.day.dayStart),c=j(()=>t.day.start),l=j(()=>t.day.resource),u=j(()=>t.day.disabled),d=j(()=>t.day.highlight),f=N(void 0);function p(e,t){if(V(a))return V(s);{let t=wa(V(f)),n=t.width/V(f).offsetWidth;return Yi(Q(V(c)),V(o).duration,Di((Ui()?t.right-e:e-t.left)/(V(r)*V(o).ratio*n)))}}vs(e,{get allDay(){return V(a)},get date(){return V(s)},get resource(){return V(l)},dateFromPoint:p,get disabled(){return V(u)},get highlight(){return V(d)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return V(f)},set el(e){P(f,e,!0)}}),A()}function cl(e,t){Ge(t,!0);let n=j(()=>k(`state`)),r=j(()=>V(n).options.eventGap),i=j(()=>V(n).options.eventOrderStrict),a=j(()=>V(n).options.slotDuration),o=j(()=>V(n).options.slotWidth),s=j(()=>k(`view-state`)),c=j(()=>V(s).monthView),l=N(void 0),u=N(1),d=j(()=>t.chunk.event),f=j(()=>e=>{e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,V(c)||(e[`inset-inline-start`]=`${t.chunk.left/$(V(a))*V(o)}px`,e[`inline-size`]=`${t.chunk.width/$(V(a))*V(o)}px`);let n=V(u);if(V(d)._margin){let[e,r]=V(d)._margin;t.chunk.gridRow===r&&(n=e)}return e[`margin-block-start`]=`${n}px`,e});function p(){P(u,Xc(t.chunk,Ea(V(l)),V(c),V(r),V(i)),!0)}var m={reposition:p};{let n=j(()=>[V(u),t.chunk.gridRow]);Es(e,{get chunk(){return t.chunk},get styles(){return V(f)},axis:`x`,get forceMargin(){return V(n)},get el(){return V(l)},set el(e){P(l,e,!0)}})}return A(m)}var ll=U(`<span></span>`),ul=U(`<button></button>`),dl=U(`<!> <span><!></span>`,1);function fl(e,t){Ge(t,!0);let n=X(t,`resource`,7),r=j(()=>k(`state`)),i=j(()=>V(r).resources),a=j(()=>V(r).view),o=j(()=>V(r).options.buttonText),s=j(()=>V(r).options.icons),c=j(()=>V(r).options.resourceExpand),l=j(()=>V(r).options.theme),u=N({}),d=j(()=>n().expanded),f=j(()=>V(o)[V(d)?`collapse`:`expand`]);Cn(()=>{P(u,Sa(n()))});function p(e){n().expanded=P(d,!V(d)),m(V(u).children),V(i).length=V(i).length,Ii(V(c))&&V(c)({resource:n(),jsEvent:e,view:ja(V(a))})}function m(e){for(let t of e){let e=Sa(t);e.hidden=!V(d),t.expanded&&m(e.children)}}var h=dl(),g=I(h);J(g,17,()=>Array(V(u).level),q,(e,t)=>{var n=ll();R(()=>Y(n,1,V(l).expander)),G(e,n)});var _=L(g,2),v=F(_),y=e=>{var t=ul();qr(t,()=>bi(V(s)[V(d)?`collapse`:`expand`])),R(()=>{Y(t,1,V(l).button),si(t,`aria-label`,V(f)),si(t,`title`,V(f))}),Sr(`click`,t,p),G(e,t)};K(v,e=>{V(u).children?.length&&e(y)}),O(_),R(()=>Y(_,1,V(l).expander)),G(e,h),A()}Cr([`click`]);var pl=U(`<div></div>`);function ml(e,t){Ge(t,!0);let n=j(()=>k(`state`)),r=j(()=>V(n).mainEl),i=j(()=>V(n).now),a=j(()=>V(n).today),o=j(()=>V(n).options.slotDuration),s=j(()=>V(n).options.slotWidth),c=j(()=>V(n).options.theme),l=j(()=>k(`view-state`)),u=j(()=>V(l).grid),d=j(()=>V(l).sidebarWidth),f=j(()=>{for(let e of V(u)[0])if(na(e.dayStart,V(a)))return e;return{}}),p=j(()=>V(f).gridColumn),m=j(()=>V(f).start),h=j(()=>V(f).end),g=j(()=>{if(V(i)<V(m)||V(i)>V(h))return null;let e=$(V(o));return(V(i)-V(m))/1e3/e*V(s)}),_=j(()=>({root:V(r),rootMargin:Ui()?`0px -${V(d)+1}px 0px 0px`:`0px 0px 0px -${V(d)+1}px`,threshold:0}));function v(e,t){e.classList.toggle(V(c).hidden,!t.isIntersecting)}var y=W(),b=I(y),x=e=>{var t=pl();let n;qr(t,()=>Ci(v,V(_))),R(()=>{Y(t,1,V(c).nowIndicator),n=ri(t,``,n,{"grid-column":V(p)+1,"grid-row":`2 / span ${V(u).length??``}`,"inset-inline-start":`${V(g)??``}px`})}),G(e,t)};K(b,e=>{V(p)&&V(g)!==null&&e(x)}),G(e,y),A()}var hl=U(`<time></time>`),gl=U(`<span><!></span>`),_l=U(`<div><time></time></div>`),vl=U(`<div role="rowheader"><!> <!></div>`),yl=U(`<section><header><aside></aside> <div role="row"><!> <!> <!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>`);function bl(e,t){Ge(t,!0);let n=k(`state`),r=new ol(n);We(`view-state`,r);let i=j(()=>n.mainEl),a=j(()=>n.scrollDate),o=j(()=>n.snippets),s=j(()=>n.today),c=j(()=>n.viewDates),l=j(()=>n.options.columnWidth),u=j(()=>n.options.eventGap),d=j(()=>n.options.nowIndicator),p=j(()=>n.options.scrollTime),m=j(()=>n.options.slotDuration),h=j(()=>n.options.slotHeight),g=j(()=>n.options.slotWidth),_=j(()=>n.options.theme),v=j(()=>n.options.weekNumberContent),y=j(()=>r.chunks),b=j(()=>r.bgChunks),x=j(()=>r.iChunks),S=j(()=>r.daySlots),C=j(()=>r.dayTimeLimits),w=j(()=>r.grid),ee=j(()=>r.extraHeads),te=j(()=>r.intlMonthHeader),ne=j(()=>r.monthView),re=j(()=>r.nestedResources),ie=j(()=>r.sidebarWidth),ae=j(()=>r.slotLabelPeriodicity),oe=j(()=>r.viewResources),se=N(0),ce;xn(()=>{V(p),V(a),Ni(V(c))||fr().then(le)});function le(){let e=0,t=V(a)&&V(a)!==ce?V(a):V(s);ce=V(a);let n=t<V(c)[0]||t>V(c).at(-1);if(V(ne)){if(!n){let e=V(w)[0];for(let n of e)if(n.dayStart>=t){V(i).scrollLeft=(V(i).scrollWidth-V(ie))/Mi(e)*(n.gridColumn-1)*(Ui()?-1:1);break}}}else{for(let r of V(c)){let i=Zc(V(C),r);if(n||r>=t){e+=Ai(ki($(V(p)),$(i.max))-$(i.min),0);break}else e+=$(i.max)-$(i.min)}V(i).scrollLeft=e/$(V(m))*V(g)*(Ui()?-1:1)}}let T=[];function ue(){Ua(T,V(y))}xn(()=>{V(u),ue()});var de=W(),fe=I(de),pe=e=>{var t=yl();let i;var a=F(t),s=F(a),c=L(s,2),u=F(c),p=e=>{var t=W();J(I(t),17,()=>V(ee).months,q,(e,t)=>{let n=()=>V(t).date,r=()=>V(t).gridColumn,i=()=>V(t).span;Cs(e,{get className(){return V(_).colGroup},get colIndex(){return r()},get colSpan(){return i()},cssSpan:!0,weekday:!1,children:(e,t)=>{var r=hl();qr(r,()=>bi(V(te).format(n()))),R(e=>si(r,`datetime`,e),[()=>ta(n(),10)]),G(e,r)},$$slots:{default:!0}})}),G(e,t)},m=j(()=>Mi(V(ee).months)>1);K(u,e=>{V(m)&&e(p)});var C=L(u,2),ce=e=>{var t=W();J(I(t),17,()=>V(ee).weeks,q,(e,t)=>{let n=()=>V(t).number,r=()=>V(t).date,i=()=>V(t).gridColumn,a=()=>V(t).span,s=j(()=>ua(n(),r(),V(v),V(o).weekNumberContent));Cs(e,{get className(){return V(_).colGroup},get colIndex(){return i()},get colSpan(){return a()},cssSpan:!0,weekday:!1,children:(e,t)=>{var n=gl();Gr(F(n),()=>V(s).snippet??f,()=>V(s).arg),O(n),qr(n,()=>bi(V(s).content,V(s).snippet)),R(()=>Y(n,1,V(_).weekNumber)),G(e,n)},$$slots:{default:!0}})}),G(e,t)},le=j(()=>Mi(V(ee).weeks)>1);K(C,e=>{V(le)&&e(ce)});var de=L(C,2);J(de,17,()=>V(w)[0],q,(e,t,n)=>{let r=()=>V(t).dayStart,i=()=>V(t).disabled,a=()=>V(t).highlight;Cs(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{Ts(e,{get date(){return r()}})},$$slots:{default:!0}})});var fe=L(de,2),pe=e=>{var t=W();J(I(t),17,()=>V(w)[0],q,(e,t)=>{let n=()=>V(t).dayStart,r=()=>V(t).disabled,i=()=>V(t).highlight;Cs(e,{get date(){return n()},get className(){return V(_).slots},get disabled(){return r()},get highlight(){return i()},ariaHidden:!0,children:(e,t)=>{var r=W();J(I(r),17,()=>V(S)[n().getTime()],q,(e,t)=>{var n=_l();let r;var i=F(n);qr(i,()=>bi(V(t)[1])),O(n),R(()=>{Y(n,1,V(_).slot),r=ri(n,``,r,{"--ec-slot-label-periodicity":V(t)[2]}),si(i,`datetime`,V(t)[0])}),G(e,n)}),G(e,r)},$$slots:{default:!0}})}),G(e,t)};K(fe,e=>{V(ne)||e(pe)}),O(c),O(a);var me=L(a,2),he=F(me);J(he,21,()=>V(oe),q,(e,t)=>{var n=vl(),r=F(n),i=e=>{fl(e,{get resource(){return V(t)}})};K(r,e=>{V(re)&&e(i)}),Pc(L(r,2),{get resource(){return V(t)}}),O(n),R(()=>Y(n,1,V(_).rowHead)),G(e,n)}),O(he);var ge=L(he,2);J(ge,21,()=>V(w),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{{let a=j(()=>i+1===Mi(V(t))),o=j(()=>n+1===Mi(V(w)));sl(e,{get day(){return V(r)},get noIeb(){return V(a)},get noBeb(){return V(o)}})}}),G(e,r)}),O(ge);var _e=L(ge,2),ve=F(_e);J(ve,19,()=>V(y),e=>e.id,(e,t,n)=>{mi(cl(e,{get chunk(){return V(t)}}),(e,t)=>T[t]=e,e=>T?.[e],()=>[V(n)])});var ye=L(ve,2);J(ye,17,()=>V(b),e=>e.id,(e,t)=>{cl(e,{get chunk(){return V(t)}})}),J(L(ye,2),17,()=>V(x),q,(e,t)=>{cl(e,{get chunk(){return V(t)}})}),O(_e),O(me);var be=L(me,2),xe=e=>{ml(e,{})};K(be,e=>{V(d)&&!V(ne)&&e(xe)}),O(t),mi(t,e=>n.mainEl=e,()=>n?.mainEl),qr(t,()=>Si(ue)),R(e=>{Y(t,1,V(_).main),i=ri(t,``,i,e),Y(a,1,V(_).header),Y(s,1,V(_).sidebar),Y(c,1,V(_).grid),Y(me,1,V(_).body),Y(he,1,V(_).sidebar),Y(ge,1,V(_).grid),Y(_e,1,V(_).events)},[()=>({"--ec-grid-cols":Mi(V(w)[0]),"--ec-grid-rows":`${Mi(V(w))>1?`repeat(${Mi(V(w))-1}, auto)`:``} 1fr`,"--ec-col-width":V(l)??`minmax(4em, 1fr)`,"--ec-slot-label-periodicity":V(ae),"--ec-slot-height":`${V(h)??``}px`,"--ec-slot-width":`${V(g)??``}px`,"--ec-header-height":`${V(se)??``}px`,"--ec-sidebar-width":`${V(ie)??``}px`})]),fi(s,`offsetWidth`,e=>r.sidebarWidth=e),fi(a,`offsetHeight`,e=>P(se,e)),G(e,t)},me=j(()=>!Ni(V(w))&&!Ni(V(w)[0]));K(fe,e=>{V(me)&&e(pe)}),G(e,de),A()}var xl={createOptions(e){hc(e),vc(e),ds(e),Z(e,{monthHeaderFormat:{month:`long`},resourceExpand:void 0,slotWidth:32,view:`resourceTimelineWeek`}),Z(e.buttonText,{expand:`Expand`,collapse:`Collapse`,resourceTimelineDay:`day`,resourceTimelineWeek:`week`,resourceTimelineMonth:`month`,resourceTimelineYear:`year`}),Z(e.icons,{collapse:{html:`&minus;`},expand:{html:`&plus;`}}),Z(e.theme,{expander:`ec-expander`,rowHead:`ec-row-head`,slots:`ec-slots`}),Z(e.views,{resourceTimelineDay:{buttonText:oo,component:Sl,displayEventEnd:!1,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:fo(`ec-resource ec-timeline ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},resourceTimelineWeek:{buttonText:so,component:Sl,displayEventEnd:!1,duration:{weeks:1},theme:fo(`ec-resource ec-timeline ec-week-view`)},resourceTimelineMonth:{buttonText:co,component:Cl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{months:1},slotDuration:{days:1},theme:fo(`ec-resource ec-timeline ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},resourceTimelineYear:{buttonText:lo,component:Cl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{years:1},slotDuration:{days:1},theme:fo(`ec-resource ec-timeline ec-year-view`),titleFormat:{year:`numeric`}}})},createParsers(e){_c(e)}};function Sl(e){return mc(e),wl(e)}function Cl(e){return wl(e,[`month`])}function wl(e,t=[]){return e.features=[`timeline`,...t],e.extensions.viewResources=e=>e.filter(e=>!Sa(e).hidden),bl}var Tl={createOptions(e){hc(e),gc(e),Z(e.buttonText,{timeGridDay:`day`,timeGridWeek:`week`}),Z(e,{view:`timeGridWeek`}),Z(e.views,{timeGridDay:{buttonText:oo,component:El,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:fo(`ec-time-grid ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},timeGridWeek:{buttonText:so,component:El,duration:{weeks:1},theme:fo(`ec-time-grid ec-week-view`)}})},createParsers(e){_c(e)}};function El(e){return mc(e),Uc}function Dl(e,t,n){return jr(us,{target:e,props:{plugins:t,options:n}})}function Ol(e){return Fr(e)}function kl(e,t){return Dl(e,[Ls,ec,lc,Kc,xl,Tl],t)}return e.create=kl,e.destroy=Ol,e})({});
5
+ var EventCalendar=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Array.isArray,n=Array.prototype.indexOf,r=Array.prototype.includes,i=Array.from,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,c=Object.prototype,l=Array.prototype,u=Object.getPrototypeOf,d=Object.isExtensible,f=()=>{};function p(e){for(var t=0;t<e.length;t++)e[t]()}function m(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var h=1<<24,g=1024,_=2048,v=4096,y=8192,b=16384,x=32768,S=1<<25,C=65536,w=1<<19,ee=1<<20,te=1<<25,ne=65536,re=1<<21,ie=1<<22,ae=1<<23,oe=Symbol(`$state`),se=Symbol(`component`),ce=Symbol(`legacy props`),le=Symbol(``),T=Symbol(`attributes`),ue=Symbol(`class`),de=Symbol(`style`),fe=Symbol(`text`),pe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},me=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`),he={},ge=Symbol(`uninitialized`),_e=`http://www.w3.org/1999/xhtml`;function ve(){console.warn(`https://svelte.dev/e/derived_inert`)}function ye(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function be(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function xe(e){E=e}var D;function Se(e){if(e===null)throw ye(),he;return D=e}function Ce(){return Se(rn(D))}function O(e){if(E){if(rn(D)!==null)throw ye(),he;D=e}}function we(e=1){if(E){for(var t=e,n=D;t--;)n=rn(n);D=n}}function Te(e=!0){for(var t=0,n=D;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=rn(n);e&&n.remove(),n=i}}function Ee(e){if(!e||e.nodeType!==8)throw ye(),he;return e.data}function De(e){return e===this.v}function Oe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function ke(e){return!Oe(e,this.v)}function Ae(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function je(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Me(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ne(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Pe(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Fe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ie(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Le(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function Re(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function ze(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Be(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ve(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function He(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Ue(e){let t=e.p;for(;t!==null&&t.c===null;)t=t.p;return t?.c??null}function We(e,t){return e===null&&Ae(t),e.c??=new Map(Ue(e)||void 0)}var Ge=null;function Ke(e){Ge=e}function k(e){return We(Ge,`getContext`).get(e)}function qe(e,t){return We(Ge,`setContext`).set(e,t),t}function A(e,t=!1,n){Ge={p:Ge,i:!1,c:null,e:null,s:e,x:null,r:V,l:null}}function j(e){var t=Ge,n=t.e;if(n!==null){t.e=null;for(var r of n)vn(r)}return e!==void 0&&(t.x=e),t.i=!0,Ge=t.p,Je(e)}function Je(e={}){return a(e,se,{value:!0}),e}function Ye(){return!0}var Xe=[];function Ze(){var e=Xe;Xe=[],p(e)}function Qe(e){if(Xe.length===0&&!Et){var t=Xe;queueMicrotask(()=>{t===Xe&&Ze()})}Xe.push(e)}function $e(){for(;Xe.length>0;)Ze()}var et=~(_|v|g);function tt(e,t){e.f=e.f&et|t}function nt(e){e.f&512||e.deps===null?tt(e,g):tt(e,v)}function rt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ne,rt(t.deps))}function it(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),rt(e.deps),tt(e,g)}var at=!1;function ot(e){var t=at;try{return at=!1,[e(),at]}finally{at=t}}function st(e,t){if(t){let t=document.body;e.autofocus=!0,Qe(()=>{document.activeElement===t&&e.focus()})}}function ct(e){var t=B,n=V;Un(null),Wn(null);try{return e()}finally{Un(t),Wn(n)}}function lt(e,t,n,r){let i=Ye()?pt:gt;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=V,c=ut(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){dn(e,s)}dt()}}var d=ft();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>ht(e))).then(u).catch(e=>dn(e,s)).finally(d)}l?l.then(()=>{c(),f(),dt()}):f()}function ut(){var e=V,t=B,n=Ge,r=N;return function(i=!0){Wn(e),Un(t),Ke(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function dt(e=!0){Wn(null),Un(null),Ke(null),e&&N?.deactivate()}function ft(){var e=V,t=e.b,n=N,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function pt(e){var t=2|_;return V!==null&&(V.f|=w),{ctx:Ge,deps:null,effects:null,equals:De,f:t,fn:e,reactions:null,rv:0,v:ge,wv:0,parent:V,ac:null}}var mt=Symbol(`obsolete`);function ht(e,t,n){let r=V;r===null&&je();var i=void 0,a=Ut(ge),o=!B,s=new Set;return Sn(()=>{var t=V,n=m();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==pe&&n.reject(e)}).finally(dt)}catch(e){n.reject(e),dt()}var c=N;if(o){if(t.f&32768)var l=ft();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(mt);else for(let e of s.values())e.reject(mt);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==mt&&(c.activate(),t?(a.f|=ae,Gt(a,t)):(a.f&8388608&&(a.f^=ae),Gt(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),gn(()=>{for(let e of s)e.reject(mt)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function M(e){let t=pt(e);return Kn(t),t}function gt(e){let t=pt(e);return t.equals=ke,t}function _t(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)An(t[n])}}function vt(e){var t,n=V,r=e.parent;if(!Bn&&r!==null&&e.v!==ge&&r.f&24576)return ve(),e.v;Wn(r);try{e.f&=~ne,_t(e),t=ir(e)}finally{Wn(n)}return t}function yt(e){var t=vt(e);if(!e.equals(t)&&(e.wv=tr(),(!N?.is_fork||e.deps===null)&&(N===null?e.v=t:(N.capture(e,t,!0),Ct?.capture(e,t,!0)),e.deps===null))){tt(e,g);return}Bn||(wt===null?nt(e):(hn()||N?.is_fork)&&wt.set(e,t))}function bt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&ct(()=>{t.ac.abort(pe),t.ac=null}),t.fn!==null&&(t.teardown=f),sr(t,0),On(t))}function xt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&cr(t)}var St=null,N=null,Ct=null,wt=null,Tt=null,Et=!1,Dt=!1,Ot=null,kt=null,At=0,jt=1,Mt=class e{id=jt++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){St===null?St=this:(St.#n=this,this.#t=St),St=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)tt(r,_),t(r);for(r of n.m)tt(r,v),t(r)}this.#p.add(e)}#g(){this.#e=!0,At++>1e3&&(this.#x(),Pt());for(let e of this.#u)this.#d.delete(e),tt(e,_),this.schedule(e);for(let e of this.#d)tt(e,v),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=Ot=[],r=[],i=kt=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw zt(e),this.#h()||this.discard(),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Ot=null,kt=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)Rt(e,t);i.length>0&&N.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),Ct=this,It(r),It(n),Ct=null,this.#s?.resolve();var s=N;if(this.#a===0&&(this.#c.length===0||s!==null)&&this.#x(),this.#c.length>0){if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this}s!==null&&(Vt.clear(),s.#g())}#_(e,t,n){e.f^=g;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=g:i&4?t.push(r):nr(r)&&(i&16&&this.#d.add(r),cr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),tt(i,_),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#x(),N=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)it(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==ge&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),wt?.set(e,t)),this.is_fork||(e.v=t)}activate(){N=this}deactivate(){N=null,wt=null}flush(){try{Dt=!0,N=this,this.#g()}finally{At=0,Tt=null,Ot=null,kt=null,Dt=!1,N=null,wt=null,Vt.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(mt);this.#x(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,Qe(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=m()).promise}static ensure(){if(N===null){let t=N=new e;!Dt&&!Et&&Qe(()=>{t.#e||t.flush()})}return N}apply(){wt=null}schedule(e){if(Tt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Ot!==null&&t===V&&(B===null||!(B.f&2)))return;if(n&96){if(!(n&1024))return;t.f^=g}}this.#c.push(t)}#x(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?St=e:t.#t=e,this.linked=!1}}};function Nt(e){var t=Et;Et=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if($e(),N===null)return n;N.flush()}}finally{Et=t}}function Pt(){try{Ie()}catch(e){dn(e,Tt)}}var Ft=null;function It(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&nr(r)&&(Ft=new Set,cr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Mn(r),Ft?.size>0)){Vt.clear();for(let e of Ft){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Ft.has(n)&&(Ft.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||cr(n)}}Ft.clear()}}Ft=null}}function Lt(e){N.schedule(e)}function Rt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),tt(e,g);for(var n=e.first;n!==null;)Rt(n,t),n=n.next}}function zt(e){tt(e,g);for(var t=e.first;t!==null;)zt(t),t=t.next}var Bt=new Set,Vt=new Map,Ht=!1;function Ut(e,t){return{f:0,v:e,reactions:null,equals:De,rv:0,wv:0}}function P(e,t){let n=Ut(e,t);return Kn(n),n}function Wt(e,t=!1,n=!0){let r=Ut(e);return t||(r.equals=ke),r}function F(e,t,n=!1){return B!==null&&(!Hn||B.f&131072)&&Ye()&&B.f&4325394&&(Gn===null||!Gn.has(e))&&Ve(),Gt(e,n?Yt(t):t,kt)}function Gt(e,t,n=null){if(!e.equals(t)){Bn?Vt.set(e,t):Vt.has(e)||Vt.set(e,e.v);var r=Mt.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&vt(t),wt===null&&nt(t)}e.wv=tr(),Jt(e,_,n),Ye()&&V!==null&&V.f&1024&&!(V.f&96)&&(Yn===null?Xn([e]):Yn.push(e)),!r.is_fork&&Bt.size>0&&!Ht&&Kt()}return t}function Kt(){Ht=!1;for(let e of Bt){e.f&1024&&tt(e,v);let t;try{t=nr(e)}catch{t=!0}t&&cr(e)}Bt.clear()}function qt(e){F(e,e.v+1)}function Jt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ye(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===V)){var l=(c&_)===0;if(l&&tt(s,t),c&131072)Bt.add(s);else if(c&2){var u=s;wt?.delete(u),c&65536||(c&512&&(V===null||!(V.f&2097152))&&(s.f|=ne),Jt(u,v,n))}else if(l){var d=s;c&16&&Ft!==null&&Ft.add(d),n===null?Lt(d):n.push(d)}}}}function Yt(e){if(typeof e!=`object`||!e||oe in e||se in e)return e;let n=u(e);if(n!==c&&n!==l)return e;var r=new Map,i=t(e),a=P(0),s=null,d=$n,f=e=>{if($n===d)return e();var t=B,n=$n;Un(null),er(d);var r=e();return Un(t),er(n),r};return i&&r.set(`length`,P(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&ze();var i=r.get(t);return i===void 0?f(()=>{var e=P(n.value,s);return r.set(t,e),e}):F(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>P(ge,s));r.set(t,e),qt(a)}}else F(n,ge),qt(a);return!0},get(t,n,i){if(n===oe)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||o(t,n)?.writable)&&(a=f(()=>P(Yt(c?t[n]:ge),s)),r.set(n,a)),a!==void 0){var l=H(a);return l===ge?void 0:l}return Reflect.get(t,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=H(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==ge)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===oe)return!0;var n=r.get(t),i=n!==void 0&&n.v!==ge||Reflect.has(e,t);return(n!==void 0||V!==null&&(!i||o(e,t)?.writable))&&(n===void 0&&(n=f(()=>P(i?Yt(e[t]):ge,s)),r.set(t,n)),H(n)===ge)?!1:i},set(e,t,n,c){var l=r.get(t),u=t in e;if(i&&t===`length`)for(var d=n;d<l.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>P(ge,s)),r.set(d+``,p)):F(p,ge)}if(l===void 0)(!u||o(e,t)?.writable)&&(l=f(()=>P(void 0,s)),F(l,Yt(n)),r.set(t,l));else{u=l.v!==ge;var m=f(()=>Yt(n));F(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,n),!u){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&F(g,_+1)}qt(a)}return!0},ownKeys(e){H(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==ge});for(var[n,i]of r)i.v!==ge&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Be()}})}var Xt,Zt,Qt,$t;function en(){if(Xt===void 0){Xt=window,Zt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Qt=o(t,`firstChild`).get,$t=o(t,`nextSibling`).get,d(e)&&(e[ue]=void 0,e[T]=null,e[de]=void 0,e.__e=void 0),d(n)&&(n[fe]=void 0)}}function tn(e=``){return document.createTextNode(e)}function nn(e){return Qt.call(e)}function rn(e){return $t.call(e)}function I(e,t){if(!E)return nn(e);var n=nn(D);if(n===null)n=D.appendChild(tn());else if(t&&n.nodeType!==3){var r=tn();return n?.before(r),Se(r),r}return t&&ln(n),Se(n),n}function L(e,t=!1){if(!E){var n=nn(e);return n instanceof Comment&&n.data===``?rn(n):n}if(t){if(D?.nodeType!==3){var r=tn();return D?.before(r),Se(r),r}ln(D)}return D}function an(e,t=!1){if(!E)return nn(e);var n=I(e,t);return O(e),n}function R(e,t=1,n=!1){let r=E?D:e;for(var i;t--;)i=r,r=rn(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=tn();return r===null?i?.after(a):r.before(a),Se(a),a}ln(r)}return Se(r),r}function on(e){e.textContent=``}function sn(){return!1}function cn(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function ln(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function un(e){var t=V;if(t===null)return B.f|=ae,e;if(!(t.f&32768)&&!(t.f&4))throw e;dn(e,t)}function dn(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128&&!(t.f&33570816)){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}function fn(e){V===null&&(B===null&&Fe(e),Pe()),Bn&&Ne(e)}function pn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function mn(e,t){var n=V;n!==null&&n.f&8192&&(e|=y);var r={ctx:Ge,deps:null,nodes:null,f:e|_|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};N?.register_created_effect(r);var i=r;if(e&4)Ot===null?Mt.ensure().schedule(r):Ot.push(r);else if(t!==null){try{cr(r)}catch(e){throw An(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=C))}if(i!==null&&(i.parent=n,n!==null&&pn(i,n),B!==null&&B.f&2&&!(e&64))){var a=B;(a.effects??=[]).push(i)}return r}function hn(){return B!==null&&!Hn}function gn(e){let t=mn(8,null);return tt(t,g),t.teardown=e,t}function _n(e){fn(`$effect`);var t=V.f;if(!B&&t&32&&Ge!==null&&!Ge.i){var n=Ge;(n.e??=[]).push(e)}else return vn(e)}function vn(e){return mn(4|ee,e)}function yn(e){return fn(`$effect.pre`),mn(8|ee,e)}function bn(e){Mt.ensure();let t=mn(64|w,e);return(e={})=>new Promise(n=>{e.outro?Nn(t,()=>{An(t),n(void 0)}):(An(t),n(void 0))})}function xn(e){return mn(4,e)}function Sn(e){return mn(ie|w,e)}function Cn(e,t=0){return mn(8|t,e)}function z(e,t=[],n=[],r=[]){lt(r,t,n,t=>{mn(8,()=>{e(...t.map(H))})})}function wn(e,t=0){return mn(16|t,e)}function Tn(e,t=0){return mn(h|t,e)}function En(e){return mn(32|w,e)}function Dn(e){var t=e.teardown;if(t!==null){let n=Bn,r=B;Vn(!0),Un(null);try{t.call(null)}catch(t){dn(t,e.parent)}finally{Vn(n),Un(r)}}}function On(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&ct(()=>{e.abort(pe)});var r=n.next;n.f&64?n.parent=null:An(n,t),n=r}}function kn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||An(t),t=n}}function An(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(jn(e.nodes.start,e.nodes.end),n=!0),e.f|=S,On(e,t&&!n),sr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Dn(e),e.f^=S,e.f|=b;var i=e.parent;i!==null&&i.first!==null&&Mn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function jn(e,t){for(;e!==null;){var n=e===t?null:rn(e);e.remove(),e=n}}function Mn(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=[];e.f|=256,Pn(e,r,!0);var i=()=>{n&&An(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Pn(e,t,n){if(!(e.f&8192)){e.f^=y;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);Pn(i,t,o?n:!1)}i=a}}}function Fn(e){e.f&=-257,In(e,!0)}function In(e,t){if(!(e.f&256)&&e.f&8192){e.f^=y,e.f&1024||(tt(e,_),Mt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);In(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Ln(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:rn(n);t.append(n),n=i}}var Rn=null,zn=!1,Bn=!1;function Vn(e){Bn=e}var B=null,Hn=!1;function Un(e){B=e}var V=null;function Wn(e){V=e}var Gn=null;function Kn(e){B!==null&&(Gn??=new Set).add(e)}var qn=null,Jn=0,Yn=null;function Xn(e){Yn=e}var Zn=1,Qn=0,$n=Qn;function er(e){$n=e}function tr(){return++Zn}function nr(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ne),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(nr(a)&&yt(a),a.wv>e.wv)return!0}t&512&&wt===null&&tt(e,g)}return!1}function rr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Gn!==null&&Gn.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?rr(a,t,!1):t===a&&(n?tt(a,_):a.f&1024&&tt(a,v),Lt(a))}}function ir(e){var t=qn,n=Jn,r=Yn,i=B,a=Gn,o=Ge,s=Hn,c=$n,l=e.f;qn=null,Jn=0,Yn=null,B=l&96?null:e,Gn=null,Ke(e.ctx),Hn=!1,$n=++Qn,e.ac!==null&&(ct(()=>{e.ac.abort(pe)}),e.ac=null);try{e.f|=re;var u=e.fn,d=u();e.f|=x;var f=ar(e);if(Ye()&&Yn!==null&&!Hn&&f!==null&&!(e.f&6146))for(var p=0;p<Yn.length;p++)rr(Yn[p],e);if(i!==null&&i!==e){if(Qn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Qn;if(t!==null)for(let e of t)e.rv=Qn;Yn!==null&&(r===null?r=Yn:r.push(...Yn))}return e.f&8388608&&(e.f^=ae),d}catch(t){return ar(e),un(t)}finally{e.f^=re,qn=t,Jn=n,Yn=r,B=i,Gn=a,Ke(o),Hn=s,$n=c}}function ar(e){var t=e.deps,n=N?.is_fork;if(qn!==null){var r;if(n||sr(e,Jn),t!==null&&Jn>0)for(t.length=Jn+qn.length,r=0;r<qn.length;r++)t[Jn+r]=qn[r];else e.deps=t=qn;if(hn()&&e.f&512)for(r=Jn;r<t.length;r++)(t[r].reactions??=[]).push(e)}else!n&&t!==null&&Jn<t.length&&(sr(e,Jn),t.length=Jn);return t}function or(e,t){let i=t.reactions;if(i!==null){var a=n.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=t.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&t.f&2&&(qn===null||!r.call(qn,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ne),s.v!==ge&&nt(s),s.ac!==null&&ct(()=>{s.ac.abort(pe),s.ac=null,tt(s,_)}),bt(s),sr(s,0)}}function sr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)or(e,n[r])}function cr(e){var t=e.f;if(!(t&16384)){tt(e,g);var n=V,r=zn;V=e,zn=!(t&96);try{t&16777232?kn(e):On(e),Dn(e);var i=ir(e);e.teardown=typeof i==`function`?i:null,e.wv=Zn}finally{zn=r,V=n}}}async function lr(){await Promise.resolve(),Nt()}function H(e){var t=!!(e.f&2);if(Rn?.add(e),B!==null&&!Hn&&!(V!==null&&V.f&16384)&&(Gn===null||!Gn.has(e))){var n=B.deps;if(B.f&2097152)e.rv<Qn&&(e.rv=Qn,qn===null&&n!==null&&n[Jn]===e?Jn++:qn===null?qn=[e]:qn.push(e));else{B.deps??=[],r.call(B.deps,e)||B.deps.push(e);var i=e.reactions;i===null?e.reactions=[B]:r.call(i,B)||i.push(B)}}if(Bn&&Vt.has(e))return Vt.get(e);if(t){var a=e;if(Bn){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||dr(a))&&(o=vt(a)),Vt.set(a,o),o}var s=!(a.f&512)&&!Hn&&B!==null&&(zn||!!(B.f&512)),c=(a.f&x)===0;nr(a)&&(s&&(a.f|=512),yt(a)),s&&!c&&(xt(a),ur(a))}if(wt?.has(e))return wt.get(e);if(e.f&8388608)throw e.v;return e.v}function ur(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(xt(t),ur(t))}function dr(e){if(e.v===ge)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Vt.has(t)||t.f&2&&dr(t))return!0;return!1}function U(e){var t=Hn;try{return Hn=!0,e()}finally{Hn=t}}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var fr=[`touchstart`,`touchmove`];function pr(e){return fr.includes(e)}var mr=Symbol(`events`),hr=new Set,gr=new Set;function _r(e,t,n,r={}){function i(e){if(r.capture||Cr.call(t,e),!e.cancelBubble)return ct(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Qe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function vr(e,t,n,r,i){var a={capture:r,passive:i},o=_r(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&gn(()=>{t.removeEventListener(e,o,a)})}function yr(e,t,n){(t[mr]??={})[e]=n}function br(e){for(var t=0;t<e.length;t++)hr.add(e[t]);for(var n of gr)n(e)}var xr=null,Sr=!1;function Cr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;xr=e,Sr||(Sr=!0,setTimeout(()=>{Sr=!1,xr=null}));var s=0,c=xr===e&&e[mr];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[mr]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=i[s]||e.target,o!==t){a(e,`currentTarget`,{configurable:!0,get(){return o||n}});var d=B,f=V;Un(null),Wn(null);try{for(var p,m=[];o!==null&&o!==t;){try{var h=o[mr]?.[r];h!=null&&(!o.disabled||e.target===o)&&h.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble)break;s++,o=s<i.length?i[s]:null}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[mr]=t,delete e.currentTarget,Un(d),Wn(f)}}}var wr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Tr(e){return wr?.createHTML(e)??e}function Er(e){var t=cn(`template`);return t.innerHTML=Tr(e.replaceAll(`<!>`,`<!---->`)),t.content}function Dr(e,t){var n=V;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function W(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(E)return Dr(D,null),D;i===void 0&&(i=Er(a?e:`<!>`+e),n||(i=nn(i)));var t=r||Zt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=nn(t),s=t.lastChild;Dr(o,s)}else Dr(t,t);return t}}function G(){if(E)return Dr(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(``),n=tn();return e.append(t,n),Dr(t,n),e}function K(e,t){if(E){var n=V;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),Ce();return}e!==null&&e.before(t)}function Or(e){let t=0,n=Ut(0),r;return()=>{hn()&&(H(n),Cn(()=>(t===0&&(r=U(()=>e(()=>qt(n)))),t+=1,()=>{Qe(()=>{--t,t===0&&(r?.(),r=void 0,qt(n))})})))}}var kr=C|w;function Ar(e,t,n,r){new jr(e,t,n,r)}var jr=class{parent;is_pending=!1;transform_error;#e;#t=E?D:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Or(()=>(this.#m=Ut(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=V;t.b=this,t.f|=128,n(e)},this.parent=V.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=wn(()=>{if(E){let e=this.#t;Ce();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},kr),E&&(this.#e=D)}#g(){try{this.#a=En(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);Qe(r),t&&(this.#s=En(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){be();return}t=!0,n&&He(),this.#s!==null&&Nn(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){dn(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=En(()=>e(this.#e)),Qe(()=>{var e=this.#c=document.createDocumentFragment(),t=tn(),n=!1;if(e.append(t),this.#a=this.#S(()=>{try{return En(()=>this.#r(t))}catch(e){try{this.error(e),n=!0}catch(e){dn(e,this.#i.parent)}return null}}),this.#a===null){this.#c=null,n&&this.#x(N);return}this.#u===0&&(this.#e.before(e),this.#c=null,Nn(this.#o,()=>{this.#o=null}),this.#x(N))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=En(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Ln(this.#a,e);let t=this.#n.pending;this.#o=En(()=>t(this.#e))}else this.#x(N)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){it(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=V,n=B,r=Ge;Wn(this.#i),Un(this.#i),Ke(this.#i.ctx);try{return Mt.ensure(),e()}finally{Wn(t),Un(n),Ke(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&Nn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Qe(()=>{this.#d=!1,this.#m&&Gt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),H(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;N?.is_fork?(this.#a&&N.skip_effect(this.#a),this.#o&&N.skip_effect(this.#o),this.#s&&N.skip_effect(this.#s),N.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(An(this.#a),null),this.#o&&=(An(this.#o),null),this.#s&&=(An(this.#s),null),E&&(Se(this.#t),we(),Se(Te()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return En(()=>{var r=V;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return dn(e,this.#i.parent),null}}))};Qe(()=>{var t;try{t=this.transform_error(e)}catch(e){dn(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>dn(e,this.#i&&this.#i.parent)):n(t)})}};function Mr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[fe]??=e.nodeValue)&&(e[fe]=n,e.nodeValue=`${n}`)}function Nr(e,t){return Fr(e,t)}var Pr=new Map;function Fr(e,{target:t,anchor:n,props:r={},events:a,context:o,intro:s=!0,transformError:c}){en();var l=void 0,u=bn(()=>{var s=n??t.appendChild(tn());Ar(s,{pending:()=>{}},t=>{A({});var n=Ge;if(o&&(n.c=o),a&&(r.$$events=a),E&&Dr(t,null),l=e(t,r)||Je(),E&&(V.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw ye(),he;j()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=pr(r);for(let e of[t,document]){var a=Pr.get(e);a===void 0&&(a=new Map,Pr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Cr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(i(hr)),gr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Pr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Cr),r.delete(e),r.size===0&&Pr.delete(n)):r.set(e,i)}gr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return Ir.set(l,u),l}var Ir=new WeakMap;function Lr(e,t){let n=Ir.get(e);return n?(Ir.delete(e),n(t)):Promise.resolve()}var Rr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Fn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(Fn(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(An(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Ln(r,t),t.append(tn()),this.#n.set(e,{effect:r,fragment:t})}else An(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Nn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(An(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=sn();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=tn();i.append(a),this.#n.set(e,{effect:En(()=>t(a)),fragment:i})}else this.#t.set(e,En(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else E&&(this.anchor=D),this.#a(n)}};function q(e,t,n=!1){var r;E&&(r=D,Ce());var i=new Rr(e),a=n?C:0;function o(e,t){if(E){var n=Ee(r);if(e!==parseInt(n.substring(1))){var a=Te();Se(a),i.anchor=a,xe(!1),i.ensure(e,t),xe(!0);return}}i.ensure(e,t)}wn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function zr(e,t){return t}function Br(e,t,n){for(var r=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];Nn(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Vr(e,i(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else--s},!1)}if(s===0){var l=r.length===0&&n!==null&&e.pending.size===0;if(l){var u=n,d=u.parentNode;on(d),d.append(u),e.items.clear()}Vr(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Vr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=te,Ln(a,document.createDocumentFragment())):An(t[i],n)}}var Hr;function J(e,n,r,a,o,s=null){var c=e,l=new Map;if(n&4){var u=e;c=E?Se(nn(u)):u.appendChild(tn())}E&&Ce();var d=null,f=gt(()=>{var e=r();return t(e)?e:e==null?[]:i(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Wr(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=te,Kr(d,null,c)):Fn(d):Nn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:wn(()=>{p=H(f);var e=p.length;let t=!1;E&&Ee(c)===`[!`!=(e===0)&&(c=Te(),Se(c),xe(!1),t=!0);for(var i=new Set,u=N,v=sn(),y=0;y<e;y+=1){E&&D.nodeType===8&&D.data===`]`&&(c=D,t=!0,xe(!1));var b=p[y],x=a(b,y),S=h?null:l.get(x);S?(S.v&&Gt(S.v,b),S.i&&Gt(S.i,y),v&&u.unskip_effect(S.e)):(S=Gr(l,h?c:Hr??=tn(),b,x,y,o,n,r),h||(S.e.f|=te),l.set(x,S)),i.add(x)}if(e===0&&s&&!d&&(h?d=En(()=>s(c)):(d=En(()=>s(Hr??=tn())),d.f|=te)),e>i.size&&Me(``,``,``),E&&e>0&&Se(Te()),!h){if(m.set(u,i),v){for(let[e,t]of l)i.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u)}t&&xe(!0),H(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,E&&(c=D)}function Ur(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Wr(e,t,n,r,a){var o=!!(r&8),s=t.length,c=e.items,l=Ur(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=a(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=a(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Fn(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432){if(_.f^=te,_===l)Kr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),qr(e,d,_),qr(e,_,y),Kr(_,y,n),d=_,p=[],m=[],l=Ur(d.next);continue}}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],C=p[p.length-1];for(x=0;x<p.length;x+=1)Kr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);qr(e,S.prev,C.next),qr(e,d,S),qr(e,C,b),l=b,d=C,--v,p=[],m=[]}else u.delete(_),Kr(_,l,n),qr(e,_.prev,_.next),qr(e,_,d===null?e.effect.first:d.next),qr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Ur(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Ur(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Vr(e,i(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var w=[];if(u!==void 0)for(_ of u)_.f&8192||w.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&w.push(l),l=Ur(l.next);var ee=w.length;if(ee>0){var ne=r&4&&s===0?n:null;if(o){for(v=0;v<ee;v+=1)w[v].nodes?.a?.measure();for(v=0;v<ee;v+=1)w[v].nodes?.a?.fix()}Br(e,w,ne)}}o&&Qe(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Gr(e,t,n,r,i,a,o,s){var c=o&1?o&16?Ut(n):Wt(n,!1,!1):null,l=o&2?Ut(i):null;return{v:c,i:l,e:En(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Kr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=rn(r);if(a.before(r),r===i)return;r=o}}function qr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Jr(e,t,...n){var r=new Rr(e);wn(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},C)}function Yr(e,t,n){var r;E&&(r=D,Ce());var i=new Rr(e);wn(()=>{var e=t()??null;if(E&&Ee(r)===`[`!=(e!==null)){var a=Te();Se(a),i.anchor=a,xe(!1),i.ensure(e,e&&(t=>n(t,e))),xe(!0);return}i.ensure(e,e&&(t=>n(t,e)))},C)}function Xr(e,t){var n=void 0,r;Tn(()=>{n!==(n=t())&&(r&&=(An(r),null),n&&(r=En(()=>{xn(()=>n(e))})))})}function Zr(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=Zr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Qr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Zr(e))&&(r&&(r+=` `),r+=t);return r}function $r(e){return typeof e==`object`?Qr(e):e??``}var ei=[...`
6
+ \r\f\xA0\v`];function ti(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||ei.includes(r[o-1]))&&(s===r.length||ei.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function ni(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function ri(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ii(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(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(ri)),i&&c.push(...Object.keys(i).map(ri));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=ri(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=ni(r)),i&&(n+=ni(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Y(e,t,n,r,i,a){var o=e[ue];if(E||o!==n||o===void 0){var s=ti(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[ue]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function ai(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 oi(e,t,n,r){var i=e[de];if(E||i!==t){var a=ii(t,r);(!E||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[de]=t}else r&&(Array.isArray(r)?(ai(e,n?.[0],r[0]),ai(e,n?.[1],r[1],`important`)):ai(e,n,r));return r}var si=Symbol(`is custom element`),ci=Symbol(`is html`),li=me?`link`:`LINK`;function ui(e,t,n,r){var i=di(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===li)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[le]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&pi(e).has(t)?e[t]=n:e.setAttribute(t,n))}function di(e){return e[T]??={[si]:e.nodeName.includes(`-`),[ci]:e.namespaceURI===_e}}var fi=new Map;function pi(e){var t=e.getAttribute(`is`)||e.nodeName,n=fi.get(t);if(n)return n;fi.set(t,n=new Set);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=s(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.add(o);i=u(i)}return n}var mi=new class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}}({box:`border-box`});function hi(e,t,n){var r=mi.observe(e,()=>n(e[t]));xn(()=>(U(()=>n(e[t])),r))}function gi(e,t){return e===t||e?.[oe]===t}function _i(e=Je(),t,n,r){var i=Ge.r,a=V;return xn(()=>{var o,s;return Cn(()=>{o=s,s=r?.()||[],U(()=>{gi(n(...s),e)||(t(e,...s),o&&gi(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&gi(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var vi={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function yi(e,t,n){return new Proxy({props:e,exclude:t},vi)}function X(e,t,n,r){var i=!0,a=!!(n&8),s=!!(n&16),c=r,l=!0,u=void 0,d=()=>s&&i?(u??=pt(r),H(u)):(l&&(l=!1,c=s?U(r):r),c);let f;if(a){var p=oe in e||ce in e;f=o(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;a?[m,h]=ot(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Re(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?pt:gt)(()=>(v=!1,g()));a&&H(y);var b=V;return(function(e,t){if(arguments.length>0){let n=t?H(y):i&&a?Yt(e):e;return F(y,n),v=!0,c!==void 0&&(c=n),e}return Bn&&v||b.f&16384?y.v:H(y)})}function bi(){return B===null&&Le(),(B.ac??=new AbortController).signal}function xi(e){Ge===null&&Ae(`onMount`),_n(()=>{let t=U(e);if(typeof t==`function`)return t})}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);function Si(e,t=void 0){return function(n){return n.key===`Enter`||n.key===` `&&!n.preventDefault()?e.call(t,n):void 0}}function Ci(e,t){return t?null:t=>{typeof e==`string`?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function wi(e){return t=>{let n=n=>{t&&!t.contains(n.target)&&t.dispatchEvent(new CustomEvent(e+`outside`,{detail:{jsEvent:n}}))};return document.addEventListener(e,n,!0),()=>{document.removeEventListener(e,n,!0)}}}function Ti(e){return t=>{let n=new ResizeObserver(n=>{for(let r of n)e(t,r)});return n.observe(t),()=>{n.unobserve(t)}}}function Ei(e,t){return n=>{let r=new IntersectionObserver(t=>{for(let r of t)e(n,r)},t);return r.observe(n),()=>{r.unobserve(n)}}}function Z(...e){return Object.assign(...e)}function Di(e){return Object.keys(e)}function Oi(e){return Object.entries(e)}function ki(e,t){return Object.hasOwn(e,t)}function Ai(e){return Math.floor(e)}function ji(e){return Math.ceil(e)}function Mi(...e){return Math.min(...e)}function Ni(...e){return Math.max(...e)}function Pi(){return Symbol(`ec`)}function Fi(e){return e.length}function Ii(e){return!Fi(e)}function Li(e=new Date){return-e.getTimezoneOffset()}function Ri(e){return Array.isArray(e)}function zi(e){return typeof e==`function`}function Bi(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Vi(e){return e instanceof Date}function Hi(e){return e()}function Ui(e){e.forEach(Hi)}function Wi(){}var Gi=e=>e;function Ki(){return window.getComputedStyle(document.documentElement).direction===`rtl`}function qi(e){return t=>t===void 0?void 0:e(t)}var Ji=new WeakMap,Yi=1;function Xi(e){let t=Ji.get(e);return t||(t=Yi++,Ji.set(e,t)),t}function Zi(e,t,n,r){return r?{snippet:r,arg:t?.()}:{content:(zi(e)?e(t?.()):e)??(zi(n)?n():n)}}var Qi=86400;function $i(e=new Date,t=void 0){return Vi(e)?Ca(e,t):wa(e,t)}function ea(e){if(typeof e==`number`)e={seconds:e};else if(typeof e==`string`){let t=0,n=2;for(let r of e.split(`:`,3))t+=parseInt(r,10)*60**n--;e={seconds:t}}else Vi(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function ta(e){return e.getTime()}function Q(e){let t=new Date(ta(e));return xa(t,Sa(e)),t}function na(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;)aa(e);return e.setUTCDate(e.getUTCDate()+n*t.days),e.setUTCSeconds(e.getUTCSeconds()+n*t.seconds),e}function ra(e,t,n=1){return na(e,t,-n)}function ia(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function aa(e,t=1){return ia(e,-t)}function oa(e){return e.setUTCHours(0,0,0,0),e}function sa(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function ca(e,t=19){return e.toISOString().substring(0,t)}function la(e,...t){return t.every(t=>ta(e)===ta(t))}function ua(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n>=0?n:n+7)),e}function da(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n<=0?n:n-7)),e}function fa(e){return typeof e==`string`&&e.length<=10}function pa(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function $(e){return e.seconds}function ma(e,t,n){return na(e,t),Ta(e,n,ia),e}function ha(e,t,n){return ra(e,t),Ta(e,n,aa),e}function ga(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/Qi+1)/7)}function _a(e,t,n,r){return Zi(n,()=>({date:sa(t),week:e}),()=>`W`+String(e).padStart(2,`0`),r)}function va(e,t={}){let n=e.match(/([+-])(\d{2}):(\d{2})$/);if(n)return Z(t,n),+(n[1]+`1`)*(n[2]*60+ +n[3])}function ya(e,t){return t&&e.setUTCMinutes(e.getUTCMinutes()+t),e}var ba=Symbol(`ec`);function xa(e,t){return e[ba]=t,e}function Sa(e){return e[ba]}function Ca(e,t=void 0){let n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()));return ya(n,t?t-Li(n):0),xa(n,t??Li(n)),n}function wa(e,t=void 0){let n={},r=va(e,n);r!==void 0&&(e=e.substring(0,n.index));let i=e.match(/\d+/g),a=new Date(Date.UTC(+i[0],i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0));return t!==void 0&&r!==void 0&&ya(a,t-r),xa(a,t??r),a}function Ta(e,t,n){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)n(e)}var Ea=Pi();function Da(e,t){e[Ea]=t}function Oa(e){return!!e?.[Ea]}function ka(e){return e[Ea]}function Aa(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 e of r)i.setAttribute(...e);return i}function ja(e){return e.getBoundingClientRect()}function Ma(e,t){for(;t--;)e=e.parentElement;return e}function Na(e){return ja(e).height}function Pa(e,t,n=document,r=[]){r.push(n);for(let i of n.elementsFromPoint(e,t)){if(Oa(i))return i;if(i.shadowRoot&&!r.includes(i.shadowRoot)){let n=Pa(e,t,i.shadowRoot,r);if(n)return n}}return null}function Fa(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Ia(e,t=void 0){return function(n){n.stopPropagation(),e&&e.call(t,n)}}function La(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 Ra(e){return e=Z({},e),e.currentStart=sa(e.currentStart),e.currentEnd=sa(e.currentEnd),e.activeStart=sa(e.activeStart),e.activeEnd=sa(e.activeEnd),e}var za=1;function Ba(e,t=void 0){return e.map(e=>{let n={id:`id`in e?String(e.id):`{generated-${za++}}`,resourceIds:Va(e,`resourceId`).map(String),allDay:e.allDay??(fa(e.start)&&fa(e.end)),start:$i(e.start,t),end:$i(e.end,t),title:e.title??``,editable:e.editable,startEditable:e.startEditable,durationEditable:e.durationEditable,display:e.display??`auto`,extendedProps:e.extendedProps??{},backgroundColor:e.backgroundColor??e.color,textColor:e.textColor,classNames:Va(e,`className`),styles:Va(e,`style`)};if(n.allDay){oa(n.start);let e=Q(n.end);oa(n.end),(!la(n.end,e)||la(n.end,n.start))&&ia(n.end)}return n})}function Va(e,t){let n=e[t+`s`]??e[t]??[];return Ri(n)?n:[n]}function Ha(e){return e.map(e=>({events:e.events,url:e.url&&e.url.trimEnd(`&`)||``,method:e.method&&e.method.toUpperCase()||`GET`,extraParams:e.extraParams||{}}))}function Ua(e,t,n){return n.formatRange(e.start,t&&e.event.display!==`pointer`&&!e.zeroDuration?pa(Q(e.start),e.end):e.start)}function Wa(e,t,n){let r;switch(e.event.display){case`background`:r=[];break;case`pointer`:r=e.event.allDay?[]:[Ga(t,e,n)];break;default:r=[...e.event.allDay?[]:[Ga(t,e,n)],Aa(`h4`,n.eventTitle,e.event.title)]}return{domNodes:r}}function Ga(e,t,n){return Aa(`time`,n.eventTime,e,[[`datetime`,ca(t.start)]])}function Ka(e,t,n){let r=t.classNames;return e&&(zi(e)&&(e=e({event:qa(t),view:Ra(n)})),r=[...Ri(e)?e:[e],...r]),r}function qa(e){return Ya(e,sa)}function Ja(e){return Ya(e,Q)}function Ya(e,t){return e=Z({},e),e.start=t(e.start),e.end=t(e.end),e}function Xa(e,t){e.length=t.length;for(let t of e)t?.reposition()}function Za(e,t,n,r=void 0){return(!r||e.resourceIds.includes(r.id))&&e.start<n&&e.end>t}function Qa(e){return eo(e)||to(e)||no(e)}function $a(e){return e===`background`}function eo(e){return e===`preview`}function to(e){return e===`ghost`}function no(e){return e===`pointer`}function ro(e,t,n){return t=e.start>t?e.start:t,n=e.end<n?e.end:n,{start:t,end:n,event:e,zeroDuration:la(t,n)}}function io(e,t,n=!0){let r=[],i,a,o,s;for(let{gridColumn:n,gridRow:c,resource:l,dayStart:u,dayEnd:d,disabled:f}of t)!f&&Za(e,u,d,l)&&(r.push(u),i=d,a||(a=n,o=c,s=l));if(r.length){let t=ro(e,r[0],i);return Z(t,{gridColumn:a,gridRow:o,resource:s,dates:r}),n&&so(t),[t]}return[]}function ao(e){let t={},n={};for(let r of e){let{gridColumn:e,gridRow:i}=r;for(let t=1;t<r.dates.length;++t){let a=`${i}_${e+t}`;n[a]?n[a].chunks.push(r):n[a]={sorted:!1,chunks:[r]}}let a=`${i}_${e}`;r.long=n[a],r.prev=t[a],t[a]=r}}function oo(e,t,n=1,r=1){e.prev&&(n=e.prev.bottom+r);let i=n+t;if(e.long){let t=e.long;t.sorted||=(t.chunks.sort((e,t)=>e.top-t.top),!0);for(let e of t.chunks)if(n<e.bottom&&i>e.top){let t=e.bottom-n+r;n+=t,i+=t}}return Z(e,{top:n,bottom:i}),n}function so(e){let{event:t,gridColumn:n,gridRow:r}=e;e.id=`${Xi(t)}-${n}-${r}`}function co(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return U(()=>{i=zi(r)?{format:r}:new Intl.DateTimeFormat(n,r)}),{format:e=>i.format(sa(e))}}}function lo(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return U(()=>{if(zi(r))i=r;else{let e=new Intl.DateTimeFormat(n,r);i=(t,n)=>{if(t<=n)return e.formatRange(t,n);{let r=e.formatRangeToParts(n,t),i=``,a=[`startRange`,`endRange`],o=[!1,!1];for(let e of r){let t=a.indexOf(e.source);t>=0?o[t]||(i+=uo(a[1-t],r),o[t]=!0):i+=e.value}return i}}}}),{formatRange:(e,t)=>i(sa(e),sa(t))}}}function uo(e,t){let n=``;for(let r of t)r.source==e&&(n+=r.value);return n}function fo(e){return go(e,`day`)}function po(e){return go(e,`week`)}function mo(e){return go(e,`month`)}function ho(e){return go(e,`year`)}function go(e,t){return{...e,next:`Next `+t,prev:`Previous `+t}}function _o(e){return t=>({...t,view:e})}function vo(e){let t,n;return e&&({start:t,end:n}=e,t&&=oa($i(t)),n&&=oa($i(n))),{start:t,end:n}}function yo(e,t){return t.start&&e<t.start||t.end&&e>t.end}function bo(e){let t=[];return xo(e,0,!1,t),t}function xo(e,t,n,r){let i=[];for(let a of e){let e=So(a);i.push(e),r.push(e);let o={level:t,children:[],hidden:n};Da(e,o),a.children&&(o.children=xo(a.children,t+1,n||!e.expanded,r))}return i}function So(e){return{id:e.id==null?``:String(e.id),title:e.title||``,eventBackgroundColor:Co(e),eventTextColor:wo(e),expanded:e.expanded??!0,extendedProps:e.extendedProps??{}}}function Co(e){return e?.eventBackgroundColor}function wo(e){return e?.eventTextColor}function To(e,t){return Ii(e.resourceIds)?void 0:t.find(t=>e.resourceIds.includes(t.id))}function Eo(e,t,n,r,i){let a=[];e=Q(e);let o=Q(e);for(na(e,r.min),na(o,r.max);e<o;)a.push([ca(e),i.format(e)]),na(e,t,n);let s=Ai((e-o)/1e3/$(t));return s&&s!==n&&(a.at(-1)[2]=n-s),a}function Do(e,t,n,r,i){let a=ea(e),o=ea(t);if(n){let e=ea(Mi($(a),Ni(0,$(o)-Qi))),t=ea(Ni($(o),$(e)+Qi)),s=zi(n?.eventFilter)?n.eventFilter:e=>!$a(e.display);loop:for(let n of r){let r=na(Q(n),a),c=na(Q(n),o),l=na(Q(n),e),u=na(Q(n),t);for(let d of i)if(!d.allDay&&s(d)&&d.start<u&&d.end>l){if(d.start<r){let t=Ni((d.start-n)/1e3,$(e));t<$(a)&&(a.seconds=t)}if(d.end>c){let e=Mi((d.end-n)/1e3,$(t));e>$(o)&&(o.seconds=e)}if($(a)===$(e)&&$(o)===$(t))break loop}}}return{min:a,max:o}}var Oo=class extends Map{#e=new Map;#t=P(0);#n=P(0);#r=$n||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return $n===this.#r?P(e):Ut(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else return H(this.#t),!1}return H(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else{H(this.#t);return}}return H(n),super.get(e)}getOrInsert(e,t){return super.has(e)||this.set(e,t),this.get(e)}getOrInsertComputed(e,t){return super.has(e)||this.set(e,t(e)),this.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),F(this.#n,super.size),qt(o);else if(i!==t){qt(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&qt(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),F(n,-1)),r&&(F(this.#n,super.size),qt(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;F(this.#n,0);for(var t of e.values())F(t,-1);qt(this.#t),e.clear()}}#a(){H(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)H(n)}keys(){return H(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return H(this.#n),super.size}};function ko(e){let t=0,n=P(Yt(t));return jo(e,()=>H(n),()=>!0,()=>F(n,++t,!0))}function Ao(e){let t=0,n=Yt({});return jo(e,e=>n[e],(e,t)=>e!==t,e=>n[e]=++t)}function jo(e,t,n,r){return new Proxy(e,{get(e,n,r){return ki(e,n)&&t(n),Reflect.get(e,n,r)},set(e,t,i,a){let o=n(e[t],i),s=Reflect.set(e,t,i,a);return o&&r(t),s}})}function Mo(e){let t={buttonText:{today:`today`},customButtons:{},customScrollbars:!1,date:new Date,dateIncrement:void 0,datesSet:void 0,dayCellContent: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,eventGap:1,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventOrderStrict:!1,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:[],icons:{},lazyFetching:!0,loading:void 0,locale:void 0,refetchResourcesOnNavigate:!1,resources:[],selectable:!1,theme:{active:`ec-active`,bgEvent:`ec-bg-event`,bgEvents:`ec-bg-events`,body:`ec-body`,button:`ec-button`,buttonGroup:`ec-button-group`,calendar:`ec`,colHead:`ec-col-head`,customScrollbars:`ec-custom-scrollbars`,day:`ec-day`,dayHead:`ec-day-head`,disabled:`ec-disabled`,endClipped:`ec-end-clipped`,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`,startClipped:`ec-start-clipped`,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`],weekNumber:`ec-week-number`},timeZone:`local`,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 No(e){let t={date:e=>oa($i(e)),dateIncrement:qi(ea),duration:ea,events:Ba,eventSources:Ha,hiddenDays:e=>[...new Set(e)],highlightedDates:e=>e.map(e=>oa($i(e))),resources:e=>Ri(e)?bo(e):e,validRange:vo};for(let n of e)n.createParsers?.(t);return t}var Po=[`buttonText`,`customButtons`,`icons`,`theme`];function Fo(e,t){let n=Mo(e),r=No(e);n=Io(n,r),t=Io(t,r);let i=Lo(n,`views`)??{},a=Lo(t,`views`)??{},o=Ao({});Z(o,n),t.view&&(o.view=t.view);let s={},c={},l={},u=new Set([...Di(i),...Di(a)]);for(let e of u){let r=a[e]??{},u=Ro(n,i[e]??i[r.type]??{}),d=Ro(u,t,r),f=Lo(d,`component`);delete d.view;for(let e of Di(d))ki(o,e)?(s[e]??=[],s[e].push(Po.includes(e)?t=>d[e]=zi(t)?t(u[e]):t:t=>d[e]=t)):delete d[e];c[e]=d,l[e]=f}return Z(o,c[o.view]),[o,function(e,t,n=!0){ki(o,e)&&(n||(e in r?t=r[e](t):Bi(t)?t={...t}:Ri(t)&&(t=[...t])),s[e]?.forEach(e=>e(t)),o[e]=t)},function(e){return Z(o,c[e]),l[e]}]}function Io(e,t){let n={...e};for(let e of Di(t))e in n&&(n[e]=t[e](n[e]));if(e.views){n.views={};for(let r of Di(e.views))n.views[r]=Io(e.views[r],t)}return n}function Lo(e,t){let n=e[t];return delete e[t],n}function Ro(...e){let t={};for(let n of e){let e={};for(let r of Po)zi(n[r])&&(e[r]=n[r](t[r]));t={...t,...n,...e}}return t}function zo(e,t){let n=[];for(let r of Di(e))e[r]!==t[r]&&n.push([r,e[r]]);return n}function Bo(e){return()=>{let{options:{view:t}}=e;U(()=>{let n=e.setViewOptions(t);e.extensions={},e.features=[],e.viewComponent=n(e)})}}function Vo(e,t){return()=>{let{activeRange:n,fetchedRange:{events:r},offset:i,viewDates:a,options:{events:o,eventSources:s,lazyFetching:c,timeZone:l}}=e;U(()=>{Uo(s.map(e=>zi(e.events)?e.events:e),o,e=>Ba(e,i),t=>e.events=ko(t),l,n,r,a,!0,c,t)})}}function Ho(e,t){return()=>{let{activeRange:n,fetchedRange:{resources:r},viewDates:i,options:{lazyFetching:a,refetchResourcesOnNavigate:o,resources:s,timeZone:c}}=e;U(()=>{Uo(Ri(s)?[]:[s],s,bo,t=>e.resources=ko(t),c,n,r,i,o,a,t)})}}function Uo(e,t,n,r,i,a,o,s,c,l,u){if(!Ii(s)){if(Ii(e)){r(t);return}if((c||!o.start)&&(!l||!o.start||o.start>a.start||o.end<a.end||o.timeZone!==i)){let t=[],s=e=>u.stop(),l=e=>{t=t.concat(n(e)),r(t),u.stop()},d=ca(a.start),f=ca(a.end);for(let t of e)if(u.start(),zi(t)){let e=t(c?{start:sa(a.start),end:sa(a.end),startStr:d,endStr:f,timeZone:i}:{},l,s);e!==void 0&&Promise.resolve(e).then(l,s)}else{let e=zi(t.extraParams)?t.extraParams():Z({},t.extraParams);c&&(e.start=d,e.end=f,i!==`local`&&(e.timeZone=i)),e=new URLSearchParams(e);let n=t.url,r={},a;[`GET`,`HEAD`].includes(t.method)?n+=(n.includes(`?`)?`&`:`?`)+e:(r[`content-type`]=`application/x-www-form-urlencoded;charset=UTF-8`,a=String(e)),fetch(n,{method:t.method,headers:r,body:a,signal:bi(),credentials:`same-origin`}).then(e=>e.json()).then(l).catch(s)}Z(o,{...a,timeZone:i})}}}function Wo(e){let t=0;function n(t){let{options:{loading:n}}=e;zi(n)&&n(t)}return{start:()=>++t===1&&n(!0),stop:()=>--t===0&&n(!1)}}function Go(e){return()=>{let{offset:t}=e,n=setInterval(()=>{let n=$i(void 0,t),r=oa(Q(n));e.now=n,la(e.today,r)||(e.today=r)},1e3);return()=>clearInterval(n)}}function Ko(e){return()=>{let{offset:t,options:n}=e;U(()=>{for(let n of e.events)if(!n.allDay)for(let e of[`start`,`end`]){let r=Sa(n[e]);r!==void 0&&ya(n[e],t-r),xa(n[e],t)}let r=Sa(n.date);if(r!==void 0){let i=$i(void 0,t).getUTCDay()-$i(void 0,r).getUTCDay(),a=ia(Q(n.date),i);e.setOption(`date`,a)}xa(n.date,t)})}}function qo(e){return()=>{let{activeRange:t,options:{datesSet:n}}=e;U(()=>{zi(n)&&n({start:sa(t.start),end:sa(t.end),startStr:ca(t.start),endStr:ca(t.end),view:Ra(e.view)})})}}function Jo(e){let t;return()=>{let{filteredEvents:n,options:{eventAllUpdated:r}}=e;U(()=>{zi(r)&&(t||=setTimeout(()=>{t=null,r({view:Ra(e.view)})}))})}}function Yo(e){return()=>{let{options:{view:t,viewDidMount:n}}=e;U(()=>{zi(n)&&lr().then(()=>n({view:Ra(e.view)}))})}}function Xo(e){return()=>{let{options:{date:t,duration:n,firstDay:r}}=e,i,a;return U(()=>{i=Q(t),n.years?(i.setUTCMonth(0),i.setUTCDate(1)):n.months?i.setUTCDate(1):n.inWeeks&&da(i,r),a=na(Q(i),n)}),{start:i,end:a}}}function Zo(e){return()=>{let{currentRange:t,extensions:{activeRange:n}}=e,r,i;return U(()=>{r=Q(t.start),i=Q(t.end)}),n?n(r,i):{start:r,end:i}}}function Qo(e){return()=>{let{events:t,options:{eventFilter:n,eventOrder:r,filterEventsWithResources:i,resources:a,view:o}}=e,s=[...t];return U(()=>{if(zi(n)){let r=t.map(qa),i=Ra(e.view);s=s.filter((e,t)=>n({event:qa(e),index:t,events:r,view:i}))}i&&(s=s.filter(e=>a.some(t=>e.resourceIds.includes(t.id)))),zi(r)?s.sort((e,t)=>r(qa(e),qa(t))):s.sort((e,t)=>e.start-t.start||t.allDay-e.allDay)}),s}}function $o(e){return()=>{let{options:{timeZone:t}}=e,n;return U(()=>{n=t===`local`?Li():t===`UTC`?0:va(t)??Li()}),n}}function es(e){return()=>{let{options:t,activeRange:n}=e,{hiddenDays:r}=t,i=[];return U(()=>{let t=oa(Q(n.start)),a=oa(Q(n.end));for(;t<a;)r.includes(t.getUTCDay())||i.push(Q(t)),ia(t);if(!i.length&&r.length&&r.length<7){for(;r.includes(t.getUTCDay());)ia(t);lr().then(()=>{e.setOption(`date`,t)})}}),i}}function ts(e){return()=>{let{currentRange:t,intlTitle:n}=e,r;return U(()=>{r=n.formatRange(t.start,aa(Q(t.end)))}),r}}function ns(e){return()=>{let{activeRange:t,currentRange:n,viewTitle:r,options:{view:i}}=e,a;return U(()=>{a=La(i,r,n,t)}),a}}var rs=class{#e;get auxComponents(){return H(this.#e)}set auxComponents(e){F(this.#e,e,!0)}#t;get offset(){return H(this.#t)}set offset(e){F(this.#t,e)}#n;get currentRange(){return H(this.#n)}set currentRange(e){F(this.#n,e)}#r;get activeRange(){return H(this.#r)}set activeRange(e){F(this.#r,e)}#i;get fetchedRange(){return H(this.#i)}set fetchedRange(e){F(this.#i,e,!0)}#a;get events(){return H(this.#a)}set events(e){F(this.#a,e)}#o;get filteredEvents(){return H(this.#o)}set filteredEvents(e){F(this.#o,e)}#s;get mainEl(){return H(this.#s)}set mainEl(e){F(this.#s,e,!0)}#c;get now(){return H(this.#c)}set now(e){F(this.#c,e,!0)}#l;get resources(){return H(this.#l)}set resources(e){F(this.#l,e)}#u;get scrollDate(){return H(this.#u)}set scrollDate(e){F(this.#u,e,!0)}#d;get today(){return H(this.#d)}set today(e){F(this.#d,e,!0)}#f;get intlEventTime(){return H(this.#f)}set intlEventTime(e){F(this.#f,e)}#p;get intlDayHeader(){return H(this.#p)}set intlDayHeader(e){F(this.#p,e)}#m;get intlDayHeaderAL(){return H(this.#m)}set intlDayHeaderAL(e){F(this.#m,e)}#h;get intlTitle(){return H(this.#h)}set intlTitle(e){F(this.#h,e)}#g;get viewDates(){return H(this.#g)}set viewDates(e){F(this.#g,e)}#_;get viewTitle(){return H(this.#_)}set viewTitle(e){F(this.#_,e)}#v;get view(){return H(this.#v)}set view(e){F(this.#v,e)}#y;get viewComponent(){return H(this.#y)}set viewComponent(e){F(this.#y,e,!0)}#b;get extensions(){return H(this.#b)}set extensions(e){F(this.#b,e,!0)}#x;get features(){return H(this.#x)}set features(e){F(this.#x,e,!0)}#S;get interaction(){return H(this.#S)}set interaction(e){F(this.#S,e,!0)}#C;get iClasses(){return H(this.#C)}set iClasses(e){F(this.#C,e,!0)}#w;get iClass(){return H(this.#w)}set iClass(e){F(this.#w,e,!0)}options;setOption;setViewOptions;constructor(e,t){[this.options,this.setOption,this.setViewOptions]=Fo(e,t),this.#e=P(Yt([])),this.#t=M($o(this)),this.#n=M(Xo(this)),this.#r=M(Zo(this)),this.#i=P(Yt({events:{},resources:{}})),this.#a=P(ko(this.options.events)),this.#o=M(Qo(this)),this.#s=P(),this.#c=P(Yt($i(void 0,this.offset))),this.#l=P(ko(Ri(this.options.resources)?this.options.resources:[])),this.#u=P(),this.#d=P(Yt(oa(Q(this.now)))),this.#f=M(lo(this,`eventTimeFormat`)),this.#p=M(co(this,`dayHeaderFormat`)),this.#m=M(co(this,`dayHeaderAriaLabelFormat`)),this.#h=M(lo(this,`titleFormat`)),this.#g=M(es(this)),this.#_=M(ts(this)),this.#v=M(ns(this)),this.#y=P(),this.#b=P(Yt({})),this.#x=P(Yt([])),this.snippets={},this.#S=P(Yt({})),this.iEvents=new Oo,this.#C=P(Yt(Gi)),this.#w=P();for(let t of e)t.initState?.(this);this.#T()}#T(){let e=Wo(this);yn(Bo(this)),yn(Ko(this)),yn(Go(this)),_n(Vo(this,e)),_n(Ho(this,e)),_n(qo(this)),_n(Jo(this)),_n(Yo(this))}},is=W(`<h2></h2>`),as=W(`<button><i></i></button>`),os=W(`<button> </button>`),ss=W(`<button></button>`);function cs(e,t){A(t,!0);let n=k(`state`),r=M(()=>n.currentRange),i=M(()=>n.today),a=M(()=>n.viewTitle),o=M(()=>n.viewDates),s=M(()=>n.options.buttonText),c=M(()=>n.options.customButtons),l=M(()=>n.options.date),u=M(()=>n.options.dateIncrement),d=M(()=>n.options.duration),f=M(()=>n.options.hiddenDays),p=M(()=>n.options.theme),m=M(()=>n.options.validRange),h=M(()=>n.options.view),g=P(!1),_=P(!1),v=P(!1),y=!1;yn(()=>{H(o),H(m),t.buttons,U(()=>{y||(y=!0,t.buttons.includes(`prev`)&&(F(g,!1),H(m).start&&F(g,b(x),!0)),t.buttons.includes(`next`)&&(F(_,!1),H(m).end&&F(_,b(S),!0)),t.buttons.includes(`today`)&&(F(v,H(i)>=H(r).start&&H(i)<H(r).end,!0),!H(v)&&(H(m).start||H(m).end)&&F(v,b(C),!0)),lr().then(()=>y=!1))})});function b(e){let t=H(l);e();let r=H(o).every(e=>yo(e,H(m)));return n.setOption(`date`,t),r}function x(){n.setOption(`date`,ha(Q(H(l)),H(u)??H(d),H(f)))}function S(){n.setOption(`date`,ma(Q(H(l)),H(u)??H(d),H(f)))}function C(){n.setOption(`date`,Q(H(i)))}var w=G();J(L(w),17,()=>t.buttons,zr,(e,t)=>{var r=G(),i=L(r),o=e=>{var t=is();Xr(t,()=>Ci(H(a))),z(()=>Y(t,1,H(p).title)),K(e,t)},l=e=>{var n=as(),r=an(n);z(()=>{Y(n,1,`${H(p).button??``} ec-${H(t)??``}`),ui(n,`aria-label`,H(s).prev),ui(n,`title`,H(s).prev),n.disabled=H(g),Y(r,1,`${H(p).icon??``} ec-${H(t)??``}`)}),yr(`click`,n,x),K(e,n)},u=e=>{var n=as(),r=an(n);z(()=>{Y(n,1,`${H(p).button??``} ec-${H(t)??``}`),ui(n,`aria-label`,H(s).next),ui(n,`title`,H(s).next),n.disabled=H(_),Y(r,1,`${H(p).icon??``} ec-${H(t)??``}`)}),yr(`click`,n,S),K(e,n)},d=e=>{var n=os(),r=an(n,!0);z(()=>{Y(n,1,`${H(p).button??``} ec-${H(t)??``}`),n.disabled=H(v),Mr(r,H(s)[H(t)])}),yr(`click`,n,C),K(e,n)},f=e=>{var n=ss();Xr(n,()=>Ci(H(c)[H(t)].text)),z(()=>Y(n,1,$r([H(p).button,`ec-${H(t)}`,H(c)[H(t)].active&&H(p).active]))),yr(`click`,n,function(...e){H(c)[H(t)].click?.apply(this,e)}),K(e,n)},m=e=>{var r=os(),i=an(r,!0);z(()=>{Y(r,1,$r([H(p).button,`ec-${H(t)}`,H(h)===H(t)&&H(p).active])),Mr(i,H(s)[H(t)])}),yr(`click`,r,()=>n.setOption(`view`,H(t))),K(e,r)};q(i,e=>{H(t)===`title`?e(o):H(t)===`prev`?e(l,1):H(t)===`next`?e(u,2):H(t)===`today`?e(d,3):H(c)[H(t)]?e(f,4):H(t)!==``&&e(m,5)}),K(e,r)}),K(e,w),j()}br([`click`]);var ls=W(`<div><!></div>`),us=W(`<div></div>`),ds=W(`<nav></nav>`);function fs(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>H(n).options.headerToolbar),i=M(()=>H(n).options.theme),a=M(()=>{let e={};for(let t of[`start`,`center`,`end`])e[t]=H(r)[t]?.split(` `).map(e=>e.split(`,`))??[];return e});var o=ds();J(o,21,()=>Di(H(a)),zr,(e,t)=>{var n=us();J(n,21,()=>H(a)[H(t)],zr,(e,t)=>{var n=G(),r=L(n),a=e=>{var n=ls();cs(I(n),{get buttons(){return H(t)}}),O(n),z(()=>Y(n,1,H(i).buttonGroup)),K(e,n)},o=e=>{cs(e,{get buttons(){return H(t)}})};q(r,e=>{H(t).length>1?e(a):e(o,-1)}),K(e,n)}),O(n),z(()=>Y(n,1,`ec-${H(t)??``}`)),K(e,n)}),O(o),z(()=>Y(o,1,H(i).toolbar)),K(e,o),j()}var ps=new Set([`$$slots`,`$$events`,`$$legacy`,`plugins`,`options`]),ms=W(`<div><!> <!> <!></div>`);function hs(e,t){A(t,!0);let n=X(t,`plugins`,19,()=>[]),r=X(t,`options`,19,()=>({})),i=yi(t,ps),a=new rs(n(),r());a.snippets=i,qe(`state`,a);let o=M(()=>a.auxComponents),s=M(()=>a.features),c=M(()=>a.events),l=M(()=>a.interaction),u=M(()=>a.iClass),d=M(()=>a.offset),f=M(()=>a.view),p=M(()=>a.viewComponent),m=M(()=>a.options.date),h=M(()=>a.options.dateIncrement),g=M(()=>a.options.duration),_=M(()=>a.options.height),v=M(()=>a.options.hiddenDays),y=M(()=>a.options.customScrollbars),b=M(()=>a.options.theme),x={...r()};yn(()=>{for(let[e,t]of zo(r(),x))U(()=>{S(e,t)});Z(x,r())});function S(e,t){return a.setOption(e,t,!1),this}function C(e){let t=a.options[e];return Vi(t)?sa(t):t}function w(){return a.fetchedRange.resources={},this}function ee(){return a.fetchedRange.events={},this}function te(){return H(c).map(qa)}function ne(e){e=String(e);for(let t of H(c))if(t.id===e)return qa(t);return null}function re(e){return e=Ba([e],H(d))[0],H(c).push(e),qa(e)}function ie(e){let t=String(e.id),n=H(c).findIndex(e=>e.id===t);return n>=0?(e=Ba([e],H(d))[0],H(c)[n]=e,qa(e)):null}function ae(e){e=String(e);let t=H(c).findIndex(t=>t.id===e);return t>=0&&H(c).splice(t,1),this}function oe(){return Ra(H(f))}function se(){return H(l).action?.unselect(),this}function ce(e,t){let n=Pa(e,t);if(n){let r=ka(n)(e,t);return r.date=sa(r.date),r}return null}function le(e){return e=oa($i(e)),a.setOption(`date`,Q(e)),a.scrollDate=e,this}function T(){return a.setOption(`date`,ma(Q(H(m)),H(h)??H(g),H(v))),this}function ue(){return a.setOption(`date`,ha(Q(H(m)),H(h)??H(g),H(v))),this}var de={setOption:S,getOption:C,refetchResources:w,refetchEvents:ee,getEvents:te,getEventById:ne,addEvent:re,updateEvent:ie,removeEventById:ae,getView:oe,unselect:se,dateFromPoint:ce,gotoDate:le,next:T,prev:ue},fe=ms();let pe;var me=I(fe);fs(me,{});var he=R(me,2);return Yr(he,()=>H(p),(e,t)=>{t(e,{})}),J(R(he,2),17,()=>H(o),zr,(e,t)=>{var n=G();Yr(L(n),()=>H(t),(e,t)=>{t(e,{})}),K(e,n)}),O(fe),z(e=>{Y(fe,1,$r([H(b).calendar,H(b).view,H(u)&&H(b)[H(u)],H(y)&&H(b).customScrollbars])),ui(fe,`role`,e),pe=oi(fe,``,pe,{height:H(_)})},[()=>H(s).includes(`list`)?`list`:`table`]),K(e,fe),j(de)}function gs(e){`weekNumbers`in e||Z(e,{weekNumbers:!1,weekNumberContent:void 0})}function _s(e){return()=>{let{viewDates:t,options:{duration:n,hiddenDays:r}}=e,i;return U(()=>i=n.months||n.inWeeks?7-r.length:t.length),i}}function vs(e,t){return()=>{let{options:{highlightedDates:n,validRange:r},viewDates:i}=e,{colsCount:a}=t,o=[];return U(()=>{let e=[],t=1,s=1;for(let c of i)e.push({gridColumn:t,gridRow:s,resource:void 0,dayStart:c,dayEnd:ia(Q(c)),disabled:yo(c,r),highlight:n.some(e=>la(e,c))}),t===a&&(o.push(e),e=[],t=0,++s),++t}),o}}function ys(e,t){return()=>{let{filteredEvents:n}=e,{grid:r}=t,i=[],a=[];return U(()=>{for(let e of n)for(let t of r)$a(e.display)?e.allDay&&(a=a.concat(io(e,t))):i=i.concat(io(e,t));ao(i)}),{chunks:i,bgChunks:a}}}function bs(e,t){return()=>{let{iEvents:n}=e,{grid:r}=t,i=[];for(let[,e]of n)e&&U(()=>{for(let t of r)i=i.concat(io(e,t,!1))});return i}}var xs=class{#e;get colsCount(){return H(this.#e)}set colsCount(e){F(this.#e,e)}#t;get grid(){return H(this.#t)}set grid(e){F(this.#t,e)}#n;get gridEl(){return H(this.#n)}set gridEl(e){F(this.#n,e,!0)}#r;get chunks(){return H(this.#r)}set chunks(e){F(this.#r,e)}#i;get bgChunks(){return H(this.#i)}set bgChunks(e){F(this.#i,e)}#a;get iChunks(){return H(this.#a)}set iChunks(e){F(this.#a,e)}#o;get intlDayCell(){return H(this.#o)}set intlDayCell(e){F(this.#o,e)}#s;get intlDayPopover(){return H(this.#s)}set intlDayPopover(e){F(this.#s,e)}#c;get popupDay(){return H(this.#c)}set popupDay(e){F(this.#c,e,!0)}constructor(e){this.#e=M(_s(e)),this.#t=M(vs(e,this)),this.#n=P();let t=M(ys(e,this)),n=M(()=>H(t).chunks),r=M(()=>H(t).bgChunks);this.#r=M(()=>H(n)),this.#i=M(()=>H(r)),this.#a=M(bs(e,this)),this.hiddenChunks=new Oo,this.#o=M(co(e,`dayCellFormat`)),this.#s=M(co(e,`dayPopoverFormat`)),this.#c=P(null)}},Ss=W(`<div><!></div>`);function Cs(e,t){A(t,!0);let n=X(t,`el`,15),r=X(t,`allDay`,3,!1),i=X(t,`resource`,3,void 0),a=X(t,`dateFromPoint`,3,()=>t.date),o=X(t,`classes`,3,Gi),s=X(t,`disabled`,3,!1),c=X(t,`highlight`,3,!1),l=X(t,`role`,3,`cell`),u=X(t,`noIeb`,3,!1),d=X(t,`noBeb`,3,!1),p=X(t,`defaultContent`,3,void 0),m=M(()=>k(`state`)),h=M(()=>H(m).today),g=M(()=>H(m).snippets),_=M(()=>H(m).interaction.action),v=M(()=>H(m).options.dayCellContent),y=M(()=>H(m).options.theme),b=M(()=>k(`view-state`)),x=M(()=>H(b).snap),S=M(()=>la(t.date,H(h))),C=M(()=>Zi(H(v),()=>({allDay:r(),date:sa(t.date),isToday:H(S),resource:i()}),p(),H(g).dayCellContent)),w=M(()=>o()([H(y).day,H(y).weekdays?.[t.date.getUTCDay()],H(S)&&H(y).today,c()&&H(y).highlight,s()&&H(y).disabled,u()&&H(y).noIeb,d()&&H(y).noBeb]));xi(()=>{Da(n(),(e,t)=>({allDay:r(),date:a()(e,t),resource:i(),dayEl:n(),disabled:s()}))});let ee=M(()=>!s()&&H(_)?e=>H(_).select(e,H(x)):void 0);var te=Ss(),ne=I(te),re=e=>{var n=G();Jr(L(n),()=>t.content,()=>H(C)),K(e,n)},ie=e=>{var t=G();Jr(L(t),()=>H(C).snippet??f,()=>H(C).arg),K(e,t)};q(ne,e=>{t.content?e(re):e(ie,-1)}),O(te),_i(te,e=>n(e),()=>n()),Xr(te,()=>t.content?null:Ci(H(C).content,H(C).snippet)),z(()=>{Y(te,1,$r(H(w))),ui(te,`role`,l())}),yr(`pointerdown`,te,function(...e){H(ee)?.apply(this,e)}),K(e,te),j()}br([`pointerdown`]);var ws=W(`<div><!></div>`),Ts=W(`<article><!></article>`);function Es(e,t){A(t,!0);let n=X(t,`el`,15),r=X(t,`classes`,3,Gi),i=X(t,`styles`,3,Gi),a=M(()=>k(`state`)),o=M(()=>H(a).intlEventTime),s=M(()=>H(a).resources),c=M(()=>H(a).snippets),l=M(()=>H(a).view),u=M(()=>H(a).options.displayEventEnd),d=M(()=>H(a).options.eventBackgroundColor),p=M(()=>H(a).options.eventColor),m=M(()=>H(a).options.eventContent),h=M(()=>H(a).options.eventClick),g=M(()=>H(a).options.eventDidMount),_=M(()=>H(a).options.eventClassNames),v=M(()=>H(a).options.eventMouseEnter),y=M(()=>H(a).options.eventMouseLeave),b=M(()=>H(a).options.eventTextColor),x=M(()=>H(a).options.theme),S=M(()=>t.chunk.event),C=M(()=>t.chunk.event.display),w=M(()=>H(S).backgroundColor??Co(t.chunk.resource??To(H(S),H(s)))??H(d)??H(p)),ee=M(()=>H(S).textColor??wo(t.chunk.resource??To(H(S),H(s)))??H(b)),te=M(()=>Oi(i()({"background-color":H(w),color:H(ee)})).map(e=>`${e[0]}:${e[1]}`).concat(H(S).styles).join(`;`)),ne=M(()=>{let e=[$a(H(C))?H(x).bgEvent:H(x).event];if(H(S).allDay){la(oa(Q(t.chunk.start)),H(S).start)||e.push(H(x).startClipped);let n=Q(t.chunk.end),r=Q(H(S).end);n.setUTCSeconds(n.getUTCSeconds()-1),r.setUTCSeconds(r.getUTCSeconds()-1),la(oa(n),oa(r))||e.push(H(x).endClipped)}else la(t.chunk.start,H(S).start)||e.push(H(x).startClipped),la(t.chunk.end,H(S).end)||e.push(H(x).endClipped);return r()(e.concat(Ka(H(_),H(S),H(l))))}),re=M(()=>Ua(t.chunk,H(u),H(o))),ie=M(()=>Zi(H(m),()=>({event:qa(H(S)),timeText:H(re),view:Ra(H(l))}),()=>Wa(t.chunk,H(re),H(x)),H(c).eventContent));xi(()=>{zi(H(g))&&H(g)({event:qa(H(S)),timeText:H(re),el:n(),view:Ra(H(l))})});function ae(e,t){return zi(e)&&!Qa(t)?t=>e({event:qa(H(S)),el:n(),jsEvent:t,view:Ra(H(l))}):void 0}let oe=M(()=>!$a(H(C))&&ae(H(h),H(C))||void 0),se=M(()=>H(oe)&&Si(H(oe))),ce=M(()=>ae(H(v),H(C))),le=M(()=>ae(H(y),H(C)));var T=Ts();{let e=e=>{var t=ws();Jr(I(t),()=>H(ie).snippet??f,()=>H(ie).arg),O(t),Xr(t,()=>Ci(H(ie).content,H(ie).snippet)),z(()=>Y(t,1,$r(H(x).eventBody))),K(e,t)};var ue=I(T),de=n=>{var r=G();Jr(L(r),()=>t.body,()=>e,()=>H(w),()=>H(ee)),K(n,r)},fe=t=>{e(t)};q(ue,e=>{t.body?e(de):e(fe,-1)}),O(T),_i(T,e=>n(e),()=>n())}z(()=>{Y(T,1,$r(H(ne))),oi(T,H(te)),ui(T,`role`,H(oe)?`button`:void 0),ui(T,`tabindex`,H(oe)?0:void 0)}),yr(`click`,T,function(...e){H(oe)?.apply(this,e)}),yr(`keydown`,T,function(...e){H(se)?.apply(this,e)}),vr(`mouseenter`,T,function(...e){H(ce)?.apply(this,e)}),vr(`mouseleave`,T,function(...e){H(le)?.apply(this,e)}),yr(`pointerdown`,T,function(...e){t.onpointerdown?.apply(this,e)}),K(e,T),j()}br([`click`,`keydown`,`pointerdown`]);var Ds=W(`<div><!></div>`);function Os(e,t){A(t,!0);let n=X(t,`weekday`,3,!0),r=X(t,`colSpan`,3,1),i=X(t,`ariaHidden`,3,!1),a=X(t,`disabled`,3,!1),o=X(t,`highlight`,3,!1),s=X(t,`cssSpan`,3,!1),c=M(()=>k(`state`)),l=M(()=>H(c).today),u=M(()=>H(c).options.theme);var d=Ds();let f;Jr(I(d),()=>t.children),O(d),z(e=>{Y(d,1,e),ui(d,`role`,i()?null:`columnheader`),ui(d,`aria-colspan`,i()||r()<=1?null:r()),ui(d,`aria-colindex`,i()?null:t.colIndex),ui(d,`aria-hidden`,i()?`true`:null),f=oi(d,``,f,{"--ec-col-group-span":s()?r():void 0})},[()=>$r([t.className??H(u).colHead,n()&&H(u).weekdays?.[t.date.getUTCDay()],n()&&la(t.date,H(l))&&H(u).today,o()&&H(u).highlight,a()&&H(u).disabled])]),K(e,d),j()}var ks=W(`<time></time>`);function As(e,t){A(t,!0);let n=X(t,`alPrefix`,3,``),r=M(()=>k(`state`)),i=M(()=>H(r).intlDayHeader),a=M(()=>H(r).intlDayHeaderAL);var o=ks();Xr(o,()=>Ci(H(i).format(t.date))),z((e,t)=>{ui(o,`datetime`,e),ui(o,`aria-label`,`${n()??``}${t??``}`)},[()=>ca(t.date,10),()=>H(a).format(t.date)]),K(e,o),j()}function js(e,t){A(t,!0);let n=X(t,`el`,15),r=M(()=>k(`state`)),i=M(()=>H(r).iClasses),a=M(()=>H(r).interaction.action),o=M(()=>H(r).interaction.resizer),s=M(()=>k(`view-state`)),c=M(()=>H(s).snap),l=M(()=>t.chunk.event),u=M(()=>t.chunk.event.display),d=M(()=>e=>H(i)(e,H(l)));function p(e){return H(a)?.draggable(e)?n=>H(a).drag(e,n,t.forceDate,t.forceMargin,H(c)):H(a)?.noAction}let m=M(()=>!$a(H(u))&&!Qa(H(u))?p(H(l)):void 0);Es(e,{get chunk(){return t.chunk},get classes(){return H(d)},get styles(){return t.styles},get onpointerdown(){return H(m)},get el(){return n()},set el(e){n(e)},body:(e,n=f)=>{var r=G(),i=L(r),a=e=>{var r=G();Yr(L(r),()=>H(o),(e,r)=>{r(e,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(e,t)=>{var r=G();Jr(L(r),n),K(e,r)},$$slots:{default:!0}})}),K(e,r)},s=e=>{var t=G();Jr(L(t),n),K(e,t)};q(i,e=>{H(o)?e(a):e(s,-1)}),K(e,r)},$$slots:{body:!0}}),j()}var Ms=W(`<span><!></span>`),Ns=W(`<a role="button" tabindex="0" aria-haspopup="dialog"><!></a>`),Ps=W(`<div><time><!></time> <!></div> <div><!></div>`,1);function Fs(e,t){A(t,!0);let n=k(`state`),r=k(`view-state`),i=M(()=>n.snippets),a=M(()=>n.options.date),o=M(()=>n.options.firstDay),s=M(()=>n.options.moreLinkContent),c=M(()=>n.options.theme),l=M(()=>n.options.weekNumbers),u=M(()=>n.options.weekNumberContent),d=M(()=>r.hiddenChunks),p=M(()=>r.intlDayCell),m=M(()=>t.day.dayStart),h=M(()=>t.day.disabled),g=M(()=>t.day.highlight),_=M(()=>H(m).getUTCMonth()!==H(a).getUTCMonth()),v=M(()=>e=>[...e,H(_)&&H(c).otherMonth]),y=M(()=>H(l)&&H(m).getUTCDay()===+!!H(o)),b=M(()=>H(y)?_a(ga(H(m),H(o)),H(m),H(u),H(i).weekNumberContent):{}),x=M(()=>H(d).get(ta(H(m)))),S=M(()=>{if(!H(x))return{};let e=H(x).length,t=`+`+e+` more`;return Zi(H(s),()=>({num:e,text:t}),t,H(i).moreLinkContent)});function C(){r.popupDay=t.day}Cs(e,{get date(){return H(m)},allDay:!0,get classes(){return H(v)},get disabled(){return H(h)},get highlight(){return H(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},defaultContent:()=>H(p).format(H(m)),content:(e,t=f)=>{var n=Ps(),r=L(n),i=I(r);Jr(I(i),()=>t().snippet??f,()=>t().arg),O(i),Xr(i,()=>Ci(t().content,t().snippet));var a=R(i,2),o=e=>{var t=Ms();Jr(I(t),()=>H(b).snippet??f,()=>H(b).arg),O(t),Xr(t,()=>Ci(H(b).content,H(b).snippet)),z(()=>Y(t,1,H(c).weekNumber)),K(e,t)};q(a,e=>{H(y)&&e(o)}),O(r);var s=R(r,2),l=I(s),u=e=>{var t=Ns(),n=M(()=>Ia(C)),r=M(()=>Si(C)),i=M(Ia);Jr(I(t),()=>H(S).snippet??f,()=>H(S).arg),O(t),Xr(t,()=>Ci(H(S).content,H(S).snippet)),yr(`click`,t,function(...e){H(n)?.apply(this,e)}),yr(`keydown`,t,function(...e){H(r)?.apply(this,e)}),yr(`pointerdown`,t,function(...e){H(i)?.apply(this,e)}),K(e,t)};q(l,e=>{H(x)&&e(u)}),O(s),z(e=>{Y(r,1,H(c).dayHead),ui(i,`datetime`,e),Y(s,1,H(c).dayFoot)},[()=>ca(H(m),10)]),K(e,n)},$$slots:{content:!0}}),j()}br([`click`,`keydown`,`pointerdown`]);function Is(e,t){A(t,!0);let n=X(t,`inPopup`,3,!1),r=M(()=>k(`state`)),i=M(()=>H(r).options.dayMaxEvents),a=M(()=>H(r).options.eventGap),o=M(()=>k(`view-state`)),s=M(()=>H(o).colsCount),c=M(()=>H(o).gridEl),l=M(()=>H(o).hiddenChunks),u=M(()=>H(o).popupDay),d=P(void 0),f=P(1),p=P(!1),m=M(()=>t.chunk.event),h=M(()=>t.chunk.event.display);function g(){return H(c).children.item((t.chunk.gridRow-1)*H(s)+t.chunk.gridColumn-1)}_n(()=>{n()||F(f,Na(g().firstElementChild)||1,!0)});let _=M(()=>e=>{if(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,!$a(H(h))){let r=n()?1:H(f);if(H(m)._margin){let[e,n]=H(m)._margin;e>r&&t.chunk.gridRow===n&&(r=e)}e[`margin-block-start`]=`${r}px`}return H(p)&&(e.visibility=`hidden`),e});function v(){F(f,oo(t.chunk,Na(H(d)),Na(g().firstElementChild)||1,H(a)),!0)}function y(){if(H(i)===!0){let e=g(),n=Na(e)-b(e);if(F(p,t.chunk.bottom>n),H(p))for(let e of t.chunk.dates){let n=ta(e);if(H(l).has(n)){let e=H(l).get(n);e.includes(t.chunk)||H(l).set(n,[...e,t.chunk])}else H(l).set(n,[t.chunk])}}else F(p,!1),H(l).size&&H(l).clear()}function b(e){let n=0;for(let r=0;r<t.chunk.dates.length&&(n=Ni(n,Na(e.lastElementChild)),e=e.nextElementSibling,e);++r);return n}var x={reposition:v,hide:y};{let r=M(()=>n()&&H(u).dayStart),i=M(()=>[H(f),t.chunk.gridRow]);js(e,{get chunk(){return t.chunk},get styles(){return H(_)},axis:`x`,get forceDate(){return H(r)},get forceMargin(){return H(i)},get el(){return H(d)},set el(e){F(d,e,!0)}})}return j(x)}var Ls=W(`<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>`);function Rs(e,t){A(t,!0);let n=k(`view-state`),r=M(()=>k(`state`)),i=M(()=>H(r).interaction),a=M(()=>H(r).options.buttonText),o=M(()=>H(r).options.theme),s=M(()=>n.colsCount),c=M(()=>n.chunks),l=M(()=>n.gridEl),u=M(()=>n.intlDayPopover),d=M(()=>n.popupDay),f=P(void 0),p=P(``),m=M(()=>H(d).gridColumn),h=M(()=>H(d).gridRow),g=M(()=>H(d).dayStart),_=M(()=>H(d).dayEnd),v=M(()=>{let e=[];for(let t of H(c))t.gridRow===H(h)&&t.gridColumn<=H(m)&&t.gridColumn+t.dates.length>H(m)&&e.push(Z({},t,ro(t.event,H(g),H(_))));return e.sort((e,t)=>e.top-t.top),e});xi(()=>{H(f).show()}),_n(()=>{H(v).length?U(y):b()});function y(){let e=H(l).children.item((H(h)-1)*H(s)+H(m)-1),t=ja(H(f)),n=ja(e),r=ja(H(l));F(p,``);let i;if(t.width>=r.width){i=r.left-n.left;let e=n.right-r.right;F(p,H(p)+`inset-inline-end:${e}px;`)}else i=(n.width-t.width)/2,n.left+i<r.left?i=r.left-n.left:n.left+i+t.width>r.right&&(i=r.right-n.left-t.width);F(p,H(p)+`inset-inline-start:${i}px;`);let a;t.height>=r.height?(a=r.top-n.top,F(p,H(p)+`block-size:${r.height}px;`)):(a=(n.height-t.height)/2,n.top+a<r.top?a=r.top-n.top:n.top+a+t.height>r.bottom&&(a=r.bottom-n.top-t.height)),F(p,H(p)+`inset-block-start:${a}px;`)}function b(){n.popupDay=null}function x(){b(),H(i).action?.noClick()}var S=Ls();let C;var w=I(S),ee=I(w);Xr(ee,()=>Ci(H(u).format(H(g))));var te=R(ee,2);st(te,!0);var ne=M(()=>Ia(b)),re=M(()=>Si(b));O(w);var ie=R(w,2);J(ie,21,()=>H(v),zr,(e,t)=>{Is(e,{get chunk(){return H(t)},inPopup:!0})}),O(ie),O(S),_i(S,e=>F(f,e),()=>H(f)),Xr(S,()=>wi(`pointerdown`)),z(e=>{Y(S,1,H(o).popup),C=oi(S,H(p),C,{"grid-area":`${H(h)+1} / ${H(m)}`}),Y(w,1,H(o).dayHead),ui(ee,`datetime`,e),ui(te,`aria-label`,H(a).close),Y(ie,1,H(o).events)},[()=>ca(H(g),10)]),vr(`pointerdownoutside`,S,x),vr(`close`,S,b),yr(`click`,te,function(...e){H(ne)?.apply(this,e)}),yr(`keydown`,te,function(...e){H(re)?.apply(this,e)}),K(e,S),j()}br([`click`,`keydown`]);var zs=W(`<div role="columnheader"><span></span></div>`),Bs=W(`<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>`);function Vs(e,t){A(t,!0);let n=k(`state`),r=new xs(n);qe(`view-state`,r);let i=M(()=>n.intlDayHeader),a=M(()=>n.intlDayHeaderAL),o=M(()=>n.options.dayMaxEvents),s=M(()=>n.options.eventGap),c=M(()=>n.options.theme),l=M(()=>r.grid),u=M(()=>r.chunks),d=M(()=>r.bgChunks),f=M(()=>r.iChunks),p=M(()=>r.hiddenChunks),m=M(()=>r.popupDay),h=[];function g(){Xa(h,H(u)),H(p).clear(),lr().then(_)}function _(){H(p).size,h.forEach(e=>e?.hide())}_n(()=>{H(s),g()}),_n(_);var v=G(),y=L(v),b=e=>{var t=Bs();let s;var p=I(t),_=I(p);J(_,21,()=>H(l)[0],zr,(e,t,n)=>{let r=()=>H(t).dayStart;var o=zs();ui(o,`aria-colindex`,1+n);var s=I(o);Xr(s,()=>Ci(H(i).format(r()))),O(o),z((e,t)=>{Y(o,1,e),ui(s,`aria-label`,t)},[()=>$r([H(c).colHead,H(c).weekdays?.[r().getUTCDay()]]),()=>H(a).format(r())]),K(e,o)}),O(_),O(p);var v=R(p,2),y=I(v);J(y,21,()=>H(l),zr,(e,t,n)=>{var r=G();J(L(r),17,()=>H(t),zr,(e,r,i)=>{{let a=M(()=>i+1===Fi(H(t))),o=M(()=>n+1===Fi(H(l)));Fs(e,{get day(){return H(r)},get noIeb(){return H(a)},get noBeb(){return H(o)}})}}),K(e,r)}),O(y),_i(y,e=>r.gridEl=e,()=>r?.gridEl);var b=R(y,2),x=I(b);J(x,19,()=>H(u),e=>e.id,(e,t,n)=>{_i(Is(e,{get chunk(){return H(t)}}),(e,t)=>h[t]=e,e=>h?.[e],()=>[H(n)])});var S=R(x,2);J(S,17,()=>H(d),e=>e.id,(e,t)=>{Is(e,{get chunk(){return H(t)}})}),J(R(S,2),17,()=>H(f),zr,(e,t)=>{Is(e,{get chunk(){return H(t)}})}),O(b),O(v);var C=R(v,2),w=e=>{Rs(e,{})};q(C,e=>{H(m)&&e(w)}),O(t),_i(t,e=>n.mainEl=e,()=>n?.mainEl),Xr(t,()=>Ti(g)),z((e,n)=>{Y(t,1,$r([H(c).main,H(o)===!0&&H(c).uniform])),s=oi(t,``,s,{"--ec-grid-cols":e,"--ec-grid-rows":n}),Y(p,1,H(c).header),Y(_,1,H(c).grid),Y(v,1,H(c).body),Y(y,1,H(c).grid),Y(b,1,H(c).events)},[()=>Fi(H(l)[0]),()=>Fi(H(l))]),K(e,t)},x=M(()=>!Ii(H(l))&&!Ii(H(l)[0]));q(y,e=>{H(x)&&e(b)}),K(e,v),j()}var Hs={createOptions(e){gs(e),Z(e,{dayMaxEvents:!1,dayCellFormat:{day:`numeric`},dayPopoverFormat:{month:`long`,day:`numeric`,year:`numeric`},moreLinkContent:void 0,view:`dayGridMonth`}),Z(e.buttonText,{dayGridDay:`day`,dayGridMonth:`month`,dayGridWeek:`week`,close:`Close`}),Z(e.theme,{uniform:`ec-uniform`,dayFoot:`ec-day-foot`,otherMonth:`ec-other-month`,popup:`ec-popup`}),Z(e.views,{dayGridDay:{buttonText:fo,component:()=>Vs,dayHeaderFormat:{weekday:`long`},displayEventEnd:!1,duration:{days:1},theme:_o(`ec-day-grid ec-day-view`)},dayGridWeek:{buttonText:po,component:()=>Vs,displayEventEnd:!1,theme:_o(`ec-day-grid ec-week-view`)},dayGridMonth:{buttonText:mo,component:Us,dayHeaderFormat:{weekday:`short`},dayHeaderAriaLabelFormat:{weekday:`long`},displayEventEnd:!1,duration:{months:1},theme:_o(`ec-day-grid ec-month-view`),titleFormat:{year:`numeric`,month:`long`}}})}};function Us(e){return e.features=[`dayNumber`],e.extensions.activeRange=(t,n)=>{let{options:{firstDay:r}}=e;return{start:da(t,r),end:ua(n,r)}},Vs}function Ws(e,t,n){return e.startEditable??t??e.editable??n}function Gs(e,t,n){return e.durationEditable??t??e.editable??n}var Ks=!1;function qs(e){Ks||(Ks=!0,window.requestAnimationFrame(()=>{e(),Ks=!1}))}function Js(e,t,n){return Ni(t,Mi(n,e))}function Ys(e){return()=>{let{options:{editable:t,eventStartEditable:n,theme:r}}=e;e.iClasses=(e,i)=>{let{display:a}=i;return[...e,Qa(a)?[r[a]]:!$a(a)&&Ws(i,n,t)?[r.draggable]:[]]}}}function Xs(e){return()=>{let{interaction:t,mainEl:n}=e;if(n)return Fa(n,`scroll`,()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}var Zs=class{constructor(e){this.#e(e)}#e(e){yn(Ys(e)),_n(Xs(e))}};function Qs(e,t){A(t,!0);let n=k(`state`),r=M(()=>n.events),i=M(()=>n.iEvents),a=M(()=>n.features),o=M(()=>n.view),s=M(()=>n.mainEl),c=M(()=>n.options.dateClick),l=M(()=>n.options.dragConstraint),u=M(()=>n.options.dragScroll),d=M(()=>n.options.editable),f=M(()=>n.options.eventStartEditable),p=M(()=>n.options.eventDragMinDistance),m=M(()=>n.options.eventDragStart),h=M(()=>n.options.eventDragStop),g=M(()=>n.options.eventDrop),_=M(()=>n.options.eventLongPressDelay),v=M(()=>n.options.eventResizeStart),y=M(()=>n.options.eventResizeStop),b=M(()=>n.options.eventResize),x=M(()=>n.options.longPressDelay),S=M(()=>n.options.resizeConstraint),C=M(()=>n.options.selectable),w=M(()=>n.options.select),ee=M(()=>n.options.selectBackgroundColor),te=M(()=>n.options.selectConstraint),ne=M(()=>n.options.selectLongPressDelay),re=M(()=>n.options.selectMinDistance),ie=M(()=>n.options.unselect),ae=M(()=>n.options.unselectAuto),oe=M(()=>n.options.unselectCancel),se=M(()=>n.options.validRange),ce,le,T,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,E,xe,D,Se,Ce,O,we,Te,Ee,De,Oe,ke,Ae;function je(e){return Ws(e,H(f),H(d))}function Me(e,t,n,r,i){ce||(ce=at(t)?1:6,it()&&(T=e,Ie(t,i),n&&(fe=n),r&&(Oe=r),Se=`dragging`,Le(t)))}function Ne(e,t,n,r,i,a,o){if(!ce&&(ce=at(t)?n?3:2:6,it())){let{zeroDuration:n}=e;T=e.event,Ie(t,o),a&&(Oe=a),Se=r===`x`?`resizingX`:`resizingY`,tt()?(Ce=Q(T.end),D?(pa(Ce,T.start),Ce>=T.end&&aa(Ce)):(ra(Ce,ke),Ce<T.start&&(Ce=T.start)),fe=D?oa(Q(T.start)):T.start):(Ce=Q(T.start),D?(pa(Ce,T.end),Ce<=T.start&&!n&&ia(Ce)):(na(Ce,ke),Ce>T.end&&(Ce=T.end)),D?(fe=oa(Q(T.end)),!n&&la(fe,T.end)&&aa(fe)):(fe=T.end,n||(fe=ra(Q(fe),ke))),n&&!D&&(Ae=ke)),i&&(fe=i),Le(t)}}function Pe(e,t){ce||(ce=at(e)?H(C)&&!H(a).includes(`list`)?4:5:6,it()&&(Ie(e,t),Se=`selecting`,O=D?ea({day:1}):ke,T={allDay:D,start:fe,end:na(Q(fe),O),resourceIds:me?[me.id]:[]},Le(e)))}function Fe(){ce||=6}function Ie(e,t){window.getSelection().removeAllRanges(),ge=ve=e.clientX,_e=ye=e.clientY,ke=t?.duration;let n=Pa(ve,ye);({allDay:D,date:fe,resource:me}=ka(n)(ve,ye)),E=H(s)!==Ma(n,3),be=Ma(n,1),We(),e.pointerType!==`mouse`&&(Ee=setTimeout(()=>{ce&&(le=!0,Le(e))},(rt()?H(ne):H(_))??H(x)))}function Le(e){if(le||e&&e.pointerType===`mouse`&&$e()>=(rt()?H(re):H(p))){le=!0,ot(e),n.iClass=Se,ue||(rt()?Ke():Ge(e,et()?H(v):H(m)));let t=Ue(He());if(t){let n;if({allDay:n,date:pe,resource:he}=t,n===D){let t=Je({},ue),n=H(S);xe=ea((pe-fe)/1e3),tt()?(t.start=na(Q(T.start),xe),t.start>Ce&&(t.start=Ce,xe=ea((Ce-T.start)/1e3))):(t.end=na(Q(T.end),xe),Ae&&na(t.end,Ae),et()?t.end<Ce&&(t.end=Ce,xe=ea((Ce-T.end)/1e3)):rt()?(t.end<T.end?(t.start=ra(t.end,O),t.end=T.end):t.start=T.start,n=H(te)):(t.start=na(Q(T.start),xe),me&&(t.resourceIds=T.resourceIds.filter(e=>e!==me.id),t.resourceIds.push(he.id)),n=H(l)));do{if(n!==void 0&&(t=Je(Ja(T),t),n(rt()?Ze(t,e):Qe(t,T,e))===!1)){Xe(T);break}Xe(t)}while(0)}}}H(u)&&qs(()=>{De&&(E||(ye<De.top+24&&(H(s).scrollTop+=Ni(-8,(ye-De.top-24)/3)),ye>De.bottom-24&&(H(s).scrollTop+=Mi(8,(ye-De.bottom+24)/3))),ve<De.left+24&&(H(s).scrollLeft+=Ni(-8,(ve-De.left-24)/3)),ve>De.right-24&&(H(s).scrollLeft+=Mi(8,(ve-De.right+24)/3)),ye<24&&window.scrollBy(0,Ni(-8,(ye-24)/3)),ye>window.innerHeight-24&&window.scrollBy(0,Mi(8,(ye-window.innerHeight+24)/3)))})}function Re(){it()&&(We(),Le())}function ze(e){it()&&e.isPrimary&&(ve=e.clientX,ye=e.clientY,Le(e))}function Be(e){if(we&&H(ae)&&!(H(oe)&&e.target.closest(H(oe)))&&ot(e),ce&&e.isPrimary){if(le){if(rt()){if(we=!0,zi(H(w))){let t=Ze(ue,e);H(w)(t)}}else{T.display=de;let t=et()?H(y):H(h);zi(t)&&t({event:qa(T),jsEvent:e,view:Ra(H(o))});let n=Ja(T);if(Ye(T,ue),qe(),t=et()?H(b):H(g),zi(t)){let r=T,i=Qe(T,n,e);t(Z(i,{revert(){Ye(r,n)}}))}}}else if((nt()||rt())&&zi(H(c))&&!Te){ve=e.clientX,ye=e.clientY;let t=Pa(ve,ye);if(t){let{allDay:n,date:r,resource:i}=ka(t)(ve,ye);H(c)({allDay:n,date:sa(r),dateStr:ca(r),dayEl:t,jsEvent:e,view:Ra(H(o)),resource:i})}}Ve()}Te=!1}function Ve(){le=!1,ce=ge=_e=ve=ye=T=de=fe=pe=me=he=xe=Ae=D=Ce=O=Oe=be=De=ke=void 0,n.iClass=void 0,Ee&&=(clearTimeout(Ee),void 0)}function He(){return Pa(Js(ve,De.left,De.right),Js(ye,De.top,De.bottom))}function Ue(e){if(e){let t=ka(e)(ve,ye);if(t.disabled){if(!H(se).end||t.date<H(se).end)return Ue(e.nextElementSibling);if(!H(se).start||t.date>H(se).start)return Ue(e.previousElementSibling)}else return(rt()||et())&&t.resource&&!ue.resourceIds.includes(t.resource.id)&&!H(a).includes(`timeline`)?Ue(ve>ge?e.previousElementSibling:e.nextElementSibling):t}return null}function We(){let e=ja(H(s)),t=ja(be),n=e.width/H(s).offsetWidth,r=e.height/H(s).offsetHeight,i=Ki();De={left:Ni(0,i?e.right-H(s).clientWidth*n:t.left+H(s).scrollLeft*n),right:Mi(document.documentElement.clientWidth,i?t.right+H(s).scrollLeft*n:e.left+H(s).clientWidth*n)-2,top:Ni(0,t.top+(E?0:H(s).scrollTop)*r),bottom:Mi(document.documentElement.clientHeight,E?t.bottom:e.top+H(s).clientHeight*r)-2}}function Ge(e,t){zi(t)&&t({event:qa(T),jsEvent:e,view:Ra(H(o))}),de=T.display,T.display=`preview`,ue=Ja(T),Oe!==void 0&&(ue._margin=Oe),Ae&&na(ue.end,Ae),T.display=`ghost`,H(r).length=H(r).length}function Ke(){ue={id:`{select}`,allDay:T.allDay,start:T.start,title:``,display:`preview`,extendedProps:{},backgroundColor:H(ee),resourceIds:T.resourceIds,classNames:[],styles:[]}}function qe(){ue=void 0,H(i).delete(`action`)}function Je(e,t){return e.start=t.start,e.end=t.end,e.resourceIds=t.resourceIds,{...e}}function Ye(e,t){Je(e,t),H(r).length=H(r).length}function Xe(e){ue=Je(ue,e),H(i).set(`action`,ue)}function Ze(e,t){let{start:n,end:r}=qa(e);return{start:n,end:r,startStr:ca(e.start),endStr:ca(e.end),allDay:D,view:Ra(H(o)),resource:me,jsEvent:t}}function Qe(e,t,n){let r;return r=et()?tt()?{startDelta:xe,endDelta:ea(0)}:{startDelta:ea(0),endDelta:xe}:{delta:xe,oldResource:me===he?void 0:me,newResource:me===he?void 0:he},Z(r,{event:qa(e),oldEvent:qa(t),view:Ra(H(o)),jsEvent:n}),r}function $e(){return Math.sqrt((ve-ge)**2+(ye-_e)**2)}function et(){return ce===2||tt()}function tt(){return ce===3}function nt(){return ce===5}function rt(){return ce===4}function it(){return ce&&ce<5}function at(e){return e.isPrimary&&(e.pointerType!==`mouse`||e.buttons&1)}function ot(e){we&&(we=!1,qe(),zi(H(ie))&&H(ie)({jsEvent:e,view:Ra(H(o))}))}yn(()=>{H(o),ot()});function st(){Te=!0}function ct(e){if(it()){let t=e.target,n=[],r=()=>Ui(n);n.push(Fa(t,`touchmove`,lt(()=>le))),n.push(Fa(t,`touchend`,r)),n.push(Fa(t,`touchcancel`,r))}}function lt(e){return t=>{e()&&t.preventDefault()}}xi(()=>Fa(window,`touchmove`,Wi,{passive:!1}));var ut={draggable:je,drag:Me,resize:Ne,select:Pe,noAction:Fe,handleScroll:Re,unselect:ot,noClick:st};vr(`pointermove`,Xt,ze),vr(`pointerup`,Xt,Be),vr(`pointercancel`,Xt,Ve),vr(`scroll`,Xt,Re);var dt=M(()=>lt(it));vr(`selectstart`,Xt,function(...e){H(dt)?.apply(this,e)});var ft=M(()=>lt(()=>Ee));return vr(`contextmenu`,Xt,function(...e){H(ft)?.apply(this,e)}),vr(`touchstart`,Xt,ct,void 0,!0),j(ut)}function $s(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>H(n).iEvents),i=M(()=>H(n).options.slotDuration),a=0,o=0,s;function c(){let e=Pa(a,o);if(e&&!H(r).has(`action`)){let{allDay:t,date:n,resource:c,disabled:l}=ka(e)(a,o);if(!l){s||d(),s.allDay=t,s.start=n,s.end=na(Q(n),H(i)),s.resourceIds=c?[c.id]:[],H(r).set(`pointer`,{...s});return}}f()}function l(){c()}function u(e){p(e)&&(a=e.clientX,o=e.clientY,c())}function d(){s={id:`{pointer}`,title:``,display:`pointer`,extendedProps:{},backgroundColor:`transparent`,classNames:[],styles:[]}}function f(){s=void 0,H(r).delete(`pointer`)}function p(e){return e.isPrimary&&e.pointerType===`mouse`}var m={handleScroll:l};return vr(`pointermove`,Xt,u),vr(`scroll`,Xt,l),j(m)}var ec=W(`<div></div>`),tc=W(`<!> <!> <!>`,1);function nc(e,t){A(t,!0);let n=X(t,`forceDate`,3,void 0),r=X(t,`forceMargin`,3,void 0),i=M(()=>k(`state`)),a=M(()=>H(i).interaction.action),o=M(()=>H(i).options.editable),s=M(()=>H(i).options.eventDurationEditable),c=M(()=>H(i).options.eventResizableFromStart),l=M(()=>H(i).options.theme),u=M(()=>k(`view-state`)),d=M(()=>H(u).snap),f=M(()=>t.chunk.event),p=M(()=>t.chunk.event.display),m=M(()=>!$a(H(p))&&!Qa(H(p))&&Gs(H(f),H(s),H(o)));function h(e){return i=>H(a).resize(t.chunk,i,e,t.axis,n(),r(),H(d))}var g=tc(),_=L(g),v=e=>{var t=ec(),n=M(()=>h(!0));z(()=>Y(t,1,`${H(l).resizer??``} ${H(l).start??``}`)),yr(`pointerdown`,t,function(...e){H(n)?.apply(this,e)}),K(e,t)};q(_,e=>{H(m)&&H(c)&&e(v)});var y=R(_,2);Jr(y,()=>t.children);var b=R(y,2),x=e=>{var t=ec(),n=M(()=>h(!1));z(()=>Y(t,1,H(l).resizer)),yr(`pointerdown`,t,function(...e){H(n)?.apply(this,e)}),K(e,t)};q(b,e=>{H(m)&&e(x)}),K(e,g),j()}br([`pointerdown`]);var rc=W(`<!> <!>`,1);function ic(e,t){A(t,!0);let n=k(`state`);new Zs(n);let r=M(()=>n.interaction),i=M(()=>n.options.pointer);H(r).resizer=nc;var a=rc(),o=L(a);_i(Qs(o,{}),e=>H(r).action=e,()=>H(r)?.action);var s=R(o,2),c=e=>{_i($s(e,{}),e=>H(r).pointer=e,()=>H(r)?.pointer)};q(s,e=>{H(i)&&e(c)}),K(e,a),j()}var ac={createOptions(e){Z(e,{dateClick:void 0,dragConstraint:void 0,dragScroll:!0,editable:!1,eventDragMinDistance:5,eventDragStart:void 0,eventDragStop:void 0,eventDrop:void 0,eventDurationEditable:!0,eventLongPressDelay:void 0,eventResizableFromStart:!1,eventResizeStart:void 0,eventResizeStop:void 0,eventResize:void 0,eventStartEditable:!0,longPressDelay:1e3,pointer:!1,resizeConstraint:void 0,select:void 0,selectBackgroundColor:void 0,selectConstraint:void 0,selectLongPressDelay:void 0,selectMinDistance:5,snapDuration:void 0,unselect:void 0,unselectAuto:!0,unselectCancel:``}),Z(e.theme,{draggable:`ec-draggable`,ghost:`ec-ghost`,preview:`ec-preview`,pointer:`ec-pointer`,resizer:`ec-resizer`,start:`ec-start`,dragging:`ec-dragging`,resizingY:`ec-resizing-y`,resizingX:`ec-resizing-x`,selecting:`ec-selecting`})},initState(e){e.auxComponents.push(ic)}},oc=class{#e;get intlListDay(){return H(this.#e)}set intlListDay(e){F(this.#e,e)}#t;get intlListDaySide(){return H(this.#t)}set intlListDaySide(e){F(this.#t,e)}constructor(e){this.#e=M(co(e,`listDayFormat`)),this.#t=M(co(e,`listDaySideFormat`))}},sc=W(`<div></div> <!>`,1);function cc(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>H(n).interaction),i=M(()=>H(n).options.theme),a=M(()=>e=>(delete e[`background-color`],delete e.color,e));{let n=(e,t=f,n=f,r=f)=>{var a=sc(),o=L(a);let s;Jr(R(o,2),t),z(()=>{Y(o,1,H(i).eventTag),s=oi(o,``,s,{"background-color":n()})}),K(e,a)},o=M(()=>H(r).action?.noAction);Es(e,{get chunk(){return t.chunk},get styles(){return H(a)},get onpointerdown(){return H(o)},body:n,$$slots:{body:!0}})}j()}var lc=W(`<h4><time><!></time> <time></time></h4> <!>`,1);function uc(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>H(n).filteredEvents),i=M(()=>H(n).options.highlightedDates),a=M(()=>H(n).options.theme),o=M(()=>H(n).options.validRange),s=M(()=>k(`view-state`)),c=M(()=>H(s).intlListDay),l=M(()=>H(s).intlListDaySide),u=M(()=>H(i).some(e=>la(e,t.date))),d=M(()=>yo(t.date,H(o))),p=M(()=>ca(t.date,10)),m=M(()=>{let e=[];if(!H(d)){let n=t.date,i=ia(Q(t.date));for(let t of H(r))if(!$a(t.display)&&Za(t,n,i)){let r=ro(t,n,i);e.push(r)}}return e});var h=G(),g=L(h),_=e=>{Cs(e,{get date(){return t.date},allDay:!0,role:`listitem`,get disabled(){return H(d)},get highlight(){return H(u)},defaultContent:()=>H(c).format(t.date),content:(e,n=f)=>{var r=lc(),i=L(r),o=I(i);Jr(I(o),()=>n().snippet??f,()=>n().arg),O(o),Xr(o,()=>Ci(n().content,n().snippet));var s=R(o,2);Xr(s,()=>Ci(H(l).format(t.date))),O(i),J(R(i,2),17,()=>H(m),e=>e.event,(e,t)=>{cc(e,{get chunk(){return H(t)}})}),z(()=>{Y(i,1,H(a).dayHead),ui(o,`datetime`,H(p)),Y(s,1,H(a).daySide),ui(s,`datetime`,H(p))}),K(e,r)},$$slots:{content:!0}})};q(g,e=>{H(m).length&&e(_)}),K(e,h),j()}var dc=W(`<div><!></div>`),fc=W(`<section><!></section>`);function pc(e,t){A(t,!0);let n=k(`state`);qe(`view-state`,new oc(n));let r=M(()=>n.filteredEvents),i=M(()=>n.snippets),a=M(()=>n.view),o=M(()=>n.viewDates),s=M(()=>n.options.noEventsClick),c=M(()=>n.options.noEventsContent),l=M(()=>n.options.theme),u=M(()=>{let e=!0;if(!Ii(H(o))){let t=H(o)[0],n=ia(Q(H(o).at(-1)));for(let i of H(r))if(!$a(i.display)&&i.start<n&&i.end>t){e=!1;break}}return e}),d=M(()=>Zi(H(c),void 0,void 0,H(i).noEventsContent));function p(e){zi(H(s))&&H(s)({jsEvent:e,view:Ra(H(a))})}var m=fc(),h=I(m),g=e=>{var t=dc();Jr(I(t),()=>H(d).snippet??f,()=>H(d).arg),O(t),Xr(t,()=>Ci(H(d).content,H(d).snippet)),z(()=>Y(t,1,H(l).noEvents)),yr(`click`,t,p),K(e,t)},_=e=>{var t=G();J(L(t),17,()=>H(o),zr,(e,t)=>{uc(e,{get date(){return H(t)}})}),K(e,t)};q(h,e=>{H(u)?e(g):e(_,-1)}),O(m),_i(m,e=>n.mainEl=e,()=>n?.mainEl),z(()=>Y(m,1,H(l).main)),K(e,m),j()}br([`click`]);var mc={createOptions(e){Z(e,{listDayFormat:{weekday:`long`},listDaySideFormat:{year:`numeric`,month:`long`,day:`numeric`},noEventsClick:void 0,noEventsContent:`No events`,view:`listWeek`}),Z(e.buttonText,{listDay:`day`,listWeek:`week`,listMonth:`month`,listYear:`year`}),Z(e.theme,{daySide:`ec-day-side`,eventTag:`ec-event-tag`,noEvents:`ec-no-events`}),Z(e.views,{listDay:{buttonText:fo,component:hc,duration:{days:1},theme:_o(`ec-list ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},listWeek:{buttonText:po,component:hc,duration:{weeks:1},theme:_o(`ec-list ec-week-view`)},listMonth:{buttonText:mo,component:hc,duration:{months:1},theme:_o(`ec-list ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},listYear:{buttonText:ho,component:hc,duration:{years:1},theme:_o(`ec-list ec-year-view`),titleFormat:{year:`numeric`}}})}};function hc(e){return e.features=[`list`],pc}function gc(e,t,n=!0){let r=[];for(let{gridColumn:i,gridRow:a,resource:o,start:s,end:c,disabled:l}of t)if(!l&&Za(e,s,c,o)){let t=ro(e,s,c);Z(t,{gridColumn:i,gridRow:a,resource:o,top:(t.start-s)/1e3,height:(t.end-t.start)/1e3,maxHeight:(c-t.start)/1e3}),n&&so(t),r.push(t)}return r}function _c(e){let t={};for(let n of e){let{gridColumn:e}=n,r=t[e],i=0;if(r&&n.start<r.end){for(;i<r.columns.length&&!(r.columns[i].at(-1).end<=n.start);++i);n.end>r.end&&(r.end=n.end)}else r={columns:[],end:n.end};r.columns.length<i+1&&r.columns.push([]),r.columns[i].push(n),t[e]=r,n.group=r,n.groupColumn=i}}function vc(e,t){let n=`all-day`,r=Zi(e,()=>({text:n}),{html:n},t);return typeof r.content==`string`&&(r.content={html:r.content}),r}function yc(e){e.extensions.activeRange=(t,n)=>{let{options:{slotMaxTime:r}}=e;if(r.days||r.seconds>86400){na(aa(n),r);let e=aa(Q(n));e<t&&(t=e)}return{start:t,end:n}}}function bc(e){`scrollTime`in e||(Z(e,{columnWidth:void 0,flexibleSlotTimeLimits:!1,nowIndicator:!1,scrollTime:`06:00:00`,slotDuration:`00:30:00`,slotHeight:24,slotLabelInterval:void 0,slotLabelFormat:{hour:`numeric`,minute:`2-digit`},slotMaxTime:`24:00:00`,slotMinTime:`00:00:00`,snapDuration:void 0}),Z(e.theme,{nowIndicator:`ec-now-indicator`,sidebar:`ec-sidebar`,slot:`ec-slot`}))}function xc(e){`allDaySlot`in e||(Z(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),Z(e.theme,{allDay:`ec-all-day`}))}function Sc(e){`scrollTime`in e||Z(e,{scrollTime:ea,slotDuration:ea,slotLabelInterval:qi(ea),slotMaxTime:ea,slotMinTime:ea,snapDuration:qi(ea)})}function Cc(e){`resourceLabelContent`in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0,e.theme.colGroup=`ec-col-group`)}function wc(e,t){return()=>{let{viewDates:n,options:{highlightedDates:r,validRange:i}}=e,{slotTimeLimits:a}=t,o=[];return U(()=>{let e=1;for(let t of n)o.push({gridColumn:e,gridRow:1,resource:void 0,start:na(Q(t),a.min),end:na(Q(t),a.max),dayStart:t,dayEnd:ia(Q(t)),disabled:yo(t,i),highlight:r.some(e=>la(e,t))}),++e}),[o]}}function Tc(e,t){return()=>{let{filteredEvents:n}=e,{grid:r}=t,i=[],a=[],o=[],s=[];return U(()=>{for(let e of n)for(let t of r)$a(e.display)?(a=a.concat(gc(e,t)),e.allDay&&(s=s.concat(io(e,t)))):e.allDay?o=o.concat(io(e,t)):i=i.concat(gc(e,t));_c(i),ao(o)}),{chunks:i,bgChunks:a,allDayChunks:o,allDayBgChunks:s}}}function Ec(e,t){return()=>{let{iEvents:n}=e,{grid:r}=t,i=[],a=[];for(let[,e]of n)e&&U(()=>{for(let t of r)e.allDay?a=a.concat(io(e,t,!1)):i=i.concat(gc(e,t,!1))});return{iChunks:i,allDayIChunks:a}}}function Dc(e){return()=>{let{filteredEvents:t,viewDates:n,options:{flexibleSlotTimeLimits:r,slotMinTime:i,slotMaxTime:a}}=e,o;return U(()=>{o=Do(i,a,r,n,t)}),o}}function Oc(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:n}}=e,r;return U(()=>{r=n===void 0?$(t)<3600?2:1:ji($(n)/$(t))||1}),r}}function kc(e,t){return()=>{let{offset:n,options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:a,slotTimeLimits:o}=t,s;return U(()=>{s=Eo(oa($i(void 0,n)),r,a,o,i)}),s}}function Ac(e){return()=>{let{options:{slotDuration:t,snapDuration:n}}=e;return n??=t,{duration:n,ratio:$(n)/$(t)}}}function jc(){return class{#e;get intlSlotLabel(){return H(this.#e)}set intlSlotLabel(e){F(this.#e,e)}#t;get slotLabelPeriodicity(){return H(this.#t)}set slotLabelPeriodicity(e){F(this.#t,e)}#n;get sidebarWidth(){return H(this.#n)}set sidebarWidth(e){F(this.#n,e,!0)}#r;get snap(){return H(this.#r)}set snap(e){F(this.#r,e)}constructor(e){this.#e=M(co(e,`slotLabelFormat`)),this.#t=M(Oc(e)),this.#n=P(0),this.#r=M(Ac(e))}}}function Mc(e){return class extends e{#e;get slotTimeLimits(){return H(this.#e)}set slotTimeLimits(e){F(this.#e,e)}#t;get slots(){return H(this.#t)}set slots(e){F(this.#t,e)}#n;get chunks(){return H(this.#n)}set chunks(e){F(this.#n,e)}#r;get bgChunks(){return H(this.#r)}set bgChunks(e){F(this.#r,e)}#i;get allDayChunks(){return H(this.#i)}set allDayChunks(e){F(this.#i,e)}#a;get allDayBgChunks(){return H(this.#a)}set allDayBgChunks(e){F(this.#a,e)}#o;get iChunks(){return H(this.#o)}set iChunks(e){F(this.#o,e)}#s;get allDayIChunks(){return H(this.#s)}set allDayIChunks(e){F(this.#s,e)}constructor(e){super(e),this.#e=M(Dc(e)),this.#t=M(kc(e,this));let t=M(Tc(e,this)),n=M(()=>H(t).chunks),r=M(()=>H(t).bgChunks),i=M(()=>H(t).allDayChunks),a=M(()=>H(t).allDayBgChunks);this.#n=M(()=>H(n)),this.#r=M(()=>H(r)),this.#i=M(()=>H(i)),this.#a=M(()=>H(a));let o=M(Ec(e,this)),s=M(()=>H(o).iChunks),c=M(()=>H(o).allDayIChunks);this.#o=M(()=>H(s)),this.#s=M(()=>H(c))}}}var Nc=class extends Mc(jc()){#e;get grid(){return H(this.#e)}set grid(e){F(this.#e,e)}constructor(e){super(e),this.#e=M(wc(e,this))}},Pc;function Fc(e){return()=>{let{activeRange:t,filteredEvents:n,resources:r,options:{filterResourcesWithEvents:i},extensions:{viewResources:a}}=e,o=a?a(r):r;return U(()=>{i&&(o=r.filter(e=>n.some(n=>!$a(n.display)&&Za(n,t.start,t.end,e)))),o.length||(o=Pc??=bo([{}]))}),o}}function Ic(e,t){return()=>{let{viewDates:n,options:{datesAboveResources:r,highlightedDates:i,validRange:a}}=e,{slotTimeLimits:o,viewResources:s}=t,c=[];return U(()=>{let e=1,t=[s,n],l=[Xi,ta];r&&(t.reverse(),l.reverse());for(let n of t[0]){let s=[],u=l[0](n);for(let c of t[1]){let t=r?n:c,d=r?c:n;s.push({gridColumn:e,gridRow:1,resource:d,key:l[1](c),groupKey:u,start:na(Q(t),o.min),end:na(Q(t),o.max),dayStart:t,dayEnd:ia(Q(t)),disabled:yo(t,a),highlight:i.some(e=>la(e,t))}),++e}c.push(s)}}),c}}function Lc(e){return class extends e{#e;get viewResources(){return H(this.#e)}set viewResources(e){F(this.#e,e)}constructor(e){super(e),this.#e=M(Fc(e))}}}var Rc=class extends Lc(Mc(jc())){#e;get grid(){return H(this.#e)}set grid(e){F(this.#e,e)}constructor(e){super(e),this.#e=M(Ic(e,this))}},zc=W(`<span><!></span>`);function Bc(e,t){A(t,!0);let n=X(t,`date`,3,void 0),r=X(t,`setLabel`,3,void 0),i=M(()=>k(`state`)),a=M(()=>H(i).intlDayHeaderAL),o=M(()=>H(i).snippets),s=M(()=>H(i).options.resourceLabelContent),c=M(()=>H(i).options.resourceLabelDidMount),l=P(void 0),u=M(()=>Zi(H(s),()=>({resource:t.resource,date:n()?sa(n()):void 0}),()=>t.resource.title,H(o).resourceLabelContent)),d=P(void 0);_n(()=>{H(u),t.resource,n(),U(()=>{n()?lr().then(()=>H(l)&&F(d,H(a).format(n())+`, `+H(l).innerText)):r()&&(F(d,void 0),lr().then(()=>H(l)&&r()(H(l).innerText)))})}),xi(()=>{zi(H(c))&&H(c)({resource:t.resource,date:n()?sa(n()):void 0,el:H(l)})});var p=zc();Jr(I(p),()=>H(u).snippet??f,()=>H(u).arg),O(p),_i(p,e=>F(l,e),()=>H(l)),Xr(p,()=>Ci(H(u).content,H(u).snippet)),z(()=>ui(p,`aria-label`,H(d))),K(e,p),j()}function Vc(e,t){A(t,!0);let n=X(t,`allDay`,3,!1),r=M(()=>k(`state`)),i=M(()=>H(r).options.slotHeight),a=M(()=>k(`view-state`)),o=M(()=>H(a).snap),s=M(()=>t.day.dayStart),c=M(()=>t.day.start),l=M(()=>t.day.resource),u=M(()=>t.day.disabled),d=M(()=>t.day.highlight),f=P(void 0);function p(e,t){if(n())return H(s);{let e=ja(H(f)),n=e.height/H(f).offsetHeight;return na(Q(H(c)),H(o).duration,Ai((t-e.top)/(H(i)*H(o).ratio*n)))}}Cs(e,{get date(){return H(s)},get allDay(){return n()},get resource(){return H(l)},dateFromPoint:p,get disabled(){return H(u)},get highlight(){return H(d)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return H(f)},set el(e){F(f,e,!0)}}),j()}function Hc(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>H(n).options.slotEventOverlap),i=M(()=>H(n).options.slotDuration),a=M(()=>H(n).options.slotHeight),o=M(()=>e=>{let n=$(H(i)),o=t.chunk.top/n*H(a),s=t.chunk.height/n*H(a)||H(a),c=t.chunk.maxHeight/n*H(a);e[`grid-column`]=t.chunk.gridColumn,e[`inset-block-start`]=`${o}px`,e[`min-block-size`]=`${s}px`,e[`block-size`]=`${s}px`,e[`max-block-size`]=`${c}px`;let l=`100% - var(--ec-event-col-gap)`;if(t.chunk.group){let n=t.chunk.group.columns.length;e[`z-index`]=`${t.chunk.groupColumn+1}`,e[`inset-inline-start`]=`calc((${l}) / ${n} * ${t.chunk.groupColumn})`,e[`inline-size`]=`calc((${l}) / ${n} * ${H(r)?.5*(1+n-t.chunk.groupColumn):1})`}return e});js(e,{get chunk(){return t.chunk},get styles(){return H(o)},axis:`y`}),j()}function Uc(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>H(n).options.eventGap),i=P(void 0),a=P(0),o=M(()=>t.chunk.event),s=M(()=>e=>(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(H(a)||H(o)._margin)&&(e[`margin-block-start`]=`${H(o)._margin??H(a)}px`),e));function c(){F(a,oo(t.chunk,Na(H(i)),1,H(r)),!0)}var l={reposition:c};return js(e,{get chunk(){return t.chunk},get styles(){return H(s)},axis:`x`,get forceMargin(){return H(a)},get el(){return H(i)},set el(e){F(i,e,!0)}}),j(l)}var Wc=W(`<div></div>`);function Gc(e,t){A(t,!0);let n=X(t,`span`,3,1),r=M(()=>k(`state`)),i=M(()=>H(r).mainEl),a=M(()=>H(r).now),o=M(()=>H(r).today),s=M(()=>H(r).options.slotDuration),c=M(()=>H(r).options.slotHeight),l=M(()=>H(r).options.theme),u=M(()=>k(`view-state`)),d=M(()=>H(u).sidebarWidth),f=M(()=>{for(let e of t.days)if(la(e.dayStart,H(o)))return e;return{}}),p=M(()=>H(f).gridColumn),m=M(()=>H(f).start),h=M(()=>H(f).end),g=M(()=>{if(H(a)<H(m)||H(a)>H(h))return null;let e=$(H(s));return(H(a)-H(m))/1e3/e*H(c)}),_=M(()=>({root:H(i),rootMargin:Ki()?`0px -${H(d)+5.5}px 0px 0px`:`0px 0px 0px -${H(d)+5.5}px`,threshold:0}));function v(e,t){e.classList.toggle(H(l).hidden,!t.isIntersecting)}var y=G(),b=L(y),x=e=>{var t=Wc();let r;Xr(t,()=>Ei(v,H(_))),z(()=>{Y(t,1,H(l).nowIndicator),r=oi(t,``,r,{"grid-column":`${H(p)+1} / span ${n()??``}`,"inset-block-start":`${H(g)??``}px`})}),K(e,t)};q(b,e=>{H(p)&&H(g)!==null&&e(x)}),K(e,y),j()}var Kc=W(`<div><aside><!></aside> <div role="row"></div> <div><!> <!> <!></div></div>`),qc=W(`<div><time></time></div>`),Jc=W(`<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 Yc(e,t){A(t,!0);let n=X(t,`viewState`,7),r=k(`state`);n()||n(new Nc(r)),qe(`view-state`,n());let i=M(()=>r.mainEl),a=M(()=>r.snippets),o=M(()=>r.viewDates),s=M(()=>r.options.allDayContent),c=M(()=>r.options.allDaySlot),l=M(()=>r.options.columnWidth),u=M(()=>r.options.eventGap),d=M(()=>r.options.nowIndicator),p=M(()=>r.options.scrollTime),m=M(()=>r.options.slotHeight),h=M(()=>r.options.slotDuration),g=M(()=>r.options.theme),_=M(()=>n().allDayChunks),v=M(()=>n().allDayBgChunks),y=M(()=>n().allDayIChunks),b=M(()=>n().bgChunks),x=M(()=>n().chunks),S=M(()=>n().iChunks),C=M(()=>n().grid),w=M(()=>n().sidebarWidth),ee=M(()=>n().slots),te=M(()=>n().slotLabelPeriodicity),ne=M(()=>n().slotTimeLimits),re=P(0),ie=M(()=>vc(H(s),H(a).allDayContent));_n(()=>{H(p),Ii(H(o))||lr().then(ae)});function ae(){H(i).scrollTop=(($(H(p))-$(H(ne).min))/$(H(h))-.5)*H(m)}let oe=[];function se(){Xa(oe,H(_))}_n(()=>{H(u),se()});var ce=G(),le=L(ce),T=e=>{var i=Jc();let a;var o=I(i),s=I(o),u=R(s,2),p=I(u),h=e=>{var n=G();Jr(L(n),()=>t.header),K(e,n)},ne=e=>{var t=G();J(L(t),17,()=>H(C)[0],zr,(e,t,n)=>{let r=()=>H(t).dayStart,i=()=>H(t).disabled,a=()=>H(t).highlight;Os(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{As(e,{get date(){return r()}})},$$slots:{default:!0}})}),K(e,t)};q(p,e=>{t.header?e(h):e(ne,-1)}),O(u);var ae=R(u,2),ce=e=>{var t=Kc(),n=I(t);Jr(I(n),()=>H(ie).snippet??f,()=>H(ie).arg),O(n),Xr(n,()=>Ci(H(ie).content,H(ie).snippet));var r=R(n,2);J(r,21,()=>H(C),zr,(e,t,n)=>{var r=G();J(L(r),17,()=>H(t),zr,(e,r,i)=>{{let a=M(()=>n+1===Fi(H(C))&&i+1===Fi(H(t)));Vc(e,{get day(){return H(r)},allDay:!0,get noIeb(){return H(a)}})}}),K(e,r)}),O(r);var i=R(r,2),a=I(i);J(a,19,()=>H(_),e=>e.id,(e,t,n)=>{_i(Uc(e,{get chunk(){return H(t)}}),(e,t)=>oe[t]=e,e=>oe?.[e],()=>[H(n)])});var o=R(a,2);J(o,17,()=>H(v),e=>e.id,(e,t)=>{Uc(e,{get chunk(){return H(t)}})}),J(R(o,2),17,()=>H(y),zr,(e,t)=>{Uc(e,{get chunk(){return H(t)}})}),O(i),O(t),z(()=>{Y(t,1,H(g).allDay),Y(n,1,H(g).sidebar),Y(r,1,H(g).grid),Y(i,1,H(g).events)}),K(e,t)};q(ae,e=>{H(c)&&e(ce)}),O(o);var le=R(o,2),T=I(le);J(T,21,()=>H(ee),zr,(e,t,n)=>{var r=qc();let i;var a=I(r);Xr(a,()=>Ci(H(t)[1])),O(r),z(()=>{Y(r,1,$r([H(g).slot,!n&&H(g).hidden])),i=oi(r,``,i,{"--ec-slot-label-periodicity":H(t)[2]}),ui(a,`datetime`,H(t)[0])}),K(e,r)}),O(T);var ue=R(T,2);J(ue,21,()=>H(C),zr,(e,t,n)=>{var r=G();J(L(r),17,()=>H(t),zr,(e,r,i)=>{{let a=M(()=>n+1===Fi(H(C))&&i+1===Fi(H(t)));Vc(e,{get day(){return H(r)},get noIeb(){return H(a)},noBeb:!0})}}),K(e,r)}),O(ue);var de=R(ue,2),fe=I(de);J(fe,17,()=>H(x),e=>e.id,(e,t)=>{Hc(e,{get chunk(){return H(t)}})});var pe=R(fe,2);J(pe,17,()=>H(b),e=>e.id,(e,t)=>{Hc(e,{get chunk(){return H(t)}})}),J(R(pe,2),17,()=>H(S),zr,(e,t)=>{Hc(e,{get chunk(){return H(t)}})}),O(de),O(le);var me=R(le,2),he=e=>{var n=G(),r=L(n),i=e=>{var n=G();Jr(L(n),()=>t.nowIndicator),K(e,n)},a=e=>{Gc(e,{get days(){return H(C)[0]}})};q(r,e=>{t.nowIndicator?e(i):e(a,-1)}),K(e,n)};q(me,e=>{H(d)&&e(he)}),O(i),_i(i,e=>r.mainEl=e,()=>r?.mainEl),Xr(i,()=>Ti(se)),z((e,t)=>{Y(i,1,H(g).main),a=oi(i,``,a,{"--ec-grid-cols":e,"--ec-col-group-span":t,"--ec-col-width":H(l)??`minmax(0, 1fr)`,"--ec-slot-label-periodicity":H(te),"--ec-slot-height":`${H(m)??``}px`,"--ec-header-height":`${H(re)??``}px`,"--ec-sidebar-width":`${H(w)??``}px`}),Y(o,1,H(g).header),Y(s,1,H(g).sidebar),Y(u,1,H(g).grid),Y(le,1,H(g).body),Y(T,1,H(g).sidebar),Y(ue,1,H(g).grid),Y(de,1,H(g).events)},[()=>Fi(H(C))*Fi(H(C)[0]),()=>Fi(H(C)[0])]),hi(s,`offsetWidth`,e=>n().sidebarWidth=e),hi(o,`offsetHeight`,e=>F(re,e)),K(e,i)},ue=M(()=>!Ii(H(C))&&!Ii(H(C)[0]));q(le,e=>{H(ue)&&e(T)}),K(e,ce),j()}var Xc=W(`<!> <!>`,1);function Zc(e,t){A(t,!0);let n=k(`state`),r=new Rc(n),i=M(()=>n.today),a=M(()=>n.mainEl),o=M(()=>n.scrollDate),s=M(()=>n.viewDates),c=M(()=>n.options.scrollTime),l=M(()=>n.options.datesAboveResources),u=M(()=>n.options.theme),d=M(()=>r.grid),f=M(()=>r.sidebarWidth),p=Yt([]),m;_n(()=>{H(l)&&(H(s),H(c),H(o),lr().then(h))});function h(){let e=H(o)&&H(o)!==m?H(o):H(i);if(m=H(o),e>=H(s)[0]&&e<=H(s).at(-1))for(let t of H(d)){let n=t[0];if(n.dayStart>=e){H(a).scrollLeft=(H(a).scrollWidth-H(f))/(Fi(H(d))*Fi(t))*(n.gridColumn-1)*(Ki()?-1:1);break}}}Yc(e,{get viewState(){return r},header:e=>{var t=Xc(),n=L(t);J(n,19,()=>H(d),e=>e[0].groupKey,(e,t,n)=>{let r=M(()=>{let{dayStart:e,resource:n,disabled:r,highlight:i}=H(t)[0];return{date:e,resource:n,disabled:r,highlight:i}});{let i=M(()=>Fi(H(d)[0])>1?H(u).colGroup:void 0),a=M(()=>Fi(H(t))),o=M(()=>1+H(n)*Fi(H(t))),s=M(()=>H(l)&&H(r).disabled),c=M(()=>H(l)&&H(r).highlight);Os(e,{get date(){return H(r).date},get className(){return H(i)},get weekday(){return H(l)},get colSpan(){return H(a)},get colIndex(){return H(o)},get disabled(){return H(s)},get highlight(){return H(c)},children:(e,t)=>{var i=G(),a=L(i),o=e=>{As(e,{get date(){return H(r).date}})},s=e=>{Bc(e,{get resource(){return H(r).resource},setLabel:e=>p[H(n)]=e+`, `})};q(a,e=>{H(l)?e(o):e(s,-1)}),K(e,i)},$$slots:{default:!0}})}});var r=R(n,2),i=e=>{var t=G();J(L(t),19,()=>H(d),e=>e[0].groupKey,(e,t,n)=>{var r=G();J(L(r),19,()=>H(t),e=>e.key,(e,r,i)=>{let a=M(()=>{let{dayStart:e,resource:t,disabled:n,highlight:i}=H(r);return{date:e,resource:t,disabled:n,highlight:i}});{let r=M(()=>1+H(i)+H(n)*Fi(H(t)));Os(e,{get date(){return H(a).date},get colIndex(){return H(r)},get disabled(){return H(a).disabled},get highlight(){return H(a).highlight},children:(e,t)=>{var r=G(),i=L(r),o=e=>{Bc(e,{get resource(){return H(a).resource},get date(){return H(a).date}})},s=e=>{As(e,{get date(){return H(a).date},get alPrefix(){return p[H(n)]}})};q(i,e=>{H(l)?e(o):e(s,-1)}),K(e,r)},$$slots:{default:!0}})}}),K(e,r)}),K(e,t)},a=M(()=>Fi(H(d)[0])>1);q(r,e=>{H(a)&&e(i)}),K(e,t)},nowIndicator:e=>{var t=G(),n=L(t),r=e=>{{let t=M(()=>H(d).flat()),n=M(()=>Fi(H(d)[0]));Gc(e,{get days(){return H(t)},get span(){return H(n)}})}},i=e=>{var t=G(),n=L(t),r=e=>{var t=G();J(L(t),17,()=>H(d),zr,(e,t)=>{Gc(e,{get days(){return H(t)}})}),K(e,t)},i=M(()=>Fi(H(d)[0])>1),a=e=>{{let t=M(()=>H(d).flat()),n=M(()=>Fi(H(d)));Gc(e,{get days(){return H(t)},get span(){return H(n)}})}};q(n,e=>{H(i)?e(r):e(a,-1)}),K(e,t)};q(n,e=>{H(l)?e(r):e(i,-1)}),K(e,t)},$$slots:{header:!0,nowIndicator:!0}}),j()}var Qc={createOptions(e){xc(e),bc(e),Cc(e),Z(e,{datesAboveResources:!1,view:`resourceTimeGridWeek`}),Z(e.buttonText,{resourceTimeGridDay:`day`,resourceTimeGridWeek:`week`}),Z(e.views,{resourceTimeGridDay:{buttonText:fo,component:$c,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:_o(`ec-resource ec-time-grid ec-day-view`)},resourceTimeGridWeek:{buttonText:po,component:$c,duration:{weeks:1},theme:_o(`ec-resource ec-time-grid ec-week-view`)}})},createParsers(e){Sc(e)}};function $c(e){return yc(e),Zc}function el(e,t,n,r=!0){let i=[],a,o,s,c,l,u,d=0;for(let{gridColumn:r,gridRow:f,resource:p,dayStart:m,dayEnd:h,start:g,end:_,disabled:v}of t)v||(n?Za(e,m,h,p)&&(i.length||(a=m,s=r,c=f,l=p),i.push(m),o=h):Za(e,g,_,p)&&(i.length||(a=g,s=r,c=f,l=p,u=Ni(e.start-g,0)/1e3),i.push(m),o=_,d+=(Mi(_,e.end)-Ni(g,e.start))/1e3));if(i.length){let t=ro(e,a,o);return Z(t,{gridColumn:s,gridRow:c,resource:l,dates:i,left:u,width:d}),r&&so(t),[t]}return[]}function tl(e,t){let n={};for(let t=0;t<e.length;++t){let r=e[t],{gridColumn:i,gridRow:a}=r;r.order=t;for(let e=0;e<r.dates.length;++e){let t=`${a}_${i+e}`;n[t]?n[t].push(r):n[t]=[r]}r.day=n[`${a}_${i}`]}if(t)for(let t of e){let{gridColumn:e,gridRow:r}=t,i=new Set([t]),a=[];for(let o=0;o<t.dates.length;++o)for(let t of n[`${r}_${e+o}`])i.has(t)||(i.add(t),a.push(t));t.group=a}}function nl(e,t,n,r=1,i=!1){let a=1,o=a+t;if(i){for(let t of e.group)t.order<e.order&&`top`in t&&t.bottom+r>a&&(a=t.bottom+r);o=a+t}else{let t=e.day;t.sort((e,t)=>(e.top??1/0)-(t.top??1/0));for(let i of t)if(!(i===e||!(`top`in i))&&(n||e.start<i.end&&e.end>i.start)&&a<i.bottom&&o>i.top){let e=i.bottom-a+r;a+=e,o+=e}}return Z(e,{top:a,bottom:o}),a}function rl(e,t){return e[ta(t)]??{min:ea(0),max:ea(`24:00:00`)}}function il(e,t){return()=>{let{viewDates:n,options:{highlightedDates:r,validRange:i}}=e,{dayTimeLimits:a,viewResources:o}=t,s=[];return U(()=>{let e=1;for(let t of o){let o=[],c=1;for(let s of n){let n=a[ta(s)];o.push({gridColumn:c,gridRow:e,resource:t,start:na(Q(s),n.min),end:na(Q(s),n.max),dayStart:s,dayEnd:ia(Q(s)),disabled:yo(s,i),highlight:r.some(e=>la(e,s))}),++c}s.push(o),++e}}),s}}function al(e,t){return()=>{let{features:n,options:{firstDay:r,weekNumbers:i}}=e,{grid:a}=t,o=[],s=[];return U(()=>{let e,t;if(!Ii(a)){for(let{dayStart:c,gridColumn:l}of a[0])if(n.includes(`month`)&&(e&&e.date.getUTCMonth()===c.getUTCMonth()?++e.span:(e={date:c,gridColumn:l,span:1},o.push(e))),i){let e=ga(c,r);t&&t.number===e?++t.span:(t={number:e,date:c,gridColumn:l,span:1},s.push(t))}}}),{months:o,weeks:s}}}function ol(e,t){return()=>{let{filteredEvents:n,options:{eventOrderStrict:r}}=e,{grid:i,monthView:a}=t,o=[],s=[];return U(()=>{for(let e of n)for(let t of i)$a(e.display)?(!a||e.allDay)&&(s=s.concat(el(e,t,a))):o=o.concat(el(e,t,a));tl(o,r)}),{chunks:o,bgChunks:s}}}function sl(e,t){return()=>{let{iEvents:n}=e,{grid:r,monthView:i}=t,a=[];for(let[,e]of n)e&&U(()=>{for(let t of r)a=a.concat(el(e,t,i,!1))});return a}}function cl(e){return()=>{let{filteredEvents:t,viewDates:n,options:{flexibleSlotTimeLimits:r,slotMinTime:i,slotMaxTime:a}}=e,o={};return U(()=>{for(let e of n)o[ta(e)]=Do(i,a,r,[e],t)}),o}}function ll(e,t){return()=>{let{viewDates:n,options:{slotDuration:r}}=e,{dayTimeLimits:i,intlSlotLabel:a,slotLabelPeriodicity:o}=t,s={};return U(()=>{for(let e of n){let t=ta(e);s[t]=t in i?Eo(e,r,o,i[t],a):[]}}),s}}function ul(e){return()=>{let{resources:t}=e,n;return U(()=>{n=t.some(e=>ka(e).children.length)}),n}}function dl(e){return()=>{let{options:{slotDuration:t}}=e,n;return U(()=>{n=!$(t)}),n}}var fl=class extends Lc(jc()){#e;get dayTimeLimits(){return H(this.#e)}set dayTimeLimits(e){F(this.#e,e)}#t;get daySlots(){return H(this.#t)}set daySlots(e){F(this.#t,e)}#n;get grid(){return H(this.#n)}set grid(e){F(this.#n,e)}#r;get extraHeads(){return H(this.#r)}set extraHeads(e){F(this.#r,e)}#i;get intlMonthHeader(){return H(this.#i)}set intlMonthHeader(e){F(this.#i,e)}#a;get monthView(){return H(this.#a)}set monthView(e){F(this.#a,e)}#o;get chunks(){return H(this.#o)}set chunks(e){F(this.#o,e)}#s;get bgChunks(){return H(this.#s)}set bgChunks(e){F(this.#s,e)}#c;get iChunks(){return H(this.#c)}set iChunks(e){F(this.#c,e)}#l;get nestedResources(){return H(this.#l)}set nestedResources(e){F(this.#l,e)}constructor(e){super(e),this.#e=M(cl(e)),this.#t=M(ll(e,this)),this.#n=M(il(e,this)),this.#r=M(al(e,this)),this.#i=M(co(e,`monthHeaderFormat`)),this.#a=M(dl(e));let t=M(ol(e,this)),n=M(()=>H(t).chunks),r=M(()=>H(t).bgChunks);this.#o=M(()=>H(n)),this.#s=M(()=>H(r)),this.#c=M(sl(e,this)),this.#l=M(ul(e))}};function pl(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>H(n).options.slotWidth),i=M(()=>k(`view-state`)),a=M(()=>H(i).monthView),o=M(()=>H(i).snap),s=M(()=>t.day.dayStart),c=M(()=>t.day.start),l=M(()=>t.day.resource),u=M(()=>t.day.disabled),d=M(()=>t.day.highlight),f=P(void 0);function p(e,t){if(H(a))return H(s);{let t=ja(H(f)),n=t.width/H(f).offsetWidth;return na(Q(H(c)),H(o).duration,Ai((Ki()?t.right-e:e-t.left)/(H(r)*H(o).ratio*n)))}}Cs(e,{get allDay(){return H(a)},get date(){return H(s)},get resource(){return H(l)},dateFromPoint:p,get disabled(){return H(u)},get highlight(){return H(d)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return H(f)},set el(e){F(f,e,!0)}}),j()}function ml(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>H(n).options.eventGap),i=M(()=>H(n).options.eventOrderStrict),a=M(()=>H(n).options.slotDuration),o=M(()=>H(n).options.slotWidth),s=M(()=>k(`view-state`)),c=M(()=>H(s).monthView),l=P(void 0),u=P(1),d=M(()=>t.chunk.event),f=M(()=>e=>{e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,H(c)||(e[`inset-inline-start`]=`${t.chunk.left/$(H(a))*H(o)}px`,e[`inline-size`]=`${t.chunk.width/$(H(a))*H(o)}px`);let n=H(u);if(H(d)._margin){let[e,r]=H(d)._margin;t.chunk.gridRow===r&&(n=e)}return e[`margin-block-start`]=`${n}px`,e});function p(){F(u,nl(t.chunk,Na(H(l)),H(c),H(r),H(i)),!0)}var m={reposition:p};{let n=M(()=>[H(u),t.chunk.gridRow]);js(e,{get chunk(){return t.chunk},get styles(){return H(f)},axis:`x`,get forceMargin(){return H(n)},get el(){return H(l)},set el(e){F(l,e,!0)}})}return j(m)}var hl=W(`<span></span>`),gl=W(`<button></button>`),_l=W(`<!> <span><!></span>`,1);function vl(e,t){A(t,!0);let n=X(t,`resource`,7),r=M(()=>k(`state`)),i=M(()=>H(r).resources),a=M(()=>H(r).view),o=M(()=>H(r).options.buttonText),s=M(()=>H(r).options.icons),c=M(()=>H(r).options.resourceExpand),l=M(()=>H(r).options.theme),u=P({}),d=M(()=>n().expanded),f=M(()=>H(o)[H(d)?`collapse`:`expand`]);yn(()=>{F(u,ka(n()))});function p(e){n().expanded=F(d,!H(d)),m(H(u).children),H(i).length=H(i).length,zi(H(c))&&H(c)({resource:n(),jsEvent:e,view:Ra(H(a))})}function m(e){for(let t of e){let e=ka(t);e.hidden=!H(d),t.expanded&&m(e.children)}}var h=_l(),g=L(h);J(g,17,()=>Array(H(u).level),zr,(e,t)=>{var n=hl();z(()=>Y(n,1,H(l).expander)),K(e,n)});var _=R(g,2),v=I(_),y=e=>{var t=gl();Xr(t,()=>Ci(H(s)[H(d)?`collapse`:`expand`])),z(()=>{Y(t,1,H(l).button),ui(t,`aria-label`,H(f)),ui(t,`title`,H(f))}),yr(`click`,t,p),K(e,t)};q(v,e=>{H(u).children?.length&&e(y)}),O(_),z(()=>Y(_,1,H(l).expander)),K(e,h),j()}br([`click`]);var yl=W(`<div></div>`);function bl(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>H(n).mainEl),i=M(()=>H(n).now),a=M(()=>H(n).today),o=M(()=>H(n).options.slotDuration),s=M(()=>H(n).options.slotWidth),c=M(()=>H(n).options.theme),l=M(()=>k(`view-state`)),u=M(()=>H(l).grid),d=M(()=>H(l).sidebarWidth),f=M(()=>{for(let e of H(u)[0])if(la(e.dayStart,H(a)))return e;return{}}),p=M(()=>H(f).gridColumn),m=M(()=>H(f).start),h=M(()=>H(f).end),g=M(()=>{if(H(i)<H(m)||H(i)>H(h))return null;let e=$(H(o));return(H(i)-H(m))/1e3/e*H(s)}),_=M(()=>({root:H(r),rootMargin:Ki()?`0px -${H(d)+1}px 0px 0px`:`0px 0px 0px -${H(d)+1}px`,threshold:0}));function v(e,t){e.classList.toggle(H(c).hidden,!t.isIntersecting)}var y=G(),b=L(y),x=e=>{var t=yl();let n;Xr(t,()=>Ei(v,H(_))),z(()=>{Y(t,1,H(c).nowIndicator),n=oi(t,``,n,{"grid-column":H(p)+1,"grid-row":`2 / span ${H(u).length??``}`,"inset-inline-start":`${H(g)??``}px`})}),K(e,t)};q(b,e=>{H(p)&&H(g)!==null&&e(x)}),K(e,y),j()}var xl=W(`<time></time>`),Sl=W(`<span><!></span>`),Cl=W(`<div><time></time></div>`),wl=W(`<div role="rowheader"><!> <!></div>`),Tl=W(`<section><header><aside></aside> <div role="row"><!> <!> <!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>`);function El(e,t){A(t,!0);let n=k(`state`),r=new fl(n);qe(`view-state`,r);let i=M(()=>n.mainEl),a=M(()=>n.scrollDate),o=M(()=>n.snippets),s=M(()=>n.today),c=M(()=>n.viewDates),l=M(()=>n.options.columnWidth),u=M(()=>n.options.eventGap),d=M(()=>n.options.nowIndicator),p=M(()=>n.options.scrollTime),m=M(()=>n.options.slotDuration),h=M(()=>n.options.slotHeight),g=M(()=>n.options.slotWidth),_=M(()=>n.options.theme),v=M(()=>n.options.weekNumberContent),y=M(()=>r.chunks),b=M(()=>r.bgChunks),x=M(()=>r.iChunks),S=M(()=>r.daySlots),C=M(()=>r.dayTimeLimits),w=M(()=>r.grid),ee=M(()=>r.extraHeads),te=M(()=>r.intlMonthHeader),ne=M(()=>r.monthView),re=M(()=>r.nestedResources),ie=M(()=>r.sidebarWidth),ae=M(()=>r.slotLabelPeriodicity),oe=M(()=>r.viewResources),se=P(0),ce;_n(()=>{H(p),H(a),Ii(H(c))||lr().then(le)});function le(){let e=0,t=H(a)&&H(a)!==ce?H(a):H(s);ce=H(a);let n=t<H(c)[0]||t>H(c).at(-1);if(H(ne)){if(!n){let e=H(w)[0];for(let n of e)if(n.dayStart>=t){H(i).scrollLeft=(H(i).scrollWidth-H(ie))/Fi(e)*(n.gridColumn-1)*(Ki()?-1:1);break}}}else{for(let r of H(c)){let i=rl(H(C),r);if(n||r>=t){e+=Ni(Mi($(H(p)),$(i.max))-$(i.min),0);break}e+=$(i.max)-$(i.min)}H(i).scrollLeft=e/$(H(m))*H(g)*(Ki()?-1:1)}}let T=[];function ue(){Xa(T,H(y))}_n(()=>{H(u),ue()});var de=G(),fe=L(de),pe=e=>{var t=Tl();let i;var a=I(t),s=I(a),c=R(s,2),u=I(c),p=e=>{var t=G();J(L(t),17,()=>H(ee).months,zr,(e,t)=>{let n=()=>H(t).date,r=()=>H(t).gridColumn,i=()=>H(t).span;Os(e,{get className(){return H(_).colGroup},get colIndex(){return r()},get colSpan(){return i()},cssSpan:!0,weekday:!1,children:(e,t)=>{var r=xl();Xr(r,()=>Ci(H(te).format(n()))),z(e=>ui(r,`datetime`,e),[()=>ca(n(),10)]),K(e,r)},$$slots:{default:!0}})}),K(e,t)},m=M(()=>Fi(H(ee).months)>1);q(u,e=>{H(m)&&e(p)});var C=R(u,2),ce=e=>{var t=G();J(L(t),17,()=>H(ee).weeks,zr,(e,t)=>{let n=()=>H(t).number,r=()=>H(t).date,i=()=>H(t).gridColumn,a=()=>H(t).span,s=M(()=>_a(n(),r(),H(v),H(o).weekNumberContent));Os(e,{get className(){return H(_).colGroup},get colIndex(){return i()},get colSpan(){return a()},cssSpan:!0,weekday:!1,children:(e,t)=>{var n=Sl();Jr(I(n),()=>H(s).snippet??f,()=>H(s).arg),O(n),Xr(n,()=>Ci(H(s).content,H(s).snippet)),z(()=>Y(n,1,H(_).weekNumber)),K(e,n)},$$slots:{default:!0}})}),K(e,t)},le=M(()=>Fi(H(ee).weeks)>1);q(C,e=>{H(le)&&e(ce)});var de=R(C,2);J(de,17,()=>H(w)[0],zr,(e,t,n)=>{let r=()=>H(t).dayStart,i=()=>H(t).disabled,a=()=>H(t).highlight;Os(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{As(e,{get date(){return r()}})},$$slots:{default:!0}})});var fe=R(de,2),pe=e=>{var t=G();J(L(t),17,()=>H(w)[0],zr,(e,t)=>{let n=()=>H(t).dayStart,r=()=>H(t).disabled,i=()=>H(t).highlight;Os(e,{get date(){return n()},get className(){return H(_).slots},get disabled(){return r()},get highlight(){return i()},ariaHidden:!0,children:(e,t)=>{var r=G();J(L(r),17,()=>H(S)[ta(n())],zr,(e,t)=>{var n=Cl();let r;var i=I(n);Xr(i,()=>Ci(H(t)[1])),O(n),z(()=>{Y(n,1,H(_).slot),r=oi(n,``,r,{"--ec-slot-label-periodicity":H(t)[2]}),ui(i,`datetime`,H(t)[0])}),K(e,n)}),K(e,r)},$$slots:{default:!0}})}),K(e,t)};q(fe,e=>{H(ne)||e(pe)}),O(c),O(a);var me=R(a,2),he=I(me);J(he,21,()=>H(oe),e=>Xi(e),(e,t)=>{var n=wl(),r=I(n),i=e=>{vl(e,{get resource(){return H(t)}})};q(r,e=>{H(re)&&e(i)}),Bc(R(r,2),{get resource(){return H(t)}}),O(n),z(()=>Y(n,1,H(_).rowHead)),K(e,n)}),O(he);var ge=R(he,2);J(ge,21,()=>H(w),zr,(e,t,n)=>{var r=G();J(L(r),17,()=>H(t),zr,(e,r,i)=>{{let a=M(()=>i+1===Fi(H(t))),o=M(()=>n+1===Fi(H(w)));pl(e,{get day(){return H(r)},get noIeb(){return H(a)},get noBeb(){return H(o)}})}}),K(e,r)}),O(ge);var _e=R(ge,2),ve=I(_e);J(ve,19,()=>H(y),e=>e.id,(e,t,n)=>{_i(ml(e,{get chunk(){return H(t)}}),(e,t)=>T[t]=e,e=>T?.[e],()=>[H(n)])});var ye=R(ve,2);J(ye,17,()=>H(b),e=>e.id,(e,t)=>{ml(e,{get chunk(){return H(t)}})}),J(R(ye,2),17,()=>H(x),zr,(e,t)=>{ml(e,{get chunk(){return H(t)}})}),O(_e),O(me);var be=R(me,2),E=e=>{bl(e,{})};q(be,e=>{H(d)&&!H(ne)&&e(E)}),O(t),_i(t,e=>n.mainEl=e,()=>n?.mainEl),Xr(t,()=>Ti(ue)),z((e,n)=>{Y(t,1,H(_).main),i=oi(t,``,i,{"--ec-grid-cols":e,"--ec-grid-rows":n,"--ec-col-width":H(l)??`minmax(4em, 1fr)`,"--ec-slot-label-periodicity":H(ae),"--ec-slot-height":`${H(h)??``}px`,"--ec-slot-width":`${H(g)??``}px`,"--ec-header-height":`${H(se)??``}px`,"--ec-sidebar-width":`${H(ie)??``}px`}),Y(a,1,H(_).header),Y(s,1,H(_).sidebar),Y(c,1,H(_).grid),Y(me,1,H(_).body),Y(he,1,H(_).sidebar),Y(ge,1,H(_).grid),Y(_e,1,H(_).events)},[()=>Fi(H(w)[0]),()=>`${Fi(H(w))>1?`repeat(${Fi(H(w))-1}, auto)`:``} 1fr`]),hi(s,`offsetWidth`,e=>r.sidebarWidth=e),hi(a,`offsetHeight`,e=>F(se,e)),K(e,t)},me=M(()=>!Ii(H(w))&&!Ii(H(w)[0]));q(fe,e=>{H(me)&&e(pe)}),K(e,de),j()}var Dl={createOptions(e){bc(e),Cc(e),gs(e),Z(e,{monthHeaderFormat:{month:`long`},resourceExpand:void 0,slotWidth:32,view:`resourceTimelineWeek`}),Z(e.buttonText,{expand:`Expand`,collapse:`Collapse`,resourceTimelineDay:`day`,resourceTimelineWeek:`week`,resourceTimelineMonth:`month`,resourceTimelineYear:`year`}),Z(e.icons,{collapse:{html:`&minus;`},expand:{html:`&plus;`}}),Z(e.theme,{expander:`ec-expander`,rowHead:`ec-row-head`,slots:`ec-slots`}),Z(e.views,{resourceTimelineDay:{buttonText:fo,component:Ol,displayEventEnd:!1,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:_o(`ec-resource ec-timeline ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},resourceTimelineWeek:{buttonText:po,component:Ol,displayEventEnd:!1,duration:{weeks:1},theme:_o(`ec-resource ec-timeline ec-week-view`)},resourceTimelineMonth:{buttonText:mo,component:kl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{months:1},slotDuration:{days:1},theme:_o(`ec-resource ec-timeline ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},resourceTimelineYear:{buttonText:ho,component:kl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{years:1},slotDuration:{days:1},theme:_o(`ec-resource ec-timeline ec-year-view`),titleFormat:{year:`numeric`}}})},createParsers(e){Sc(e)}};function Ol(e){return yc(e),Al(e)}function kl(e){return Al(e,[`month`])}function Al(e,t=[]){return e.features=[`timeline`,...t],e.extensions.viewResources=e=>e.filter(e=>!ka(e).hidden),El}var jl={createOptions(e){bc(e),xc(e),Z(e.buttonText,{timeGridDay:`day`,timeGridWeek:`week`}),Z(e,{view:`timeGridWeek`}),Z(e.views,{timeGridDay:{buttonText:fo,component:Ml,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:_o(`ec-time-grid ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},timeGridWeek:{buttonText:po,component:Ml,duration:{weeks:1},theme:_o(`ec-time-grid ec-week-view`)}})},createParsers(e){Sc(e)}};function Ml(e){return yc(e),Yc}function Nl(e,t,n){return Nr(hs,{target:e,props:{plugins:t,options:n}})}function Pl(e){return Lr(e)}function Fl(e,t){return Nl(e,[Hs,ac,mc,Qc,Dl,jl],t)}return e.create=Fl,e.destroy=Pl,e})({});
7
7
  //# sourceMappingURL=event-calendar.min.js.map